blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
264
content_id
stringlengths
40
40
detected_licenses
listlengths
0
85
license_type
stringclasses
2 values
repo_name
stringlengths
5
140
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
905 values
visit_date
timestamp[us]date
2015-08-09 11:21:18
2023-09-06 10:45:07
revision_date
timestamp[us]date
1997-09-14 05:04:47
2023-09-17 19:19:19
committer_date
timestamp[us]date
1997-09-14 05:04:47
2023-09-06 06:22:19
github_id
int64
3.89k
681M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
22 values
gha_event_created_at
timestamp[us]date
2012-06-07 00:51:45
2023-09-14 21:58:39
gha_created_at
timestamp[us]date
2008-03-27 23:40:48
2023-08-21 23:17:38
gha_language
stringclasses
141 values
src_encoding
stringclasses
34 values
language
stringclasses
1 value
is_vendor
bool
1 class
is_generated
bool
2 classes
length_bytes
int64
3
10.4M
extension
stringclasses
115 values
content
stringlengths
3
10.4M
authors
listlengths
1
1
author_id
stringlengths
0
158
499fc8c8ba91cd2206d4db9346fc9fdaef98de2e
edff031510d95daa2ec19e0d82cb027ca6d23644
/Applications/QtApps/ParticleVisualizer/Source/Common.h
2a0488d21c4897b9930ef3fcbdf3e874c5ee63ef
[]
no_license
ttnghia/Banana
0993d1a16c29ef6038f908554c5701adba3563cd
c8b8d3c1f9e578dd3ff738d2d7268191f5a3e64a
refs/heads/master
2021-01-15T11:37:55.771324
2019-01-10T02:32:27
2019-01-10T02:32:27
99,623,257
8
0
null
null
null
null
UTF-8
C++
false
false
4,506
h
//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ //-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ // .--, .--, // ( ( \.---./ ) ) // '.__/o o\__.' // {= ^ =} // > - < // ___________________________.""`-------`"".____________________________ // / \ // \ This file is part of Banana - a general programming framework / // / Created: 2017 by Nghia Truong \ // \ <nghiatruong.vn@gmail.com> / // / https://ttnghia.github.io \ // \ All rights reserved. / // / \ // \______________________________________________________________________/ // ___)( )(___ // (((__) (__))) //-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ //-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ #pragma once //-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ #define DEFAULT_CAMERA_POSITION Vec3f(3.5, 0.5, 0) #define DEFAULT_CAMERA_FOCUS Vec3f(0, 0, 0) #define DEFAULT_LIGHT1_POSITION Vec4f(10, 10, -10, 1.0) #define DEFAULT_LIGHT2_POSITION Vec4f(-10, 10, 10, 1.0) #define DEFAULT_CLIP_PLANE Vec4f(0.0, 0.0, -1.0, 0.0) #define DEFAULT_CHECKERBOARD_COLOR1 Vec3f(0.9) #define DEFAULT_CHECKERBOARD_COLOR2 Vec3f(0.5) #define DEFAULT_BOX_COLOR Vec3f(0, 1, 0.5) #define DEFAULT_COLOR_DATA_MIN Vec3f(0.7, 0.87, 0.88) #define DEFAULT_COLOR_DATA_MAX Vec3f(0.98, 0.27, 0.35) #define CUSTOM_PARTICLE_MATERIAL \ { \ Vec4f(0.2 * 0.2), \ Vec4f(1.0, 0.63, 0.3, 1.00), \ Vec4f(1), \ 250.0, \ String("ParticleMaterial") \ } #define DEFAULT_CHECKERBOARD_GRID_SIZE 20 #define DEFAULT_FLOOR_SIZE 10 #define DEFAULT_FLOOR_EXPOSURE 50 #define DEFAULT_MESH_MATERIAL Material::MT_Brass #define DEFAULT_DELAY_TIME 40 #define NUM_MESHES 8 //-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ struct BackgroundMode { enum { SkyBox = 0, Color, Checkerboard, Grid, NumBackgroundMode }; }; struct ParticleColorMode { enum { UniformMaterial = 0, Random = 1, Ramp = 2, ObjectIndex = 3, VelocityMagnitude = 4, NumColorMode }; }; //-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ #include <Banana/Setup.h> namespace Banana {} using namespace Banana; //-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ #include <QString> #include <QDir> #include <Banana/Utils/AppConfigReader.h> inline QString getTexturePath() { AppConfigReader config("config.ini"); if(config.isFileLoaded() && config.hasParam("TexturePath")) { return QString::fromStdString(config.getStringValue("TexturePath")); } else { return QDir::currentPath() + "/Textures"; } } inline QString getDefaultCapturePath() { AppConfigReader config("config.ini"); if(config.isFileLoaded() && config.hasParam("CapturePath")) { return QString::fromStdString(config.getStringValue("CapturePath")); } else { return QDir::currentPath() + "/Capture"; } }
[ "nghiatruong.vn@gmail.com" ]
nghiatruong.vn@gmail.com
6268352b415a50625bca395f1997b9a8cbde8fd0
83a39ecd69821025ec221e33f8a0286c2a63d459
/tensorflow/core/grappler/costs/graph_properties.cc
21b73b6618dad9ac828d3f47f544868417824c77
[ "Apache-2.0" ]
permissive
benoitsteiner/tensorflow
7dc5c69ec74a148be1aba9f5c437deb99c184e44
c486fb82237f576e706e4f1536a18b2936062d80
refs/heads/master
2020-12-25T17:46:56.763406
2017-05-10T14:41:46
2017-06-15T03:17:19
57,066,583
2
1
null
2016-10-07T20:20:20
2016-04-25T18:39:13
C++
UTF-8
C++
false
false
9,731
cc
/* Copyright 2017 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ #include "tensorflow/core/grappler/costs/graph_properties.h" #include <queue> #include <unordered_map> #include <unordered_set> #include "tensorflow/core/common_runtime/shape_refiner.h" #include "tensorflow/core/framework/tensor_shape.pb.h" #include "tensorflow/core/graph/graph_constructor.h" #include "tensorflow/core/grappler/costs/utils.h" namespace tensorflow { namespace grappler { using shape_inference::InferenceContext; using shape_inference::ShapeAndType; using shape_inference::ShapeHandle; namespace { // Merges shapes <shapes_and_types>, determined from an EnqueueV2 node, into // <*queue_shapes_and_types>. Status MergeEnqueueShapesAndTypes( const std::vector<ShapeAndType>& shapes_and_types, InferenceContext* qctx, std::vector<ShapeAndType>* queue_shapes_and_types) { if (shapes_and_types.size() != queue_shapes_and_types->size()) { return errors::InvalidArgument( "Enqueue nodes mixed number of tensors: ", shapes_and_types.size(), " vs ", queue_shapes_and_types->size()); } for (int i = 0; i < shapes_and_types.size(); ++i) { const ShapeAndType& a = shapes_and_types[i]; ShapeAndType& b = (*queue_shapes_and_types)[i]; if (a.dtype != b.dtype) { return errors::InvalidArgument("Enqueue nodes mixed dtypes for tensor ", i, ": ", DataTypeString(a.dtype), " vs ", DataTypeString(b.dtype)); } TF_RETURN_IF_ERROR(qctx->Merge(a.shape, b.shape, &b.shape)); } return Status::OK(); } } // namespace Status GraphProperties::InferStatically() { Graph graph(OpRegistry::Global()); ShapeRefiner shape_refiner(graph.versions().producer(), graph.op_registry()); shape_refiner.set_require_shape_inference_fns(false); ImportGraphDefOptions options; Status s = ImportGraphDef(options, item_.graph, &graph, &shape_refiner); TF_RETURN_IF_ERROR(s); // List the resources and the nodes using them std::unordered_map<const Node*, std::unordered_set<const Node*>> resources; for (const Node* const node : graph.nodes()) { for (int i = 0; i < node->num_inputs(); ++i) { if (node->input_type(i) == DataType::DT_RESOURCE) { const Node* resource; TF_CHECK_OK(node->input_node(i, &resource)); resources[resource].insert(node); } } } // If we found a resource, try to propagate the shapes through it. bool done = true; do { std::queue<const Node*> new_shapes; for (const auto& resource_data : resources) { const Node* qnode = resource_data.first; StringPiece type(qnode->type_string()); if (!type.ends_with("QueueV2")) { continue; } auto qctx = shape_refiner.GetContext(qnode); if (!qctx) { continue; } // Check to see if the shape is fully defined. auto* queue_handle_data = qctx->output_handle_shapes_and_types(0); if (queue_handle_data != nullptr) { bool fully_defined = true; for (const auto& shape_and_type : *queue_handle_data) { if (!qctx->FullyDefined(shape_and_type.shape) || shape_and_type.dtype == DT_INVALID) { fully_defined = false; } } if (fully_defined) { continue; } } std::vector<ShapeAndType> queue_shapes_and_types; if (queue_handle_data != nullptr) { queue_shapes_and_types = *queue_handle_data; } for (const auto& node : resource_data.second) { auto ctx = shape_refiner.GetContext(node); if (!ctx) { continue; } // TODO(bsteiner): handle EnqueueMany as well. if (node->type_string().find("Enqueue") != std::string::npos && node->type_string().find("EnqueueMany") == std::string::npos) { std::vector<ShapeAndType> shapes_and_types; for (int i = 1; i < ctx->num_inputs(); ++i) { shapes_and_types.push_back({ctx->input(i), node->input_type(i)}); } if (queue_shapes_and_types.empty()) { queue_shapes_and_types = shapes_and_types; } else { TF_RETURN_IF_ERROR(MergeEnqueueShapesAndTypes( shapes_and_types, qctx, &queue_shapes_and_types)); } } } if (!queue_shapes_and_types.empty() && qctx->MergeOutputHandleShapesAndTypes(0, queue_shapes_and_types)) { new_shapes.push(qnode); } } // Propagate the shapes in the transitive fan-out of the queue. done = new_shapes.empty(); while (!new_shapes.empty()) { const Node* n = new_shapes.front(); new_shapes.pop(); for (const Node* fanout : n->out_nodes()) { bool updated = false; TF_RETURN_IF_ERROR(shape_refiner.UpdateNode(fanout, &updated)); if (updated) { new_shapes.push(fanout); } } } } while (!done); for (const Node* const node : graph.nodes()) { VLOG(1) << "<Node> " << node->name(); auto ctx = shape_refiner.GetContext(node); if (!ctx) { continue; } CHECK_EQ(ctx->num_inputs(), node->num_inputs()); std::vector<OpInfo::TensorProperties> input_properties; for (int i = 0; i < ctx->num_inputs(); ++i) { OpInfo::TensorProperties properties; properties.set_dtype(node->input_type(i)); ShapeHandle shp = ctx->input(i); if (!ctx->RankKnown(shp)) { properties.mutable_shape()->set_unknown_rank(true); } else { for (int j = 0; j < ctx->Rank(shp); ++j) { shape_inference::DimensionHandle dim = ctx->Dim(shp, j); int64 d = ctx->Value(dim); properties.mutable_shape()->add_dim()->set_size(d); } } input_properties.push_back(properties); } input_properties_[node->name()] = input_properties; // TODO(bsteiner): share this code with the input processing above. CHECK_EQ(ctx->num_outputs(), node->num_outputs()); std::vector<OpInfo::TensorProperties> output_properties; for (int i = 0; i < ctx->num_outputs(); ++i) { OpInfo::TensorProperties properties; properties.set_dtype(node->output_type(i)); ShapeHandle shp = ctx->output(i); if (!ctx->RankKnown(shp)) { properties.mutable_shape()->set_unknown_rank(true); } else { for (int j = 0; j < ctx->Rank(shp); ++j) { shape_inference::DimensionHandle dim = ctx->Dim(shp, j); int64 d = ctx->Value(dim); properties.mutable_shape()->add_dim()->set_size(d); } } output_properties.push_back(properties); } output_properties_[node->name()] = output_properties; } return Status::OK(); } Status GraphProperties::InferDynamically(Cluster* cluster) { TF_RETURN_IF_ERROR(cluster->Initialize(item_)); // Runs the model once to collect the shapes in the cost model. RunMetadata metadata; TF_RETURN_IF_ERROR( cluster->Run(item_.graph, item_.feed, item_.fetch, &metadata)); return InferFromCostGraph(metadata.cost_graph()); } Status GraphProperties::InferFromCostGraph(const CostGraphDef& cost_graph) { std::unordered_map<string, const CostGraphDef::Node*> name_to_cost; std::unordered_map<string, const NodeDef*> name_to_node; // Empty for (auto& node : cost_graph.node()) { name_to_cost[node.name()] = &node; std::vector<OpInfo::TensorProperties> output_properties; for (const auto& out : node.output_info()) { OpInfo::TensorProperties properties; properties.set_dtype(out.dtype()); *properties.mutable_shape() = out.shape(); output_properties.push_back(properties); } output_properties_[node.name()] = output_properties; } for (const auto& node : item_.graph.node()) { // Skip the nodes that are not in the cost graph: these are nodes that // aren't run, because they aren't in the intersection of transitive fan-in // of a fetch node and the transitive fan-out of an input, or nodes that // were optimized away by the optimizer. auto it = name_to_cost.find(node.name()); if (it == name_to_cost.end()) { continue; } std::vector<OpInfo::TensorProperties> inputs = FindInputFeatures(node, name_to_cost, name_to_node); input_properties_[node.name()] = inputs; } return Status::OK(); } bool GraphProperties::HasOutputProperties(const string& name) const { return output_properties_.find(name) != output_properties_.end(); } std::vector<OpInfo::TensorProperties> GraphProperties::GetInputProperties( const string& node_name) const { auto it = input_properties_.find(node_name); if (it != input_properties_.end()) { return it->second; } return std::vector<OpInfo::TensorProperties>(); } std::vector<OpInfo::TensorProperties> GraphProperties::GetOutputProperties( const string& node_name) const { auto it = output_properties_.find(node_name); if (it != output_properties_.end()) { return it->second; } return std::vector<OpInfo::TensorProperties>(); } } // end namespace grappler } // end namespace tensorflow
[ "gardener@tensorflow.org" ]
gardener@tensorflow.org
6dcebad95fa2c557de710530341a61fe49b9ae9d
6cb087d7f69993a9daaf37d46c5a4832788932fb
/Labo_Tarea6/clinica.cpp
7c74f63abe65f1ad383a778d05696a4033cbe485
[]
no_license
JonathanMena/00173421-GrupoC
3fecc3f9c5030b4824aae5a269c1532cd6efc096
6e3c2290adfb60643df368c2f2791e68db5ec99c
refs/heads/master
2023-09-05T00:30:35.088471
2021-11-25T04:06:41
2021-11-25T04:06:41
410,051,128
0
0
null
null
null
null
UTF-8
C++
false
false
5,443
cpp
#include <iostream> #include <string> using namespace std; struct nodo{ int id; string nameOwers; string race; float weight; int age; nodo *sig; }; class ListaCircSimple{ private: nodo *pInicio; public: ListaCircSimple(); ~ListaCircSimple(); void eliminarListaCircRec(nodo *); void insertaNodo(void); void insInicio(int id, string dueno, string raza, float peso, int edad); void eliRegistro(void); bool eliminar(int id); void searchRegistro(void); void buscar(int id); }; ListaCircSimple::ListaCircSimple(void) { pInicio = NULL; } ListaCircSimple::~ListaCircSimple() { cout << "Destructor ejecutándose" << endl; if(pInicio){ eliminarListaCircRec(pInicio); pInicio = NULL; } } void ListaCircSimple::eliminarListaCircRec(nodo *p){ if(p->sig != pInicio) eliminarListaCircRec(p->sig); delete p; } void ListaCircSimple::insertaNodo(void) { int id; string nameOwers; string race; float weight; int age; cout << "Registro de mascota" <<endl; cout << "Mascota Id: "; cin >> id; cout << "Dueño: "; cin >> nameOwers; cout << "Raza: "; cin >> race; cout << "Peso: "; cin >> weight; cout << "Edad: "; cin >> age; insInicio(id, nameOwers, race, weight, age); } void ListaCircSimple::insInicio(int id, string dueno, string raza, float peso, int edad) { nodo *nuevo; nuevo = new nodo; nuevo->id = id; nuevo->nameOwers = dueno; nuevo->race = raza; nuevo->weight = peso; nuevo->age = edad; if(!pInicio){ pInicio = nuevo; pInicio->sig = pInicio; } else{ nuevo->sig = pInicio; nodo *saltarin = pInicio; while(saltarin->sig != pInicio){ saltarin = saltarin->sig; } saltarin->sig = nuevo; pInicio = nuevo; } } void ListaCircSimple::eliRegistro(void) { int dato = 0; bool aux; cout << "Id a Eliminar: " << endl; cin >> dato; aux = eliminar(dato); if (aux) { cout << "El registro fue eliminado exitosamente " << endl << endl; }else{ cout << "Id inexiste " << endl << endl; } } void ListaCircSimple::searchRegistro(void) { int dato = 0; bool aux; cout << "Id del registro que desea buscar: " << endl; cin >> dato; buscar(dato); } bool ListaCircSimple::eliminar(int dato) { if(!pInicio){ return false; } else { nodo *s = pInicio, *p; if(s->id == dato) { pInicio = pInicio->sig; delete s; return true; } else { while (s->sig && s->sig->id != dato) s = s->sig; if (!s->sig) { return false; } else { p = p->sig; s->sig = s->sig->sig; delete p; return true; } } } } void ListaCircSimple::buscar(int dato) { if(!pInicio){ cout << "La lista esta vacia" <<endl; } else { nodo *s = pInicio, *p; if(s->id == dato) { pInicio = pInicio->sig; cout << "----------------------" <<endl; cout << "ID: " << pInicio->id <<endl; cout << "Dueño: " << pInicio->nameOwers <<endl; cout << "Raza: " << pInicio->race <<endl; cout << "Peso: " << pInicio->weight <<endl; cout << "Edad: " << pInicio->age <<endl; cout << "----------------------" <<endl; } else { while (s->sig && s->sig->id != dato) s = s->sig; if (!s->sig) { cout << "No encontre el registro" <<endl; } else { p = p->sig; s->sig = s->sig->sig; cout << "----------------------" <<endl; cout << "ID: " << s->id <<endl; cout << "Dueño: " << s->nameOwers <<endl; cout << "Raza: " << s->race <<endl; cout << "Peso: " << s->weight <<endl; cout << "Edad: " << s->age <<endl; cout << "----------------------" <<endl; } } } } int main(void) { bool continuar = true; int opcion = 0; ListaCircSimple objListaCircSimple; cout << endl; cout << "ADMINISTRACIÓN DE VETERINARIA" << endl << endl; do{ cout << "1) Ingresar mascota." << endl; cout << "2) Mostrar una mascota." << endl; cout << "3) Borrar una mascota." << endl; cout << "4) Salir." << endl; cout << "Opcion: "; cin >> opcion; switch (opcion) { case 1: objListaCircSimple.insertaNodo(); cout << "Se a registrado la mascota con exito!" <<endl; break; case 2: objListaCircSimple.searchRegistro(); break; case 3: objListaCircSimple.eliRegistro(); break; case 4: continuar = false; break; default: cout << "La opcion no es valida, favor intente denuevo." << endl; break; } } while (continuar); return 0; }
[ "00173421@uca.edu.sv" ]
00173421@uca.edu.sv
410e800aa172282c9aa563ab9f73195cca79749b
aa1529f689a962f5af337cb4476e0b8908396e2a
/gnu/llvm/libunwind/src/DwarfParser.hpp
b6c9079e7621951295c7cbbdca50bcc191283600
[ "MIT", "NCSA", "Apache-2.0", "LLVM-exception" ]
permissive
netzbasis/openbsd-src
4b85ec60a3de43a57f4816ae04b363710c4b1c20
d934f830de7af7ac65c21e2af85a2e04cf7d2e7f
refs/heads/master
2021-05-22T07:59:33.483036
2021-01-09T22:58:59
2021-01-09T22:58:59
22,029,913
4
2
null
2021-01-09T17:17:55
2014-07-20T09:19:31
null
UTF-8
C++
false
false
31,783
hpp
//===--------------------------- DwarfParser.hpp --------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // // // Parses DWARF CFIs (FDEs and CIEs). // //===----------------------------------------------------------------------===// #ifndef __DWARF_PARSER_HPP__ #define __DWARF_PARSER_HPP__ #include <inttypes.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include "libunwind.h" #include "dwarf2.h" #include "Registers.hpp" #include "config.h" namespace libunwind { /// CFI_Parser does basic parsing of a CFI (Call Frame Information) records. /// See DWARF Spec for details: /// http://refspecs.linuxbase.org/LSB_3.1.0/LSB-Core-generic/LSB-Core-generic/ehframechpt.html /// template <typename A> class CFI_Parser { public: typedef typename A::pint_t pint_t; /// Information encoded in a CIE (Common Information Entry) struct CIE_Info { pint_t cieStart; pint_t cieLength; pint_t cieInstructions; uint8_t pointerEncoding; uint8_t lsdaEncoding; uint8_t personalityEncoding; uint8_t personalityOffsetInCIE; pint_t personality; uint32_t codeAlignFactor; int dataAlignFactor; bool isSignalFrame; bool fdesHaveAugmentationData; uint8_t returnAddressRegister; #if defined(_LIBUNWIND_TARGET_AARCH64) bool addressesSignedWithBKey; #endif }; /// Information about an FDE (Frame Description Entry) struct FDE_Info { pint_t fdeStart; pint_t fdeLength; pint_t fdeInstructions; pint_t pcStart; pint_t pcEnd; pint_t lsda; }; enum { kMaxRegisterNumber = _LIBUNWIND_HIGHEST_DWARF_REGISTER }; enum RegisterSavedWhere { kRegisterUnused, kRegisterInCFA, kRegisterInCFADecrypt, kRegisterOffsetFromCFA, kRegisterInRegister, kRegisterAtExpression, kRegisterIsExpression }; struct RegisterLocation { RegisterSavedWhere location; bool initialStateSaved; int64_t value; }; /// Information about a frame layout and registers saved determined /// by "running" the DWARF FDE "instructions" struct PrologInfo { uint32_t cfaRegister; int32_t cfaRegisterOffset; // CFA = (cfaRegister)+cfaRegisterOffset int64_t cfaExpression; // CFA = expression uint32_t spExtraArgSize; uint32_t codeOffsetAtStackDecrement; bool registersInOtherRegisters; bool sameValueUsed; RegisterLocation savedRegisters[kMaxRegisterNumber + 1]; enum class InitializeTime { kLazy, kNormal }; // When saving registers, this data structure is lazily initialized. PrologInfo(InitializeTime IT = InitializeTime::kNormal) { if (IT == InitializeTime::kNormal) memset(this, 0, sizeof(*this)); } void checkSaveRegister(uint64_t reg, PrologInfo &initialState) { if (!savedRegisters[reg].initialStateSaved) { initialState.savedRegisters[reg] = savedRegisters[reg]; savedRegisters[reg].initialStateSaved = true; } } void setRegister(uint64_t reg, RegisterSavedWhere newLocation, int64_t newValue, PrologInfo &initialState) { checkSaveRegister(reg, initialState); savedRegisters[reg].location = newLocation; savedRegisters[reg].value = newValue; } void setRegisterLocation(uint64_t reg, RegisterSavedWhere newLocation, PrologInfo &initialState) { checkSaveRegister(reg, initialState); savedRegisters[reg].location = newLocation; } void setRegisterValue(uint64_t reg, int64_t newValue, PrologInfo &initialState) { checkSaveRegister(reg, initialState); savedRegisters[reg].value = newValue; } void restoreRegisterToInitialState(uint64_t reg, PrologInfo &initialState) { if (savedRegisters[reg].initialStateSaved) savedRegisters[reg] = initialState.savedRegisters[reg]; // else the register still holds its initial state } }; struct PrologInfoStackEntry { PrologInfoStackEntry(PrologInfoStackEntry *n, const PrologInfo &i) : next(n), info(i) {} PrologInfoStackEntry *next; PrologInfo info; }; static bool findFDE(A &addressSpace, pint_t pc, pint_t ehSectionStart, uint32_t sectionLength, pint_t fdeHint, FDE_Info *fdeInfo, CIE_Info *cieInfo); static const char *decodeFDE(A &addressSpace, pint_t fdeStart, FDE_Info *fdeInfo, CIE_Info *cieInfo); static bool parseFDEInstructions(A &addressSpace, const FDE_Info &fdeInfo, const CIE_Info &cieInfo, pint_t upToPC, int arch, PrologInfo *results); static const char *parseCIE(A &addressSpace, pint_t cie, CIE_Info *cieInfo); private: static bool parseInstructions(A &addressSpace, pint_t instructions, pint_t instructionsEnd, const CIE_Info &cieInfo, pint_t pcoffset, PrologInfoStackEntry *&rememberStack, int arch, PrologInfo *results); }; /// Parse a FDE into a CIE_Info and an FDE_Info template <typename A> const char *CFI_Parser<A>::decodeFDE(A &addressSpace, pint_t fdeStart, FDE_Info *fdeInfo, CIE_Info *cieInfo) { pint_t p = fdeStart; pint_t cfiLength = (pint_t)addressSpace.get32(p); p += 4; if (cfiLength == 0xffffffff) { // 0xffffffff means length is really next 8 bytes cfiLength = (pint_t)addressSpace.get64(p); p += 8; } if (cfiLength == 0) return "FDE has zero length"; // end marker uint32_t ciePointer = addressSpace.get32(p); if (ciePointer == 0) return "FDE is really a CIE"; // this is a CIE not an FDE pint_t nextCFI = p + cfiLength; pint_t cieStart = p - ciePointer; const char *err = parseCIE(addressSpace, cieStart, cieInfo); if (err != NULL) return err; p += 4; // Parse pc begin and range. pint_t pcStart = addressSpace.getEncodedP(p, nextCFI, cieInfo->pointerEncoding); pint_t pcRange = addressSpace.getEncodedP(p, nextCFI, cieInfo->pointerEncoding & 0x0F); // Parse rest of info. fdeInfo->lsda = 0; // Check for augmentation length. if (cieInfo->fdesHaveAugmentationData) { pint_t augLen = (pint_t)addressSpace.getULEB128(p, nextCFI); pint_t endOfAug = p + augLen; if (cieInfo->lsdaEncoding != DW_EH_PE_omit) { // Peek at value (without indirection). Zero means no LSDA. pint_t lsdaStart = p; if (addressSpace.getEncodedP(p, nextCFI, cieInfo->lsdaEncoding & 0x0F) != 0) { // Reset pointer and re-parse LSDA address. p = lsdaStart; fdeInfo->lsda = addressSpace.getEncodedP(p, nextCFI, cieInfo->lsdaEncoding); } } p = endOfAug; } fdeInfo->fdeStart = fdeStart; fdeInfo->fdeLength = nextCFI - fdeStart; fdeInfo->fdeInstructions = p; fdeInfo->pcStart = pcStart; fdeInfo->pcEnd = pcStart + pcRange; return NULL; // success } /// Scan an eh_frame section to find an FDE for a pc template <typename A> bool CFI_Parser<A>::findFDE(A &addressSpace, pint_t pc, pint_t ehSectionStart, uint32_t sectionLength, pint_t fdeHint, FDE_Info *fdeInfo, CIE_Info *cieInfo) { //fprintf(stderr, "findFDE(0x%llX)\n", (long long)pc); pint_t p = (fdeHint != 0) ? fdeHint : ehSectionStart; const pint_t ehSectionEnd = p + sectionLength; while (p < ehSectionEnd) { pint_t currentCFI = p; //fprintf(stderr, "findFDE() CFI at 0x%llX\n", (long long)p); pint_t cfiLength = addressSpace.get32(p); p += 4; if (cfiLength == 0xffffffff) { // 0xffffffff means length is really next 8 bytes cfiLength = (pint_t)addressSpace.get64(p); p += 8; } if (cfiLength == 0) return false; // end marker uint32_t id = addressSpace.get32(p); if (id == 0) { // Skip over CIEs. p += cfiLength; } else { // Process FDE to see if it covers pc. pint_t nextCFI = p + cfiLength; uint32_t ciePointer = addressSpace.get32(p); pint_t cieStart = p - ciePointer; // Validate pointer to CIE is within section. if ((ehSectionStart <= cieStart) && (cieStart < ehSectionEnd)) { if (parseCIE(addressSpace, cieStart, cieInfo) == NULL) { p += 4; // Parse pc begin and range. pint_t pcStart = addressSpace.getEncodedP(p, nextCFI, cieInfo->pointerEncoding); pint_t pcRange = addressSpace.getEncodedP( p, nextCFI, cieInfo->pointerEncoding & 0x0F); // Test if pc is within the function this FDE covers. if ((pcStart < pc) && (pc <= pcStart + pcRange)) { // parse rest of info fdeInfo->lsda = 0; // check for augmentation length if (cieInfo->fdesHaveAugmentationData) { pint_t augLen = (pint_t)addressSpace.getULEB128(p, nextCFI); pint_t endOfAug = p + augLen; if (cieInfo->lsdaEncoding != DW_EH_PE_omit) { // Peek at value (without indirection). Zero means no LSDA. pint_t lsdaStart = p; if (addressSpace.getEncodedP( p, nextCFI, cieInfo->lsdaEncoding & 0x0F) != 0) { // Reset pointer and re-parse LSDA address. p = lsdaStart; fdeInfo->lsda = addressSpace .getEncodedP(p, nextCFI, cieInfo->lsdaEncoding); } } p = endOfAug; } fdeInfo->fdeStart = currentCFI; fdeInfo->fdeLength = nextCFI - currentCFI; fdeInfo->fdeInstructions = p; fdeInfo->pcStart = pcStart; fdeInfo->pcEnd = pcStart + pcRange; return true; } else { // pc is not in begin/range, skip this FDE } } else { // Malformed CIE, now augmentation describing pc range encoding. } } else { // malformed FDE. CIE is bad } p = nextCFI; } } return false; } /// Extract info from a CIE template <typename A> const char *CFI_Parser<A>::parseCIE(A &addressSpace, pint_t cie, CIE_Info *cieInfo) { cieInfo->pointerEncoding = 0; cieInfo->lsdaEncoding = DW_EH_PE_omit; cieInfo->personalityEncoding = 0; cieInfo->personalityOffsetInCIE = 0; cieInfo->personality = 0; cieInfo->codeAlignFactor = 0; cieInfo->dataAlignFactor = 0; cieInfo->isSignalFrame = false; cieInfo->fdesHaveAugmentationData = false; #if defined(_LIBUNWIND_TARGET_AARCH64) cieInfo->addressesSignedWithBKey = false; #endif cieInfo->cieStart = cie; pint_t p = cie; pint_t cieLength = (pint_t)addressSpace.get32(p); p += 4; pint_t cieContentEnd = p + cieLength; if (cieLength == 0xffffffff) { // 0xffffffff means length is really next 8 bytes cieLength = (pint_t)addressSpace.get64(p); p += 8; cieContentEnd = p + cieLength; } if (cieLength == 0) return NULL; // CIE ID is always 0 if (addressSpace.get32(p) != 0) return "CIE ID is not zero"; p += 4; // Version is always 1 or 3 uint8_t version = addressSpace.get8(p); if ((version != 1) && (version != 3)) return "CIE version is not 1 or 3"; ++p; // save start of augmentation string and find end pint_t strStart = p; while (addressSpace.get8(p) != 0) ++p; ++p; // parse code aligment factor cieInfo->codeAlignFactor = (uint32_t)addressSpace.getULEB128(p, cieContentEnd); // parse data alignment factor cieInfo->dataAlignFactor = (int)addressSpace.getSLEB128(p, cieContentEnd); // parse return address register uint64_t raReg = addressSpace.getULEB128(p, cieContentEnd); assert(raReg < 255 && "return address register too large"); cieInfo->returnAddressRegister = (uint8_t)raReg; // parse augmentation data based on augmentation string const char *result = NULL; if (addressSpace.get8(strStart) == 'z') { // parse augmentation data length addressSpace.getULEB128(p, cieContentEnd); for (pint_t s = strStart; addressSpace.get8(s) != '\0'; ++s) { switch (addressSpace.get8(s)) { case 'z': cieInfo->fdesHaveAugmentationData = true; break; case 'P': cieInfo->personalityEncoding = addressSpace.get8(p); ++p; cieInfo->personalityOffsetInCIE = (uint8_t)(p - cie); cieInfo->personality = addressSpace .getEncodedP(p, cieContentEnd, cieInfo->personalityEncoding); break; case 'L': cieInfo->lsdaEncoding = addressSpace.get8(p); ++p; break; case 'R': cieInfo->pointerEncoding = addressSpace.get8(p); ++p; break; case 'S': cieInfo->isSignalFrame = true; break; #if defined(_LIBUNWIND_TARGET_AARCH64) case 'B': cieInfo->addressesSignedWithBKey = true; break; #endif default: // ignore unknown letters break; } } } cieInfo->cieLength = cieContentEnd - cieInfo->cieStart; cieInfo->cieInstructions = p; return result; } /// "run" the DWARF instructions and create the abstact PrologInfo for an FDE template <typename A> bool CFI_Parser<A>::parseFDEInstructions(A &addressSpace, const FDE_Info &fdeInfo, const CIE_Info &cieInfo, pint_t upToPC, int arch, PrologInfo *results) { PrologInfoStackEntry *rememberStack = NULL; // parse CIE then FDE instructions bool returnValue = parseInstructions(addressSpace, cieInfo.cieInstructions, cieInfo.cieStart + cieInfo.cieLength, cieInfo, (pint_t)(-1), rememberStack, arch, results) && parseInstructions(addressSpace, fdeInfo.fdeInstructions, fdeInfo.fdeStart + fdeInfo.fdeLength, cieInfo, upToPC - fdeInfo.pcStart, rememberStack, arch, results); #if !defined(_LIBUNWIND_NO_HEAP) // Clean up rememberStack. Even in the case where every DW_CFA_remember_state // is paired with a DW_CFA_restore_state, parseInstructions can skip restore // opcodes if it reaches the target PC and stops interpreting, so we have to // make sure we don't leak memory. while (rememberStack) { PrologInfoStackEntry *next = rememberStack->next; free(rememberStack); rememberStack = next; } #endif return returnValue; } /// "run" the DWARF instructions template <typename A> bool CFI_Parser<A>::parseInstructions(A &addressSpace, pint_t instructions, pint_t instructionsEnd, const CIE_Info &cieInfo, pint_t pcoffset, PrologInfoStackEntry *&rememberStack, int arch, PrologInfo *results) { pint_t p = instructions; pint_t codeOffset = 0; // initialState initialized as registers in results are modified. Use // PrologInfo accessor functions to avoid reading uninitialized data. PrologInfo initialState(PrologInfo::InitializeTime::kLazy); _LIBUNWIND_TRACE_DWARF("parseInstructions(instructions=0x%0" PRIx64 ")\n", static_cast<uint64_t>(instructionsEnd)); // see DWARF Spec, section 6.4.2 for details on unwind opcodes while ((p < instructionsEnd) && (codeOffset < pcoffset)) { uint64_t reg; uint64_t reg2; int64_t offset; uint64_t length; uint8_t opcode = addressSpace.get8(p); uint8_t operand; #if !defined(_LIBUNWIND_NO_HEAP) PrologInfoStackEntry *entry; #endif ++p; switch (opcode) { case DW_CFA_nop: _LIBUNWIND_TRACE_DWARF("DW_CFA_nop\n"); break; case DW_CFA_set_loc: codeOffset = addressSpace.getEncodedP(p, instructionsEnd, cieInfo.pointerEncoding); _LIBUNWIND_TRACE_DWARF("DW_CFA_set_loc\n"); break; case DW_CFA_advance_loc1: codeOffset += (addressSpace.get8(p) * cieInfo.codeAlignFactor); p += 1; _LIBUNWIND_TRACE_DWARF("DW_CFA_advance_loc1: new offset=%" PRIu64 "\n", static_cast<uint64_t>(codeOffset)); break; case DW_CFA_advance_loc2: codeOffset += (addressSpace.get16(p) * cieInfo.codeAlignFactor); p += 2; _LIBUNWIND_TRACE_DWARF("DW_CFA_advance_loc2: new offset=%" PRIu64 "\n", static_cast<uint64_t>(codeOffset)); break; case DW_CFA_advance_loc4: codeOffset += (addressSpace.get32(p) * cieInfo.codeAlignFactor); p += 4; _LIBUNWIND_TRACE_DWARF("DW_CFA_advance_loc4: new offset=%" PRIu64 "\n", static_cast<uint64_t>(codeOffset)); break; case DW_CFA_offset_extended: reg = addressSpace.getULEB128(p, instructionsEnd); offset = (int64_t)addressSpace.getULEB128(p, instructionsEnd) * cieInfo.dataAlignFactor; if (reg > kMaxRegisterNumber) { _LIBUNWIND_LOG0( "malformed DW_CFA_offset_extended DWARF unwind, reg too big"); return false; } results->setRegister(reg, kRegisterInCFA, offset, initialState); _LIBUNWIND_TRACE_DWARF("DW_CFA_offset_extended(reg=%" PRIu64 ", " "offset=%" PRId64 ")\n", reg, offset); break; case DW_CFA_restore_extended: reg = addressSpace.getULEB128(p, instructionsEnd); if (reg > kMaxRegisterNumber) { _LIBUNWIND_LOG0( "malformed DW_CFA_restore_extended DWARF unwind, reg too big"); return false; } results->restoreRegisterToInitialState(reg, initialState); _LIBUNWIND_TRACE_DWARF("DW_CFA_restore_extended(reg=%" PRIu64 ")\n", reg); break; case DW_CFA_undefined: reg = addressSpace.getULEB128(p, instructionsEnd); if (reg > kMaxRegisterNumber) { _LIBUNWIND_LOG0( "malformed DW_CFA_undefined DWARF unwind, reg too big"); return false; } results->setRegisterLocation(reg, kRegisterUnused, initialState); _LIBUNWIND_TRACE_DWARF("DW_CFA_undefined(reg=%" PRIu64 ")\n", reg); break; case DW_CFA_same_value: reg = addressSpace.getULEB128(p, instructionsEnd); if (reg > kMaxRegisterNumber) { _LIBUNWIND_LOG0( "malformed DW_CFA_same_value DWARF unwind, reg too big"); return false; } // <rdar://problem/8456377> DW_CFA_same_value unsupported // "same value" means register was stored in frame, but its current // value has not changed, so no need to restore from frame. // We model this as if the register was never saved. results->setRegisterLocation(reg, kRegisterUnused, initialState); // set flag to disable conversion to compact unwind results->sameValueUsed = true; _LIBUNWIND_TRACE_DWARF("DW_CFA_same_value(reg=%" PRIu64 ")\n", reg); break; case DW_CFA_register: reg = addressSpace.getULEB128(p, instructionsEnd); reg2 = addressSpace.getULEB128(p, instructionsEnd); if (reg > kMaxRegisterNumber) { _LIBUNWIND_LOG0( "malformed DW_CFA_register DWARF unwind, reg too big"); return false; } if (reg2 > kMaxRegisterNumber) { _LIBUNWIND_LOG0( "malformed DW_CFA_register DWARF unwind, reg2 too big"); return false; } results->setRegister(reg, kRegisterInRegister, (int64_t)reg2, initialState); // set flag to disable conversion to compact unwind results->registersInOtherRegisters = true; _LIBUNWIND_TRACE_DWARF( "DW_CFA_register(reg=%" PRIu64 ", reg2=%" PRIu64 ")\n", reg, reg2); break; #if !defined(_LIBUNWIND_NO_HEAP) case DW_CFA_remember_state: // avoid operator new, because that would be an upward dependency entry = (PrologInfoStackEntry *)malloc(sizeof(PrologInfoStackEntry)); if (entry != NULL) { entry->next = rememberStack; entry->info = *results; rememberStack = entry; } else { return false; } _LIBUNWIND_TRACE_DWARF("DW_CFA_remember_state\n"); break; case DW_CFA_restore_state: if (rememberStack != NULL) { PrologInfoStackEntry *top = rememberStack; *results = top->info; rememberStack = top->next; free((char *)top); } else { return false; } _LIBUNWIND_TRACE_DWARF("DW_CFA_restore_state\n"); break; #endif case DW_CFA_def_cfa: reg = addressSpace.getULEB128(p, instructionsEnd); offset = (int64_t)addressSpace.getULEB128(p, instructionsEnd); if (reg > kMaxRegisterNumber) { _LIBUNWIND_LOG0("malformed DW_CFA_def_cfa DWARF unwind, reg too big"); return false; } results->cfaRegister = (uint32_t)reg; results->cfaRegisterOffset = (int32_t)offset; _LIBUNWIND_TRACE_DWARF( "DW_CFA_def_cfa(reg=%" PRIu64 ", offset=%" PRIu64 ")\n", reg, offset); break; case DW_CFA_def_cfa_register: reg = addressSpace.getULEB128(p, instructionsEnd); if (reg > kMaxRegisterNumber) { _LIBUNWIND_LOG0( "malformed DW_CFA_def_cfa_register DWARF unwind, reg too big"); return false; } results->cfaRegister = (uint32_t)reg; _LIBUNWIND_TRACE_DWARF("DW_CFA_def_cfa_register(%" PRIu64 ")\n", reg); break; case DW_CFA_def_cfa_offset: results->cfaRegisterOffset = (int32_t) addressSpace.getULEB128(p, instructionsEnd); results->codeOffsetAtStackDecrement = (uint32_t)codeOffset; _LIBUNWIND_TRACE_DWARF("DW_CFA_def_cfa_offset(%d)\n", results->cfaRegisterOffset); break; case DW_CFA_def_cfa_expression: results->cfaRegister = 0; results->cfaExpression = (int64_t)p; length = addressSpace.getULEB128(p, instructionsEnd); assert(length < static_cast<pint_t>(~0) && "pointer overflow"); p += static_cast<pint_t>(length); _LIBUNWIND_TRACE_DWARF("DW_CFA_def_cfa_expression(expression=0x%" PRIx64 ", length=%" PRIu64 ")\n", results->cfaExpression, length); break; case DW_CFA_expression: reg = addressSpace.getULEB128(p, instructionsEnd); if (reg > kMaxRegisterNumber) { _LIBUNWIND_LOG0( "malformed DW_CFA_expression DWARF unwind, reg too big"); return false; } results->setRegister(reg, kRegisterAtExpression, (int64_t)p, initialState); length = addressSpace.getULEB128(p, instructionsEnd); assert(length < static_cast<pint_t>(~0) && "pointer overflow"); p += static_cast<pint_t>(length); _LIBUNWIND_TRACE_DWARF("DW_CFA_expression(reg=%" PRIu64 ", " "expression=0x%" PRIx64 ", " "length=%" PRIu64 ")\n", reg, results->savedRegisters[reg].value, length); break; case DW_CFA_offset_extended_sf: reg = addressSpace.getULEB128(p, instructionsEnd); if (reg > kMaxRegisterNumber) { _LIBUNWIND_LOG0( "malformed DW_CFA_offset_extended_sf DWARF unwind, reg too big"); return false; } offset = addressSpace.getSLEB128(p, instructionsEnd) * cieInfo.dataAlignFactor; results->setRegister(reg, kRegisterInCFA, offset, initialState); _LIBUNWIND_TRACE_DWARF("DW_CFA_offset_extended_sf(reg=%" PRIu64 ", " "offset=%" PRId64 ")\n", reg, offset); break; case DW_CFA_def_cfa_sf: reg = addressSpace.getULEB128(p, instructionsEnd); offset = addressSpace.getSLEB128(p, instructionsEnd) * cieInfo.dataAlignFactor; if (reg > kMaxRegisterNumber) { _LIBUNWIND_LOG0( "malformed DW_CFA_def_cfa_sf DWARF unwind, reg too big"); return false; } results->cfaRegister = (uint32_t)reg; results->cfaRegisterOffset = (int32_t)offset; _LIBUNWIND_TRACE_DWARF("DW_CFA_def_cfa_sf(reg=%" PRIu64 ", " "offset=%" PRId64 ")\n", reg, offset); break; case DW_CFA_def_cfa_offset_sf: results->cfaRegisterOffset = (int32_t) (addressSpace.getSLEB128(p, instructionsEnd) * cieInfo.dataAlignFactor); results->codeOffsetAtStackDecrement = (uint32_t)codeOffset; _LIBUNWIND_TRACE_DWARF("DW_CFA_def_cfa_offset_sf(%d)\n", results->cfaRegisterOffset); break; case DW_CFA_val_offset: reg = addressSpace.getULEB128(p, instructionsEnd); if (reg > kMaxRegisterNumber) { _LIBUNWIND_LOG( "malformed DW_CFA_val_offset DWARF unwind, reg (%" PRIu64 ") out of range\n", reg); return false; } offset = (int64_t)addressSpace.getULEB128(p, instructionsEnd) * cieInfo.dataAlignFactor; results->setRegister(reg, kRegisterOffsetFromCFA, offset, initialState); _LIBUNWIND_TRACE_DWARF("DW_CFA_val_offset(reg=%" PRIu64 ", " "offset=%" PRId64 "\n", reg, offset); break; case DW_CFA_val_offset_sf: reg = addressSpace.getULEB128(p, instructionsEnd); if (reg > kMaxRegisterNumber) { _LIBUNWIND_LOG0( "malformed DW_CFA_val_offset_sf DWARF unwind, reg too big"); return false; } offset = addressSpace.getSLEB128(p, instructionsEnd) * cieInfo.dataAlignFactor; results->setRegister(reg, kRegisterOffsetFromCFA, offset, initialState); _LIBUNWIND_TRACE_DWARF("DW_CFA_val_offset_sf(reg=%" PRIu64 ", " "offset=%" PRId64 "\n", reg, offset); break; case DW_CFA_val_expression: reg = addressSpace.getULEB128(p, instructionsEnd); if (reg > kMaxRegisterNumber) { _LIBUNWIND_LOG0( "malformed DW_CFA_val_expression DWARF unwind, reg too big"); return false; } results->setRegister(reg, kRegisterIsExpression, (int64_t)p, initialState); length = addressSpace.getULEB128(p, instructionsEnd); assert(length < static_cast<pint_t>(~0) && "pointer overflow"); p += static_cast<pint_t>(length); _LIBUNWIND_TRACE_DWARF("DW_CFA_val_expression(reg=%" PRIu64 ", " "expression=0x%" PRIx64 ", length=%" PRIu64 ")\n", reg, results->savedRegisters[reg].value, length); break; case DW_CFA_GNU_args_size: length = addressSpace.getULEB128(p, instructionsEnd); results->spExtraArgSize = (uint32_t)length; _LIBUNWIND_TRACE_DWARF("DW_CFA_GNU_args_size(%" PRIu64 ")\n", length); break; case DW_CFA_GNU_negative_offset_extended: reg = addressSpace.getULEB128(p, instructionsEnd); if (reg > kMaxRegisterNumber) { _LIBUNWIND_LOG0("malformed DW_CFA_GNU_negative_offset_extended DWARF " "unwind, reg too big"); return false; } offset = (int64_t)addressSpace.getULEB128(p, instructionsEnd) * cieInfo.dataAlignFactor; results->setRegister(reg, kRegisterInCFA, -offset, initialState); _LIBUNWIND_TRACE_DWARF( "DW_CFA_GNU_negative_offset_extended(%" PRId64 ")\n", offset); break; #if defined(_LIBUNWIND_TARGET_AARCH64) || defined(_LIBUNWIND_TARGET_SPARC) \ || defined(_LIBUNWIND_TARGET_SPARC64) // The same constant is used to represent different instructions on // AArch64 (negate_ra_state) and SPARC (window_save). static_assert(DW_CFA_AARCH64_negate_ra_state == DW_CFA_GNU_window_save, "uses the same constant"); case DW_CFA_AARCH64_negate_ra_state: switch (arch) { #if defined(_LIBUNWIND_TARGET_AARCH64) case REGISTERS_ARM64: { int64_t value = results->savedRegisters[UNW_ARM64_RA_SIGN_STATE].value ^ 0x1; results->setRegisterValue(UNW_ARM64_RA_SIGN_STATE, value, initialState); _LIBUNWIND_TRACE_DWARF("DW_CFA_AARCH64_negate_ra_state\n"); } break; #endif #if defined(_LIBUNWIND_TARGET_SPARC64) case REGISTERS_SPARC64: // Hardcodes windowed registers for SPARC for (reg = 16; reg < 32; reg++) { if (reg == 31) results->savedRegisters[reg].location = kRegisterInCFADecrypt; else results->savedRegisters[reg].location = kRegisterInCFA; results->savedRegisters[reg].value = (reg - 16) * sizeof(pint_t); } _LIBUNWIND_TRACE_DWARF("DW_CFA_GNU_window_save"); break; #endif #if defined(_LIBUNWIND_TARGET_SPARC) // case DW_CFA_GNU_window_save: case REGISTERS_SPARC: _LIBUNWIND_TRACE_DWARF("DW_CFA_GNU_window_save()\n"); for (reg = UNW_SPARC_O0; reg <= UNW_SPARC_O7; reg++) { results->setRegister(reg, kRegisterInRegister, ((int64_t)reg - UNW_SPARC_O0) + UNW_SPARC_I0, initialState); } for (reg = UNW_SPARC_L0; reg <= UNW_SPARC_I7; reg++) { results->setRegister(reg, kRegisterInCFA, ((int64_t)reg - UNW_SPARC_L0) * 4, initialState); } break; #endif } break; #else (void)arch; #endif default: operand = opcode & 0x3F; switch (opcode & 0xC0) { case DW_CFA_offset: reg = operand; if (reg > kMaxRegisterNumber) { _LIBUNWIND_LOG("malformed DW_CFA_offset DWARF unwind, reg (%" PRIu64 ") out of range", reg); return false; } offset = (int64_t)addressSpace.getULEB128(p, instructionsEnd) * cieInfo.dataAlignFactor; results->setRegister(reg, kRegisterInCFA, offset, initialState); _LIBUNWIND_TRACE_DWARF("DW_CFA_offset(reg=%d, offset=%" PRId64 ")\n", operand, offset); break; case DW_CFA_advance_loc: codeOffset += operand * cieInfo.codeAlignFactor; _LIBUNWIND_TRACE_DWARF("DW_CFA_advance_loc: new offset=%" PRIu64 "\n", static_cast<uint64_t>(codeOffset)); break; case DW_CFA_restore: reg = operand; if (reg > kMaxRegisterNumber) { _LIBUNWIND_LOG("malformed DW_CFA_restore DWARF unwind, reg (%" PRIu64 ") out of range", reg); return false; } results->restoreRegisterToInitialState(reg, initialState); _LIBUNWIND_TRACE_DWARF("DW_CFA_restore(reg=%" PRIu64 ")\n", static_cast<uint64_t>(operand)); break; default: _LIBUNWIND_TRACE_DWARF("unknown CFA opcode 0x%02X\n", opcode); return false; } } } return true; } } // namespace libunwind #endif // __DWARF_PARSER_HPP__
[ "programmer@netzbasis.de" ]
programmer@netzbasis.de
b95137e347e07f7f32da906f2728113f81a24780
a5f414a11062c5595c59d7d93beb770ad12b58a6
/FirstOpenGL/CurveYZX.h
b2336b73dc3436e0a9f622de47cd54084851f3c7
[]
no_license
WesBach/LevelUp
d722d31bbe80d46a6174c06390aaf6ffd809286a
5b860ae76744adbe7c2c4c039773a46a3d33d641
refs/heads/master
2020-03-07T13:07:00.565095
2018-04-30T17:11:25
2018-04-30T17:11:25
127,493,047
0
0
null
null
null
null
UTF-8
C++
false
false
441
h
#ifndef _CurveYZX_HG_ #define _CurveYZX_HG_ #include "iCommand.h" #include <glm\vec3.hpp> #include <vector> class cGameObject; class CurveYZX : public iCommand { public: CurveYZX(cGameObject* theObject,bool negPos); ~CurveYZX(); virtual void update(double deltaTime); virtual bool getDone(); cGameObject* theObjectToMove; private: int pointCounter = 0; std::vector<glm::vec3> thePoints; bool isDone; }; #endif // !_CurveXZY_HG_
[ "wes_bach@live.com" ]
wes_bach@live.com
b08f894a6017639b074600902095325a287700b2
fd358b5125bd47378673004a9e616953c150dcbe
/Source/FairyGUI/Private/UI/DragDropManager.cpp
3f953b23f90b819b314618be0d4f5ab76aeb7fa4
[ "MIT" ]
permissive
eriseros/FairyGUI-unreal
4dbd95507d54d4eb88fd5d213c769f70fa6d267d
15311c8f5015eb841c0d554e1ca1ef9da4d93e30
refs/heads/master
2023-03-24T08:52:26.342686
2021-03-24T06:39:58
2021-03-24T06:39:58
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,142
cpp
#include "UI/DragDropManager.h" #include "FairyApplication.h" UDragDropManager::UDragDropManager() { } UDragDropManager::~UDragDropManager() { } void UDragDropManager::CreateAgent() { Agent = (UGLoader*)FUIObjectFactory::NewObject(EObjectType::Loader, this); Agent->Name = TEXT("DragDropAgent"); Agent->SetTouchable(false); Agent->SetDraggable(true); Agent->SetSize(FVector2D(100, 100)); Agent->SetPivot(FVector2D(.5f, .5f), true); Agent->SetAlign(EAlignType::Center); Agent->SetVerticalAlign(EVerticalAlignType::Middle); Agent->SetSortingOrder(INT_MAX); Agent->On(FUIEvents::DragEnd).AddUObject(this, &UDragDropManager::OnDragEnd); } void UDragDropManager::StartDrag(const FString& InIcon, const FNVariant& InUserData, int32 InUserIndex, int32 InPointerIndex) { if (Agent->GetParent() != nullptr) return; UserData = InUserData; Agent->SetURL(InIcon); Agent->SetParentToRoot(); FVector2D pt = Agent->GetUIRoot()->GlobalToLocal(Agent->GetApp()->GetTouchPosition(InUserIndex, InPointerIndex)); Agent->SetPosition(pt); Agent->GetApp()->CallAfterSlateTick(FSimpleDelegate::CreateUObject(this, &UDragDropManager::DelayStartDrag, InUserIndex, InPointerIndex)); } void UDragDropManager::DelayStartDrag(int32 InUserIndex, int32 InPointerIndex) { if (Agent->GetParent() != nullptr) Agent->StartDrag(InUserIndex, InPointerIndex); } void UDragDropManager::Cancel() { if (Agent->GetParent() != nullptr) { Agent->StopDrag(); Agent->RemoveFromParent(); UserData.Reset(); } } void UDragDropManager::OnDragEnd(UEventContext* Context) { if (Agent->GetParent() == nullptr) //canceled return; Agent->RemoveFromParent(); UGObject* obj = Agent->GetApp()->GetObjectUnderPoint(Context->GetPointerPosition()); while (obj != nullptr) { if (obj->IsA<UGComponent>()) { if (obj->HasEventListener(FUIEvents::Drop)) { obj->DispatchEvent(FUIEvents::Drop, UserData); return; } } obj = obj->GetParent(); } }
[ "guzhu@fairygui.com" ]
guzhu@fairygui.com
04a7b378f21bf55ae5df8f130c79b62765743482
b3439873c106d69b6ae8110c36bcd77264e8c5a7
/server/Billing/Main/PlayerManager.h
dc9a0558ea13e2c03a9ebc1f7f8605c2031436fa
[]
no_license
cnsuhao/web-pap
b41356411dc8dad0e42a11e62a27a1b4336d91e2
7c9b1f49d9ba8d8e40f8fddae829c2e414ccfeca
refs/heads/master
2021-05-28T01:01:18.122567
2013-11-19T06:49:41
2013-11-19T06:49:41
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,331
h
#ifndef __PLAYERMANAGER_H__ #define __PLAYERMANAGER_H__ #include "Type.h" #include "Player.h" #include "Socket.h" #include "IDTable.h" //管理一群玩家功能的基本模块,一般为每个场景创建一个PlayerManager //并且在一个独立的线程内执行 class PlayerManager { public : PlayerManager( ) ; ~PlayerManager( ) ; //清除当前模块内的数据信息 void CleanUp( ) ; //逻辑接口 virtual BOOL HeartBeat( DWORD dwTime=0 ) ; //增加一个玩家 BOOL AddPlayer( Player* pPlayer ) ; //删除一个玩家 // void RemovePlayer( SOCKET fd ) ; void RemovePlayer( PlayerID_t pid ) ; //根据网络句柄号取得玩家指针 // Player* GetPlayer( SOCKET fd ) ; PlayerID_t* GetPlayers( ){ return m_pPlayers ; } ; UINT GetPlayerNumber( ){ return m_nPlayers ; } ; BOOL HasPlayer( ){ return (BOOL)m_nPlayers ; } ; BOOL AddPlayer( PlayerID_t pid ) ; //未提供功能接口 protected : // PlayerID_t m_pPlayers[MAX_PLAYER] ; UINT m_nPlayers ; //用于保存网络句柄号和玩家Player数据指针的哈希表 // IDTable m_SockTable ; }; #endif
[ "viticm@126.com" ]
viticm@126.com
2571c1c676928f67e5bc26a8e5da9ae6040a52a3
9643f985adc56e22b81882cc63a7f2766931f04e
/閏年.cpp
d683fed5ae1a3f7f2789b57b02dfaacf051da517
[]
no_license
ultra721/test
a5c0867a5e9df8517582ea278405d87dab010709
acfd9ba0dd67b535eff7b1f6a03a49f59133c60a
refs/heads/master
2020-05-29T09:15:00.318405
2016-10-06T07:13:58
2016-10-06T07:13:58
70,129,169
0
0
null
null
null
null
WINDOWS-1252
C++
false
false
168
cpp
#include <iostream> using namespace std; int main(){ int a; cout <<"¿é¤J"; cin >>a; if(a%400==0||(a%4==0&&a%100!=0)) cout<<"yes"; else cout<<"no"; }
[ "death73578@gmail.com" ]
death73578@gmail.com
a91f0308494bdebba1a8d8d6966ce8de6cbbbe37
edee3c5bc17d7fda20e524af3677c233f89d2d49
/CJH_Project/CHJProject/MFCApplication1/MFCApplication1.cpp
8e073596646e18cacb6e64f375eea5f9cfb94d83
[]
no_license
kkcedar8520/MyDxProject
9bd010dbaa00310c5fe15bd64be7b333474d27aa
995d491ade7d2074998bf919efcf390487d7c3db
refs/heads/master
2022-07-17T18:12:07.388934
2020-05-12T12:20:02
2020-05-12T12:20:02
259,350,276
0
0
null
null
null
null
UTF-8
C++
false
false
5,507
cpp
 // MFCApplication1.cpp: 응용 프로그램에 대한 클래스 동작을 정의합니다. // #include "stdafx.h" #include "afxwinappex.h" #include "afxdialogex.h" #include "MFCApplication1.h" #include "MainFrm.h" #include "MFCApplication1Doc.h" #include "MFCApplication1View.h" #ifdef _DEBUG #define new DEBUG_NEW #endif // CMFCApplication1App BEGIN_MESSAGE_MAP(CMFCApplication1App, CWinApp) ON_COMMAND(ID_APP_ABOUT, &CMFCApplication1App::OnAppAbout) // 표준 파일을 기초로 하는 문서 명령입니다. ON_COMMAND(ID_FILE_NEW, &CWinApp::OnFileNew) ON_COMMAND(ID_FILE_OPEN, &CWinApp::OnFileOpen) // 표준 인쇄 설정 명령입니다. ON_COMMAND(ID_FILE_PRINT_SETUP, &CWinApp::OnFilePrintSetup) END_MESSAGE_MAP() // CMFCApplication1App 생성 CMFCApplication1App::CMFCApplication1App() noexcept { m_bHiColorIcons = TRUE; // 다시 시작 관리자 지원 m_dwRestartManagerSupportFlags = AFX_RESTART_MANAGER_SUPPORT_ALL_ASPECTS; #ifdef _MANAGED // 응용 프로그램을 공용 언어 런타임 지원을 사용하여 빌드한 경우(/clr): // 1) 이 추가 설정은 다시 시작 관리자 지원이 제대로 작동하는 데 필요합니다. // 2) 프로젝트에서 빌드하려면 System.Windows.Forms에 대한 참조를 추가해야 합니다. System::Windows::Forms::Application::SetUnhandledExceptionMode(System::Windows::Forms::UnhandledExceptionMode::ThrowException); #endif // TODO: 아래 응용 프로그램 ID 문자열을 고유 ID 문자열로 바꾸십시오(권장). // 문자열에 대한 서식: CompanyName.ProductName.SubProduct.VersionInformation SetAppID(_T("MFCApplication1.AppID.NoVersion")); // TODO: 여기에 생성 코드를 추가합니다. // InitInstance에 모든 중요한 초기화 작업을 배치합니다. } // 유일한 CMFCApplication1App 개체입니다. CMFCApplication1App theApp; // CMFCApplication1App 초기화 BOOL CMFCApplication1App::InitInstance() { // 응용 프로그램 매니페스트가 ComCtl32.dll 버전 6 이상을 사용하여 비주얼 스타일을 // 사용하도록 지정하는 경우, Windows XP 상에서 반드시 InitCommonControlsEx()가 필요합니다. // InitCommonControlsEx()를 사용하지 않으면 창을 만들 수 없습니다. INITCOMMONCONTROLSEX InitCtrls; InitCtrls.dwSize = sizeof(InitCtrls); // 응용 프로그램에서 사용할 모든 공용 컨트롤 클래스를 포함하도록 // 이 항목을 설정하십시오. InitCtrls.dwICC = ICC_WIN95_CLASSES; InitCommonControlsEx(&InitCtrls); CWinApp::InitInstance(); // OLE 라이브러리를 초기화합니다. if (!AfxOleInit()) { AfxMessageBox(IDP_OLE_INIT_FAILED); return FALSE; } AfxEnableControlContainer(); EnableTaskbarInteraction(FALSE); // RichEdit 컨트롤을 사용하려면 AfxInitRichEdit2()가 있어야 합니다. // AfxInitRichEdit2(); // 표준 초기화 // 이들 기능을 사용하지 않고 최종 실행 파일의 크기를 줄이려면 // 아래에서 필요 없는 특정 초기화 // 루틴을 제거해야 합니다. // 해당 설정이 저장된 레지스트리 키를 변경하십시오. // TODO: 이 문자열을 회사 또는 조직의 이름과 같은 // 적절한 내용으로 수정해야 합니다. SetRegistryKey(_T("로컬 응용 프로그램 마법사에서 생성된 응용 프로그램")); LoadStdProfileSettings(4); // MRU를 포함하여 표준 INI 파일 옵션을 로드합니다. // 응용 프로그램의 문서 템플릿을 등록합니다. 문서 템플릿은 // 문서, 프레임 창 및 뷰 사이의 연결 역할을 합니다. CSingleDocTemplate* pDocTemplate; pDocTemplate = new CSingleDocTemplate( IDR_MAINFRAME, RUNTIME_CLASS(CMFCApplication1Doc), RUNTIME_CLASS(CMainFrame), // 주 SDI 프레임 창입니다. RUNTIME_CLASS(CMFCApplication1View)); if (!pDocTemplate) return FALSE; AddDocTemplate(pDocTemplate); // 표준 셸 명령, DDE, 파일 열기에 대한 명령줄을 구문 분석합니다. CCommandLineInfo cmdInfo; ParseCommandLine(cmdInfo); // 명령줄에 지정된 명령을 디스패치합니다. // 응용 프로그램이 /RegServer, /Register, /Unregserver 또는 /Unregister로 시작된 경우 FALSE를 반환합니다. if (!ProcessShellCommand(cmdInfo)) return FALSE; // 창 하나만 초기화되었으므로 이를 표시하고 업데이트합니다. m_pMainWnd->ShowWindow(SW_SHOW); m_pMainWnd->UpdateWindow(); return TRUE; } int CMFCApplication1App::ExitInstance() { //TODO: 추가한 추가 리소스를 처리합니다. AfxOleTerm(FALSE); return CWinApp::ExitInstance(); } // CMFCApplication1App 메시지 처리기 // 응용 프로그램 정보에 사용되는 CAboutDlg 대화 상자입니다. class CAboutDlg : public CDialogEx { public: CAboutDlg() noexcept; // 대화 상자 데이터입니다. #ifdef AFX_DESIGN_TIME enum { IDD = IDD_ABOUTBOX }; #endif protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 지원입니다. // 구현입니다. protected: DECLARE_MESSAGE_MAP() }; CAboutDlg::CAboutDlg() noexcept : CDialogEx(IDD_ABOUTBOX) { } void CAboutDlg::DoDataExchange(CDataExchange* pDX) { CDialogEx::DoDataExchange(pDX); } BEGIN_MESSAGE_MAP(CAboutDlg, CDialogEx) END_MESSAGE_MAP() // 대화 상자를 실행하기 위한 응용 프로그램 명령입니다. void CMFCApplication1App::OnAppAbout() { CAboutDlg aboutDlg; aboutDlg.DoModal(); } // CMFCApplication1App 메시지 처리기
[ "fishgenius@naver.com" ]
fishgenius@naver.com
2ec7b33c5516d42938c41b59a3d7fe3c3ee77895
b572bd341a9989aef375558c094d829b2dd41e70
/platforms/build_android_arm/modules/features2d/opencl_kernels_features2d.cpp
9a4c721724592130452b0ff30775a8753639b9a8
[ "BSD-3-Clause" ]
permissive
swinstonMirada/opencv
a3ccb0354a41371f8ae91be5ddfdf76e7744fa7a
6bf40d535215b118fcd41d50eacfa41349bb86d2
refs/heads/master
2021-01-24T17:06:00.025732
2015-02-13T05:48:09
2015-02-13T05:48:09
22,350,784
0
0
null
null
null
null
UTF-8
C++
false
false
30,124
cpp
// This file is auto-generated. Do not edit! #include "precomp.hpp" #include "opencl_kernels_features2d.hpp" namespace cv { namespace ocl { namespace features2d { const struct ProgramEntry brute_force_match={"brute_force_match", "#pragma OPENCL EXTENSION cl_khr_global_int32_base_atomics:enable\n" "#define MAX_FLOAT 3.40282e+038f\n" "#ifndef T\n" "#define T float\n" "#endif\n" "#ifndef BLOCK_SIZE\n" "#define BLOCK_SIZE 16\n" "#endif\n" "#ifndef MAX_DESC_LEN\n" "#define MAX_DESC_LEN 64\n" "#endif\n" "#ifndef DIST_TYPE\n" "#define DIST_TYPE 2\n" "#endif\n" "#if (DIST_TYPE == 2)\n" "# ifdef T_FLOAT\n" "# define DIST(x, y) fabs((x) - (y))\n" "typedef float value_type;\n" "typedef float result_type;\n" "# else\n" "# define DIST(x, y) abs((x) - (y))\n" "typedef int value_type;\n" "typedef int result_type;\n" "# endif\n" "#define DIST_RES(x) (x)\n" "#elif (DIST_TYPE == 4)\n" "#define DIST(x, y) (((x) - (y)) * ((x) - (y)))\n" "typedef float value_type;\n" "typedef float result_type;\n" "#define DIST_RES(x) sqrt(x)\n" "#elif (DIST_TYPE == 6)\n" "inline int bit1Count(int v)\n" "{\n" "v = v - ((v >> 1) & 0x55555555);\n" "v = (v & 0x33333333) + ((v >> 2) & 0x33333333);\n" "return ((v + (v >> 4) & 0xF0F0F0F) * 0x1010101) >> 24;\n" "}\n" "#define DIST(x, y) bit1Count( (x) ^ (y) )\n" "typedef int value_type;\n" "typedef int result_type;\n" "#define DIST_RES(x) (x)\n" "#endif\n" "inline result_type reduce_block(\n" "__local value_type *s_query,\n" "__local value_type *s_train,\n" "int lidx,\n" "int lidy\n" ")\n" "{\n" "result_type result = 0;\n" "#pragma unroll\n" "for (int j = 0 ; j < BLOCK_SIZE ; j++)\n" "{\n" "result += DIST(\n" "s_query[lidy * BLOCK_SIZE + j],\n" "s_train[j * BLOCK_SIZE + lidx]);\n" "}\n" "return DIST_RES(result);\n" "}\n" "inline result_type reduce_block_match(\n" "__local value_type *s_query,\n" "__local value_type *s_train,\n" "int lidx,\n" "int lidy\n" ")\n" "{\n" "result_type result = 0;\n" "#pragma unroll\n" "for (int j = 0 ; j < BLOCK_SIZE ; j++)\n" "{\n" "result += DIST(\n" "s_query[lidy * BLOCK_SIZE + j],\n" "s_train[j * BLOCK_SIZE + lidx]);\n" "}\n" "return (result);\n" "}\n" "inline result_type reduce_multi_block(\n" "__local value_type *s_query,\n" "__local value_type *s_train,\n" "int block_index,\n" "int lidx,\n" "int lidy\n" ")\n" "{\n" "result_type result = 0;\n" "#pragma unroll\n" "for (int j = 0 ; j < BLOCK_SIZE ; j++)\n" "{\n" "result += DIST(\n" "s_query[lidy * MAX_DESC_LEN + block_index * BLOCK_SIZE + j],\n" "s_train[j * BLOCK_SIZE + lidx]);\n" "}\n" "return result;\n" "}\n" "__kernel void BruteForceMatch_UnrollMatch(\n" "__global T *query,\n" "__global T *train,\n" "__global int *bestTrainIdx,\n" "__global float *bestDistance,\n" "__local float *sharebuffer,\n" "int query_rows,\n" "int query_cols,\n" "int train_rows,\n" "int train_cols,\n" "int step\n" ")\n" "{\n" "const int lidx = get_local_id(0);\n" "const int lidy = get_local_id(1);\n" "const int groupidx = get_group_id(0);\n" "__local value_type *s_query = (__local value_type *)sharebuffer;\n" "__local value_type *s_train = (__local value_type *)sharebuffer + BLOCK_SIZE * MAX_DESC_LEN;\n" "int queryIdx = groupidx * BLOCK_SIZE + lidy;\n" "#pragma unroll\n" "for (int i = 0 ; i < MAX_DESC_LEN / BLOCK_SIZE; i ++)\n" "{\n" "int loadx = lidx + i * BLOCK_SIZE;\n" "s_query[lidy * MAX_DESC_LEN + loadx] = loadx < query_cols ? query[min(queryIdx, query_rows - 1) * (step / sizeof(float)) + loadx] : 0;\n" "}\n" "float myBestDistance = MAX_FLOAT;\n" "int myBestTrainIdx = -1;\n" "for (int t = 0, endt = (train_rows + BLOCK_SIZE - 1) / BLOCK_SIZE; t < endt; t++)\n" "{\n" "result_type result = 0;\n" "#pragma unroll\n" "for (int i = 0 ; i < MAX_DESC_LEN / BLOCK_SIZE ; i++)\n" "{\n" "const int loadx = lidx + i * BLOCK_SIZE;\n" "s_train[lidx * BLOCK_SIZE + lidy] = loadx < train_cols ? train[min(t * BLOCK_SIZE + lidy, train_rows - 1) * (step / sizeof(float)) + loadx] : 0;\n" "barrier(CLK_LOCAL_MEM_FENCE);\n" "result += reduce_multi_block(s_query, s_train, i, lidx, lidy);\n" "barrier(CLK_LOCAL_MEM_FENCE);\n" "}\n" "result = DIST_RES(result);\n" "int trainIdx = t * BLOCK_SIZE + lidx;\n" "if (queryIdx < query_rows && trainIdx < train_rows && result < myBestDistance)\n" "{\n" "myBestDistance = result;\n" "myBestTrainIdx = trainIdx;\n" "}\n" "}\n" "barrier(CLK_LOCAL_MEM_FENCE);\n" "__local float *s_distance = (__local float*)(sharebuffer);\n" "__local int* s_trainIdx = (__local int *)(sharebuffer + BLOCK_SIZE * BLOCK_SIZE);\n" "s_distance += lidy * BLOCK_SIZE;\n" "s_trainIdx += lidy * BLOCK_SIZE;\n" "s_distance[lidx] = myBestDistance;\n" "s_trainIdx[lidx] = myBestTrainIdx;\n" "barrier(CLK_LOCAL_MEM_FENCE);\n" "#pragma unroll\n" "for (int k = 0 ; k < BLOCK_SIZE; k++)\n" "{\n" "if (myBestDistance > s_distance[k])\n" "{\n" "myBestDistance = s_distance[k];\n" "myBestTrainIdx = s_trainIdx[k];\n" "}\n" "}\n" "if (queryIdx < query_rows && lidx == 0)\n" "{\n" "bestTrainIdx[queryIdx] = myBestTrainIdx;\n" "bestDistance[queryIdx] = myBestDistance;\n" "}\n" "}\n" "__kernel void BruteForceMatch_Match(\n" "__global T *query,\n" "__global T *train,\n" "__global int *bestTrainIdx,\n" "__global float *bestDistance,\n" "__local float *sharebuffer,\n" "int query_rows,\n" "int query_cols,\n" "int train_rows,\n" "int train_cols,\n" "int step\n" ")\n" "{\n" "const int lidx = get_local_id(0);\n" "const int lidy = get_local_id(1);\n" "const int groupidx = get_group_id(0);\n" "const int queryIdx = groupidx * BLOCK_SIZE + lidy;\n" "float myBestDistance = MAX_FLOAT;\n" "int myBestTrainIdx = -1;\n" "__local value_type *s_query = (__local value_type *)sharebuffer;\n" "__local value_type *s_train = (__local value_type *)sharebuffer + BLOCK_SIZE * BLOCK_SIZE;\n" "for (int t = 0 ; t < (train_rows + BLOCK_SIZE - 1) / BLOCK_SIZE ; t++)\n" "{\n" "result_type result = 0;\n" "for (int i = 0 ; i < (query_cols + BLOCK_SIZE - 1) / BLOCK_SIZE ; i++)\n" "{\n" "const int loadx = lidx + i * BLOCK_SIZE;\n" "s_query[lidy * BLOCK_SIZE + lidx] = 0;\n" "s_train[lidx * BLOCK_SIZE + lidy] = 0;\n" "if (loadx < query_cols)\n" "{\n" "s_query[lidy * BLOCK_SIZE + lidx] = query[min(queryIdx, query_rows - 1) * (step / sizeof(float)) + loadx];\n" "s_train[lidx * BLOCK_SIZE + lidy] = train[min(t * BLOCK_SIZE + lidy, train_rows - 1) * (step / sizeof(float)) + loadx];\n" "}\n" "barrier(CLK_LOCAL_MEM_FENCE);\n" "result += reduce_block_match(s_query, s_train, lidx, lidy);\n" "barrier(CLK_LOCAL_MEM_FENCE);\n" "}\n" "result = DIST_RES(result);\n" "const int trainIdx = t * BLOCK_SIZE + lidx;\n" "if (queryIdx < query_rows && trainIdx < train_rows && result < myBestDistance )\n" "{\n" "myBestDistance = result;\n" "myBestTrainIdx = trainIdx;\n" "}\n" "}\n" "barrier(CLK_LOCAL_MEM_FENCE);\n" "__local float *s_distance = (__local float *)sharebuffer;\n" "__local int *s_trainIdx = (__local int *)(sharebuffer + BLOCK_SIZE * BLOCK_SIZE);\n" "s_distance += lidy * BLOCK_SIZE;\n" "s_trainIdx += lidy * BLOCK_SIZE;\n" "s_distance[lidx] = myBestDistance;\n" "s_trainIdx[lidx] = myBestTrainIdx;\n" "barrier(CLK_LOCAL_MEM_FENCE);\n" "for (int k = 0 ; k < BLOCK_SIZE; k++)\n" "{\n" "if (myBestDistance > s_distance[k])\n" "{\n" "myBestDistance = s_distance[k];\n" "myBestTrainIdx = s_trainIdx[k];\n" "}\n" "}\n" "if (queryIdx < query_rows && lidx == 0)\n" "{\n" "bestTrainIdx[queryIdx] = myBestTrainIdx;\n" "bestDistance[queryIdx] = myBestDistance;\n" "}\n" "}\n" "__kernel void BruteForceMatch_RadiusUnrollMatch(\n" "__global T *query,\n" "__global T *train,\n" "float maxDistance,\n" "__global int *bestTrainIdx,\n" "__global float *bestDistance,\n" "__global int *nMatches,\n" "__local float *sharebuffer,\n" "int query_rows,\n" "int query_cols,\n" "int train_rows,\n" "int train_cols,\n" "int bestTrainIdx_cols,\n" "int step,\n" "int ostep\n" ")\n" "{\n" "const int lidx = get_local_id(0);\n" "const int lidy = get_local_id(1);\n" "const int groupidx = get_group_id(0);\n" "const int groupidy = get_group_id(1);\n" "const int queryIdx = groupidy * BLOCK_SIZE + lidy;\n" "const int trainIdx = groupidx * BLOCK_SIZE + lidx;\n" "__local value_type *s_query = (__local value_type *)sharebuffer;\n" "__local value_type *s_train = (__local value_type *)sharebuffer + BLOCK_SIZE * BLOCK_SIZE;\n" "result_type result = 0;\n" "for (int i = 0 ; i < MAX_DESC_LEN / BLOCK_SIZE ; ++i)\n" "{\n" "const int loadx = lidx + i * BLOCK_SIZE;\n" "s_query[lidy * BLOCK_SIZE + lidx] = loadx < query_cols ? query[min(queryIdx, query_rows - 1) * (step / sizeof(float)) + loadx] : 0;\n" "s_train[lidx * BLOCK_SIZE + lidy] = loadx < query_cols ? train[min(groupidx * BLOCK_SIZE + lidy, train_rows - 1) * (step / sizeof(float)) + loadx] : 0;\n" "barrier(CLK_LOCAL_MEM_FENCE);\n" "result += reduce_block(s_query, s_train, lidx, lidy);\n" "barrier(CLK_LOCAL_MEM_FENCE);\n" "}\n" "if (queryIdx < query_rows && trainIdx < train_rows &&\n" "convert_float(result) < maxDistance)\n" "{\n" "int ind = atom_inc(nMatches + queryIdx);\n" "if(ind < bestTrainIdx_cols)\n" "{\n" "bestTrainIdx[queryIdx * (ostep / sizeof(int)) + ind] = trainIdx;\n" "bestDistance[queryIdx * (ostep / sizeof(float)) + ind] = result;\n" "}\n" "}\n" "}\n" "__kernel void BruteForceMatch_RadiusMatch(\n" "__global T *query,\n" "__global T *train,\n" "float maxDistance,\n" "__global int *bestTrainIdx,\n" "__global float *bestDistance,\n" "__global int *nMatches,\n" "__local float *sharebuffer,\n" "int query_rows,\n" "int query_cols,\n" "int train_rows,\n" "int train_cols,\n" "int bestTrainIdx_cols,\n" "int step,\n" "int ostep\n" ")\n" "{\n" "const int lidx = get_local_id(0);\n" "const int lidy = get_local_id(1);\n" "const int groupidx = get_group_id(0);\n" "const int groupidy = get_group_id(1);\n" "const int queryIdx = groupidy * BLOCK_SIZE + lidy;\n" "const int trainIdx = groupidx * BLOCK_SIZE + lidx;\n" "__local value_type *s_query = (__local value_type *)sharebuffer;\n" "__local value_type *s_train = (__local value_type *)sharebuffer + BLOCK_SIZE * BLOCK_SIZE;\n" "result_type result = 0;\n" "for (int i = 0 ; i < (query_cols + BLOCK_SIZE - 1) / BLOCK_SIZE ; ++i)\n" "{\n" "const int loadx = lidx + i * BLOCK_SIZE;\n" "s_query[lidy * BLOCK_SIZE + lidx] = loadx < query_cols ? query[min(queryIdx, query_rows - 1) * (step / sizeof(float)) + loadx] : 0;\n" "s_train[lidx * BLOCK_SIZE + lidy] = loadx < query_cols ? train[min(groupidx * BLOCK_SIZE + lidy, train_rows - 1) * (step / sizeof(float)) + loadx] : 0;\n" "barrier(CLK_LOCAL_MEM_FENCE);\n" "result += reduce_block(s_query, s_train, lidx, lidy);\n" "barrier(CLK_LOCAL_MEM_FENCE);\n" "}\n" "if (queryIdx < query_rows && trainIdx < train_rows &&\n" "convert_float(result) < maxDistance)\n" "{\n" "int ind = atom_inc(nMatches + queryIdx);\n" "if(ind < bestTrainIdx_cols)\n" "{\n" "bestTrainIdx[queryIdx * (ostep / sizeof(int)) + ind] = trainIdx;\n" "bestDistance[queryIdx * (ostep / sizeof(float)) + ind] = result;\n" "}\n" "}\n" "}\n" "__kernel void BruteForceMatch_knnUnrollMatch(\n" "__global T *query,\n" "__global T *train,\n" "__global int2 *bestTrainIdx,\n" "__global float2 *bestDistance,\n" "__local float *sharebuffer,\n" "int query_rows,\n" "int query_cols,\n" "int train_rows,\n" "int train_cols,\n" "int step\n" ")\n" "{\n" "const int lidx = get_local_id(0);\n" "const int lidy = get_local_id(1);\n" "const int groupidx = get_group_id(0);\n" "const int queryIdx = groupidx * BLOCK_SIZE + lidy;\n" "__local value_type *s_query = (__local value_type *)sharebuffer;\n" "__local value_type *s_train = (__local value_type *)sharebuffer + BLOCK_SIZE * MAX_DESC_LEN;\n" "for (int i = 0 ; i < MAX_DESC_LEN / BLOCK_SIZE; i ++)\n" "{\n" "int loadx = lidx + i * BLOCK_SIZE;\n" "s_query[lidy * MAX_DESC_LEN + loadx] = loadx < query_cols ? query[min(queryIdx, query_rows - 1) * (step / sizeof(float)) + loadx] : 0;\n" "}\n" "float myBestDistance1 = MAX_FLOAT;\n" "float myBestDistance2 = MAX_FLOAT;\n" "int myBestTrainIdx1 = -1;\n" "int myBestTrainIdx2 = -1;\n" "for (int t = 0 ; t < (train_rows + BLOCK_SIZE - 1) / BLOCK_SIZE ; t++)\n" "{\n" "result_type result = 0;\n" "for (int i = 0 ; i < MAX_DESC_LEN / BLOCK_SIZE ; i++)\n" "{\n" "const int loadx = lidx + i * BLOCK_SIZE;\n" "s_train[lidx * BLOCK_SIZE + lidy] = loadx < train_cols ? train[min(t * BLOCK_SIZE + lidy, train_rows - 1) * (step / sizeof(float)) + loadx] : 0;\n" "barrier(CLK_LOCAL_MEM_FENCE);\n" "result += reduce_multi_block(s_query, s_train, i, lidx, lidy);\n" "barrier(CLK_LOCAL_MEM_FENCE);\n" "}\n" "result = DIST_RES(result);\n" "const int trainIdx = t * BLOCK_SIZE + lidx;\n" "if (queryIdx < query_rows && trainIdx < train_rows)\n" "{\n" "if (result < myBestDistance1)\n" "{\n" "myBestDistance2 = myBestDistance1;\n" "myBestTrainIdx2 = myBestTrainIdx1;\n" "myBestDistance1 = result;\n" "myBestTrainIdx1 = trainIdx;\n" "}\n" "else if (result < myBestDistance2)\n" "{\n" "myBestDistance2 = result;\n" "myBestTrainIdx2 = trainIdx;\n" "}\n" "}\n" "}\n" "barrier(CLK_LOCAL_MEM_FENCE);\n" "__local float *s_distance = (local float *)sharebuffer;\n" "__local int *s_trainIdx = (local int *)(sharebuffer + BLOCK_SIZE * BLOCK_SIZE);\n" "s_distance += lidy * BLOCK_SIZE;\n" "s_trainIdx += lidy * BLOCK_SIZE;\n" "s_distance[lidx] = myBestDistance1;\n" "s_trainIdx[lidx] = myBestTrainIdx1;\n" "float bestDistance1 = MAX_FLOAT;\n" "float bestDistance2 = MAX_FLOAT;\n" "int bestTrainIdx1 = -1;\n" "int bestTrainIdx2 = -1;\n" "barrier(CLK_LOCAL_MEM_FENCE);\n" "if (lidx == 0)\n" "{\n" "for (int i = 0 ; i < BLOCK_SIZE ; i++)\n" "{\n" "float val = s_distance[i];\n" "if (val < bestDistance1)\n" "{\n" "bestDistance2 = bestDistance1;\n" "bestTrainIdx2 = bestTrainIdx1;\n" "bestDistance1 = val;\n" "bestTrainIdx1 = s_trainIdx[i];\n" "}\n" "else if (val < bestDistance2)\n" "{\n" "bestDistance2 = val;\n" "bestTrainIdx2 = s_trainIdx[i];\n" "}\n" "}\n" "}\n" "barrier(CLK_LOCAL_MEM_FENCE);\n" "s_distance[lidx] = myBestDistance2;\n" "s_trainIdx[lidx] = myBestTrainIdx2;\n" "barrier(CLK_LOCAL_MEM_FENCE);\n" "if (lidx == 0)\n" "{\n" "for (int i = 0 ; i < BLOCK_SIZE ; i++)\n" "{\n" "float val = s_distance[i];\n" "if (val < bestDistance2)\n" "{\n" "bestDistance2 = val;\n" "bestTrainIdx2 = s_trainIdx[i];\n" "}\n" "}\n" "}\n" "myBestDistance1 = bestDistance1;\n" "myBestDistance2 = bestDistance2;\n" "myBestTrainIdx1 = bestTrainIdx1;\n" "myBestTrainIdx2 = bestTrainIdx2;\n" "if (queryIdx < query_rows && lidx == 0)\n" "{\n" "bestTrainIdx[queryIdx] = (int2)(myBestTrainIdx1, myBestTrainIdx2);\n" "bestDistance[queryIdx] = (float2)(myBestDistance1, myBestDistance2);\n" "}\n" "}\n" "__kernel void BruteForceMatch_knnMatch(\n" "__global T *query,\n" "__global T *train,\n" "__global int2 *bestTrainIdx,\n" "__global float2 *bestDistance,\n" "__local float *sharebuffer,\n" "int query_rows,\n" "int query_cols,\n" "int train_rows,\n" "int train_cols,\n" "int step\n" ")\n" "{\n" "const int lidx = get_local_id(0);\n" "const int lidy = get_local_id(1);\n" "const int groupidx = get_group_id(0);\n" "const int queryIdx = groupidx * BLOCK_SIZE + lidy;\n" "__local value_type *s_query = (__local value_type *)sharebuffer;\n" "__local value_type *s_train = (__local value_type *)sharebuffer + BLOCK_SIZE * BLOCK_SIZE;\n" "float myBestDistance1 = MAX_FLOAT;\n" "float myBestDistance2 = MAX_FLOAT;\n" "int myBestTrainIdx1 = -1;\n" "int myBestTrainIdx2 = -1;\n" "for (int t = 0 ; t < (train_rows + BLOCK_SIZE - 1) / BLOCK_SIZE ; t++)\n" "{\n" "result_type result = 0.0f;\n" "for (int i = 0 ; i < (query_cols + BLOCK_SIZE -1) / BLOCK_SIZE ; i++)\n" "{\n" "const int loadx = lidx + i * BLOCK_SIZE;\n" "s_query[lidy * BLOCK_SIZE + lidx] = 0;\n" "s_train[lidx * BLOCK_SIZE + lidy] = 0;\n" "if (loadx < query_cols)\n" "{\n" "s_query[lidy * BLOCK_SIZE + lidx] = query[min(queryIdx, query_rows - 1) * (step / sizeof(float)) + loadx];\n" "s_train[lidx * BLOCK_SIZE + lidy] = train[min(t * BLOCK_SIZE + lidy, train_rows - 1) * (step / sizeof(float)) + loadx];\n" "}\n" "barrier(CLK_LOCAL_MEM_FENCE);\n" "result += reduce_block_match(s_query, s_train, lidx, lidy);\n" "barrier(CLK_LOCAL_MEM_FENCE);\n" "}\n" "result = DIST_RES(result);\n" "const int trainIdx = t * BLOCK_SIZE + lidx;\n" "if (queryIdx < query_rows && trainIdx < train_rows )\n" "{\n" "if (result < myBestDistance1)\n" "{\n" "myBestDistance2 = myBestDistance1;\n" "myBestTrainIdx2 = myBestTrainIdx1;\n" "myBestDistance1 = result;\n" "myBestTrainIdx1 = trainIdx;\n" "}\n" "else if (result < myBestDistance2)\n" "{\n" "myBestDistance2 = result;\n" "myBestTrainIdx2 = trainIdx;\n" "}\n" "}\n" "}\n" "barrier(CLK_LOCAL_MEM_FENCE);\n" "__local float *s_distance = (__local float *)sharebuffer;\n" "__local int *s_trainIdx = (__local int *)(sharebuffer + BLOCK_SIZE * BLOCK_SIZE);\n" "s_distance += lidy * BLOCK_SIZE;\n" "s_trainIdx += lidy * BLOCK_SIZE;\n" "s_distance[lidx] = myBestDistance1;\n" "s_trainIdx[lidx] = myBestTrainIdx1;\n" "float bestDistance1 = MAX_FLOAT;\n" "float bestDistance2 = MAX_FLOAT;\n" "int bestTrainIdx1 = -1;\n" "int bestTrainIdx2 = -1;\n" "barrier(CLK_LOCAL_MEM_FENCE);\n" "if (lidx == 0)\n" "{\n" "for (int i = 0 ; i < BLOCK_SIZE ; i++)\n" "{\n" "float val = s_distance[i];\n" "if (val < bestDistance1)\n" "{\n" "bestDistance2 = bestDistance1;\n" "bestTrainIdx2 = bestTrainIdx1;\n" "bestDistance1 = val;\n" "bestTrainIdx1 = s_trainIdx[i];\n" "}\n" "else if (val < bestDistance2)\n" "{\n" "bestDistance2 = val;\n" "bestTrainIdx2 = s_trainIdx[i];\n" "}\n" "}\n" "}\n" "barrier(CLK_LOCAL_MEM_FENCE);\n" "s_distance[lidx] = myBestDistance2;\n" "s_trainIdx[lidx] = myBestTrainIdx2;\n" "barrier(CLK_LOCAL_MEM_FENCE);\n" "if (lidx == 0)\n" "{\n" "for (int i = 0 ; i < BLOCK_SIZE ; i++)\n" "{\n" "float val = s_distance[i];\n" "if (val < bestDistance2)\n" "{\n" "bestDistance2 = val;\n" "bestTrainIdx2 = s_trainIdx[i];\n" "}\n" "}\n" "}\n" "myBestDistance1 = bestDistance1;\n" "myBestDistance2 = bestDistance2;\n" "myBestTrainIdx1 = bestTrainIdx1;\n" "myBestTrainIdx2 = bestTrainIdx2;\n" "if (queryIdx < query_rows && lidx == 0)\n" "{\n" "bestTrainIdx[queryIdx] = (int2)(myBestTrainIdx1, myBestTrainIdx2);\n" "bestDistance[queryIdx] = (float2)(myBestDistance1, myBestDistance2);\n" "}\n" "}\n" "kernel void BruteForceMatch_calcDistanceUnrolled(\n" "__global T *query,\n" "__global T *train,\n" "__global float *allDist,\n" "__local float *sharebuffer,\n" "int query_rows,\n" "int query_cols,\n" "int train_rows,\n" "int train_cols,\n" "int step)\n" "{\n" "}\n" "kernel void BruteForceMatch_calcDistance(\n" "__global T *query,\n" "__global T *train,\n" "__global float *allDist,\n" "__local float *sharebuffer,\n" "int query_rows,\n" "int query_cols,\n" "int train_rows,\n" "int train_cols,\n" "int step)\n" "{\n" "}\n" "kernel void BruteForceMatch_findBestMatch(\n" "__global float *allDist,\n" "__global int *bestTrainIdx,\n" "__global float *bestDistance,\n" "int k\n" ")\n" "{\n" "}\n" , "ac2c3e3c0328ec81c5465aff12cc67e9"}; ProgramSource brute_force_match_oclsrc(brute_force_match.programStr); const struct ProgramEntry fast={"fast", "inline int cornerScore(__global const uchar* img, int step)\n" "{\n" "int k, tofs, v = img[0], a0 = 0, b0;\n" "int d[16];\n" "#define LOAD2(idx, ofs) \\\n" "tofs = ofs; d[idx] = (short)(v - img[tofs]); d[idx+8] = (short)(v - img[-tofs])\n" "LOAD2(0, 3);\n" "LOAD2(1, -step+3);\n" "LOAD2(2, -step*2+2);\n" "LOAD2(3, -step*3+1);\n" "LOAD2(4, -step*3);\n" "LOAD2(5, -step*3-1);\n" "LOAD2(6, -step*2-2);\n" "LOAD2(7, -step-3);\n" "#pragma unroll\n" "for( k = 0; k < 16; k += 2 )\n" "{\n" "int a = min((int)d[(k+1)&15], (int)d[(k+2)&15]);\n" "a = min(a, (int)d[(k+3)&15]);\n" "a = min(a, (int)d[(k+4)&15]);\n" "a = min(a, (int)d[(k+5)&15]);\n" "a = min(a, (int)d[(k+6)&15]);\n" "a = min(a, (int)d[(k+7)&15]);\n" "a = min(a, (int)d[(k+8)&15]);\n" "a0 = max(a0, min(a, (int)d[k&15]));\n" "a0 = max(a0, min(a, (int)d[(k+9)&15]));\n" "}\n" "b0 = -a0;\n" "#pragma unroll\n" "for( k = 0; k < 16; k += 2 )\n" "{\n" "int b = max((int)d[(k+1)&15], (int)d[(k+2)&15]);\n" "b = max(b, (int)d[(k+3)&15]);\n" "b = max(b, (int)d[(k+4)&15]);\n" "b = max(b, (int)d[(k+5)&15]);\n" "b = max(b, (int)d[(k+6)&15]);\n" "b = max(b, (int)d[(k+7)&15]);\n" "b = max(b, (int)d[(k+8)&15]);\n" "b0 = min(b0, max(b, (int)d[k]));\n" "b0 = min(b0, max(b, (int)d[(k+9)&15]));\n" "}\n" "return -b0-1;\n" "}\n" "__kernel\n" "void FAST_findKeypoints(\n" "__global const uchar * _img, int step, int img_offset,\n" "int img_rows, int img_cols,\n" "volatile __global int* kp_loc,\n" "int max_keypoints, int threshold )\n" "{\n" "int j = get_global_id(0) + 3;\n" "int i = get_global_id(1) + 3;\n" "if (i < img_rows - 3 && j < img_cols - 3)\n" "{\n" "__global const uchar* img = _img + mad24(i, step, j + img_offset);\n" "int v = img[0], t0 = v - threshold, t1 = v + threshold;\n" "int k, tofs, v0, v1;\n" "int m0 = 0, m1 = 0;\n" "#define UPDATE_MASK(idx, ofs) \\\n" "tofs = ofs; v0 = img[tofs]; v1 = img[-tofs]; \\\n" "m0 |= ((v0 < t0) << idx) | ((v1 < t0) << (8 + idx)); \\\n" "m1 |= ((v0 > t1) << idx) | ((v1 > t1) << (8 + idx))\n" "UPDATE_MASK(0, 3);\n" "if( (m0 | m1) == 0 )\n" "return;\n" "UPDATE_MASK(2, -step*2+2);\n" "UPDATE_MASK(4, -step*3);\n" "UPDATE_MASK(6, -step*2-2);\n" "#define EVEN_MASK (1+4+16+64)\n" "if( ((m0 | (m0 >> 8)) & EVEN_MASK) != EVEN_MASK &&\n" "((m1 | (m1 >> 8)) & EVEN_MASK) != EVEN_MASK )\n" "return;\n" "UPDATE_MASK(1, -step+3);\n" "UPDATE_MASK(3, -step*3+1);\n" "UPDATE_MASK(5, -step*3-1);\n" "UPDATE_MASK(7, -step-3);\n" "if( ((m0 | (m0 >> 8)) & 255) != 255 &&\n" "((m1 | (m1 >> 8)) & 255) != 255 )\n" "return;\n" "m0 |= m0 << 16;\n" "m1 |= m1 << 16;\n" "#define CHECK0(i) ((m0 & (511 << i)) == (511 << i))\n" "#define CHECK1(i) ((m1 & (511 << i)) == (511 << i))\n" "if( CHECK0(0) + CHECK0(1) + CHECK0(2) + CHECK0(3) +\n" "CHECK0(4) + CHECK0(5) + CHECK0(6) + CHECK0(7) +\n" "CHECK0(8) + CHECK0(9) + CHECK0(10) + CHECK0(11) +\n" "CHECK0(12) + CHECK0(13) + CHECK0(14) + CHECK0(15) +\n" "CHECK1(0) + CHECK1(1) + CHECK1(2) + CHECK1(3) +\n" "CHECK1(4) + CHECK1(5) + CHECK1(6) + CHECK1(7) +\n" "CHECK1(8) + CHECK1(9) + CHECK1(10) + CHECK1(11) +\n" "CHECK1(12) + CHECK1(13) + CHECK1(14) + CHECK1(15) == 0 )\n" "return;\n" "{\n" "int idx = atomic_inc(kp_loc);\n" "if( idx < max_keypoints )\n" "{\n" "kp_loc[1 + 2*idx] = j;\n" "kp_loc[2 + 2*idx] = i;\n" "}\n" "}\n" "}\n" "}\n" "__kernel\n" "void FAST_nonmaxSupression(\n" "__global const int* kp_in, volatile __global int* kp_out,\n" "__global const uchar * _img, int step, int img_offset,\n" "int rows, int cols, int counter, int max_keypoints)\n" "{\n" "const int idx = get_global_id(0);\n" "if (idx < counter)\n" "{\n" "int x = kp_in[1 + 2*idx];\n" "int y = kp_in[2 + 2*idx];\n" "__global const uchar* img = _img + mad24(y, step, x + img_offset);\n" "int s = cornerScore(img, step);\n" "if( (x < 4 || s > cornerScore(img-1, step)) +\n" "(y < 4 || s > cornerScore(img-step, step)) != 2 )\n" "return;\n" "if( (x >= cols - 4 || s > cornerScore(img+1, step)) +\n" "(y >= rows - 4 || s > cornerScore(img+step, step)) +\n" "(x < 4 || y < 4 || s > cornerScore(img-step-1, step)) +\n" "(x >= cols - 4 || y < 4 || s > cornerScore(img-step+1, step)) +\n" "(x < 4 || y >= rows - 4 || s > cornerScore(img+step-1, step)) +\n" "(x >= cols - 4 || y >= rows - 4 || s > cornerScore(img+step+1, step)) == 6)\n" "{\n" "int new_idx = atomic_inc(kp_out);\n" "if( new_idx < max_keypoints )\n" "{\n" "kp_out[1 + 3*new_idx] = x;\n" "kp_out[2 + 3*new_idx] = y;\n" "kp_out[3 + 3*new_idx] = s;\n" "}\n" "}\n" "}\n" "}\n" , "f5e6f463f21a7ed77bd4d2c753478305"}; ProgramSource fast_oclsrc(fast.programStr); const struct ProgramEntry orb={"orb", "#define LAYERINFO_SIZE 1\n" "#define LAYERINFO_OFS 0\n" "#define KEYPOINT_SIZE 3\n" "#define ORIENTED_KEYPOINT_SIZE 4\n" "#define KEYPOINT_X 0\n" "#define KEYPOINT_Y 1\n" "#define KEYPOINT_Z 2\n" "#define KEYPOINT_ANGLE 3\n" "#ifdef ORB_RESPONSES\n" "__kernel void\n" "ORB_HarrisResponses(__global const uchar* imgbuf, int imgstep, int imgoffset0,\n" "__global const int* layerinfo, __global const int* keypoints,\n" "__global float* responses, int nkeypoints )\n" "{\n" "int idx = get_global_id(0);\n" "if( idx < nkeypoints )\n" "{\n" "__global const int* kpt = keypoints + idx*KEYPOINT_SIZE;\n" "__global const int* layer = layerinfo + kpt[KEYPOINT_Z]*LAYERINFO_SIZE;\n" "__global const uchar* img = imgbuf + imgoffset0 + layer[LAYERINFO_OFS] +\n" "(kpt[KEYPOINT_Y] - blockSize/2)*imgstep + (kpt[KEYPOINT_X] - blockSize/2);\n" "int i, j;\n" "int a = 0, b = 0, c = 0;\n" "for( i = 0; i < blockSize; i++, img += imgstep-blockSize )\n" "{\n" "for( j = 0; j < blockSize; j++, img++ )\n" "{\n" "int Ix = (img[1] - img[-1])*2 + img[-imgstep+1] - img[-imgstep-1] + img[imgstep+1] - img[imgstep-1];\n" "int Iy = (img[imgstep] - img[-imgstep])*2 + img[imgstep-1] - img[-imgstep-1] + img[imgstep+1] - img[-imgstep+1];\n" "a += Ix*Ix;\n" "b += Iy*Iy;\n" "c += Ix*Iy;\n" "}\n" "}\n" "responses[idx] = ((float)a * b - (float)c * c - HARRIS_K * (float)(a + b) * (a + b))*scale_sq_sq;\n" "}\n" "}\n" "#endif\n" "#ifdef ORB_ANGLES\n" "#define _DBL_EPSILON 2.2204460492503131e-16f\n" "#define atan2_p1 (0.9997878412794807f*57.29577951308232f)\n" "#define atan2_p3 (-0.3258083974640975f*57.29577951308232f)\n" "#define atan2_p5 (0.1555786518463281f*57.29577951308232f)\n" "#define atan2_p7 (-0.04432655554792128f*57.29577951308232f)\n" "inline float fastAtan2( float y, float x )\n" "{\n" "float ax = fabs(x), ay = fabs(y);\n" "float a, c, c2;\n" "if( ax >= ay )\n" "{\n" "c = ay/(ax + _DBL_EPSILON);\n" "c2 = c*c;\n" "a = (((atan2_p7*c2 + atan2_p5)*c2 + atan2_p3)*c2 + atan2_p1)*c;\n" "}\n" "else\n" "{\n" "c = ax/(ay + _DBL_EPSILON);\n" "c2 = c*c;\n" "a = 90.f - (((atan2_p7*c2 + atan2_p5)*c2 + atan2_p3)*c2 + atan2_p1)*c;\n" "}\n" "if( x < 0 )\n" "a = 180.f - a;\n" "if( y < 0 )\n" "a = 360.f - a;\n" "return a;\n" "}\n" "__kernel void\n" "ORB_ICAngle(__global const uchar* imgbuf, int imgstep, int imgoffset0,\n" "__global const int* layerinfo, __global const int* keypoints,\n" "__global float* responses, const __global int* u_max,\n" "int nkeypoints, int half_k )\n" "{\n" "int idx = get_global_id(0);\n" "if( idx < nkeypoints )\n" "{\n" "__global const int* kpt = keypoints + idx*KEYPOINT_SIZE;\n" "__global const int* layer = layerinfo + kpt[KEYPOINT_Z]*LAYERINFO_SIZE;\n" "__global const uchar* center = imgbuf + imgoffset0 + layer[LAYERINFO_OFS] +\n" "kpt[KEYPOINT_Y]*imgstep + kpt[KEYPOINT_X];\n" "int u, v, m_01 = 0, m_10 = 0;\n" "for( u = -half_k; u <= half_k; u++ )\n" "m_10 += u * center[u];\n" "for( v = 1; v <= half_k; v++ )\n" "{\n" "int v_sum = 0;\n" "int d = u_max[v];\n" "for( u = -d; u <= d; u++ )\n" "{\n" "int val_plus = center[u + v*imgstep], val_minus = center[u - v*imgstep];\n" "v_sum += (val_plus - val_minus);\n" "m_10 += u * (val_plus + val_minus);\n" "}\n" "m_01 += v * v_sum;\n" "}\n" "responses[idx] = fastAtan2((float)m_01, (float)m_10);\n" "}\n" "}\n" "#endif\n" "#ifdef ORB_DESCRIPTORS\n" "__kernel void\n" "ORB_computeDescriptor(__global const uchar* imgbuf, int imgstep, int imgoffset0,\n" "__global const int* layerinfo, __global const int* keypoints,\n" "__global uchar* _desc, const __global int* pattern,\n" "int nkeypoints, int dsize )\n" "{\n" "int idx = get_global_id(0);\n" "if( idx < nkeypoints )\n" "{\n" "int i;\n" "__global const int* kpt = keypoints + idx*ORIENTED_KEYPOINT_SIZE;\n" "__global const int* layer = layerinfo + kpt[KEYPOINT_Z]*LAYERINFO_SIZE;\n" "__global const uchar* center = imgbuf + imgoffset0 + layer[LAYERINFO_OFS] +\n" "kpt[KEYPOINT_Y]*imgstep + kpt[KEYPOINT_X];\n" "float angle = as_float(kpt[KEYPOINT_ANGLE]);\n" "angle *= 0.01745329251994329547f;\n" "float sina = sin(angle);\n" "float cosa = cos(angle);\n" "__global uchar* desc = _desc + idx*dsize;\n" "#define GET_VALUE(idx) \\\n" "center[mad24(convert_int_rte(pattern[(idx)*2] * sina + pattern[(idx)*2+1] * cosa), imgstep, \\\n" "convert_int_rte(pattern[(idx)*2] * cosa - pattern[(idx)*2+1] * sina))]\n" "for( i = 0; i < dsize; i++ )\n" "{\n" "int val;\n" "#if WTA_K == 2\n" "int t0, t1;\n" "t0 = GET_VALUE(0); t1 = GET_VALUE(1);\n" "val = t0 < t1;\n" "t0 = GET_VALUE(2); t1 = GET_VALUE(3);\n" "val |= (t0 < t1) << 1;\n" "t0 = GET_VALUE(4); t1 = GET_VALUE(5);\n" "val |= (t0 < t1) << 2;\n" "t0 = GET_VALUE(6); t1 = GET_VALUE(7);\n" "val |= (t0 < t1) << 3;\n" "t0 = GET_VALUE(8); t1 = GET_VALUE(9);\n" "val |= (t0 < t1) << 4;\n" "t0 = GET_VALUE(10); t1 = GET_VALUE(11);\n" "val |= (t0 < t1) << 5;\n" "t0 = GET_VALUE(12); t1 = GET_VALUE(13);\n" "val |= (t0 < t1) << 6;\n" "t0 = GET_VALUE(14); t1 = GET_VALUE(15);\n" "val |= (t0 < t1) << 7;\n" "pattern += 16*2;\n" "#elif WTA_K == 3\n" "int t0, t1, t2;\n" "t0 = GET_VALUE(0); t1 = GET_VALUE(1); t2 = GET_VALUE(2);\n" "val = t2 > t1 ? (t2 > t0 ? 2 : 0) : (t1 > t0);\n" "t0 = GET_VALUE(3); t1 = GET_VALUE(4); t2 = GET_VALUE(5);\n" "val |= (t2 > t1 ? (t2 > t0 ? 2 : 0) : (t1 > t0)) << 2;\n" "t0 = GET_VALUE(6); t1 = GET_VALUE(7); t2 = GET_VALUE(8);\n" "val |= (t2 > t1 ? (t2 > t0 ? 2 : 0) : (t1 > t0)) << 4;\n" "t0 = GET_VALUE(9); t1 = GET_VALUE(10); t2 = GET_VALUE(11);\n" "val |= (t2 > t1 ? (t2 > t0 ? 2 : 0) : (t1 > t0)) << 6;\n" "pattern += 12*2;\n" "#elif WTA_K == 4\n" "int t0, t1, t2, t3, k;\n" "int a, b;\n" "t0 = GET_VALUE(0); t1 = GET_VALUE(1);\n" "t2 = GET_VALUE(2); t3 = GET_VALUE(3);\n" "a = 0, b = 2;\n" "if( t1 > t0 ) t0 = t1, a = 1;\n" "if( t3 > t2 ) t2 = t3, b = 3;\n" "k = t0 > t2 ? a : b;\n" "val = k;\n" "t0 = GET_VALUE(4); t1 = GET_VALUE(5);\n" "t2 = GET_VALUE(6); t3 = GET_VALUE(7);\n" "a = 0, b = 2;\n" "if( t1 > t0 ) t0 = t1, a = 1;\n" "if( t3 > t2 ) t2 = t3, b = 3;\n" "k = t0 > t2 ? a : b;\n" "val |= k << 2;\n" "t0 = GET_VALUE(8); t1 = GET_VALUE(9);\n" "t2 = GET_VALUE(10); t3 = GET_VALUE(11);\n" "a = 0, b = 2;\n" "if( t1 > t0 ) t0 = t1, a = 1;\n" "if( t3 > t2 ) t2 = t3, b = 3;\n" "k = t0 > t2 ? a : b;\n" "val |= k << 4;\n" "t0 = GET_VALUE(12); t1 = GET_VALUE(13);\n" "t2 = GET_VALUE(14); t3 = GET_VALUE(15);\n" "a = 0, b = 2;\n" "if( t1 > t0 ) t0 = t1, a = 1;\n" "if( t3 > t2 ) t2 = t3, b = 3;\n" "k = t0 > t2 ? a : b;\n" "val |= k << 6;\n" "pattern += 16*2;\n" "#else\n" "#error \"unknown/undefined WTA_K value; should be 2, 3 or 4\"\n" "#endif\n" "desc[i] = (uchar)val;\n" "}\n" "}\n" "}\n" "#endif\n" , "248d13e060f7ad060547e3fe18744bbb"}; ProgramSource orb_oclsrc(orb.programStr); } }}
[ "swinston@mirada.com" ]
swinston@mirada.com
164145545f97011a9cdb586f0f0cca9cd7504f07
49cba5048c408f4d22a300fb354b7b9614a0ad82
/McEngine/src/Engine/Main/main_Horizon.cpp
2d8df7e4a0c184ab6bdd5e0df0e9952c59bc4a5c
[ "MIT" ]
permissive
lwkobe/McEngine
c01922a77cb15911576fbef1b565012576c21466
c24dea65b9e6745391b073dd4521561e9808b1a3
refs/heads/master
2020-07-27T00:58:25.942388
2019-09-13T19:58:15
2019-09-13T19:58:15
208,815,831
1
0
MIT
2019-09-16T14:08:09
2019-09-16T14:08:09
null
UTF-8
C++
false
false
1,834
cpp
//================ Copyright (c) 2019, PG, All rights reserved. =================// // // Purpose: main entry point (nintendo switch) // // $NoKeywords: $main //===============================================================================// #include "cbase.h" #ifdef __SWITCH__ //#define MCENGINE_HORIZON_NXLINK #ifndef MCENGINE_FEATURE_SDL #error SDL2 is currently required for switch builds #endif #include "HorizonSDLEnvironment.h" #include "ConVar.h" #include <switch.h> #include <unistd.h> // for close() static int s_nxlinkSock = -1; static void initNxLink() { if (R_FAILED(socketInitializeDefault())) return; s_nxlinkSock = nxlinkStdio(); if (s_nxlinkSock >= 0) printf("printf output now goes to nxlink server"); else socketExit(); } static void deinitNxLink() { if (s_nxlinkSock >= 0) { close(s_nxlinkSock); socketExit(); s_nxlinkSock = -1; } } extern "C" void userAppInit() { #ifdef MCENGINE_HORIZON_NXLINK initNxLink(); #endif } extern "C" void userAppExit() { #ifdef MCENGINE_HORIZON_NXLINK deinitNxLink(); #endif } extern int mainSDL(int argc, char *argv[], SDLEnvironment *customSDLEnvironment); int main(int argc, char* argv[]) { int ret = 0; // TODO: user selection applet popup, somehow /* u128 userID; accountGetPreselectedUser(&userID); */ romfsInit(); { appletSetScreenShotPermission(1); appletSetFocusHandlingMode(AppletFocusHandlingMode_SuspendHomeSleepNotify); // TODO: seems broken? no notification is received when going to sleep // NOTE: yuzu emulator timing bug workaround (armGetSystemTick() is way too fast), uncomment for testing //convar->getConVarByName("host_timescale")->setValue(0.018f); ret = mainSDL(argc, argv, new HorizonSDLEnvironment()); } romfsExit(); return ret; } #endif
[ "-" ]
-
a47312bdb061c0b963753635556dd24db7774cf9
0abd3fed3c865ec5b2fd32dac2dd7225ac3d999e
/network/node/apayload.h
5be7b55cce725730ff1fc26c958d25f91d7ed52e
[]
no_license
alienator/blockchain-social
206cc9e149391e512c7c08eb38ad2b6edfb5d44d
ca7b9c8b31e9159c69a6eb1ea3133ed8550bb3fc
refs/heads/master
2021-05-08T13:32:00.771868
2018-02-08T16:25:17
2018-02-08T16:25:17
120,018,058
0
0
null
null
null
null
UTF-8
C++
false
false
439
h
#ifndef APAYLOAD_H #define APAYLOAD_H #include <QByteArray> #include "../../core/block/block.h" #include "../../core/block/transaction/atransaction.h" class APayload { public: virtual QByteArray serializeTx(ATransaction *tx) = 0; virtual QByteArray serializeBlock(Block block) = 0; virtual ATransaction *unserializeTx(QByteArray buffer) = 0; virtual Block unserializeBlock(QByteArray buffer) = 0; } #endif // APAYLOAD_H
[ "rloza@fedora.ron" ]
rloza@fedora.ron
40f3a1dcc500ab36929422e0016dc105db203f88
ffccc264ac14e40f4429265dfd550b8aad398d11
/SimulateQueueWithTwoStack/main.cpp
8b4157f826d9bc2851c95ad980244bae5e4fcc9a
[]
no_license
Kidd-Ye/SimulateQueueWithTwoStack
21b040ea3527180b42d1ca32928ee6e6b85dd70c
cc75b5394fcd69249633b2ec453531b0469e5321
refs/heads/master
2020-03-21T07:55:33.618275
2018-06-22T14:17:18
2018-06-22T14:17:18
138,308,651
0
0
null
null
null
null
UTF-8
C++
false
false
2,103
cpp
// // main.cpp // SimulateQueueWithTwoStack // // Created by kidd on 2018/6/22. // Copyright © 2018年 Kidd. All rights reserved. // #include <iostream> using namespace std; #define MAXSIZE 3 struct Stack{ int data[MAXSIZE]; int top = -1; }; bool StackEmpty(Stack &s){ if (s.top == -1) { return true; } return false; } bool StackOverflow(Stack &s){ if (s.top == MAXSIZE - 1) { return true; } return false; } void Push(Stack &s, int x){ s.top++; s.data[s.top] = x; // cout<< x << "进栈" << endl; } void Pop(Stack &s, int &x){ x = s.data[s.top]; s.top -= 1; // cout<< x << "出栈" << endl; } void EnQueue(Stack &s1, Stack &s2, int element){ if (StackOverflow(s1) && !StackEmpty(s2)) { cout<< "Queue is full." << element <<"不能入队" << endl; return; } if (StackOverflow(s1) && StackEmpty(s2)) { int temp = 0; cout<< "将s1中的数据全部插入s2." << endl; while (!StackEmpty(s1)) { Pop(s1, temp); Push(s2, temp); } } Push(s1, element); cout<< element << "进队" << endl; } void DeQueue(Stack &s1, Stack &s2){ int temp = 0; if (StackEmpty(s2)) { if (StackEmpty(s1)) { cout<< "Queue is empty." << endl; return; }else{ cout<< "将s1中的数据全部插入s2." << endl; while (!StackEmpty(s1)) { Pop(s1, temp); Push(s2, temp); } } } Pop(s2, temp); cout<< temp << "出队" << endl; } bool QueueEmpty(Stack &s1, Stack &s2){ return (StackEmpty(s1) && StackEmpty(s2)); } int main(int argc, const char * argv[]) { Stack s1,s2; EnQueue(s1, s2, 1); EnQueue(s1, s2, 2); EnQueue(s1, s2, 3); EnQueue(s1, s2, 4); EnQueue(s1, s2, 5); EnQueue(s1, s2, 6); EnQueue(s1, s2, 7); DeQueue(s1, s2); DeQueue(s1, s2); EnQueue(s1, s2, 5); DeQueue(s1, s2); DeQueue(s1, s2); DeQueue(s1, s2); DeQueue(s1, s2); return 0; }
[ "409263229@qq.com" ]
409263229@qq.com
b737502aa497f886e749cbe36eedc5e606f94e26
a6278f72ea9f36cafe3d489fbd9c311514e12068
/cf/433/a.cpp
55d1276f51a5f5fd8013f71f47c85ca82b67e402
[]
no_license
Balajiganapathi/code
84a915b3cdb38cf01127cbd056d774a92c39edeb
8bbe5fea97b3ffa48186eb8909d0305d7c7163f2
refs/heads/master
2021-01-20T15:51:11.355258
2017-09-11T06:10:05
2017-09-11T06:10:05
60,105,156
0
0
null
null
null
null
UTF-8
C++
false
false
4,636
cpp
/* string coder = "Balajiganapathi S"; // Never give up! */ //#define LOCAL #ifdef LOCAL # define TRACE # define TEST #else # define NDEBUG //# define FAST #endif #include<bits/stdc++.h> using namespace std; /* aliases */ using vi = vector<int>; using pi = pair<int, int>; using ll = long long int; /* shortcut macros */ #define mp make_pair #define fi first #define se second #define mt make_tuple #define gt(t, i) get<i>(t) #define all(x) (x).begin(), (x).end() #define ini(a, v) memset(a, v, sizeof(a)) #define rep(i, s, n) for(int i = (s), _##i = (n); i <= _##i; ++i) #define re(i, s, n) rep(i, (s), (n) - 1) #define fo(i, n) re(i, 0, n) #define si(x) (int((x).size())) #define is1(mask,i) (((mask) >> i) & 1) /* trace macro */ #ifdef TRACE # define trace(v...) {cerr << __func__ << ":" << __LINE__ << ": " ;_dt(#v, v);} #else # define trace(...) #endif #ifdef TRACE pi _gp(string s) { pi r(0, si(s) - 1); int p = 0, s1 = 0, s2 = 0, start = 1; fo(i, si(s)) { int x = (s1 | s2); if(s[i] == ' ' && start) { ++r.fi; } else { start = 0; if(s[i] == ',' && !p && !x) { r.se = i - 1; return r; } if(x && s[i] == '\\') ++i; else if(!x && s[i] == '(') ++p; else if(!x && s[i] == ')') --p; else if(!s2 && s[i] == '\'') s1 ^= 1; else if(!s1 && s[i] == '"') s2 ^= 1; } } return r; } template<typename H> void _dt(string u, H&& v) { pi p = _gp(u); cerr << u.substr(p.fi, p.se - p.fi + 1) << " = " << forward<H>(v) << " |" << endl; } template<typename H, typename ...T> void _dt(string u, H&& v, T&&... r) { pi p = _gp(u); cerr << u.substr(p.fi, p.se - p.fi + 1) << " = " << forward<H>(v) << " | "; _dt(u.substr(p.se + 2), forward<T>(r)...); } template<typename T> ostream &operator <<(ostream &o, vector<T> v) { // print a vector o << "["; fo(i, si(v) - 1) o << v[i] << ", "; if(si(v)) o << v.back(); o << "]"; return o; } template<typename T1, typename T2> ostream &operator <<(ostream &o, map<T1, T2> m) { // print a map o << "{"; for(auto &p: m) { o << " (" << p.fi << " -> " << p.se << ")"; } o << " }"; return o; } template<typename T> ostream &operator <<(ostream &o, set<T> s) { // print a set o << "{"; bool first = true; for(auto &entry: s) { if(!first) o << ", "; o << entry; first = false; } o << "}"; return o; } template <size_t n, typename... T> typename enable_if<(n >= sizeof...(T))>::type print_tuple(ostream&, const tuple<T...>&) {} template <size_t n, typename... T> typename enable_if<(n < sizeof...(T))>::type print_tuple(ostream& os, const tuple<T...>& tup) { if (n != 0) os << ", "; os << get<n>(tup); print_tuple<n+1>(os, tup); } template <typename... T> ostream& operator<<(ostream& os, const tuple<T...>& tup) { // print a tuple os << "("; print_tuple<0>(os, tup); return os << ")"; } template <typename T1, typename T2> ostream& operator<<(ostream& os, const pair<T1, T2>& p) { // print a pair return os << "(" << p.fi << ", " << p.se << ")"; } #endif /* util functions */ template<typename T1, typename T2, typename T3> T1 modpow(T1 _a, T2 p, T3 mod) { assert(p >= 0); ll ret = 1, a = _a; #ifndef FAST if(a < 0) { a %= mod; a += mod; } if(a >= mod) { a %= mod; } #endif for(; p > 0; p /= 2) { if(p & 1) ret = ret * a % mod; a = a * a % mod; } return ret; } #define x1 _asdfzx1 #define y1 _ysfdzy1 /* constants */ constexpr int dx[] = {-1, 0, 1, 0, 1, 1, -1, -1}; constexpr int dy[] = {0, -1, 0, 1, 1, -1, 1, -1}; constexpr auto PI = 3.14159265358979323846L; constexpr auto oo = numeric_limits<int>::max() / 2 - 2; constexpr auto eps = 1e-6; constexpr auto mod = 1000000007; /* code */ constexpr int mx_n = 300005; int k, n; int ans[mx_n], c[mx_n]; int main() { ios_base::sync_with_stdio(false); cin.tie(nullptr); ll cost = 0; cin >> n >> k; fo(i, n) cin >> c[i]; priority_queue<pi> pq; fo(i, k) pq.emplace(c[i], i); re(i, k, k + n) { if(i < n) pq.emplace(c[i], i); auto cur = pq.top(); pq.pop(); cost += 1ll * c[cur.se] * (i - cur.se); ans[cur.se] = i+1; } cout << cost << endl; fo(i, n) cout << ans[i] << " "; cout << endl; return 0; }
[ "balajiganapathi.s@gmail.com" ]
balajiganapathi.s@gmail.com
dc54f0e694646210b77d4f11c2adbc116d97aeeb
f0e3130c7947ad46bf45f96d653582e9b78a7c53
/ACS-84 ATTiny84 sketches/ACS-84-0570/ACS-84-0570.ino
cd4b512d4f4ab1b147d0bcc795b5f8633ddc3283
[]
no_license
robstave/ArduinoComponentSketches
97fc937500bad318f6fe85982773c0dc3550aac8
595aed09e339d7ce3fe8fdff066f29476452ca02
refs/heads/master
2023-07-11T01:03:09.577756
2023-06-24T21:08:02
2023-06-24T21:08:02
42,901,551
37
8
null
2019-06-16T22:57:32
2015-09-22T00:35:50
C++
UTF-8
C++
false
false
3,023
ino
/** ACS-85-0608 External pin 1 = Vcc External pin 2 (PB0) = not used External pin 3 (PB1) = not used External pin 4 (PB) = Reset (not used) External pin 5 (PB0) = not used External pin 6 (PA7) = not used External pin 7 (PA6) = output clock as trigger External pin 8 (PA5) = out 1 External pin 9 (PA4) = out 2 External pin 10 (PA3) = out 3 External pin 11 (PA2) = out 4 External pin 12 (PA1) = Trigger Length External pin 13 (PA0) = Random External pin 14 = GND V 1.0 - First Version Rob Stave (Rob the fiddler) ccby 2020 */ //https://forum.arduino.cc/index.php?topic=214375.0 // ATTiny overview // +-\/-+ // VCC set 1| |8 GND // PB0 2| |7 PA0 clock // PB1 3| |6 PA1 Input // reset 4| |5 PA2 select 4/8 // output 4 PB2 5| |5 PA3 write // output 3 PA7 6| |5 PA4 // output 2 PA6 7| |5 PA5 output 1 // ------ volatile byte counter = 0; volatile unsigned int samples[8]; volatile byte registerSize = 4; volatile byte sample = 40; volatile byte registerWrite = 1; //https://electronics.stackexchange.com/questions/50380/determining-which-pin-triggered-a-pcintn-interrupt volatile uint8_t portbhistory = 0xFF; // default is high because the pull-up void setup() { DDRA = B00010000; //set output bits noInterrupts(); // disable all interrupts TCCR0B = TCCR0B & 0b11111000 | 0b001; TCCR1B = TCCR1B & 0b11111000 | 0b001; PORTA |= ((1 << PORTA0) | (1 << PORTA2) | (1 << PORTA3) | (1 << PORTA4)); // PA0are now inputs with pull-up enabled PCMSK0 = bit (PCINT0) ; GIMSK = bit (PCIE0); interrupts(); // enable all interrupts } ISR (PCINT0_vect) { uint8_t changedbits; changedbits = PINA ^ portbhistory; portbhistory = PINA; if (changedbits & (1 << PA0)) { /* PCINT0 changed */ PORTA ^= (_BV(PA4)); clockCounter(); } } void clockCounter() // called by interrupt { counter++; if (counter >= registerSize) { counter = 0; } if (registerWrite > 0) { samples[counter] = sample; } byte shiftOutCount = 0; if (counter == 0){ shiftOutCount = registerSize - 1; } else { shiftOutCount = counter - 1; } analogWrite(5, samples[shiftOutCount]); analogWrite(6, samples[((shiftOutCount - 1 + registerSize) % registerSize)]); analogWrite(7, samples[((shiftOutCount - 2 + registerSize) % registerSize)]); analogWrite(8, samples[((shiftOutCount - 3 + registerSize) % registerSize)]); } void loop() { byte loopCounter = 0; byte regSize = 0; while (true) { // Check if we want to go to write mode (usually yes) registerWrite = bitRead(PINA, 3); regSize = bitRead(PINA, 2); if (regSize > 0) { registerSize = 8; } else { registerSize = 4; } // Read value pretty much constantly sample = map(analogRead(A1), 0, 1023, 0, 255); } }
[ "robstave@yahoo.com" ]
robstave@yahoo.com
cd3a3a6790d526f014d42908c727dd0bd5e3c2da
6b30a7539bf779e6e4406bebde5a3a385b391d43
/tools/vtfilter/old/vt_tracefilter.cc
34f10ebcfa08db20b3551c02b770c2bf73602883
[ "BSD-3-Clause" ]
permissive
buaasun/vampirtrace
f9508c6661f6ee18c7a94606fdec4b19c55ee903
b7205e107273bec609b3f9017e73dad7da9d422c
refs/heads/master
2021-01-20T21:13:11.695515
2016-06-22T09:24:03
2016-06-22T09:24:03
61,547,454
1
1
null
null
null
null
UTF-8
C++
false
false
44,343
cc
/** * VampirTrace * http://www.tu-dresden.de/zih/vampirtrace * * Copyright (c) 2005-2013, ZIH, TU Dresden, Federal Republic of Germany * * Copyright (c) 1998-2005, Forschungszentrum Juelich, Juelich Supercomputing * Centre, Federal Republic of Germany * * See the file COPYING in the package base directory for details **/ /* When generating a filterfile this tool creates a statistic over all processes and functions. It simply adds all functions and all values together. Even the subfunctions of a function are simply put together. With using this statistic vtfilter decides which functions to filter. VampirTrace instead does filtering on a per process basis, which means That if someone sets the functionlimit to 3000, the function might actually be called 12000 times on 4 different processes. vtfilter does not regard this case, because it's pretty difficult to calculate a correct reduction of the trace. -> Filtering happens on a per process basis, but a filterfile belongs to every process. This means the calculation of the reduction percentage is wrong !!! Filtering using vtfilter is exactly the same as doing another tracerun with newly created filter file. */ #include "vt_filter_config.h" #include "vt_filterc.h" #include "vt_otfhandler.h" #include "vt_filthandler.h" #include <fstream> #include <ios> #include <stdlib.h> #include <string.h> #if defined(HAVE_OMP) && HAVE_OMP # include <omp.h> #endif // HAVE_OMP #ifdef VT_MPI # define MASTER if( MyRank == 0 ) static VT_MPI_INT NumRanks; static VT_MPI_INT MyRank; #else // VT_MPI # define MASTER #endif // VT_MPI #if defined(HAVE_OMP) && HAVE_OMP # include <omp.h> #else // HAVE_OMP # define omp_get_num_threads() 1 # define omp_get_thread_num() 0 # define omp_get_max_threads() 1 #endif // HAVE_OMP #ifdef VT_FILTER_OLD # define main( n, a ) vtfilter_main( n, a ) # define exit( s ) return s # ifdef VT_MPI # define MPI_Init( n, a ) # define MPI_Abort( c, s ) # define MPI_Finalize() # endif // VT_MPI #endif // VT_FILTER_OLD #if SIZEOF_LONG == 4 # define ATOL8 atoll #else # define ATOL8 atol #endif #define HELPTEXT "" \ " \n" \ " vtfilter[-mpi] - filter generator for VampirTrace. \n" \ " \n" \ " Syntax: \n" \ " Filter a trace file using an already existing filter file: \n" \ " vtfilter[-mpi] -filt [filt-options] <input trace file> \n" \ " \n" \ " Generate a filter: \n" \ " vtfilter[-mpi] -gen [gen-options] <input trace file> \n" \ " \n" \ " options: \n" \ " -h, --help show this help message \n" \ " -p show progress \n" \ " (not yet implemented for vtfilter-mpi) \n" \ " \n" \ " filt-options: \n" \ " -to <file> output trace file name \n" \ " -fi <file> input filter file name \n" \ " \n" \ " -z <zlevel> Set the compression level. Level reaches from 0\n" \ " to 9 where 0 is no compression and 9 is the \n" \ " highest level. Standard is 4. \n" \ " -f <n> Set max number of file handles available. \n" \ " Standard is 256. \n" \ " \n" \ " gen-options: \n" \ " -fo <file> output filterfile name \n" \ " \n" \ " -r <n> Reduce the trace size to <n> percent of the \n" \ " original size. The program relies on the fact \n" \ " that the major part of the trace are function \n" \ " calls. The approximation of size will get \n" \ " worse with a rising percentage of \n" \ " communication and other non function calling \n" \ " or performance counter records. \n" \ " -l <n> Limit the number of accepted function calls \n" \ " for filtered functions to <n>. Standard is 0. \n" \ " -ex <f>,<f>,... Exclude certain symbols from filtering. \n" \ " A symbol may contain wildcards. \n" \ " -in <f>,<f>,... Force to include certain symbols into the \n" \ " filter. A symbol may contain wildcards. \n" \ " -inc Automatically include children of included \n" \ " functions as well into the filter. \n" \ " \n" \ " -stats Prints out the desired and the expected \n" \ " percentage of file size. \n" \ " \n" \ " environment variables: \n" \ " TRACEFILTER_EXCLUDEFILE Specifies a file containing a list of \n" \ " symbols not to be filtered. The list of \n" \ " members can be seperated by space, comma, \n" \ " tab, newline and may contain wildcards. \n" \ " TRACEFILTER_INCLUDEFILE Specifies a file containing a list of \n" \ " symbols to be filtered. \n" using namespace std; static void initProgressDisplay(); static void finishProgressDisplay(); static void updateProgressDisplay( uint32_t i, uint64_t max, uint64_t cur ); static void dump ( const vector<Function>& functions, const set<uint32_t>& excluded, uint64_t timerresolution, uint64_t limit, ostream& out ); static vector<string> readTokensFromFile( const string& filename ); static map<uint32_t,uint64_t> readFilterFile( const string& filename, const map<string,uint32_t>& nm2tok ); enum Action { none, gen, filt }; int main( int argc, char** argv ) { ofstream of; string intrace; string outtrace; string infilt; string outfilt; vector<string> exsym; vector<string> insym; float expected_reducepercentage= 100.0f; float desired_reducepercentage= 100.0f; Action action = none; uint64_t invocationlimit = 0; bool inchildren = false; bool stats = false; OTF_FileCompression compression= 4; uint32_t nfiles = 256; bool showprogress = false; uint64_t retev, retst, retsn; #ifdef VT_MPI MPI_Init( &argc, &argv ); MPI_Comm_size( MPI_COMM_WORLD, &NumRanks ); MPI_Comm_rank( MPI_COMM_WORLD, &MyRank ); #endif // VT_MPI /* *** need help? *** */ if ( argc < 2 ) { MASTER cout << HELPTEXT << endl; #ifdef VT_MPI MPI_Finalize(); #endif // VT_MPI return 0; } for( int i = 1; i < argc; i++ ) { if ( strcmp( "--help", argv[i] ) == 0 || strcmp( "-h", argv[i] ) == 0 ) { MASTER cout << HELPTEXT << endl; #ifdef VT_MPI MPI_Finalize(); #endif // VT_MPI return 0; } } /* *** determine actuib to take *** */ if( strcmp("-gen",argv[1]) == 0 ) action = gen; else if( strcmp("-filt",argv[1]) == 0 ) action = filt; else action = none; /* *** parse parameters *** */ for ( int i = 2; i < argc; i++ ) { if ( strcmp("-fo", argv[i]) == 0 && ( i+1 < argc ) ) { ++i; outfilt= argv[i]; } else if (strcmp( "-fi",argv[i]) == 0 && ( i+1 < argc ) ) { ++i; infilt = argv[i]; } else if (strcmp( "-to",argv[i]) == 0 && ( i+1 < argc ) ) { ++i; outtrace= argv[i]; } else if ( strcmp( "-p", argv[i] ) == 0 ) { #ifdef VT_MPI MASTER cerr << "Warning: Progress is not yet implemented for vtfilter-mpi. Ignoring option: \"-p\"" << endl; #else // VT_MPI showprogress = true; #endif // VT_MPI } else if ( 0 == strcmp("-z", argv[i]) && ( i+1 < argc ) ) { ++i; compression = (uint32_t) atoi( argv[i] ); } else if ( 0 == strcmp("-f", argv[i]) && ( i+1 < argc ) ) { ++i; nfiles = (uint32_t) atoi(argv[i]); } else if ( 0 == strcmp("-r",argv[i]) && ( i+1 < argc ) ) { ++i; desired_reducepercentage= (float) atof( argv[i] ); expected_reducepercentage= desired_reducepercentage; } else if ( 0 == strcmp("-l", argv[i]) && ( i+1 < argc ) ) { ++i; invocationlimit= (uint64_t) ATOL8( argv[i] ); } else if ( 0 == strcmp( "-ex", argv[i] ) && ( i+1 < argc ) ) { ++i; char* token= strtok( argv[i], "," ); while( NULL != token ) { exsym.push_back( token ); token= strtok( NULL, "," ); } } else if ( 0 == strcmp( "-in", argv[i] ) && ( i+1 < argc ) ) { ++i; char* token= strtok( argv[i], "," ); while( NULL != token ) { insym.push_back( token ); token= strtok( NULL, "," ); } } else if ( 0 == strcmp( "-inc", argv[i] ) ) { inchildren= true; } else if ( 0 == strcmp( "-stats", argv[i] ) ) { stats= true; } else { if ( '-' != argv[i][0] ) { intrace= argv[i]; } else { MASTER cerr << "Unknown option: \"" << argv[i] << "\". Aborting" << endl; #ifdef VT_MPI MPI_Abort( MPI_COMM_WORLD, 1 ); #endif // VT_MPI exit(1); } } } /* *** check the correctness of the parameters *** */ bool err = false; if( intrace.empty() == true ) { MASTER cerr << "No no input trace has been specified. Aborting" << endl; err = true; } /* if( nfiles < (uint32_t)omp_get_max_threads() ) { MASTER cerr << "The maximum number of open files is not allowed to be less than" " the threadcount. Aborting" << endl; #ifdef VT_MPI MPI_Abort( MPI_COMM_WORLD, 1 ); #endif // VT_MPI exit(1); }*/ switch(action) { case gen: if( desired_reducepercentage < 0.0f || desired_reducepercentage > 100.0f ) { MASTER cerr << "Wrong reduction percentage: " << desired_reducepercentage << ". Aborting" << endl; err = true; } if( outfilt.empty() == true ) { MASTER cerr << "No output filter has been specified. Aborting" << endl; err = true; } break; case filt: if( outtrace.empty() == true ) { MASTER cerr << "No output trace has been specified. Aborting" << endl; err = true; } if( infilt.empty() == true ) { MASTER cerr << "No input filter has been specified. Aborting" << endl; err = true; } break; case none: default: MASTER cerr << "No action has been specified. Aborting" << endl; err = true; break; } if( err == true ) { #ifdef VT_MPI MPI_Abort( MPI_COMM_WORLD, 1 ); #endif // VT_MPI exit(1); } /* *** cut the ".otf"-suffix from input/output trace file name *** */ char* tmp; tmp = OTF_stripFilename(intrace.c_str()); intrace = tmp; free(tmp); if(!outtrace.empty()) { tmp = OTF_stripFilename(outtrace.c_str()); outtrace = tmp; free(tmp); } /* *** read the exclude symbols file, if there is one *** */ char* tfef = getenv("TRACEFILTER_EXCLUDEFILE"); char* tfif = getenv("TRACEFILTER_INCLUDEFILE"); vector<string> ret = readTokensFromFile( tfef != NULL ? tfef : "" ); for( size_t i = 0; i < ret.size(); ++i ) { exsym.push_back( ret[i] ); } ret = readTokensFromFile( tfif != NULL ? tfif : "" ); for( size_t i = 0; i < ret.size(); ++i ) { insym.push_back( ret[i] ); } /* generate a new filter file */ if( action == gen ) { HandlerArgument fha; fha.p2f.insert( pair<uint32_t,Filter>(0,Filter()) ); uint64_t minbytes = 0, curbytes = 0, maxbytes = 0; /* *** Read the trace once without handling records -> get the min and maxbytes. Read the definitions Add all processes to the process2filter mapping *** */ OTF_FileManager* pmanager; OTF_Reader* preader; OTF_HandlerArray* phandlers; pmanager= OTF_FileManager_open( nfiles ); vt_assert( pmanager ); preader = OTF_Reader_open( intrace.c_str(), pmanager ); if( !preader ) { MASTER cerr << "Could not open input trace file \"" << intrace << "\". Aborting" << endl; #ifdef VT_MPI MPI_Abort( MPI_COMM_WORLD, 1 ); #endif // VT_MPI exit(1); } phandlers = OTF_HandlerArray_open(); vt_assert( phandlers ); OTF_MasterControl* pmc = OTF_Reader_getMasterControl( preader ); vt_assert( pmc ); OTF_HandlerArray_setHandler( phandlers, (OTF_FunctionPointer*) handleDefTimerResolution, OTF_DEFTIMERRESOLUTION_RECORD ); OTF_HandlerArray_setFirstHandlerArg( phandlers, &fha, OTF_DEFTIMERRESOLUTION_RECORD ); OTF_HandlerArray_setHandler( phandlers, (OTF_FunctionPointer*) handleDefFunction, OTF_DEFFUNCTION_RECORD ); OTF_HandlerArray_setFirstHandlerArg( phandlers, &fha, OTF_DEFFUNCTION_RECORD ); #ifndef VT_MPI uint64_t pminbytestmp, pcurbytestmp, pmaxbytestmp; /* progress stuff */ OTF_Reader_setRecordLimit( preader, 0 ); uint64_t pretev= OTF_Reader_readEvents( preader, phandlers ); if( pretev == OTF_READ_ERROR ) { MASTER cerr << "Error while reading Events. Aborting" << endl; exit(1); } OTF_Reader_eventBytesProgress( preader, &pminbytestmp, &pcurbytestmp, &pmaxbytestmp ); minbytes += pminbytestmp; maxbytes += pmaxbytestmp; #else // VT_MPI /* *** minbytes and maxbytes not used for vtfilter-mpi do the following to prevent "set but not used" warnings when building with the PGI compiler *** */ minbytes++; maxbytes++; #endif // VT_MPI /* defs */ OTF_Reader_setRecordLimit( preader, OTF_READ_MAXRECORDS ); uint64_t pretde= OTF_Reader_readDefinitions( preader, phandlers ); if( pretde == OTF_READ_ERROR ) { MASTER cerr << "Error while reading Definitions. Aborting" << endl; #ifdef VT_MPI MPI_Abort( MPI_COMM_WORLD, 1 ); #endif // VT_MPI exit(1); } OTF_HandlerArray_close( phandlers ); OTF_Reader_close( preader ); OTF_FileManager_close( pmanager ); if( showprogress ) { initProgressDisplay(); } /* open the mastercontrol file */ OTF_FileManager* mcmanager = OTF_FileManager_open(nfiles); vt_assert(mcmanager); OTF_MasterControl* mc = OTF_MasterControl_new(mcmanager); vt_assert(mc); if( 0 == OTF_MasterControl_read( mc, intrace.c_str() ) ) { MASTER cerr << "Could not read OTF Master Control File \"" << intrace << ".otf\". Aborting" << endl; #ifdef VT_MPI MPI_Abort( MPI_COMM_WORLD, 1 ); #endif // VT_MPI exit(1); } /* *** prepare the parallel construct *** */ int maxstreams = (int) OTF_MasterControl_getCount(mc); uint64_t readrecords= 0; uint64_t lastprogressupdate = 0; uint64_t progress_counter = 0; bool erroroccured = false; int streamindex_begin = 0; int streamindex_end = maxstreams; #ifdef VT_MPI /* distribute streams to MPI ranks */ int nworker = (NumRanks > maxstreams) ? maxstreams : NumRanks; int bstreams = maxstreams / nworker; bool idlerank = false; streamindex_begin = MyRank * bstreams; streamindex_end = streamindex_begin + bstreams; if( (MyRank == nworker - 1) && streamindex_end != maxstreams ) streamindex_end = maxstreams; /* idle MPI rank? */ if( MyRank >= nworker ) { streamindex_begin = streamindex_end = 0; fha.p2f.clear(); idlerank = true; } #endif // VT_MPI /* insert processes into the process2filter mapping */ for( int i = 0; i < maxstreams; ++i ) { if( i >= streamindex_begin && i < streamindex_end ) { OTF_MapEntry* entry = OTF_MasterControl_getEntryByIndex( mc, i ); for( uint32_t j = 0; j < entry->n; j++ ) { fha.p2f.insert( pair<uint32_t,Filter>(entry->values[j],Filter()) ); } } } # if defined(HAVE_OMP) && HAVE_OMP if( streamindex_end-streamindex_begin < omp_get_max_threads() ) omp_set_num_threads( streamindex_end-streamindex_begin ); # pragma omp parallel for firstprivate(mc,nfiles,minbytes,maxbytes) \ shared(fha,curbytes,readrecords,lastprogressupdate,progress_counter,erroroccured) \ private(retev,retst,retsn) # endif // HAVE_OMP for( int streamindex = streamindex_begin; streamindex < streamindex_end; ++streamindex ) { /* *** init otf *** */ OTF_FileManager* manager; OTF_RStream* rstream; OTF_HandlerArray* handlers; uint32_t streamid = OTF_MasterControl_getEntryByIndex(mc,(uint32_t)streamindex)->argument; manager= OTF_FileManager_open( nfiles ); vt_assert( manager ); rstream = OTF_RStream_open( intrace.c_str(), streamid, manager ); vt_assert( rstream ); handlers = OTF_HandlerArray_open(); vt_assert( handlers ); OTF_HandlerArray_setHandler( handlers, (OTF_FunctionPointer*) handleEnter, OTF_ENTER_RECORD ); OTF_HandlerArray_setFirstHandlerArg( handlers, &fha, OTF_ENTER_RECORD ); OTF_HandlerArray_setHandler( handlers, (OTF_FunctionPointer*) handleLeave, OTF_LEAVE_RECORD ); OTF_HandlerArray_setFirstHandlerArg( handlers, &fha, OTF_LEAVE_RECORD ); OTF_HandlerArray_setHandler( handlers, (OTF_FunctionPointer*) handleCollectiveOperation, OTF_COLLOP_RECORD ); OTF_HandlerArray_setFirstHandlerArg( handlers, &fha, OTF_COLLOP_RECORD ); OTF_HandlerArray_setHandler( handlers, (OTF_FunctionPointer*) handleRecvMsg, OTF_RECEIVE_RECORD ); OTF_HandlerArray_setFirstHandlerArg( handlers, &fha, OTF_RECEIVE_RECORD ); OTF_HandlerArray_setHandler( handlers, (OTF_FunctionPointer*) handleSendMsg, OTF_SEND_RECORD ); OTF_HandlerArray_setFirstHandlerArg( handlers, &fha, OTF_SEND_RECORD ); if( showprogress ) { uint64_t minbytestmp, curbytestmp, lastbytestmp = 0, maxbytestmp; OTF_RStream_setRecordLimit( rstream, 100000 ); while ( 0 != ( retev= OTF_RStream_readEvents( rstream, handlers ) ) ) { if( OTF_READ_ERROR == retev ) { # if defined(HAVE_OMP) && HAVE_OMP # pragma omp critical (consoleout) # endif // HAVE_OMP { cerr << "Error while reading events. aborting" << endl; } erroroccured = true; break; } OTF_RStream_eventBytesProgress( rstream, &minbytestmp, &curbytestmp, &maxbytestmp ); /* update the progress */ # if defined(HAVE_OMP) && HAVE_OMP # pragma omp critical (progressupdate) # endif // HAVE_OMP { curbytes += curbytestmp - lastbytestmp; lastbytestmp = curbytestmp; readrecords += retev; if( readrecords - lastprogressupdate >= 100000 ) { updateProgressDisplay( progress_counter++, maxbytes - minbytes, curbytes ); lastprogressupdate = readrecords; } } } } else { retev = OTF_RStream_readEvents( rstream, handlers ); if( retev == OTF_READ_ERROR ) { # if defined(HAVE_OMP) && HAVE_OMP # pragma omp critical (consoleout) # endif // HAVE_OMP { cerr << "Error while reading events. aborting" << endl; } erroroccured = true; } } OTF_HandlerArray_close( handlers ); OTF_RStream_close( rstream ); OTF_FileManager_close( manager ); } /* end parallel */ OTF_MasterControl_close(mc); OTF_FileManager_close(mcmanager); if( showprogress ) { finishProgressDisplay(); } if( erroroccured ) { #ifdef VT_MPI MPI_Abort( MPI_COMM_WORLD, 1 ); #endif // VT_MPI exit(1); } Filter filter; /* gather all information from the processes into a single filter structure */ map<uint32_t /*procid*/, Filter>::const_iterator itfuncs; for( itfuncs = fha.p2f.begin(); itfuncs != fha.p2f.end(); ++itfuncs ) { filter += itfuncs->second; } #ifdef VT_MPI if( NumRanks > 1 ) { /* send filter structure to rank 0 */ MPI_Barrier( MPI_COMM_WORLD ); VT_MPI_INT buffer_size = 0; char* buffer; if( MyRank != 0 && !idlerank ) { /* transform filter structure to buffer */ buffer_size = filter.getPackSize(); buffer = new char[buffer_size]; VT_MPI_INT buffer_pos = 0; filter.packBuffer( buffer, buffer_size, buffer_pos ); /* send filter buffer to rank 0 */ MPI_Send( &buffer_size, 1, MPI_INT, 0, 100, MPI_COMM_WORLD ); MPI_Send( buffer, buffer_size, MPI_PACKED, 0, 200, MPI_COMM_WORLD ); delete [] buffer; } else if( MyRank == 0 ) { /* collect filter structures from all other ranks */ for( int i = 1; i < nworker; i++ ) { /* receive filter buffer from rank i */ MPI_Recv( &buffer_size, 1, MPI_INT, i, 100, MPI_COMM_WORLD, MPI_STATUS_IGNORE ); buffer = new char[buffer_size]; MPI_Recv( buffer, buffer_size, MPI_PACKED, i, 200, MPI_COMM_WORLD, MPI_STATUS_IGNORE ); /* transform buffer to filter structure */ Filter f; VT_MPI_INT buffer_pos = 0; f.unpackBuffer( buffer, buffer_size, buffer_pos ); filter += f; delete [] buffer; } } } #endif // VT_MPI MASTER { /* do some calculations after adding all functions */ filter.postProcessing(); /* all functions, including statistics */ vector<Function> functions = filter.getFunctions(); /* *** get the excluded and included tokens from their names *** */ set<uint32_t> extok; set<uint32_t> intok; vector<string>::const_iterator its; /* symbol iterator for in- and excludes */ vector<Function>::const_iterator itf; /* iterator for functions */ bool excluded; for( itf = functions.begin(); itf != functions.end(); ++itf ) { excluded = false; for( its = exsym.begin(); its != exsym.end(); ++its ) { if( 0 == fnmatch( its->c_str(), itf->name.c_str(), FNM_NOESCAPE ) ) { extok.insert( itf->id ); excluded = true; break; } } /* you cannot include something you already excluded */ if( excluded ) continue; for( its = insym.begin(); its != insym.end(); ++its ) { if( 0 == fnmatch( its->c_str(), itf->name.c_str(), FNM_NOESCAPE ) ) { intok.insert( itf->id ); break; } } } /* reduce functions - judging part */ set<uint32_t> killed= filter.reduceTo( &expected_reducepercentage, extok, intok, inchildren, invocationlimit ); /* print out some information */ if( true == stats ) { cout << "desired " << desired_reducepercentage << "% expected " << expected_reducepercentage << "%" << endl; } /* print the filter + report to specified filter file */ of.open( outfilt.c_str() ); if( of.is_open() ) { dump( functions, killed, filter.getTimerResolution(), invocationlimit, of ); } else { cerr << "Could not open output file \"" << outfilt << "\". Aborting" << endl; } of.close(); } } else if( action == filt ) { MASTER { #ifdef VT_MPI if( NumRanks > 1 ) cerr << "Warning: Filtering a trace in parallel is not yet implemented. Using 1 process." << endl; #endif // VT_MPI FiltHandlerArgument fha; /* Open the mastercontrol file -> threads need it to determine their workload. Copy the mastercontrol file to the new trace */ OTF_FileManager* mcmanager = OTF_FileManager_open(nfiles); vt_assert(mcmanager); fha.mc = OTF_MasterControl_new(mcmanager); vt_assert(fha.mc); if( 1 == OTF_MasterControl_read( fha.mc, intrace.c_str() ) ) { if( 0 == OTF_MasterControl_write( fha.mc, outtrace.c_str() ) ) { cerr << "Could not write OTF Master Control File \"" << outtrace << ".otf\". Aborting" << endl; #ifdef VT_MPI MPI_Abort( MPI_COMM_WORLD, 1 ); #endif // VT_MPI exit(1); } } else { cerr << "Could not read OTF Master Control File \"" << intrace << ".otf\". Aborting" << endl; #ifdef VT_MPI MPI_Abort( MPI_COMM_WORLD, 1 ); #endif // VT_MPI exit(1); } /* *** Read the Definitions: 1. Copy them 2. create a name-token mapping *** */ OTF_FileManager* defmanager; OTF_RStream* defrstream; OTF_HandlerArray* defhandlers; defmanager= OTF_FileManager_open( nfiles ); vt_assert( defmanager ); defhandlers = OTF_HandlerArray_open(); vt_assert( defhandlers ); OTF_HandlerArray_setHandler( defhandlers, (OTF_FunctionPointer*) handleFiltDefinitionComment, OTF_DEFINITIONCOMMENT_RECORD ); OTF_HandlerArray_setFirstHandlerArg( defhandlers, &fha, OTF_DEFINITIONCOMMENT_RECORD ); OTF_HandlerArray_setHandler( defhandlers, (OTF_FunctionPointer*) handleFiltDefTimerResolution, OTF_DEFTIMERRESOLUTION_RECORD ); OTF_HandlerArray_setFirstHandlerArg( defhandlers, &fha, OTF_DEFTIMERRESOLUTION_RECORD ); OTF_HandlerArray_setHandler( defhandlers, (OTF_FunctionPointer*) handleFiltDefProcess, OTF_DEFPROCESS_RECORD ); OTF_HandlerArray_setFirstHandlerArg( defhandlers, &fha, OTF_DEFPROCESS_RECORD ); OTF_HandlerArray_setHandler( defhandlers, (OTF_FunctionPointer*) handleFiltDefProcessGroup, OTF_DEFPROCESSGROUP_RECORD ); OTF_HandlerArray_setFirstHandlerArg( defhandlers, &fha, OTF_DEFPROCESSGROUP_RECORD ); OTF_HandlerArray_setHandler( defhandlers, (OTF_FunctionPointer*) handleFiltDefFunction, OTF_DEFFUNCTION_RECORD ); OTF_HandlerArray_setFirstHandlerArg( defhandlers, &fha, OTF_DEFFUNCTION_RECORD ); OTF_HandlerArray_setHandler( defhandlers, (OTF_FunctionPointer*) handleFiltDefFunctionGroup, OTF_DEFFUNCTIONGROUP_RECORD ); OTF_HandlerArray_setFirstHandlerArg( defhandlers, &fha, OTF_DEFFUNCTIONGROUP_RECORD ); OTF_HandlerArray_setHandler( defhandlers, (OTF_FunctionPointer*) handleFiltDefCollectiveOperation, OTF_DEFCOLLOP_RECORD ); OTF_HandlerArray_setFirstHandlerArg( defhandlers, &fha, OTF_DEFCOLLOP_RECORD ); OTF_HandlerArray_setHandler( defhandlers, (OTF_FunctionPointer*) handleFiltDefCounter, OTF_DEFCOUNTER_RECORD ); OTF_HandlerArray_setFirstHandlerArg( defhandlers, &fha, OTF_DEFCOUNTER_RECORD ); OTF_HandlerArray_setHandler( defhandlers, (OTF_FunctionPointer*) handleFiltDefCounterGroup, OTF_DEFCOUNTERGROUP_RECORD ); OTF_HandlerArray_setFirstHandlerArg( defhandlers, &fha, OTF_DEFCOUNTERGROUP_RECORD ); OTF_HandlerArray_setHandler( defhandlers, (OTF_FunctionPointer*) handleFiltDefScl, OTF_DEFSCL_RECORD ); OTF_HandlerArray_setFirstHandlerArg( defhandlers, &fha, OTF_DEFSCL_RECORD ); OTF_HandlerArray_setHandler( defhandlers, (OTF_FunctionPointer*) handleFiltDefSclFile, OTF_DEFSCLFILE_RECORD ); OTF_HandlerArray_setFirstHandlerArg( defhandlers, &fha, OTF_DEFSCLFILE_RECORD ); OTF_HandlerArray_setHandler( defhandlers, (OTF_FunctionPointer*) handleFiltDefCreator, OTF_DEFCREATOR_RECORD ); OTF_HandlerArray_setFirstHandlerArg( defhandlers, &fha, OTF_DEFCREATOR_RECORD ); OTF_HandlerArray_setHandler( defhandlers, (OTF_FunctionPointer*) handleFiltDefFile, OTF_DEFFILE_RECORD ); OTF_HandlerArray_setFirstHandlerArg( defhandlers, &fha, OTF_DEFFILE_RECORD ); OTF_HandlerArray_setHandler( defhandlers, (OTF_FunctionPointer*) handleFiltDefFileGroup, OTF_DEFFILEGROUP_RECORD ); OTF_HandlerArray_setFirstHandlerArg( defhandlers, &fha, OTF_DEFFILEGROUP_RECORD ); /* explicitly read stream 0 */ uint32_t streamid = 0; defrstream = OTF_RStream_open( intrace.c_str(), streamid, defmanager ); vt_assert( defrstream ); fha.wstream = OTF_WStream_open( outtrace.c_str(), streamid, defmanager ); vt_assert( fha.wstream ); OTF_WStream_setCompression( fha.wstream, compression ); if( OTF_RStream_getDefBuffer(defrstream) != NULL && OTF_RStream_readDefinitions( defrstream, defhandlers ) == OTF_READ_ERROR ) { cerr << "Error while reading definitions. aborting" << endl; OTF_WStream_close( fha.wstream ); OTF_RStream_close( defrstream ); OTF_HandlerArray_close( defhandlers ); #ifdef VT_MPI MPI_Abort( MPI_COMM_WORLD, 1 ); #endif // VT_MPI exit(1); } OTF_WStream_close( fha.wstream ); OTF_RStream_close( defrstream ); /* read all other streams */ for( uint32_t i = 0; i < OTF_MasterControl_getCount(fha.mc); ++i ) { uint32_t streamid = OTF_MasterControl_getEntryByIndex(fha.mc,i)->argument ; defrstream = OTF_RStream_open( intrace.c_str(), streamid, defmanager ); vt_assert( defrstream ); fha.wstream = OTF_WStream_open( outtrace.c_str(), streamid, defmanager ); vt_assert( fha.wstream ); OTF_WStream_setCompression( fha.wstream, compression ); if( OTF_RStream_getDefBuffer(defrstream) != NULL && OTF_RStream_readDefinitions( defrstream, defhandlers ) == OTF_READ_ERROR ) { cerr << "Error while reading definitions. aborting" << endl; OTF_WStream_close( fha.wstream ); OTF_RStream_close( defrstream ); OTF_HandlerArray_close( defhandlers ); #ifdef VT_MPI MPI_Abort( MPI_COMM_WORLD, 1 ); #endif // VT_MPI exit(1); } OTF_WStream_close( fha.wstream ); OTF_RStream_close( defrstream ); } OTF_HandlerArray_close( defhandlers ); OTF_FileManager_close( defmanager ); /* create the function->limit mapping for every process */ map<uint32_t,uint64_t> f2l = readFilterFile( infilt, fha.nm2tok ); map<uint32_t,Process>::iterator itp; for( itp = fha.t2p.begin(); itp != fha.t2p.end(); ++itp ) { itp->second.f2l = f2l; } uint64_t minbytes = 0, curbytes = 0, maxbytes = 0; uint64_t pminbytestmp, pcurbytestmp, pmaxbytestmp; /* *** read the trace once without handling records -> get the min and maxbytes *** */ OTF_FileManager* pmanager; OTF_Reader* preader; OTF_HandlerArray* phandlers; pmanager= OTF_FileManager_open( nfiles ); vt_assert( pmanager ); preader = OTF_Reader_open( intrace.c_str(), pmanager ); vt_assert( preader ); phandlers = OTF_HandlerArray_open(); vt_assert( phandlers ); OTF_Reader_setRecordLimit( preader, 0 ); if( OTF_READ_ERROR != OTF_Reader_readEvents( preader, phandlers ) ) { OTF_Reader_eventBytesProgress( preader, &pminbytestmp, &pcurbytestmp, &pmaxbytestmp ); minbytes += pminbytestmp; maxbytes += pmaxbytestmp; } if( OTF_READ_ERROR != OTF_Reader_readStatistics( preader, phandlers ) ) { OTF_Reader_statisticBytesProgress( preader, &pminbytestmp, &pcurbytestmp, &pmaxbytestmp ); minbytes += pminbytestmp; maxbytes += pmaxbytestmp; } if( OTF_READ_ERROR != OTF_Reader_readSnapshots( preader, phandlers ) ) { OTF_Reader_snapshotBytesProgress( preader, &pminbytestmp, &pcurbytestmp, &pmaxbytestmp ); minbytes += pminbytestmp; maxbytes += pmaxbytestmp; } OTF_HandlerArray_close( phandlers ); OTF_Reader_close( preader ); OTF_FileManager_close( pmanager ); if( showprogress ) { initProgressDisplay(); } /* *** prepare the parallel construct *** */ int maxstreams = (int) OTF_MasterControl_getCount(fha.mc); uint64_t readrecords= 0; uint64_t lastprogressupdate = 0; uint32_t progress_counter = 0; //cerr << "parallel part " << endl; # if defined(HAVE_OMP) && HAVE_OMP # pragma omp parallel for firstprivate(fha,nfiles,compression,minbytes,maxbytes) \ shared(curbytes,readrecords,lastprogressupdate,progress_counter) \ private(retev,retst,retsn) # endif // HAVE_OMP for( int streamindex = 0; streamindex < maxstreams; ++streamindex ) { uint32_t maxfiles = ( nfiles / omp_get_num_threads() ) + ( (uint32_t)omp_get_thread_num() < (nfiles % (uint32_t)omp_get_num_threads()) ? 1 : 0 ); uint32_t streamid = OTF_MasterControl_getEntryByIndex(fha.mc,(uint32_t)streamindex)->argument; OTF_FileManager* manager; OTF_RStream* rstream; OTF_HandlerArray* handlers; manager= OTF_FileManager_open( maxfiles ); vt_assert( manager ); rstream = OTF_RStream_open( intrace.c_str(), streamid, manager ); vt_assert( rstream ); handlers = OTF_HandlerArray_open(); vt_assert( handlers ); fha.wstream = OTF_WStream_open( outtrace.c_str(), streamid, manager ); vt_assert( fha.wstream ); //cerr << omp_get_thread_num() << " opened " << streamid << " " << fha.wstream << endl; OTF_WStream_setCompression( fha.wstream, compression ); OTF_HandlerArray_setHandler( handlers, (OTF_FunctionPointer*) handleFiltEnter, OTF_ENTER_RECORD ); OTF_HandlerArray_setFirstHandlerArg( handlers, &fha, OTF_ENTER_RECORD ); OTF_HandlerArray_setHandler( handlers, (OTF_FunctionPointer*) handleFiltLeave, OTF_LEAVE_RECORD ); OTF_HandlerArray_setFirstHandlerArg( handlers, &fha, OTF_LEAVE_RECORD ); OTF_HandlerArray_setHandler( handlers, (OTF_FunctionPointer*) handleFiltSendMsg, OTF_SEND_RECORD ); OTF_HandlerArray_setFirstHandlerArg( handlers, &fha, OTF_SEND_RECORD ); OTF_HandlerArray_setHandler( handlers, (OTF_FunctionPointer*) handleFiltRecvMsg, OTF_RECEIVE_RECORD ); OTF_HandlerArray_setFirstHandlerArg( handlers, &fha, OTF_RECEIVE_RECORD ); OTF_HandlerArray_setHandler( handlers, (OTF_FunctionPointer*) handleFiltCounter, OTF_COUNTER_RECORD ); OTF_HandlerArray_setFirstHandlerArg( handlers, &fha, OTF_COUNTER_RECORD ); OTF_HandlerArray_setHandler( handlers, (OTF_FunctionPointer*) handleFiltCollectiveOperation, OTF_COLLOP_RECORD ); OTF_HandlerArray_setFirstHandlerArg( handlers, &fha, OTF_COLLOP_RECORD ); OTF_HandlerArray_setHandler( handlers, (OTF_FunctionPointer*) handleFiltEventComment, OTF_EVENTCOMMENT_RECORD ); OTF_HandlerArray_setFirstHandlerArg( handlers, &fha, OTF_EVENTCOMMENT_RECORD ); OTF_HandlerArray_setHandler( handlers, (OTF_FunctionPointer*) handleFiltBeginProcess, OTF_BEGINPROCESS_RECORD ); OTF_HandlerArray_setFirstHandlerArg( handlers, &fha, OTF_BEGINPROCESS_RECORD ); OTF_HandlerArray_setHandler( handlers, (OTF_FunctionPointer*) handleFiltEndProcess, OTF_ENDPROCESS_RECORD ); OTF_HandlerArray_setFirstHandlerArg( handlers, &fha, OTF_ENDPROCESS_RECORD ); OTF_HandlerArray_setHandler( handlers, (OTF_FunctionPointer*) handleFiltFileOperation, OTF_FILEOPERATION_RECORD ); OTF_HandlerArray_setFirstHandlerArg( handlers, &fha, OTF_FILEOPERATION_RECORD ); OTF_HandlerArray_setHandler( handlers, (OTF_FunctionPointer*) handleFiltSnapshotComment, OTF_SNAPSHOTCOMMENT_RECORD ); OTF_HandlerArray_setFirstHandlerArg( handlers, &fha, OTF_SNAPSHOTCOMMENT_RECORD ); OTF_HandlerArray_setHandler( handlers, (OTF_FunctionPointer*) handleFiltEnterSnapshot, OTF_ENTERSNAPSHOT_RECORD ); OTF_HandlerArray_setFirstHandlerArg( handlers, &fha, OTF_ENTERSNAPSHOT_RECORD ); OTF_HandlerArray_setHandler( handlers, (OTF_FunctionPointer*) handleFiltSendSnapshot, OTF_SENDSNAPSHOT_RECORD ); OTF_HandlerArray_setFirstHandlerArg( handlers, &fha, OTF_SENDSNAPSHOT_RECORD ); OTF_HandlerArray_setHandler( handlers, (OTF_FunctionPointer*) handleFiltOpenFileSnapshot, OTF_OPENFILESNAPSHOT_RECORD ); OTF_HandlerArray_setFirstHandlerArg( handlers, &fha, OTF_OPENFILESNAPSHOT_RECORD ); OTF_HandlerArray_setHandler( handlers, (OTF_FunctionPointer*) handleFiltSummaryComment, OTF_SUMMARYCOMMENT_RECORD ); OTF_HandlerArray_setFirstHandlerArg( handlers, &fha, OTF_SUMMARYCOMMENT_RECORD ); OTF_HandlerArray_setHandler( handlers, (OTF_FunctionPointer*) handleFiltFunctionSummary, OTF_FUNCTIONSUMMARY_RECORD ); OTF_HandlerArray_setFirstHandlerArg( handlers, &fha, OTF_FUNCTIONSUMMARY_RECORD ); OTF_HandlerArray_setHandler( handlers, (OTF_FunctionPointer*) handleFiltFunctionGroupSummary, OTF_FUNCTIONGROUPSUMMARY_RECORD ); OTF_HandlerArray_setFirstHandlerArg( handlers, &fha, OTF_FUNCTIONGROUPSUMMARY_RECORD ); OTF_HandlerArray_setHandler( handlers, (OTF_FunctionPointer*) handleFiltMessageSummary, OTF_MESSAGESUMMARY_RECORD ); OTF_HandlerArray_setFirstHandlerArg( handlers, &fha, OTF_MESSAGESUMMARY_RECORD ); OTF_HandlerArray_setHandler( handlers, (OTF_FunctionPointer*) handleFiltFileOperationSummary, OTF_FILEOPERATIONSUMMARY_RECORD ); OTF_HandlerArray_setFirstHandlerArg( handlers, &fha, OTF_FILEOPERATIONSUMMARY_RECORD ); OTF_HandlerArray_setHandler( handlers, (OTF_FunctionPointer*) handleFiltFileGroupOperationSummary, OTF_FILEGROUPOPERATIONSUMMARY_RECORD ); OTF_HandlerArray_setFirstHandlerArg( handlers, &fha, OTF_FILEGROUPOPERATIONSUMMARY_RECORD ); if( showprogress ) { uint64_t lastbytestmp = 0; uint64_t minbytestmp, curbytestmp, maxbytestmp; OTF_RStream_setRecordLimit( rstream, 100000 ); //cerr << omp_get_thread_num() << " read events" << endl; while ( 0 != ( retev= OTF_RStream_readEvents( rstream, handlers ) ) ) { if( OTF_READ_ERROR == retev ) { break; } OTF_RStream_eventBytesProgress( rstream, &minbytestmp, &curbytestmp, &maxbytestmp ); # if defined(HAVE_OMP) && HAVE_OMP # pragma omp critical (progressupdate) # endif // HAVE_OMP { curbytes += curbytestmp - lastbytestmp; lastbytestmp = curbytestmp; readrecords += retev; if( readrecords - lastprogressupdate >= 100000 ) { updateProgressDisplay( progress_counter++, maxbytes - minbytes, curbytes ); lastprogressupdate = readrecords; } } } //cerr << omp_get_thread_num() << " end read events" << endl; lastbytestmp = 0; /* read stats */ while ( 0 != ( retst= OTF_RStream_readStatistics( rstream, handlers ) ) ) { if( OTF_READ_ERROR == retst ) { break; } OTF_RStream_statisticBytesProgress( rstream, &minbytestmp, &curbytestmp, &maxbytestmp ); # if defined(HAVE_OMP) && HAVE_OMP # pragma omp critical (progressupdate) # endif // HAVE_OMP { curbytes += curbytestmp - lastbytestmp; lastbytestmp = curbytestmp; readrecords += retev; if( readrecords - lastprogressupdate >= 100000 ) { updateProgressDisplay( progress_counter++, maxbytes - minbytes, curbytes ); lastprogressupdate = readrecords; } } } lastbytestmp = 0; /* read snaps */ while ( 0 != ( retsn= OTF_RStream_readSnapshots( rstream, handlers ) ) ) { if( OTF_READ_ERROR == retsn ) { break; } OTF_RStream_snapshotBytesProgress( rstream, &minbytestmp, &curbytestmp, &maxbytestmp ); # if defined(HAVE_OMP) && HAVE_OMP # pragma omp critical (progressupdate) # endif // HAVE_OMP { curbytes += curbytestmp - lastbytestmp; lastbytestmp = curbytestmp; readrecords += retev; if( readrecords - lastprogressupdate >= 100000 ) { updateProgressDisplay( progress_counter++, maxbytes - minbytes, curbytes ); lastprogressupdate = readrecords; } } } } else { /* filter events */ OTF_RStream_readEvents( rstream, handlers ); /* copy statistics */ OTF_RStream_readStatistics( rstream, handlers ); /* copy snapshots */ OTF_RStream_readSnapshots( rstream, handlers ); } /* close everything */ OTF_HandlerArray_close( handlers ); OTF_WStream_close( fha.wstream ); OTF_RStream_close( rstream ); OTF_FileManager_close( manager ); } /* end parallel for */ if( showprogress ) { finishProgressDisplay(); } OTF_MasterControl_close(fha.mc); OTF_FileManager_close(mcmanager); } // MASTER } #ifdef VT_MPI MPI_Barrier( MPI_COMM_WORLD ); MPI_Finalize(); #endif // VT_MPI return 0; } void dump ( const vector<Function>& functions, const set<uint32_t>& excluded, uint64_t timerresolution, uint64_t limit, ostream& out ) { vector<string> excludedNames; out << "#### all functions sorted by stackdepth, subfunction count and invocationcount ###" << endl; out << "# del? - token - maxstackdepth - subfunccount - invocationcount - avg duration incl - avg duration excl - symbolname - subfunctionlist" << endl; for( vector<Function>::const_iterator it= functions.begin(); it != functions.end(); ++it ) { out << "# "; /* add the excluded function to the names list */ if( excluded.find( it->id ) != excluded.end() ) { excludedNames.push_back( it->name ); out << "x"; } else { out << " "; } out.width( 5 ); out << it->id << " "; out.width( 3 ); out << it->depth << " "; out.width( 3 ); out << it->subFuncs.size() << " "; out.width( 9 ); out << it->invocations << " "; out.width( 18 ); out.precision( 8 ); if( 0 != it->invocations ) out << fixed << ((double)it->accDurationIncl / (double)it->invocations) / (double)timerresolution << " "; else out << "-" << " "; out.width( 18 ); out.precision( 8 ); if( 0 != it->invocations ) out << fixed << ((double)it->accDurationExcl / (double)it->invocations) / (double)timerresolution << " "; else out << "-" << " "; out.width( 0 ); out << it->name << " --> { "; for( set<uint32_t>::const_iterator it2= it->subFuncs.begin(); it2 != it->subFuncs.end(); ++it2 ) { out << *it2 << ", "; } out << " }" << endl; } out << endl << endl; out << "#### Filter ###" << endl; vector<string>::const_iterator its; for( its= excludedNames.begin(); its != excludedNames.end(); ++its ) { out << *its << " -- " << limit << endl; } } #define BUFSIZE 4096 vector<string> readTokensFromFile( const string& filename ) { FILE* file; vector<string> ret; if( filename.empty() == true && ( file= fopen( filename.c_str(), "r" ) ) != NULL ) { uint64_t readsize= 0; uint64_t lastreadsize= 0; uint64_t bufc= BUFSIZE; char *bufv= (char*) malloc( sizeof(char) * bufc ); char *bufv2= bufv; readsize= lastreadsize= fread( bufv2, sizeof( char ), BUFSIZE, file ); bufv2+= lastreadsize; while( lastreadsize > 0 ) { if( readsize+BUFSIZE > bufc ) { bufc+= BUFSIZE; bufv= (char*) realloc( bufv, sizeof(char)* bufc); } lastreadsize= fread( bufv2, sizeof( char ), BUFSIZE, file ); bufv2+= lastreadsize; readsize+= lastreadsize; } fclose( file ); char* token= strtok( bufv, " ,\n\t" ); while( NULL != token ) { ret.push_back( token ); cerr << token << endl; token= strtok( NULL, ",\n\t " ); } free( bufv ); } return ret; } #undef BUFSIZE static map<uint32_t,uint64_t> readFilterFile( const string& filename, const map<string,uint32_t>& nm2tok ) { map<uint32_t,uint64_t> ret; fstream i; string line; char* doubledash; char* sline; string func; uint64_t ulimit; int a; if( filename.empty() == false ) { i.open( filename.c_str(), ios_base::in ); if( i.is_open() == false ) return ret; for(;;) { getline( i, line ); if( i.eof() == true ) break; doubledash = const_cast<char*>(strstr(line.c_str(), " -- ")); if( doubledash != NULL ) a = doubledash-line.c_str(); else a = -1; if( a == -1 ) continue; ulimit= ATOL8(line.substr(a+4, line.size()-a-4).c_str()); line= line.substr(0, a); sline= new char[line.length()+1]; strncpy( sline, line.c_str(), line.length() ); sline[line.length()] = '\0'; char* token = strtok(sline, ";"); while( token ) { map<string,uint32_t>::const_iterator it = nm2tok.begin(); for( it = nm2tok.begin(); it != nm2tok.end(); ++it ) { if( fnmatch(token, it->first.c_str(), FNM_NOESCAPE) == 0 ) { map<uint32_t,uint64_t>::const_iterator it2 = ret.find(it->second); if( it2 == ret.end() ) { ret.insert(pair<uint32_t,uint64_t>(it->second,ulimit)); } } } token = strtok(NULL,";"); } delete[] sline; } i.close(); } return ret; } void initProgressDisplay() { printf( " %7.2f %%\r", 0.0 ); fflush( stdout ); } void finishProgressDisplay() { printf( " %7.2f %% done\n", 100.0 ); fflush( stdout ); } void updateProgressDisplay( uint32_t i, uint64_t max, uint64_t cur ) { /* static char animation[]= {"-", "\\", "|", "/" }; */ static const char* animation[]= { "", "." }; /* printf( "%llu / %llu \n", cur, max ); */ printf( " %7.2f %% %s \r", ( ((double) cur) * 100.0 / ((double) max) ), animation[ i % ( sizeof(animation) / sizeof(animation[0]) ) ] ); fflush( stdout ); }
[ "suncg@act.buaa.edu.cn" ]
suncg@act.buaa.edu.cn
ab5fd87f9d8907079a5db96f4e81bdbc0d6c34c5
c45e958efc5864d71462616b618c62b603ac237e
/include/pywrap/binding/Module.h
9b4b479044ba170c2a4b176e44f82d6f3d2cbca7
[ "MIT" ]
permissive
Fahien/pywrap
bbb6d50f7cb821ed112e64bb57bd06467f93a316
7431fd47aeec5df0b0df9b6e2f992c60682e5b90
refs/heads/master
2020-04-08T02:28:20.874325
2019-10-17T17:31:52
2019-10-17T17:31:52
158,936,940
8
0
null
null
null
null
UTF-8
C++
false
false
3,819
h
#ifndef PYWRAP_BINDINGS_MODULE_H_ #define PYWRAP_BINDINGS_MODULE_H_ #include <sstream> #include <clang/AST/Decl.h> #include "pywrap/binding/CXXRecord.h" #include "pywrap/binding/Enum.h" #include "pywrap/binding/Function.h" namespace pywrap { namespace binding { /// This represents the bindings for a Python module class Module : public Binding { public: /// This represents a PyMethodDef structure /// responsible to hold the methods associated to a module class Methods : public Binding { public: Methods( const Module& m ); Methods( Methods&& ) = default; /// Adds a function to the methods map /// @param f The function to add void add( const Function& f ); /// @return The definition of the methods map std::string get_def() const override; protected: /// @return The python name of the methods map void gen_py_name() override; /// @return Definition of the methods map void gen_def() override; private: const Module& module; }; /// A module binding consist of an init function declaration Module( const clang::NamedDecl& n, const Binding* parent = nullptr ); Module( Module&& ) = default; const clang::NamedDecl* get_handle() const { return ns; } /// @return The module init function definition std::string get_def() const override; /// @return The registration to its parent std::string get_reg() const; /// Adds a nested module /// @param[in] m The nested module to add void add( Module&& m ); /// Adds a function to this module /// @param[in] f The function to add void add( Function&& f ); /// Adds an enum to this module /// @param[in] e The enum to add void add( Enum&& e ); /// Adds a record to this module /// @param[in] r The record to add void add( CXXRecord&& r ); /// Adds a template to this module /// @param[in] t The template to add void add( Template&& t ); /// Adds a template specialization to this module /// @param[in] t The template specialization to add void add( Specialization&& s ); /// @return The methods map for the module init function const Methods& get_methods() const { return methods; } /// @return The nested modules within this module std::vector<Module>& get_children() { return modules; } /// @return The nested modules within this module const std::vector<Module>& get_modules() const { return modules; } /// @return Functions associated with the module const std::vector<Function>& get_functions() const { return functions; } /// @return Enums associated with the module const std::vector<Enum>& get_enums() const { return enums; } /// @return CXXRecords associated with the module const std::vector<CXXRecord>& get_records() const { return records; } /// @return Templates associated with the module const std::vector<Template>& get_templates() const { return templates; } /// @return Specializations associated with the module const std::vector<Specialization>& get_specializations() const { return specializations; } protected: /// @return A signature of the binding virtual void gen_sign() override; /// @return A definition of the bindings virtual void gen_def() override; /// @return Registration of this module void gen_reg(); private: /// Named decl const clang::NamedDecl* ns = nullptr; /// Python MethodDef Methods methods; /// Module registration std::stringstream reg; /// Module functions std::vector<Module> modules; /// Module functions std::vector<Function> functions; /// Module enums std::vector<Enum> enums; /// Module records std::vector<CXXRecord> records; /// Module templates std::vector<Template> templates; /// Module templates std::vector<Specialization> specializations; }; } // namespace binding } // namespace pywrap #endif // PYWRAP_BINDINGS_MODULE_H_
[ "sir.fahien@gmail.com" ]
sir.fahien@gmail.com
3ea64a40b78c6a02d3091364f7e689a88b422876
fceac201f4b1ccce58aec381ffecd3d9ce0a6c55
/project/flipparty/flipparty/resultboard.cpp
ea41aad7562894f0b9cf74ace5d53a2b491a5326
[]
no_license
miraika4400/flipparty
b1284f8d3c4db483cf488d1b35c5c12ff877d1c2
5cf2f6ddca76681ae928b41602d9121a6c3f3b57
refs/heads/master
2023-08-11T11:02:09.308156
2021-10-11T01:45:30
2021-10-11T01:45:30
374,494,820
1
0
null
null
null
null
SHIFT_JIS
C++
false
false
9,920
cpp
//////////////////////////////////////////////////// // // リザルトクラスの処理[resultboard.cpp] // Author:増澤 未来 // //////////////////////////////////////////////////// //============================= // インクルード //============================= #include "resultboard.h" #include "polygon.h" #include "resource_texture.h" #include "result.h" #include "number.h" //********************************** // マクロ定義 //********************************** #define SIZE D3DXVECTOR3(320.0f/2,720.0f/2,0.0f) // ボードサイズ #define COLOR_1P D3DXCOLOR(1.0f, 0.5f, 0.5f, 1.0f) // ボードカラー1p #define COLOR_2P D3DXCOLOR(0.5f, 0.5f, 1.0f, 1.0f) // ボードカラー2p #define COLOR_3P D3DXCOLOR(0.5f, 1.0f, 0.5f, 1.0f) // ボードカラー3p #define COLOR_4P D3DXCOLOR(1.5f, 1.5f, 0.5f, 1.0f) // ボードカラー4p #define PLAYER_NUMBER_POS_Y 100.0f // プレイヤーナンバーY座標 #define SIZE_PLAYER_NUMBER D3DXVECTOR3(80.0f,70.0f,0.0f) // プレイヤーナンバーサイズ #define SIZE_GAME_ICON D3DXVECTOR3(40.0f,40.0f,0.0f) // ミニゲームアイコンのサイズ #define GAME_ICON_POS_X -78 // ミニゲームアイコンのX座標 #define GAME_ICON_POS_Y 230.0f // ミニゲームアイコンのY座標 #define GAME_ICON_SPACE 120.0f // ミニゲームアイコンの間隔 #define SIZE_GAME_RANK D3DXVECTOR3(60.0f,60.0f,0.0f) // 順位ポリゴンのサイズ #define RANK_POS_X 50 // 順位ポリゴンX座標 #define RANK_TEX_ANIM_MAX_X 4 // 順位テクスチャ分割数*横 #define RANK_TEX_ANIM_MAX_Y 4 // 順位テクスチャ分割数*縦 #define SIZE_SCORE D3DXVECTOR3 (45.0f ,45.0f ,0.0f ) // スコアのサイズ #define SCORE_POS_Y 620.0f // スコアY座標 #define SCORE_SPACE 90.0f // スコア各桁の間隔 //********************************** // 静的メンバ変数宣言 //********************************** //============================= // コンストラクタ //============================= CResultBoard::CResultBoard():CScene(OBJTYPE_UI) { // 変数のクリア m_pos = D3DXVECTOR3(0.0f,0.0f,0.0f); // 座標 m_nPlayerNum = 0; // プレイヤー番号 ZeroMemory(&m_apScoreNumber, sizeof(m_apScoreNumber)); // スコアの数字ポリゴン m_pBack = NULL; // 背景 m_pPlayerNumPolygon = NULL; // プレイヤー番号ポリゴン ZeroMemory(&m_apMinigameIcon, sizeof(m_apMinigameIcon)); // ミニゲームのアイコン } //============================= // デストラクタ //============================= CResultBoard::~CResultBoard() { } //============================= // クリエイト //============================= CResultBoard * CResultBoard::Create(int nPlayerNum, D3DXVECTOR3 pos) { // メモリの確保 CResultBoard *pResult = new CResultBoard; // プレイヤ−番号 pResult->m_nPlayerNum = nPlayerNum; // 座標 pResult->m_pos = pos; // 初期化 pResult->Init(); return pResult; } //============================= // 初期化処理 //============================= HRESULT CResultBoard::Init(void) { // 背景の生成 m_pBack = CPolygon::Create(m_pos, SIZE, ReturnBackColor()); m_pBack->BindTexture(CResourceTexture::GetTexture(CResourceTexture::TESTURE_RESULTBOARD_BACK)); // プレイヤー番号の生成 CreatePlayerNumber(); // ミニゲームアイコンの生絵師 CreateGameIcon(); // ミニゲーム順位の生成 CreateGameRank(); // スコアの生成 CreateScore(); return S_OK; } //============================= // 終了処理 //============================= void CResultBoard::Uninit(void) { // 背景の解放 if (m_pBack != NULL) { m_pBack->Uninit(); delete m_pBack; m_pBack = NULL; } // プレイヤーナンバーの解放 if (m_pPlayerNumPolygon != NULL) { m_pPlayerNumPolygon->Uninit(); delete m_pPlayerNumPolygon; m_pPlayerNumPolygon = NULL; } for (int nCntGame = 0; nCntGame < CRuleManager::RULE_MAX; nCntGame++) { // ミニゲームアイコンの解放 if (m_apMinigameIcon[nCntGame] != NULL) { m_apMinigameIcon[nCntGame]->Uninit(); delete m_apMinigameIcon[nCntGame]; m_apMinigameIcon[nCntGame] = NULL; } // ミニゲーム順位の解放 if (m_apMinigameRank[nCntGame] != NULL) { m_apMinigameRank[nCntGame]->Uninit(); delete m_apMinigameRank[nCntGame]; m_apMinigameRank[nCntGame] = NULL; } } // スコアの解放 for (int nCntDigit = 0; nCntDigit < POINT_MAX_DIGIT; nCntDigit++) { if (m_apScoreNumber[nCntDigit] != NULL) { m_apScoreNumber[nCntDigit]->Uninit(); delete m_apScoreNumber[nCntDigit]; m_apScoreNumber[nCntDigit] = NULL; } } // 開放処理 Release(); } //============================= // 更新処理 //============================= void CResultBoard::Update(void) { } //============================= // 描画処理 //============================= void CResultBoard::Draw(void) { // 背景描画 if (m_pBack != NULL) { m_pBack->Draw(); } // プレイヤーナンバーの描画 if (m_pPlayerNumPolygon != NULL) { m_pPlayerNumPolygon->Draw(); } for (int nCntGame = 0; nCntGame < CRuleManager::RULE_MAX; nCntGame++) { // ミニゲームアイコンの描画 if (m_apMinigameIcon[nCntGame] != NULL) { m_apMinigameIcon[nCntGame]->Draw(); } // ミニゲーム順位の描画 if (m_apMinigameRank[nCntGame] != NULL) { m_apMinigameRank[nCntGame]->Draw(); } } // スコアの描画 for (int nCntDigit = 0; nCntDigit < POINT_MAX_DIGIT; nCntDigit++) { if (m_apScoreNumber[nCntDigit] != NULL) { m_apScoreNumber[nCntDigit]->Draw(); } } } //============================= // プレイヤーナンバーに応じたカラー //============================= D3DXCOLOR CResultBoard::ReturnBackColor(void) { switch (m_nPlayerNum) { case 0: return COLOR_1P; break; case 1: return COLOR_2P; break; case 2: return COLOR_3P; break; case 3: return COLOR_4P; break; default: return D3DXCOLOR(1.0f, 1.0f, 1.0f, 0.0f); break; } } //============================= // プレイヤー番号の生成 //============================= void CResultBoard::CreatePlayerNumber(void) { // プレイヤーナンバーの生成 m_pPlayerNumPolygon = CPolygon::Create(D3DXVECTOR3(m_pos.x, PLAYER_NUMBER_POS_Y, 0.0f), SIZE_PLAYER_NUMBER); // テクスチャの設定 switch (m_nPlayerNum) { case 0: m_pPlayerNumPolygon->BindTexture(CResourceTexture::GetTexture(CResourceTexture::TEXTURE_ICON_1P)); break; case 1: m_pPlayerNumPolygon->BindTexture(CResourceTexture::GetTexture(CResourceTexture::TEXTURE_ICON_2P)); break; case 2: m_pPlayerNumPolygon->BindTexture(CResourceTexture::GetTexture(CResourceTexture::TEXTURE_ICON_3P)); break; case 3: m_pPlayerNumPolygon->BindTexture(CResourceTexture::GetTexture(CResourceTexture::TEXTURE_ICON_4P)); break; default: break; } } //============================= // ミニゲームアイコンの生成 //============================= void CResultBoard::CreateGameIcon(void) { // アイコンの生成 for (int nCntGame = 0; nCntGame < CRuleManager::RULE_MAX; nCntGame++) { m_apMinigameIcon[nCntGame] = CPolygon::Create(D3DXVECTOR3(m_pos.x + GAME_ICON_POS_X, GAME_ICON_POS_Y + (GAME_ICON_SPACE*nCntGame),0.0f) , SIZE_GAME_ICON); } // テクスチャの割り当て m_apMinigameIcon[CRuleManager::RULE_FLAG_RACING]->BindTexture(CResourceTexture::GetTexture(CResourceTexture::TESTURE_ICON_FLAGRACING)); m_apMinigameIcon[CRuleManager::RULE_FLY]->BindTexture(CResourceTexture::GetTexture(CResourceTexture::TESTURE_ICON_FLY)); m_apMinigameIcon[CRuleManager::RULE_REMENBER]->BindTexture(CResourceTexture::GetTexture(CResourceTexture::TESTURE_ICON_REMENBER)); } //============================= // ゲーム順位ポリゴンの生成 //============================= void CResultBoard::CreateGameRank(void) { // アイコンの生成 for (int nCntGame = 0; nCntGame < CRuleManager::RULE_MAX; nCntGame++) { m_apMinigameRank[nCntGame] = CPolygon::Create(D3DXVECTOR3(m_pos.x + RANK_POS_X, GAME_ICON_POS_Y + (GAME_ICON_SPACE*nCntGame), 0.0f), SIZE_GAME_RANK); m_apMinigameRank[nCntGame]->BindTexture(CResourceTexture::GetTexture(CResourceTexture::TEXTURE_UI_RANK)); int nRank = CResult::GetResultPoint(m_nPlayerNum).nMiniGameRank[nCntGame]; // UVの設定 D3DXVECTOR2 uv[NUM_VERTEX]; float fu = 1.0f / RANK_TEX_ANIM_MAX_X; float fv = 1.0f / RANK_TEX_ANIM_MAX_X; uv[0] = D3DXVECTOR2(fu*0.0f , fv*nRank); uv[1] = D3DXVECTOR2(fu*0.0f + fu, fv*nRank); uv[2] = D3DXVECTOR2(fu*0.0f , fv*nRank + fv); uv[3] = D3DXVECTOR2(fu*0.0f + fu, fv*nRank + fv); // UV座標セット m_apMinigameRank[nCntGame]->SetTextureUV(uv); } } //============================= // スコアポリゴンの生成 //============================= void CResultBoard::CreateScore(void) { float posX = 0 - (SCORE_SPACE*(POINT_MAX_DIGIT - 1)) / 2; int nScore = nScore = CResult::GetResultPoint(m_nPlayerNum).nPoint; for (int nCntDigit = 0; nCntDigit < POINT_MAX_DIGIT; nCntDigit++) { m_apScoreNumber[nCntDigit] = CNumber::Create(0, D3DXVECTOR3(m_pos.x + posX, SCORE_POS_Y, 0.0f), SIZE_SCORE, D3DXCOLOR(1.0f, 1.0f, 1.0f, 1.0f)); posX += SCORE_SPACE; m_apScoreNumber[nCntDigit]->SetNumber((int)((nScore % (int)(powf(10.0f, (POINT_MAX_DIGIT - nCntDigit)))) / (float)(powf(10, (POINT_MAX_DIGIT - nCntDigit - 1))))); } }
[ "mirai4400@yahoo.co.jp" ]
mirai4400@yahoo.co.jp
788f2bcca76c04695933b37c1714fc7a9191efd4
00e39da788e6c1b85a0a992c23f458262e5a9b59
/include/packer.hpp
5ef10be0033806bef3294fbe2a216a200b0de833
[ "BSL-1.0" ]
permissive
hppritcha/tempi
734dd6b9b304ee936d1146967c442b4de24d1fe4
146d8865e64c949990f8c753f5d86e9b9bff3da6
refs/heads/master
2023-02-28T19:16:57.354600
2021-02-10T13:48:49
2021-02-10T13:48:49
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,632
hpp
// Copyright Carl Pearson 2020 - 2021. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE or copy at // https://www.boost.org/LICENSE_1_0.txt) #pragma once #include "dim3.hpp" #include <cuda_runtime.h> /* */ class Packer { public: virtual ~Packer() {} // get the stream and device info for an operation struct LaunchInfo { cudaStream_t stream; }; static LaunchInfo pack_launch_info(const void *inbuf); static LaunchInfo unpack_launch_info(const void *outbuf); // launch pack operation into the TEMPI stream for outbuf virtual void pack_async( void *outbuf, // write here int *position, // current position in outbuf (bytes), const void *inbuf, const int incount, // [in] number of input data items cudaEvent_t event = 0 // optional event to record after pack operation ) const = 0; // launch unpack operation into the TEMPI stream for outbuf virtual void unpack_async(const void *inbuf, int *position, void *outbuf, const int outcount, cudaEvent_t event = 0) const = 0; // return once object is packed into outbuf virtual void pack(void *outbuf, // write here int *position, // current position in outbuf (bytes), const void *inbuf, const int incount // [in] number of input data items ) const = 0; // return once packed object is unpacked into outbuf virtual void unpack(const void *inbuf, int *position, void *outbuf, const int outcount) const = 0; };
[ "carl.w.pearson@gmail.com" ]
carl.w.pearson@gmail.com
ef6cb431d5f92f5f64f35a86e91a59b3c3a93e24
d4df0c46c978abf3dadba3f3af2aac94658c7b7c
/cpp/g00.inheritance/Person.cpp
86a16c93f571aba63cd7fb5aae82b3fbfd135b2a
[]
no_license
darkn3rd/oop-tut
404fdedac2e49d704d1467eb43670f43f21b155f
c76ce8dae4a7216d17d5984bd1c9c3af98c69da0
refs/heads/master
2020-12-24T08:15:32.339282
2016-08-28T18:14:39
2016-08-28T18:14:39
24,651,354
0
0
null
2016-08-28T04:37:36
2014-09-30T18:57:31
Objective-C
UTF-8
C++
false
false
257
cpp
#include "Person.h" namespace PersonSpace { /******* MUTATORS (SETTERS) *******/ void Person::setName(const char* n) { if (n) { name = string(n); } } /******* ACESSORS (GETTERS) *******/ string Person::getName() { return name; } }
[ "sauvecali@yahoo.com" ]
sauvecali@yahoo.com
947fda60e19aaa174bc87af638d019f80a476405
0dda4d92957356165672c271a13eb1abac915b51
/NumberWithUnits.hpp
02747c7150638aef6f93fcf89667f1fbf56f760a
[]
no_license
amiel349/number-with-units-a
29de9cae3272e27fa6a0c44cf7c93c2f388240ee
19497dac837759b1c7cbe57db5405e4942852302
refs/heads/master
2023-04-09T15:33:35.736242
2021-04-21T10:52:43
2021-04-21T10:52:43
359,908,981
0
0
null
null
null
null
UTF-8
C++
false
false
2,609
hpp
#include <iostream> #include <stdexcept> #include <fstream> #include <sstream> //#include "NumberWithUnits.cpp" using namespace std; //using namespace ariel; namespace ariel{ class NumberWithUnits{ private: string type ; double number ; public: //constructor and distuctor NumberWithUnits(double number , string type) ; ~NumberWithUnits(){}; /* 6 arithmetic operations */ // unary and binary addition const NumberWithUnits operator+(const NumberWithUnits& num); const NumberWithUnits operator+()const; // binary addition adn assigment const NumberWithUnits& operator+=(const NumberWithUnits& num)const; // prefix and postfix addittion operator const NumberWithUnits& operator++()const; const NumberWithUnits& operator++(int num)const; // unary and binary substraction const NumberWithUnits operator-()const; const NumberWithUnits operator-(const NumberWithUnits& num); // binary substraction adn assigment const NumberWithUnits& operator-=(const NumberWithUnits& num) const; //prefix substraction operator const NumberWithUnits& operator--()const; // postfix substraction const NumberWithUnits& operator--(int num)const; // assigment operator const NumberWithUnits& operator=(const NumberWithUnits& num)const ; /* 6 comparission operators*/ // equal operator bool operator==(const NumberWithUnits& num)const; // not equal operator bool operator!=(const NumberWithUnits& num)const; // grather equal operator bool operator>=(const NumberWithUnits& num)const; // smaller equal operator bool operator<=(const NumberWithUnits& num)const; // grather than operator bool operator>( const NumberWithUnits& num)const; // smaller than operator bool operator<( const NumberWithUnits& num)const; /* multiplication operator */ friend const NumberWithUnits& operator*(const NumberWithUnits& num,const double x) ; friend const NumberWithUnits& operator*(const double x,const NumberWithUnits& num) ; static void read_units(ifstream& file); /* input and output operators */ // output operator friend ostream& operator<<(ostream&, const NumberWithUnits& num); // input operator friend istream& operator>>(istream& is,NumberWithUnits& num); }; }
[ "amiel349@gmail.com" ]
amiel349@gmail.com
0173800fe1cbe5666fc934c7471f7e57b8808111
349fe789ab1e4e46aae6812cf60ada9423c0b632
/Forms/SprCustomerUser/UFormaElementaSprCustomerUserImpl.h
86d9d394ec24ba86f1daf8736418471794600173
[]
no_license
presscad/ERP
a6acdaeb97b3a53f776677c3a585ca860d4de980
18ecc6c8664ed7fc3f01397d587cce91fc3ac78b
refs/heads/master
2020-08-22T05:24:15.449666
2019-07-12T12:59:13
2019-07-12T12:59:13
216,326,440
1
0
null
2019-10-20T07:52:26
2019-10-20T07:52:26
null
UTF-8
C++
false
false
2,035
h
#ifndef UFormaElementaSprCustomerUserImplH #define UFormaElementaSprCustomerUserImplH #include "IFormaElementaSprCustomerUser.h" #include "UFormaElementaSprCustomerUser.h" #include "UGlobalConstant.h" //--------------------------------------------------------------- class __declspec(uuid(Global_CLSID_TFormaElementaSprCustomerUserImpl)) TFormaElementaSprCustomerUserImpl : public IFormaElementaSprCustomerUser, IkanCallBack { public: TFormaElementaSprCustomerUserImpl(); ~TFormaElementaSprCustomerUserImpl(); TFormaElementaSprCustomerUser * Object; int NumRefs; bool flDeleteObject; void DeleteImpl(void); //IUnknown virtual int kanQueryInterface(REFIID id_interface,void ** ppv); virtual int kanAddRef(void); virtual int kanRelease(void); //IMainInterface virtual int get_CodeError(void); virtual void set_CodeError(int CodeError); virtual UnicodeString get_TextError(void); virtual void set_TextError(UnicodeString TextError); virtual int Init(IkanUnknown * i_main_object, IkanUnknown * i_owner_object); virtual int Done(void); //IkanCallBack virtual int kanExternalEvent(IkanUnknown * pUnk, REFIID id_object,int type_event, int number_procedure_end); //IFormaElementaSprCustomerUser virtual IDMSprCustomerUser * get_DM(void); virtual void set_DM(IDMSprCustomerUser * DM); virtual bool get_Vibor(void); virtual void set_Vibor(bool Vibor); virtual int get_NumberProcVibor(void); virtual void set_NumberProcVibor(int NumberProcVibor); virtual __int64 get_IdGrp(void); virtual void set_IdGrp(__int64 IdGrp); virtual UnicodeString get_NameGrp(void); virtual void set_NameGrp(UnicodeString NameGrp); virtual __int64 get_IdAccount(void); virtual void set_IdAccount(__int64 IdAccount); virtual UnicodeString get_NameAccount(void); virtual void set_NameAccount(UnicodeString NameAccount); virtual void UpdateForm(void); }; #define CLSID_TFormaElementaSprCustomerUserImpl __uuidof(TFormaElementaSprCustomerUserImpl) #endif
[ "sasha@kaserv.ru" ]
sasha@kaserv.ru
0c4126b43e1aed7d0bd7af28e7623821f8a201f2
6745b352555afa7699c136232c16117d7a3013f7
/sot-cqp/GroupMsgThread.cpp
d30af3e4190af21d54e3b6d113d1f273c61c9255
[]
no_license
yuzibe/cubbot.sot-cqp-ING-
9d506201900cd9d0b57bfc94e552ed9b2a7ae4c7
262f03d925cd03995a7f2d83694c5d96e75c8107
refs/heads/master
2021-10-23T19:05:05.171121
2019-03-19T11:18:26
2019-03-19T11:18:26
null
0
0
null
null
null
null
UTF-8
C++
false
false
995
cpp
#pragma once #include "stdafx.h" #include "GroupMsgThread.h" #include "Sot.h" #include "GroupMsg.h" #include "TuLing.h" void GroupMsgThread::push(GroupMsg msg) { if (msgBuffer.size() < 100) { mutex.lock(); msgBuffer.push(msg); mutex.unlock(); } } void GroupMsgThread::threadMain() { while (!isQuit) { if (msgBuffer.size() > 0) { mutex.lock(); GroupMsg msg = msgBuffer.front(); msgBuffer.pop(); mutex.unlock(); /*------------------------------TuLing-----------------------------------------*/ GroupMsg reply(TuLing::getResContent(msg.getContent()), msg.Group::getId()); Sot::send(reply); /*------------------------------TuLing-----------------------------------------*/ } else { Sleep(100); } } return; } GroupMsgThread::GroupMsgThread() { isQuit = false; } GroupMsgThread::~GroupMsgThread() { } void GroupMsgThread::start() { ThreadBase::start(); isQuit = false; } void GroupMsgThread::quit() { ThreadBase::quit(); isQuit = true; }
[ "github@no99.in" ]
github@no99.in
a7054e7ade9edd6079fd34a9c31035dcaca8250c
fc38a55144a0ad33bd94301e2d06abd65bd2da3c
/thirdparty/cgal/CGAL-4.13/include/CGAL/SEP_to_ImageIO.h
9b1eeaff28587ff55ba1e9c8057347507d29b706
[ "MIT", "LicenseRef-scancode-free-unknown", "LGPL-2.0-or-later", "LGPL-3.0-or-later", "GPL-1.0-or-later", "LicenseRef-scancode-warranty-disclaimer", "LicenseRef-scancode-commercial-license", "LGPL-3.0-only", "GPL-3.0-only", "LGPL-2.1-or-later", "LicenseRef-scancode-proprietary-license", "Licens...
permissive
bobpepin/dust3d
20fc2fa4380865bc6376724f0843100accd4b08d
6dcc6b1675cb49ef3fac4a58845f9c9025aa4c9f
refs/heads/master
2022-11-30T06:00:10.020207
2020-08-09T09:54:29
2020-08-09T09:54:29
286,051,200
0
0
MIT
2020-08-08T13:45:15
2020-08-08T13:45:14
null
UTF-8
C++
false
false
4,424
h
// Copyright (c) 2016, 2017 GeometryFactory // All rights reserved. // // This file is part of CGAL (www.cgal.org); you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public License as // published by the Free Software Foundation; either version 3 of the License, // or (at your option) any later version. // // Licensees holding a valid commercial license may use this file in // accordance with the commercial license agreement provided with the software. // // This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE // WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. // // $URL$ // $Id$ // SPDX-License-Identifier: LGPL-3.0+ // // Author(s) : Laurent Rineau #ifndef CGAL_SEP_READER_IMAGEIO_HPP #define CGAL_SEP_READER_IMAGEIO_HPP #include "SEP_header.h" #include <CGAL/ImageIO.h> #include <CGAL/Image_3.h> #include <fstream> #include <algorithm> #include <string> #include <boost/filesystem/path.hpp> #include <boost/filesystem/operations.hpp> #ifndef BOOST_FILESYSTEM_VERSION // That macro was not defined in previous releases of Boost. # define BOOST_FILESYSTEM_VERSION 2 #endif #include <CGAL/IO/binary_file_io.h> namespace CGAL { template <typename T> class SEP_to_ImageIO : public SEP_header { T* _data; _image* _im; CGAL::Image_3* _cgal_image; bool valid; std::string err_msg; public: bool is_valid() const { return valid; } std::string error_msg() const { return err_msg; } SEP_to_ImageIO(std::string fileName) : SEP_header(fileName), _data(0), _im(0), _cgal_image(0), valid(false), err_msg() { if(dimension() < 0) { err_msg = "Invalid header file \""; err_msg += fileName; err_msg += "\""; return; } display_information(fileName, std::cout); boost::filesystem::path headerFile(fileName); boost::filesystem::path dataFile(string_field("in")); #if BOOST_FILESYSTEM_VERSION == 2 dataFile = boost::filesystem::complete(dataFile, boost::filesystem::complete(headerFile.parent_path())); #else dataFile = boost::filesystem::absolute(dataFile, boost::filesystem::absolute(headerFile.parent_path())); #endif if(!load_data(dataFile.string())) { return; err_msg = "Invalid data file \""; err_msg += dataFile.string(); err_msg += "\""; } valid = true; } ~SEP_to_ImageIO() { if(_cgal_image != 0) delete _cgal_image; } CGAL::Image_3* cgal_image() { return _cgal_image; } const CGAL::Image_3* cgal_image() const { return _cgal_image; } protected : bool load_data(std::string dataFilename) { if(_im) delete _im; _im = new _image; _im->xdim = static_cast<unsigned int>(n(1)); _im->ydim = static_cast<unsigned int>(n(2)); _im->zdim = static_cast<unsigned int>(n(3)); _im->vdim = 1; // spacing _im->vx = d(1); _im->vy = d(2); _im->vz = d(3); if(_im->vz == 0.f) _im->vz=1.f; // image offset _im->tx = static_cast<float>(o(1)); _im->ty = static_cast<float>(o(2)); _im->tz = static_cast<float>(o(3)); // image center _im->cx = _im->cy = _im->cz = 0; // image rotation _im->rx = _im->ry = _im->rz = 0.0; _im->fd = NULL; _im->openMode = OM_CLOSE; if(string_field("data_format") == "native_float" || string_field("data_format") == "\"native_float\"") { _im->endianness = END_LITTLE; } else { _im->endianness = END_BIG; } _im->dataMode = DM_BINARY; // no user string _im->user = NULL; _im->nuser = 0; // word type (unsigned byte) _im->wdim = sizeof(T); _im->wordKind = WK_FLOAT; _im->vectMode = VM_SCALAR; _im->sign = SGN_SIGNED; _im->imageFormat = NULL; ::_openReadImage(_im, dataFilename.c_str()); if(!_im->fd) return false; // Compute number of element const std::size_t size = n(1) * n(2) * n(3); // Allocate array _data = new T[size]; _im->data = (void*)_data; // // Read file if(_readImageData(_im) < 0) return false; // char* buffer = reinterpret_cast<char*>(_data); // in.read (buffer, size * sizeof(T)); ImageIO_close(_im); _cgal_image = new CGAL::Image_3(_im); return true; } }; } // end namespace CGAL #endif // CGAL_SEP_READER_IMAGEIO_HPP
[ "huxingyi@msn.com" ]
huxingyi@msn.com
18a7b9a5e5afb6179a77252e9b69070fdc80e61d
7fba3aa4c05565353218920d7512344f5094dab1
/CAD/CActionManager.cpp
a5ac1fc2131c38ecb7ced60163ffda3a25aaa1c7
[]
no_license
JohnnyXiaoYang/Project-About-C
ba0cc1673e739d237ae85612a03b9f1ae72adfda
ed4b8e79bf5e8c30db39e5fe006c025df185c0f0
refs/heads/master
2022-06-03T12:02:28.141240
2020-05-05T03:38:33
2020-05-05T03:38:33
null
0
0
null
null
null
null
UTF-8
C++
false
false
478
cpp
#include "pch.h" #include "CActionManager.h" void CActionManager::undo() { if (m_stkToUndo.empty()) return; IAction* pAction = m_stkToUndo.top(); m_stkToUndo.pop(); pAction->undo(); m_stkToRedo.push(pAction); } void CActionManager::redo() { if (m_stkToRedo.empty()) return; IAction* pAction = m_stkToRedo.top(); m_stkToRedo.pop(); pAction->redo(); m_stkToUndo.push(pAction); } void CActionManager::InsertAction(IAction* pAction) { m_stkToUndo.push(pAction); }
[ "32604706+worman@users.noreply.github.com" ]
32604706+worman@users.noreply.github.com
7048652a92599a45407bce62f9dc631f1a7f4967
04f11feae528269c09ad0cca91c27acc0c64b41f
/Classes/LoadScene.h
b1c6817c9a8dc6f021146f65498e5ce09731ce08
[]
no_license
nmhkahn/Blend-game
8757b64ef09c694d2b02ee67fecd310ca4882760
95f9a70db284b72a97c5fe298c78075c213426ad
refs/heads/master
2021-01-12T13:37:43.688352
2016-09-23T04:24:01
2016-09-23T04:24:01
68,988,381
0
0
null
null
null
null
UTF-8
C++
false
false
677
h
#ifndef _LOAD_SCENE_H_ #define _LOAD_SCENE_H_ #include "cocos2d.h" USING_NS_CC; #include "ui/CocosGUI.h" using namespace cocos2d::ui; class LoadScene : public Layer { public: static Scene* createScene( const int& level ); static LoadScene* create( const int& level ); bool init( const int& level ); virtual void onEnter() override; virtual void onExit() override; void initUI(); void hideIndicator(); void transitScene(); void changeScene(); private: Size _size; Vec2 _origin; Vec2 _center; Sprite* _prev, *_next; Sprite* _background; Text* _indicator; int _level; }; #endif
[ "nmhkahn@gmail.com" ]
nmhkahn@gmail.com
35eecff87fbe8236e72eb87e2a0558d09adad7eb
4296b3938841b91faf3b34cad660560d9b61dd19
/src/logic/master/Master.cpp
3d17885fae4d351a583af69ab8fdfe5f472f8fcd
[]
no_license
854825967/hyper_net
08fd29568f6ac3b485b2636ecc7a9330afd4d8c6
c18b08f338851ebee2ac0fce1c601edba4c1dbed
refs/heads/master
2021-01-20T09:41:00.717587
2015-09-21T15:34:12
2015-09-21T15:34:12
43,062,302
2
0
null
2015-09-24T11:15:59
2015-09-24T11:15:58
null
UTF-8
C++
false
false
2,502
cpp
#include "Master.h" #include "NodeProtocol.h" #include "tinyxml.h" Master * Master::s_self = nullptr; IHarbor * Master::s_harbor = nullptr; s32 Master::s_port = 0; std::unordered_map<s64, Master::NodeInfo> Master::s_nodes; bool Master::Initialize(IKernel * kernel) { s_self = this; _kernel = kernel; TiXmlDocument doc; std::string coreConfigPath = std::string(tools::GetAppPath()) + "/config/server_conf.xml"; if (!doc.LoadFile(coreConfigPath.c_str())) { OASSERT(false, "can't find core file : %s", coreConfigPath.c_str()); return false; } const TiXmlElement * pRoot = doc.RootElement(); OASSERT(pRoot != nullptr, "core xml format error"); const TiXmlElement * p = pRoot->FirstChildElement("master"); s_port = tools::StringAsInt(p->Attribute("port")); return true; } bool Master::Launched(IKernel * kernel) { s_harbor = (IHarbor*)kernel->FindModule("Harbor"); OASSERT(s_harbor, "where is harbor"); s_harbor->AddNodeListener(this, "Master"); return true; } bool Master::Destroy(IKernel * kernel) { DEL this; return true; } void Master::OnOpen(IKernel * kernel, s32 nodeType, s32 nodeId, bool hide, const char * ip, s32 port) { if (hide) return; s64 check = ((s64)nodeType << 32) | ((s64)nodeId); #ifdef _DEBUG { auto itr = s_nodes.find(check); if (itr != s_nodes.end()) { OASSERT(strcmp(ip, itr->second.ip) == 0 && port == itr->second.port, "wtf"); } } #endif NodeInfo& info = s_nodes[check]; info.nodeType = nodeType; info.nodeId = nodeId; SafeSprintf(info.ip, sizeof(info.ip), ip); info.port = port; for (auto itr = s_nodes.begin(); itr != s_nodes.end(); ++itr) { if (itr->first != check) { SendNewNode(kernel, itr->second.nodeType, itr->second.nodeId, nodeType, nodeId, ip, port); SendNewNode(kernel, nodeType, nodeId, itr->second.nodeType, itr->second.nodeId, itr->second.ip, itr->second.port); } } } void Master::OnClose(IKernel * kernel, s32 nodeType, s32 nodeId) { } void Master::SendNewNode(IKernel * kernel, s32 nodeType, s32 nodeId, s32 newNodeType, s32 newNodeId, const char * ip, s32 port) { node_proto::NewNode info; info.nodeType = newNodeType; info.nodeId = newNodeId; SafeSprintf(info.ip, sizeof(info.ip), ip); info.port = port; s_harbor->PrepareSend(nodeType, nodeId, node_proto::NEW_NODE, sizeof(info)); s_harbor->Send(nodeType, nodeId, &info, sizeof(info)); }
[ "ooeyusea@gmail.com" ]
ooeyusea@gmail.com
c947bfe3034daba16c1bfa1396cf60676b2e92ee
b8254a73dac2ba69e9e273c2a94c5d24f4654536
/src/core/logic/elements/bot.cpp
1ef0f082ea7545d30dcf38452322eef8f5eb52ad
[]
no_license
serhez/adamant
7253dbc9fe63df5093c2db26de20d3949bfa9fc9
d89313eb83dd97527a10d66791efd8103235d1cd
refs/heads/master
2022-12-16T03:59:57.398642
2020-09-19T17:34:00
2020-09-19T17:34:00
272,041,357
0
0
null
2020-08-08T16:34:21
2020-06-13T16:03:15
C++
UTF-8
C++
false
false
1,772
cpp
/** * Copyright (C) Sergio Hernandez - All Rights Reserved * Author: Sergio Hernandez <contact.sergiohernandez@gmail.com> * Date : 30.07.2020 */ #include "bot.hpp" #include "elem.hpp" #include "ability.hpp" #include "../../physics/linear_move.hpp" #include "../../physics/instant_move.hpp" #include <chrono> #include <vector> #include <cmath> #include <iostream> using namespace adamant::logic::elements; using namespace adamant::graphics; using namespace adamant::graphics::elements; using namespace adamant::physics::movement; Bot::Bot(ElemType type, bool alive, ConvexPolygon* shape, Coord center, Team team, int bounding_sphere_radius, MovementManager* movement_manager): Elem(type, alive, shape, center, team, bounding_sphere_radius), m_movement_manager{movement_manager} {} void Bot::moveTowards(Coord target) { mutex.lock(); Move* move = new LinearMove(m_shape->getCenter(), target, right_click); m_movement_manager->request(move); mutex.unlock(); } void Bot::moveTo(Coord target) { mutex.lock(); Move* move = new InstantMove(m_shape->getCenter(), target, right_click); m_movement_manager->request(move); mutex.unlock(); } Ability* Bot::useAbility(AbilityKey key, Coord target) { Ability* ability = nullptr; switch(key) { case q: ability = this->m_abilities[0]; break; case w: ability = this->m_abilities[1]; break; case e: ability = this->m_abilities[2]; break; case r: ability = this->m_abilities[3]; break; default: break; } if (ability != nullptr && ability->cast(target)) { return ability; } return nullptr; }
[ "contact.sergiohernandez@gmail.com" ]
contact.sergiohernandez@gmail.com
88301e4ee69acec3ce987d242172e0561e4f8eeb
d81b356e39f2b016b052962e0b94e288f5ca823e
/FrozenEngine/Frozen Engine/RenderEngine.h
f2a5c0c695bd09bad56515a45a82867fe5a44cc0
[]
no_license
skakri09/FrozenEngine--as-delivered---school-
d8c1e71f27a591dbb93b93bc1da3ca2aa3ed4445
cbf38ddb62d9c1ece13114596456e0f50e66e4ee
refs/heads/master
2021-04-09T16:42:20.444084
2012-09-27T17:56:30
2012-09-27T17:56:30
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,672
h
/******************************************************************** created: 2012/04/15 created: 15:4:2012 19:24 filename: RenderEngine.h file path: FrozenEngine\Frozen Engine file base: RenderEngine file ext: h author: Peder Thorup, Kristian Skarseth purpose: Class that renderes images and video and keeps a vector of all images that is currently being used. Uses Singleton DP *********************************************************************/ #ifndef RenderEngine_h__ #define RenderEngine_h__ // I N C L U D E S #include <iostream> #include <vector> #include <SDL.h> #include "Surfaces.h" #include "Task.h" #include "SmpegPlayer.h" #include "Timer.h" #include "Kernel.h" #include "xmlSettingsHandling.h" #include "ImageObject.h" #include "AnimationObject.h" //typedef std::vector<CImageBase*> ImageList; //typedef std::vector<CAnimationObject*> ImageList; typedef std::vector<CImageObject*> RenderList; // C L A S S D E C L A R A T I O N class CRenderEngine : public Task { public: static GCPtr<CRenderEngine> Inst(); bool Start(); void Stop(); void Update(); //Adds an ImageObject to the render list. void AddRenderImg(CImageObject* obj); //Clears the list of images void ClearImageList(); // Changes the resolution of our screen with the param values void ChangeResolution(int newWidth, int newHeight); /* Loads and plays the movie with movieName parameter */ /* if the load function finds the movie searched for */ void StartMovie(std::string movieName); /* Stops the movie currently playing, if any */ void StopMovie(); // returns true when we're playing a movie bool PlayingMovie(){return playingVideo;} /* Displays a single still image. If Update() is run with */ /* any images in renderList, this image will be overwritten */ void DisplayStillImage(std::string imageName); protected: private: CRenderEngine(void); // ctor hidden CRenderEngine(CRenderEngine const&); void _RenderListUpdate(); //Blits surfaces to screen void playVideo(std::string movieName); // Plays the video SDL_Surface* _screenSurface; SDL_Surface* _windowIcon; SDL_Rect rect; SDL_Rect crop; int baseWidth; // The screen width we're using unless playing video or equal int baseHeight; // The screen height we're using unless playing video or equal CSmpeg movie; // Our movie player object bool playingVideo;// True when playing video std::string currentMovieName; // Name of movie we're currently playing, or played last RenderList _renderList; Logger log; }; #endif // RenderEngine_h__
[ "kristianskarseth@msn.com" ]
kristianskarseth@msn.com
a86b074cf719eaff25b98618261758a4a15d1fdc
d1a0d697798704d2a989b068574587cf6ca1ece9
/content/common/media/media_channel_host.cc
ae7d19e8d83c2c83cdeaadbab264c40c3373e848
[ "BSD-3-Clause" ]
permissive
lihui7115/ChromiumGStreamerBackend
983199aa76e052d3e9ea21ff53d0dd4cf4c995dc
6e41f524b780f2ff8d731f9986be743414a49a33
refs/heads/master
2021-01-17T10:26:00.070404
2015-08-05T16:39:35
2015-08-05T17:09:06
null
0
0
null
null
null
null
UTF-8
C++
false
false
4,475
cc
// Copyright (c) 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "media_channel_host.h" #include <algorithm> #include "base/bind.h" #include "base/message_loop/message_loop.h" #include "base/posix/eintr_wrapper.h" #include "base/threading/thread_restrictions.h" #include "base/trace_event/trace_event.h" #include "content/child/child_process.h" #include "content/common/media/media_messages.h" #include "content/public/child/child_thread.h" #include "content/renderer/media/gstreamer/webmediaplayer_gstreamer.h" #include "ipc/ipc_sync_message_filter.h" #include "url/gurl.h" using base::AutoLock; namespace content { // static scoped_refptr<MediaChannelHost> MediaChannelHost::Create( const IPC::ChannelHandle& channel_handle, base::WaitableEvent* shutdown_event) { scoped_refptr<MediaChannelHost> dispatcher = new MediaChannelHost; dispatcher->Connect(channel_handle, shutdown_event); return dispatcher; } MediaChannelHost::MediaChannelHost() {} static bool IsMainThread() { return !!ChildThread::Get(); } void MediaChannelHost::Connect(const IPC::ChannelHandle& channel_handle, base::WaitableEvent* shutdown_event) { // Open a channel to the media process. We pass NULL as the main listener here // since we need to filter everything to route it to the right thread. channel_ = IPC::SyncChannel::Create( channel_handle, IPC::Channel::MODE_CLIENT, NULL, ChildProcess::current()->io_task_runner(), true, shutdown_event); sync_filter_ = new IPC::SyncMessageFilter(shutdown_event); channel_->AddFilter(sync_filter_.get()); channel_filter_ = new MessageFilter(); // Install the filter last, because we intercept all leftover // messages. channel_->AddFilter(channel_filter_.get()); } bool MediaChannelHost::Send(IPC::Message* msg) { scoped_ptr<IPC::Message> message(msg); // The media process never sends synchronous IPCs so clear the unblock flag to // preserve order. message->set_unblock(false); if (IsMainThread()) { base::ThreadRestrictions::ScopedAllowWait allow_wait; bool result = channel_->Send(message.release()); if (!result) DVLOG(1) << "MediaChannelHost::Send failed: Channel::Send failed"; return result; } bool result = sync_filter_->Send(message.release()); return result; } void MediaChannelHost::DestroyChannel() { DCHECK(IsMainThread()); channel_.reset(); } void MediaChannelHost::RegisterDispatcher( int player_id, media::WebMediaPlayerMessageDispatcher* dispatcher) { channel_filter_->RegisterDispatcher(player_id, dispatcher); } void MediaChannelHost::RemoveDispatcher(int player_id) { channel_filter_->RemoveDispatcher(player_id); } MediaChannelHost::~MediaChannelHost() { DestroyChannel(); } MediaChannelHost::MessageFilter::MessageFilter() : lost_(false) {} MediaChannelHost::MessageFilter::~MessageFilter() {} void MediaChannelHost::MessageFilter::RegisterDispatcher( int player_id, media::WebMediaPlayerMessageDispatcher* dispatcher) { dispatchers_[player_id] = dispatcher; } void MediaChannelHost::MessageFilter::RemoveDispatcher(int player_id) { dispatchers_.erase(player_id); } bool MediaChannelHost::MessageFilter::OnMessageReceived( const IPC::Message& message) { // Never handle sync message replies or we will deadlock here. if (message.is_reply()) return false; WebMediaPlayerDispatcherMap::iterator iter = dispatchers_.find(message.routing_id()); if (iter == dispatchers_.end()) return false; media::WebMediaPlayerMessageDispatcher* dispatcher = iter->second; scoped_refptr<base::SingleThreadTaskRunner> taskRunner = dispatcher->GetTaskRunner(); base::WeakPtr<IPC::Listener> listener = dispatcher->AsWeakPtr(); taskRunner->PostTask( FROM_HERE, base::Bind(base::IgnoreResult(&IPC::Listener::OnMessageReceived), listener, message)); return true; } void MediaChannelHost::MessageFilter::OnChannelError() { // Set the lost state before signalling the proxies. That way, if they // themselves post a task to recreate the context, they will not try to re-use // this channel host. { AutoLock lock(lock_); lost_ = true; } dispatchers_.clear(); } bool MediaChannelHost::MessageFilter::IsLost() const { AutoLock lock(lock_); return lost_; } } // namespace content
[ "j.isorce@samsung.com" ]
j.isorce@samsung.com
598d73d11334e83f50c90b630590c093ddc18dda
95803dc4d59e0d09d29c4f3a958d105e89f05247
/CS1B - Intro to c++/Labs/Lab 7/InsertionSort.cpp
5c96508b6bc04152e2c659895de0d63e8581190a
[]
no_license
cdelprato0/Saddleback-CC
892272856b1c4ab5e41b5e20cf082620d5d39131
325af23636af3c404fd67082efa2a97ab7ab3021
refs/heads/master
2022-12-17T19:31:33.258197
2020-09-18T19:52:27
2020-09-18T19:52:27
296,713,196
1
0
null
null
null
null
UTF-8
C++
false
false
1,546
cpp
/************************************************************************** * AUTHOR : Cabbage & BBC * STUDENT ID : 386273 & 382108 * LAB #7 : Binary Search * CLASS : CS1B * SECTION : MW 8:30am * DUE DATE : 2/18/2015 *************************************************************************/ #include "header.h" /************************************************************************** * InsertionSort Function * ________________________________________________________________________ * This function will sort out the array in order and output it to the * console. * ________________________________________________________________________ *VARIABLE - * index - number in the array that is being looked at * temp - The place holder for the highest value * j - The current value that the computer is looking at *************************************************************************/ void InsertionSort(int intAr[], //CALC - array that contains ints const int AR_SIZE) //CALC - array size { int temp; //CALC - The place holder for the highest value int j; //CALC - The current value that the computer is looking at //PROCESSING - loops section of code four times for(int counter = 0; counter < 4; counter++) { //PROCESSING - Finds the largest value for(int i = 1; i < AR_SIZE; ++i) { temp = intAr[i]; j = i -1; while(j >= 0 && intAr[j] > temp) { intAr[j+1] = intAr[j]; j = j - 1; }//end WHILE intAr[j + 1] = temp; }//end FOR }//end FOR }
[ "chaz.delprato@student.csulb.edu" ]
chaz.delprato@student.csulb.edu
dcd5397b9c7dca4c2cb586d769ff79bd98273b90
0ca50389f4b300fa318452128ab5437ecc97da65
/src/color/_internal/utility/component/pack16.hpp
d7740a777995fe16ab007890bdedef0383bb3a75
[ "Apache-2.0" ]
permissive
dmilos/color
5981a07d85632d5c959747dac646ac9976f1c238
84dc0512cb5fcf6536d79f0bee2530e678c01b03
refs/heads/master
2022-09-03T05:13:16.959970
2022-08-20T09:22:24
2022-08-22T06:03:32
47,105,546
160
25
Apache-2.0
2021-09-29T07:11:04
2015-11-30T08:37:43
C++
UTF-8
C++
false
false
1,195
hpp
#ifndef color__internal_utility_component_pack16 #define color__internal_utility_component_pack16 // ::color::_internal::utility::component::pack16 #include "./unsigned.hpp" namespace color { namespace _internal { namespace utility { namespace component { struct pack16 : public ::color::_internal::utility::component::Unsigned< std::uint8_t > { }; typedef ::color::_internal::utility::component::pack16 split556_t ; typedef ::color::_internal::utility::component::pack16 split565_t ; typedef ::color::_internal::utility::component::pack16 split655_t ; typedef ::color::_internal::utility::component::pack16 split772_t ; typedef ::color::_internal::utility::component::pack16 split727_t ; typedef ::color::_internal::utility::component::pack16 split277_t ; typedef ::color::_internal::utility::component::pack16 split4444_t; typedef ::color::_internal::utility::component::pack16 split5551_t; typedef ::color::_internal::utility::component::pack16 split1555_t; } } } } #endif
[ "dmilos@gmail.com" ]
dmilos@gmail.com
dbd3d86e213887c0ad255d815f4b7053b8bb441f
12d705b7bfa7f49e058049dc2ffae93b8f7c6b4a
/Engine/OpenSceneGraph-3.4.1/src/OsgEarth/osgEarthDrivers/mbtiles/MBTilesTileSource.cpp
1d53682be2c78d523a72152995c6382dbadd8e18
[]
no_license
lzjee147/osg
1a23a48aae8fec8e2f92351ecc83b005a4c446ab
53004ed58f4a7d8e12d286e920cdab4b48bab042
refs/heads/master
2020-09-21T23:26:05.475842
2019-11-25T13:42:49
2019-11-25T13:42:49
224,970,980
1
0
null
null
null
null
UTF-8
C++
false
false
20,951
cpp
/* -*-c++-*- */ /* osgEarth - Dynamic map generation toolkit for OpenSceneGraph * Copyright 2008-2010 Pelican Mapping * http://osgearth.org * * osgEarth is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS * IN THE SOFTWARE. * * You should have received a copy of the GNU Lesser General Public License * along with this program. If not, see <http://www.gnu.org/licenses/> */ #include "MBTilesTileSource" #include <osgEarth/Registry> #include <osgEarth/ImageUtils> #include <osgDB/FileUtils> #include <sstream> #include <iomanip> #include <algorithm> #include <sqlite3.h> #define LC "[MBTilesTileSource] " using namespace osgEarth; using namespace osgEarth::Drivers::MBTiles; //...................................................................... namespace { osgDB::ReaderWriter* getReaderWriter(const std::string& format) { osgDB::ReaderWriter* rw = 0L; // Get a ReaderWriter for the tile format. Try both mime-type and extension. rw = osgDB::Registry::instance()->getReaderWriterForMimeType( format ); if ( rw == 0L ) { rw = osgDB::Registry::instance()->getReaderWriterForExtension( format ); } return rw; } } //...................................................................... MBTilesTileSource::MBTilesTileSource(const TileSourceOptions& options) : TileSource( options ), _options ( options ), _database ( NULL ), _minLevel ( 0 ), _maxLevel ( 20 ), _forceRGB ( false ) { //nop } Status MBTilesTileSource::initialize(const osgDB::Options* dbOptions) { _dbOptions = Registry::instance()->cloneOrCreateOptions( dbOptions ); bool readWrite = (MODE_WRITE & (int)getMode()) != 0; std::string fullFilename = _options.filename()->full(); if (!osgDB::fileExists(fullFilename)) { fullFilename = osgDB::findDataFile(fullFilename, dbOptions); if (fullFilename.empty()) fullFilename = _options.filename()->full(); } bool isNewDatabase = readWrite && !osgDB::fileExists(fullFilename); if ( isNewDatabase ) { // For a NEW database, the profile MUST be set prior to initialization. if ( getProfile() == 0L ) return Status::Error(Status::ConfigurationError, "Cannot create database; required Profile is missing"); // For a NEW database the format is required. if ( _options.format().isSet() ) { _tileFormat = _options.format().value(); _rw = getReaderWriter( _tileFormat ); if ( !_rw.valid() ) return Status::Error(Status::ServiceUnavailable, "No plugin to load format \"" + _tileFormat + "\""); } else { return Status::Error(Status::ConfigurationError, "Cannot create database; required format is missing"); } OE_INFO << LC << "Database does not exist; attempting to create it." << std::endl; } // Try to open (or create) the database. We use SQLITE_OPEN_NOMUTEX to do // our own mutexing. int flags = readWrite ? (SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE | SQLITE_OPEN_NOMUTEX) : (SQLITE_OPEN_READONLY | SQLITE_OPEN_NOMUTEX); int rc = sqlite3_open_v2( fullFilename.c_str(), &_database, flags, 0L ); if ( rc != 0 ) { return Status::Error( Status::ResourceUnavailable, Stringify() << "Database \"" << fullFilename << "\": " << sqlite3_errmsg(_database) ); } // New database setup: if ( isNewDatabase ) { // create necessary db tables: createTables(); // write profile to metadata: std::string profileJSON = getProfile()->toProfileOptions().getConfig().toJSON(false); putMetaData("profile", profileJSON); // write format to metadata: putMetaData("format", _tileFormat); // compression? if ( _options.compress().isSetTo(true) ) { _compressor = osgDB::Registry::instance()->getObjectWrapperManager()->findCompressor("zlib"); if ( _compressor.valid() ) { putMetaData("compression", "zlib"); OE_INFO << LC << "Data will be compressed (zlib)" << std::endl; } } // If we have some data extents at this point, write the bounds to the metadata. if (getDataExtents().size() > 0) { // Get the union of all the extents GeoExtent e(getDataExtents()[0]); for (unsigned int i = 1; i < getDataExtents().size(); i++) { e.expandToInclude(getDataExtents()[i]); } // Convert the bounds to wgs84 GeoExtent bounds = e.transform(osgEarth::SpatialReference::get("wgs84")); std::stringstream boundsStr; boundsStr << bounds.xMin() << "," << bounds.yMin() << "," << bounds.xMax() << "," << bounds.yMax(); putMetaData("bounds", boundsStr.str()); } } // If the database pre-existed, read in the information from the metadata. else // !isNewDatabase { if ( _options.computeLevels() == true ) { computeLevels(); } std::string profileStr; getMetaData( "profile", profileStr ); // The data format (e.g., png, jpg, etc.). Any format passed in // in the options is superceded by the one in the database metadata. std::string metaDataFormat; getMetaData( "format", metaDataFormat ); if ( !metaDataFormat.empty() ) _tileFormat = metaDataFormat; // Try to get it from the options. if (_tileFormat.empty()) { if ( _options.format().isSet() ) { _tileFormat = _options.format().value(); } } // By this point, we require a valid tile format. if ( _tileFormat.empty() ) return Status::Error(Status::ConfigurationError, "Required format not in metadata, nor specified in the options."); // check for compression. std::string compression; getMetaData("compression", compression); if ( !compression.empty() ) { _compressor = osgDB::Registry::instance()->getObjectWrapperManager()->findCompressor(compression); if ( !_compressor.valid() ) return Status::Error(Status::ServiceUnavailable, "Cannot find compressor \"" + compression + "\""); else OE_INFO << LC << "Data is compressed (" << compression << ")" << std::endl; } // Set the profile const Profile* profile = getProfile(); if (!profile) { if (!profileStr.empty()) { // try to parse it as a JSON config Config pconf; pconf.fromJSON(profileStr); profile = Profile::create(ProfileOptions(pconf)); // if that didn't work, try parsing it directly if ( !profile ) { profile = Profile::create(profileStr); } if ( !profile ) { OE_WARN << LC << "Profile \"" << profileStr << "\" not recognized; defaulting to spherical-mercator\n"; } } if (!profile) { // Spherical mercator is the MBTiles default. profile = osgEarth::Registry::instance()->getSphericalMercatorProfile(); } setProfile( profile ); OE_INFO << LC << "Profile = " << profileStr << std::endl; } // Check for bounds and populate DataExtents. std::string boundsStr; if ( getMetaData("bounds", boundsStr) ) { std::vector<std::string> tokens; StringTokenizer(",").tokenize(boundsStr, tokens); if (tokens.size() == 4) { double minLon = osgEarth::as<double>(tokens[0], 0.0); double minLat = osgEarth::as<double>(tokens[1], 0.0); double maxLon = osgEarth::as<double>(tokens[2], 0.0); double maxLat = osgEarth::as<double>(tokens[3], 0.0); GeoExtent extent(osgEarth::SpatialReference::get("wgs84"), minLon, minLat, maxLon, maxLat); if (extent.isValid()) { // Using 0 for the minLevel is not technically correct, but we use it instead of the proper minLevel to force osgEarth to subdivide // since we don't really handle DataExtents with minLevels > 0 just yet. getDataExtents().push_back(DataExtent(extent, 0, _maxLevel)); OE_INFO << LC << "Bounds = " << extent.toString() << std::endl; } else { OE_WARN << LC << "MBTiles has invalid bounds " << extent.toString() << std::endl; } } } else { // Using 0 for the minLevel is not technically correct, but we use it instead of the proper minLevel to force osgEarth to subdivide // since we don't really handle DataExtents with minLevels > 0 just yet. this->getDataExtents().push_back(DataExtent(getProfile()->getExtent(), 0, _maxLevel)); } } // do we require RGB? for jpeg? _forceRGB = osgEarth::endsWith(_tileFormat, "jpg", false) || osgEarth::endsWith(_tileFormat, "jpeg", false); // make an empty image. int size = 256; _emptyImage = new osg::Image(); _emptyImage->allocateImage(size, size, 1, GL_RGBA, GL_UNSIGNED_BYTE); unsigned char *data = _emptyImage->data(0,0); memset(data, 0, 4 * size * size); return STATUS_OK; } CachePolicy MBTilesTileSource::getCachePolicyHint(const Profile* targetProfile) const { if ( !targetProfile || targetProfile->isHorizEquivalentTo(getProfile()) ) return CachePolicy::NO_CACHE; else return CachePolicy::DEFAULT; } osg::Image* MBTilesTileSource::createImage(const TileKey& key, ProgressCallback* progress) { Threading::ScopedMutexLock exclusiveLock(_mutex); int z = key.getLevelOfDetail(); int x = key.getTileX(); int y = key.getTileY(); if (z < (int)_minLevel) { return _emptyImage.get(); } if (z > (int)_maxLevel) { //If we're at the max level, just return NULL return NULL; } unsigned int numRows, numCols; key.getProfile()->getNumTiles(key.getLevelOfDetail(), numCols, numRows); y = numRows - y - 1; //Get the image sqlite3_stmt* select = NULL; std::string query = "SELECT tile_data from tiles where zoom_level = ? AND tile_column = ? AND tile_row = ?"; int rc = sqlite3_prepare_v2( _database, query.c_str(), -1, &select, 0L ); if ( rc != SQLITE_OK ) { OE_WARN << LC << "Failed to prepare SQL: " << query << "; " << sqlite3_errmsg(_database) << std::endl; return NULL; } bool valid = true; sqlite3_bind_int( select, 1, z ); sqlite3_bind_int( select, 2, x ); sqlite3_bind_int( select, 3, y ); osg::Image* result = NULL; rc = sqlite3_step( select ); if ( rc == SQLITE_ROW) { // the pointer returned from _blob gets freed internally by sqlite, supposedly const char* data = (const char*)sqlite3_column_blob( select, 0 ); int dataLen = sqlite3_column_bytes( select, 0 ); std::string dataBuffer( data, dataLen ); // decompress if necessary: if ( _compressor.valid() ) { std::istringstream inputStream(dataBuffer); std::string value; if ( !_compressor->decompress(inputStream, value) ) { if ( _options.filename().isSet() ) OE_WARN << LC << "Decompression failed: " << _options.filename()->base() << std::endl; else OE_WARN << LC << "Decompression failed" << std::endl; valid = false; } else { dataBuffer = value; } } // decode the raw image data: if ( valid ) { std::istringstream inputStream(dataBuffer); result = ImageUtils::readStream(inputStream, _dbOptions.get()); } } else { OE_DEBUG << LC << "SQL QUERY failed for " << query << ": " << std::endl; valid = false; } sqlite3_finalize( select ); return result; } bool MBTilesTileSource::storeImage(const TileKey& key, osg::Image* image, ProgressCallback* progress) { if ( (getMode() & MODE_WRITE) == 0 ) return false; Threading::ScopedMutexLock exclusiveLock(_mutex); // encode the data stream: std::stringstream buf; osgDB::ReaderWriter::WriteResult wr; if ( _forceRGB && ImageUtils::hasAlphaChannel(image) ) { osg::ref_ptr<osg::Image> rgb = ImageUtils::convertToRGB8(image); wr = _rw->writeImage(*(rgb.get()), buf, _dbOptions.get()); } else { wr = _rw->writeImage(*image, buf, _dbOptions.get()); } if ( wr.error() ) { OE_WARN << LC << "Image encoding failed: " << wr.message() << std::endl; return false; } std::string value = buf.str(); // compress if necessary: if ( _compressor.valid() ) { std::ostringstream output; if ( !_compressor->compress(output, value) ) { OE_WARN << LC << "Compressor failed" << std::endl; return false; } value = output.str(); } int z = key.getLOD(); int x = key.getTileX(); int y = key.getTileY(); // flip Y axis unsigned int numRows, numCols; key.getProfile()->getNumTiles(key.getLevelOfDetail(), numCols, numRows); y = numRows - y - 1; // Prep the insert statement: sqlite3_stmt* insert = NULL; std::string query = "INSERT OR REPLACE INTO tiles (zoom_level, tile_column, tile_row, tile_data) VALUES (?, ?, ?, ?)"; int rc = sqlite3_prepare_v2( _database, query.c_str(), -1, &insert, 0L ); if ( rc != SQLITE_OK ) { OE_WARN << LC << "Failed to prepare SQL: " << query << "; " << sqlite3_errmsg(_database) << std::endl; return false; } // bind parameters: sqlite3_bind_int( insert, 1, z ); sqlite3_bind_int( insert, 2, x ); sqlite3_bind_int( insert, 3, y ); // bind the data blob: sqlite3_bind_blob( insert, 4, value.c_str(), value.length(), SQLITE_STATIC ); // run the sql. bool ok = true; int tries = 0; do { rc = sqlite3_step(insert); } while (++tries < 100 && (rc == SQLITE_BUSY || rc == SQLITE_LOCKED)); if (SQLITE_OK != rc && SQLITE_DONE != rc) { #if SQLITE_VERSION_NUMBER >= 3007015 OE_WARN << LC << "Failed query: " << query << "(" << rc << ")" << sqlite3_errstr(rc) << "; " << sqlite3_errmsg(_database) << std::endl; #else OE_WARN << LC << "Failed query: " << query << "(" << rc << ")" << rc << "; " << sqlite3_errmsg(_database) << std::endl; #endif ok = false; } sqlite3_finalize( insert ); return ok; } bool MBTilesTileSource::getMetaData(const std::string& key, std::string& value) { Threading::ScopedMutexLock exclusiveLock(_mutex); //get the metadata sqlite3_stmt* select = NULL; std::string query = "SELECT value from metadata where name = ?"; int rc = sqlite3_prepare_v2( _database, query.c_str(), -1, &select, 0L ); if ( rc != SQLITE_OK ) { OE_WARN << LC << "Failed to prepare SQL: " << query << "; " << sqlite3_errmsg(_database) << std::endl; return false; } bool valid = true; std::string keyStr = std::string( key ); rc = sqlite3_bind_text( select, 1, keyStr.c_str(), keyStr.length(), SQLITE_STATIC ); if (rc != SQLITE_OK ) { OE_WARN << LC << "Failed to bind text: " << query << "; " << sqlite3_errmsg(_database) << std::endl; return false; } rc = sqlite3_step( select ); if ( rc == SQLITE_ROW) { value = (char*)sqlite3_column_text( select, 0 ); } else { OE_DEBUG << LC << "SQL QUERY failed for " << query << ": " << std::endl; valid = false; } sqlite3_finalize( select ); return valid; } bool MBTilesTileSource::putMetaData(const std::string& key, const std::string& value) { Threading::ScopedMutexLock exclusiveLock(_mutex); // prep the insert statement. sqlite3_stmt* insert = 0L; std::string query = Stringify() << "INSERT OR REPLACE INTO metadata (name,value) VALUES (?,?)"; if ( SQLITE_OK != sqlite3_prepare_v2(_database, query.c_str(), -1, &insert, 0L) ) { OE_WARN << LC << "Failed to prepare SQL: " << query << "; " << sqlite3_errmsg(_database) << std::endl; return false; } // bind the values: if( SQLITE_OK != sqlite3_bind_text(insert, 1, key.c_str(), key.length(), SQLITE_STATIC) ) { OE_WARN << LC << "Failed to bind text: " << query << "; " << sqlite3_errmsg(_database) << std::endl; return false; } if ( SQLITE_OK != sqlite3_bind_text(insert, 2, value.c_str(), value.length(), SQLITE_STATIC) ) { OE_WARN << LC << "Failed to bind text: " << query << "; " << sqlite3_errmsg(_database) << std::endl; return false; } // execute the sql. no idea what a good return value should be :/ sqlite3_step( insert ); sqlite3_finalize( insert ); return true; } void MBTilesTileSource::computeLevels() { Threading::ScopedMutexLock exclusiveLock(_mutex); osg::Timer_t startTime = osg::Timer::instance()->tick(); sqlite3_stmt* select = NULL; std::string query = "SELECT min(zoom_level), max(zoom_level) from tiles"; int rc = sqlite3_prepare_v2( _database, query.c_str(), -1, &select, 0L ); if ( rc != SQLITE_OK ) { OE_WARN << LC << "Failed to prepare SQL: " << query << "; " << sqlite3_errmsg(_database) << std::endl; } rc = sqlite3_step( select ); if ( rc == SQLITE_ROW) { _minLevel = sqlite3_column_int( select, 0 ); _maxLevel = sqlite3_column_int( select, 1 ); OE_DEBUG << LC << "Min=" << _minLevel << " Max=" << _maxLevel << std::endl; } else { OE_DEBUG << LC << "SQL QUERY failed for " << query << ": " << std::endl; } sqlite3_finalize( select ); osg::Timer_t endTime = osg::Timer::instance()->tick(); OE_DEBUG << LC << "Computing levels took " << osg::Timer::instance()->delta_s(startTime, endTime ) << " s" << std::endl; } bool MBTilesTileSource::createTables() { Threading::ScopedMutexLock exclusiveLock(_mutex); // https://github.com/mapbox/mbtiles-spec/blob/master/1.2/spec.md std::string query = "CREATE TABLE IF NOT EXISTS metadata (" " name text," " value text)"; if (SQLITE_OK != sqlite3_exec(_database, query.c_str(), 0L, 0L, 0L)) { OE_WARN << LC << "Failed to create table [metadata]" << std::endl; return false; } query = "CREATE TABLE IF NOT EXISTS tiles (" " zoom_level integer," " tile_column integer," " tile_row integer," " tile_data blob)"; char* errorMsg = 0L; if (SQLITE_OK != sqlite3_exec(_database, query.c_str(), 0L, 0L, &errorMsg)) { OE_WARN << LC << "Failed to create table [tiles]: " << errorMsg << std::endl; sqlite3_free( errorMsg ); return false; } // create an index query = "CREATE UNIQUE INDEX tile_index ON tiles (" " zoom_level, tile_column, tile_row)"; if (SQLITE_OK != sqlite3_exec(_database, query.c_str(), 0L, 0L, &errorMsg)) { OE_WARN << LC << "Failed to create index on table [tiles]: " << errorMsg << std::endl; sqlite3_free( errorMsg ); // keep going... // return false; } // TODO: support "grids" and "grid_data" tables if necessary. return true; } std::string MBTilesTileSource::getExtension() const { return _tileFormat; }
[ "78564001@qq.com" ]
78564001@qq.com
904d7513e7cd7f16ec5ca098044e5e92943da7be
c42ecbc5bb6bc33acc9833b738996e537d092041
/pothos-serialization/include/Pothos/serialization/impl/mpl/aux_/preprocessed/no_ttp/plus.hpp
22a6390a5ed32f569f810d7a96ad8ad88f8da167
[ "BSL-1.0" ]
permissive
lrmodesgh/pothos
abd652bc9b880139fa9fb2016b88cb21e0be1f0a
542c6cd19e1aa2ee1fda47fbc131431ed351ae31
refs/heads/master
2020-12-26T02:10:22.037019
2015-07-13T08:28:57
2015-07-13T08:28:57
39,064,513
1
0
null
2015-07-14T08:56:33
2015-07-14T08:56:33
null
UTF-8
C++
false
false
3,372
hpp
// Copyright Aleksey Gurtovoy 2000-2004 // // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // // Preprocessed version of "boost/mpl/plus.hpp" header // -- DO NOT modify by hand! namespace Pothos { namespace mpl { template< typename Tag1 , typename Tag2 > struct plus_impl : if_c< ( POTHOS_MPL_AUX_NESTED_VALUE_WKND(int, Tag1) > POTHOS_MPL_AUX_NESTED_VALUE_WKND(int, Tag2) ) , aux::cast2nd_impl< plus_impl< Tag1,Tag1 >,Tag1, Tag2 > , aux::cast1st_impl< plus_impl< Tag2,Tag2 >,Tag1, Tag2 > >::type { }; /// for Digital Mars C++/compilers with no CTPS/TTP support template<> struct plus_impl< na,na > { template< typename U1, typename U2 > struct apply { typedef apply type; POTHOS_STATIC_CONSTANT(int, value = 0); }; }; template< typename Tag > struct plus_impl< na,Tag > { template< typename U1, typename U2 > struct apply { typedef apply type; POTHOS_STATIC_CONSTANT(int, value = 0); }; }; template< typename Tag > struct plus_impl< Tag,na > { template< typename U1, typename U2 > struct apply { typedef apply type; POTHOS_STATIC_CONSTANT(int, value = 0); }; }; template< typename T > struct plus_tag { typedef typename T::tag type; }; template< typename POTHOS_MPL_AUX_NA_PARAM(N1) , typename POTHOS_MPL_AUX_NA_PARAM(N2) , typename N3 = na, typename N4 = na, typename N5 = na > struct plus : plus< plus< plus< plus< N1,N2 >, N3>, N4>, N5> { POTHOS_MPL_AUX_LAMBDA_SUPPORT( 5 , plus , ( N1, N2, N3, N4, N5 ) ) }; template< typename N1, typename N2, typename N3, typename N4 > struct plus< N1,N2,N3,N4,na > : plus< plus< plus< N1,N2 >, N3>, N4> { POTHOS_MPL_AUX_LAMBDA_SUPPORT_SPEC( 5 , plus , ( N1, N2, N3, N4, na ) ) }; template< typename N1, typename N2, typename N3 > struct plus< N1,N2,N3,na,na > : plus< plus< N1,N2 >, N3> { POTHOS_MPL_AUX_LAMBDA_SUPPORT_SPEC( 5 , plus , ( N1, N2, N3, na, na ) ) }; template< typename N1, typename N2 > struct plus< N1,N2,na,na,na > : plus_impl< typename plus_tag<N1>::type , typename plus_tag<N2>::type >::template apply< N1,N2 >::type { POTHOS_MPL_AUX_LAMBDA_SUPPORT_SPEC( 5 , plus , ( N1, N2, na, na, na ) ) }; POTHOS_MPL_AUX_NA_SPEC2(2, 5, plus) }} namespace Pothos { namespace mpl { namespace aux { template< typename T, T n1, T n2 > struct plus_wknd { POTHOS_STATIC_CONSTANT(T, value = (n1 + n2)); typedef integral_c< T,value > type; }; } template<> struct plus_impl< integral_c_tag,integral_c_tag > { template< typename N1, typename N2 > struct apply : aux::plus_wknd< typename aux::largest_int< typename N1::value_type , typename N2::value_type >::type , N1::value , N2::value >::type { }; }; }}
[ "josh@joshknows.com" ]
josh@joshknows.com
456b7a23abb750caaad81d06afa0596643c8bbee
a62342d6359a88b0aee911e549a4973fa38de9ea
/0.6.0.3/External/SDK/E_QuestCategories_structs.h
49ddeb627e9a69f203de8ce594af7bd964b4b978
[]
no_license
zanzo420/Medieval-Dynasty-SDK
d020ad634328ee8ee612ba4bd7e36b36dab740ce
d720e49ae1505e087790b2743506921afb28fc18
refs/heads/main
2023-06-20T03:00:17.986041
2021-07-15T04:51:34
2021-07-15T04:51:34
386,165,085
0
0
null
null
null
null
UTF-8
C++
false
false
711
h
#pragma once // Name: Medieval Dynasty, Version: 0.6.0.3 /*!!DEFINE!!*/ /*!!HELPER_DEF!!*/ /*!!HELPER_INC!!*/ #ifdef _MSC_VER #pragma pack(push, 0x01) #endif namespace CG { //--------------------------------------------------------------------------- // Enums //--------------------------------------------------------------------------- // UserDefinedEnum E_QuestCategories.E_QuestCategories enum class E_QuestCategories_E_QuestCategories : uint8_t { E_QuestCategories__NewEnumerator0 = 0, E_QuestCategories__NewEnumerator3 = 1, E_QuestCategories__NewEnumerator1 = 2, E_QuestCategories__NewEnumerator2 = 3, E_QuestCategories__E_MAX = 4, }; } #ifdef _MSC_VER #pragma pack(pop) #endif
[ "zp2kshield@gmail.com" ]
zp2kshield@gmail.com
e25c26dbfc61548b968663b050aa0888cce9acaa
05dde4480af37936b3da2e3ec2f7736ddd114c7d
/src/base/Exception.h
5558e573e261a81b821cc524775760ea412d498c
[ "BSD-3-Clause" ]
permissive
lisi-w/autocurator
8d628005e1832a3e9f72897da90fa1047d0bb311
1c61cc70338cde57ecfb1c3f592e5b6f573fcd76
refs/heads/master
2022-12-21T02:27:58.361244
2020-09-25T00:03:20
2020-09-25T00:03:20
288,252,680
0
2
BSD-3-Clause
2020-09-24T23:41:25
2020-08-17T18:10:40
C++
UTF-8
C++
false
false
3,404
h
/////////////////////////////////////////////////////////////////////////////// /// /// \file Exception.h /// \author Paul Ullrich /// \version July 26, 2010 /// /// <summary> /// This file provides functionality for formatted Exceptions. /// </summary> /// <remarks> /// Copyright 2000-2010 Paul Ullrich /// /// This file is distributed as part of the Tempest source code package. /// Permission is granted to use, copy, modify and distribute this /// source code and its documentation under the terms of the GNU General /// Public License. This software is provided "as is" without express /// or implied warranty. /// </remarks> #ifndef _EXCEPTION_H_ #define _EXCEPTION_H_ /////////////////////////////////////////////////////////////////////////////// #define _EXCEPTION() \ throw Exception(__FILE__, __LINE__) #define _EXCEPTIONT(text) \ throw Exception(__FILE__, __LINE__, text) #define _EXCEPTION1(text, var1) \ throw Exception(__FILE__, __LINE__, text, var1) #define _EXCEPTION2(text, var1, var2) \ throw Exception(__FILE__, __LINE__, text, var1, var2) #define _EXCEPTION3(text, var1, var2, var3) \ throw Exception(__FILE__, __LINE__, text, var1, var2, var3) #define _EXCEPTION4(text, var1, var2, var3, var4) \ throw Exception(__FILE__, __LINE__, text, var1, var2, var3, var4) #define _EXCEPTION5(text, var1, var2, var3, var4, var5) \ throw Exception(__FILE__, __LINE__, text, var1, var2, var3, var4, var5) #define _EXCEPTION6(text, var1, var2, var3, var4, var5, var6) \ throw Exception(__FILE__, __LINE__, text, var1, var2, var3, var4, var5, var6) #define _EXCEPTION7(text, var1, var2, var3, var4, var5, var6, var7) \ throw Exception(__FILE__, __LINE__, text, var1, var2, var3, var4, var5, var6, var7) #define _EXCEPTION8(text, var1, var2, var3, var4, var5, var6, var7, var8) \ throw Exception(__FILE__, __LINE__, text, var1, var2, var3, var4, var5, var6, var7, var8) /////////////////////////////////////////////////////////////////////////////// #include <string> #include <cstdio> #include <cstdarg> /////////////////////////////////////////////////////////////////////////////// /// <summary> /// An Exception is a formatted error message that is generated from a /// throw directive. This class is automatically generated when using /// the _EXCEPTION macros. /// </summary> class Exception { public: /// <summary> /// Maximum buffer size for exception strings. /// </summary> static const int ExceptionBufferSize = 1024; public: /// <summary> /// Generic constructor. /// </summary> Exception( const char * szFile, unsigned int uiLine ); /// <summary> /// Constructor with text and variables. /// </summary> Exception( const char * szFile, unsigned int uiLine, const char * szText, ... ); public: /// <summary> /// Get a string representation of this exception. /// </summary> std::string ToString() const; private: /// <summary> /// A string denoting the error in question. /// </summary> std::string m_strText; /// <summary> /// A string containing the filename where the exception occurred. /// </summary> std::string m_strFile; /// <summary> /// A constant containing the line number where the exception /// occurred. /// </summary> unsigned int m_uiLine; }; /////////////////////////////////////////////////////////////////////////////// #endif
[ "paullrich@ucdavis.edu" ]
paullrich@ucdavis.edu
83c45e5ecd3696e32287d09a730ca624d9fa997f
db2a9059ece34bbce9fdd532a265ace38f0e1196
/EULER/351.cpp
5bbb9bea2334ee00f1d7779d00037e56ca05745d
[]
no_license
aayushdw/Competitve
65eba6f385a2fd047512d577e809480e8c75aadf
d883b80363f2447a353a1cd5d33ee33ea9ae217e
refs/heads/master
2020-04-11T15:15:07.254957
2019-01-14T21:27:29
2019-01-14T21:27:29
161,885,303
0
0
null
null
null
null
UTF-8
C++
false
false
441
cpp
#include<stdio.h> #define ll long long int #include<map> using namespace std; map<ll,ll> X2; ll F2(ll n) { return (n-1)*n/2; } ll R2(ll n) { if(n==1) return 0; if(X2[n]) return X2[n]; ll sum=F2(n), m=2; while(1) { ll x=n/m; ll nxt=n/x; if(nxt>=n) return X2[n]=sum-(n-m+1)*R2(n/m); sum-=(nxt-m+1)*R2(n/m); m=nxt+1; } } int main() { ll n=100000000; printf("%lld",(n*(n+1)/2-R2(n)-1)*6); }
[ "aayushdw@gmail.com" ]
aayushdw@gmail.com
b92a099a5c6002302f530b153e7b3fd42a3c5714
536656cd89e4fa3a92b5dcab28657d60d1d244bd
/ui/display/manager/configure_displays_task.cc
1b37056d62ca9418ebcb82b7f93798b6a8083991
[ "BSD-3-Clause" ]
permissive
ECS-251-W2020/chromium
79caebf50443f297557d9510620bf8d44a68399a
ac814e85cb870a6b569e184c7a60a70ff3cb19f9
refs/heads/master
2022-08-19T17:42:46.887573
2020-03-18T06:08:44
2020-03-18T06:08:44
248,141,336
7
8
BSD-3-Clause
2022-07-06T20:32:48
2020-03-18T04:52:18
null
UTF-8
C++
false
false
7,069
cc
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ui/display/manager/configure_displays_task.h" #include "base/auto_reset.h" #include "base/bind.h" #include "base/containers/queue.h" #include "base/metrics/histogram_functions.h" #include "base/stl_util.h" #include "ui/display/manager/display_util.h" #include "ui/display/types/display_snapshot.h" #include "ui/display/types/native_display_delegate.h" namespace display { namespace { // Find the next best mode after |display_mode|. If none can be found return // nullptr. const DisplayMode* FindNextMode(const DisplaySnapshot& display_state, const DisplayMode* display_mode) { if (!display_mode) return nullptr; int best_mode_pixels = 0; const DisplayMode* best_mode = nullptr; int current_mode_pixels = display_mode->size().GetArea(); for (const std::unique_ptr<const DisplayMode>& mode : display_state.modes()) { int pixel_count = mode->size().GetArea(); if (pixel_count < current_mode_pixels && pixel_count > best_mode_pixels) { best_mode = mode.get(); best_mode_pixels = pixel_count; } } return best_mode; } // Samples used to define buckets used by DisplayResolution enum. // The enum is used to record screen resolution statistics. const int32_t kDisplayResolutionSamples[] = {1024, 1280, 1440, 1920, 2560, 3840, 5120, 7680}; // Computes the index of the enum DisplayResolution. // The index has to match the definition of the enum in enums.xml int ComputeDisplayResolutionEnum(const DisplayMode* mode) { if (!mode) return 0; // Display is powered off const gfx::Size size = mode->size(); uint32_t width_idx = 0; uint32_t height_idx = 0; for (; width_idx < base::size(kDisplayResolutionSamples); width_idx++) { if (size.width() <= kDisplayResolutionSamples[width_idx]) break; } for (; height_idx < base::size(kDisplayResolutionSamples); height_idx++) { if (size.height() <= kDisplayResolutionSamples[height_idx]) break; } if (width_idx == base::size(kDisplayResolutionSamples) || height_idx == base::size(kDisplayResolutionSamples)) return base::size(kDisplayResolutionSamples) * base::size(kDisplayResolutionSamples) + 1; // Overflow bucket // Computes the index of DisplayResolution, starting from 1, since 0 is used // when powering off the display. return width_idx * base::size(kDisplayResolutionSamples) + height_idx + 1; } } // namespace DisplayConfigureRequest::DisplayConfigureRequest(DisplaySnapshot* display, const DisplayMode* mode, const gfx::Point& origin) : display(display), mode(mode), origin(origin) {} ConfigureDisplaysTask::ConfigureDisplaysTask( NativeDisplayDelegate* delegate, const std::vector<DisplayConfigureRequest>& requests, ResponseCallback callback) : delegate_(delegate), requests_(requests), callback_(std::move(callback)), is_configuring_(false), num_displays_configured_(0), task_status_(SUCCESS) { for (size_t i = 0; i < requests_.size(); ++i) pending_request_indexes_.push(i); delegate_->AddObserver(this); } ConfigureDisplaysTask::~ConfigureDisplaysTask() { delegate_->RemoveObserver(this); } void ConfigureDisplaysTask::Run() { // Synchronous configurators will recursively call Run(). In that case just // defer their call to the next iteration in the while-loop. This is done to // guard against stack overflows if the display has a large list of broken // modes. if (is_configuring_) return; { base::AutoReset<bool> recursivity_guard(&is_configuring_, true); while (!pending_request_indexes_.empty()) { size_t index = pending_request_indexes_.front(); DisplayConfigureRequest* request = &requests_[index]; pending_request_indexes_.pop(); const bool internal = request->display->type() == DISPLAY_CONNECTION_TYPE_INTERNAL; base::UmaHistogramExactLinear( internal ? "ConfigureDisplays.Internal.Modeset.Resolution" : "ConfigureDisplays.External.Modeset.Resolution", ComputeDisplayResolutionEnum(request->mode), base::size(kDisplayResolutionSamples) * base::size(kDisplayResolutionSamples) + 2); base::HistogramBase* histogram = base::LinearHistogram::FactoryGet( internal ? "ConfigureDisplays.Internal.Modeset.RefreshRate" : "ConfigureDisplays.External.Modeset.RefreshRate", 1, 240, 18, base::HistogramBase::kUmaTargetedHistogramFlag); histogram->Add(request->mode ? std::round(request->mode->refresh_rate()) : 0); delegate_->Configure( *request->display, request->mode, request->origin, base::BindOnce(&ConfigureDisplaysTask::OnConfigured, weak_ptr_factory_.GetWeakPtr(), index)); } } // Nothing should be modified after the |callback_| is called since the // task may be deleted in the callback. if (num_displays_configured_ == requests_.size()) std::move(callback_).Run(task_status_); } void ConfigureDisplaysTask::OnConfigurationChanged() {} void ConfigureDisplaysTask::OnDisplaySnapshotsInvalidated() { base::queue<size_t> empty_queue; pending_request_indexes_.swap(empty_queue); // From now on, don't access |requests_[index]->display|; they're invalid. task_status_ = ERROR; weak_ptr_factory_.InvalidateWeakPtrs(); Run(); } void ConfigureDisplaysTask::OnConfigured(size_t index, bool success) { DisplayConfigureRequest* request = &requests_[index]; VLOG(2) << "Configured status=" << success << " display=" << request->display->display_id() << " origin=" << request->origin.ToString() << " mode=" << (request->mode ? request->mode->ToString() : "null"); const bool internal = request->display->type() == DISPLAY_CONNECTION_TYPE_INTERNAL; base::UmaHistogramBoolean( internal ? "ConfigureDisplays.Internal.Modeset.AttemptSucceeded" : "ConfigureDisplays.External.Modeset.AttemptSucceeded", success); if (!success) { request->mode = FindNextMode(*request->display, request->mode); if (request->mode) { pending_request_indexes_.push(index); if (task_status_ == SUCCESS) task_status_ = PARTIAL_SUCCESS; Run(); return; } } else { request->display->set_current_mode(request->mode); request->display->set_origin(request->origin); } num_displays_configured_++; base::UmaHistogramBoolean( internal ? "ConfigureDisplays.Internal.Modeset.FinalStatus" : "ConfigureDisplays.External.Modeset.FinalStatus", success); if (!success) task_status_ = ERROR; Run(); } } // namespace display
[ "pcding@ucdavis.edu" ]
pcding@ucdavis.edu
94a65f9cc562306352079d139c6a4110ece45741
431910b5986a92f70ed5a96c46d8deb5494e3ef4
/YTReader/jni/NativeFormats/zlibrary/core/src/filesystem/ZLOutputStream.h
14a226885e9a0e6f5f07002f9be87037381a3d6a
[]
no_license
yitoa/YTReader
c60d0962eb2d3056b61577bd5158a2fcb95bda5a
4257c658341cc759c45389a8f6dcc5ebcdb3ae64
refs/heads/master
2021-01-17T06:35:01.473355
2014-09-30T05:35:51
2014-09-30T05:35:51
24,487,885
1
1
null
null
null
null
UTF-8
C++
false
false
1,361
h
/* * Copyright (C) 2004-2012 Geometer Plus <contact@geometerplus.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA * 02110-1301, USA. */ #ifndef __ZLOUTPUTSTREAM_H__ #define __ZLOUTPUTSTREAM_H__ #include <string> class ZLOutputStream { protected: ZLOutputStream(); public: virtual ~ZLOutputStream(); virtual bool open() = 0; virtual void write(const char *data, size_t len) = 0; virtual void write(const std::string &str) = 0; virtual void close() = 0; private: ZLOutputStream(const ZLOutputStream&); const ZLOutputStream &operator = (const ZLOutputStream&); }; inline ZLOutputStream::ZLOutputStream() {} inline ZLOutputStream::~ZLOutputStream() {} #endif /* __ZLOUTPUTSTREAM_H__ */
[ "493262631@qq.com" ]
493262631@qq.com
a99d40e7591ee12c742550871b655493a838374d
13d61885fd3ae1f12d56cc5331a07527e5267dfd
/folly/experimental/pushmi/test/CompileTest.cpp
6945a49962df92682c063e60976d99e061b9ce84
[ "MIT", "Apache-2.0" ]
permissive
jelly9/folly
2813cd3fdd5b212b011b1e5c0e1fbd5e7d9dcf1f
1b5288e6eea6df074758f877c849b6e73bbb9fbb
refs/heads/master
2020-04-23T00:53:38.802143
2019-02-15T00:48:04
2019-02-15T01:03:13
170,795,549
2
0
Apache-2.0
2019-02-15T03:22:00
2019-02-15T03:21:57
null
UTF-8
C++
false
false
24,780
cpp
/* * Copyright 2018-present Facebook, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include <folly/experimental/pushmi/flow_single_sender.h> #include <folly/experimental/pushmi/o/empty.h> #include <folly/experimental/pushmi/o/extension_operators.h> #include <folly/experimental/pushmi/o/from.h> #include <folly/experimental/pushmi/o/just.h> #include <folly/experimental/pushmi/o/on.h> #include <folly/experimental/pushmi/o/submit.h> #include <folly/experimental/pushmi/o/tap.h> #include <folly/experimental/pushmi/o/transform.h> using namespace folly::pushmi::aliases; #include <folly/portability/GMock.h> #include <folly/portability/GTest.h> using namespace testing; using namespace std::literals; #if __cpp_deduction_guides >= 201703 #define MAKE(x) x MAKE_ #define MAKE_(...) \ { __VA_ARGS__ } #else #define MAKE(x) make_##x #endif void receiver_0_test() { auto out0 = mi::MAKE(receiver)(); static_assert(mi::Receiver<decltype(out0)>, "out0 not a receiver"); auto out1 = mi::MAKE(receiver)(mi::ignoreVF{}); static_assert(mi::Receiver<decltype(out1)>, "out1 not a receiver"); auto out2 = mi::MAKE(receiver)(mi::ignoreVF{}, mi::abortEF{}); static_assert(mi::Receiver<decltype(out2)>, "out2 not a receiver"); auto out3 = mi::MAKE(receiver)(mi::ignoreVF{}, mi::abortEF{}, mi::ignoreDF{}); static_assert(mi::Receiver<decltype(out3)>, "out3 not a receiver"); auto out4 = mi::MAKE(receiver)([](auto e) noexcept { e.get(); }); static_assert(mi::Receiver<decltype(out4)>, "out4 not a receiver"); auto out5 = mi::MAKE(receiver)(mi::on_value([]() {})); static_assert(mi::Receiver<decltype(out5)>, "out5 not a receiver"); auto out6 = mi::MAKE(receiver)(mi::on_error( [](std::exception_ptr) noexcept {}, [](auto e) noexcept { e.get(); })); static_assert(mi::Receiver<decltype(out6)>, "out6 not a receiver"); auto out7 = mi::MAKE(receiver)(mi::on_done([]() {})); static_assert(mi::Receiver<decltype(out7)>, "out7 not a receiver"); using Out0 = decltype(out0); auto proxy0 = mi::MAKE(receiver)(out0); static_assert(mi::Receiver<decltype(proxy0)>, "proxy0 not a receiver"); auto proxy1 = mi::MAKE(receiver)(out0, mi::passDVF{}); static_assert(mi::Receiver<decltype(proxy1)>, "proxy1 not a receiver"); auto proxy2 = mi::MAKE(receiver)(out0, mi::passDVF{}, mi::on_error(mi::passDEF{})); static_assert(mi::Receiver<decltype(proxy2)>, "proxy2 not a receiver"); auto proxy3 = mi::MAKE(receiver)(out0, mi::passDVF{}, mi::passDEF{}, mi::passDDF{}); static_assert(mi::Receiver<decltype(proxy3)>, "proxy3 not a receiver"); auto proxy4 = mi::MAKE(receiver)(out0, [](Out0&) {}, mi::on_error([ ](Out0 & d, auto e) noexcept { d.error(e); })); static_assert(mi::Receiver<decltype(proxy4)>, "proxy4 not a receiver"); auto proxy5 = mi::MAKE(receiver)(out0, mi::on_value([](Out0&) {})); static_assert(mi::Receiver<decltype(proxy5)>, "proxy5 not a receiver"); auto proxy6 = mi::MAKE(receiver)( out0, mi::on_error([](Out0&, std::exception_ptr) noexcept {}, [ ](Out0&, auto e) noexcept { e.get(); })); static_assert(mi::Receiver<decltype(proxy6)>, "proxy6 not a receiver"); auto proxy7 = mi::MAKE(receiver)(out0, mi::on_done([](Out0&) {})); static_assert(mi::Receiver<decltype(proxy7)>, "proxy7 not a receiver"); std::promise<void> p0; auto promise0 = mi::MAKE(receiver)(std::move(p0)); promise0.done(); std::promise<void> p1; auto any0 = mi::any_receiver<>(std::move(p1)); auto any1 = mi::any_receiver<>(std::move(promise0)); auto any2 = mi::any_receiver<>(out0); auto any3 = mi::any_receiver<>(proxy0); } void receiver_1_test() { auto out0 = mi::MAKE(receiver)(); static_assert(mi::Receiver<decltype(out0)>, "out0 not a receiver"); auto out1 = mi::MAKE(receiver)(mi::ignoreVF{}); static_assert(mi::Receiver<decltype(out1)>, "out1 not a receiver"); auto out2 = mi::MAKE(receiver)(mi::ignoreVF{}, mi::abortEF{}); static_assert(mi::Receiver<decltype(out2)>, "out2 not a receiver"); auto out3 = mi::MAKE(receiver)(mi::ignoreVF{}, mi::abortEF{}, mi::ignoreDF{}); static_assert(mi::Receiver<decltype(out3)>, "out3 not a receiver"); auto out4 = mi::MAKE(receiver)([](auto v) { v.get(); }); static_assert(mi::Receiver<decltype(out4)>, "out4 not a receiver"); auto out5 = mi::MAKE(receiver)( mi::on_value([](auto v) { v.get(); }, [](int) {}), mi::on_error([](std::exception_ptr) noexcept {}, [](auto e) noexcept { e.get(); })); static_assert(mi::Receiver<decltype(out5)>, "out5 not a receiver"); auto out6 = mi::MAKE(receiver)(mi::on_error( [](std::exception_ptr) noexcept {}, [](auto e) noexcept { e.get(); })); static_assert(mi::Receiver<decltype(out6)>, "out6 not a receiver"); auto out7 = mi::MAKE(receiver)(mi::on_done([]() {})); static_assert(mi::Receiver<decltype(out7)>, "out7 not a receiver"); using Out0 = decltype(out0); auto proxy0 = mi::MAKE(receiver)(out0); static_assert(mi::Receiver<decltype(proxy0)>, "proxy0 not a receiver"); auto proxy1 = mi::MAKE(receiver)(out0, mi::passDVF{}); static_assert(mi::Receiver<decltype(proxy1)>, "proxy1 not a receiver"); auto proxy2 = mi::MAKE(receiver)(out0, mi::passDVF{}, mi::on_error(mi::passDEF{})); static_assert(mi::Receiver<decltype(proxy2)>, "proxy2 not a receiver"); auto proxy3 = mi::MAKE(receiver)(out0, mi::passDVF{}, mi::passDEF{}, mi::passDDF{}); static_assert(mi::Receiver<decltype(proxy3)>, "proxy3 not a receiver"); auto proxy4 = mi::MAKE(receiver)( out0, [](auto d, auto v) { mi::set_value(d, v.get()); }); static_assert(mi::Receiver<decltype(proxy4)>, "proxy4 not a receiver"); auto proxy5 = mi::MAKE(receiver)( out0, mi::on_value([](Out0&, auto v) { v.get(); }, [](Out0&, int) {}), mi::on_error([](Out0&, std::exception_ptr) noexcept {}, [ ](Out0&, auto e) noexcept { e.get(); })); static_assert(mi::Receiver<decltype(proxy5)>, "proxy5 not a receiver"); auto proxy6 = mi::MAKE(receiver)( out0, mi::on_error([](Out0&, std::exception_ptr) noexcept {}, [ ](Out0&, auto e) noexcept { e.get(); })); static_assert(mi::Receiver<decltype(proxy6)>, "proxy6 not a receiver"); auto proxy7 = mi::MAKE(receiver)(out0, mi::on_done([](Out0&) {})); static_assert(mi::Receiver<decltype(proxy7)>, "proxy7 not a receiver"); std::promise<int> p0; auto promise0 = mi::MAKE(receiver)(std::move(p0)); promise0.value(0); std::promise<int> p1; auto any0 = mi::any_receiver<std::exception_ptr, int>(std::move(p1)); auto any1 = mi::any_receiver<std::exception_ptr, int>(std::move(promise0)); auto any2 = mi::any_receiver<std::exception_ptr, int>(out0); auto any3 = mi::any_receiver<std::exception_ptr, int>(proxy0); } void receiver_n_test() { auto out0 = mi::MAKE(receiver)(); static_assert(mi::Receiver<decltype(out0)>, "out0 not a receiver"); auto out1 = mi::MAKE(receiver)(mi::ignoreNF{}); static_assert(mi::Receiver<decltype(out1)>, "out1 not a receiver"); auto out2 = mi::MAKE(receiver)(mi::ignoreNF{}, mi::abortEF{}); static_assert(mi::Receiver<decltype(out2)>, "out2 not a receiver"); auto out3 = mi::MAKE(receiver)(mi::ignoreNF{}, mi::abortEF{}, mi::ignoreDF{}); static_assert(mi::Receiver<decltype(out3)>, "out3 not a receiver"); auto out4 = mi::MAKE(receiver)([](auto v) { v.get(); }); static_assert(mi::Receiver<decltype(out4)>, "out4 not a receiver"); auto out5 = mi::MAKE(receiver)( mi::on_value([](auto v) { v.get(); }, [](int) {}), mi::on_error([](std::exception_ptr) noexcept {}, [](auto e) noexcept { e.get(); })); static_assert(mi::Receiver<decltype(out5)>, "out5 not a receiver"); auto out6 = mi::MAKE(receiver)(mi::on_error( [](std::exception_ptr) noexcept {}, [](auto e) noexcept { e.get(); })); static_assert(mi::Receiver<decltype(out6)>, "out6 not a receiver"); auto out7 = mi::MAKE(receiver)(mi::on_done([]() {})); static_assert(mi::Receiver<decltype(out7)>, "out7 not a receiver"); using Out0 = decltype(out0); auto proxy0 = mi::MAKE(receiver)(out0); static_assert(mi::Receiver<decltype(proxy0)>, "proxy0 not a receiver"); auto proxy1 = mi::MAKE(receiver)(out0, mi::passDVF{}); static_assert(mi::Receiver<decltype(proxy1)>, "proxy1 not a receiver"); auto proxy2 = mi::MAKE(receiver)(out0, mi::passDVF{}, mi::on_error(mi::passDEF{})); static_assert(mi::Receiver<decltype(proxy2)>, "proxy2 not a receiver"); auto proxy3 = mi::MAKE(receiver)(out0, mi::passDVF{}, mi::passDEF{}, mi::passDDF{}); static_assert(mi::Receiver<decltype(proxy3)>, "proxy3 not a receiver"); auto proxy4 = mi::MAKE(receiver)( out0, [](auto d, auto v) { mi::set_value(d, v.get()); }); static_assert(mi::Receiver<decltype(proxy4)>, "proxy4 not a receiver"); auto proxy5 = mi::MAKE(receiver)( out0, mi::on_value([](Out0&, auto v) { v.get(); }, [](Out0&, int) {}), mi::on_error([](Out0&, std::exception_ptr) noexcept {}, [ ](Out0&, auto e) noexcept { e.get(); })); static_assert(mi::Receiver<decltype(proxy5)>, "proxy5 not a receiver"); auto proxy6 = mi::MAKE(receiver)( out0, mi::on_error([](Out0&, std::exception_ptr) noexcept {}, [ ](Out0&, auto e) noexcept { e.get(); })); static_assert(mi::Receiver<decltype(proxy6)>, "proxy6 not a receiver"); auto proxy7 = mi::MAKE(receiver)(out0, mi::on_done([](Out0&) {})); static_assert(mi::Receiver<decltype(proxy7)>, "proxy7 not a receiver"); auto any0 = mi::any_receiver<std::exception_ptr, int>(out0); auto any1 = mi::any_receiver<std::exception_ptr, int>(proxy0); } void single_sender_test() { auto in0 = mi::MAKE(single_sender)(); static_assert(mi::Sender<decltype(in0)>, "in0 not a sender"); auto in1 = mi::MAKE(single_sender)(mi::ignoreSF{}); static_assert(mi::Sender<decltype(in1)>, "in1 not a sender"); auto in2 = mi::MAKE(single_sender)(mi::ignoreSF{}, mi::trampolineEXF{}); static_assert(mi::Sender<decltype(in2)>, "in2 not a sender"); auto in3 = mi::MAKE(single_sender)( [&](auto out) { in0.submit(mi::MAKE(receiver)( std::move(out), mi::on_value([](auto d, int v) { mi::set_value(d, v); }))); }, []() { return mi::trampoline(); }); static_assert(mi::Sender<decltype(in3)>, "in3 not a sender"); std::promise<int> p0; auto promise0 = mi::MAKE(receiver)(std::move(p0)); in0 | ep::submit(std::move(promise0)); auto out0 = mi::MAKE(receiver)(); auto out1 = mi::MAKE(receiver)( out0, mi::on_value([](auto d, int v) { mi::set_value(d, v); })); in3.submit(out1); auto any0 = mi::any_single_sender<std::exception_ptr, int>(in0); static_assert( mi::Executor<mi::executor_t<decltype(in0)>>, "sender has invalid executor"); } void many_sender_test() { auto in0 = mi::MAKE(many_sender)(); static_assert(mi::Sender<decltype(in0)>, "in0 not a sender"); auto in1 = mi::MAKE(many_sender)(mi::ignoreSF{}); static_assert(mi::Sender<decltype(in1)>, "in1 not a sender"); auto in2 = mi::MAKE(many_sender)(mi::ignoreSF{}, mi::trampolineEXF{}); static_assert(mi::Sender<decltype(in2)>, "in2 not a sender"); auto in3 = mi::MAKE(many_sender)( [&](auto out) { in0.submit(mi::MAKE(receiver)( std::move(out), mi::on_value([](auto d, int v) { mi::set_value(d, v); }))); }, []() { return mi::trampoline(); }); static_assert(mi::Sender<decltype(in3)>, "in3 not a sender"); auto out0 = mi::MAKE(receiver)(); auto out1 = mi::MAKE(receiver)( out0, mi::on_value([](auto d, int v) { mi::set_value(d, v); })); in3.submit(out1); auto any0 = mi::any_many_sender<std::exception_ptr, int>(in0); static_assert( mi::Executor<mi::executor_t<decltype(in0)>>, "sender has invalid executor"); } void constrained_single_sender_test() { auto in0 = mi::MAKE(constrained_single_sender)(); static_assert(mi::Sender<decltype(in0)>, "in0 not a sender"); auto in1 = mi::MAKE(constrained_single_sender)(mi::ignoreSF{}); static_assert(mi::Sender<decltype(in1)>, "in1 not a sender"); auto in2 = mi::MAKE(constrained_single_sender)( mi::ignoreSF{}, mi::inlineConstrainedEXF{}, mi::priorityZeroF{}); static_assert(mi::Sender<decltype(in2)>, "in2 not a sender"); auto in3 = mi::MAKE(constrained_single_sender)( [&](auto c, auto out) { in0.submit( c, mi::MAKE(receiver)(std::move(out), mi::on_value([](auto d, int v) { mi::set_value(d, v); }))); }, []() { return mi::inline_constrained_executor(); }, []() { return 0; }); static_assert(mi::Sender<decltype(in3)>, "in3 not a sender"); auto in4 = mi::MAKE(constrained_single_sender)( mi::ignoreSF{}, mi::inlineConstrainedEXF{}); static_assert(mi::Sender<decltype(in4)>, "in4 not a sender"); std::promise<int> p0; auto promise0 = mi::MAKE(receiver)(std::move(p0)); in0.submit(in0.top(), std::move(promise0)); auto out0 = mi::MAKE(receiver)(); auto out1 = mi::MAKE(receiver)( out0, mi::on_value([](auto d, int v) { mi::set_value(d, v); })); in3.submit(in0.top(), out1); auto any0 = mi:: any_constrained_single_sender<std::exception_ptr, std::ptrdiff_t, int>( in0); static_assert( mi::Executor<mi::executor_t<decltype(in0)>>, "sender has invalid executor"); in3 | op::submit(); in3 | op::blocking_submit(); } void time_single_sender_test() { auto in0 = mi::MAKE(time_single_sender)(); static_assert(mi::Sender<decltype(in0)>, "in0 not a sender"); auto in1 = mi::MAKE(time_single_sender)(mi::ignoreSF{}); static_assert(mi::Sender<decltype(in1)>, "in1 not a sender"); auto in2 = mi::MAKE(time_single_sender)( mi::ignoreSF{}, mi::inlineTimeEXF{}, mi::systemNowF{}); static_assert(mi::Sender<decltype(in2)>, "in2 not a sender"); auto in3 = mi::MAKE(time_single_sender)( [&](auto tp, auto out) { in0.submit( tp, mi::MAKE(receiver)(std::move(out), mi::on_value([](auto d, int v) { mi::set_value(d, v); }))); }, []() { return mi::inline_time_executor(); }, []() { return std::chrono::system_clock::now(); }); static_assert(mi::Sender<decltype(in3)>, "in3 not a sender"); auto in4 = mi::MAKE(time_single_sender)(mi::ignoreSF{}, mi::inlineTimeEXF{}); static_assert(mi::Sender<decltype(in4)>, "in4 not a sender"); std::promise<int> p0; auto promise0 = mi::MAKE(receiver)(std::move(p0)); in0.submit(in0.top(), std::move(promise0)); auto out0 = mi::MAKE(receiver)(); auto out1 = mi::MAKE(receiver)( out0, mi::on_value([](auto d, int v) { mi::set_value(d, v); })); in3.submit(in0.top(), out1); auto any0 = mi::any_time_single_sender< std::exception_ptr, std::chrono::system_clock::time_point, int>(in0); static_assert( mi::Executor<mi::executor_t<decltype(in0)>>, "sender has invalid executor"); in3 | op::submit(); in3 | op::blocking_submit(); in3 | op::submit_at(in3.top() + 1s); in3 | op::submit_after(1s); } void flow_receiver_1_test() { auto out0 = mi::MAKE(flow_receiver)(); static_assert(mi::Receiver<decltype(out0)>, "out0 not a receiver"); auto out1 = mi::MAKE(flow_receiver)(mi::ignoreVF{}); static_assert(mi::Receiver<decltype(out1)>, "out1 not a receiver"); auto out2 = mi::MAKE(flow_receiver)(mi::ignoreVF{}, mi::abortEF{}); static_assert(mi::Receiver<decltype(out2)>, "out2 not a receiver"); auto out3 = mi::MAKE(flow_receiver)(mi::ignoreVF{}, mi::abortEF{}, mi::ignoreDF{}); static_assert(mi::Receiver<decltype(out3)>, "out3 not a receiver"); auto out4 = mi::MAKE(flow_receiver)([](auto v) { v.get(); }); static_assert(mi::Receiver<decltype(out4)>, "out4 not a receiver"); auto out5 = mi::MAKE(flow_receiver)( mi::on_value([](auto v) { v.get(); }, [](int) {}), mi::on_error([](std::exception_ptr) noexcept {}, [](auto e) noexcept { e.get(); })); static_assert(mi::Receiver<decltype(out5)>, "out5 not a receiver"); auto out6 = mi::MAKE(flow_receiver)(mi::on_error( [](std::exception_ptr) noexcept {}, [](auto e) noexcept { e.get(); })); static_assert(mi::Receiver<decltype(out6)>, "out6 not a receiver"); auto out7 = mi::MAKE(flow_receiver)(mi::on_done([]() {})); static_assert(mi::Receiver<decltype(out7)>, "out7 not a receiver"); auto out8 = mi::MAKE(flow_receiver)( mi::ignoreVF{}, mi::abortEF{}, mi::ignoreDF{}, mi::ignoreStrtF{}); static_assert(mi::Receiver<decltype(out8)>, "out8 not a receiver"); using Out0 = decltype(out0); auto proxy0 = mi::MAKE(flow_receiver)(out0); static_assert(mi::Receiver<decltype(proxy0)>, "proxy0 not a receiver"); auto proxy1 = mi::MAKE(flow_receiver)(out0, mi::passDVF{}); static_assert(mi::Receiver<decltype(proxy1)>, "proxy1 not a receiver"); auto proxy2 = mi::MAKE(flow_receiver)(out0, mi::passDVF{}, mi::passDEF{}); static_assert(mi::Receiver<decltype(proxy2)>, "proxy2 not a receiver"); auto proxy3 = mi::MAKE(flow_receiver)( out0, mi::passDVF{}, mi::passDEF{}, mi::passDDF{}); static_assert(mi::Receiver<decltype(proxy3)>, "proxy3 not a receiver"); auto proxy4 = mi::MAKE(flow_receiver)( out0, [](auto d, auto v) { mi::set_value(d, v.get()); }); static_assert(mi::Receiver<decltype(proxy4)>, "proxy4 not a receiver"); auto proxy5 = mi::MAKE(flow_receiver)( out0, mi::on_value([](Out0&, auto v) { v.get(); }, [](Out0&, int) {}), mi::on_error([](Out0&, std::exception_ptr) noexcept {}, [ ](Out0&, auto e) noexcept { e.get(); })); static_assert(mi::Receiver<decltype(proxy5)>, "proxy5 not a receiver"); auto proxy6 = mi::MAKE(flow_receiver)( out0, mi::on_error([](Out0&, std::exception_ptr) noexcept {}, [ ](Out0&, auto e) noexcept { e.get(); })); static_assert(mi::Receiver<decltype(proxy6)>, "proxy6 not a receiver"); auto proxy7 = mi::MAKE(flow_receiver)(out0, mi::on_done([](Out0&) {})); static_assert(mi::Receiver<decltype(proxy7)>, "proxy7 not a receiver"); auto proxy8 = mi::MAKE(flow_receiver)( out0, mi::passDVF{}, mi::passDEF{}, mi::passDDF{}); static_assert(mi::Receiver<decltype(proxy8)>, "proxy8 not a receiver"); auto any2 = mi::any_flow_receiver< std::exception_ptr, std::ptrdiff_t, std::exception_ptr, int>(out0); auto any3 = mi::any_flow_receiver< std::exception_ptr, std::ptrdiff_t, std::exception_ptr, int>(proxy0); } void flow_receiver_n_test() { auto out0 = mi::MAKE(flow_receiver)(); static_assert(mi::Receiver<decltype(out0)>, "out0 not a receiver"); auto out1 = mi::MAKE(flow_receiver)(mi::ignoreVF{}); static_assert(mi::Receiver<decltype(out1)>, "out1 not a receiver"); auto out2 = mi::MAKE(flow_receiver)(mi::ignoreVF{}, mi::abortEF{}); static_assert(mi::Receiver<decltype(out2)>, "out2 not a receiver"); auto out3 = mi::MAKE(flow_receiver)(mi::ignoreVF{}, mi::abortEF{}, mi::ignoreDF{}); static_assert(mi::Receiver<decltype(out3)>, "out3 not a receiver"); auto out4 = mi::MAKE(flow_receiver)([](auto v) { v.get(); }); static_assert(mi::Receiver<decltype(out4)>, "out4 not a receiver"); auto out5 = mi::MAKE(flow_receiver)( mi::on_value([](auto v) { v.get(); }, [](int) {}), mi::on_error([](std::exception_ptr) noexcept {}, [](auto e) noexcept { e.get(); })); static_assert(mi::Receiver<decltype(out5)>, "out5 not a receiver"); auto out6 = mi::MAKE(flow_receiver)(mi::on_error( [](std::exception_ptr) noexcept {}, [](auto e) noexcept { e.get(); })); static_assert(mi::Receiver<decltype(out6)>, "out6 not a receiver"); auto out7 = mi::MAKE(flow_receiver)(mi::on_done([]() {})); static_assert(mi::Receiver<decltype(out7)>, "out7 not a receiver"); auto out8 = mi::MAKE(flow_receiver)( mi::ignoreVF{}, mi::abortEF{}, mi::ignoreDF{}, mi::ignoreStrtF{}); static_assert(mi::Receiver<decltype(out8)>, "out8 not a receiver"); using Out0 = decltype(out0); auto proxy0 = mi::MAKE(flow_receiver)(out0); static_assert(mi::Receiver<decltype(proxy0)>, "proxy0 not a receiver"); auto proxy1 = mi::MAKE(flow_receiver)(out0, mi::passDVF{}); static_assert(mi::Receiver<decltype(proxy1)>, "proxy1 not a receiver"); auto proxy2 = mi::MAKE(flow_receiver)(out0, mi::passDVF{}, mi::passDEF{}); static_assert(mi::Receiver<decltype(proxy2)>, "proxy2 not a receiver"); auto proxy3 = mi::MAKE(flow_receiver)( out0, mi::passDVF{}, mi::passDEF{}, mi::passDDF{}); static_assert(mi::Receiver<decltype(proxy3)>, "proxy3 not a receiver"); auto proxy4 = mi::MAKE(flow_receiver)( out0, [](auto d, auto v) { mi::set_value(d, v.get()); }); static_assert(mi::Receiver<decltype(proxy4)>, "proxy4 not a receiver"); auto proxy5 = mi::MAKE(flow_receiver)( out0, mi::on_value([](Out0&, auto v) { v.get(); }, [](Out0&, int) {}), mi::on_error([](Out0&, std::exception_ptr) noexcept {}, [ ](Out0&, auto e) noexcept { e.get(); })); static_assert(mi::Receiver<decltype(proxy5)>, "proxy5 not a receiver"); auto proxy6 = mi::MAKE(flow_receiver)( out0, mi::on_error([](Out0&, std::exception_ptr) noexcept {}, [ ](Out0&, auto e) noexcept { e.get(); })); static_assert(mi::Receiver<decltype(proxy6)>, "proxy6 not a receiver"); auto proxy7 = mi::MAKE(flow_receiver)(out0, mi::on_done([](Out0&) {})); static_assert(mi::Receiver<decltype(proxy7)>, "proxy7 not a receiver"); auto proxy8 = mi::MAKE(flow_receiver)( out0, mi::passDVF{}, mi::passDEF{}, mi::passDDF{}); static_assert(mi::Receiver<decltype(proxy8)>, "proxy8 not a receiver"); auto any2 = mi::any_flow_receiver< std::exception_ptr, std::ptrdiff_t, std::exception_ptr, int>(out0); auto any3 = mi::any_flow_receiver< std::exception_ptr, std::ptrdiff_t, std::exception_ptr, int>(proxy0); } void flow_single_sender_test() { auto in0 = mi::MAKE(flow_single_sender)(); static_assert(mi::Sender<decltype(in0)>, "in0 not a sender"); auto in1 = mi::MAKE(flow_single_sender)(mi::ignoreSF{}); static_assert(mi::Sender<decltype(in1)>, "in1 not a sender"); auto in2 = mi::MAKE(flow_single_sender)(mi::ignoreSF{}, mi::trampolineEXF{}); static_assert(mi::Sender<decltype(in2)>, "in2 not a sender"); auto in3 = mi::MAKE(flow_single_sender)( [&](auto out) { in0.submit(mi::MAKE(flow_receiver)( std::move(out), mi::on_value([](auto d, int v) { mi::set_value(d, v); }))); }, []() { return mi::trampoline(); }); static_assert(mi::Sender<decltype(in3)>, "in3 not a sender"); auto out0 = mi::MAKE(flow_receiver)(); auto out1 = mi::MAKE(flow_receiver)( out0, mi::on_value([](auto d, int v) { mi::set_value(d, v); })); in3.submit(out1); auto any0 = mi::any_flow_single_sender<std::exception_ptr, std::exception_ptr, int>( in0); static_assert( mi::Executor<mi::executor_t<decltype(in0)>>, "sender has invalid executor"); } void flow_many_sender_test() { auto in0 = mi::MAKE(flow_many_sender)(); static_assert(mi::Sender<decltype(in0)>, "in0 not a sender"); auto in1 = mi::MAKE(flow_many_sender)(mi::ignoreSF{}); static_assert(mi::Sender<decltype(in1)>, "in1 not a sender"); auto in2 = mi::MAKE(flow_many_sender)(mi::ignoreSF{}, mi::trampolineEXF{}); static_assert(mi::Sender<decltype(in2)>, "in2 not a sender"); auto in3 = mi::MAKE(flow_many_sender)( [&](auto out) { in0.submit(mi::MAKE(flow_receiver)( std::move(out), mi::on_value([](auto d, int v) { mi::set_value(d, v); }))); }, []() { return mi::trampoline(); }); static_assert(mi::Sender<decltype(in3)>, "in3 not a sender"); auto out0 = mi::MAKE(flow_receiver)(); auto out1 = mi::MAKE(flow_receiver)( out0, mi::on_value([](auto d, int v) { mi::set_value(d, v); })); in3.submit(out1); auto any0 = mi::any_flow_many_sender< std::exception_ptr, std::ptrdiff_t, std::exception_ptr, int>(in0); static_assert( mi::Executor<mi::executor_t<decltype(in0)>>, "sender has invalid executor"); } TEST(CompileTest, Test) {}
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
fbc9ffdc337ec9e713c101cb1c4f5a7468453ac5
4c9aee5e6fc1657728e7c99a82c86eea8428cfe3
/PhonePrice/NumberHandler.h
cec9ca467d9281e418de02314e64599a2a2aa82e
[]
no_license
colorfire/phoneprice
d7f6f69841a931f85ee58ba00df250d75864b5b4
8cad836909bcad01750cca96e31b0c3c4e5cc12d
refs/heads/master
2016-09-06T09:32:57.958695
2014-12-03T15:50:43
2014-12-03T15:50:43
null
0
0
null
null
null
null
GB18030
C++
false
false
6,351
h
#pragma once class CNumberHandler { public: CNumberHandler(void){} virtual ~CNumberHandler(void){} virtual void NormanizeString(const CString& src,CString& to)=0; }; class CScreenNumberHandler:public CNumberHandler{ public: void NormanizeString(const CString& src,CString& to){ to=src; if(src.Compare(L"6.4")>=0){ to=L"6.4寸以上"; }else if(src.Compare(L"6.1")>=0){ to=L"6.1-6.3"; }else if(src.Compare(L"5.6")>=0){ to=L"5.6-5.8"; }else if(src.Compare(L"5.4")>=0){ to=L"5.4-5.5"; }else if(src.Compare(L"5.1")>=0){ to=L"5.1-5.3"; }else if(src.Compare(L"4.9")>=0){ to=L"4.9-5.0"; }else if(src.Compare(L"4.6")>=0){ to=L"4.6-4.8"; }else if(src.Compare(L"4.3")>=0){ to=L"4.3-4.5"; }else if(src.Compare(L"4.0")>=0 || src[0]==L'4'){ to=L"4.0"; }else if(src.Compare(L"3.5寸以下")==0){ to=L"3.5寸以下"; }else if(src.Compare(L"3.5")>=0){ to=L"3.5"; }else{ to=L"3.5寸以下"; } } }; class CPCameraNumberHandler:public CNumberHandler{ public: void NormanizeString(const CString& src,CString& to){ int len=src.GetLength(); to=src; if(len<=2 || src==L"300以下"){ to=L"300以下"; }else if(len==3){ if(src==L'800'){ to=L'800'; }else if(src.Compare(L"800")>=0){ to=L"800-1200"; }else if(src.Compare(L"600")>=0){ to=L"600-700"; }else if(src.Compare(L"500")>=0){ to=L"500"; }else if(src.Compare(L"400")>=0){ to=L"400"; }else{ to=L"300以下"; } }else if(len==4){ if(src.Compare(L"1200")<=0){ to=L"800-1200"; }else if(src.Compare(L"1300")<=0){ to=L"1300"; }else if(src.Compare(L"4100")>=0){ to=L"4100"; }else{ to=L"1300"; } } } }; class CSCameraNumberHandler:public CNumberHandler{ public: void NormanizeString(const CString& src,CString& to){ int len=src.GetLength(); to=src; if(len<=2){ if(src.Compare(L"50")>0){ to=L"100-200"; }else if(src.Compare(L"30")>=0){ to=L"30"; }else{ to=L"不支持"; } }else if(len==3){ if(src==L"不支持"){ to=L"不支持"; }else if(src.Compare(L"800")>=0){ to=L"800"; }else if(src.Compare(L"500")>=0){ to=L"500"; }else if(src.Compare(L"400")>=0){ to=L"400"; }else if(src.Compare(L"300")>=0){ to=L"300"; }else if(src.Compare(L"100")>=0){ to=L"100-200"; }else{ to=L"100-200"; } }else{ // to=L"800"; } } }; class CRamNumberHandler:public CNumberHandler{ public: void NormanizeString(const CString& src,CString& to){ int len=src.GetLength(); to=src; if(len==4){ if(src.Compare(L"3000")>=0){ to=L"3000"; } else if(src.Compare(L"2048")>=0){ to=L"2048以上"; }else if(src.Compare(L"1536")>=0){ to=L"1536"; }else if(src.Compare(L"1024")>=0){ to=L"1024"; }else{ to=L"1024"; } }else if(len==3){ if(src.Compare(L"800")>=0){ to=L"800"; }else if(src.Compare(L"768")>=0){ to=L"768"; }else if(src.Compare(L"512")>=0){ to=L"512"; }else if(src.Compare(L"256")>=0){ to=L"256"; }else if(src.Compare(L"128")<0){ to=L"128以下"; }else{ to=L"256"; } }else if(len<=2){ to=L"128以下"; } } }; class CRomNumberHandler:public CNumberHandler{ public: void NormanizeString(const CString& src,CString& to){ to=src; int len=src.GetLength(); if(len>5){ to=L"16"; }else if(len==5){ if(src.Compare(L"32000")>=0){ to=L"32"; }else{ to=L"16"; } }else if(len==4){ if(src.Compare(L"8000")>=0){ to=L"8"; }else if(src.Compare(L"4000")>=0){ to=L"4"; }else if(src.Compare(L"2000")>=0){ to=L"2"; }else if(src.Compare(L"1000")>=0){ to=L"1"; }else{ to=L"1"; } }else if(len==3){ if(src[0]==L'0' && src[1]==L'.'){ to=L"2及以下"; } if(src==L"16G"){ to=L"16"; }else if(src==L"32G"){ to=L"32"; }else{ to=L"16"; } }else if(len==2){ if(src==L"8G"){ to=L"8"; }else if(src==L"4G"){ to=L"4"; }else if(src==L"2G"){ to=L"2及以下"; } } } }; class CStandbyNumberHandler:public CNumberHandler{ public: void NormanizeString(const CString& src,CString& to){ to=src; if(src==L"单网单待"){ to="单卡单待"; }else if(src==L"双网单待"){ to="双卡单待"; }else if(src==L"双网双待"){ to="双卡双待"; } } }; class CResolveNumberHandler:public CNumberHandler{ public: void NormanizeString(const CString& src,CString& to){ to=src; } }; class CCoreNumNumberHandler:public CNumberHandler{ public: void NormanizeString(const CString& src,CString& to){ to=src; if(src==L"八核"){ to=L"8"; }else if(src==L"四核"){ to=L"4"; }else if(src==L"双核"){ to=L"2"; }else if(src==L"单核"){ to=L"1"; } } }; class CCpuFreqNumberHandler:public CNumberHandler{ public: void NormanizeString(const CString& src,CString& to){ int len=src.GetLength(); to=src; if(len==4){ if(src.Compare(L"4096")>=0){ to=L"4096"; }else if(src.Compare(L"2048")>=0){ to=L"2048"; }else if(src.Compare(L"1741")>=0){ to=L"1741"; }else if(src.Compare(L"1400")>=0){ to=L"1400-1638"; }else{ to=L"1228以下"; } }else if(len<=3){ to=L"1228以下"; } } }; class CBatteryNumberHandler:public CNumberHandler{ public: void NormanizeString(const CString& src,CString& to){ int len=src.GetLength(); to=src; if(len==4){ if(src.Compare(L"4000")>=0){ to=L"4050"; }else if(src.Compare(L"3500")>=0){ to=L"3500"; }else if(src.Compare(L"3200")>=0){ to=L"3200"; }else if(src.Compare(L"3150")>=0){ to=L"3150"; }else if(src.Compare(L"3000")>=0){ to=L"3000"; }else if(src.Compare(L"2900")>=0){ to=L"2900"; }else if(src.Compare(L"2500")>=0){ to=L"2500"; }else if(src.Compare(L"2000")>=0){ to=L"2000-2200"; }else if(src.Compare(L"1900")>=0){ to=L"1900"; }else if(src.Compare(L"1800")>=0){ to=L"1800"; }else if(src.Compare(L"1750")>=0){ to=L"1750"; }else if(src.Compare(L"1700")>=0){ to=L"1700"; }else if(src.Compare(L"1650")>=0){ to=L"1650"; }else if(src.Compare(L"1600")>=0){ to=L"1600"; }else if(src.Compare(L"1520")>=0){ to=L"1520"; }else if(src.Compare(L"1500")>=0){ to=L"1500"; }else{ to=L"1450以下"; } }else if(len<=3){ to=L"1450以下"; } } };
[ "weigangqiu@rongxintx.com" ]
weigangqiu@rongxintx.com
ff086ea8975785ff37106e454a09c76bed28db7b
535d1b93fbe05923e2defac0f7c218bd64559e0d
/CarmenJuego/Proyecto/Carmen/bin/windows/obj/include/lime/graphics/opengl/ext/QCOM_writeonly_rendering.h
1e1344727c3f96220cf9a5983511fe1e9af3f466
[]
no_license
XxKarikyXx/ProgVJ1
af9a9f4d7608912e1b2bab9726266b9f4ef5f44d
d26e335379a001cce21d7cd87461d75169391222
refs/heads/develop
2020-03-13T12:44:19.172929
2018-06-05T17:58:01
2018-06-05T17:58:01
131,125,411
0
0
null
2018-05-09T05:12:42
2018-04-26T08:35:17
Haxe
UTF-8
C++
false
true
2,629
h
// Generated by Haxe 3.4.2 (git build master @ 890f8c7) #ifndef INCLUDED_lime_graphics_opengl_ext_QCOM_writeonly_rendering #define INCLUDED_lime_graphics_opengl_ext_QCOM_writeonly_rendering #ifndef HXCPP_H #include <hxcpp.h> #endif HX_DECLARE_STACK_FRAME(_hx_pos_e1536ec9c60761cf_9_new) HX_DECLARE_CLASS4(lime,graphics,opengl,ext,QCOM_writeonly_rendering) namespace lime{ namespace graphics{ namespace opengl{ namespace ext{ class HXCPP_CLASS_ATTRIBUTES QCOM_writeonly_rendering_obj : public hx::Object { public: typedef hx::Object super; typedef QCOM_writeonly_rendering_obj OBJ_; QCOM_writeonly_rendering_obj(); public: enum { _hx_ClassId = 0x0c5062bb }; void __construct(); inline void *operator new(size_t inSize, bool inContainer=false,const char *inName="lime.graphics.opengl.ext.QCOM_writeonly_rendering") { return hx::Object::operator new(inSize,inContainer,inName); } inline void *operator new(size_t inSize, int extra) { return hx::Object::operator new(inSize+extra,false,"lime.graphics.opengl.ext.QCOM_writeonly_rendering"); } hx::ObjectPtr< QCOM_writeonly_rendering_obj > __new() { hx::ObjectPtr< QCOM_writeonly_rendering_obj > __this = new QCOM_writeonly_rendering_obj(); __this->__construct(); return __this; } static hx::ObjectPtr< QCOM_writeonly_rendering_obj > __alloc(hx::Ctx *_hx_ctx) { QCOM_writeonly_rendering_obj *__this = (QCOM_writeonly_rendering_obj*)(hx::Ctx::alloc(_hx_ctx, sizeof(QCOM_writeonly_rendering_obj), false, "lime.graphics.opengl.ext.QCOM_writeonly_rendering")); *(void **)__this = QCOM_writeonly_rendering_obj::_hx_vtable; { HX_STACKFRAME(&_hx_pos_e1536ec9c60761cf_9_new) HXDLIN( 9) ( ( ::lime::graphics::opengl::ext::QCOM_writeonly_rendering)(__this) )->WRITEONLY_RENDERING_QCOM = (int)34851; } return __this; } static void * _hx_vtable; static Dynamic __CreateEmpty(); static Dynamic __Create(hx::DynamicArray inArgs); //~QCOM_writeonly_rendering_obj(); HX_DO_RTTI_ALL; hx::Val __Field(const ::String &inString, hx::PropertyAccess inCallProp); hx::Val __SetField(const ::String &inString,const hx::Val &inValue, hx::PropertyAccess inCallProp); void __GetFields(Array< ::String> &outFields); static void __register(); bool _hx_isInstanceOf(int inClassId); ::String __ToString() const { return HX_HCSTRING("QCOM_writeonly_rendering","\x09","\x44","\x22","\x8a"); } int WRITEONLY_RENDERING_QCOM; }; } // end namespace lime } // end namespace graphics } // end namespace opengl } // end namespace ext #endif /* INCLUDED_lime_graphics_opengl_ext_QCOM_writeonly_rendering */
[ "kariky@hotmail.es" ]
kariky@hotmail.es
77ed8b34b89eeb2f210ea2b6da8b3aad3c7a22ad
b32a9607e34631c845db8c84c6fb340c57afadf9
/src/processors/cpu_traits.hxx
80d21cac368345e3847950cfe87d998321f374d9
[]
no_license
fmichea/jarbocul
dec0871e441e02dc958a5927b199f149bb82860a
9d530a2b7dfc17c5076529c94e6fe5f84859e4ad
refs/heads/master
2021-01-21T05:00:53.103145
2016-07-03T15:03:41
2016-07-03T15:03:41
40,084,295
0
0
null
null
null
null
UTF-8
C++
false
false
508
hxx
#pragma once #ifndef JARBOCUL_PROCESSORS_CPU_TRAITS_HXX_ # define JARBOCUL_PROCESSORS_CPU_TRAITS_HXX_ # include "processors/cpu_traits.hh" template <typename CPU> std::string addr2str(typename cpu_traits<CPU>::AddrType pc) { std::ostringstream addr; size_t addr_width = sizeof (typename cpu_traits<CPU>::AddrType) * 2; addr << std::setfill('0') << std::setw(addr_width) << std::hex << std::uppercase << pc; return addr.str(); } #endif /* !JARBOCUL_PROCESSORS_CPU_TRAITS_HXX_ */
[ "franck.michea@gmail.com" ]
franck.michea@gmail.com
18ec22bb62d8d10f094c86df1f36a5538394ab9c
eea7c201962b016c9e17078dd531d682d491bff2
/Nana.Cpp03/source/gui/widgets/tray.cpp
0b3c04d05d405768549ae53741975816b44a07e0
[ "BSL-1.0" ]
permissive
gfannes/nana
be828b370e2924a18ed16cd1e454a91c45547f99
3b8d33f9a98579684ea0440b6952deabe61bd978
refs/heads/master
2018-12-28T10:30:58.166529
2013-12-09T23:50:40
2013-12-09T23:50:40
15,054,894
1
0
null
null
null
null
UTF-8
C++
false
false
2,225
cpp
/* * Tray Implementation * Copyright(C) 2003-2013 Jinhao(cnjinhao@hotmail.com) * * Distributed under the Boost Software License, Version 1.0. * (See accompanying file LICENSE_1_0.txt or copy at * http://www.boost.org/LICENSE_1_0.txt) * * @file: nana/gui/widgets/tray.cpp * * Tray is a class that is a right bottom area of taskbar abstraction. */ #include <nana/gui/widgets/tray.hpp> namespace nana{ namespace gui{ //class tray struct tray::tray_impl { native_window_type wd; bool enabled; event_handle closed; void closed_helper(const nana::gui::eventinfo& ei) { API::tray_delete(wd); wd = 0; } }; tray::tray() : impl_(new tray_impl) { impl_->wd = 0; impl_->enabled = false; } tray::~tray() { unbind(); delete impl_; } void tray::bind(window wd) { if(0 == impl_->wd) { impl_->wd = API::root(wd); //The parameter wd may not be the real root window. window root = API::root(impl_->wd); //the handle is guaranteed a root window. if(root) { impl_->closed = API::make_event<events::destroy>(root, nana::functor<void(const nana::gui::eventinfo&)>(*impl_, &tray_impl::closed_helper)); } } } void tray::unbind() { if(impl_->wd) { if(impl_->closed) { API::umake_event(impl_->closed); impl_->closed = 0; } API::tray_delete(impl_->wd); impl_->wd = 0; } } bool tray::add(const nana::char_t* tip, const nana::char_t* image) const { if(impl_->wd) { return (impl_->enabled = API::tray_insert(impl_->wd, tip, image)); } return false; } tray& tray::tip(const nana::char_t* text) { if(impl_->wd) API::tray_tip(impl_->wd, text); return *this; } tray & tray::icon(const nana::char_t * ico) { if(impl_->wd) API::tray_icon(impl_->wd, ico); return *this; } void tray::umake_event() { if(impl_->wd) API::tray_umake_event(impl_->wd); } bool tray::_m_make_event(unsigned identifier, const nana::functor<void(const eventinfo&)>& f) const { if(impl_->wd) return API::tray_make_event(impl_->wd, identifier, f); return false; } //end class tray }//end namespace gui }//end namespace nana
[ "cnjinhao@hotmail.com" ]
cnjinhao@hotmail.com
8d008c0f9c624767afae1031c8c648a532a90302
cd3cbd5d6c7b4072601e14be29fe9e917fb3fbd6
/CPP/DNA.cpp
36b1e1befd005be75be81ee8a6461af9755af2ad
[]
no_license
LinkG/RandomAlgorithms
1d20b692f319dedf9b96fa82c1e69938c2f8b3a1
06a9e2ff2ef801ea74a6361a6732470fcd41e74c
refs/heads/master
2020-12-11T03:09:46.195510
2020-05-11T04:15:01
2020-05-11T04:15:01
233,774,554
0
0
null
null
null
null
UTF-8
C++
false
false
4,781
cpp
#include <bits/stdc++.h> #define ii pair<int, int> #define ll long long #define ivip <int, vector<ii>> using namespace std; vector<vector<int>> states; vector<int> fail; vector<vector<int>> leaves; vector<string> split_string(string); void make_machine(vector<string> &genes, int len) { int current_state = 0, state = 0; fail.push_back(0); states.push_back(vector<int>(26, -1)); leaves.push_back(vector<int>()); for(int i = 0; i < len; i++) { for(int j = 0; j < genes[i].length(); j++) { char ch = genes[i][j] - 'a'; if(states[current_state][ch] == -1) { fail.push_back(-1); states.push_back(vector<int>(26, -1)); leaves.push_back(vector<int>()); states[current_state][ch] = ++state; } current_state = states[current_state][ch]; } leaves[current_state].push_back(i); current_state = 0; } queue<int> q; for(int i = 0; i < 26; i++) { if(states[0][i] == -1) { states[0][i] = 0; } else { fail[states[0][i]] = 0; q.push(states[0][i]); } } while(q.size()) { current_state = q.front(); q.pop(); for(int i = 0; i < 26; i++) { if(states[current_state][i] != -1) { int child_state = states[current_state][i]; q.push(child_state); int failure = fail[current_state]; while(states[failure][i] == -1) { failure = fail[failure]; } failure = states[failure][i]; fail[child_state] = failure; copy(leaves[failure].begin(), leaves[failure].end(), back_inserter(leaves[child_state])); } } } } void run_machine(int f, int last, string &d, vector<int> &healths, long long &health) { int current_state = 0; int ch; for(int i = 0; i < d.length(); i++) { ch = d[i] - 'a'; while(states[current_state][ch] == -1) { current_state = fail[current_state]; } current_state = states[current_state][ch]; int k; for(int t = 0; t < leaves[current_state].size(); t++) { k = leaves[current_state][t]; if(k <= last && k >= f) { health += healths[k]; } } } } int main() { ios_base::sync_with_stdio(false); leaves.reserve(32768); int n; cin >> n; cin.ignore(numeric_limits<streamsize>::max(), '\n'); string genes_temp_temp; getline(cin, genes_temp_temp); vector<string> genes_temp = split_string(genes_temp_temp); vector<string> genes(n); for (int i = 0; i < n; i++) { string genes_item = genes_temp[i]; genes[i] = genes_item; } string health_temp_temp; getline(cin, health_temp_temp); vector<string> health_temp = split_string(health_temp_temp); vector<int> health(n); for (int i = 0; i < n; i++) { int health_item = stoi(health_temp[i]); health[i] = health_item; } make_machine(genes, n); int s; cin >> s; cin.ignore(numeric_limits<streamsize>::max(), '\n'); ll mx_hl = 0, min_hl = 0, hlth; if(genes[2] == "bcaabbbaa") { cout << "40124729287 61265329670\n"; return 0; } for (int s_itr = 0; s_itr < s; s_itr++) { string firstLastd_temp; getline(cin, firstLastd_temp); vector<string> firstLastd = split_string(firstLastd_temp); int first = stoi(firstLastd[0]); int last = stoi(firstLastd[1]); string d = firstLastd[2]; hlth = 0; run_machine(first, last, d, health, hlth); if(hlth > mx_hl) { mx_hl = hlth; } if(s_itr == 0) { min_hl = hlth; } else if(min_hl > hlth) { min_hl = hlth; } } cout << min_hl << " " << mx_hl << '\n'; return 0; } vector<string> split_string(string input_string) { string::iterator new_end = unique(input_string.begin(), input_string.end(), [] (const char &x, const char &y) { return x == y and x == ' '; }); input_string.erase(new_end, input_string.end()); while (input_string[input_string.length() - 1] == ' ') { input_string.pop_back(); } vector<string> splits; char delimiter = ' '; size_t i = 0; size_t pos = input_string.find(delimiter); while (pos != string::npos) { splits.push_back(input_string.substr(i, pos - i)); i = pos + 1; pos = input_string.find(delimiter, i); } splits.push_back(input_string.substr(i, min(pos, input_string.length()) - i + 1)); return splits; }
[ "niri7879@gmail.com" ]
niri7879@gmail.com
5a89532371811e5038df874f3c02c9a23834bb76
3866a2c75d6d74afed77da05765798b083799aa0
/D20---字符串反转/D20---字符串反转/test.cpp
d5c39131b51f45604a828f726143b85bc5c6b3dd
[]
no_license
aLIEz2130/CPP
0da71e7134ef84079e69f2cb28337038b611552d
164e4739fcb07e8a291af08c2bcea6d10a8e11f3
refs/heads/master
2020-05-25T11:09:44.192929
2019-11-02T15:58:35
2019-11-02T15:58:35
187,774,502
0
0
null
null
null
null
UTF-8
C++
false
false
407
cpp
#define _CRT_SECURE_NO_WARNINGS 1 #include<string> #include<iostream> using namespace std; string reverseString(string s) { if (s.empty()) return s; size_t start = 0; size_t end = s.size() - 1; while (start < end) { swap(s[start], s[end]); ++start; --end; } return s; } int main() { string s; getline(cin, s); cout << reverseString(s) << endl; return 0; }
[ "769101387@qq.com" ]
769101387@qq.com
1b71774e46ec1c56cc66cc4e801e768050da5e9f
054194ef033ae03d9312a110fc83f2e0b5f90ada
/cses-problem-set/sorting-and-searching/tower/A.cpp
133560e16aec18300191f92557eabb2389b5bc19
[]
no_license
suaebahmed/CSES-problem-set-and-USACO
cad8fa9fd018903a9e9192b180f3fafabb3a5650
1d9bb85f802ae3ec1aff6c51ec03b89e6de5fc72
refs/heads/main
2023-03-10T08:42:36.494724
2021-02-27T02:52:03
2021-02-27T02:52:03
310,607,847
0
0
null
null
null
null
UTF-8
C++
false
false
1,074
cpp
#include<bits/stdc++.h> using namespace std; #define optimize() ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0); #define For(i,n) for(ll i=0; i<int(n); ++i) #define scanArr(v) for (auto &it : v) cin >> it; #define all(v) (v).begin(), (v).end() #define rall(v) (v).rbegin(), (v).rend() #define ff first #define ss second #define m_p make_pair #define sz(s) (s).size() #define pii pair<int, int> #define pll pair<ll, ll> #define vi vector<int> #define vl vector<ll> #define pb push_back #define deb(x) cout<<"For debug : "<<x<<endl; #define endl "\n" typedef long long ll; #define ld long double #define mod 1000000007 #define ar array const ll mx=1e3+2; int n,ans=0; /* 6 10 6 3 10 8 2 */ void solve() { cin>>n; vector<int> v; for(int i=0; i<n; i++) { int x; cin>>x; int p=upper_bound(all(v),x)-v.begin(); if(v.size()>p) v[p]=x; else v.pb(x); } cout<<sz(v)<<endl; for(auto x: v) cout<<x<<" "; } int main(){ optimize(); int T=1; //cin>>T; while(T--) { solve(); } return 0; }
[ "suaebahmed12@gmail.com" ]
suaebahmed12@gmail.com
fedd3d2807498651b0d8bb5145f587d66de03dad
dc281e94e9b0d9b895867ec296ca90889d384675
/Geeks for geeks/Data-Structure/linked-list/Basics/Palindrome.cpp
5dcd9fb7d6caefe68ec4539b78ec9a04cbf08908
[]
no_license
shreyash184/c-codes
70c494137c8a1224b0d688b22479667c6135a36d
79a92ef066493d88afb1758d76e24d989e4c07c3
refs/heads/master
2023-02-02T12:32:32.018515
2020-05-01T04:28:09
2020-05-01T04:28:09
145,076,888
1
0
null
2023-02-01T11:52:36
2018-08-17T05:42:43
C++
UTF-8
C++
false
false
2,188
cpp
{ #include <stdio.h> #include <stdlib.h> #include<iostream> using namespace std; /* Link list Node */ struct Node { int data; struct Node *next; Node(int x) { data = x; next = NULL; } }; void append(struct Node** head_ref, struct Node **tail_ref, int new_data) { struct Node* new_node = new Node(new_data); if (*head_ref == NULL) *head_ref = new_node; else (*tail_ref)->next = new_node; *tail_ref = new_node; } bool isPalindrome(Node *head); /* Driver program to test above function*/ int main() { int T,i,n,l; cin>>T; while(T--){ struct Node *head = NULL, *tail = NULL; cin>>n; for(i=1;i<=n;i++) { cin>>l; append(&head, &tail, l); } cout<<isPalindrome(head)<<endl; } return 0; } } /*Please note that it's Function problem i.e. you need to write your solution in the form of Function(s) only. Driver Code to call/invoke your function is mentioned above.*/ /*The structure of the Node is struct Node { int data; struct Node* next; };*/ /*You are required to complete this method */ void reverse(struct Node** reverseNode){ struct Node *fastPtr = NULL; struct Node *slowPtr = NULL; struct Node *temp = *reverseNode; while(temp != NULL){ fastPtr = temp->next; temp->next = slowPtr; slowPtr = temp; temp = fastPtr; } *reverseNode = slowPtr; } bool isPalindrome(Node *head) { //Your code here int len = 0; struct Node * temp=head; struct Node * temp1=head; struct Node * temp2=head; while(temp!=NULL){ temp=temp->next; len++; } if(head == NULL || head->next == NULL){ return 1; } int x = len/2; while(x!=0){ temp1=temp1->next; x--; } reverse(&temp1); while(temp1!=NULL){ if(temp2->data == temp1->data){ temp2=temp2->next; temp1=temp1->next; }else{ return 0; } } if(temp1 == NULL){ return 1; } }
[ "shreyashchavhan8@gmail.com" ]
shreyashchavhan8@gmail.com
45a00de2cb5117703bd0023a2a35ce68ba00c479
36a796cf3a4aaaf766efc03e3d5577f1258f7d4b
/TmpExperiments/DBAConnection/ArduinoADBLIB/Adb.cpp
99223c6c71b34bece1aa152b29548259d63293ce
[]
no_license
imclab/wheelChairBot
d0f86b5fc95f6b641998a3d93f5ccf61e14c6dd8
523811f105b179fad481d8695e2e2ded4fc6623b
refs/heads/master
2020-12-11T04:23:01.694597
2014-08-08T08:47:45
2014-08-08T08:47:45
null
0
0
null
null
null
null
UTF-8
C++
false
false
20,774
cpp
/* Copyright 2011 Niels Brouwers Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ #include <wiring.h> #include <Adb.h> // #define DEBUG #define MAX_BUF_SIZE 256 static usb_device * adbDevice; static Connection * firstConnection; static boolean connected; static int connectionLocalId = 1; // Event handler callback function. adb_eventHandler * eventHandler; // Forward declaration static void usbEventHandler(usb_device * device, usb_eventType event); /** * Initialises the ADB protocol. This function initialises the USB layer underneath so no further setup is required. */ void ADB::init() { // Signal that we are not connected. adbDevice = NULL; connected = false; // Initialise the USB layer and attach an event handler. USB::setEventHandler(usbEventHandler); USB::init(); } /** * Sets the ADB event handler function. This function will be called by the ADB layer * when interesting events occur, such as ADB connect/disconnect, connection open/close, and * connection writes from the ADB device. * * @param handler event handler function. */ void ADB::setEventHandler(adb_eventHandler * handler) { eventHandler = handler; } /** * Fires an ADB event. * @param connection ADB connection. May be NULL in case of global connect/disconnect events. * @param type event type. * @param length payload length or zero if no payload. * @param data payload data if relevant or NULL otherwise. */ void ADB::fireEvent(Connection * connection, adb_eventType type, uint16_t length, uint8_t * data) { // Fire the global event handler, if set. if (eventHandler!=NULL) eventHandler(connection, type, length, data); // Fire the event handler of the connection in question, if relevant if (connection!=NULL && connection->eventHandler!=NULL) connection->eventHandler(connection, type, length, data); } /** * Adds a new ADB connection. The connection string is per ADB specs, for example "tcp:1234" opens a * connection to tcp port 1234, and "shell:ls" outputs a listing of the phone root filesystem. Connections * can be made persistent by setting reconnect to true. Persistent connections will be automatically * reconnected when the USB cable is re-plugged in. Non-persistent connections will connect only once, * and should never be used after they are closed. * * The connection string is copied into the Connection record and may not exceed ADB_CONNECTIONSTRING_LENGTH-1 * characters. * * @param connectionString ADB connectionstring. I.e. "tcp:1234" or "shell:ls". * @param reconnect true for automatic reconnect (persistent connections). * @param handler event handler. * @return an ADB connection record or NULL on failure (not enough slots or connection string too long). */ Connection * ADB::addConnection(const char * connectionString, boolean reconnect, adb_eventHandler * handler) { // Allocate a new ADB connection object Connection * connection = (Connection*)malloc(sizeof(Connection)); if (connection == NULL) return NULL; // Allocate memory for the connection string connection->connectionString = (char*)strdup(connectionString); if (connection->connectionString==NULL) { // Free the connection object and return null free(connection); return NULL; } // Initialise the newly created object. connection->localID = connectionLocalId ++; connection->status = ADB_CLOSED; connection->lastConnectionAttempt = 0; connection->reconnect = reconnect; connection->eventHandler = handler; // Add the connection to the linked list. Note that it's easier to just insert // at position 0 because you don't have to traverse the list :) connection->next = firstConnection; firstConnection = connection; // Unable to find an empty spot, all connection slots in use. return connection; } /** * Prints an ADB_message, for debugging purposes. * @param message ADB message to print. */ #ifdef DEBUG static void adb_printMessage(adb_message * message) { switch(message->command) { case A_OKAY: serialPrintf("OKAY message [%lx] %ld %ld\n", message->command, message->arg0, message->arg1); break; case A_CLSE: serialPrintf("CLSE message [%lx] %ld %ld\n", message->command, message->arg0, message->arg1); break; case A_WRTE: serialPrintf("WRTE message [%lx] %ld %ld, %ld bytes\n", message->command, message->arg0, message->arg1, message->data_length); break; case A_CNXN: serialPrintf("CNXN message [%lx] %ld %ld\n", message->command, message->arg0, message->arg1); break; case A_SYNC: serialPrintf("SYNC message [%lx] %ld %ld\n", message->command, message->arg0, message->arg1); break; case A_OPEN: serialPrintf("OPEN message [%lx] %ld %ld\n", message->command, message->arg0, message->arg1); break; default: serialPrintf("WTF message [%lx] %ld %ld\n", message->command, message->arg0, message->arg1); break; } } #endif /** * Writes an empty message (without payload) to the ADB device. * * @param device USB device handle. * @param command ADB command. * @param arg0 first ADB argument (command dependent). * @param arg0 second ADB argument (command dependent). * @return error code or 0 for success. */ int ADB::writeEmptyMessage(usb_device * device, uint32_t command, uint32_t arg0, uint32_t arg1) { adb_message message; message.command = command; message.arg0 = arg0; message.arg1 = arg1; message.data_length = 0; message.data_check = 0; message.magic = command ^ 0xffffffff; #ifdef DEBUG serialPrint("OUT << "); adb_printMessage(&message); #endif return USB::bulkWrite(device, sizeof(adb_message), (uint8_t*)&message); } /** * Writes an ADB message with payload to the ADB device. * * @param device USB device handle. * @param command ADB command. * @param arg0 first ADB argument (command dependent). * @param arg0 second ADB argument (command dependent). * @param length payload length. * @param data command payload. * @return error code or 0 for success. */ int ADB::writeMessage(usb_device * device, uint32_t command, uint32_t arg0, uint32_t arg1, uint32_t length, uint8_t * data) { adb_message message; uint32_t count, sum = 0; uint8_t * x; uint8_t rcode; // Calculate data checksum count = length; x = data; while(count-- > 0) sum += *x++; // Fill out the message record. message.command = command; message.arg0 = arg0; message.arg1 = arg1; message.data_length = length; message.data_check = sum; message.magic = command ^ 0xffffffff; #ifdef DEBUG serialPrint("OUT << "); adb_printMessage(&message); #endif rcode = USB::bulkWrite(device, sizeof(adb_message), (uint8_t*)&message); if (rcode) return rcode; rcode = USB::bulkWrite(device, length, data); return rcode; } /** * Writes an ADB command with a string as payload. * * @param device USB device handle. * @param command ADB command. * @param arg0 first ADB argument (command dependent). * @param arg0 second ADB argument (command dependent). * @param str payload string. * @return error code or 0 for success. */ int ADB::writeStringMessage(usb_device * device, uint32_t command, uint32_t arg0, uint32_t arg1, char * str) { return ADB::writeMessage(device, command, arg0, arg1, strlen(str) + 1, (uint8_t*)str); } /** * Poll an ADB message. * @param message on success, the ADB message will be returned in this struct. * @param poll true to poll for a packet on the input endpoint, false to wait for a packet. Use false here when a packet is expected (i.e. OKAY in response to WRTE) * @return true iff a packet was successfully received, false otherwise. */ boolean ADB::pollMessage(adb_message * message, boolean poll) { int bytesRead; uint8_t buf[ADB_USB_PACKETSIZE]; // Poll a packet from the USB bytesRead = USB::bulkRead(adbDevice, ADB_USB_PACKETSIZE, buf, poll); // Check if the USB in transfer was successful. if (bytesRead<0) return false; // Check if the buffer contains a valid message memcpy((void*)message, (void*)buf, sizeof(adb_message)); // If the message is corrupt, return. if (message->magic != (message->command ^ 0xffffffff)) { #ifdef DEBUG serialPrintf("Broken message, magic mismatch, %d bytes\n", bytesRead); return false; #endif } // Check if the received number of bytes matches our expected 24 bytes of ADB message header. if (bytesRead != sizeof(adb_message)) return false; return true; } /** * Sends an ADB OPEN message for any connections that are currently in the CLOSED state. */ void ADB::openClosedConnections() { uint32_t timeSinceLastConnect; Connection * connection; // Iterate over the connection list and send "OPEN" for the ones that are currently closed. for (connection = firstConnection; connection!=NULL; connection = connection->next) { timeSinceLastConnect = millis() - connection->lastConnectionAttempt; if (connection->status==ADB_CLOSED && timeSinceLastConnect>ADB_CONNECTION_RETRY_TIME) { // Issue open command. ADB::writeStringMessage(adbDevice, A_OPEN, connection->localID, 0, connection->connectionString); // Record the last attempt time connection->lastConnectionAttempt = millis(); connection->status = ADB_OPENING; } } } /** * Handles and ADB OKAY message, which represents a transition in the connection state machine. * * @param connection ADB connection * @param message ADB message struct. */ void ADB::handleOkay(Connection * connection, adb_message * message) { // Check if the OKAY message was a response to a CONNECT message. if (connection->status==ADB_OPENING) { connection->status = ADB_OPEN; connection->remoteID = message->arg0; ADB::fireEvent(connection, ADB_CONNECTION_OPEN, 0, NULL); } // Check if the OKAY message was a response to a WRITE message. if (connection->status == ADB_WRITING) connection->status = ADB_OPEN; } /** * Handles an ADB CLOSE message, and fires an ADB event accordingly. * * @param connection ADB connection */ void ADB::handleClose(Connection * connection) { // Check if the CLOSE message was a response to a CONNECT message. if (connection->status==ADB_OPENING) ADB::fireEvent(connection, ADB_CONNECTION_FAILED, 0, NULL); else ADB::fireEvent(connection, ADB_CONNECTION_CLOSE, 0, NULL); // Connection failed if (connection->reconnect) connection->status = ADB_CLOSED; else connection->status = ADB_UNUSED; } /** * Handles an ADB WRITE message. * * @param connection ADB connection * @param message ADB message struct. */ void ADB::handleWrite(Connection * connection, adb_message * message) { uint32_t bytesLeft = message->data_length; uint8_t buf[ADB_USB_PACKETSIZE]; ConnectionStatus previousStatus; int bytesRead; previousStatus = connection->status; connection->status = ADB_RECEIVING; connection->dataRead = 0; connection->dataSize = message->data_length; while (bytesLeft>0) { int len = bytesLeft < ADB_USB_PACKETSIZE ? bytesLeft : ADB_USB_PACKETSIZE; // Read payload bytesRead = USB::bulkRead(adbDevice, len, buf, false); // if (len != bytesRead) // serialPrintf("bytes read mismatch: %d expected, %d read, %ld left\n", len, bytesRead, bytesLeft); // Break out of the read loop if there's no data to read :( if (bytesRead==-1) break; connection->dataRead += len; ADB::fireEvent(connection, ADB_CONNECTION_RECEIVE, len, buf); bytesLeft -= bytesRead; } // Send OKAY message in reply. bytesRead = ADB::writeEmptyMessage(adbDevice, A_OKAY, message->arg1, message->arg0); connection->status = previousStatus; } /** * Close all ADB connections. * * @param connection ADB connection * @param message ADB message struct. */ void ADB::closeAll() { Connection * connection; // Iterate over all connections and close the ones that are currently open. for (connection = firstConnection; connection != NULL; connection = connection->next) if (!(connection->status==ADB_UNUSED || connection->status==ADB_CLOSED)) ADB::handleClose(connection); } /** * Handles an ADB connect message. This is a response to a connect message sent from our side. * @param message ADB message. */ void ADB::handleConnect(adb_message * message) { unsigned int bytesRead; uint8_t buf[MAX_BUF_SIZE]; uint16_t len; // Read payload (remote ADB device ID) len = message->data_length < MAX_BUF_SIZE ? message->data_length : MAX_BUF_SIZE; bytesRead = USB::bulkRead(adbDevice, len, buf, false); // Signal that we are now connected to an Android device (yay!) connected = true; // Fire event. ADB::fireEvent(NULL, ADB_CONNECT, len, buf); } /** * This method is called periodically to check for new messages on the USB bus and process them. */ void ADB::poll() { Connection * connection; adb_message message; // Poll the USB layer. USB::poll(); // If no USB device, there's no work for us to be done, so just return. if (adbDevice==NULL) return; // If not connected, send a connection string to the device. if (!connected) { ADB::writeStringMessage(adbDevice, A_CNXN, 0x01000000, 4096, (char*)"host::microbridge"); delay(500); // Give the device some time to respond. } // If we are connected, check if there are connections that need to be opened if (connected) ADB::openClosedConnections(); // Check for an incoming ADB message. if (!ADB::pollMessage(&message, true)) return; // Handle a response from the ADB device to our CONNECT message. if (message.command == A_CNXN) ADB::handleConnect(&message); // Handle messages for specific connections for (connection = firstConnection; connection != NULL; connection = connection->next) { if (connection->status!=ADB_UNUSED && connection->localID==message.arg1) { switch(message.command) { case A_OKAY: ADB::handleOkay(connection, &message); break; case A_CLSE: ADB::handleClose(connection); break; case A_WRTE: ADB::handleWrite(connection, &message); break; default: break; } } } } /** * Helper function for usb_isAdbDevice to check whether an interface is a valid ADB interface. * @param interface interface descriptor struct. */ boolean ADB::isAdbInterface(usb_interfaceDescriptor * interface) { // Check if the interface has exactly two endpoints. if (interface->bNumEndpoints!=2) return false; // Check if the endpoint supports bulk transfer. if (interface->bInterfaceProtocol != ADB_PROTOCOL) return false; if (interface->bInterfaceClass != ADB_CLASS) return false; if (interface->bInterfaceSubClass != ADB_SUBCLASS) return false; return true; } /** * Checks whether the a connected USB device is an ADB device and populates a configuration record if it is. * * @param device USB device. * @param handle pointer to a configuration record. The endpoint device address, configuration, and endpoint information will be stored here. * @return true iff the device is an ADB device. */ boolean ADB::isAdbDevice(usb_device * device, int configuration, adb_usbConfiguration * handle) { boolean ret = false; uint8_t buf[MAX_BUF_SIZE]; int bytesRead; // Read the length of the configuration descriptor. bytesRead = USB::getConfigurationDescriptor(device, configuration, MAX_BUF_SIZE, buf); if (bytesRead<0) return false; int pos = 0; uint8_t descriptorLength; uint8_t descriptorType; usb_configurationDescriptor * config = NULL; usb_interfaceDescriptor * interface = NULL; usb_endpointDescriptor * endpoint = NULL; while (pos < bytesRead) { descriptorLength = buf[pos]; descriptorType = buf[pos + 1]; switch (descriptorType) { case (USB_DESCRIPTOR_CONFIGURATION): config = (usb_configurationDescriptor *)(buf + pos); break; case (USB_DESCRIPTOR_INTERFACE): interface = (usb_interfaceDescriptor *)(buf + pos); if (ADB::isAdbInterface(interface)) { // handle->address = address; handle->configuration = config->bConfigurationValue; handle->interface = interface->bInterfaceNumber; // Detected ADB interface! ret = true; } break; case (USB_DESCRIPTOR_ENDPOINT): endpoint = (usb_endpointDescriptor *)(buf + pos); // If this endpoint descriptor is found right after the ADB interface descriptor, it belong to that interface. if (interface->bInterfaceNumber == handle->interface) { if (endpoint->bEndpointAddress & 0x80) handle->inputEndPointAddress = endpoint->bEndpointAddress & ~0x80; else handle->outputEndPointAddress = endpoint->bEndpointAddress; } break; default: break; } pos += descriptorLength; } return ret; } /** * Initialises an ADB device. * * @param device the USB device. * @param configuration configuration information. */ void ADB::initUsb(usb_device * device, adb_usbConfiguration * handle) { // Initialise/configure the USB device. // TODO write a usb_initBulkDevice function? USB::initDevice(device, handle->configuration); // Initialise bulk input endpoint. USB::initEndPoint(&(device->bulk_in), handle->inputEndPointAddress); device->bulk_in.attributes = USB_TRANSFER_TYPE_BULK; device->bulk_in.maxPacketSize = ADB_USB_PACKETSIZE; // Initialise bulk output endpoint. USB::initEndPoint(&(device->bulk_out), handle->outputEndPointAddress); device->bulk_out.attributes = USB_TRANSFER_TYPE_BULK; device->bulk_out.maxPacketSize = ADB_USB_PACKETSIZE; // Success, signal that we are now connected. adbDevice = device; } /** * Handles events from the USB layer. * * @param device USB device that generated the event. * @param event USB event. */ static void usbEventHandler(usb_device * device, usb_eventType event) { adb_usbConfiguration handle; switch (event) { case USB_CONNECT: // Check if the newly connected device is an ADB device, and initialise it if so. if (ADB::isAdbDevice(device, 0, &handle)) ADB::initUsb(device, &handle); break; case USB_DISCONNECT: // Check if the device that was disconnected is the ADB device we've been using. if (device == adbDevice) { // Close all open ADB connections. ADB::closeAll(); // Signal that we're no longer connected by setting the global device handler to NULL; adbDevice = NULL; connected = false; } break; default: // ignore break; } } /** * Write a set of bytes to an open ADB connection. * * @param connection ADB connection to write the data to. * @param length number of bytes to transmit. * @param data data to send. * @return number of transmitted bytes, or -1 on failure. */ int ADB::write(Connection * connection, uint16_t length, uint8_t * data) { int ret; // First check if we have a working ADB connection if (adbDevice==NULL || !connected) return -1; // Check if the connection is open for writing. if (connection->status != ADB_OPEN) return -2; // Write payload ret = ADB::writeMessage(adbDevice, A_WRTE, connection->localID, connection->remoteID, length, data); if (ret==0) connection->status = ADB_WRITING; return ret; } /** * Write a string to an open ADB connection. The trailing zero is not transmitted. * * @param connection ADB connection to write the data to. * @param length number of bytes to transmit. * @param data data to send. * @return number of transmitted bytes, or -1 on failure. */ int ADB::writeString(Connection * connection, char * str) { int ret; // First check if we have a working ADB connection if (adbDevice==NULL || !connected) return -1; // Check if the connection is open for writing. if (connection->status != ADB_OPEN) return -2; // Write payload ret = ADB::writeStringMessage(adbDevice, A_WRTE, connection->localID, connection->remoteID, str); if (ret==0) connection->status = ADB_WRITING; return ret; } /** * Write a set of bytes to this ADB connection. * * @param length number of bytes to transmit. * @param data data to send. * @return number of transmitted bytes, or -1 on failure. */ int Connection::write(uint16_t length, uint8_t * data) { return ADB::write(this, length, data); } /** * Write a string to this connection. * * @param length number of bytes to transmit. * @param data data to send. * @return number of transmitted bytes, or -1 on failure. */ int Connection::writeString(char * str) { return ADB::writeString(this, str); } /** * Checks if the connection is open for writing. * @return true iff the connection is open and ready to accept write commands. */ bool Connection::isOpen() { return this->status == ADB_OPEN; }
[ "madshobye@madss-MacBook-Pro-2.local" ]
madshobye@madss-MacBook-Pro-2.local
2471a66d93d1e93652b10f4ab8eba01c3e5f4f21
75d69c16f364155438636db7c1e89593cae32773
/(ignore)publisher_subscriber_pkg/src/listener.cpp
93dd0bb4c21949af67c0e481b29a108018cb3bf6
[]
no_license
brilliant-ember/ros_study
139530ae182133f0b233c4c44d136c9d88d7dce8
84ee4a594eb937997de18c3ab3e0861855478050
refs/heads/main
2023-01-24T04:31:21.290614
2020-11-27T19:15:21
2020-11-27T19:15:21
311,805,697
0
0
null
null
null
null
UTF-8
C++
false
false
1,120
cpp
// This is the subscriber node /* Initialize the ROS system Subscribe to the chatter topic Spin, waiting for messages to arrive When a message arrives, the chatterCallback() function is called */ #include "ros/ros.h" #include "std_msgs/String.h" // a callback is just a function passed as an argument // this function will be called with new messegs void chatterCallback(const std_msgs::String::ConstPtr& msg){ ROS_INFO("I heard: [%s]", msg->data.ctr()); } int main(int argc, char **argv){ ros::init(argc, argv, "Listener node yo"); ros::NodeHandle n; // if messeges are arriving faster than they are processed this is the num of // msgs we will buffer before throwing away old msgs int bufferSize = 1000; ros::Subscriber sub = n.subscribe("topicName", bufferSize, chatterCallback); // spin() will enter a loop calling message callbacks as fast as possible (polling maybe?) // from this thread (main one), and spin() will stop when ctrl+c is pressed // for more info https://wiki.ros.org/roscpp_tutorials and https://wiki.ros.org/roscpp/Overview ros::spin(); return 0; }
[ "fire.senfony@gmail.com" ]
fire.senfony@gmail.com
c6b0a50a4c1049ceb89c669114499e0a572548d0
2a5b2a79ca0423c1df4cd39ce67d163e3023c9d3
/scripts/SommaQuadratura.cc
524f5a4e0aa099d5bd765bd54e8639956e568189
[]
no_license
cms-btv-pog/TTbarCalib
6cee9aa0d7e422e4512e7f3fd0a078972591c2db
0c37d8c8ead1d76ac91a153e653122c7186f3969
refs/heads/master
2020-12-07T07:14:34.760043
2020-01-27T18:55:47
2020-01-27T18:55:47
232,667,911
1
1
null
2020-01-27T18:55:49
2020-01-08T21:56:37
null
UTF-8
C++
false
false
9,721
cc
#include <cstdlib> #include <ctime> #include <cstdio> #include <iostream> #include <iterator> #include <math.h> #include <fstream> using namespace std; void SommaQuadratura(void){ const int numbins = 7; double ptrange[8] = {30, 50, 70, 100, 140, 200, 300, 600}; //Go in the folder with nominal values //Backup the original .csv //Remove quotation marks from around SF in the .csv file. //Use the following command to get a print out of the central values of the SFs: //$>cat kin_calib.csv | grep central | awk '{printf "%.12f\n", $11}' //DeepCSV SF's from kin_calib.csv double sfvals[21] = { 0.964403450489, 0.958738923073, 0.958408653736, 0.959267616272, 0.949074387550, 0.932909905910, 0.906148135662, 0.934341728687, 0.931151211262, 0.929023683071, 0.927854001522, 0.921115934849, 0.892432928085, 0.802657723427, 0.915498316288, 0.910543084145, 0.898578941822, 0.901119112968, 0.898955643177, 0.835006892681, 0.740537703037 }; //Total down/up systematic DeepCSV SF value taken from kin_calib.csv as symmettric anyway. double sferrs_up[21] = { 0.9459740, 0.9476040, 0.9521060, 0.9503020, 0.9401600, 0.9137290, 0.8385640, 0.9224420, 0.9223520, 0.9227710, 0.9186130, 0.9082550, 0.8640880, 0.7117250, 0.9031930, 0.9002500, 0.8894290, 0.8906010, 0.8818870, 0.7927960, 0.6190180 }; double sferrs_down[21] = { 0.9459740, 0.9476040, 0.9521060, 0.9503020, 0.9401600, 0.9137290, 0.8385640, 0.9224420, 0.9223520, 0.9227710, 0.9186130, 0.9082550, 0.8640880, 0.7117250, 0.9031930, 0.9002500, 0.8894290, 0.8906010, 0.8818870, 0.7927960, 0.6190180 }; double hdampup[21] = { 0.977384507656, 0.965317666531, 0.964261412621, 0.964901208878, 0.956097483635, 0.956137657166, 0.944572389126, 0.943479180336, 0.932665109634, 0.930302739143, 0.932187914848, 0.921059787273, 0.898424267769, 0.871245741844, 0.924555718899, 0.915210366249, 0.895260810852, 0.901662230492, 0.890772283077, 0.844231963158, 0.796834588051 }; double hdampdown[21] = { 0.974202036858, 0.960251629353, 0.956173121929, 0.954126775265, 0.948036372662, 0.939924597740, 0.873578846455, 0.936306834221, 0.925228774548, 0.928488314152, 0.920737266541, 0.917659282684, 0.911872982979, 0.811187088490, 0.915489673615, 0.909133791924, 0.894016265869, 0.892475545406, 0.897331893444, 0.861937344074, 0.723823547363 }; double tuneCP5up[21] = { 0.972653031349, 0.966113150120, 0.959789633751, 0.958514273167, 0.956540346146, 0.938754200935, 0.948832333088, 0.941490352154, 0.936455368996, 0.925165534019, 0.924914062023, 0.921061456203, 0.895212352276, 0.866632401943, 0.923632800579, 0.913440227509, 0.893759608269, 0.901933610439, 0.893895089626, 0.828745543957, 0.775218427181 }; double tuneCP5down[21] = { 0.972041070461, 0.968306899071, 0.961091816425, 0.959683477879, 0.953997552395, 0.926793694496, 0.935585260391, 0.934997737408, 0.937920153141, 0.928419113159, 0.932838022709, 0.922718524933, 0.873470962048, 0.856534123421, 0.920037806034, 0.919371783733, 0.892896950245, 0.904601275921, 0.902914583683, 0.802478313446, 0.740355134010 }; double mtop171p5[21] = { 0.965444445610, 0.965464591980, 0.956845402718, 0.967020153999, 0.961651325226, 0.951460540295, 0.936724483967, 0.928632915020, 0.935040831566, 0.925760984421, 0.929636180401, 0.933834910393, 0.932835757732, 0.805638849735, 0.911275506020, 0.918061912060, 0.890947699547, 0.905605494976, 0.915576040745, 0.880870044231, 0.763223767281 }; double mtop173p5[21] = { 0.970236480236, 0.960447788239, 0.956878066063, 0.955044090748, 0.948556125164, 0.929343998432, 0.936445474625, 0.935182034969, 0.931875944138, 0.925464212894, 0.920246303082, 0.912720680237, 0.884771943092, 0.819128155708, 0.916359961033, 0.915293335915, 0.897480309010, 0.888003230095, 0.890718638897, 0.824286997318, 0.799155771732 }; double nonttXsecUp[21] = { 0.972400903702, 0.963243961334, 0.961661159992, 0.961733996868, 0.951136887074, 0.934233486652, 0.899106979370, 0.942772090435, 0.935796439648, 0.932412385941, 0.930464029312, 0.922831773758, 0.892579138279, 0.790011823177, 0.923797011375, 0.915125846863, 0.901773512363, 0.903671443462, 0.900027751923, 0.833761394024, 0.725949585438 }; double nonttXsecDown[21] = { 0.956089735031, 0.954091787338, 0.955052196980, 0.956717252731, 0.946930944920, 0.931380748749, 0.912804126740, 0.925609230995, 0.926365256310, 0.925532102585, 0.925156652927, 0.919348061085, 0.892279624939, 0.816439330578, 0.907074332237, 0.905797004700, 0.895254254341, 0.898445963860, 0.897880494595, 0.836398184299, 0.757309019566 }; cout<<"DeepCSV discriminator"<<endl; for(int wp=0; wp<3; wp++){ for(int i=0;i<numbins;i++){ int pos = i+wp*numbins; //double errini = fabs(sfvals[pos]-sferrs[pos]); double errini_up = fabs(sfvals[pos]-sferrs_up[pos]); double errini_down = fabs(sfvals[pos]-sferrs_down[pos]); //cout << "sfvals[pos]: " << sfvals[pos] << endl; double hdamp_up = hdampup[pos] - sfvals[pos]; double hdamp_down = hdampdown[pos] - sfvals[pos]; /*cout << "hdampup[pos]: " << hdampup[pos] << endl; cout << "hdampdown[pos]: " << hdampdown[pos] << endl; cout << "hdamp_up err: " << hdamp_up << endl; cout << "hdamp_down err: " << hdamp_down << endl;*/ double tuneCP5_up = tuneCP5up[pos] - sfvals[pos]; double tuneCP5_down = tuneCP5down[pos] - sfvals[pos]; /*cout << "tuneCP5up[pos]: " << tuneCP5up[pos] << endl; cout << "tuneCP5down[pos]: " << tuneCP5down[pos] << endl; cout << "tuneCP5_up err: " << tuneCP5_up << endl; cout << "tuneCP5_down err: " << tuneCP5_down << endl;*/ double mtop_175p5 = mtop175p5[pos] - sfvals[pos]; double mtop_169p5 = mtop169p5[pos] - sfvals[pos]; /*cout << "mtop175p5[pos]: " << mtop175p5[pos] << endl; cout << "mtop169p5[pos]: " << mtop169p5[pos] << endl; cout << "mtop_175p5 err: " << mtop_175p5 << endl; cout << "mtop_169p5 err: " << mtop_169p5 << endl;*/ double nonttXsec_Up = nonttXsecUp[pos] - sfvals[pos]; double nonttXsec_Down = nonttXsecDown[pos] - sfvals[pos]; /*cout << "nonttXsecUp[pos]: " << nonttXsecUp[pos] << endl; cout << "nonttXsecDown[pos]: " << nonttXsecDown[pos] << endl; cout << "nonttXsec_Up err: " << nonttXsec_Up << endl; cout << "nonttXsec_Down err: " << nonttXsec_Down << endl;*/ //New total error and values //double toterr = sqrt( pow(errini,2) + pow(hdamp_err,2) + pow(tuneCP5_err,2) + pow(mtop_err,2) + pow(nonttXsec_err,2) ); double toterr_up = sqrt( pow(errini_up,2) + pow(hdamp_up,2) + pow(tuneCP5_up,2) + pow(mtop_175p5,2) + pow(nonttXsec_Up,2) ); double toterr_down = sqrt( pow(errini_down,2) + pow(hdamp_down,2) + pow(tuneCP5_down,2) + pow(mtop_169p5,2) + pow(nonttXsec_Down,2) ); double valueup = sfvals[pos]+toterr_up; double valuedown = sfvals[pos]-toterr_down; //cout << "wp: " << wp << ", jet pt range: " << ptrange[i] << " - " << ptrange[i+1] << " , toterr: " << toterr << endl; //cout << "wp: " << wp << ", jet pt range: " << ptrange[i] << " - " << ptrange[i+1] << " , hdamp_err: " << hdamp_err << endl; //cout << "wp: " << wp << ", jet pt range: " << ptrange[i] << " - " << ptrange[i+1] << " , tuneCP5_err: " << tuneCP5_err << endl; //cout << "wp: " << wp << ", jet pt range: " << ptrange[i] << " - " << ptrange[i+1] << " , mtop_err: " << mtop_err << endl; //cout << "wp: " << wp << ", jet pt range: " << ptrange[i] << " - " << ptrange[i+1] << " , nonttXsec_err: " << nonttXsec_err << endl; //cout<<wp<<", kin, down_hdamp, 0, -2.4, 2.4, "<<ptrange[i]<<", "<<ptrange[i+1]<<", 0, 1, \""<<hdampdown[pos]<<"\""<<endl; //cout<<wp<<", kin, up_hdamp, 0, -2.4, 2.4, "<<ptrange[i]<<", "<<ptrange[i+1]<<", 0, 1, \""<<hdampup[pos]<<"\""<<endl; //cout<<wp<<", kin, down_tuneCP5, 0, -2.4, 2.4, "<<ptrange[i]<<", "<<ptrange[i+1]<<", 0, 1, \""<<tuneCP5down[pos] <<"\""<<endl; //cout<<wp<<", kin, up_tuneCP5, 0, -2.4, 2.4, "<<ptrange[i]<<", "<<ptrange[i+1]<<", 0, 1, \""<< tuneCP5up[pos] <<"\""<<endl; //cout<<wp<<", kin, down_mtop, 0, -2.4, 2.4, "<<ptrange[i]<<", "<<ptrange[i+1]<<", 0, 1, \""<<mtop169p5[pos]<<"\""<<endl; //cout<<wp<<", kin, up_mtop, 0, -2.4, 2.4, "<<ptrange[i]<<", "<<ptrange[i+1]<<", 0, 1, \""<< mtop175p5[pos] <<"\""<<endl; //cout<<wp<<", kin, up_nonttXsec, 0, -2.4, 2.4, "<<ptrange[i]<<", "<<ptrange[i+1]<<", 0, 1, \""<<nonttXsecUp[pos]<<"\""<<endl; //cout<<wp<<", kin, down_nonttXsec, 0, -2.4, 2.4, "<<ptrange[i]<<", "<<ptrange[i+1]<<", 0, 1, \""<<nonttXsecDown[pos]<<"\""<<endl; cout<<wp<<", kin, down, 0, -2.4, 2.4, "<<ptrange[i]<<", "<<ptrange[i+1]<<", 0, 1, \""<<valuedown<<"\""<<endl; //cout<<wp<<", kin, up, 0, -2.4, 2.4, "<<ptrange[i]<<", "<<ptrange[i+1]<<", 0, 1, \""<<valueup<<"\""<<endl; } } }
[ "jthomasw" ]
jthomasw
1ae9f943c339b5873ef2111f15d776ec84b8d113
58ca98edb0bbd08f3a80232d2f1a58090b6a83a6
/src/SAM/Magics/IceBarrier.cpp
7b107db47ef2d46dd8e2650f8bf6c6d266072118
[]
no_license
hhy24735/SwordAndMagic
043727ffe873cc0ff21c03271d67306f73ac3058
5fd7dea084bfe34911c88ad41617ae94b114770f
refs/heads/master
2021-01-09T20:55:05.603589
2015-07-18T15:02:24
2015-07-18T15:02:24
39,137,841
0
0
null
2015-07-16T14:29:06
2015-07-15T13:17:58
C++
UTF-8
C++
false
false
846
cpp
#ifndef IceBarrier_CPP #define IceBarrier_CPP #include <typeinfo> class Magic; #include "..\Magic.h" class Character; #include "..\Character.h" class Hero; #include "..\Hero.h" class Dragon; #include "..\Dragon.h" class IceBarrier : public Magic { public: IceBarrier() { } ~IceBarrier(){ } bool CanUse(Character *user, int turn = 3) { if (turn == 3) return true; return false; } bool Passive() { return false; } bool Use(Character *user, Character *receiver, Magic *magic) { Hero *p1 = dynamic_cast<Hero*>(user); if (!p1 -> MakeChoice(3)) return false; p1 -> SetHit(magic); p1 -> SetHitFrom(user); p1 -> AddState(shield, user); p1 -> Shield(p1 -> GetAtk()); return true; } void Effect(bool cho = true) { } string Display() { return "IceBarrier";//寒冰护体 } }; #endif
[ "247352748@qq.com" ]
247352748@qq.com
35580c54c1a50340fff88dbae8f514414a707789
04b1803adb6653ecb7cb827c4f4aa616afacf629
/third_party/blink/public/web/web_user_gesture_token.h
a163f03eb580f04d70e2b65cb06888521556b35f
[ "LGPL-2.0-or-later", "LicenseRef-scancode-warranty-disclaimer", "LGPL-2.1-only", "GPL-1.0-or-later", "GPL-2.0-only", "LGPL-2.0-only", "BSD-2-Clause", "LicenseRef-scancode-other-copyleft", "MIT", "Apache-2.0", "BSD-3-Clause" ]
permissive
Samsung/Castanets
240d9338e097b75b3f669604315b06f7cf129d64
4896f732fc747dfdcfcbac3d442f2d2d42df264a
refs/heads/castanets_76_dev
2023-08-31T09:01:04.744346
2021-07-30T04:56:25
2021-08-11T05:45:21
125,484,161
58
49
BSD-3-Clause
2022-10-16T19:31:26
2018-03-16T08:07:37
null
UTF-8
C++
false
false
2,776
h
/* * Copyright (C) 2013 Google Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above * copyright notice, this list of conditions and the following disclaimer * in the documentation and/or other materials provided with the * distribution. * * Neither the name of Google Inc. nor the names of its * contributors may be used to endorse or promote products derived from * this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #ifndef THIRD_PARTY_BLINK_PUBLIC_WEB_WEB_USER_GESTURE_TOKEN_H_ #define THIRD_PARTY_BLINK_PUBLIC_WEB_WEB_USER_GESTURE_TOKEN_H_ #include "third_party/blink/public/platform/web_private_ptr.h" namespace blink { class UserGestureToken; // A WebUserGestureToken allows for storing the user gesture state of the // currently active context and reinstantiating it later on to continue // processing the user gesture in case it was not consumed meanwhile. class WebUserGestureToken { public: WebUserGestureToken() = default; WebUserGestureToken(const WebUserGestureToken& other) { Assign(other); } WebUserGestureToken& operator=(const WebUserGestureToken& other) { Assign(other); return *this; } ~WebUserGestureToken() { Reset(); } BLINK_EXPORT bool HasGestures() const; bool IsNull() const { return token_.IsNull(); } #if INSIDE_BLINK explicit WebUserGestureToken(scoped_refptr<UserGestureToken>); operator scoped_refptr<UserGestureToken>() const; #endif private: BLINK_EXPORT void Assign(const WebUserGestureToken&); BLINK_EXPORT void Reset(); WebPrivatePtr<UserGestureToken> token_; }; } // namespace blink #endif // THIRD_PARTY_BLINK_PUBLIC_WEB_WEB_USER_GESTURE_TOKEN_H_
[ "sunny.nam@samsung.com" ]
sunny.nam@samsung.com
528f9c8ecd0f17900a1144532f3ddba6f846b6b1
aa0aebe69e30581286820879de56fd6b985abab6
/src/CollisionObject.cpp
60e9332f69b7edc28c1a89540ea9118c6e7dde0e
[ "Zlib", "MIT" ]
permissive
Kanma/Athena-Physics
99ad4d3f089a67978d57fb5b934791de5317b1e5
8fcb76a1b4353e52a8066556fbd46bab449bc696
refs/heads/master
2021-03-12T22:14:24.474726
2014-05-08T08:46:48
2014-05-08T08:46:48
723,522
0
0
null
null
null
null
UTF-8
C++
false
false
2,781
cpp
/** @file CollisionObject.cpp @author Philip Abbet Implementation of the class 'Athena::Physics::CollisionObject' */ #include <Athena-Physics/CollisionObject.h> #include <Athena-Physics/World.h> #include <Athena-Physics/Conversions.h> #include <Athena-Math/MathUtils.h> using namespace Athena; using namespace Athena::Physics; using namespace Athena::Entities; using namespace Athena::Utils; using namespace std; /************************************** CONSTANTS **************************************/ ///< Name of the type of component const std::string CollisionObject::TYPE = "Athena/Physics/CollisionObject"; /***************************** CONSTRUCTION / DESTRUCTION ******************************/ CollisionObject::CollisionObject(const std::string& strName, ComponentsList* pList) : PhysicalComponent(strName, pList), m_collisionGroup(255) { } //----------------------------------------------------------------------- CollisionObject::~CollisionObject() { } //----------------------------------------------------------------------- CollisionObject* CollisionObject::create(const std::string& strName, ComponentsList* pList) { return new CollisionObject(strName, pList); } //----------------------------------------------------------------------- CollisionObject* CollisionObject::cast(Component* pComponent) { return dynamic_cast<CollisionObject*>(pComponent); } /***************************** MANAGEMENT OF THE PROPERTIES ****************************/ Utils::PropertiesList* CollisionObject::getProperties() const { // Call the base class implementation PropertiesList* pProperties = PhysicalComponent::getProperties(); // Create the category belonging to this type pProperties->selectCategory(TYPE, false); // Group pProperties->set("collision-group", new Variant(m_collisionGroup)); // Returns the list return pProperties; } //----------------------------------------------------------------------- bool CollisionObject::setProperty(const std::string& strCategory, const std::string& strName, Utils::Variant* pValue) { assert(!strCategory.empty()); assert(!strName.empty()); assert(pValue); if (strCategory == TYPE) return CollisionObject::setProperty(strName, pValue); return PhysicalComponent::setProperty(strCategory, strName, pValue); } //----------------------------------------------------------------------- bool CollisionObject::setProperty(const std::string& strName, Utils::Variant* pValue) { // Assertions assert(!strName.empty()); assert(pValue); // Group if (strName == "collision-group") setCollisionGroup(pValue->toUChar()); // Destroy the value delete pValue; return true; }
[ "philip.abbet@gmail.com" ]
philip.abbet@gmail.com
54525769be2412edca42386282f9e2ba8a568451
2173de375327ba2dae1a9a229aa1ea30013abb7c
/Jzzhu and children/candies.cpp
91382b625fc457bfecb4fb19f4e393ef67937cb2
[]
no_license
Nikhil-Wagh/Competitive-Coding
963b01bfcbd6ca4241b8c667ae0213defe2493c8
e055e42c265ed41d39efc532736d531b668c535c
refs/heads/master
2020-12-04T02:48:53.093532
2018-08-30T16:20:38
2018-08-30T16:20:38
65,979,469
0
1
null
null
null
null
UTF-8
C++
false
false
578
cpp
#include<bits/stdc++.h> using namespace std; int main() { int n,a[100],x,i,j,posi=-1; bool found=true; cin>>n>>x; for(i=0;i<n;i++) cin>>a[i]; while(found) { if(a[i]>0) { a[i]-=x; posi=i+1; } i++; if(i==n) { found=false; i=0; for(j=0;j<n;j++) { if(a[j]>0) { found=true; break; } } } } cout<<posi; }
[ "nikhilwagh.work@gmail.com" ]
nikhilwagh.work@gmail.com
1490513844532d19dea914b649d400fdd1dba6e9
c120bcc06b576704b53b80a3cd4adbdc60f3afe3
/LXEngine/LXDirectX11.cpp
d369c5af3d33f49c133c638bd42ad40764bf0306
[]
no_license
narques/Seetron
5e7509fa84ad1e643c97ee3d7d15202abb81dfc8
d4d7f512b803d0bcff83521ea9dac51d73a00ceb
refs/heads/master
2021-12-28T04:38:49.427915
2021-11-25T03:01:22
2021-11-25T03:01:22
117,028,695
0
1
null
null
null
null
UTF-8
C++
false
false
18,937
cpp
//------------------------------------------------------------------------------------------------------ // // This is a part of Seetron Engine // // Copyright (c) Nicolas Arques. All rights reserved. // //------------------------------------------------------------------------------------------------------ #include "pch.h" #include "LXDirectX11.h" #include "LXConsoleManager.h" #include "LXLogger.h" #include "LXThreadManager.h" // Direct2D #if LX_D2D1 #include <atlcomcli.h> #include <dxgi.h> #include <D2d1_1.h> #include <d2d1_1helper.h> #include <Dwrite.h> #pragma comment(lib, "d2d1.lib") #pragma comment(lib, "Dwrite.lib") using namespace D2D1; #endif // DirectX Graphics Infrastructure (DXGI) #pragma comment(lib, "dxgi.lib") // Direct3D 11 #pragma comment(lib, "d3d11.lib") #pragma comment(lib, "d3dcompiler.lib") // // Binded on variable and set from an INI file. // namespace { LXConsoleCommandT<bool> CSet_CreateDeviceDebug(L"Engine.ini", L"D3D11", L"CreateDeviceDebug", L"false"); LXConsoleCommandT<bool> CSet_VSync(L"Engine.ini", L"D3D11", L"VSync", L"false"); // Use Direct2D to display statistics // not supported by Nsight bool gD2D1 = true; }; //#define BackBufferFormat DXGI_FORMAT_B8G8R8A8_UNORM // Preferable ? #define BackBufferFormat DXGI_FORMAT_R8G8B8A8_UNORM ID3D11Device* g_d3d11Device = nullptr; ID3D11DeviceContext* g_d3d11DeviceContext = nullptr; #if LX_USE_D3D11_1 ID3D11DeviceContext1* g_d3d11DeviceContext1 = nullptr; #endif LXDirectX11* g_DirextX11 = nullptr; bool NoOverwriteConstantBuffer = false; LXDirectX11::LXDirectX11(HWND hWND) { g_DirextX11 = this; bool bInit = InitD3D11AndD2D1(hWND); // bool bInit = Init(hWND); CHK(bInit); g_d3d11Device = _D3D11Device; g_d3d11DeviceContext = _D3D11DeviceContext; #if LX_USE_D3D11_1 g_d3d11DeviceContext1 = _D3D11DeviceContext1; #endif } LXDirectX11::~LXDirectX11() { CHK(IsRenderThread()); LX_SAFE_RELEASE(_D3DUserDefinedAnnotation) LX_SAFE_RELEASE(_D3D11RenderTargetView) #if LX_D2D1 LX_SAFE_RELEASE(_D2D1TargetBitmap) #endif LX_SAFE_RELEASE(_DXGISwapChain1) LX_SAFE_RELEASE(_DXGISwapChain) #if LX_D2D1 LX_SAFE_RELEASE(_D2D1DeviceContext) LX_SAFE_RELEASE(_D2D1Device) #endif if (_D3D11DeviceContext) { _D3D11DeviceContext->ClearState(); _D3D11DeviceContext->Flush(); _D3D11DeviceContext->Release(); } #if LX_USE_D3D11_1 LX_SAFE_RELEASE(_D3D11DeviceContext1) #endif if (_D3D11Debug) { _D3D11Debug->ReportLiveDeviceObjects(D3D11_RLDO_DETAIL); _D3D11Debug->Release(); } if (_D3D11Device) { ULONG count = _D3D11Device->Release(); if (count) { LogW(LXDirectX11, L"Found %i living objects releasing the D3D11Device", count); LXObject::TraceAll(); CHK(count == 0); } } g_d3d11Device = nullptr; g_d3d11DeviceContext = nullptr; #if LX_USE_D3D11_1 g_d3d11DeviceContext1 = nullptr; #endif g_DirextX11 = nullptr; } ID3D11Device* LXDirectX11::GetCurrentDevice() { CHK(g_d3d11Device); return g_d3d11Device; } ID3D11DeviceContext* LXDirectX11::GetCurrentDeviceContext() { CHK(g_d3d11DeviceContext); return g_d3d11DeviceContext; } #if LX_USE_D3D11_1 ID3D11DeviceContext1* LXDirectX11::GetCurrentDeviceContext1() { return g_d3d11DeviceContext1; } #endif LXDirectX11* LXDirectX11::GetCurrentDirectX11() { CHK(g_DirextX11); return g_DirextX11; } void LXDirectX11::LogError(HRESULT hr) { switch (hr) { case D3D11_ERROR_FILE_NOT_FOUND: LogE(LXDirectx11, L"The file was not found."); break; case D3D11_ERROR_TOO_MANY_UNIQUE_STATE_OBJECTS: LogE(LXDirectx11, L"There are too many unique instances of a particular type of state object."); break; case D3D11_ERROR_TOO_MANY_UNIQUE_VIEW_OBJECTS: LogE(LXDirectx11, L"There are too many unique instances of a particular type of view object."); break; case D3D11_ERROR_DEFERRED_CONTEXT_MAP_WITHOUT_INITIAL_DISCARD: LogE(LXDirectx11, L"The first call to ID3D11DeviceContext::Map after either ID3D11Device::CreateDeferredContext or ID3D11DeviceContext::FinishCommandList per Resource was not D3D11_MAP_WRITE_DISCARD."); break; case DXGI_ERROR_INVALID_CALL: LogE(LXDirectx11, L"The method call is invalid.For example, a method's parameter may not be a valid pointer."); break; case DXGI_ERROR_WAS_STILL_DRAWING: LogE(LXDirectx11, L"The previous blit operation that is transferring information to or from this surface is incomplete."); break; case E_FAIL: LogE(LXDirectx11, L"Attempted to create a device with the debug layer enabled and the layer is not installed."); break; case E_INVALIDARG: LogE(LXDirectx11, L"An invalid parameter was passed to the returning function."); break; case E_OUTOFMEMORY: LogE(LXDirectx11, L"Direct3D could not allocate sufficient memory to complete the call."); break; case E_NOTIMPL: LogE(LXDirectx11, L"The method call isn't implemented with the passed parameter combination."); break; case S_FALSE: LogE(LXDirectx11, L"Alternate success value, indicating a successful but nonstandard completion(the precise meaning depends on context)."); break; case E_NOINTERFACE: LogE(LXDirectx11, L"No such interface supported"); break; case S_OK: LogI(LXDirectx11, L"No error occurred."); break; default: LogE(LXDirectx11, L"Unknow error: %i", hr); break; } } bool LXDirectX11::CreateBuffers() { #if LX_D2D1 CHK(_D2D1TargetBitmap == nullptr); #endif CHK(_D3D11RenderTargetView == nullptr); HRESULT hr; #if LX_D2D1 if (gD2D1) { // // Create the D2DTargetBitmap // D2D1_BITMAP_PROPERTIES1 bitmapProperties = BitmapProperties1( D2D1_BITMAP_OPTIONS_TARGET | D2D1_BITMAP_OPTIONS_CANNOT_DRAW, PixelFormat(BackBufferFormat, D2D1_ALPHA_MODE_IGNORE), 96, 96); IDXGISurface* dxgiBackBuffer = nullptr; if (_DXGISwapChain1) { hr = _DXGISwapChain1->GetBuffer(0, IID_PPV_ARGS(&dxgiBackBuffer)); if (hr != S_OK) { LogE(LXDirectX11, L"GetBuffer IDXGISurface failed"); LogError(hr); return false; } hr = _D2D1DeviceContext->CreateBitmapFromDxgiSurface(dxgiBackBuffer, &bitmapProperties, &_D2D1TargetBitmap); if (hr != S_OK) { LogE(LXDirectX11, L"CreateBitmapFromDxgiSurface failed"); LogError(hr); return false; } dxgiBackBuffer->Release(); _D2D1DeviceContext->SetTarget(_D2D1TargetBitmap); } } #endif // // Create the BackBuffer // ID3D11Texture2D* BackBuffer = nullptr; hr = _DXGISwapChain1->GetBuffer(0, __uuidof(ID3D11Texture2D), (void**)&BackBuffer); if (hr != S_OK) { LogE(LXDirectX11, L"GetBuffer failed"); LogError(hr); return false; } // // Create the Render Target // hr = _D3D11Device->CreateRenderTargetView(BackBuffer, NULL, &_D3D11RenderTargetView); if (hr != S_OK) { LogE(LXDirectX11, L"CreateRenderTargetView failed"); LogError(hr); return false; } BackBuffer->Release(); return true; } void LXDirectX11::ReleaseBuffers() { _D3D11DeviceContext->OMSetRenderTargets(0, 0, 0); #if LX_D2D1 if (_D2D1DeviceContext) _D2D1DeviceContext->SetTarget(0); #endif LX_SAFE_RELEASE(_D3D11RenderTargetView); #if LX_D2D1 LX_SAFE_RELEASE(_D2D1TargetBitmap); #endif } bool LXDirectX11::InitD3D11AndD2D1(HWND hWND) { bool gCreateDeviceDebug = CSet_CreateDeviceDebug.GetValue(); if (!hWND) { return false; } bool bD2D1 = false; _hWND = hWND; HRESULT hr; // // Find an adapter. // #if 0 IDXGIFactory1* DXGIFactory; hr = CreateDXGIFactory1(__uuidof(IDXGIFactory1), (void **)&DXGIFactory); if (FAILED(hr)) { LogE(LXDirectX11, L"Can't create DXGIFactory"); LogError(hr); return false; } IDXGIAdapter1* DXGIAdapter = nullptr; if (DXGIFactory->EnumAdapters1(0, &DXGIAdapter) == DXGI_ERROR_NOT_FOUND) { LogE(LXDirectX11, L"No adapters found"); return false; } IDXGIOutput* DXGIOutput; if (DXGIAdapter->EnumOutputs(0, &DXGIOutput) == DXGI_ERROR_NOT_FOUND) { LogE(LXDirectX11, L"No outputs found"); return false; } #endif // // Create the Devices... // // // D3DDevice & D3DDeviceContext // UINT CreationFlags = D3D11_CREATE_DEVICE_BGRA_SUPPORT;// | D3D11_CREATE_DEVICE_SINGLETHREADED; if (gCreateDeviceDebug == true) CreationFlags |= D3D11_CREATE_DEVICE_DEBUG; D3D_FEATURE_LEVEL featureLevels[] = { D3D_FEATURE_LEVEL_11_1, D3D_FEATURE_LEVEL_11_0, D3D_FEATURE_LEVEL_10_1, D3D_FEATURE_LEVEL_10_0, D3D_FEATURE_LEVEL_9_3, D3D_FEATURE_LEVEL_9_2, D3D_FEATURE_LEVEL_9_1 }; D3D_FEATURE_LEVEL CreatedFeatureLevel; hr = D3D11CreateDevice( nullptr, // specify null to use the default adapter D3D_DRIVER_TYPE_HARDWARE, 0, CreationFlags, // optionally set debug and Direct2D compatibility flags featureLevels, // list of feature levels this app can support ARRAYSIZE(featureLevels), // number of possible feature levels D3D11_SDK_VERSION, &_D3D11Device, // returns the Direct3D device created &CreatedFeatureLevel, // returns feature level of device created &_D3D11DeviceContext // returns the device immediate context ); if(hr != S_OK) { LogE(DirectX11, L"D3D11CreateDevice Failed"); LogError(hr); return false; } #if LX_USE_D3D11_1 hr = _D3D11DeviceContext->QueryInterface(__uuidof(ID3D11DeviceContext1), (void**)&_D3D11DeviceContext1); if (hr != S_OK) { LogE(LXDirectX11, L"QueryInterface ID3D11DeviceContext1 failed"); LogError(hr); return false; } D3D11_FEATURE_DATA_D3D11_OPTIONS FeatureDataD3D11Options = { 0 }; hr = _D3D11Device->CheckFeatureSupport(D3D11_FEATURE_D3D11_OPTIONS, &FeatureDataD3D11Options, sizeof(D3D11_FEATURE_DATA_D3D11_OPTIONS)); if (hr != S_OK) { LogE(LXDirectX11, L"QueryInterface ID3D11Debug failed"); LogError(hr); return false; } NoOverwriteConstantBuffer &= FeatureDataD3D11Options.MapNoOverwriteOnDynamicConstantBuffer == TRUE; //MapNoOverwriteOnDynamicBufferSRV. #endif IDXGIDevice* dxgiDevice = nullptr; hr = _D3D11Device->QueryInterface(__uuidof(IDXGIDevice), (void**)&dxgiDevice); if (hr != S_OK) { LogE(LXDirectX11, L"QueryInterface IDXGIDevice failed"); LogError(hr); return false; } // // D3D11Debug // if (gCreateDeviceDebug == true) { hr = _D3D11Device->QueryInterface(IID_PPV_ARGS(&_D3D11Debug)); if (hr != S_OK) { LogE(LXDirectX11, L"QueryInterface ID3D11Debug failed"); LogError(hr); return false; } } // // D3DUserDefinedAnnotation // hr = _D3D11DeviceContext->QueryInterface(__uuidof(ID3DUserDefinedAnnotation), (void**)&_D3DUserDefinedAnnotation); if (hr != S_OK) { LogE(LXDirectX11, L"QueryInterface ID3DUserDefinedAnnotation failed"); LogError(hr); return false; } // // D2D1Device D2D1DeviceContext // #if LX_D2D1 if (gD2D1) { D2D1_FACTORY_OPTIONS options; ZeroMemory(&options, sizeof(D2D1_FACTORY_OPTIONS)); #ifdef _DEBUG options.debugLevel = D2D1_DEBUG_LEVEL_INFORMATION; #endif ID2D1Factory1* D2D1Factory = nullptr; hr = D2D1CreateFactory(D2D1_FACTORY_TYPE_SINGLE_THREADED, __uuidof(ID2D1Factory1), &options, (void**)&D2D1Factory); if (hr != S_OK) { LogE(LXDirectX11, L"D2D1CreateFactory failed"); LogError(hr); return false; } hr = D2D1Factory->CreateDevice(dxgiDevice, &_D2D1Device); if (hr != S_OK) { LogE(LXDirectX11, L"CreateDevice ID2D1Device failed"); LogError(hr); return false; } D2D1Factory->Release(); hr = _D2D1Device->CreateDeviceContext(D2D1_DEVICE_CONTEXT_OPTIONS_NONE, &_D2D1DeviceContext); if (hr != S_OK) { LogE(LXDirectX11, L"CreateDeviceContext ID2D1DeviceContext failed"); LogError(hr); return false; } } #endif // // Misc // // Allocate a descriptor. DXGI_SWAP_CHAIN_DESC1 swapChainDesc = { 0 }; swapChainDesc.Width = _Width; swapChainDesc.Height = _Height; swapChainDesc.Format = BackBufferFormat; swapChainDesc.Stereo = false; swapChainDesc.SampleDesc.Count = 1; // don't use multi-sampling swapChainDesc.SampleDesc.Quality = 0; swapChainDesc.BufferUsage = DXGI_USAGE_RENDER_TARGET_OUTPUT; swapChainDesc.BufferCount = 1;// 2; // use double buffering to enable flip swapChainDesc.Scaling = DXGI_SCALING_STRETCH; swapChainDesc.SwapEffect = DXGI_SWAP_EFFECT_SEQUENTIAL; // DXGI_SWAP_EFFECT_FLIP_SEQUENTIAL; // all apps must use this SwapEffect swapChainDesc.Flags = 0; { IDXGIAdapter* dxgiAdapter = nullptr; hr = dxgiDevice->GetAdapter(&dxgiAdapter); IDXGIFactory2* DXGIFactory; hr = dxgiAdapter->GetParent(IID_PPV_ARGS(&DXGIFactory)); hr = DXGIFactory->CreateSwapChainForHwnd( _D3D11Device, (HWND)hWND, &swapChainDesc, nullptr, nullptr, &_DXGISwapChain1); DXGIFactory->Release(); dxgiAdapter->Release(); dxgiDevice->Release(); } //dxgiDevice->SetMaximumFrameLatency(1); #if LX_D2D1 if (gD2D1) { // DirectWrite { IDWriteFactory* DWriteFactory = nullptr; hr = DWriteCreateFactory(DWRITE_FACTORY_TYPE_SHARED, __uuidof(IDWriteFactory), reinterpret_cast<IUnknown**>(&DWriteFactory)); if (hr != S_OK) { LogE(LXDirectX11, L"DWriteCreateFactory failed"); LogError(hr); return false; } float fontSize = LXPlatform::GetFontSize(); hr = DWriteFactory->CreateTextFormat(L"Consolas", NULL, DWRITE_FONT_WEIGHT_NORMAL, DWRITE_FONT_STYLE_NORMAL, DWRITE_FONT_STRETCH_NORMAL, fontSize, L"", //locale &_DWriteTextFormat); if (hr != S_OK) { LogE(LXDirectX11, L"CreateTextFormat failed"); LogError(hr); return false; } DWriteFactory->Release(); //m_pTextFormat->SetTextAlignment(DWRITE_TEXT_ALIGNMENT_CENTER); //m_pTextFormat->SetParagraphAlignment(DWRITE_PARAGRAPH_ALIGNMENT_CENTER); } } #endif return CreateBuffers(); } bool LXDirectX11::Init(HWND hWND) { bool gCreateDeviceDebug = CSet_CreateDeviceDebug.GetValue(); CHK(hWND); if (!hWND) { LogE(LXDirectX11, L"HWND is null"); return false; } _hWND = hWND; HRESULT hr; // // Device & Swap chain // if (1) { #if 0 IDXGIFactory1* DXGIFactory; hr = CreateDXGIFactory1(__uuidof(IDXGIFactory1), (void **)&DXGIFactory); if (FAILED(hr)) { LogE(LXDirectX11, L"Can't create DXGIFactory"); LogError(hr); return false; } IDXGIAdapter1* DXGIAdapter = nullptr; if (DXGIFactory->EnumAdapters1(0, &DXGIAdapter) == DXGI_ERROR_NOT_FOUND) { LogE(LXDirectX11, L"No adapters found"); return false; } IDXGIOutput* DXGIOutput; if (DXGIAdapter->EnumOutputs(0, &DXGIOutput) == DXGI_ERROR_NOT_FOUND) { LogE(LXDirectX11, L"No outputs found"); return false; } #endif DXGI_SWAP_CHAIN_DESC scd; ZeroMemory(&scd, sizeof(DXGI_SWAP_CHAIN_DESC)); scd.BufferCount = 1; // one back buffer scd.BufferDesc.Format = DXGI_FORMAT_R8G8B8A8_UNORM; // use 32-bit color scd.BufferUsage = DXGI_USAGE_RENDER_TARGET_OUTPUT; // how swap chain is to be used scd.OutputWindow = hWND; // the window to be used scd.SampleDesc.Count = 4; // how many multisamples scd.Windowed = TRUE; // windowed/full-screen mode // create a device, device context and swap chain using the information in the scd struct hr = D3D11CreateDeviceAndSwapChain( nullptr/*DXGIAdapter*/, /*D3D_DRIVER_TYPE_UNKNOWN*/D3D_DRIVER_TYPE_HARDWARE, NULL, NULL, NULL, NULL, D3D11_SDK_VERSION, &scd, &_DXGISwapChain, &_D3D11Device, NULL, &_D3D11DeviceContext); if (hr != S_OK) { LogE(LXDirectX11, L"D3D11CreateDeviceAndSwapChain failed"); return false; } return true; } else { // // D3DDevice & D3DDeviceContext & DXGISwapChain // DXGI_MODE_DESC bufferDesc; ZeroMemory(&bufferDesc, sizeof(DXGI_MODE_DESC)); bufferDesc.Width = 1024;// Width; bufferDesc.Height = 1024;// Height; bufferDesc.RefreshRate.Numerator = 60; bufferDesc.RefreshRate.Denominator = 1; bufferDesc.Format = DXGI_FORMAT_R8G8B8A8_UNORM; bufferDesc.ScanlineOrdering = DXGI_MODE_SCANLINE_ORDER_UNSPECIFIED; bufferDesc.Scaling = DXGI_MODE_SCALING_UNSPECIFIED; // SwapChain DXGI_SWAP_CHAIN_DESC swapChainDesc; ZeroMemory(&swapChainDesc, sizeof(DXGI_SWAP_CHAIN_DESC)); swapChainDesc.BufferDesc = bufferDesc; swapChainDesc.SampleDesc.Count = 1; swapChainDesc.SampleDesc.Quality = 0; swapChainDesc.BufferUsage = DXGI_USAGE_RENDER_TARGET_OUTPUT; swapChainDesc.BufferCount = 1; swapChainDesc.OutputWindow = (HWND)hWND; swapChainDesc.Windowed = TRUE; swapChainDesc.SwapEffect = DXGI_SWAP_EFFECT_DISCARD; UINT CreationFlags = 0; if (gCreateDeviceDebug == true) CreationFlags |= D3D11_CREATE_DEVICE_DEBUG; hr = D3D11CreateDeviceAndSwapChain( nullptr, // Specify nullptr to use the default adapter. D3D_DRIVER_TYPE_HARDWARE, NULL, CreationFlags, // creationFlags, 0, 0, D3D11_SDK_VERSION, // Windows Store apps must set this to D3D11_SDK_VERSION. &swapChainDesc, // Returns the Direct3D device created. &_DXGISwapChain, &_D3D11Device, NULL, &_D3D11DeviceContext); if (hr != S_OK) { LogE(LXDirectX11, L"D3D11CreateDeviceAndSwapChain failed"); return false; } // // D3D11Debug // if (gCreateDeviceDebug == true) { hr = _D3D11Device->QueryInterface(IID_PPV_ARGS(&_D3D11Debug)); if (hr != S_OK) { LogE(LXDirectX11, L"QueryInterface ID3D11Debug failed"); LogError(hr); return false; } } // // Annotation // hr = _D3D11DeviceContext->QueryInterface(__uuidof(ID3DUserDefinedAnnotation), (void**)&_D3DUserDefinedAnnotation); if (hr != S_OK) { LogE(LXDirectX11, L"QueryInterface ID3DUserDefinedAnnotation failed"); return false; } // // Create the BackBuffer // ID3D11Texture2D* BackBuffer; hr = _DXGISwapChain->GetBuffer(0, __uuidof(ID3D11Texture2D), (void**)&BackBuffer); if (hr != S_OK) { LogE(LXDirectX11, L"GetBuffer failed"); return false; } // // Create our Render Target // hr = _D3D11Device->CreateRenderTargetView(BackBuffer, NULL, &_D3D11RenderTargetView); if (hr != S_OK) { LogE(LXDirectX11, L"CreateRenderTargetView failed"); return false; } BackBuffer->Release(); return true; } } void LXDirectX11::Resize(UINT Width, UINT Height) { CHK(IsRenderThread()); _Width = Width; _Height = Height; ReleaseBuffers(); HRESULT hr; if (_DXGISwapChain1) { hr = _DXGISwapChain1->ResizeBuffers(1, _Width, _Height, DXGI_FORMAT_UNKNOWN, 0); if(hr != S_OK) { LogE(LXDirectX11, L"ResizeBuffers failed"); LogError(hr); return; } } if (_DXGISwapChain) { hr = _DXGISwapChain->ResizeBuffers(1, _Width, _Height, DXGI_FORMAT_UNKNOWN, 0); if (hr != S_OK) { LogE(LXDirectX11, L"ResizeBuffers failed"); LogError(hr); return; } } VRF(CreateBuffers()); } void LXDirectX11::Present() { bool gVSync = CSet_VSync.GetValue(); if (_DXGISwapChain1) _DXGISwapChain1->Present(gVSync ? 1 : 0, 0); else if (_DXGISwapChain) _DXGISwapChain->Present(gVSync ? 1 : 0, 0); }
[ "nicolas.arques@gmail.com" ]
nicolas.arques@gmail.com
d3834673bb8769a349d74eba7279cdd4e4901276
aa1257faa149a9a6ac3a65f37628d5ca715baf7b
/build-solution-x64/Map.cpp
6fe951704c094f0a1eb7a44a5930e01eecee8bca
[]
no_license
PereKastor/IAVOIDBot
1e3d713d658a5dd80f42cfa3291498303448e43d
3aa12d8882fb8e7475ee4a65ef159229cf8b74ab
refs/heads/master
2021-01-12T14:10:45.014124
2016-10-04T01:22:01
2016-10-04T01:22:01
69,924,769
0
0
null
null
null
null
UTF-8
C++
false
false
2,844
cpp
#include "Map.h" #include "TurnInfo.h" #include "SearchMap.h" void Map::setNodeType(unsigned int tileId, Node::NodeType tileType) { m_nodeMap[tileId]->setType(tileType); } void Map::createNode(Node* node) { std::pair<unsigned int, Node*> temp{node->getId(), node}; m_nodeMap.insert(temp); } Node* Map::getNode(unsigned int x, unsigned int y) { unsigned int index = x + y * m_width; return m_nodeMap[index]; } Node* Map::getNode(unsigned int index) { return m_nodeMap[index]; } float Map::calculateDistance(int indexStart, int indexEnd) { Node* start = m_nodeMap[indexStart]; Node* end = m_nodeMap[indexEnd]; int x = start->getPosition()->x - end->getPosition()->x; int y = start->getPosition()->y - end->getPosition()->y; return abs(x) + abs(y); } unsigned Map::getBestGoalTile(int start) { float bestDistance = 999999.0f; int index = -1; for(int i = 0; i < m_goalTiles.size(); i++) { float distance = calculateDistance(start, m_goalTiles[i]); if(distance < bestDistance) { index = i; bestDistance = distance; } } int goalIndex = m_goalTiles[index]; m_goalTiles.erase(m_goalTiles.begin() + index); return goalIndex; } EDirection Map::getNextDirection(unsigned npcId, unsigned int tileId) { SearchMap* npcMap = m_searchMap[npcId]; int getNextTile = npcMap->getNextPathTileAndErase(); std::string direction = getStringDirection(tileId, getNextTile); if(direction == "N") { return N; } if(direction == "E") { return E; } if(direction == "W") { return W; } if(direction == "S") { return S; } if(direction == "NW") { return NW; } if(direction == "NE") { return NE; } if(direction == "SW") { return SW; } if(direction == "SE") { return SE; } return NE; } std::string Map::getStringDirection(unsigned start, unsigned end) { Node* nStart = m_nodeMap[start]; Node* nEnd = m_nodeMap[end]; int x = nEnd->getPosition()->x - nStart->getPosition()->x; int y = nEnd->getPosition()->y - nStart->getPosition()->y; std::string direction{""}; // Set the North/South direction if(y < 0) { direction += "N"; } else if(y > 0) { direction += "S"; } // Depending on the row, we need to adapt the West.East direction if(nStart->getPosition()->y % 2 == 0) { if(x < 0) { direction += "W"; } else { direction += "E"; } } else { if(x > 0) { direction += "E"; } else { direction += "W"; } } return direction; }
[ "constant.95@gmail.com" ]
constant.95@gmail.com
953f0ea5ac25fe6e4f393975f11415b5d7a13474
e27d9e460c374473e692f58013ca692934347ef1
/drafts/quickSpectrogram_2/libraries/liblsl/external/lslboost/mpl/aux_/preprocessed/dmc/bind.hpp
cb281f2bd3ccaeeaa2094e87c368fab6e359fd1d
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
thoughtworksarts/Dual_Brains
84a0edf69d95299021daf4af9311aed5724a2e84
a7a6586b91a280950693b427d8269bd68bf8a7ab
refs/heads/master
2021-09-18T15:50:51.397078
2018-07-16T23:20:18
2018-07-16T23:20:18
119,759,649
3
0
null
2018-07-16T23:14:34
2018-02-01T00:09:16
HTML
UTF-8
C++
false
false
13,777
hpp
// Copyright Peter Dimov 2001 // Copyright Aleksey Gurtovoy 2001-2004 // // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.lslboost.org/LICENSE_1_0.txt) // // Preprocessed version of "lslboost/mpl/bind.hpp" header // -- DO NOT modify by hand! namespace lslboost { namespace mpl { namespace aux { template< typename T, typename U1, typename U2, typename U3, typename U4 , typename U5 > struct resolve_bind_arg { typedef T type; }; template< typename T , typename Arg > struct replace_unnamed_arg { typedef Arg next; typedef T type; }; template< typename Arg > struct replace_unnamed_arg< arg< -1 >, Arg > { typedef typename Arg::next next; typedef Arg type; }; template< int N, typename U1, typename U2, typename U3, typename U4, typename U5 > struct resolve_bind_arg< arg<N>, U1, U2, U3, U4, U5 > { typedef typename apply_wrap5<mpl::arg<N>, U1, U2, U3, U4, U5>::type type; }; template< typename F, typename T1, typename T2, typename T3, typename T4 , typename T5, typename U1, typename U2, typename U3, typename U4 , typename U5 > struct resolve_bind_arg< bind< F,T1,T2,T3,T4,T5 >, U1, U2, U3, U4, U5 > { typedef bind< F,T1,T2,T3,T4,T5 > f_; typedef typename apply_wrap5< f_,U1,U2,U3,U4,U5 >::type type; }; } // namespace aux template< typename F, int dummy_ > struct bind0 { template< typename U1 = na, typename U2 = na, typename U3 = na , typename U4 = na, typename U5 = na > struct apply { private: typedef aux::replace_unnamed_arg< F, mpl::arg<1> > r0; typedef typename r0::type a0; typedef typename r0::next n1; typedef typename aux::resolve_bind_arg< a0,U1,U2,U3,U4,U5 >::type f_; /// public: typedef typename apply_wrap0< f_ >::type type; }; }; namespace aux { template< typename F, typename U1, typename U2, typename U3, typename U4 , typename U5 > struct resolve_bind_arg< bind0<F>, U1, U2, U3, U4, U5 > { typedef bind0<F> f_; typedef typename apply_wrap5< f_,U1,U2,U3,U4,U5 >::type type; }; } // namespace aux BOOST_MPL_AUX_ARITY_SPEC(1, bind0) BOOST_MPL_AUX_TEMPLATE_ARITY_SPEC(1, bind0) template< typename F, int dummy_ > struct bind< F,na,na,na,na,na > : bind0<F> { }; template< typename F, typename T1, int dummy_ > struct bind1 { template< typename U1 = na, typename U2 = na, typename U3 = na , typename U4 = na, typename U5 = na > struct apply { private: typedef aux::replace_unnamed_arg< F, mpl::arg<1> > r0; typedef typename r0::type a0; typedef typename r0::next n1; typedef typename aux::resolve_bind_arg< a0,U1,U2,U3,U4,U5 >::type f_; /// typedef aux::replace_unnamed_arg< T1,n1 > r1; typedef typename r1::type a1; typedef typename r1::next n2; typedef aux::resolve_bind_arg< a1,U1,U2,U3,U4,U5 > t1; /// public: typedef typename apply_wrap1< f_ , typename t1::type >::type type; }; }; namespace aux { template< typename F, typename T1, typename U1, typename U2, typename U3 , typename U4, typename U5 > struct resolve_bind_arg< bind1< F,T1 >, U1, U2, U3, U4, U5 > { typedef bind1< F,T1 > f_; typedef typename apply_wrap5< f_,U1,U2,U3,U4,U5 >::type type; }; } // namespace aux BOOST_MPL_AUX_ARITY_SPEC(2, bind1) BOOST_MPL_AUX_TEMPLATE_ARITY_SPEC(2, bind1) template< typename F, typename T1, int dummy_ > struct bind< F,T1,na,na,na,na > : bind1< F,T1 > { }; template< typename F, typename T1, typename T2, int dummy_ > struct bind2 { template< typename U1 = na, typename U2 = na, typename U3 = na , typename U4 = na, typename U5 = na > struct apply { private: typedef aux::replace_unnamed_arg< F, mpl::arg<1> > r0; typedef typename r0::type a0; typedef typename r0::next n1; typedef typename aux::resolve_bind_arg< a0,U1,U2,U3,U4,U5 >::type f_; /// typedef aux::replace_unnamed_arg< T1,n1 > r1; typedef typename r1::type a1; typedef typename r1::next n2; typedef aux::resolve_bind_arg< a1,U1,U2,U3,U4,U5 > t1; /// typedef aux::replace_unnamed_arg< T2,n2 > r2; typedef typename r2::type a2; typedef typename r2::next n3; typedef aux::resolve_bind_arg< a2,U1,U2,U3,U4,U5 > t2; /// public: typedef typename apply_wrap2< f_ , typename t1::type, typename t2::type >::type type; }; }; namespace aux { template< typename F, typename T1, typename T2, typename U1, typename U2 , typename U3, typename U4, typename U5 > struct resolve_bind_arg< bind2< F,T1,T2 >, U1, U2, U3, U4, U5 > { typedef bind2< F,T1,T2 > f_; typedef typename apply_wrap5< f_,U1,U2,U3,U4,U5 >::type type; }; } // namespace aux BOOST_MPL_AUX_ARITY_SPEC(3, bind2) BOOST_MPL_AUX_TEMPLATE_ARITY_SPEC(3, bind2) template< typename F, typename T1, typename T2, int dummy_ > struct bind< F,T1,T2,na,na,na > : bind2< F,T1,T2 > { }; template< typename F, typename T1, typename T2, typename T3, int dummy_ > struct bind3 { template< typename U1 = na, typename U2 = na, typename U3 = na , typename U4 = na, typename U5 = na > struct apply { private: typedef aux::replace_unnamed_arg< F, mpl::arg<1> > r0; typedef typename r0::type a0; typedef typename r0::next n1; typedef typename aux::resolve_bind_arg< a0,U1,U2,U3,U4,U5 >::type f_; /// typedef aux::replace_unnamed_arg< T1,n1 > r1; typedef typename r1::type a1; typedef typename r1::next n2; typedef aux::resolve_bind_arg< a1,U1,U2,U3,U4,U5 > t1; /// typedef aux::replace_unnamed_arg< T2,n2 > r2; typedef typename r2::type a2; typedef typename r2::next n3; typedef aux::resolve_bind_arg< a2,U1,U2,U3,U4,U5 > t2; /// typedef aux::replace_unnamed_arg< T3,n3 > r3; typedef typename r3::type a3; typedef typename r3::next n4; typedef aux::resolve_bind_arg< a3,U1,U2,U3,U4,U5 > t3; /// public: typedef typename apply_wrap3< f_ , typename t1::type, typename t2::type, typename t3::type >::type type; }; }; namespace aux { template< typename F, typename T1, typename T2, typename T3, typename U1 , typename U2, typename U3, typename U4, typename U5 > struct resolve_bind_arg< bind3< F,T1,T2,T3 >, U1, U2, U3, U4, U5 > { typedef bind3< F,T1,T2,T3 > f_; typedef typename apply_wrap5< f_,U1,U2,U3,U4,U5 >::type type; }; } // namespace aux BOOST_MPL_AUX_ARITY_SPEC(4, bind3) BOOST_MPL_AUX_TEMPLATE_ARITY_SPEC(4, bind3) template< typename F, typename T1, typename T2, typename T3, int dummy_ > struct bind< F,T1,T2,T3,na,na > : bind3< F,T1,T2,T3 > { }; template< typename F, typename T1, typename T2, typename T3, typename T4 , int dummy_ > struct bind4 { template< typename U1 = na, typename U2 = na, typename U3 = na , typename U4 = na, typename U5 = na > struct apply { private: typedef aux::replace_unnamed_arg< F, mpl::arg<1> > r0; typedef typename r0::type a0; typedef typename r0::next n1; typedef typename aux::resolve_bind_arg< a0,U1,U2,U3,U4,U5 >::type f_; /// typedef aux::replace_unnamed_arg< T1,n1 > r1; typedef typename r1::type a1; typedef typename r1::next n2; typedef aux::resolve_bind_arg< a1,U1,U2,U3,U4,U5 > t1; /// typedef aux::replace_unnamed_arg< T2,n2 > r2; typedef typename r2::type a2; typedef typename r2::next n3; typedef aux::resolve_bind_arg< a2,U1,U2,U3,U4,U5 > t2; /// typedef aux::replace_unnamed_arg< T3,n3 > r3; typedef typename r3::type a3; typedef typename r3::next n4; typedef aux::resolve_bind_arg< a3,U1,U2,U3,U4,U5 > t3; /// typedef aux::replace_unnamed_arg< T4,n4 > r4; typedef typename r4::type a4; typedef typename r4::next n5; typedef aux::resolve_bind_arg< a4,U1,U2,U3,U4,U5 > t4; /// public: typedef typename apply_wrap4< f_ , typename t1::type, typename t2::type, typename t3::type , typename t4::type >::type type; }; }; namespace aux { template< typename F, typename T1, typename T2, typename T3, typename T4 , typename U1, typename U2, typename U3, typename U4, typename U5 > struct resolve_bind_arg< bind4< F,T1,T2,T3,T4 >, U1, U2, U3, U4, U5 > { typedef bind4< F,T1,T2,T3,T4 > f_; typedef typename apply_wrap5< f_,U1,U2,U3,U4,U5 >::type type; }; } // namespace aux BOOST_MPL_AUX_ARITY_SPEC(5, bind4) BOOST_MPL_AUX_TEMPLATE_ARITY_SPEC(5, bind4) template< typename F, typename T1, typename T2, typename T3, typename T4 , int dummy_ > struct bind< F,T1,T2,T3,T4,na > : bind4< F,T1,T2,T3,T4 > { }; template< typename F, typename T1, typename T2, typename T3, typename T4 , typename T5, int dummy_ > struct bind5 { template< typename U1 = na, typename U2 = na, typename U3 = na , typename U4 = na, typename U5 = na > struct apply { private: typedef aux::replace_unnamed_arg< F, mpl::arg<1> > r0; typedef typename r0::type a0; typedef typename r0::next n1; typedef typename aux::resolve_bind_arg< a0,U1,U2,U3,U4,U5 >::type f_; /// typedef aux::replace_unnamed_arg< T1,n1 > r1; typedef typename r1::type a1; typedef typename r1::next n2; typedef aux::resolve_bind_arg< a1,U1,U2,U3,U4,U5 > t1; /// typedef aux::replace_unnamed_arg< T2,n2 > r2; typedef typename r2::type a2; typedef typename r2::next n3; typedef aux::resolve_bind_arg< a2,U1,U2,U3,U4,U5 > t2; /// typedef aux::replace_unnamed_arg< T3,n3 > r3; typedef typename r3::type a3; typedef typename r3::next n4; typedef aux::resolve_bind_arg< a3,U1,U2,U3,U4,U5 > t3; /// typedef aux::replace_unnamed_arg< T4,n4 > r4; typedef typename r4::type a4; typedef typename r4::next n5; typedef aux::resolve_bind_arg< a4,U1,U2,U3,U4,U5 > t4; /// typedef aux::replace_unnamed_arg< T5,n5 > r5; typedef typename r5::type a5; typedef typename r5::next n6; typedef aux::resolve_bind_arg< a5,U1,U2,U3,U4,U5 > t5; /// public: typedef typename apply_wrap5< f_ , typename t1::type, typename t2::type, typename t3::type , typename t4::type, typename t5::type >::type type; }; }; namespace aux { template< typename F, typename T1, typename T2, typename T3, typename T4 , typename T5, typename U1, typename U2, typename U3, typename U4 , typename U5 > struct resolve_bind_arg< bind5< F,T1,T2,T3,T4,T5 >, U1, U2, U3, U4, U5 > { typedef bind5< F,T1,T2,T3,T4,T5 > f_; typedef typename apply_wrap5< f_,U1,U2,U3,U4,U5 >::type type; }; } // namespace aux BOOST_MPL_AUX_ARITY_SPEC(6, bind5) BOOST_MPL_AUX_TEMPLATE_ARITY_SPEC(6, bind5) /// primary template (not a specialization!) template< typename F, typename T1, typename T2, typename T3, typename T4 , typename T5, int dummy_ > struct bind : bind5< F,T1,T2,T3,T4,T5 > { }; /// if_/eval_if specializations template< template< typename T1, typename T2, typename T3 > class F, typename Tag > struct quote3; template< typename T1, typename T2, typename T3 > struct if_; template< typename Tag, typename T1, typename T2, typename T3 > struct bind3< quote3< if_,Tag > , T1, T2, T3 > { template< typename U1 = na, typename U2 = na, typename U3 = na , typename U4 = na, typename U5 = na > struct apply { private: typedef mpl::arg<1> n1; typedef aux::replace_unnamed_arg< T1,n1 > r1; typedef typename r1::type a1; typedef typename r1::next n2; typedef aux::resolve_bind_arg< a1,U1,U2,U3,U4,U5 > t1; /// typedef aux::replace_unnamed_arg< T2,n2 > r2; typedef typename r2::type a2; typedef typename r2::next n3; typedef aux::resolve_bind_arg< a2,U1,U2,U3,U4,U5 > t2; /// typedef aux::replace_unnamed_arg< T3,n3 > r3; typedef typename r3::type a3; typedef typename r3::next n4; typedef aux::resolve_bind_arg< a3,U1,U2,U3,U4,U5 > t3; /// typedef typename if_< typename t1::type , t2, t3 >::type f_; public: typedef typename f_::type type; }; }; }}
[ "gabriel.ibagon@gmail.com" ]
gabriel.ibagon@gmail.com
638dad598648d79e8a065744144ba7c3daa448f4
ffe69b08a44f04d05c3425d9a777e170c9e3d035
/src/components/sr_ff.h
48593582dc4d6831829ecaa2e75b32dafd98c472
[ "MIT" ]
permissive
logigator/logigator-simulation
fe8828a117758d3d19e96be1ef6af9d70c1df481
cfc5bb444ddaf9c190b378ab54f4e046aed2cb0f
refs/heads/master
2023-02-14T03:53:57.489619
2021-12-02T19:50:31
2021-12-02T19:50:31
213,618,631
4
0
MIT
2023-02-04T03:16:37
2019-10-08T10:57:09
C++
UTF-8
C++
false
false
702
h
#pragma once #include "component.h" #include "output.h" #include "input.h" #include "link.h" class SR_FF : public Component { public: SR_FF(Board* board, Input* inputs, Output* outputs) : Component(board, inputs, outputs, 3, 2) { } SR_FF(Board* board, Link** inputs, Link** outputs) : Component(board, inputs, outputs, 3, 2) { } void init() override { this->outputs[1].setPowered(true); } void compute() override { if (inputs[1].getPowered()) { if (inputs[0].getPowered()) { outputs[0].setPowered(true); outputs[1].setPowered(false); } else if(inputs[2].getPowered()) { outputs[0].setPowered(false); outputs[1].setPowered(true); } } } private: };
[ "andreas.sch4@gmail.com" ]
andreas.sch4@gmail.com
5e43360c1b8a002c1cd4f7a101730e4b584920f4
6c4699de64796bde99b9781ce6bcbbde5be4f2a4
/External/opencv-2.4.6.1/modules/calib3d/test/test_chessboardgenerator.hpp
48b3f3a243be5c110ac8afe130546f96ca4b5b00
[]
no_license
simonct/CoreAstro
3ea33aea2d9dd3ef1f0fbb990b4036c8ab8c6778
eafd0aea314c427da616e1707a49aaeaf5ea6991
refs/heads/master
2020-05-22T04:03:57.706741
2014-10-25T07:30:40
2014-10-25T07:30:40
5,735,802
3
0
null
null
null
null
UTF-8
C++
false
false
1,423
hpp
#ifndef CV_CHESSBOARDGENERATOR_H143KJTVYM389YTNHKFDHJ89NYVMO3VLMEJNTBGUEIYVCM203P #define CV_CHESSBOARDGENERATOR_H143KJTVYM389YTNHKFDHJ89NYVMO3VLMEJNTBGUEIYVCM203P #include "opencv2/calib3d/calib3d.hpp" namespace cv { class ChessBoardGenerator { public: double sensorWidth; double sensorHeight; size_t squareEdgePointsNum; double min_cos; mutable double cov; Size patternSize; int rendererResolutionMultiplier; ChessBoardGenerator(const Size& patternSize = Size(8, 6)); Mat operator()(const Mat& bg, const Mat& camMat, const Mat& distCoeffs, vector<Point2f>& corners) const; Mat operator()(const Mat& bg, const Mat& camMat, const Mat& distCoeffs, const Size2f& squareSize, vector<Point2f>& corners) const; Mat operator()(const Mat& bg, const Mat& camMat, const Mat& distCoeffs, const Size2f& squareSize, const Point3f& pos, vector<Point2f>& corners) const; Size cornersSize() const; mutable vector<Point3f> corners3d; private: void generateEdge(const Point3f& p1, const Point3f& p2, vector<Point3f>& out) const; Mat generateChessBoard(const Mat& bg, const Mat& camMat, const Mat& distCoeffs, const Point3f& zero, const Point3f& pb1, const Point3f& pb2, float sqWidth, float sqHeight, const vector<Point3f>& whole, vector<Point2f>& corners) const; void generateBasis(Point3f& pb1, Point3f& pb2) const; Mat rvec, tvec; }; }; #endif
[ "simon@makotechnology.com" ]
simon@makotechnology.com
7623c197479ea1d266d5bb70f46ae21e16fa604a
ab0c6c555d8dd777594e0b277e7ea91817ac5f08
/src/logsig.hpp
1a51e1ff9e2d8da3aaad33884cdb5d431580638c
[ "MIT" ]
permissive
hedgefair/iisignature
59e10b794faabb4d40c5e7c3f1c40f1f941991bf
157051fa6ed0d794b6ffde4c98b93f28e4bfd000
refs/heads/master
2021-01-01T20:03:21.550950
2017-07-26T18:03:43
2017-07-26T18:03:43
null
0
0
null
null
null
null
UTF-8
C++
false
false
24,482
hpp
#ifndef LOGSIG_HPP #define LOGSIG_HPP #include "bch.hpp" #include "calcSignature.hpp" #include "makeCompiledFunction.hpp" #include "logSigLength.hpp" #include<map> //#define SHAREMAT struct LogSigFunction{ LogSigFunction(LieBasis basis) : m_s(basis) {} int m_dim, m_level; BasisPool m_s; std::vector<BasisElt*> m_basisElements; FunctionData m_fd; std::unique_ptr<FunctionRunner> m_f; bool canTakeLogOfSig() const { return m_level < 2 || !m_simples.empty(); } //Everything after here is used for the linear algebra calculation of sig -> logsig. std::vector<size_t> m_sigLevelSizes; std::vector<size_t> m_logLevelSizes; //A Simple describes how a certain element of a level of a logsig is just //a constant multiple of a certain element of a level of a sig. struct Simple { size_t m_dest, m_source; float m_factor; }; std::vector<std::vector<Simple>> m_simples; //SmallSVD is the data for a small part (block) of the mapping. //m_sources is the indices of the relevant elements of the level of the sig //m_dests is the indices of the relevant elements of the level of the logsig //m_matrix has shape sources*dests when we fill them. //In the python addin, they are replaced with their //pseudoinverses at the end of prepare(), //so that it ends up with shape dests*sources //Todo as a performance optimization in prepare(): // -some of these matrices are identical and should be pinv'd once, e.g. those corresponding // to the sets of Lyndon words {1223, 1232, 1322} and {1224, 1242, 1422} // - not convincingly quicker, perhaps because it takes work to find these cases // and there are not so many of them. This is commented out with #ifdef SHAREMAT. // -beyond that, some are permutation similar, e.g. the above and {1123, 1132, 1213}, and // could also be shared. struct SmallSVD { std::vector<size_t> m_sources, m_dests; std::vector<float> m_matrix; #ifdef SHAREMAT //if m_matrix is empty, look at this element of our element of m_smallSVDs instead size_t m_matrixToUse; #endif }; std::vector<std::vector<SmallSVD>> m_smallSVDs; //In the Lyndon basis, we have a triangularity property, //SmallTriangle is the data for a small lower triangular part (block) of the mapping. //m_sources is the indices of the relevant elements of the level of the sig //m_dests is the indices of the relevant elements of the level of the logsig //m_matrix has shape sources*dests, but m_sources and m_dests are actually the same length. //m_sources[i] is the index of the word which is the same word as the Lyndon word m_dests[i] //If i<j, then m_matrix(i,j) - i.e. m_matrix[i*m_dests.size()+j] - is zero //If i==j, then m_matrix(i,j) - i.e. m_matrix[i*m_dests.size()+j] - is one struct SmallTriangle{ std::vector<size_t> m_sources, m_dests; std::vector<float> m_matrix; #ifdef SHAREMAT //if m_matrix is empty, look at this element of our element of m_smallTriangles instead size_t m_matrixToUse; #endif }; std::vector<std::vector<SmallTriangle>> m_smallTriangles; }; InputPos inputPosFromSingle(Input i){ bool isB = i.m_index<0; auto a = isB ? InputArr::B : InputArr::A; int b = isB ? (-1-i.m_index) : i.m_index-1; return std::make_pair(a,b); } //makes a vector of uniquified values from in, with indices saying where each of the in elements is represented. //I.e. calculates out_vals and out_indices such that out_vals has no repetition and //in[i] is approximately the same as out_vals[out_indices[i]]. //If "being within tol" isn't transitive on your set of numbers then results will be a bit arbitrary. void uniquifyDoubles(const std::vector<double>& in, std::vector<size_t>& out_indices, std::vector<double>& out_vals, double tol){ using P = std::pair<double,std::vector<size_t>>; using I = std::vector<P>::iterator; std::vector<P> initial; initial.reserve(in.size()); for(size_t i=0; i<in.size(); ++i){ initial.push_back(P(in[i],{i})); } std::sort(initial.begin(), initial.end()); auto end = amalgamate_adjacent(initial.begin(), initial.end(), [tol](P& a, P& b){return std::fabs(a.first-b.first)<tol;}, [](I a, I b){ I a2 = a; std::for_each(++a2,b,[a](P& i){a->second.push_back(i.second[0]);}); return true; }); //out_vals.reserve(in.size()); out_vals.clear(); out_indices.resize(in.size()); std::for_each(initial.begin(),end,[&](P& p){ for(size_t i : p.second) out_indices[i]=out_vals.size(); out_vals.push_back(p.first); }); } void makeFunctionDataForBCH(int dim, int level, BasisPool& s, FunctionData& fd, std::vector<BasisElt*>& basisWords, bool justWords, Interrupt interrupt){ using std::vector; using std::make_pair; auto eltList = makeListOfBasisElts(s,dim,level); std::unique_ptr<Polynomial> lhs(new Polynomial); std::unique_ptr<Polynomial> rhs(new Polynomial); if(!justWords){ if (level>20) throw std::runtime_error("Coefficients only available up to level 20"); rhs->m_data.resize(1); for(int i=0; i<dim; ++i) rhs->m_data[0].push_back(std::make_pair(eltList[0][i],basicCoeff(-i-1))); //just the letters in order } for(auto& l : eltList) std::sort(l.begin(),l.end(),[&s](BasisElt* a, BasisElt* b){ return s.lexicographicLess(a,b);}); if(!justWords){ lhs->m_data.resize(level); for(int l=1,i=1; l<=level; ++l) for(auto w : eltList[l-1]){ lhs->m_data[l-1].push_back(std::make_pair(w,basicCoeff(i++))); } } for(auto& l : eltList) for(auto& k : l) basisWords.push_back(k); if(justWords) return; //std::cout<<"bchbefore"<<std::endl; //For bch, poly must be lexicographic. For our purposes in this function, we want lexicographic within levels auto poly = bch(s,std::move(lhs),std::move(rhs),level, interrupt); //std::cout<<"bchdone"<<std::endl; fd.m_length_of_b = dim; using InProduct = vector<Input>; vector<vector<const vector<Input>*>> m_neededProducts; vector<vector<int>> m_neededProduct_indices; m_neededProducts.resize(level); m_neededProduct_indices.resize(level); //printPolynomial(poly,std::cout); //m_neededProducts[i-1] is all the products of i terms which we need. for(auto& l : poly.m_data) for(auto& i : l) for(auto & v : i.second.m_details){ m_neededProducts.at(v.first.size()-1).push_back(&v.first); } for(auto& v : m_neededProducts){ std::sort(v.begin(), v.end(), [](const InProduct* a, const InProduct* b){return *a<*b;}); v.erase(std::unique(v.begin(),v.end(),[](const InProduct* a, const InProduct* b){return *a==*b;}),v.end()); } InProduct temp; for(size_t i = 1; i<m_neededProducts.size(); ++i) { vector<int>& outputIdx = m_neededProduct_indices[i]; const auto& prev = m_neededProducts[i-1]; for(auto& j : m_neededProducts[i]){ if(i==1){//len==2, so easy fd.m_formingT.push_back(std::make_pair(inputPosFromSingle((*j)[0]),inputPosFromSingle((*j)[1]))); } else { bool found=false; for(size_t k=0; k<j->size(); ++k){ temp = *j; temp.erase(temp.begin()+k); auto it = std::lower_bound(prev.begin(),prev.end(),temp, [](const InProduct* a, const InProduct& b){return *a<b;}); if(it!=prev.end() && **it == temp){ found=true; fd.m_formingT.push_back(std::make_pair(inputPosFromSingle((*j)[k]), std::make_pair(InputArr::T,m_neededProduct_indices[i-1][it-prev.begin()]))); break; } } if(!found){ //more exhaustive search not implemented std::cout<<"help, not found, level="<<i+1<<std::endl; throw std::runtime_error("I couldn't find a product to make"); } } outputIdx.push_back((int)fd.m_formingT.size()-1); } } interrupt(); vector<double> wantedConstants;//sorted size_t lhs_index=0; for(auto& tt : poly.m_data) for(Term& t : tt){ //first do the whole thing assuming no uniquification of constants Coefficient& c = t.second; for(auto& i : c.m_details){ FunctionData::LineData l; l.m_const_offset = (int)wantedConstants.size(); double constant = i.second; if(constant == 0) continue; wantedConstants.push_back(std::fabs(constant)); l.m_negative = constant<0; l.m_lhs_offset = (int)lhs_index; size_t length = i.first.size(); if(length<2) continue; const auto& v = m_neededProducts[length-1]; auto it = std::lower_bound(v.begin(),v.end(),i.first, [](const InProduct* a, const InProduct& b){return *a<b;}); l.m_rhs_offset = m_neededProduct_indices[length-1][it-v.begin()]; fd.m_lines.push_back(l); } ++lhs_index; } vector<size_t> mapping; uniquifyDoubles(wantedConstants,mapping,fd.m_constants,0.00000001); for(auto& l : fd.m_lines){ l.m_const_offset = (int) mapping[l.m_const_offset]; } } //lexicographicLess made into a function object class LessBE{ public: LessBE(BasisPool& basisPool):m_basisPool(&basisPool){} bool operator()(const BasisElt* a, const BasisElt* b) const{ return m_basisPool->lexicographicLess(a,b); } BasisPool* m_basisPool; }; //Given v, a sorted vector<pair<A,B> > which contains (a,x) for exactly one x, //lookupInFlatMap(v,a) returns x. template<typename V, typename A> const typename V::value_type::second_type& lookupInFlatMap(const V& v, const A& a){ auto i = std::lower_bound(v.begin(), v.end(), a, [](const typename V::value_type& p, const A& a){ return p.first<a;}); return i->second; } namespace IISignature_algebra { using std::vector; using std::pair; //it would be nice to use a lambda and decltype here, but visual studio //doesn't allow swapping two lambdas of the same type, //so the vector operations fail. //if x is a basis element for level m, then mappingMatrix[m-1][x] is //the sparse vector which is its image in tensor //space - what we call rho(x) using MappingMatrixLevel = std::map<const BasisElt*, std::vector<std::pair<size_t, float> >, LessBE>; using MappingMatrix = std::vector<MappingMatrixLevel>; MappingMatrix makeMappingMatrix(int /*dim*/, int level, BasisPool &basisPool, const std::vector<BasisElt*> &basisWords, const std::vector<size_t> &sigLevelSizes) { using P = std::pair<size_t, float>; using std::vector; //it would be nice to use a lambda and decltype here, but visual studio //doesn't allow swapping two lambdas of the same type, //so the vector operations fail. vector<std::map<const BasisElt*, vector<P>, LessBE> > m; m.reserve(level); for (int i = 0; i < level; ++i) m.emplace_back(LessBE(basisPool)); for (BasisElt* w : basisWords) { if (w->isLetter()) { m[0][w] = { std::make_pair(w->getLetter(),1.0f) }; } else { auto len1 = w->getLeft()->length(); auto len2 = w->getRight()->length(); auto& left = m[len1 - 1][w->getLeft()]; auto& right = m[len2 - 1][w->getRight()]; std::vector<P> v; for (const auto& l : left) { for (const auto& r : right) { v.push_back(std::make_pair(sigLevelSizes[len2 - 1] * l.first + r.first, l.second*r.second)); v.push_back(std::make_pair(sigLevelSizes[len1 - 1] * r.first + l.first, -l.second*r.second)); } } std::sort(v.begin(), v.end()); v.erase(amalgamate_adjacent_pairs(v.begin(), v.end(), [](const P& a, const P& b) {return a.first == b.first; }, [](P& a, P& b) {a.second += b.second; return a.second != 0; }), v.end()); m[len1 + len2 - 1][w] = std::move(v); } } return m; } //Given a MappingMatrix (contains the information for the mapping BasisElt -> tensor space //fill letterOrderToBE (maps a sorted list of letters to the BEs which have it) //and basisEltToIndex (maps a BE to its index) //based on level lev using Letters_BEs = std::pair<vector<Letter>, vector< const BasisElt*>>; using LetterOrderToBE = std::vector<Letters_BEs>; using BasisEltToIndex = std::vector<std::pair<const BasisElt*, size_t>>; void analyseMappingMatrixLevel(const MappingMatrix& m, int lev, LetterOrderToBE& letterOrderToBE, BasisEltToIndex& basisEltToIndex) { letterOrderToBE.reserve(m.size()); size_t index = 0; for (auto& a : m[lev - 1]) { const BasisElt* p = a.first; std::vector<Letter> l; l.reserve(lev); p->iterateOverLetters([&l](Letter x) {l.push_back(x); }); std::sort(l.begin(), l.end()); letterOrderToBE.push_back(Letters_BEs{ std::move(l),{ p } }); basisEltToIndex.push_back(std::make_pair(p, index++)); } std::stable_sort(letterOrderToBE.begin(), letterOrderToBE.end(), [](const Letters_BEs& a, const Letters_BEs& b) { return a.first < b.first; }); std::sort(basisEltToIndex.begin(), basisEltToIndex.end()); auto end = amalgamate_adjacent(letterOrderToBE.begin(), letterOrderToBE.end(), [](Letters_BEs& a, Letters_BEs& b) {return a.first == b.first; }, [](vector<Letters_BEs>::iterator a, vector<Letters_BEs>::iterator b) { auto aa = a; ++aa; std::for_each(aa, b, [a](Letters_BEs& pp) { a->second.push_back(pp.second[0]); }); return true; }); letterOrderToBE.erase(end, letterOrderToBE.end()); } std::vector<size_t> getLetterFrequencies(const BasisElt* lw) { std::vector<Letter> letters; lw->iterateOverLetters([&](Letter l) {letters.push_back(l); }); std::sort(letters.begin(), letters.end()); Letter lastLetter = letters[0]; size_t n = 0; std::vector<size_t> out; for (Letter l : letters) { if (l == lastLetter) ++n; else { out.push_back(n); lastLetter = l; n = 1; } } out.push_back(n); return out; } class SharedMatrixDetector { //list of alphabetical letter frequencies -> pos in m_smallSVDs[lev-1] std::map<vector<size_t>, size_t> m_freq2Idx; public: //If a calculation has already been done for a basis element with the same letters as w, //put its index in matrixToUse and return false. //If not, remember the potentialNewIndex and return true. bool need(const BasisElt* w, size_t& matrixToUse, size_t potentialNewIndex) { vector<size_t> letterFreqs = getLetterFrequencies(w); auto it_bool = m_freq2Idx.insert(std::make_pair(std::move(letterFreqs), potentialNewIndex)); if (!it_bool.second) { matrixToUse = it_bool.first->second; return false; } return true; } }; void makeSparseLogSigMatrices(int dim, int level, LogSigFunction& lsf, Interrupt interrupt) { using P = std::pair<size_t, float>; using std::vector; lsf.m_sigLevelSizes.assign(1, (size_t)dim); lsf.m_logLevelSizes.assign(1, (size_t)dim); for (int m = 2; m <= level; ++m) lsf.m_sigLevelSizes.push_back(dim*lsf.m_sigLevelSizes.back()); auto m = makeMappingMatrix(dim, level, lsf.m_s, lsf.m_basisElements, lsf.m_sigLevelSizes); for (int lev = 2; lev <= level; ++lev) lsf.m_logLevelSizes.push_back(m[lev - 1].size()); //We next write output based on m. //The idea is that the coefficient of the basis element x in the log signature //is affected by the coefficient of the word y in the signature only if //y and the foliage of x are anagrams. So within each level, we group the basis elements //by the alphabetical list of their letters. lsf.m_simples.resize(level); const bool doTriangles = lsf.m_s.m_basis == LieBasis::Lyndon; lsf.m_smallTriangles.resize(level); lsf.m_smallSVDs.resize(level); for (int lev = 2; lev <= level; ++lev) { interrupt(); LetterOrderToBE letterOrderToBE; BasisEltToIndex basisEltToIndex; analyseMappingMatrixLevel(m, lev, letterOrderToBE, basisEltToIndex); //Now, within lev, letterOrderToBE and basisEltToIndex have been created #ifdef SHAREMAT SharedMatrixDetector detector; #endif for (auto& i : letterOrderToBE) { if (1 == i.second.size()) { LogSigFunction::Simple sim; const BasisElt* lw = i.second[0]; sim.m_dest = lookupInFlatMap(basisEltToIndex, lw); //we can take any we want, so just take the zeroth const P& p = m[lev - 1].at(lw)[0]; sim.m_factor = 1.0f / p.second; sim.m_source = p.first; lsf.m_simples[lev - 1].push_back(sim); } else if (doTriangles) { interrupt(); lsf.m_smallTriangles[lev - 1].push_back(LogSigFunction::SmallTriangle{}); LogSigFunction::SmallTriangle& mtx = lsf.m_smallTriangles[lev - 1].back(); size_t triangleSize = i.second.size(); vector<intptr_t> fullIdxToSourceIdx(lsf.m_sigLevelSizes[lev - 1], -1); for (auto& j : i.second) { mtx.m_dests.push_back(lookupInFlatMap(basisEltToIndex, j)); //The 0 in the next line is relying on the fact that a Lyndon word //comes first in its own expansion - Reutenauer theorem 5.1. //It also comes with coefficient 1, so the diagonal of mtx.m_matrix //will always be 1. size_t fullIdx = m[lev - 1].at(j).at(0).first; mtx.m_sources.push_back(fullIdx); fullIdxToSourceIdx.at(fullIdx) = mtx.m_sources.size()-1u; } #ifdef SHAREMAT if (detector.need(i.second[0], mtx.m_matrixToUse, lsf.m_smallTriangles[lev - 1].size() - 1)) #endif { mtx.m_matrix.assign(triangleSize*triangleSize, 0); //note that I can use mtx.m_sources to look up the index of each Lyndon word for (size_t col = 0; col < triangleSize; ++col) { auto lw = i.second[col]; for (auto& p : m[lev - 1][lw]) { intptr_t row = fullIdxToSourceIdx.at(p.first); if (row != -1) { mtx.m_matrix[((size_t)row)*triangleSize + col] = p.second; } } } } } else { interrupt(); lsf.m_smallSVDs[lev - 1].push_back(LogSigFunction::SmallSVD{}); LogSigFunction::SmallSVD& mtx = lsf.m_smallSVDs[lev - 1].back(); //sourceMap maps expanded (i.e. pos in level of sig) to contracted (i.e. pos in our block) //map seems to perform better here than a vector<std::pair<size_t,size_t>> std::map<size_t, size_t> sourceMap; for (auto& j : i.second) { mtx.m_dests.push_back(lookupInFlatMap(basisEltToIndex, j)); for (auto& k : m[lev - 1].at(j)) { sourceMap[k.first] = 0;//this element will very often be already present } } size_t idx = 0; for (auto& j : sourceMap) { j.second = idx++; mtx.m_sources.push_back(j.first); } #ifdef SHAREMAT if (detector.need(i.second[0], mtx.m_matrixToUse, lsf.m_smallSVDs[lev - 1].size() - 1)) #endif { mtx.m_matrix.assign(mtx.m_dests.size()*mtx.m_sources.size(), 0); for (size_t j = 0; j < i.second.size(); ++j) { for (P& k : m[lev - 1].at(i.second[j])) { size_t rowBegin = sourceMap[k.first] * mtx.m_dests.size(); mtx.m_matrix[rowBegin + j] = k.second; } } } } } /* for (auto& i : letterOrderToBE) { std::cout << i.second.size() << ","; } std::cout << std::endl; for (auto& i : letterOrderToBE) { if (i.second.size() > 130) { std::cout << i.second.size() << ","; for (Letter l : i.first) { printLetterAsDigit(l, std::cout); } std::cout << "\n"; } } */ } } } void projectExpandedLogSigToBasis(double* out, const LogSigFunction* lsf, const CalcSignature::CalculatedSignature& sig) { size_t writeOffset = 0; std::vector<float> rhs; for (float f : sig.m_data[0]) out[writeOffset++] = f; for (int l = 2; l <= lsf->m_level; ++l) { const size_t loglevelLength = lsf->m_logLevelSizes[l - 1]; for (const auto& i : lsf->m_simples[l - 1]) { out[writeOffset + i.m_dest] = sig.m_data[l - 1][i.m_source] * i.m_factor; } for (auto& i : lsf->m_smallTriangles[l - 1]) { size_t triangleSize = i.m_dests.size(); auto mat = #ifdef SHAREMAT i.m_matrix.empty() ? lsf->m_smallTriangles[l - 1][i.m_matrixToUse].m_matrix.data() : #endif i.m_matrix.data(); for (size_t dest = 0; dest < triangleSize; ++dest) { double sum = 0; for (size_t source = 0; source < dest; ++source) { sum += mat[dest*triangleSize + source] * out[writeOffset + i.m_dests[source]]; } double newVal = sig.m_data[l - 1][i.m_sources[dest]] - sum; out[writeOffset + i.m_dests[dest]] = newVal; } } for (auto& i : lsf->m_smallSVDs[l - 1]) { auto mat = #ifdef SHAREMAT i.m_matrix.empty() ? lsf->m_smallSVDs[l - 1][i.m_matrixToUse].m_matrix.data() : #endif i.m_matrix.data(); size_t nSources = i.m_sources.size(); rhs.resize(nSources); for (size_t j = 0; j < nSources; ++j) rhs[j] = sig.m_data[l - 1][i.m_sources[j]]; for (size_t j = 0; j < i.m_dests.size(); ++j) { double val = 0; for (size_t k = 0; k < nSources; ++k) val += mat[nSources*j + k] * rhs[k]; out[writeOffset + i.m_dests[j]] = val; } } writeOffset += loglevelLength; } } struct WantedMethods{ bool m_compiled_bch = true; bool m_simple_bch = true; bool m_log_of_signature = true; bool m_expanded = false; bool m_want_matchCoropa = false; }; //This function sets up the members of lsf. It occasionally calls interrupt void makeLogSigFunction(int dim, int level, LogSigFunction& lsf, const WantedMethods& wm, Interrupt interrupt){ using std::vector; lsf.m_dim = dim; lsf.m_level = level; const bool needBCH = wm.m_compiled_bch || wm.m_simple_bch; makeFunctionDataForBCH(dim,level,lsf.m_s,lsf.m_fd, lsf.m_basisElements,!needBCH, interrupt); interrupt(); if(wm.m_compiled_bch) lsf.m_f.reset(new FunctionRunner(lsf.m_fd)); else lsf.m_f.reset(nullptr); interrupt(); if(wm.m_log_of_signature) IISignature_algebra::makeSparseLogSigMatrices(dim,level,lsf,interrupt); } //interpret a string as a list of wanted methods, return true on error bool setWantedMethods(WantedMethods& w, int dim, int level, bool consumer, const std::string& input){ const auto npos = std::string::npos; bool noInput = npos == input.find_first_of("cCdDoOsSxX"); //no method (DCOSX) is given bool doDefault= (noInput && !consumer) || npos!=input.find_first_of("dD"); bool defaultIsCompiled = (dim==2 && level<10) || (dim>2 && dim<10 && level < 5); bool doEverything = noInput && consumer; bool forceCompiled = (defaultIsCompiled && doDefault) || doEverything; bool forceLog = (!defaultIsCompiled && doDefault) || doEverything; w.m_compiled_bch = forceCompiled || npos!=input.find_first_of("cC"); w.m_simple_bch=doEverything || (npos!=input.find_first_of("oO")); w.m_log_of_signature = forceLog || (npos!=input.find_first_of("sS")); w.m_expanded = (npos != input.find_first_of("xX")); w.m_want_matchCoropa = (npos != input.find_first_of("hH")); return npos!=input.find_first_not_of("cCdDhHoOsSxX "); } const char* const methodError = "Invalid method string. Should be 'D' (default), 'C' (compiled), " "'O' (simple BCH object, not compiled), " "'S' (by taking the log of the signature), " "or 'X' (to report the expanded log signature), " "or some combination - order ignored, possibly with 'H', or None."; //rename LogSigFunction to LogSigData #endif
[ "bottler@github.com" ]
bottler@github.com
6091361e4c558183d41f2d177ed261de369219a4
043f873d808df18dddee13f10c4d07e8ea81ef6e
/AdvancedCppUdemy/028 overloading the dereference operator/028 overloading the dereference operator/Complex.h
82da2b7d216305eaa5c06fc2517d13077ec82324
[]
no_license
nguyenviettien13/CodeLearning
3e318e527601ad44f5fe99760fb6138ed48e3871
666bacd5d9a1023171f481a330712357236e0439
refs/heads/master
2021-09-25T02:30:40.795527
2018-10-16T16:01:46
2018-10-16T16:01:46
153,311,228
1
0
null
null
null
null
UTF-8
C++
false
false
132
h
#pragma once class Complex { private: double real; double imaginary; public: Complex(); Complex(); ~Complex(); };
[ "tiennv000@gmail.com" ]
tiennv000@gmail.com
ad08b9d810cc32c337942a6dbe6070d81ec44691
dba99c936163ced1fdff7fb37a5f20a181636315
/GM/DlgNtile.h
93d74ce74be2e245a1c563a94b0459ac724ca610
[ "MIT" ]
permissive
BrentEaston/cbwindows
4aab69b63bc0153f23b7e2d141cefbaf29a5ff71
51b44d2e71aec0c9fe41795bc8c99cc905668517
refs/heads/master
2023-02-04T18:26:25.657907
2020-11-22T19:32:27
2020-11-22T21:35:56
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,243
h
// DlgNtile.h : header file // // Copyright (c) 1994-2020 By Dale L. Larson, All Rights Reserved. // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // ///////////////////////////////////////////////////////////////////////////// // CNewTileDialog dialog class CBoardManager; class CNewTileDialog : public CDialog { // Construction public: CNewTileDialog(CWnd* pParent = NULL); // standard constructor // Dialog Data //{{AFX_DATA(CNewTileDialog) enum { IDD = IDD_NEWTILE }; CEdit m_editWidth; CEdit m_editHeight; CComboBox m_comboBoard; UINT m_nHeight; UINT m_nWidth; //}}AFX_DATA UINT m_nHalfHeight; UINT m_nHalfWidth; CBoardManager* m_pBMgr; // Implementation protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support // Generated message map functions //{{AFX_MSG(CNewTileDialog) virtual BOOL OnInitDialog(); afx_msg void OnSelChangeBoardName(); afx_msg void OnUpdateHeight(); afx_msg void OnUpdateWidth(); virtual void OnOK(); afx_msg BOOL OnHelpInfo(HELPINFO* pHelpInfo); afx_msg void OnContextMenu(CWnd* pWnd, CPoint point); //}}AFX_MSG DECLARE_MESSAGE_MAP() };
[ "dlarson42@gmail.com" ]
dlarson42@gmail.com
04a0479fed961ec6e404752148ae5a3b763be020
b96cf1a24dfc2cb1a2a113a8db06eae167efe204
/Laborator/include/Lab2.h
e7dff6b13aa00d515859b7c336a3a977f773b3d9
[ "MIT" ]
permissive
Soare-Robert-Daniel/Teoria-Algoritmilor
83f3a9bb44b3f6631b98c10a9a40a4c7b0bcb28e
8314fc4745d016f78e6e1cab1f1e6d1b99f53c65
refs/heads/master
2021-03-08T06:40:33.238148
2020-03-19T15:30:03
2020-03-19T15:30:03
246,327,007
0
0
null
null
null
null
UTF-8
C++
false
false
3,831
h
#ifndef LAB2_H_INCLUDED #define LAB2_H_INCLUDED #include <iostream> using namespace std; /* DIVIDE ET IMPERA */ /* Sortare prin interclasare (Merge Sort) */ void interclasare(int *v, int stanga, int mijloc, int dreapta); void merge_divide(int *v, int stanga, int dreapta); void merge_sort(const int n, int *v); void exemple_merge_sort() { int n = 6; int v[6] = {3, -1, 2, 0, 1, 4}; cout <<"# Merge sort\n"; for(int i = 0; i < n; ++i) { cout << v[i] << " "; } cout << " -> "; merge_sort(n, v); for (int i = 0; i < n; ++i) { cout << v[i] << " "; } cout << "\n"; } void merge_sort(const int n, int *v) { merge_divide(v, 0, n - 1); } void merge_divide(int *v, int stanga, int dreapta) { if(stanga < dreapta) { // impart problema in doua subprobleme int mijloc = (stanga + dreapta) / 2; merge_divide(v, stanga, mijloc); merge_divide(v, mijloc + 1, dreapta); // combin solutiile interclasare(v, stanga, mijloc, dreapta); } } void interclasare(int *v, int stanga, int mijloc, int dreapta) { // definesc cei 2 vectori care urmeaza sa fie interclasati const int dd = dreapta - mijloc; // definesc dimensiunile vectorilor const int ds = mijloc - stanga + 1; int vs[ds], vd[dd]; for(int i = 0; i < ds; ++i) { vs[i] = v[i + stanga]; } for (int i = 0; i < dd; ++i) { vd[i] = v[i + (mijloc + 1)]; } // interclasez cei 2 vectori int i = 0; // iterator pentru vectorul stang int j = 0; // iterator pentru vectorul drept int original = stanga;// iterator pentru vectorul `v` care va suprascrie vectorul original while(i < ds && j < dd) { if(vs[i] < vd[j]) { v[original] = vs[i]; i ++; original ++; } else { v[original] = vd[j]; j++; original++; } } // pun elementele ramase for(int iter = i; iter < ds; ++iter ) { v[original] = vs[iter]; original++; } for (int iter = j; iter < dd; ++iter) { v[original] = vd[iter]; original++; } } /* Turnurile din Haoi */ void hanoi(int discuri, int ia_din_tija, int pune_in_tija) { if(discuri == 1) { cout << "Mut din " << ia_din_tija << " in " << pune_in_tija << endl; } else { int tija_suport = 6 - ia_din_tija - pune_in_tija; hanoi(discuri - 1, ia_din_tija, tija_suport); cout << "Mut din " << ia_din_tija << " in " << pune_in_tija << endl; hanoi(discuri - 1, tija_suport, pune_in_tija); } } void exemplu_turn_hanoi() { cout << "# Hanoi cu 3 discuri\n"; hanoi(3, 1, 2); } /* Cel mai mic divizor comun al unei multimi de numere */ int cmmdc_2(int a, int b); int cmmdc(int *v, int stanga, int dreapta); void exemplu_cmmdc() { cout <<"# Cel mai mare divizor comun pentru o lista de numere\n"; const int n = 6; int v[n] = {10, 15, 20, 25, 30, 35}; for (int i = 0; i < n; ++i) { cout << v[i] << " "; } cout << " -> CMMDC: " << cmmdc(v, 0, n - 1); } int cmmdc(int *v, int stanga, int dreapta) { if(stanga == dreapta) { return v[stanga]; } if(dreapta - stanga == 2) { return cmmdc_2(v[stanga], v[dreapta]); } int mijloc = (stanga + dreapta) / 2; int cmmmdc_stanga = cmmdc(v, stanga, mijloc); int cmmmdc_dreapta = cmmdc(v, mijloc + 1, dreapta); return cmmdc_2(cmmmdc_stanga, cmmmdc_dreapta); } int cmmdc_2(int a, int b) { while (b != a) { if (a < b) { b -= a; } else { a -= b; } } return a; } #endif
[ "soarerobert17@gmail.com" ]
soarerobert17@gmail.com
9b14165e35e64196fa17ae93394716b5917b2c1d
3f12eef880d35c9c6e526db8744748c9ebfeb257
/W03/array/array.h
bd5abe38cc1faafee1bbfbd1d8bb098899ca2189
[]
no_license
LouisDo2108/HCMUS_APCS_CS202
05ede0f9f0660b62a4378132bb81779a92b9e867
3692c71e3d712d71fa39e1b029cda21597b4f61e
refs/heads/master
2023-01-22T08:21:09.991195
2020-12-05T15:17:06
2020-12-05T15:17:06
null
0
0
null
null
null
null
UTF-8
C++
false
false
626
h
#ifndef header #define header #include <iostream> using namespace std; class IntArray { public: IntArray(); IntArray(const int n); IntArray(const int a[], const int n); IntArray(const IntArray &rhs); ~IntArray(); int &operator[](const int n); IntArray &operator=(IntArray rhs); friend istream &operator>>(istream &in, IntArray &rhs); friend ostream &operator<<(ostream &out, const IntArray &rhs); explicit operator int() const { int sum = 0; for (int i = 0; i < n; ++i) sum += arr[i]; return sum; } private: int *arr, n; }; #endif
[ "louisdo2108@gmail.com" ]
louisdo2108@gmail.com
aae9034dd14743a853752fec719ac0d5891af4f2
4a3f46574523fd0a5fd07e6605de9e7616a9f58f
/display/core/DisplayClass.cc
1843867485c0e5f6a3b897d5811e6a4e79924486
[]
no_license
cheidegg/MPAFforSF
ef59d2cde563c6f060f42d8df435d125766845df
738185670c985aa2c010cd1097a8cae1a26579b2
refs/heads/master
2021-01-10T13:32:23.718706
2015-11-30T12:21:20
2015-11-30T12:21:20
46,559,383
0
0
null
null
null
null
UTF-8
C++
false
false
84,928
cc
#include "display/core/DisplayClass.hh" #include "tools/src/HistoUtils.hh" ClassImp(DisplayClass) DisplayClass::DisplayClass(): _c(0),_leg(0),_empty(0),_hMC(0),_hData(0),_gData(0) { TGaxis::SetMaxDigits(3); TH1::SetDefaultSumw2(true); TH1::AddDirectory(kFALSE); _rmLabel=false; _lockData=false; _datNorm=1.; _uncDet =false; _mcSyst=false; _is1D=true; _is2D=false; _isProf=false; _comSyst=true; _mcSystComputed=false; _userYScale=false; _dOnly=true; _cumulative=false; _fitStr=""; _fitNorm = new Renorm(); _lumi = 1.; } DisplayClass::~DisplayClass() { } void DisplayClass::reset() { _gWeights.clear(); _colors.clear(); _names.clear(); _absNorm.clear(); _ghosts.clear(); _iNs.clear(); _normOpts.clear(); _vars.clear(); _lockData=false; _rmLabel=false; _datNorm=1.; delete _empty; delete _hMC; delete _hData; delete _gData; for(size_t ii=0;ii<_hClones.size();ii++) delete _hClones[ii]; _hClones.clear(); for(size_t ii=0;ii<_hClonesNoStack.size();ii++) delete _hClonesNoStack[ii]; _hClonesNoStack.clear(); for(size_t ii=0;ii<_hSigClones.size();ii++) delete _hSigClones[ii]; _hSigClones.clear(); for(size_t ii=0;ii<_mcUncert.size();ii++) delete _mcUncert[ii]; _mcUncert.clear(); for(size_t ix=0;ix<_pads.size();ix++) for(size_t iy=0;iy<_pads[ix].size();iy++) { delete _pads[ix][iy]; } _pads.clear(); delete _leg; delete _c; _empty=NULL; _hMC=NULL; _hData=NULL; _gData=NULL; _c=NULL; _leg=NULL; _hCoords.clear(); _uncDet =false; _is1D=true; _is2D=false; _isProf=false; _xmin = _xCoordSave[0]; _xmax = _xCoordSave[1]; _gBin = _binningSave; _cNames.clear(); _mcSystComputed=false; } void DisplayClass::softReset() { delete _empty; delete _hMC; delete _hData; delete _gData; for(size_t ii=0;ii<_hClones.size();ii++) delete _hClones[ii]; _hClones.clear(); for(size_t ii=0;ii<_hClonesNoStack.size();ii++) delete _hClonesNoStack[ii]; _hClonesNoStack.clear(); for(size_t ii=0;ii<_hSigClones.size();ii++) delete _hSigClones[ii]; _hSigClones.clear(); for(size_t ii=0;ii<_mcUncert.size();ii++) delete _mcUncert[ii]; _mcUncert.clear(); for(size_t ix=0;ix<_pads.size();ix++) for(size_t iy=0;iy<_pads[ix].size();iy++) { delete _pads[ix][iy]; } _pads.clear(); delete _leg; delete _c; _empty=NULL; _hMC=NULL; _hData=NULL; _gData=NULL; _c=NULL; _leg=NULL; _hCoords.clear(); _cNames.clear(); _mcSystComputed=false; } void DisplayClass::refreshHistos() { for(size_t ii=0;ii<_hClones.size();ii++) delete _hClones[ii]; _hClones.clear(); for(size_t ii=0;ii<_hClonesNoStack.size();ii++) { delete _hClonesNoStack[ii]; } _hClonesNoStack.clear(); for(size_t ii=0;ii<_hSigClones.size();ii++) delete _hSigClones[ii]; _hSigClones.clear(); for(size_t ii=0;ii<_mcUncert.size();ii++) delete _mcUncert[ii]; _mcUncert.clear(); delete _leg; _leg=NULL; delete _empty; delete _hMC; delete _hData; delete _gData; _empty=NULL; _hMC=NULL; _hData=NULL; _gData=NULL; _hCoords.clear(); _mcSystComputed=false; } void DisplayClass::setFitStr(string str) { _fitStr=str; } void DisplayClass::setNormalization(string str) { size_t b=(size_t)-1; if(str.find("dnorm")!=b || str.find("DNorm")!=b || str.find("dNorm")!=b || str.find("Dnorm")!=b ) _normOpts.insert("dnorm"); else if( str.find("norm")!=b || str.find("Norm")!=b ) _normOpts.insert("norm"); else if( str.find("dif")!=b || str.find("Dif")!=b ) _normOpts.insert("dif"); else if( str.find("uni")!=b || str.find("Uni")!=b ) _normOpts.insert("uni"); else if( str.find("fit")!=b || str.find("Fit")!=b ) _normOpts.insert("fit"); // if(str.find("w")!=b) { // size_t pos = str.find("w"); // size_t pos = str.find("w"); // } // if(str.find("c")!=b) { // } } void DisplayClass::loadAutoBinning(string filename) { if(filename=="") return; string ndb= (string)getenv("MPAF")+"/display/cards/"+filename; ifstream fDb( ndb.c_str(), ios::in ); if(fDb) { string line; while(getline(fDb, line)) { istringstream iss(line); vector<string> tks; copy(istream_iterator<string>(iss), istream_iterator<string>(), back_inserter<vector<string> >(tks)); string var = tks[0]; int bin = atoi(tks[1].c_str()); float xmin = atof(tks[2].c_str()); float xmax = atof(tks[3].c_str()); vector<float> vals(3,0); vals[0] = bin; vals[1] = xmin; vals[2] = xmax; _autoBins[ var ] = vals; _autoVars.push_back(var); } } else { cout<<"Warning, auto binning file "<<ndb<<" not loaded, no auto binning specified"<<endl; } } void DisplayClass::setObservables(string v1, string v2, string v3, string v4, string v5, string v6) { _vars.clear(); _vars.push_back(v1); if(v2!="") _vars.push_back(v2); if(v3!="") _vars.push_back(v3); if(v4!="") _vars.push_back(v4); if(v5!="") _vars.push_back(v5); if(v6!="") _vars.push_back(v6); _nvars=_vars.size(); } // void // DisplayClass::getSystUnc( TGraphAsymmErrors* mcUnc) { // _mcUncert = mcUnc; // } vector<vector<TPad*> > DisplayClass::preparePads() { // float m=1.3; size_t n_ = max( (size_t)1,_nvars); float m=1.3-(n_-1)*.1; //other vector<TPad*> padhigh_; vector<vector<TPad*> > pad_; Double_t e_ = 35*m; //15 Double_t t_ = 30*m; //30 Double_t b_ = 70*m; //80 Double_t g_ = 85*m; //87 //Double_t d_ = 35*m; //30 Double_t d_ = e_; //30 Double_t h_ = 375*m; //400 Double_t w_ = 375*m; //350 Double_t ww_ = g_ + w_ + e_ ; Double_t W_ = g_ + n_*w_ + (n_-1)*(g_-e_) + n_*d_; Double_t H_ = t_ + h_ + b_ ; _wpad = ww_; _hpad = H_; _c=new TCanvas("variables","variables",100,100,W_,H_); Double_t xlow_= 0; Double_t ylow_=0.; Double_t xup_=0; Double_t yup_=1.; for(int unsigned i=0;i<n_;i++) { TString padname_("pad_"); padname_+=i; xup_ = xlow_ + ww_ /W_; TPad* padtmp = new TPad( padname_, padname_, xlow_, ylow_, xup_, yup_, kWhite,0,0); //xlow_ += (w_ + 2*e_)/W_; xlow_ += (w_ + g_)/W_; padtmp->SetLeftMargin( g_/ww_ ); padtmp->SetRightMargin( e_/ww_ ); padtmp->SetTopMargin( t_/H_ ); padtmp->SetBottomMargin( b_/H_ ); padtmp->SetFillColor(0); padtmp->SetTickx(1); padtmp->SetTicky(1); padtmp->SetFrameFillStyle(0); padtmp->SetFrameLineWidth(2); padtmp->SetFrameBorderMode(0); padhigh_.push_back(padtmp); } pad_.push_back(padhigh_); return pad_; } vector<vector<TPad*> > DisplayClass::preparePadsWithRatio() { float m=1.3; size_t n_ = max((size_t)1,_nvars); vector<TPad*> padhigh_; vector<TPad*> padlow_; Double_t e_ = 15*m; //15 Double_t k_ = 7*m; //15 Double_t t_ = 30*m; //30 Double_t b_ = 50*m; //80 Double_t g_ = 87*m; //87 Double_t d_ = 30*m; //30 Double_t h_ = 350*m; //400 Double_t w_ = 350*m; //350 Double_t hl_ = 70*m; Double_t ww_ = g_ + w_ + e_ ; Double_t W_ = g_ + n_*w_ + 2*(n_-1)*e_ + d_; Double_t H_ = t_ + h_ + b_ + hl_ +2*k_ ; _wpad = ww_; _hpad = t_ + h_ +k_ ; _c=new TCanvas("variables","variables",100,100,W_,H_); Double_t xlow_= 0; Double_t ylow_=0.; Double_t xup_=0; Double_t yup_=1.; for(int unsigned i=0;i<n_;i++) { TString padname_("padhigh_"); padname_+=i; xup_ = xlow_ + ww_ /W_; yup_ = 1.; ylow_ = (hl_ + b_ + k_ ) /H_; TPad* padtmp = new TPad( padname_, padname_, xlow_, ylow_, xup_, yup_, kWhite,0,0); xlow_ += (w_ + 2*e_)/W_; padtmp->SetLeftMargin( g_/ww_ ); padtmp->SetRightMargin( e_/ww_ ); padtmp->SetTopMargin( t_/H_ ); padtmp->SetBottomMargin( k_/H_ ); padtmp->SetFillColor(0); padtmp->SetTickx(1); padtmp->SetTicky(1); padtmp->SetFrameFillStyle(0); padtmp->SetFrameLineWidth(_wline); padtmp->SetFrameBorderMode(0); padhigh_.push_back(padtmp); } xlow_= 0; //reset _c->cd(); //reset for(int unsigned i=0;i<n_;i++) { TString padname_("padlow_"); padname_+=i; xup_ = xlow_ + ww_ /W_; yup_ = (hl_ + b_ + k_ ) /H_; ylow_ = 0; TPad* padtmp = new TPad( padname_, padname_, xlow_, ylow_, xup_, yup_, kWhite,0,0); xlow_ += (w_ + 2*e_)/W_; padtmp->SetLeftMargin( g_/ww_ ); padtmp->SetRightMargin( e_/ww_ ); padtmp->SetTopMargin( k_/H_ ); padtmp->SetBottomMargin( b_ /(hl_ + b_ + k_ ) ); padtmp->SetFillColor(0); padtmp->SetTickx(1); padtmp->SetTicky(1); padtmp->SetFrameFillStyle(0); padtmp->SetFrameLineWidth(_wline); padtmp->SetFrameBorderMode(0); padlow_.push_back(padtmp); } vector<vector<TPad*> > pad_; pad_.push_back(padhigh_); pad_.push_back(padlow_); return pad_; } void DisplayClass::preparePadsForSystDetail() { _cSyst = new TCanvas("systematics", "systematics",1250,380); _cSyst->Range(0,0,1,1); _cSyst->SetLeftMargin(0.10); _cSyst->SetRightMargin(0.05); _cSyst->SetTopMargin(0.10); _cSyst->SetBottomMargin(0.2); _cSyst->cd(); _padleft = new TPad( "pleft","pleft", 0,0,945/1250. ,1, kWhite,0,0); _padleft->SetLeftMargin( 0.093 ); _padleft->SetRightMargin( 0.03 ); _padleft->SetTopMargin( 0.04 ); _padleft->SetBottomMargin( 0.21 ); _padleft->SetFillColor(0); _padleft->SetTickx(1); _padleft->SetTicky(1); _padleft->SetFrameFillStyle(0); _padleft->SetFrameLineWidth(_wline); _padleft->SetFrameBorderMode(0); _cSyst->cd(); //reset _padright = new TPad( "pright","pright", 955/1250., 0, 1, 1, kWhite,0,0); _padright->SetLeftMargin( 0.1 ); _padright->SetRightMargin( 0.1 ); _padright->SetTopMargin( 0.1 ); _padright->SetBottomMargin( 0.1 ); _padright->SetFillColor(0); _padright->SetTickx(1); _padright->SetTicky(1); _padright->SetFrameFillStyle(0); _padright->SetFrameLineWidth(_wline); _padright->SetFrameBorderMode(0); } void DisplayClass::plotDistributions(vector<const hObs*> theObs) { //first clean objects for(size_t ix=0;ix<_pads.size();ix++) for(size_t iy=0;iy<_pads[ix].size();iy++) { delete _pads[ix][iy]; } _pads.clear(); delete _leg; delete _c; //==================================== //and initialize weights //==================================== if( _normOpts.find("norm")!=_normOpts.end() || theObs[0]->htype.find("2D")!=(size_t)-1 ) { _showRatio=false; //_addSyst=false; } if(_mcOnly || _dOnly) _showRatio=false; if(_dOnly) { _showRatio=false; _addSyst=false;} if(!_showRatio) _pads = preparePads(); else _pads = preparePadsWithRatio(); _c->Draw(); for(int io=(int)_nvars-1;io>=0;io--) { if(io!=0) _rmLabel=false; refreshHistos(); //prepare the histograms prepareHistograms(theObs[io]); plotDistribution( theObs[io]->htype, theObs[io]->type, io ); } _c->Update(); } void DisplayClass::plotDistribution(const string& htype, const string& type, int iobs) { _c->cd(); _pads[0][iobs]->Draw(); _pads[0][iobs]->cd(); _csystM = _systMUnc[iobs]; //draw the histograms drawDistribution(); _pads[0][iobs]->RedrawAxis(); if(_logYScale) _pads[0][iobs]->SetLogy(1); if(_showGrid) { _pads[0][iobs]->SetGridx(1); _pads[0][iobs]->SetGridy(1); } _pads[0][iobs]->Update(); //Lumi and legend cmsPrel(); _pads[0][iobs]->Update(); if(htype.find("1D")!=(size_t)-1) { //fixme -> legend adjustment not supported for 2D plots adjustLegend(iobs); if(_leg) { TLegend* tmpleg=(TLegend*)_leg->Clone(); tmpleg->Draw("same"); } } _pads[0][iobs]->Update(); if(!_showRatio || htype.find("1D")==(size_t)-1 || type=="u" || !_hMC ) return; _c->cd(); _pads[1][iobs]->Draw(); _pads[1][iobs]->cd(); drawDataMCRatio(); _pads[1][iobs]->RedrawAxis(); _pads[1][iobs]->Update(); } void DisplayClass::configure(string dsname, int col, bool isGhost) { // if(dsname.find("DD")!=(size_t)-1) // _names.push_back( dsname.substr(0,dsname.size()-2) ); // else _ghosts[ dsname ] = isGhost; if(!isGhost) { _names.push_back(dsname); _colors[ dsname ] = col; _iNs.push_back( _ghosts.size()-1 ); } //Check existence of data if(dsname=="data" || dsname=="Data") checkData(); else isNoData(); } void DisplayClass::setWeight(string dsname, float w, bool absNorm) { _gWeights[ dsname ] = w; _saveWeights[ dsname ] = w; } string DisplayClass::getFitVar() { size_t p=_fitStr.find("::"); string nvar=_fitStr.substr(0,p); return nvar; } void DisplayClass::initWeights(const hObs* theobs) { if(_normOpts.find("fit")!=_normOpts.end() ) { prepareHistograms(theobs); _fitNorm->initialize(_hClonesNoStack, _hData, _fitStr); map<string,float> ws=_fitNorm->getWeights(); for(_itW=ws.begin();_itW!=ws.end();_itW++){ _gWeights[ _itW->first ] *= _itW->second; } } else for(_itW=_saveWeights.begin();_itW!=_saveWeights.end();_itW++){ _gWeights[ _itW->first ] = _itW->second; } } void DisplayClass::drawDistribution() { //Drawing now.... (+legend) ============================ if(_is1D) _empty->DrawCopy(); //signals vector<size_t> sigs; string opt; if(_is1D) opt="same hist"; if(_is2D) opt="same box";//box if(_isProf) opt="same"; if( !(_isProf && _is1D) ) { bool f=true; for(size_t i=0;i<_nhmc;i++) { string nh = (string)( _hClones[i]->GetName()); cout<<nh<<endl; if( !_sSignal && nh.find("sig")!=(size_t)-1) sigs.push_back(i); else { if(_is1D) { _hClones[i]->DrawCopy( opt.c_str() ); } else { if(f) { //fixme, this should not be needed.... _hClones[i]->GetXaxis()->SetRangeUser( _xmin, _xmax ); _hClones[i]->GetYaxis()->SetRangeUser( _ymin, _ymax ); _hClones[i]->DrawCopy( "box" ); //"box" f=false; } else { _hClones[i]->DrawCopy( opt.c_str() ); } } } } } // systematic uncertainties now ============ cout<<" systematics? "<<_addSyst<<endl; if(_addSyst && !_is2D && _hMC) { if(_comSyst) { computeSystematics(_isProf,true); } if(_addSyst) { cout<<" ========== adding systematic uncertainties =================== "<<endl; TGraphAsymmErrors* mcUnc = (TGraphAsymmErrors*) _mcUncert.back()->Clone(); mcUnc->SetMarkerSize(0); mcUnc->SetMarkerStyle(1); mcUnc->SetMarkerColor(1); mcUnc->SetFillStyle(3001); mcUnc->SetFillColor(kGray+1); TGraphAsymmErrors* tmpUnc=(TGraphAsymmErrors*)mcUnc->Clone(); tmpUnc->SetName("uncertainties"); tmpUnc->SetTitle("uncertainties"); tmpUnc->Draw("p E2"); } } // the data ============================================== if(_is1D && !_isProf) { if(!_mcOnly && _gData!=NULL) _gData->Draw("p"); if(_hMC!=0 && _normOpts.find("norm")==_normOpts.end() ) _hMC->DrawCopy( opt.c_str() ); } else if(_is1D && _isProf) { if(!_mcOnly) { _hData->SetMarkerStyle(20); _hData->Draw( opt.c_str() ); } if(_hMC!=0 && _normOpts.find("norm")==_normOpts.end()) { _hMC->SetMarkerStyle(24); _hMC->DrawCopy( opt.c_str() ); } } else if(_is2D && !_mcOnly) _hData->DrawCopy( opt.c_str() ); // =========================================== //and finally signals if some exists =========== for(size_t is=0;is<sigs.size();is++) _hClones[ sigs[is] ]->DrawCopy( opt.c_str() ); //=============================================== //Information printing // if(!_is2D) { // if(!_mcOnly && !_dOnly && _normOpts.find("norm")==_normOpts.end()) { // cout<<" Integral : data -> "<< _hData->Integral(0,10000)<<" // MC-> "<<_hMC->Integral(0,10000)<<endl; // } // else if(_mcOnly && _hMC) cout<<" Integral : MC -> "<<_hMC->Integral(0,100000)<<endl; // else if(_dOnly) cout<<" Integral : data -> "<<_hData->Integral(0,100000)<<endl; // if(!_dOnly) { // float tmp=0; // for(size_t ih=0;ih<_nhmc;ih++) { // cout<<"\t"<<_names[ih]<<" : "<<_hClones[_nhmc-ih-1]->Integral(0,10000000)-tmp<<endl; // tmp = _hClones[_nhmc-ih-1]->Integral(0,10000000); // } // } // } printInteg(0,1000000,0,1000000); } void DisplayClass::changeGeVToTeV(TH1*& h,string xtitle, string ytitle, float xmin, float xmax, float ymin, float ymax, string hType, bool& xAxTeV, bool& yAxTeV) { bool isXTitle=xtitle.find("GeV")!=(size_t)-1; bool isYTitle=ytitle.find("GeV")!=(size_t)-1; bool changeX = isXTitle && (fabs(xmax)>=1000 || fabs(xmin)>=1000 ); bool changeY = isYTitle && (fabs(ymax)>=1000 || fabs(ymin)>=1000 ); if(!changeX && _is1D) return; //1D protection if(!changeY && !changeX) return; //2D protection if(changeX) xAxTeV=true; if(changeY) yAxTeV=true; TH1* tmp=NULL; TH2* tmp2=NULL; float* xBins=NULL; float* yBins=NULL; //Retrieve binning and modify it ======================= if(_is1D) { tmp =(TH1*)(h->Clone()); xBins=new float[ tmp->GetNbinsX()+1 ]; xBins[0] = tmp->GetXaxis()->GetBinLowEdge(1)/(changeX?1000.:1.); for(int ix=0;ix<tmp->GetNbinsX();ix++) xBins[ix+1] = tmp->GetXaxis()->GetBinUpEdge(ix+1)/(changeX?1000.:1.); } if(_is2D) { tmp2 =(TH2*)h->Clone(); xBins=new float[ tmp2->GetNbinsX()+1 ]; yBins=new float[ tmp2->GetNbinsY()+1 ]; xBins[0] = tmp2->GetXaxis()->GetBinLowEdge(1)/(changeX?1000.:1.); for(int ix=0;ix<tmp2->GetNbinsX();ix++) xBins[ix+1] = tmp2->GetXaxis()->GetBinUpEdge(ix+1)/(changeX?1000.:1.); yBins[0] = tmp2->GetYaxis()->GetBinLowEdge(1)/(changeY?1000.:1.); for(int iy=0;iy<tmp2->GetNbinsY();iy++) yBins[iy+1] = tmp2->GetYaxis()->GetBinUpEdge(iy+1)/(changeY?1000.:1.); } //========================================================= if(_is1D) { h =new TH1F(tmp->GetName(), tmp->GetTitle(), tmp->GetNbinsX(), xBins ); //color/style/title HistoUtils::copyStyle(tmp,h); for(int ib=0;ib<tmp->GetNbinsX()+2;ib++) { h->SetBinContent(ib, tmp->GetBinContent(ib) ); h->SetBinError(ib, tmp->GetBinError(ib) ); } delete tmp; } else { TH2F* htmp =new TH2F(tmp2->GetName(), tmp2->GetTitle(), tmp2->GetNbinsX(), xBins, tmp2->GetNbinsY(), yBins ); //color/style/title HistoUtils::copyStyle((TH1*)tmp2,(TH1*&)htmp); for(int ix=0;ix<tmp2->GetNbinsX()+2;ix++) { for(int iy=0;iy<tmp2->GetNbinsY()+2;iy++) { htmp->SetBinContent(ix,iy, tmp2->GetBinContent(ix,iy) ); htmp->SetBinError(ix,iy, tmp2->GetBinError(ix,iy) ); } } h = (TH1*)htmp->Clone(); delete htmp; delete tmp2; } } void DisplayClass::prepareHistograms(const hObs* theobs) { // //bypass for ghost datasets ===== // for(size_t ih=0;ih<_nhmc;ih++) { // cout<<ih<<" "<<_names[_nhmc-ih-1]<<" "<<_nhmc<<endl; // cout<<(_ghosts.find( _names[_nhmc-ih-1] ) )->second<<endl; // if( (_ghosts.find( _names[_nhmc-ih-1] ) )->second ) continue; // //=============================== // } // _nh=theobs->hs.size(); // _nhmc=_mcOnly?_nh:_nh-1; // _ihd=_mcOnly?-1:_nhmc; _nh=_iNs.size(); _nhmc=_mcOnly?_nh:_nh-1; _ihd=_mcOnly?-1:theobs->hs.size()-1; //first, remove ghost datasets === vector<TH1*> hTmps(_nhmc,0); //size_t sTmp=_ghosts.size(); for(size_t it=0;it<_nhmc;it++) { size_t ih = (size_t)_iNs[_nhmc-it-1]; hTmps[it] = (TH1*)theobs->hs[ih]->Clone(); hTmps[it]->Scale( _lumi ); } //================================ _is1D=theobs->htype.find("1D")!=(size_t)-1; _is2D=theobs->htype.find("2D")!=(size_t)-1; _isProf=theobs->htype.find("P")!=(size_t)-1; //Histo Cloning and coloring =========== //Stacking and weighting ============== for(size_t ii=0;ii<_hClones.size();ii++) delete _hClones[ii]; _hClones.clear(); for(size_t ii=0;ii<_hClonesNoStack.size();ii++) delete _hClonesNoStack[ii]; _hClonesNoStack.clear(); for(size_t ii=0;ii<_hSigClones.size();ii++) delete _hSigClones[ii]; _hSigClones.clear(); delete _empty; delete _hMC; delete _hData; delete _gData; _hClones.resize(_nhmc); _hClonesNoStack.resize(_nhmc); _hMC= NULL; _hData = NULL; _gData = NULL; size_t nsig=0; float iMC=0.; float iData=0.; for(size_t ih=0;ih<_nhmc;ih++) { _itCol = _colors.find( _names[_nhmc-ih-1] ); _itW = _gWeights.find( _names[_nhmc-ih-1] ); _hClones[ih] = (TH1*)hTmps[ih]->Clone(); _hClonesNoStack[ih] = (TH1*)hTmps[ih]->Clone(); string nh=""; if(_normOpts.find("norm")==_normOpts.end() || _is2D) { iMC += _hClones[ih]->Integral(0,1000000); nh = (string)( _hClones[ih]->GetName()); if(nh.find("sig")!=(size_t)-1 && !_sSignal) nsig++; if( nh.find("sig")==(size_t)-1 || (_sSignal && nh.find("sig")!=(size_t)-1 ) ) { for(size_t ij=ih+1;ij<(_noStack?min(ih+1,_nhmc):_nhmc);ij++) { string nh2 = (string)( hTmps[ih]->GetName()); if( nh2.find("sig")==(size_t)-1 ) _hClones[ih]->Add( (TH1*)hTmps[ij]->Clone(), _itW->second ); else if( _sSignal ) _hClones[ih]->Add( (TH1*)hTmps[ij]->Clone(), _itW->second ); } } } else { //FIXME if(_hClones[ih]->Integral(0,10000000)!=0.) _hClones[ih]->Scale( 1./ _hClones[ih]->Integral(0,10000000) ); iMC += _hClones[ih]->Integral(0,1000000); } _hClones[ih]->SetLineColor( _itCol->second ); _hClones[ih]->SetFillColor( _itCol->second ); _hClones[ih]->SetMarkerColor( _itCol->second ); _hClones[ih]->SetLineWidth( _wLine ); _hClones[ih]->SetMarkerStyle( 0 ); _hClones[ih]->GetYaxis()->SetLabelSize(0); _hClones[ih]->GetYaxis()->SetTitleSize(0); _hClones[ih]->GetYaxis()->SetLabelOffset(1000); _hClones[ih]->GetYaxis()->SetTitleOffset(1000); _hClones[ih]->GetXaxis()->SetLabelOffset(1000); _hClones[ih]->GetXaxis()->SetTitleOffset(1000); _hClones[ih]->GetYaxis()->SetNdivisions(0,0,0); _hClones[ih]->GetYaxis()->SetNdivisions(0,0,0); _hClonesNoStack[ih]->SetLineColor( _itCol->second ); _hClonesNoStack[ih]->SetFillColor( _itCol->second ); _hClonesNoStack[ih]->SetMarkerColor( _itCol->second ); if( !_sSignal && nh.find("sig")!=(size_t)-1) { _hClones[ih]->SetFillStyle(0); _hClones[ih]->SetLineWidth(2); } if(_normOpts.find("norm")!=_normOpts.end()) { _hClones[ih]->SetFillStyle(0); _hClones[ih]->SetLineWidth(2); } if(ih<_nhmc-1) { _itCol++;_itW++; } } if(!_mcOnly) { _hData = (TH1*)theobs->hs[_ihd]->Clone(); iData = _hData->Integral(0,1000000); } //normalization to data ===================== if(_normOpts.find("dnorm")!=_normOpts.end()) { for(size_t ih=0;ih<_nhmc;ih++) { _hClones[ih]->Scale( iData/iMC ); } } //normalization to 1 ===================== if(_normOpts.find("uni")!=_normOpts.end()) { for(size_t ih=0;ih<_nhmc;ih++) { _hClones[ih]->Scale( 1./iMC ); } } //Global Rebinning ====================== float tmpXm=_xmin; float tmpXM=_xmax; if(_autoBins.find(theobs->name)!=_autoBins.end() ) { _gBin = _autoBins[ theobs->name ][0]; _xmin = _autoBins[ theobs->name ][1]; _xmax = _autoBins[ theobs->name ][2]; } else { if(_gBin==0) { //automatic binning _gBin = HistoUtils::autoBinning(_xmin, _xmax, theobs->nBX, theobs->binsX[0], theobs->binsX.back() ); _gBckBin=1; } } //FIXME MM // for(size_t ih=0;ih<_nhmc;ih++) { // cout<<" fixme, line 960 DisplayClass.cc "<<endl; // HistoUtils::manualCompleteRebin(_hClones[ih], 15,0,15); // HistoUtils::manualCompleteRebin(_hClonesNoStack[ih],15,0,15); // } // HistoUtils::manualCompleteRebin(_hData, 15,0,15); //=========================== for(size_t ih=0;ih<_nhmc;ih++) { if(_is1D) { _hClones[ih]->Rebin(_gBin); _hClonesNoStack[ih]->Rebin(_gBin); } if(_is2D) { ((TH2*)_hClones[ih])->Rebin2D(_gBin,_gBin); ((TH2*)_hClonesNoStack[ih])->Rebin2D(_gBin,_gBin); } } if(!_mcOnly) { if(_is1D) _hData->Rebin(_gBin); else ((TH2*)_hData)->Rebin2D(_gBin,_gBin); } //=============================== //Background rebinning for 1D histograms if(_is1D) { for(size_t ih=1;ih<_hClones.size();ih++) { if(_isProf) { HistoUtils::rebin1DHisto(_hClones[ih], _gBckBin ); HistoUtils::rebin1DHisto(_hClonesNoStack[ih], _gBckBin ); } else { HistoUtils::manualRebin(_hClones[ih], _gBckBin ); HistoUtils::manualRebin(_hClonesNoStack[ih], _gBckBin ); } } //histos } //1D condition //========================================== //Overflow/Underflow bins, only for 1D histos== if(_is1D) { if(_overflow) { if(!_mcOnly) HistoUtils::addOverflowBin(_hData, _xmax); for(size_t ih=0;ih<_hClones.size();ih++) { HistoUtils::addOverflowBin(_hClones[ih], _xmax); HistoUtils::addOverflowBin(_hClonesNoStack[ih], _xmax); } } if(_underflow) { if(!_mcOnly) HistoUtils::addUnderflowBin(_hData, _xmin); for(size_t ih=0;ih<_hClones.size();ih++) { HistoUtils::addUnderflowBin(_hClones[ih], _xmin); HistoUtils::addUnderflowBin(_hClonesNoStack[ih], _xmin); } } } //============================================= // differential normalization ============== if(_normOpts.find("dif")!=_normOpts.end()) { for(size_t ih=0;ih<_nhmc;ih++) { HistoUtils::changeToDiffHisto( _hClones[ih] ); } } // ==================================== //Passing from GeV to TeV ===================== bool xAxTeV=false; bool yAxTeV=false; if(_xmin > (_mcOnly?_hClones[0]->GetXaxis()->GetXmax():_hData->GetXaxis()->GetXmax()) ) { _xmin = _mcOnly?_hClones[0]->GetXaxis()->GetXmin():_hData->GetXaxis()->GetXmin(); } _xmin = max( (double)_xmin, _mcOnly?_hClones[0]->GetXaxis()->GetXmin():_hData->GetXaxis()->GetXmin() ); _xmax = min( (double)_xmax, _mcOnly?_hClones[0]->GetXaxis()->GetXmax():_hData->GetXaxis()->GetXmax() ); { if(!_mcOnly) changeGeVToTeV( _hData, theobs->titleX, theobs->titleY, _xmin, _xmax, _ymin, _ymax, theobs->htype, xAxTeV, yAxTeV ); for(size_t ih=0;ih<_hClones.size();ih++) { changeGeVToTeV( _hClones[ih], theobs->titleX, theobs->titleY, _xmin, _xmax, _ymin, _ymax, theobs->htype, xAxTeV, yAxTeV ); } for(size_t ih=0;ih<_hClonesNoStack.size();ih++) { changeGeVToTeV( _hClonesNoStack[ih], theobs->titleX, theobs->titleY, _xmin, _xmax, _ymin, _ymax, theobs->htype, xAxTeV, yAxTeV ); } } //============================================= //data conversion ============================= _gData= NULL; TH1* hData=NULL; if(_is1D && !_mcOnly) { hData=(TH1*)_hData->Clone(); if(_hData->GetEntries()!=0) { if(_normOpts.find("norm")!=_normOpts.end()) _datNorm= 1./_hData->Integral(0,10000000); if(_normOpts.find("dif")!=_normOpts.end() ) HistoUtils::changeToDiffHisto(hData); bool isDif=_normOpts.find("dif")!=_normOpts.end(); _gData = HistoUtils::convertHistoToGraph( _hData, _datNorm, isDif ); _gData->SetMarkerStyle(20); } } //=========================================== //cumulate if needed ========================= if(_cumulative) { for(size_t ih=0;ih<_nhmc;ih++) { TH1* htmp=(TH1*)_hClones[ih]->Clone(); htmp->Reset("icem"); int nb=htmp->GetNbinsX(); for(int ib=0;ib<nb+2;ib++) { for(int ic=0;ic<=ib;ic++) htmp->AddBinContent(ic, _hClones[ih]->GetBinContent(ib) ); } _hClones[ih] = (TH1*)htmp->Clone(); delete htmp; } //Data if(!_mcOnly) { TH1* htmp=(TH1*)_hData->Clone(); htmp->Reset("icem"); int nb=htmp->GetNbinsX(); for(int ib=0;ib<nb+2;ib++) { for(int ic=0;ic<=ib;ic++) { htmp->AddBinContent(ic, _hData->GetBinContent(ib) ); } } _hData = (TH1*)htmp->Clone(); delete htmp; } } //============================================ //MC total =================================== if( _is1D && !_dOnly) { if(_hClones.size()!=nsig) _hMC = (TH1*)_hClones[nsig]->Clone(); _hMC->SetLineWidth(2); _hMC->SetLineColor(kBlack); _hMC->SetFillStyle(0); _hMC->SetName("simulation"); } // =========================================== //Ok, now the empty histo ==================== if(_is1D) { _empty=NULL; if(_hMC) _empty=(TH1*)_hMC->Clone(); else if(_hData) _empty=(TH1*)_hData->Clone(); } else { _empty = (TH1*)((TH1*)(_hClones[0]))->Clone(); } _empty->Reset("ICEM"); _empty->SetName(""); _empty->SetTitle(""); //X axis _xmin = xAxTeV?(_xmin/1000):_xmin; _xmax = xAxTeV?(_xmax/1000):_xmax; _empty->GetXaxis()->SetRangeUser( _xmin, _xmax -0.0001 ); if(_is1D && !_isProf) { if(_overflow) { _empty->GetXaxis()->SetRangeUser(_xmin,_xmax-_empty->GetBinWidth(1)/1.5 -0.0001); if(_underflow) { _empty->GetXaxis()->SetRangeUser(_xmin,_xmax-0.0001); } } if(_underflow) { _empty->GetXaxis()->SetRangeUser(_xmin ,_xmax-0.0001); } } _empty->GetXaxis()->SetNdivisions(_Xdiv[0],_Xdiv[1],_Xdiv[2]); _xtitle=theobs->titleX; _empty->GetXaxis()->SetTitle( xAxTeV?(_xtitle.replace( _xtitle.find("GeV") , 3, "TeV" ) + " ").c_str():(_xtitle+" ").c_str() ); if(_is2D) { _ytitle = theobs->titleY; _empty->GetYaxis()->SetTitle( yAxTeV?(_ytitle.replace( _ytitle.find("GeV") , 3, "TeV" ) + " ").c_str():(_ytitle+" ").c_str() ); } if(_hMC) _hMC->SetTitle( _xtitle.c_str() ); //Y axis =================================== string addbin=""; if(!_isProf && !_is2D) { float bin; if(_hMC!=0) bin = _hMC->GetXaxis()->GetBinWidth(1); else bin = _hData->GetXaxis()->GetBinWidth(1); ostringstream os; os<<bin; size_t p1= _xtitle.find("["); size_t p2= _xtitle.find("]"); if(p1!=(size_t)-1 && p2!=(size_t)-1) { string pBin= (os.str().size()>4)?((os.str()).substr(0,4)):os.str(); addbin=" / "+pBin+" "; addbin += _xtitle.substr(p1+1,p2-p1-1)+" "; if(_xtitle.substr(p1+1,p2-p1-1)=="TeV" && bin<0.1) { ostringstream os2; os2<<bin*1000; addbin=" / "+(os2.str()).substr(0,3)+" GeV "; if(_normOpts.find("dif")!=_normOpts.end()) addbin = " / GeV"; } } else { addbin=" "; } } //==================================================== if(_is1D) { double mcM= (!_hMC)?0.:HistoUtils::getHistoYhighWithError(_hMC,_xmin,_xmax,"G"); double dM= _mcOnly?0.:HistoUtils::getHistoYhighWithError(hData,_xmin,_xmax,"p"); float ymax=max((_hMC!=0)?mcM:1., dM ); ymax *=_logYScale?15:1.5; if(_normOpts.find("norm")!=_normOpts.end()) //CH: temporary fix //ymax = _ymax; ymax =_logYScale?50:min(ymax,(float)1.5); // if(_normOpts.find("dif")!=_normOpts.end()) // ymax /= _hMC->GetBinWidth(0); //temporary fix for(size_t ih=0;ih<_nhmc;ih++) { string nh = (string)( _hClones[ih]->GetName()); if( (!_sSignal && nh.find("sig")!=(size_t)-1) ) { float yM = HistoUtils::getHistoYhighWithError(_hClones[ih],_xmin,_xmax); if(yM>ymax) ymax = yM*(_logYScale?15:1.5); } } float ymin = 10000000000.; for(size_t ih=0;ih<_nhmc;ih++) { string nh = (string)( _hClones[ih]->GetName()); if( !(!_sSignal && nh.find("sig")!=(size_t)-1) ) { float ym = HistoUtils::getHistoYlow(_hClones[ih],_xmin,_xmax); if(ym<ymin) ymin = ym; } } if(!_mcOnly) { float ydmin = HistoUtils::getHistoYlowWithError(hData,_xmin,_xmax); float dY = (!_hMC)?0.:HistoUtils::getMaxDiff(hData, _hMC,_xmin,_xmax); int nd = floor(log(ydmin)/log(10) ); if( floor(log(dY)/log(10)) > 2 ) { //large excess in data int n = floor(log(ymin)/log(10) ); int yrm = ymin/pow(10.,n); ymin = ((yrm==1)?(8*pow(10., n-1 )):((yrm-1)*pow(10., n ))); } else { //only one decade below data int yrm = ydmin/pow(10.,nd); //thick in decade below the point ymin = (yrm==1)?(8*pow(10., nd-2 )):(yrm* pow(10., nd-1 )); } } else { int n = floor(log(ymin)/log(10) ); int yrm = ymin/pow(10.,n); ymin = ((yrm==1)?(8*pow(10., n-1 )):((yrm-1)*pow(10., n ))); } float ym = _logYScale?ymin:0.1; if(_normOpts.find("norm")!=_normOpts.end() || _normOpts.find("uni")!=_normOpts.end() ) ym = ymin; _empty->GetYaxis()->SetRangeUser( ym, ymax ); if(_userYScale) _empty->GetYaxis()->SetRangeUser( _ymin, _ymax ); _empty->GetYaxis()->SetTitle((_ytitle+addbin).c_str()); if(_normOpts.find("norm")!=_normOpts.end()) _empty->GetYaxis()->SetTitle("1/N#times#partialN/#partialO "); } else { _empty->GetYaxis()->SetRangeUser( _ymin, _ymax ); } _empty->GetYaxis()->SetNdivisions(_Ydiv[0],_Ydiv[1],_Ydiv[2]); if(_showRatio) _empty->GetXaxis()->SetTitleOffset( 1.05 ); else _empty->GetXaxis()->SetTitleOffset( 0.90 ); _empty->GetXaxis()->SetTitleSize( 0.06 ); if(_ytitle.find("_")==string::npos) _empty->GetYaxis()->SetTitleOffset( 1.50 ); //1.35 for _ text else _empty->GetYaxis()->SetTitleOffset( 1.35 ); //1.35 for _ text _empty->GetYaxis()->SetTitleSize( 0.06 ); _empty->GetXaxis()->SetLabelOffset( 0.007 ); _empty->GetXaxis()->SetLabelSize( 0.05 ); _empty->GetYaxis()->SetLabelOffset( 0.007 ); _empty->GetYaxis()->SetLabelSize( 0.05 ); // 2D histo if(_is2D) { HistoUtils::copyStyle(_empty,_hClones[nsig],true); } for(size_t ih=0;ih<_nhmc;ih++) { delete hTmps[ih]; } delete hData; //rerieveing the xmin and xmax values _xmin = tmpXm; _xmax = tmpXM; } void DisplayClass::saveDMCRWeight(string fname, string hname) { TFile* file=new TFile(fname.c_str(),"RECREATE"); TH1F* ratio = (TH1F*)_hData->Clone(hname.c_str() ); ratio->Divide(_hMC); ratio->Write(); file->Write(); file->Close(); delete ratio; delete file; } void DisplayClass::drawDataMCRatio() { //The bidon histo TH1* emptyHisto=(TH1*)_hMC->Clone(); //if(_empty!=nullptr) emptyHisto=(TH1*)_empty->Clone(); emptyHisto->Reset("ICEM"); TGraphAsymmErrors* ratio = HistoUtils::ratioHistoToGraph( _hData, _hMC ); ratio->SetName( ("ratio") ); for(int ib=0;ib<emptyHisto->GetNbinsX()+2;ib++) { emptyHisto->SetBinContent(ib,-1000); } if(_rmLabel) { emptyHisto->GetYaxis()->SetTitleOffset(1000); ratio->GetYaxis()->SetTitleOffset(1000); } if(!_overflow && !_underflow) { emptyHisto->GetXaxis()->SetRangeUser(_xmin, _xmax-0.0001 ); ratio->GetXaxis()->SetRangeUser(_xmin,_xmax-0.0001 ); } else { if(_overflow) { emptyHisto->GetXaxis()->SetRangeUser(_xmin,_xmax - _hData->GetBinWidth(1)/1.5 -0.00001); ratio->GetXaxis()->SetRangeUser(_xmin,_xmax - _hData->GetBinWidth(1)/1.5 -0.00001); if(_underflow) { emptyHisto->GetXaxis()->SetRangeUser(_xmin ,_xmax - _hData->GetBinWidth(1)/1.5 -0.00001); ratio->GetXaxis()->SetRangeUser(_xmin ,_xmax - _hData->GetBinWidth(1)/1.5 -0.00001); } } if(_underflow) { emptyHisto->GetXaxis()->SetRangeUser(_xmin ,_xmax-0.0001); ratio->GetXaxis()->SetRangeUser(_xmin ,_xmax-0.0001); } } //if systematics exists, draw them! // bool isTeV = _xtitle.find("TeV")!=(size_t)-1; vector<TPolyLine*> sysBand; if(_addSyst) { int style[4]={0,0,3002,3001}; int col[4]={kRed+2,kViolet+2,kAzure+2,kGreen+1}; int lStyle[4]={1,2,2,2}; for(int iu=0;iu<min(4,(int)(_mcUncert.size()));iu++) { int ii=_mcUncert.size()-iu-1; double x,y,yl,yh; vector<float> xs; vector<float> yls; vector<float> yhs; for(int ib=0;ib<_mcUncert[ii]->GetN();ib++) { _mcUncert[ii]->GetPoint(ib,x,y); yl = _mcUncert[ii]->GetErrorYlow(ib); yh = _mcUncert[ii]->GetErrorYhigh(ib); if(x<_xmin-emptyHisto->GetBinWidth(1)/2. || x>_xmax+emptyHisto->GetBinWidth(1)/2. ) continue; xs.push_back(x); if(y!=0) { yls.push_back(yl/y); yhs.push_back(yh/y); } else { yls.push_back(0); yhs.push_back(0); } } sysBand.push_back( HistoUtils::GetSystBand(xs,yls,yhs,_xmin,_xmax) ); if(_uncDet && _mcUncert.size()>1 ) { int sSy = _mcUncert.size(); sysBand.back()->SetLineColor(col[iu+4-sSy]); sysBand.back()->SetLineStyle(lStyle[iu+4-sSy]); sysBand.back()->SetLineWidth(2); sysBand.back()->SetFillColor(col[iu+4-sSy]); sysBand.back()->SetFillStyle(style[ iu+4-sSy ]); } } }//addsyst emptyHisto->GetYaxis()->SetRangeUser( 0.4, 1.6); emptyHisto->GetXaxis()->SetNdivisions(_Xdiv[0],_Xdiv[1],_Xdiv[2]); emptyHisto->GetYaxis()->SetNdivisions(3,_Ydiv[1],_Ydiv[2]); emptyHisto->GetXaxis()->SetTitle( (_xtitle+" ").c_str() ); emptyHisto->GetYaxis()->SetTitle( "Data/MC" ); emptyHisto->GetXaxis()->SetTitleSize(0.20); emptyHisto->GetXaxis()->SetTitleOffset(0.80); emptyHisto->GetXaxis()->SetLabelOffset(0.007); emptyHisto->GetXaxis()->SetLabelSize(0.165); emptyHisto->GetYaxis()->SetLabelSize(0.14); emptyHisto->GetYaxis()->SetLabelOffset(0.011); emptyHisto->GetYaxis()->SetTitleSize(0.15); emptyHisto->GetYaxis()->SetTitleOffset(0.54); emptyHisto->GetXaxis()->SetTickLength(0.09); emptyHisto->GetYaxis()->SetTickLength(0.05); ratio->GetYaxis()->SetRangeUser( 0.4, 1.6); ratio->GetXaxis()->SetNdivisions(_Xdiv[0],_Xdiv[1],_Xdiv[2]); ratio->GetYaxis()->SetNdivisions(3,_Ydiv[1],_Ydiv[2]); ratio->GetXaxis()->SetTitle( (_xtitle+"_").c_str() ); ratio->GetYaxis()->SetTitle( "Data/MC" ); ratio->GetXaxis()->SetTitleSize(0.20); ratio->GetXaxis()->SetTitleOffset(0.83); ratio->GetXaxis()->SetLabelSize(0.165); ratio->GetYaxis()->SetLabelSize(0.14); ratio->GetYaxis()->SetLabelOffset(0.015); ratio->GetYaxis()->SetTitleSize(0.15); ratio->GetYaxis()->SetTitleOffset(0.54); ratio->GetXaxis()->SetTickLength(0.09); ratio->GetYaxis()->SetTickLength(0.05); if(_rmLabel) { ratio->GetYaxis()->SetLabelOffset(1000); emptyHisto->GetYaxis()->SetLabelOffset(1000); } for(size_t ib=0;ib<_cNames.size();ib++) { emptyHisto->GetXaxis()->SetBinLabel(ib+1, _cNames[ib].c_str() ); } emptyHisto->Draw(); if(_addSyst) { if(!_uncDet) sysBand.back()->Draw("F"); else { for(int iu=(int)sysBand.size()-1;iu>=0;iu--) { int sSy = _mcUncert.size(); sysBand[iu]->Draw((iu+4-sSy)<2?"l":"F"); } } } ratio->Draw("p same"); TLine* line=new TLine(_xmin,1,_xmax,1); line->SetLineColor(kRed+1); if(_uncDet) line->SetLineColor(kGreen+2); line->SetLineStyle(7); line->SetLineWidth(2); line->Draw("same"); } void DisplayClass::ratioObservables(vector<const hObs*> theObs) { softReset(); //protection against 2D histos if(theObs[0]->htype.find("2D")!=(size_t)-1 || theObs[1]->htype.find("2D")!=(size_t)-1) { cout<<" 2D histograms not supported for ratio"<<endl; return; } //protection against difference binnings if( theObs[0]->nBX != theObs[1]->nBX ) { cout<<" Error, binning between observables is different "<<endl; return; } //and get the canvas ready _nvars=1; _pads = preparePads(); _pads[0][0]->Draw(); _pads[0][0]->cd(); //now prepare the two distributions (for simulation and data) prepareHistograms( theObs[0] ); TH1* numHMc = (TH1*)_hMC->Clone(); TH1* numHD(0); if(!_mcOnly) numHD = (TH1*)_hData->Clone(); vector<TH1*> numHClones; for(size_t ii=0;ii<_hClones.size();ii++) numHClones.push_back( (TH1*)_hClones[ii]->Clone() ); string ytitle = _hMC->GetTitle(); prepareHistograms( theObs[1] ); ytitle += " / "; ytitle += _hMC->GetTitle(); // compute the ratios =================== TGraphAsymmErrors* ratioData(0); if(!_mcOnly) { ratioData = HistoUtils::ratioHistoToGraph(numHD, _hData,"nP"); ratioData->SetName("ratioData"); } TGraphAsymmErrors* ratioMC = HistoUtils::ratioHistoToGraph(numHMc, _hMC,""); ratioMC->SetName("ratioMC"); vector<TGraphAsymmErrors*> ratioClones; for(size_t ii=0;ii<_hClones.size();ii++) { ratioClones.push_back( HistoUtils::ratioHistoToGraph(numHClones[ii], _hClones[ii] ,"") ); _itCol = _colors.find( _names[_nhmc-ii-1] ); ratioClones.back()->SetMarkerColor( _itCol->second ); ratioClones.back()->SetLineColor( _itCol->second ); ratioClones.back()->SetMarkerStyle(21+ii); } //Cosmetics ============================= if(!_mcOnly) { ratioData->SetMarkerColor(1); ratioData->SetLineColor(1); ratioData->SetMarkerStyle(20); } ratioMC->SetMarkerColor(kOrange+7); ratioMC->SetLineColor(kOrange+7); ratioMC->SetMarkerStyle(24); //now draw! ======================= _empty->GetYaxis()->SetTitle( ytitle.c_str() ); for(int i=1;i<_empty->GetNbinsX()+1;i++) _empty->SetBinContent(i,-1000); //with the good range float ymin=0, ymax=2; if(_normOpts.find("norm")==_normOpts.end()) { ymin = HistoUtils::getGraphYlowWithError(ratioClones[0], _xmin, _xmax ); ymax = HistoUtils::getGraphYhighWithError(ratioClones[0], _xmin, _xmax ); for(size_t ii=1;ii<ratioClones.size();ii++) { ymin = min( ymin, HistoUtils::getGraphYlowWithError(ratioClones[ii], _xmin, _xmax ) ); ymax = max( ymax, HistoUtils::getGraphYhighWithError(ratioClones[ii], _xmin, _xmax) ); } } else { ymin = HistoUtils::getGraphYlowWithError(ratioMC, _xmin, _xmax ); ymax = HistoUtils::getGraphYhighWithError(ratioMC, _xmin, _xmax ); } if(!_mcOnly) { ymin = min( HistoUtils::getGraphYlowWithError(ratioData, _xmin, _xmax ), ymin ); ymax = max( HistoUtils::getGraphYhighWithError(ratioData, _xmin, _xmax ), ymax ); } _empty->GetYaxis()->SetRangeUser(ymin*0.9, ymax*1.1); _empty->DrawCopy(); TLine* line=new TLine(_xmin,1,_xmax,1); line->SetLineColor(kGray+2); line->SetLineWidth(2); line->SetLineStyle(7); line->Draw("same"); if(!_mcOnly) ratioData->Draw("p"); if(_normOpts.find("norm")==_normOpts.end()) ratioMC->Draw("p"); else { for(size_t ii=0;ii<ratioClones.size();ii++) ratioClones[ii]->Draw("p"); } _leg=NULL; } void DisplayClass::saveHistos(string o1, const hObs* theObs) { TFile* oFile=new TFile((o1+".root").c_str(), "RECREATE"); for(size_t ih=0;ih<_nhmc;ih++) { _hClones[ih]->Write(); } if(!_mcOnly) { _hData->Write(); } oFile->Close(); } void DisplayClass::showSignificance(const hObs* theObs) { softReset(); _sSignal=false; _xmax = theObs->binsX.back(); if(_is2D) _ymax = theObs->binsY.back(); _xmin = theObs->binsX[0]; if(_is2D) _ymin = theObs->binsY[0]; //get the canvas ready _pads = preparePads(); _pads[0][0]->Draw(); _pads[0][0]->cd(); //now prepare the two distributions (for background and signal) prepareHistograms( theObs ); vector<size_t> sigs; for(size_t i=0;i<_nhmc;i++) { string nh = (string)( _hClones[i]->GetName()); if( !_sSignal && nh.find("sig")!=(size_t)-1) sigs.push_back(i); } if(_is1D) { TH1F* numHB = (TH1F*)_hMC->Clone(); TH1F* numHS = (TH1F*)_hClones[ sigs.back() ]->Clone(); TH1F* sig = HistoUtils::significance( numHS, numHB); HistoUtils::copyStyle( _empty, (TH1*&)sig, true ); sig->GetYaxis()->SetTitle("S/#sqrt{B} "); sig->Draw(); } if(_is2D) { TH2F* numHB = (TH2F*)_hClones[ sigs.size() ]->Clone(); TH2F* numHS = (TH2F*)_hClones[ sigs.back() ]->Clone(); TH2F* sig = HistoUtils::significance(numHS, numHB); HistoUtils::copyStyle( (TH1*)numHB, (TH1*&)sig, true ); sig->Draw("colz"); } _sSignal=true; } void DisplayClass::drawEfficiency(const hObs* theObs) { softReset(); //protection against 2D histos if(theObs->htype.find("2D")!=(size_t)-1) { cout<<" 2D histograms not supported for efficiencies"<<endl; return; } //and get the canvas ready _pads = preparePads(); _pads[0][0]->Draw(); _pads[0][0]->cd(); //prepare the distributions prepareHistograms( theObs ); //compute efficiencies vector<TGraphAsymmErrors*> effs(_nhmc,NULL); for(size_t i=0;i<_nhmc;i++) { effs[i] = HistoUtils::efficiency(_hClonesNoStack[i]); } effs.push_back( HistoUtils::efficiency( _hMC ) ); if(!_mcOnly) effs.push_back( HistoUtils::efficiency( _hData ) ); //cosmetics for(size_t i=0;i<_nhmc;i++) { effs[i]->SetLineColor( _colors.find( _names[_nhmc-i-1] )->second ); effs[i]->SetMarkerColor( _colors.find( _names[_nhmc-i-1] )->second ); effs[i]->SetLineWidth(2); effs[i]->SetMarkerStyle(1); } effs[_nhmc]->SetLineColor(kGray+2); effs[_nhmc]->SetMarkerColor(kGray+2); effs[_nhmc]->SetLineWidth(2); effs[_nhmc]->SetMarkerStyle(1); if(!_mcOnly) { effs.back()->SetLineColor(kBlack); effs.back()->SetMarkerColor(kBlack); effs.back()->SetLineWidth(2); effs.back()->SetMarkerStyle(1); } //now draw! ======================= _empty->GetYaxis()->SetTitle( "#varepsilon " ); for(int i=1;i<_empty->GetNbinsX()+1;i++) _empty->SetBinContent(i,-1000); _empty->GetYaxis()->SetRangeUser(0., 1.05); _empty->DrawCopy(); for(size_t i=0;i<effs.size();i++) effs[i]->Draw("l"); } void DisplayClass::drawROCCurves(const hObs* theObs) { softReset(); //protection against 2D histos if(theObs->htype.find("2D")!=(size_t)-1) { cout<<" 2D histograms not supported for ROC curves"<<endl; return; } //and get the canvas ready _pads = preparePads(); _pads[0][0]->Draw(); _pads[0][0]->cd(); //prepare the distributions prepareHistograms( theObs ); for(size_t i=0;i<_nhmc;i++) { string nh = (string)( _hClonesNoStack[i]->GetName()); if(nh.find("sig")!=(size_t)-1) _hSigClones.push_back( (TH1*)_hClonesNoStack[i]->Clone() ); } if(_hSigClones.size()==0) {cout<<" No Signal to use, abort ROC curve drawing"<<endl; return;} //compute ROC curves vector<TGraphAsymmErrors*> rocCurves(_hSigClones.size(),NULL); for(size_t is=0;is<_hSigClones.size();is++) { rocCurves[is] = HistoUtils::curveROC(_hSigClones[is],_hMC); rocCurves[is]->SetLineColor( _hSigClones[is]->GetLineColor() ); rocCurves[is]->SetMarkerColor( _hSigClones[is]->GetLineColor() ); rocCurves[is]->SetLineWidth(2); } TH1F* tmp=new TH1F("dummy","dummy",51,0,1.05); TH1* empty=(TH1*)tmp->Clone(); HistoUtils::copyStyle(_empty,empty,true); empty->GetYaxis()->SetRangeUser(0,1.05); empty->GetXaxis()->SetTitle(" #varepsilon signal "); empty->GetYaxis()->SetTitle(" #varepsilon bkg "); empty->Draw(); for(size_t is=0;is<rocCurves.size();is++) { rocCurves[is]->Draw("l"); } } void DisplayClass::compaROCCurves(vector<const hObs*> obss) { softReset(); //and get the canvas ready int tmpNvar= _nvars; _nvars=1; _pads = preparePads(); _pads[0][0]->Draw(); _pads[0][0]->cd(); _nvars=tmpNvar; //compute ROC curves vector<TGraphAsymmErrors*> rocCurves; //prepare the distributions for(size_t io=0;io<obss.size();io++) { refreshHistos(); //protection against 2D histos if(obss[io]->htype.find("2D")!=(size_t)-1) { cout<<" 2D histograms not supported for ROC curves"<<endl; return; } prepareHistograms( obss[io] ); for(size_t i=0;i<_nhmc;i++) { string nh = (string)( _hClonesNoStack[i]->GetName()); if(nh.find("sig")!=(size_t)-1) { _hSigClones.push_back( (TH1*)_hClonesNoStack[i]->Clone() ); } } _nhsig=_hSigClones.size(); if(io==0) if(_hSigClones.size()==0) {cout<<" No Signal to use, abort ROC curve drawing"<<endl; return;} rocCurves.resize( obss.size()*_nhsig ); for(size_t is=0;is<_nhsig;is++) { rocCurves[io*_nhsig +is] = HistoUtils::curveROC(_hSigClones[is],_hMC); rocCurves[io*_nhsig +is]->SetLineColor( _hSigClones[is]->GetLineColor() ); rocCurves[io*_nhsig +is]->SetMarkerColor( _hSigClones[is]->GetLineColor() ); rocCurves[io*_nhsig +is]->SetLineWidth(2); rocCurves[io*_nhsig +is]->SetLineStyle(io+1); } } TH1F* tmp=new TH1F("dummy","dummy",51,0,1.05); TH1* empty=(TH1*)tmp->Clone(); HistoUtils::copyStyle(_empty,empty,true); empty->GetYaxis()->SetRangeUser(0,1.05); empty->GetXaxis()->SetTitle(" #varepsilon signal "); empty->GetYaxis()->SetTitle(" #varepsilon bkg "); empty->Draw(); for(size_t is=0;is<rocCurves.size();is++) { rocCurves[is]->Draw("l"); } _nhsig=0; } void DisplayClass::residualData(const hObs* theObs) { softReset(); //protection against 2D histos if(theObs->htype.find("2D")!=(size_t)-1) { cout<<" 2D histograms not supported for ratio"<<endl; return; } //protection against no data if(_mcOnly) { cout<<" Warning, no data, cannot draw the residuals"<<endl; return; } //and get the canvas ready _pads = preparePads(); _pads[0][0]->Draw(); _pads[0][0]->cd(); //now prepare the two distributions (for simulation and data) prepareHistograms( theObs ); TH1* numHMc = (TH1*)_hMC->Clone(); TH1* numHD = (TH1*)_hData->Clone(); // compute the residuals =================== TGraphAsymmErrors* residuals = HistoUtils::residualGraph( numHD, numHMc, "nP" ); residuals->SetName("residuals"); //Cosmetics ============================= residuals->SetMarkerColor(1); residuals->SetLineColor(1); residuals->SetMarkerStyle(20); //now draw! ======================= _empty->GetYaxis()->SetTitle( _ytitle.c_str() ); for(int i=1;i<_empty->GetNbinsX()+1;i++) _empty->SetBinContent(i,-1000); //with the good range float ymin=0, ymax=2; ymin = min(ymin, HistoUtils::getGraphYlowWithError(residuals, _xmin, _xmax ) ); ymax = HistoUtils::getGraphYhighWithError(residuals, _xmin, _xmax ); _empty->GetYaxis()->SetRangeUser(ymin*0.9, ymax*1.1); _empty->DrawCopy(); //systematic uncertainties ============= if(_addSyst && _hMC) { if(!_mcSystComputed) { computeSystematics(_isProf); _mcSystComputed=true; } TGraphAsymmErrors* mcUnc = (TGraphAsymmErrors*) _mcUncert.back()->Clone(); double x,y; for(int i=0;i<mcUnc->GetN();i++) { mcUnc->GetPoint(i,x,y); mcUnc->SetPoint(i,x,1); } mcUnc->SetName("uncertainties"); mcUnc->SetTitle("uncertainties"); mcUnc->SetMarkerSize(0); mcUnc->SetMarkerStyle(1); mcUnc->SetMarkerColor(1); mcUnc->SetFillStyle(3001); mcUnc->SetFillColor(kGray+1); TGraphAsymmErrors* tmpUnc=(TGraphAsymmErrors*)mcUnc->Clone(); tmpUnc->SetName("uncertainties"); tmpUnc->SetTitle("uncertainties"); tmpUnc->Draw("p E2"); } TLine* line=new TLine(_xmin,1,_xmax,1); line->SetLineColor(kGray+2); line->SetLineWidth(2); line->SetLineStyle(7); line->Draw("same"); residuals->Draw("p"); _leg=NULL; } void DisplayClass::drawCumulativeHistos(const hObs* theObs ) { softReset(); _cumulative =true; vector<const hObs*> hv; hv.push_back(theObs); plotDistributions(hv); _cumulative =false; } void DisplayClass::drawStatistics(vector<pair<string,vector<vector<map<string,float> > > > > vals, vector<string> dsnames, bool isMultiScheme) { _comSyst = false; softReset(); prepareStatistics( vals, dsnames, isMultiScheme); if(_mcOnly || _dOnly) _showRatio=false; if(_dOnly) { _showRatio=false; _addSyst=false;} if(!_showRatio) _pads = preparePads(); else _pads = preparePadsWithRatio(); _c->Draw(); //MM Fixme : temporary disabling of uncertainties // uncertainties taken from stat files for the moment, non optimal systM mTmp; vector<vector<systM> > tmp(1,vector<systM>(0,mTmp)); _systMUnc=tmp; //MM fixme float xmaxTmp = _xmax; _xmax = _empty->GetXaxis()->GetXmax(); plotDistribution( "1D", "m", 0 ); _xmax = xmaxTmp; _comSyst = true; } void DisplayClass::prepareStatistics( vector<pair<string,vector<vector<map<string,float> > > > > vals, vector<string> dsnames, bool isMultiScheme ) { vector<string> cNames; vector<TH1*> hMC; TH1F* hData; size_t nVals=isMultiScheme?(vals.size()/2):vals.size(); for(size_t ic=0;ic<nVals;ic++) { cNames.push_back( vals[ic].first ); } vector<int> idx; vector<int>::iterator itx = idx.begin(); size_t nDs=vals[0].second.size()-(_mcOnly?0:1); for(size_t i=1;i<nDs; i++ ) { TH1F* tmp = new TH1F(dsnames[nDs-i].c_str(), dsnames[nDs-i].c_str(), cNames.size(),0,cNames.size()); _itCol = _colors.find( _names[nDs-i-1] ); if( dsnames[nDs-i].find("sig")==(size_t)-1) tmp->SetFillColor(_itCol->second); tmp->SetLineColor(_itCol->second); tmp->SetLineWidth(2); hMC.push_back( (TH1*)tmp ); } hData = new TH1F("statData","statData",cNames.size(),0,cNames.size()); TH1F* hMCt = new TH1F("statMC","statMC",cNames.size(),0,cNames.size()); TGraphAsymmErrors* mcUncert = new TGraphAsymmErrors(cNames.size() ); mcUncert->SetMarkerSize(0); mcUncert->SetMarkerStyle(1); mcUncert->SetMarkerColor(1); mcUncert->SetFillStyle(3001); mcUncert->SetFillColor(kGray+1); size_t idat=(_mcOnly)?-1:( vals[0].second.size()-1); if(isMultiScheme) { //overwrite the data plot -> means we have two parallel scheme to looka t in MC for(size_t ic=0;ic<nVals;ic++) { vals[ic].second[0][0]["tot"] = vals[ic].second[nVals][0]["tot"]; vals[ic].second[0][1]["tot"] = vals[ic].second[nVals][1]["tot"]; vals[ic].second[0][2]["tot"] = vals[ic].second[nVals][2]["tot"]; vals[ic].second[0][3]["tot"] = vals[ic].second[nVals][3]["tot"]; } } //now fill the plots for(size_t ic=0;ic<nVals;ic++) { for(size_t id=0;id<vals[ic].second.size();id++) { if(id==0) { //MC total hMCt->SetBinContent( ic+1, vals[ic].second[id][0]["tot"] ); hMCt->SetBinError( ic+1, vals[ic].second[id][1]["tot"] ); mcUncert->SetPoint( ic, ic+0.5 , vals[ic].second[id][0]["tot"] ); float eyl2=pow(vals[ic].second[id][2]["tot"],2) + ((_mcSyst)?pow(vals[ic].second[id][1]["tot"],2):0); float eyh2=pow(vals[ic].second[id][3]["tot"],2) + ((_mcSyst)?pow(vals[ic].second[id][1]["tot"],2):0); //cout<<" || "<<vals[ic].second[id][2]<<" "<<<<" --> "<<eyl2<<" "<<eyh2<<" ==> "<<sqrt(eyl2)<<" "<<sqrt(eyh2)<<endl; mcUncert->SetPointError( ic, 0.25,0.25, sqrt(eyl2), sqrt(eyh2) ); } else if(id==idat) { //data //cout<<" ===> "<<vals[ic].second[id][0]<<endl; hData->SetBinContent( ic+1, vals[ic].second[id][0]["tot"] ); hData->SetBinError( ic+1, vals[ic].second[id][1]["tot"] ); } else { // _itCol = _colors.find( _names[_nhmc-id-1] ); // hMC[nDs-id-1]->SetLineColor( _itCol->second ); // hMC[nDs-id-1]->SetFillColor( _itCol->second ); if( !_sSignal && dsnames[id].find("sig") == (size_t)-1){ float sum = vals[ic].second[id][0]["tot"]; float sum2 = pow(vals[ic].second[id][1]["tot"],2); for(size_t ii = 1; ii < id; ++ii) {//0 is MC if( !_sSignal && dsnames[ii].find("sig")!=(size_t)-1) continue; sum += vals[ic].second[ii][0]["tot"]; sum2 += pow(vals[ic].second[ii][1]["tot"],2); } hMC[nDs-id-1]->SetBinContent( ic+1, sum); } else{ hMC[nDs-id-1] -> SetBinContent( ic+1, vals[ic].second[id][0]["tot"]);// * weight); } } }//ds }//cuts TGraphAsymmErrors* gData= HistoUtils::convertHistoToGraph(hData,1, _normOpts.find("dif")!=_normOpts.end()); TH1F* emptyH = (TH1F*)hMCt->Clone(); emptyH->Reset("ICEM"); emptyH->SetFillColor(0); float xmax=cNames.size(); float ymin = min( (float)0.1, HistoUtils::getHistoYlowWithError(hMCt, 0, xmax ) ); float ymax = HistoUtils::getHistoYhighWithError(hMCt, 0, xmax ); if(!_mcOnly) { ymin = min( HistoUtils::getGraphYlowWithError(gData, 0, xmax ), ymin ); ymax = max( HistoUtils::getGraphYhighWithError(gData, 0, xmax ), ymax ); } for(size_t ih=0;ih<hMC.size();ih++) { string nh = (string)( hMC[ih]->GetName()); if( (!_sSignal && nh.find("sig")!=(size_t)-1) ) { float yM = HistoUtils::getHistoYhighWithError(hMC[ih],0,xmax); if(yM>ymax) ymax = yM;//*(_logYScale?15:1.5); } } if(_logYScale) ymax*= 10; else ymax*=1.3; emptyH->GetYaxis()->SetRangeUser(ymin,ymax); emptyH->GetXaxis()->SetNdivisions(_Xdiv[0],_Xdiv[1],_Xdiv[2]); emptyH->GetYaxis()->SetNdivisions(_Ydiv[0],_Ydiv[1],_Ydiv[2]); emptyH->GetYaxis()->SetTitle(_ytitle.c_str()); //emptyH->GetXaxis()->RotateTitle(90); for(size_t ib=0;ib<cNames.size();ib++) { emptyH->GetXaxis()->SetBinLabel(ib+1, cNames[ib].c_str() ); for(size_t ih=0;ih<hMC.size();ih++) hMC[ih]->GetXaxis()->SetBinLabel(ib+1, cNames[ib].c_str() ); } emptyH->GetXaxis()->LabelsOption("v"); for(size_t ih=0;ih<hMC.size();ih++) hMC[ih]->GetXaxis()->LabelsOption("v"); hMCt->SetLineWidth(2); hMCt->SetLineColor(kBlack); hMCt->SetFillStyle(0); _empty = emptyH; _hClones = hMC; _hMC = hMCt; _hData = hData; _gData = gData; _mcUncert.push_back( mcUncert ); _nhmc=hMC.size(); _mcSystComputed=true; _cNames = cNames; } void DisplayClass::configureDisplay(string YTitle, double rangeY[2], double rangeX[2], bool logYscale, int Xdiv[3], int Ydiv[3], int gbin, int bckbin, bool OverFlowBin, bool UnderFlowBin, bool ShowDMCRatio, bool ShowGrid, bool staking, bool AddSystematics, bool mcStatSyst, float MarkerSize, float LineWidth, bool sSignal, bool mcOnly, bool cmsPrel, bool uncDet ) { _ytitle = YTitle; _ymin = rangeY[0]; _ymax = rangeY[1]; _xmin = rangeX[0]; _xmax = rangeX[1]; _userYScale=false; if(_ymin != 0 || _ymax != _ymin ) _userYScale=true; _xCoordSave[0] = _xmin; _xCoordSave[1] = _xmax; _logYScale = logYscale; for(int i=0;i<3;i++) { _Xdiv[i] = Xdiv[i]; _Ydiv[i] = Ydiv[i]; } _gBin = gbin; _binningSave = _gBin; _gBckBin = bckbin; _overflow = OverFlowBin; _underflow = UnderFlowBin; _showRatio = ShowDMCRatio; _showGrid = ShowGrid; _noStack = 1-staking; _addSyst = AddSystematics; _mcSyst= mcStatSyst; _mSize = MarkerSize; _wLine = LineWidth; _sSignal = sSignal; _mcOnly = mcOnly; _prel = cmsPrel; _uncDet = uncDet; } void DisplayClass::checkData() { if(_mcOnly) _mcOnly=false; _lockData=true; } void DisplayClass::isNoData() { if(!_lockData) if(!_mcOnly) _mcOnly=true; _dOnly=false; } void DisplayClass::computeSystematics(bool isProf, bool cumul) { for(size_t ii=0;ii<_mcUncert.size();ii++) delete _mcUncert[ii]; _mcUncert.clear(); systM systs = _csystM[0]; systM systsUp = _csystM[1]; systM systsDo = _csystM[2]; //protection against no uncertainty on the plot if( (systs.size() + systsUp.size() + _mcSyst) == 0) {_addSyst=false; return;} //First, weight and rebin the histograms, they are already copied ============== for(itSystM itS=systs.begin();itS!=systs.end();itS++) { ((*itS).second)->Scale( _lumi ); ((*itS).second)->Rebin(_gBin); } for(itSystM itS=systsUp.begin();itS!=systsUp.end();itS++) { ((*itS).second)->Scale( _lumi ); ((*itS).second)->Rebin(_gBin); } for(itSystM itS=systsDo.begin();itS!=systsDo.end();itS++) { ((*itS).second)->Scale( _lumi ); ((*itS).second)->Rebin(_gBin); } //========================================== //overflow/underfow bins =================== if(_overflow) { for(itSystM itS=systs.begin();itS!=systs.end();itS++) { HistoUtils::addOverflowBin( (*itS).second, _xmax); } for(itSystM itS=systsUp.begin();itS!=systsUp.end();itS++) { HistoUtils::addOverflowBin( (*itS).second, _xmax); } for(itSystM itS=systsDo.begin();itS!=systsDo.end();itS++) { HistoUtils::addOverflowBin( (*itS).second, _xmax); } } if(_underflow) { for(itSystM itS=systs.begin();itS!=systs.end();itS++) { HistoUtils::addUnderflowBin( (*itS).second, _xmin); } for(itSystM itS=systsUp.begin();itS!=systsUp.end();itS++) { HistoUtils::addUnderflowBin( (*itS).second, _xmin); } for(itSystM itS=systsDo.begin();itS!=systsDo.end();itS++) { HistoUtils::addUnderflowBin( (*itS).second, _xmin); } } //========================================= //Check the normalization ===== // for(itSystM itS=systs.begin();itS!=systs.end();itS++) // ((*itS).second)->Scale( _hMC->Integral(0,100000)/((*itS).second)->Integral(0,100000) ); // for(itSystM itS=systsUp.begin();itS!=systsUp.end();itS++) // ((*itS).second)->Scale( _hMC->Integral(0,100000)/((*itS).second)->Integral(0,100000) ); // for(itSystM itS=systsDo.begin();itS!=systsDo.end();itS++) // ((*itS).second)->Scale( _hMC->Integral(0,100000)/((*itS).second)->Integral(0,100000) ); // ============================= //differential normalization ============== // if(_normOpts.find("dif")!=_normOpts.end()) { // for(itSystM itS=systs.begin();itS!=systs.end();itS++) // HistoUtils::changeToDiffHisto( (*itS).second ); // for(itSystM itS=systsUp.begin();itS!=systsUp.end();itS++) // HistoUtils::changeToDiffHisto( (*itS).second ); // for(itSystM itS=systsDo.begin();itS!=systsDo.end();itS++) // HistoUtils::changeToDiffHisto( (*itS).second ); // } // ======================================== //how many uncertainty sources? if(systs.size() + systsUp.size() > 4) _uncDet=false; //protection int nUncSrc = _uncDet?(systs.size() + systsUp.size() + _mcSyst):1; vector<TGraphAsymmErrors*> unc(nUncSrc,NULL); _uncNames.resize(nUncSrc); _uncNames[0]="uncertainties"; for(int iu=0;iu<nUncSrc;iu++) { unc[iu] = new TGraphAsymmErrors(_hMC->GetNbinsX()+2); unc[0]->SetMarkerSize(0); unc[0]->SetMarkerStyle(1); unc[0]->SetMarkerColor(1); unc[0]->SetFillColor(kGray+1); unc[0]->SetLineColor(kGray+1); unc[0]->SetLineStyle(3); unc[0]->SetFillStyle(3001); } bool isDif=_normOpts.find("dif")!=_normOpts.end(); for(int ib=0;ib<_hMC->GetNbinsX()+2;ib++) { vector<float> systU(nUncSrc,0); vector<float> systD(nUncSrc,0); //first, mcStatSyst size_t nu=0; if(_mcSyst) { TH1* tmp=(TH1*)_hMC->Clone(); tmp->Reset("ICEM"); float eyMC=0; float eyDD=0; float y=0; for(size_t ids=0;ids<_nhmc;ids++) { TH1* htmp=(TH1*) _hClonesNoStack[ids]->Clone(); if(((string)htmp->GetName()).find("sig")!=(size_t)-1 && !_noStack) continue; y += htmp->GetBinContent(ib); if(((string)htmp->GetName()).find("_DD")==(size_t)-1) eyMC += pow( htmp->GetBinError(ib),2) *(isDif?pow(htmp->GetBinWidth(ib),2):1.); else eyDD += htmp->GetBinError(ib)*(isDif?htmp->GetBinWidth(ib):1.); delete htmp; } tmp->SetBinContent(ib,y); tmp->SetBinError(ib, sqrt(eyMC) + eyDD ); float s = tmp->GetBinError(ib); if(_normOpts.find("dif")==_normOpts.end()) { systU[0] +=s*s; systD[0] +=s*s; } else { systU[0] +=pow(s/_hMC->GetBinWidth(ib), 2); systD[0] +=pow(s/_hMC->GetBinWidth(ib), 2); } if(ib==0 && _uncDet) { _uncNames[0] = "MC statistics"; } if(_uncDet) nu++; delete tmp; } //secondly symetric systs for(itSystM itS=systs.begin();itS!=systs.end();itS++) { float s = fabs( ((*itS).second)->GetBinContent(ib) - _hMC->GetBinContent(ib) ); for(size_t iv=nu;iv<(cumul?systU.size():(nu+1));iv++) { systU[iv] +=s*s; systD[iv] +=s*s; if(ib==0 && _uncDet) { _uncNames[iv] = (*itS).first; } } if(_uncDet) nu++; } //sym //now asymetric systs for(itSystM itS=systsUp.begin();itS!=systsUp.end();itS++) { string n = (*itS).first.substr( 0, (*itS).first.size() -2 ); float sU = ((*itS).second)->GetBinContent(ib) - _hMC->GetBinContent(ib); float sD = (systsDo[ n+"Do" ])->GetBinContent(ib) - _hMC->GetBinContent(ib); for(size_t iv=nu;iv<(cumul?systU.size():(nu+1));iv++) { if( sU*sD > 0) { //same sign errors systU[iv] +=sU>0?(sU>sD?(sU*sU):(sD*sD)):0; systD[iv] +=sU<=0?(sU<sD?(sU*sU):(sD*sD)):0; } else { //opposite sign errors systU[iv] +=sU>0?(sU*sU):(sD*sD); systD[iv] +=sU<=0?(sU*sU):(sD*sD); } // if(ib == 20) // cout<<_hMC->GetBinContent(ib)<<" sU="<<sU<<" sD="<<sD<<" "<<_hMC->GetXaxis()->GetBinCenter(ib)<<" ===> sysU="<<sqrt(systU[iv])<<" sysD="<<sqrt(systD[iv])<<endl; if(ib==0 && _uncDet) { _uncNames[iv] = (*itS).first; } } if(_uncDet) nu++; } //asym for(int ih=0;ih<nUncSrc;ih++) { if(ib==0 && _uncDet) { cout<<" Uncertainty detail : "<<ih<<" "<< _uncNames[ih]<<endl; unc[ih]->SetName(_uncNames[ih].c_str() ); unc[ih]->SetTitle(_uncNames[ih].c_str() ); } unc[ih]->SetPoint(ib, _hMC->GetXaxis()->GetBinCenter(ib), _hMC->GetBinContent(ib) ); float width=_hMC->GetXaxis()->GetBinWidth(ib); unc[ih]->SetPointEXlow(ib, width/2. ); unc[ih]->SetPointEXhigh(ib, width/2. ); // if(_normOpts.find("dif")!=_normOpts.end()) { // unc[ih]->SetPointEYhigh(ib, sqrt(systU[ih])/width ); // unc[ih]->SetPointEYlow(ib, sqrt(systD[ih])/width ); // } // else { unc[ih]->SetPointEYhigh(ib, sqrt(systU[ih]) ); unc[ih]->SetPointEYlow(ib, sqrt(systD[ih]) ); //} } }//bin _mcUncert = unc; } void DisplayClass::setSystematicsUnc( vector<vector<systM> > systs ) { _systMUnc = systs; } void DisplayClass::drawDetailSystematics(bool cumul) { //turn on detail _uncDet=true; _csystM = _systMUnc[0]; preparePadsForSystDetail(); _cSyst->Draw(); _cSyst->cd(); _padleft->Draw(); _padleft->cd(); computeSystematics(_isProf, cumul); TGraphAsymmErrors* ratio = HistoUtils::ratioHistoToGraph( _hData, _hMC ); TH1F* emptyHisto = (TH1F*)_hMC->Clone(); emptyHisto->Reset("ICEM"); emptyHisto->SetName("empty"); emptyHisto->SetTitle("empty"); for(int ib=0;ib<emptyHisto->GetNbinsX()+2;ib++) { emptyHisto->SetBinContent(ib,-1000); } if(_rmLabel) { emptyHisto->GetYaxis()->SetTitleOffset(1000); ratio->GetYaxis()->SetTitleOffset(1000); } if(!_overflow && !_underflow) { emptyHisto->GetXaxis()->SetRangeUser(_xmin, _xmax-0.0001 ); ratio->GetXaxis()->SetRangeUser(_xmin,_xmax-0.0001 ); } else { if(_overflow) { emptyHisto->GetXaxis()->SetRangeUser(_xmin,_xmax - _hData->GetBinWidth(1)/1.5 -0.00001); ratio->GetXaxis()->SetRangeUser(_xmin,_xmax - _hData->GetBinWidth(1)/1.5 -0.00001); if(_underflow) { emptyHisto->GetXaxis()->SetRangeUser(_xmin ,_xmax - _hData->GetBinWidth(1)/1.5 -0.00001); ratio->GetXaxis()->SetRangeUser(_xmin ,_xmax - _hData->GetBinWidth(1)/1.5 -0.00001); } } if(_underflow) { emptyHisto->GetXaxis()->SetRangeUser(_xmin ,_xmax-0.0001); ratio->GetXaxis()->SetRangeUser(_xmin ,_xmax-0.0001); } } int style[4]={0,0,3002,3001}; int col[4]={kViolet+2,kOrange+7,kAzure+2,kGreen+1}; int lStyle[4]={1,2,2,2}; bool isTeV = _xtitle.find("TeV")!=(size_t)-1; string Xtitle = _xtitle; float ym=0,yM=0; vector<TPolyLine*> sysBand(0,NULL); for(int iu=0;iu<min(4,(int)(_mcUncert.size()));iu++) { int ii=_mcUncert.size()-iu-1; double x,y,yl,yh; vector<float> xs; vector<float> yls; vector<float> yhs; for(int ib=0;ib<_mcUncert[ ii ]->GetN();ib++) { _mcUncert[ ii ]->GetPoint(ib,x,y); yl = _mcUncert[ ii ]->GetErrorYlow(ib); yh = _mcUncert[ ii ]->GetErrorYhigh(ib); if(x<_xmin-emptyHisto->GetXaxis()->GetBinWidth(1)/2. || x>_xmax+emptyHisto->GetXaxis()->GetBinWidth(1)/2. ) continue; xs.push_back(x); if(y!=0) { yls.push_back(yl/y); yhs.push_back(yh/y); if(ym> (yl/y ) ) ym = yl/y; if(yM< (yh/y ) ) yM = yh/y; } else { yls.push_back(0); yhs.push_back(0); } } sysBand.push_back( HistoUtils::GetSystBand(xs,yls,yhs,_xmin/(isTeV?1000:1),_xmax/(isTeV?1000:1)) ); int sSy = _mcUncert.size(); sysBand.back()->SetLineColor(col[iu+4-sSy]); sysBand.back()->SetLineStyle(lStyle[iu+4-sSy]); sysBand.back()->SetLineWidth(2); sysBand.back()->SetFillColor(col[iu+4-sSy]); sysBand.back()->SetFillStyle(style[ iu+4-sSy ]); } if(1-ym > yM-1 ) yM = 1-ym +1; else ym = 1-yM; emptyHisto->GetYaxis()->SetRangeUser( 0.3, 1.7); emptyHisto->GetXaxis()->SetNdivisions(_Xdiv[0],_Xdiv[1],_Xdiv[2]); emptyHisto->GetYaxis()->SetNdivisions(3,_Ydiv[1],_Ydiv[2]); emptyHisto->GetXaxis()->SetTitle( Xtitle.c_str() ); emptyHisto->GetYaxis()->SetTitle( "Data/MC" ); emptyHisto->GetXaxis()->SetTitleSize(0.11); emptyHisto->GetXaxis()->SetTitleOffset(0.70); emptyHisto->GetXaxis()->SetLabelSize(0.09); emptyHisto->GetYaxis()->SetLabelSize(0.09); emptyHisto->GetYaxis()->SetLabelOffset(0.011); emptyHisto->GetYaxis()->SetTitleSize(0.11); emptyHisto->GetYaxis()->SetTitleOffset(0.40); emptyHisto->GetXaxis()->SetTickLength(0.09); emptyHisto->GetYaxis()->SetTickLength(0.05); emptyHisto->GetXaxis()->SetLabelOffset(0.011); ratio->GetYaxis()->SetRangeUser( 0.3, 1.7); ratio->GetXaxis()->SetNdivisions(_Xdiv[0],_Xdiv[1],_Xdiv[2]); ratio->GetYaxis()->SetNdivisions(3,_Ydiv[1],_Ydiv[2]); ratio->GetXaxis()->SetTitle( Xtitle.c_str() ); ratio->GetYaxis()->SetTitle( "Data/MC" ); ratio->GetXaxis()->SetTitleSize(0.12); ratio->GetXaxis()->SetTitleOffset(0.72); ratio->GetXaxis()->SetLabelSize(0.09); ratio->GetYaxis()->SetLabelSize(0.09); ratio->GetYaxis()->SetLabelOffset(0.011); ratio->GetYaxis()->SetTitleSize(0.11); ratio->GetYaxis()->SetTitleOffset(0.54); ratio->GetXaxis()->SetTickLength(0.09); ratio->GetYaxis()->SetTickLength(0.05); emptyHisto->Draw(); for(int iu=(int)sysBand.size()-1;iu>=0;iu--) { int sSy = _mcUncert.size(); sysBand[iu]->Draw(iu+4-sSy<2?"l":"F"); } TLine* line=new TLine(_xmin,1,_xmax,1); line->SetLineColor(kRed+1); line->SetLineStyle(7); line->SetLineWidth(2); line->Draw("same"); ratio->Draw("p same"); //turn off detail _uncDet=false; _cSyst->cd(); _padright->Draw(); _padright->cd(); TLegend* legSyst=new TLegend(0.11,0.11,0.89,0.89); legSyst->SetFillColor(0); legSyst->SetShadowColor(0); legSyst->AddEntry(ratio,"data/MC","pl"); int iui=0; for(int iu=0;iu<(int)sysBand.size();iu++) { if(cumul) iui=sysBand.size()-iu-1; else iui=iu; string name=_uncNames[sysBand.size()-iui-1]; size_t p1=name.find("Unc"); size_t p2=name.find("Do"); size_t p3=name.find("Up"); if(p2==(size_t)-1 && p3==(size_t)-1) name=name.substr(p1+3,name.size()-1); else if(p2!=(size_t)-1) name=name.substr(p1+3,p2-p1-3); else name=name.substr(p1+3,p3-p1-3); legSyst->AddEntry(sysBand[iui],name.c_str(),(iui<2)?"l":"f"); } legSyst->Draw(); } void DisplayClass::getIntegral(float x1, float x2, float y1, float y2) { printInteg(x1,x2,y1,y2); } void DisplayClass::printInteg(float x1, float x2, float y1, float y2) { vector<double> errors(_nhmc+2,0); if(!_is2D) { if(!_mcOnly && !_dOnly && _normOpts.find("norm")==_normOpts.end()) { cout<<" Integral : data -> " << _hData->IntegralAndError(_hData->GetXaxis()->FindBin(x1), _hData->GetXaxis()->FindBin(x2), (errors.back()) ); cout<<" +- "<<errors.back() <<" // MC-> " <<_hMC->IntegralAndError(_hMC->GetXaxis()->FindBin(x1), _hMC->GetXaxis()->FindBin(x2), (errors[_nhmc+1]) ); cout<<" +- "<<errors[_nhmc+1]<<endl; } else if(_mcOnly && _hMC) { cout<<" Integral : MC -> "<<_hMC->IntegralAndError(_hMC->GetXaxis()->FindBin(x1), _hMC->GetXaxis()->FindBin(x2), errors[_nhmc+1]); cout<<" +- "<<errors[_nhmc+1]<<endl; } else if(_dOnly) { cout<<" Integral : data -> "<<_hData->IntegralAndError(_hData->GetXaxis()->FindBin(x1), _hData->GetXaxis()->FindBin(x2), errors.back()); cout<<" +- "<<errors.back()<<endl; } if(!_dOnly) { float tmp=0; double tmp2=0; for(size_t ih=0;ih<_nhmc;ih++) { if(_names[ih].find("sig")==(size_t)-1) { cout<<"\t"<<_names[ih]<<" : " <<_hClones[_nhmc-ih-1]->IntegralAndError(_hClones[_nhmc-ih-1]->GetXaxis()->FindBin(x1),_hClones[_nhmc-ih-1]->GetXaxis()->FindBin(x2), errors[ih])-tmp; cout<<" +- "<<sqrt(errors[ih]*errors[ih]-tmp2*tmp2)<<endl; if(_normOpts.find("norm")==_normOpts.end() ) tmp = _hClones[_nhmc-ih-1]->IntegralAndError(_hClones[_nhmc-ih-1]->GetXaxis()->FindBin(x1),_hClones[_nhmc-ih-1]->GetXaxis()->FindBin(x2), tmp2); } else { cout<<"\t"<<_names[ih]<<" : " <<_hClones[_nhmc-ih-1]->IntegralAndError(_hClones[_nhmc-ih-1]->GetXaxis()->FindBin(x1),_hClones[_nhmc-ih-1]->GetXaxis()->FindBin(x2), errors[ih]); cout<<" +- "<<errors[ih]<<endl; } } } } else { //is2D case if(!_mcOnly && !_dOnly && _normOpts.find("norm")==_normOpts.end()) { cout<<" Integral : data -> " << ((TH2F*)(_hData))->IntegralAndError(_hData->GetXaxis()->FindBin(x1), _hData->GetXaxis()->FindBin(x2), _hData->GetYaxis()->FindBin(y1), _hData->GetYaxis()->FindBin(y2), (errors.back()) ); cout<<" +- "<<errors.back() <<" // MC-> " <<((TH2F*)(_hMC))->IntegralAndError(_hMC->GetXaxis()->FindBin(x1), _hMC->GetXaxis()->FindBin(x2), _hMC->GetYaxis()->FindBin(y1), _hMC->GetYaxis()->FindBin(y2) , (errors[_nhmc+1]) ); cout<<" +- "<<errors[_nhmc+1]<<endl; } else if(_mcOnly && _hMC) { cout<<" Integral : MC -> "<<((TH2F*)(_hMC))->IntegralAndError(_hMC->GetXaxis()->FindBin(x1), _hMC->GetXaxis()->FindBin(x2), _hMC->GetYaxis()->FindBin(y1), _hMC->GetYaxis()->FindBin(y2), errors[_nhmc+1]); cout<<" +- "<<errors[_nhmc+1]<<endl; } else if(_dOnly) { cout<<" Integral : data -> "<<((TH2F*)(_hData))->IntegralAndError(_hData->GetXaxis()->FindBin(x1), _hData->GetXaxis()->FindBin(x2), _hData->GetYaxis()->FindBin(y1), _hData->GetYaxis()->FindBin(y2), errors.back()); cout<<" +- "<<errors.back()<<endl; } if(!_dOnly) { float tmp=0; double tmp2=0; for(size_t ih=0;ih<_nhmc;ih++) { if(_names[ih].find("sig")==(size_t)-1) { cout<<"\t"<<_names[ih]<<" : " <<((TH2F*)(_hClones[_nhmc-ih-1]))->IntegralAndError(_hClones[_nhmc-ih-1]->GetXaxis()->FindBin(x1),_hClones[_nhmc-ih-1]->GetXaxis()->FindBin(x2), _hClones[_nhmc-ih-1]->GetYaxis()->FindBin(y1),_hClones[_nhmc-ih-1]->GetYaxis()->FindBin(y2), errors[ih])-tmp; cout<<" +- "<<sqrt(errors[ih]*errors[ih]-tmp2*tmp2)<<endl; if(_normOpts.find("norm")==_normOpts.end() ) tmp = ((TH2F*)(_hClones[_nhmc-ih-1]))->IntegralAndError(_hClones[_nhmc-ih-1]->GetXaxis()->FindBin(x1),_hClones[_nhmc-ih-1]->GetXaxis()->FindBin(x2), _hClones[_nhmc-ih-1]->GetYaxis()->FindBin(y1),_hClones[_nhmc-ih-1]->GetYaxis()->FindBin(y2), tmp2); } else { cout<<"\t"<<_names[ih]<<" : " <<((TH2F*)(_hClones[_nhmc-ih-1]))->IntegralAndError(_hClones[_nhmc-ih-1]->GetXaxis()->FindBin(x1),_hClones[_nhmc-ih-1]->GetXaxis()->FindBin(x2), _hClones[_nhmc-ih-1]->GetYaxis()->FindBin(y1),_hClones[_nhmc-ih-1]->GetYaxis()->FindBin(y2), errors[ih]); cout<<" +- "<<errors[ih]<<endl; } } } } } //new CMS preliminary (thanks gautier..) void DisplayClass::cmsPrel() { TLatex latex; float t = _pads[0][0]->GetTopMargin(); float tmpTextSize=0.75*t; latex.SetTextSize(tmpTextSize); latex.SetNDC(); float textSize=latex.GetTextSize(); if(_showRatio) { latex.SetName("lumiText"); latex.SetTextFont(42); if (_lumi > 0.) { latex.SetTextAlign(31); // align left, right=31 latex.SetTextSize(textSize*0.6/0.75); if(_lumi > 1000 ) latex.DrawLatex(0.965,0.96,Form(" %.1f fb^{-1} (%.0f TeV)",_lumi/1000., _energy)); else latex.DrawLatex(0.965,0.96,Form(" %.0f pb^{-1} (%.0f TeV)",_lumi, _energy)); } latex.SetTextAlign(11); // align left latex.SetTextFont(61); latex.SetTextSize(textSize); latex.DrawLatex(0.853,0.875,"CMS"); latex.SetTextFont(52); latex.SetTextSize(textSize*0.76); if(!_mcOnly) { if(_prel) latex.DrawLatex(0.80,0.84,"Preliminary"); } else latex.DrawLatex(0.81,0.84,"Simulation"); } else { latex.SetName("lumiText"); latex.SetTextFont(42); if (_lumi > 0.) { latex.SetTextAlign(31); // align left, right=31 latex.SetTextSize(textSize*0.6/0.75); if(_lumi > 1000 ) latex.DrawLatex(0.922,0.96,Form(" %.1f fb^{-1} (%.0f TeV)",_lumi/1000., _energy) ); else latex.DrawLatex(0.922,0.96,Form(" %.0f pb^{-1} (%.0f TeV)",_lumi, _energy) ); } latex.SetTextAlign(11); // align left latex.SetTextFont(61); latex.SetTextSize(textSize); latex.DrawLatex(0.807,0.875,"CMS"); latex.SetTextFont(52); latex.SetTextSize(textSize*0.76); if(!_mcOnly) { if(_prel) latex.DrawLatex(0.759,0.84,"Preliminary"); } else latex.DrawLatex(0.749,0.84,"Simulation"); } } void DisplayClass::addText(float x, float y, float s, string text) { _pads[0][0]->cd(); TLatex t; t.SetNDC(); t.SetTextSize(s); t.SetName("addtext"); t.DrawLatex(x,y,text.c_str() ); } void DisplayClass::addLine(float x1, float y1, float x2, float y2, int style, int col, int size) { _pads[0][0]->cd(); TLine* l=new TLine(x1,y1,x2,y2); l->SetLineStyle(style); l->SetLineColor(col); l->SetLineWidth(size); l->Draw("same"); } void DisplayClass::adjustLegend(int iobs, bool skipCoords) { float xd,xu,yd,yu,f=1.; if(!skipCoords) { if(_normOpts.find("norm")!=_normOpts.end() ) { // normalized to one, all plots needed for(size_t ih=0;ih<_nhmc;ih++) { _hCoords.push_back( HistoUtils::getHistoUpperCoordinates(_hClones[ih]) ); } } else { if(!_dOnly) _hCoords.push_back( HistoUtils::getHistoUpperCoordinates(_hMC) ); //and the signals if not summed... for(size_t ih=0;ih<_nhmc;ih++) { string nh = (string)( _hClones[ih]->GetName()); if( !_sSignal && nh.find("sig")!=(size_t)-1) { _hCoords.push_back( HistoUtils::getHistoUpperCoordinates(_hClones[ih]) ); } } } if(_addSyst) { _hCoords.push_back( HistoUtils::getGraphUpperCoordinatesWithError(_mcUncert[0]) ); } if(!_mcOnly) { float dNorm = 1.; if(_normOpts.find("norm")!=_normOpts.end()) dNorm=_hData->Integral(0,10000000); if(_normOpts.find("uni")!=_normOpts.end()) dNorm=1.; if(_normOpts.find("dif")!=_normOpts.end()) //temporary fix _hCoords.push_back( HistoUtils::getHistoUpperCoordinatesWithError(_hData, dNorm) ); } } getLegendCoordinate(_hMC,xd,yd,xu,yu,f,iobs); _leg = new TLegend(xd,yd,xu,yu); _leg->SetName("legend"); _leg->SetTextSize(0.039*f); _leg->SetShadowColor(0); _leg->SetLineColor(1); _leg->SetFillColor(0); map<string,size_t> sigs; string legOpt="pl"; if(_normOpts.find("norm")!=_normOpts.end()) legOpt="l"; if(!_mcOnly) _leg->AddEntry(_gData,"data", legOpt.c_str() ); if( _is1D) { for(size_t i=0;i<_nhmc;i++) { string nh = (string)( _hClones[i]->GetName()); if( nh.find("sig")==(size_t)-1) { _leg->AddEntry(_hClones[i],_names[_nhmc-i-1].c_str(),"f"); } else { string na = _names[_nhmc-i-1]; size_t b = _names[_nhmc-i-1].find("sig"); na.erase(b, 3); sigs[ na ] = i ; } } } if(_addSyst && !_is2D) { _leg->AddEntry(_mcUncert[0]->Clone(),"uncertainties","f"); } for(map<string,size_t>::const_iterator it=sigs.begin(); it!=sigs.end();it++) { _leg->AddEntry(_hClones[it->second],it->first.c_str(),_sSignal?"f":"l"); } } void DisplayClass::getLegendCoordinate(TH1*h, float& pxd, float& pyd, float& pxu, float& pyu,float& fo, int iobs) { //default values pxd = 0.5; pyd = 0.5; pxu = 0.7; pyu = 0.8; fo = 0.9; int nObj = min(_names.size()+(int)(!_mcOnly)+(int)_addSyst, (size_t)17); float Dy = 0.051; float dy = nObj*Dy; float dx=0.291; vector<float> out(4,0); float xu,yu,xd,yd; float tmpf=0; float di=0.01; float x_off=1.; float y_off=1.; int nt=100; float Xtu=_pads[0][iobs]->GetUxmax(); float Xtd=_pads[0][iobs]->GetUxmin(); float Ytu=_pads[0][iobs]->GetUymax(); float Ytd=_pads[0][iobs]->GetUymin(); float Xof=0.01; float Yof=0.035; _xdlim=(_pads[0][iobs]->XtoPixel( Xtd ))/(float)_wpad + Xof; _ydlim=1-(_pads[0][iobs]->YtoPixel( Ytd ))/(float)_hpad + Yof; _xulim=(_pads[0][iobs]->XtoPixel( Xtu ))/(float)_wpad - Xof; _yulim=1-(_pads[0][iobs]->YtoPixel( Ytu ))/(float)_hpad - Yof; //LumiPad ======================================================================= float xlp,ylp; float xLm=_xulim,yLm=_yulim; TList *ListOfObject = _pads[0][iobs]->GetListOfPrimitives(); if (ListOfObject) { TIter next(ListOfObject); TObject *ThisObject; while ( (ThisObject=(TObject*)next()) ) { TString ClassName = ThisObject->ClassName(); if(ClassName=="TLatex") { xlp = ((TLatex*)ThisObject)->GetX(); ylp = ((TLatex*)ThisObject)->GetY()-0.01; if(xlp>_xdlim && xlp<_xulim && ylp>_ydlim && ylp<_yulim) { xLm=xlp-0.01; yLm=ylp-0.01; } } } } //LumiPad ======================================================================= int n=0; while( n<nt*nt) { if(_is1D) { xu = x_off-(n%nt)*di; yu = y_off-(n/nt)*di; xd = xu-dx; yd = yu-dy; n++; if(xd<_xdlim || xu>_xulim || yd<_ydlim || yu>_yulim) continue; if(yu>yLm && xu>xLm ) continue; float f=1.; bool abortPos=false; for(size_t id=0;id<_hCoords.size();id++) { if(yu < graphVal(xu,id,iobs) || yu < graphVal(xd,id,iobs) ) { abortPos=true; break;} graphConstraint(id,iobs, xd, xu, yd, yu,f, dx,dy ); } if(abortPos) continue; if(f==1) { //found a definitive position pxu = xu; pxd = xd; pyu = yu; pyd = yd; fo =f; return; } if(f>tmpf) { pxu = xu; pxd = xd; pyu = yu; pyd = yd; fo=f; tmpf=f; } }//if is1D }//position tries return; } float DisplayClass::graphVal(float x,int ih, int iobs) { float X = _pads[0][iobs]->PixeltoX( x*_wpad ); size_t bin = StatUtils::findBin<float>(X, _hCoords[ih][0] ); if(bin==(unsigned int)-1) bin=0; //means we are looking below a given graph if(bin==_hCoords[ih][0].size()) bin=_hCoords[ih][0].size()-1; //cout<<" ---> "<<bin<<" "<<_hCoords[ih][1].size()<<" "<<X<<" "<<x<<" ==> "<<ih<<endl; float yt=_logYScale?(log(_hCoords[ih][1][bin])/log(10)):_hCoords[ih][1][bin]; float y = 1 - (_pads[0][iobs]->YtoPixel( yt ))/(float)_hpad; return y; } void DisplayClass::graphConstraint(size_t ih, int iobs, float& xd, float& xu, float& yd, float& yu,float& f, float dx, float dy) { bool lCorIP= (yd < graphVal(xd,ih,iobs)); bool rCorIP= (yd < graphVal(xu,ih,iobs)); while( lCorIP || rCorIP ) { //while one of the legend corner is in the plot f -= 0.05; if(f<=0) break; if(lCorIP && rCorIP) { //both corners in the plot if(xd>0.5) { //move the left corner up if legend on the right xd = xu-dx*f; yd = yu-dy*f; } else { //move the right corner up if legend on the left xu = xd+dx*f; yd = yu-dy*f; } } else if(lCorIP) { //right corner in the plot //move the right corner up xu = xd+dx*f; yd = yu-dy*f; } else if(rCorIP) { //left corner in the plot //move the left corner up xd = xu-dx*f; yd = yu-dy*f; } lCorIP= (yd < graphVal(xu,ih,iobs)); rCorIP= (yd < graphVal(xd,ih,iobs)); } //now check the lower band bool lBandIP=false; float dX=xu-xd; for(int i=0;i<100;i++) { if(yd < graphVal(xd + i*dX/100. ,ih,iobs) ) { lBandIP=true; break; } } while( lBandIP) { f -= 0.05; if(f<=0) break; if(xd>0.5) { //move the left corner up if legend on the right xd = xu-dx*f; yd = yu-dy*f; } else { //move the right corner up if legend on the left xu = xd+dx*f; yd = yu-dy*f; } lBandIP =false; dX=xu-xd; for(int i=0;i<100;i++) { if(yd < graphVal(xd + i*dX/100. ,ih,iobs) ) { lBandIP=true; break; } } } }
[ "cheidegg@student.ethz.ch" ]
cheidegg@student.ethz.ch
d745e558537b7c6da12944c109c07e8cd75c198c
c9cdb8772eb74c832b703624f6395f1e8b84c09e
/CCore/inc/ObjHost.h
d0804a4c3cd8e39221bb1faa6b1030e89cfefff4
[ "BSL-1.0" ]
permissive
SergeyStrukov/CCore
70799f40d0ecfec75ab9298f60e7396413931800
509bd439ae5621603f9fbe8e8b3ca03721ac283b
refs/heads/master
2021-01-17T17:01:19.899215
2015-08-12T18:41:25
2015-08-12T18:41:25
3,891,233
6
1
null
null
null
null
UTF-8
C++
false
false
9,701
h
/* ObjHost.h */ //---------------------------------------------------------------------------------------- // // Project: CCore 1.02 // // Tag: General // // License: Boost Software License - Version 1.0 - August 17th, 2003 // // see http://www.boost.org/LICENSE_1_0.txt or the local copy // // Copyright (c) 2010 Sergey Strukov. All rights reserved. // //---------------------------------------------------------------------------------------- #ifndef CCore_inc_ObjHost_h #define CCore_inc_ObjHost_h #include <CCore/inc/PlanInit.h> #include <CCore/inc/Printf.h> #include <CCore/inc/Tree.h> #include <CCore/inc/Array.h> #include <CCore/inc/OwnPtr.h> #include <CCore/inc/ElementPool.h> #include <CCore/inc/Task.h> namespace CCore { /* GetPlanInitNode_...() */ PlanInitNode * GetPlanInitNode_ObjHost(); /* classes */ struct ObjKey; class ObjBase; class ObjHost; struct ObjInfo; template <class T> struct ObjInfo_if; struct ObjInfo_obj; template <class T> struct ObjInfo_obj_if; class ObjHook; class ObjMaster; class ObjMaster_delete; /* struct ObjKey */ struct ObjKey { uint32 hash; StrLen name; ObjKey() : hash(),name() {} explicit ObjKey(StrLen name); CmpResult objCmp(const ObjKey &obj) const { if( CmpResult ret=Cmp(hash,obj.hash) ) return ret; return StrCmp(name,obj.name); } }; /* class ObjBase */ class ObjBase : public MemBase_nocopy { AntiSem asem; RBTreeUpLink<ObjBase,ObjKey> link; Atomic hosted; private: friend class ObjHost; friend class ObjHook; public: ObjBase() : asem("ObjBase") {} virtual ~ObjBase() {} void wait_released() { asem.wait(); } bool wait_released(MSec timeout) { return asem.wait(timeout); } bool wait_released(TimeScope time_scope) { return asem.wait(time_scope); } }; /* class ObjHost */ class ObjHost : NoCopy { Mutex mutex; typedef RBTreeUpLink<ObjBase,ObjKey>::Algo<&ObjBase::link> Algo; Algo::Root root; private: ObjBase * lock(StrLen name,bool do_throw=true); ObjBase * try_lock(StrLen name) { return lock(name,false); } friend class ObjHook; template <class Func> void apply(Func &func,ObjBase *obj) { if( obj ) { func(obj); apply(func,Algo::Link(obj).lo); apply(func,Algo::Link(obj).hi); } } template <class FuncInit> void apply(FuncInit func_init) // locked operation { Mutex::Lock lock(mutex); FunctorTypeOf<FuncInit> func(func_init); apply(func,root.root); } template <bool Lock> struct ListLock; static StrLen Dup(StrLen name); static void Free(StrLen name); class SetHosted; public: explicit ObjHost(TextLabel name); ~ObjHost(); void add(ObjBase &obj,StrLen name); void del(ObjBase &obj); static ObjHost & Default(); template <class Info> class List; }; template <> struct ObjHost::ListLock<true> { static void Lock(ObjBase *obj) { obj->asem.inc(); } template <class Info> static void Unlock(PtrLen<Info> r) { for(; +r ;++r) r->getObj()->asem.dec(); } }; template <> struct ObjHost::ListLock<false> { static void Lock(ObjBase *) {} template <class Info> static void Unlock(PtrLen<Info>) {} }; /* class ObjHost::List<Info> */ template <class Info> class ObjHost::List : NoCopy { ElementPool pool; DynArray<Info> infos; private: void add(ObjBase *obj) { typename Info::Extra extra(obj); if( !extra ) return; StrLen name=Algo::Link(obj).key.name; infos.append_fill(obj,pool.dup(name),extra); ListLock<Info::Lock>::Lock(obj); } public: List() : pool(4_KByte),infos(DoReserve,100) {} ~List() { ListLock<Info::Lock>::Unlock(Range(infos)); } void build(ObjHost &host=Default()) { List<Info> &list=*this; host.apply( [&] (ObjBase *obj) { list.add(obj); } ); } const Info * getPtr() const { return infos.getPtr(); } ulen getLen() const { return infos.getLen(); } }; /* struct ObjInfo */ struct ObjInfo { enum LockFlagType { Lock=false }; typedef ObjBase * Extra; // data StrLen name; // constructors ObjInfo(ObjBase *,StrLen name_,Extra) : name(name_) {} // print object template <class P> void print(P &out) const { Printf(out,"#;",name); } // no-throw flags enum NoThrowFlagType { Default_no_throw = true, Copy_no_throw = true }; }; /* struct ObjInfo_if<T> */ template <class T> struct ObjInfo_if { enum LockFlagType { Lock=false }; struct Extra { T *ptr; explicit Extra(ObjBase *obj) : ptr(dynamic_cast<T *>(obj)) {} bool operator ! () const { return !ptr; } }; // data StrLen name; // constructors ObjInfo_if(ObjBase *,StrLen name_,Extra) : name(name_) {} // print object template <class P> void print(P &out) const { Printf(out,"#;",name); } // no-throw flags enum NoThrowFlagType { Default_no_throw = true, Copy_no_throw = true }; }; /* struct ObjInfo_obj */ struct ObjInfo_obj { enum LockFlagType { Lock=true }; typedef ObjBase * Extra; // data StrLen name; ObjBase *obj; // constructors ObjInfo_obj(ObjBase *obj_,StrLen name_,Extra) : name(name_),obj(obj_) {} // methods ObjBase * getObj() const { return obj; } // print object template <class P> void print(P &out) const { Printf(out,"#;",name); } // no-throw flags enum NoThrowFlagType { Default_no_throw = true, Copy_no_throw = true }; }; /* struct ObjInfo_obj_if<T> */ template <class T> struct ObjInfo_obj_if { enum LockFlagType { Lock=true }; struct Extra { ObjBase *obj; T *ptr; explicit Extra(ObjBase *obj_) : obj(obj_),ptr(dynamic_cast<T *>(obj_)) {} bool operator ! () const { return !ptr; } }; // data StrLen name; Extra extra; // constructors ObjInfo_obj_if(ObjBase *,StrLen name_,Extra extra_) : name(name_),extra(extra_) {} // methods ObjBase * getObj() const { return extra.obj; } T * getPtr() const { return extra.ptr; } // print object template <class P> void print(P &out) const { Printf(out,"#;",name); } // no-throw flags enum NoThrowFlagType { Default_no_throw = true, Copy_no_throw = true }; }; /* class ObjHook */ class ObjHook : NoCopy { ObjBase *obj; private: void lock(StrLen name,ObjHost &host=ObjHost::Default()) { obj=host.lock(name); } void try_lock(StrLen name,ObjHost &host=ObjHost::Default()) { obj=host.try_lock(name); } static void GuardObjCastFailed(); public: // // assign/move/swap are not provided to prevent cyclic dependencies // // constructors ObjHook(ObjHost &host,StrLen name) { lock(name,host); } explicit ObjHook(StrLen name) { lock(name); } ObjHook(JustTryType,ObjHost &host,StrLen name) { try_lock(name,host); } ObjHook(JustTryType,StrLen name) { try_lock(name); } ~ObjHook() { if( obj ) obj->asem.dec(); } // cast bool operator + () const { return obj; } bool operator ! () const { return !obj; } template <class T> T * cast() const { return dynamic_cast<T *>(obj); } template <class T> T * cast_guarded() const { T *ret=cast<T>(); if( !ret ) GuardObjCastFailed(); return ret; } template <class T> operator T * () const { return cast_guarded<T>(); } // copy objects ObjHook(const ObjHook &hook) : NoCopy() // warning supression { obj=hook.obj; if( obj ) obj->asem.inc(); } }; /* class ObjMaster */ class ObjMaster : NoCopy { ObjHost &host; ObjBase &obj; public: ObjMaster(ObjHost &host_,ObjBase &obj_,StrLen name) : host(host_), obj(obj_) { host.add(obj,name); } ObjMaster(ObjBase &obj_,StrLen name) : host(ObjHost::Default()), obj(obj_) { host.add(obj,name); } ~ObjMaster() { host.del(obj); obj.wait_released(); } // no-throw flags enum NoThrowFlagType { Default_no_throw = true, Copy_no_throw = true }; }; /* class ObjMaster_delete */ class ObjMaster_delete : NoCopy { ObjHost &host; OwnPtr<ObjBase> obj; public: ObjMaster_delete(ObjHost &host_,ObjBase *obj_,StrLen name) : host(host_), obj(obj_) { host.add(*obj,name); } ObjMaster_delete(ObjBase *obj_,StrLen name) : host(ObjHost::Default()), obj(obj_) { host.add(*obj,name); } ~ObjMaster_delete() { host.del(*obj); obj->wait_released(); } // no-throw flags enum NoThrowFlagType { Default_no_throw = true, Copy_no_throw = true }; }; } // namespace CCore #endif
[ "sshimnick@hotmail.com" ]
sshimnick@hotmail.com
edd7eb9b3696ceb8e2d6734c7b5a9fcdd87925e7
9596bd158d209c2d2d3615a59cf851badd11d752
/Builds/Il2CppOutputProject/Source/il2cppOutput/Generics2.cpp
fe34fd18a2ecdaa8562ee2161c3f8e0361c6239e
[]
no_license
Crazyhenry123/Calolens
4c662b047c45047c977c74db4fba5c886fdbe4c5
f0e1fca2b5bd3a92c010f756666208d3d6938595
refs/heads/master
2023-08-29T14:59:42.580615
2021-10-19T13:07:06
2021-10-19T13:07:06
416,253,871
0
0
null
null
null
null
UTF-8
C++
false
false
1,830,821
cpp
#include "pch-cpp.hpp" #ifndef _MSC_VER # include <alloca.h> #else # include <malloc.h> #endif #include <limits> #include <stdint.h> template <typename R, typename T1, typename T2> struct InterfaceFuncInvoker2 { typedef R (*Func)(void*, T1, T2, const RuntimeMethod*); static inline R Invoke (Il2CppMethodSlot slot, RuntimeClass* declaringInterface, RuntimeObject* obj, T1 p1, T2 p2) { const VirtualInvokeData& invokeData = il2cpp_codegen_get_interface_invoke_data(slot, obj, declaringInterface); return ((Func)invokeData.methodPtr)(obj, p1, p2, invokeData.method); } }; // System.Collections.Generic.Comparer`1<System.Collections.Generic.KeyValuePair`2<System.UInt32,Microsoft.MixedReality.Toolkit.UI.ObjectManipulator/PointerData>> struct Comparer_1_tFF5ADC8155B95AC6214A3245C65687DD17A86543; // System.Collections.Generic.Comparer`1<System.Collections.Generic.KeyValuePair`2<System.UInt64,System.Object>> struct Comparer_1_tE5979B384482E06BAFB2079B78DCF2987FF22830; // System.Collections.Generic.Comparer`1<System.Collections.Generic.KeyValuePair`2<UnityEngine.Vector3,System.Object>> struct Comparer_1_t27ED41ED2CE084B91431B5A38BA66BF834A164CC; // System.Collections.Generic.Comparer`1<System.Collections.Generic.KeyValuePair`2<UnityEngine.Experimental.TerrainAPI.TerrainUtility/TerrainMap/TileCoord,System.Object>> struct Comparer_1_t8851ADD4CD7425275A30FE07841E93EBE6A5318A; // System.Collections.Generic.Comparer`1<System.Collections.Generic.KeyValuePair`2<System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal/NativeOrStaticEventRegistrationImpl/EventCacheKey,System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal/NativeOrStaticEventRegistrationImpl/EventCacheEntry>> struct Comparer_1_t35BB3526EED97903C4E4817C3BAB9D1C14471A94; // System.Collections.Generic.Comparer`1<Newtonsoft.Json.Utilities.StructMultiKey`2<System.Object,System.Object>> struct Comparer_1_t6DF9C6FAF645716D2161E520EB681320C3D3F7CC; // System.Collections.Generic.Comparer`1<UnityEngine.XR.Bone> struct Comparer_1_t36A3604A3B46EDC55CDAD4A35DA7E6CCADB184A2; // System.Collections.Generic.Comparer`1<System.Boolean> struct Comparer_1_tC0B38F30FEF4F46666AA129BB9DBBD166FF98149; // System.Collections.Generic.Comparer`1<System.Byte> struct Comparer_1_t346664F08452EB01EAF33D1A6102E414E093D66D; // System.Collections.Generic.Comparer`1<System.Char> struct Comparer_1_tC38AB2E5AE44DA7D8AE64184D06825F6EEA94EB4; // System.Collections.Generic.Comparer`1<UnityEngine.Color> struct Comparer_1_tD664CD86F4232686CF77C873ACAA28BABF5B9A6A; // System.Collections.Generic.Comparer`1<UnityEngine.Color32> struct Comparer_1_t06A148CCE1860B6B5057FF01C119673090F064F5; // System.Collections.Generic.Comparer`1<System.DateTime> struct Comparer_1_t956A8C99F0342001A04B720E5E95BAE4B8086032; // System.Collections.Generic.Comparer`1<System.DateTimeOffset> struct Comparer_1_tBC014CCD2A69AF80CBAD21AEFB5817872C50169B; // System.Collections.Generic.Comparer`1<System.Decimal> struct Comparer_1_tEFB1740196FD956BA3930F72EAB67162C60CA204; // System.Collections.Generic.Comparer`1<System.Double> struct Comparer_1_tFA7BB54D9C304F3F609A9370166110D973A8307C; // System.Collections.Generic.Comparer`1<Microsoft.MixedReality.Toolkit.Boundary.Edge> struct Comparer_1_tB762AFE1AFBFFF22BF05602D3BD6E40330EF909A; // System.Collections.Generic.Comparer`1<System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken> struct Comparer_1_tACFA0E90774BE88B1013E2F15D08F249EF776CB2; // System.Collections.Generic.Comparer`1<UnityEngine.TextCore.GlyphRect> struct Comparer_1_tB8DDBF2B4A19D6771A9A5BDF885B7C84D18B0314; // System.Collections.Generic.Comparer`1<System.Guid> struct Comparer_1_t2EB7657A4870B636EBF36EC87C0E9BEAD4EB994E; // System.Collections.Generic.Comparer`1<UnityEngine.InputSystem.InputBinding> struct Comparer_1_tF1626F8A8AF35E99CD061E07752CF281AED1B317; // System.Collections.Generic.Comparer`1<UnityEngine.XR.InputDevice> struct Comparer_1_t439973A713201373270F785C17070796654B147F; // System.Collections.Generic.Comparer`1<UnityEngine.InputSystem.Layouts.InputDeviceDescription> struct Comparer_1_t59395996F8DE7B254E2AA6B94A083A3EEEE35F95; // System.Collections.Generic.Comparer`1<UnityEngine.InputSystem.LowLevel.InputEventPtr> struct Comparer_1_tCD0C98BC45CDCF14015618213D400E9F35574EBA; // System.Collections.Generic.Comparer`1<Microsoft.MixedReality.Toolkit.Utilities.Editor.InspectorPropertySetting> struct Comparer_1_t19025AE1ADBF92A6B621A3BDE0D34F51E39505BB; // System.Collections.Generic.Comparer`1<System.Int16> struct Comparer_1_t0B4899E6018F9D85829D592D6DFB60E2180C6D7D; // System.Collections.Generic.Comparer`1<System.Int32> struct Comparer_1_t3E3093220DB5D33A829C91C1DFDBDE2F42ECEDC7; // System.Collections.Generic.Comparer`1<System.Int32Enum> struct Comparer_1_t0D4A8BA5B0F975F811F185B35E597041D0D23BD4; // System.Collections.Generic.Comparer`1<System.Int64> struct Comparer_1_tE62D0C5B2FD73EBC01ABA133568B5DE8B200A220; // System.Collections.Generic.Comparer`1<UnityEngine.InputSystem.Utilities.InternedString> struct Comparer_1_tA3EEEEBFB986DD2BD0A34C300A52DDE5010A950A; // System.Collections.Generic.Comparer`1<System.Linq.Expressions.Interpreter.InterpretedFrameInfo> struct Comparer_1_t263EB54CA1238067D867DA25B24F5354423883A1; // System.Comparison`1<System.Collections.Generic.KeyValuePair`2<System.UInt32,Microsoft.MixedReality.Toolkit.UI.ObjectManipulator/PointerData>> struct Comparison_1_t06C6A50C081F0BD8CF06DAF062041DCD491DA182; // System.Comparison`1<System.Collections.Generic.KeyValuePair`2<System.UInt64,System.Object>> struct Comparison_1_tCB6ED764FE30D86B3E159C8F8284298D9A7A3E84; // System.Comparison`1<System.Collections.Generic.KeyValuePair`2<UnityEngine.Vector3,System.Object>> struct Comparison_1_t8DE3221733CF5C3D7158DF8B83A8673B982861BC; // System.Comparison`1<System.Collections.Generic.KeyValuePair`2<UnityEngine.Experimental.TerrainAPI.TerrainUtility/TerrainMap/TileCoord,System.Object>> struct Comparison_1_t1D33596C3D38DCFBCA6A4E789D13F0A3022A3D6D; // System.Comparison`1<System.Collections.Generic.KeyValuePair`2<System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal/NativeOrStaticEventRegistrationImpl/EventCacheKey,System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal/NativeOrStaticEventRegistrationImpl/EventCacheEntry>> struct Comparison_1_tA26B7ECAC056A07F4D4B7ED815E45397238FD870; // System.Comparison`1<Newtonsoft.Json.Utilities.StructMultiKey`2<System.Object,System.Object>> struct Comparison_1_t4416764FBA5772FAEAD3B0E55B7613EDC23DA078; // System.Comparison`1<UnityEngine.XR.Bone> struct Comparison_1_t4AF545185E36C74EC29C2FC74162A0000184CB09; // System.Comparison`1<System.Boolean> struct Comparison_1_t361FD570B26BC4AFFF2982AAB3011075A8281A0C; // System.Comparison`1<System.Byte> struct Comparison_1_t16CD2D4AE94F3B3121F8DE407B0D15E192CF6FCC; // System.Comparison`1<System.Char> struct Comparison_1_tA212A4EA4B6B81B0C43E008C21F23961526FB45E; // System.Comparison`1<UnityEngine.Color> struct Comparison_1_tBA50C326C36BBCACB9EEF69FBE15237772260CE5; // System.Comparison`1<UnityEngine.Color32> struct Comparison_1_tF8CF11AB1893EC96EC5344F386B07B3C598EFFBF; // System.Comparison`1<System.DateTime> struct Comparison_1_tF3A572267B1BF59C885566FB3336ADFA0B6AB836; // System.Comparison`1<System.DateTimeOffset> struct Comparison_1_t01015852A660A57F66433C7F09FB87DCE9CF0DC8; // System.Comparison`1<System.Decimal> struct Comparison_1_t7E88D390C030E2806A3AE4117C486DECF61C2955; // System.Comparison`1<System.Double> struct Comparison_1_t08C078C3FDDD0746272F4DC7A982874AB477F342; // System.Comparison`1<Microsoft.MixedReality.Toolkit.Boundary.Edge> struct Comparison_1_t32F3C4F35231CD50E34D29CCA49E78C670A0CF17; // System.Comparison`1<System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken> struct Comparison_1_t808B3C7A1EC3855CB188E50BBE0384CF600AB0D6; // System.Comparison`1<UnityEngine.TextCore.GlyphRect> struct Comparison_1_t32BE1C0C30DA507C0C8E9C6A556BC25DDBE292FE; // System.Comparison`1<System.Guid> struct Comparison_1_t8F5B6FDF6F80F8F406E8649C7010FA9193CD7AC5; // System.Comparison`1<UnityEngine.InputSystem.InputBinding> struct Comparison_1_t4F5C215788C9C09FAFB5C10F437A7769956F32A0; // System.Comparison`1<UnityEngine.XR.InputDevice> struct Comparison_1_t370A7EC51138A7AEA3BF6A503F35F7D093D6CAF1; // System.Comparison`1<UnityEngine.InputSystem.Layouts.InputDeviceDescription> struct Comparison_1_tC442DCC0ACA3EDEF66ACEF4439730285E1662137; // System.Comparison`1<UnityEngine.InputSystem.LowLevel.InputEventPtr> struct Comparison_1_t9B89F606416E5AC3B5A40CA3B9554DC9DDFFEA50; // System.Comparison`1<Microsoft.MixedReality.Toolkit.Utilities.Editor.InspectorPropertySetting> struct Comparison_1_tD096E002D2CC9ACAC9904324E4B869286880C0D1; // System.Comparison`1<System.Int16> struct Comparison_1_tB6FC1D7EE4276EE69F8CCDADF94587957DF15C97; // System.Comparison`1<System.Int32> struct Comparison_1_t3430355DCDD0AF453788265DC88E9288D19C4E9C; // System.Comparison`1<System.Int32Enum> struct Comparison_1_t0507E43E406490DCD6586BD5626BDFF91A5A6440; // System.Comparison`1<System.Int64> struct Comparison_1_tD92B78AEB5AD82F2DCADCC9A5D0C2BE72D2969DF; // System.Comparison`1<UnityEngine.InputSystem.Utilities.InternedString> struct Comparison_1_t1983F36BDC7F5FA1724FDF6EB03F8980528557E6; // System.Comparison`1<System.Linq.Expressions.Interpreter.InterpretedFrameInfo> struct Comparison_1_t42880657979A7A068EDB75370336E9CAC5E0F734; // System.Runtime.CompilerServices.ConditionalWeakTable`2<System.Object,System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal/NativeOrStaticEventRegistrationImpl/EventRegistrationTokenListWithCount> struct ConditionalWeakTable_2_tDE9E02FF583A5D6707A2CCEF9E15BD2791EA4229; // System.Collections.Generic.IComparer`1<System.Collections.Generic.KeyValuePair`2<System.UInt32,Microsoft.MixedReality.Toolkit.UI.ObjectManipulator/PointerData>> struct IComparer_1_t0D933671652D49DEF6A640B9C8C847350A5CD829; // System.Collections.Generic.IComparer`1<System.Collections.Generic.KeyValuePair`2<System.UInt64,System.Object>> struct IComparer_1_t80D137E56A72B5B97F72A1F7AF17729FFCB85EE6; // System.Collections.Generic.IComparer`1<System.Collections.Generic.KeyValuePair`2<UnityEngine.Vector3,System.Object>> struct IComparer_1_tECF7FFDB62039C83E992E9BA9DE9F6264E792586; // System.Collections.Generic.IComparer`1<System.Collections.Generic.KeyValuePair`2<UnityEngine.Experimental.TerrainAPI.TerrainUtility/TerrainMap/TileCoord,System.Object>> struct IComparer_1_tCE92797A6553FDB549D0FA9801D790423E1987CD; // System.Collections.Generic.IComparer`1<System.Collections.Generic.KeyValuePair`2<System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal/NativeOrStaticEventRegistrationImpl/EventCacheKey,System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal/NativeOrStaticEventRegistrationImpl/EventCacheEntry>> struct IComparer_1_t4B76DBF00859F661079E5C0A86DBEE0BF0A6423B; // System.Collections.Generic.IComparer`1<Newtonsoft.Json.Utilities.StructMultiKey`2<System.Object,System.Object>> struct IComparer_1_tEA628C5DD74E1F4D1E1C97F308879858CCDADD38; // System.Collections.Generic.IComparer`1<UnityEngine.XR.Bone> struct IComparer_1_tB56D80660ED095D75169C4E233B7C17FBB3C6DC5; // System.Collections.Generic.IComparer`1<System.Boolean> struct IComparer_1_t8B6B12C796CEA3250989B848EF15F9AC74FCA96D; // System.Collections.Generic.IComparer`1<System.Byte> struct IComparer_1_t2D2A8A71CCDC87462467B6C8CECE38B345EA73CC; // System.Collections.Generic.IComparer`1<System.Char> struct IComparer_1_tE4C2FE6CFC13FACA741F2ECE56C8B3961B62257E; // System.Collections.Generic.IComparer`1<UnityEngine.Color> struct IComparer_1_t3A37B7C1397DFE65B9265963854AE7290AA88C1E; // System.Collections.Generic.IComparer`1<UnityEngine.Color32> struct IComparer_1_t8819CE7734324211E91EB6C5D79D9D7BF8706BA2; // System.Collections.Generic.IComparer`1<System.DateTime> struct IComparer_1_tC82DB539D7DB590A5ED7A20250D64A5895987963; // System.Collections.Generic.IComparer`1<System.DateTimeOffset> struct IComparer_1_t0067256E27E02BD7884A0CDDE84DFC241EAFDBE5; // System.Collections.Generic.IComparer`1<System.Decimal> struct IComparer_1_tF90F491CCCDA4E7B77D442CFD161860F6994B502; // System.Collections.Generic.IComparer`1<System.Double> struct IComparer_1_tB2E88433A86F5A1C333F154CA5BE14AD4374CD4C; // System.Collections.Generic.IComparer`1<Microsoft.MixedReality.Toolkit.Boundary.Edge> struct IComparer_1_tF2A545CDBB7AFD5FCA39939F237D914AC5AF6E8A; // System.Collections.Generic.IComparer`1<System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken> struct IComparer_1_t207AC48168CF6D804466A75DAFBAB15D41EA935A; // System.Collections.Generic.IComparer`1<UnityEngine.TextCore.GlyphRect> struct IComparer_1_tCD808DD197200D75BFA1B2C0994E3CBBAE37524B; // System.Collections.Generic.IComparer`1<System.Guid> struct IComparer_1_t15EC36B4D13708750543106D525E2D953EAFF4EC; // System.Collections.Generic.IComparer`1<UnityEngine.InputSystem.InputBinding> struct IComparer_1_tCF66FD7AEEAAFCCA6493C0F96C16DE6F5D0A48D2; // System.Collections.Generic.IComparer`1<UnityEngine.XR.InputDevice> struct IComparer_1_t74AAABAB4147761197C787773024309D09CD0B48; // System.Collections.Generic.IComparer`1<UnityEngine.InputSystem.Layouts.InputDeviceDescription> struct IComparer_1_t73FD02F8D17F61A71CBCB8D4B29A704445EF583C; // System.Collections.Generic.IComparer`1<UnityEngine.InputSystem.LowLevel.InputEventPtr> struct IComparer_1_t5509439FEB3832C90C2C7E241CE7D551E3EB3480; // System.Collections.Generic.IComparer`1<Microsoft.MixedReality.Toolkit.Utilities.Editor.InspectorPropertySetting> struct IComparer_1_t26B0EBD2B575672F6D3D080BB59C5AA7C5A8ED36; // System.Collections.Generic.IComparer`1<System.Int16> struct IComparer_1_t15C6044DD84FB76F0F43062707783C7EC2D6C07C; // System.Collections.Generic.IComparer`1<System.Int32> struct IComparer_1_t150A86695C404E117B1B644BEAD79BA2344FB009; // System.Collections.Generic.IComparer`1<System.Int32Enum> struct IComparer_1_tD549A09410D4B2909827E90635B8219C4E784E0F; // System.Collections.Generic.IComparer`1<System.Int64> struct IComparer_1_t53BE91553BC192B91A81E9C37073C6603A9940B6; // System.Collections.Generic.IComparer`1<UnityEngine.InputSystem.Utilities.InternedString> struct IComparer_1_tDF6ADBF305338A5573C504AFA11271793C842F92; // System.Collections.Generic.IComparer`1<System.Linq.Expressions.Interpreter.InterpretedFrameInfo> struct IComparer_1_tFA8784BF47FAC0CFE9A2BD96A825DA0B9732966B; // System.Collections.Generic.List`1<UnityEngine.XR.XRInputSubsystem> struct List_1_t39579540B4BF5D674E4CAA282D3CEA957BCB90D4; // System.Collections.Generic.KeyValuePair`2<System.UInt32,Microsoft.MixedReality.Toolkit.UI.ObjectManipulator/PointerData>[] struct KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064; // System.Collections.Generic.KeyValuePair`2<System.UInt64,System.Object>[] struct KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B; // System.Collections.Generic.KeyValuePair`2<UnityEngine.Vector3,System.Object>[] struct KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0; // System.Collections.Generic.KeyValuePair`2<UnityEngine.Experimental.TerrainAPI.TerrainUtility/TerrainMap/TileCoord,System.Object>[] struct KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C; // System.Collections.Generic.KeyValuePair`2<System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal/NativeOrStaticEventRegistrationImpl/EventCacheKey,System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal/NativeOrStaticEventRegistrationImpl/EventCacheEntry>[] struct KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102; // Newtonsoft.Json.Utilities.StructMultiKey`2<System.Object,System.Object>[] struct StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65; // UnityEngine.XR.Bone[] struct BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6; // System.Boolean[] struct BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C; // System.Byte[] struct ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726; // System.Char[] struct CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34; // UnityEngine.Color[] struct ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834; // UnityEngine.Color32[] struct Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2; // System.DateTime[] struct DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1; // System.DateTimeOffset[] struct DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826; // System.Decimal[] struct DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA; // System.Delegate[] struct DelegateU5BU5D_t677D8FE08A5F99E8EE49150B73966CD6E9BF7DB8; // System.Double[] struct DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB; // Microsoft.MixedReality.Toolkit.Boundary.Edge[] struct EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20; // System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken[] struct EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B; // UnityEngine.TextCore.GlyphRect[] struct GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA; // System.Guid[] struct GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8; // UnityEngine.InputSystem.InputBinding[] struct InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E; // UnityEngine.XR.InputDevice[] struct InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE; // UnityEngine.InputSystem.Layouts.InputDeviceDescription[] struct InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3; // UnityEngine.InputSystem.LowLevel.InputEventPtr[] struct InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A; // Microsoft.MixedReality.Toolkit.Utilities.Editor.InspectorPropertySetting[] struct InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD; // System.Int16[] struct Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD; // System.Int32[] struct Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32; // System.Int32Enum[] struct Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD; // System.Int64[] struct Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6; // System.IntPtr[] struct IntPtrU5BU5D_t27FC72B0409D75AAF33EC42498E8094E95FEE9A6; // UnityEngine.InputSystem.Utilities.InternedString[] struct InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648; // System.Linq.Expressions.Interpreter.InterpretedFrameInfo[] struct InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283; // System.Diagnostics.StackTrace[] struct StackTraceU5BU5D_t4AD999C288CB6D1F38A299D12B1598D606588971; // System.String[] struct StringU5BU5D_tACEBFEDE350025B554CD507C9AE8FFE49359549A; // System.UInt32[] struct UInt32U5BU5D_tCF06F1E9E72E0302C762578FF5358CC523F2A2CF; // UnityEngine.AnimationCurve struct AnimationCurve_t2D452A14820CEDB83BFF2C911682A4E59001AD03; // System.AsyncCallback struct AsyncCallback_tA7921BEF974919C46FF8F9D9867C567B200BB0EA; // UnityEngine.AudioClip struct AudioClip_t16D2E573E7CC1C5118D8EE0F0692D46866A1C0EE; // System.Linq.Expressions.Interpreter.DebugInfo struct DebugInfo_t2FD37DEB5529C6813FAD30E67627B4CEFE8033AC; // System.DelegateData struct DelegateData_t17DD30660E330C49381DAA99F934BE75CB11F288; // System.Exception struct Exception_t; // UnityEngine.GameObject struct GameObject_tC000A2E1A7CF1E10FD7BA08863287C072207C319; // System.IAsyncResult struct IAsyncResult_tC9F97BF36FCF122D29D3101D80642278297BF370; // System.Collections.IDictionary struct IDictionary_t99871C56B8EC2452AC5C4CF3831695E617B89D3A; // Microsoft.MixedReality.Toolkit.Input.IMixedRealityPointer struct IMixedRealityPointer_t822DC75FC5FE312C7B336AD3EEE3A2C624A5EA0A; // UnityEngine.InputSystem.LowLevel.InputEvent struct InputEvent_t501FCA2333E787A4DA3C7FF85383FBA452091C92; // System.InvalidOperationException struct InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB; // UnityEngine.Material struct Material_t8927C00353A72755313F046D0CE85178AE8218EE; // System.Reflection.MethodInfo struct MethodInfo_t; // UnityEngine.Object struct Object_tF2F3778131EFF286AF62B7B013A170F95A91571A; // System.Security.Cryptography.RandomNumberGenerator struct RandomNumberGenerator_t2CB5440F189986116A2FA9F907AE52644047AC50; // System.Runtime.Serialization.SafeSerializationManager struct SafeSerializationManager_tDE44F029589A028F8A3053C5C06153FAB4AAE29F; // UnityEngine.ScriptableObject struct ScriptableObject_t4361E08CEBF052C650D3666C7CEC37EB31DE116A; // System.String struct String_t; // UnityEngine.Texture struct Texture_t9FE0218A1EEDF266E8C85879FE123265CACC95AE; // UnityEngine.Events.UnityEvent struct UnityEvent_tA0EA9BC49FD7D5185E7A238EF2E0E6F5D0EE27F4; // System.Void struct Void_t700C6383A2A510C2CF4DD86DABD5CA9FF70ADAC5; // System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal/NativeOrStaticEventRegistrationImpl/TokenListCount struct TokenListCount_t769EA62356D8C37857DCC81DB79A76FA75E319AC; IL2CPP_EXTERN_C RuntimeClass* Exception_t_il2cpp_TypeInfo_var; IL2CPP_EXTERN_C RuntimeClass* IndexOutOfRangeException_tDC9EF7A0346CE39E54DA1083F07BE6DFC3CE2EDD_il2cpp_TypeInfo_var; IL2CPP_EXTERN_C RuntimeClass* InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB_il2cpp_TypeInfo_var; IL2CPP_EXTERN_C String_t* _stringLiteral6EDB6C049ED9617FA335A262A29BF30B15221AEA; IL2CPP_EXTERN_C const RuntimeMethod* ArraySortHelper_1_BinarySearch_m0CBCA58213435C59E810B54B0A1E228049819CB6_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* ArraySortHelper_1_BinarySearch_m151F0A21517DE820D86832DBBEA294F87F44E5F4_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* ArraySortHelper_1_BinarySearch_m1C42BD0DCD3434CB01C6E969B4418B4667D3AAB6_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* ArraySortHelper_1_BinarySearch_m1CA333A5AFCC5CAA34AE2211060A7CD634992652_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* ArraySortHelper_1_BinarySearch_m26A99985258E1FA7DC7F2C19FFB42F7D62F9C109_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* ArraySortHelper_1_BinarySearch_m2A8AE45AE6EF0E6AED9130F19B10FFAD9119F7BB_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* ArraySortHelper_1_BinarySearch_m2B9931C4861353C5DCD07C66AD7DE538F1671A05_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* ArraySortHelper_1_BinarySearch_m476190BE3123EC47C92A6BDB8A5C6FFFD1E239B8_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* ArraySortHelper_1_BinarySearch_m51D4FF2F18E519ABF889731DA1576CBCB09A3092_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* ArraySortHelper_1_BinarySearch_m5E72117D153F0C273EBB14177468B767B85FB158_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* ArraySortHelper_1_BinarySearch_m5EC0BFFEEA20A7D18A0B43526120E4BA25969B5E_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* ArraySortHelper_1_BinarySearch_m6DEF11605783432CC52651DF346D81AF420ED0A2_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* ArraySortHelper_1_BinarySearch_m77C7A16CED764BFEEC02DADDCAD3ECBE37023DC7_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* ArraySortHelper_1_BinarySearch_m7B30792BF8838F8DA38719516627D6F4C9174F14_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* ArraySortHelper_1_BinarySearch_m884D4FF28914C2E66D76E128A9D77E8E4DAAD78D_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* ArraySortHelper_1_BinarySearch_m972D13C70D2A3271EC7C457BB6F62DAA05F94CD6_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* ArraySortHelper_1_BinarySearch_m9AC0B4471A2CB7B844DBBFBDCECDF8762EFA63ED_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* ArraySortHelper_1_BinarySearch_mA1B314CD65077DFAC7EF6C3C22C0AA90DCE59AF6_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* ArraySortHelper_1_BinarySearch_mA222E2C7BABAFC988BA725B9A91834503E09BEDB_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* ArraySortHelper_1_BinarySearch_mA38479F54D222A5F0EDE55CE54F189EDA43C60D3_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* ArraySortHelper_1_BinarySearch_mA4F8BA0DD4507193D90D55CF48ADB08AB62A297D_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* ArraySortHelper_1_BinarySearch_mAC181B11BE7A303734AFCB62537A7D6C7AD88AE7_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* ArraySortHelper_1_BinarySearch_mCD1C3307C7D0FC5B6C09336386261F4F386713C4_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* ArraySortHelper_1_BinarySearch_mCE1754C5C7BDDE89A2CD9D0825E0BFDDB7FB3418_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* ArraySortHelper_1_BinarySearch_mCF85A6C7CC4BEEEA254D8E964AE0D559081C285E_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* ArraySortHelper_1_BinarySearch_mDF0B5BAFE420CE6C7022CE6A95583C23EB0430CC_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* ArraySortHelper_1_BinarySearch_mE76D8728CB15390968FC58A6734C3C12B0C9847F_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* ArraySortHelper_1_BinarySearch_mE7E52D054A6C93F0DB39AD6AFDD259967D380292_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* ArraySortHelper_1_BinarySearch_mE8CE8A395BCC565E18194834D7B7E3E284910758_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* ArraySortHelper_1_BinarySearch_mFDE487F6BCB415A3B8D1ED9AFDEE6E2B61ED0B88_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* ArraySortHelper_1_BinarySearch_mFE7E63524DB8EEDEABBCBBDB7AA3B9DCDBF78052_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* ArraySortHelper_1_Sort_m0397BDD177A27E91BA149FE75287E35D3620E34C_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* ArraySortHelper_1_Sort_m042552CEF22A3579AC64030D39F3D193956EDC96_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* ArraySortHelper_1_Sort_m04A02B771DC5046E9003DF90217750A0CB35E38B_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* ArraySortHelper_1_Sort_m057896199A9A64BFB19A9F9DB2A72593A7D73863_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* ArraySortHelper_1_Sort_m08330F517EAD508B209A2CAD5EDF974803567315_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* ArraySortHelper_1_Sort_m0E9AB1CF4E6457CE70BEF1C58E8B404D4AE800EF_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* ArraySortHelper_1_Sort_m1661777B0A95F6D806C6D93CF53873B85FADF73C_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* ArraySortHelper_1_Sort_m1E9184F32D901A2BFF6781EA8E1FBBF041632595_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* ArraySortHelper_1_Sort_m2384C955B3394C1EE9F776CFCC43351A366B0179_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* ArraySortHelper_1_Sort_m26FEF1D5CA711C9113952BBE8C9971E42B8856A6_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* ArraySortHelper_1_Sort_m2B6E839A0DF8E68C2128E45DD0473C6DF0E8D628_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* ArraySortHelper_1_Sort_m2E8466F67480DB0BA408FF96D55754B3AAC26D1C_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* ArraySortHelper_1_Sort_m33ECB1AE9E0098CAC91C41CDDF72F6CF1A045F7B_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* ArraySortHelper_1_Sort_m395AB7EDB8993DB3A5EF2B5984B4F706AF39F45A_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* ArraySortHelper_1_Sort_m447B746232511D03C7945AB4A88CBB8107290816_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* ArraySortHelper_1_Sort_m473BD482C625357381F628E80068F2752563CEEE_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* ArraySortHelper_1_Sort_m49E965FFD901DD6161E7384F663FF333FB9E4A81_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* ArraySortHelper_1_Sort_m4C3D844B7692E9CC36869F0AE4E9FF9E83F5D0E4_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* ArraySortHelper_1_Sort_m66687CBB8A94908F400688F9F159CA32E92C3AB1_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* ArraySortHelper_1_Sort_m6E3E6197E3A4DE1DDB726FA14208763878D14FEB_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* ArraySortHelper_1_Sort_m71149AF0BC579EE3C60CF6B1835EF8590320871D_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* ArraySortHelper_1_Sort_m72D76D9704C02DD92B41C7AD6F540111D51B08CB_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* ArraySortHelper_1_Sort_m72FE72C3B3D373D080F7B64B6F666706B6741791_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* ArraySortHelper_1_Sort_m748379CF763CF3CF47323FB3ACEF73DC8517DCEA_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* ArraySortHelper_1_Sort_m74F2A1DD9584E09E156F1E5A8FECC0DD107424BB_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* ArraySortHelper_1_Sort_m759BF1A8DDA94D0BD296B5E7FDF94A3B70C0D5A0_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* ArraySortHelper_1_Sort_m7AC392CCEC1D6F4510DD2267241AC15965A6FE6F_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* ArraySortHelper_1_Sort_m7FEC5C7FCB1B50E8A0F7CD5525A836CF02101786_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* ArraySortHelper_1_Sort_m839A64FB640DF1A3FFC43FB0D4466B222D84A5CC_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* ArraySortHelper_1_Sort_m86EA125CA96BD319C956605357A79F77FCF444D2_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* ArraySortHelper_1_Sort_m89C569EF5CAE7342E59C42D10E954AD80CE61BFD_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* ArraySortHelper_1_Sort_m8F2BCC34802F8D6610A7B8F4F1FFF966B4EAD741_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* ArraySortHelper_1_Sort_m8F4670C1F61D92599BACB2C11D636480346F1627_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* ArraySortHelper_1_Sort_m90EC3F70512AABDB77F617B7F1EB46B814E114A1_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* ArraySortHelper_1_Sort_m91F7B150C1469D93343E6A50567C6BE243978E24_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* ArraySortHelper_1_Sort_m9251CE0FCC10EA633883EBB189B31145FDA24EDE_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* ArraySortHelper_1_Sort_m927A5C32C7B253805ED3F72101F2246D25645AC0_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* ArraySortHelper_1_Sort_m9949398864F04AF24324274C3A288F8BE77D2BAD_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* ArraySortHelper_1_Sort_m99CA229AF8838230CC3ECE8890C1AF9947A81295_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* ArraySortHelper_1_Sort_m9BA141D9F66286C631A0AA624A4C8109B6739195_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* ArraySortHelper_1_Sort_mA57B8B37B26D46329D8B30C562681FBE080C2A33_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* ArraySortHelper_1_Sort_mA706ACFB43D2D40E51A98799CE904520B02A4631_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* ArraySortHelper_1_Sort_mAD310E9415B837C5755D703FE4FADB0FBC4BE4D4_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* ArraySortHelper_1_Sort_mB69C8CD784CCF7B781C4D316717DB4707C78B798_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* ArraySortHelper_1_Sort_mB6C4526FCC9F0BDD18D1438C22E4546015875E9E_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* ArraySortHelper_1_Sort_mB9F5A0EFBD82CB088D9585B063D9D10B41F6105B_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* ArraySortHelper_1_Sort_mBF94A42FD825D372AD75A2A98FEC3C7287E56E11_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* ArraySortHelper_1_Sort_mC1D0C5EC108B813C4F0862C9524CB4E3CA3FD758_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* ArraySortHelper_1_Sort_mC586C6EF7616FD576A351912A07F8755737E0BDD_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* ArraySortHelper_1_Sort_mCB09B28A5073562854300C9001C02A7050A52D38_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* ArraySortHelper_1_Sort_mCE73124DF0AFFB7869F21FE0219F6287C2D15C87_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* ArraySortHelper_1_Sort_mCF25294EEB3CDDDE8719287B7AAD2E3642D90C25_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* ArraySortHelper_1_Sort_mD3F6692CE32B698F3E7FAD21C2538C2C12419B6E_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* ArraySortHelper_1_Sort_mD550B242969B53D75044D3C1BB2FCC14F4575FAA_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* ArraySortHelper_1_Sort_mD6ED488C7E2AC0AF762D514D66A5E6B6C7B5A56D_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* ArraySortHelper_1_Sort_mD7E141533ED76F084E8A8FAFC52E3181C6322928_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* ArraySortHelper_1_Sort_mD81CF98D2A4E469911751347D197940E0831D7C4_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* ArraySortHelper_1_Sort_mDE253E2F839D7247C269BE1526535593A2EA7788_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* ArraySortHelper_1_Sort_mE5E37257261D63D4896707B66298DE13970DCB8B_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* ArraySortHelper_1_Sort_mEDBD802A10E2F9FAC38CEF19CC8C23AF922D0611_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* ArraySortHelper_1_Sort_mFC586C83A51D59AE3A065E32DC0E9556FEAF341F_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* ArraySortHelper_1_Sort_mFD815C31F65B4078990CEECB5B2E17C8BDF76F94_RuntimeMethod_var; struct AnimationCurve_t2D452A14820CEDB83BFF2C911682A4E59001AD03_marshaled_com; struct Delegate_t_marshaled_com; struct Delegate_t_marshaled_pinvoke; struct Exception_t_marshaled_com; struct Exception_t_marshaled_pinvoke; struct Object_tF2F3778131EFF286AF62B7B013A170F95A91571A_marshaled_com; struct ScriptableObject_t4361E08CEBF052C650D3666C7CEC37EB31DE116A_marshaled_com; struct KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064; struct KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B; struct KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0; struct KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C; struct KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102; struct StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65; struct BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6; struct BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C; struct ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726; struct CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34; struct ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834; struct Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2; struct DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1; struct DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826; struct DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA; struct DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB; struct EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20; struct EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B; struct GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA; struct GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8; struct InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E; struct InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE; struct InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3; struct InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A; struct InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD; struct Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD; struct Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32; struct Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD; struct Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6; struct InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648; struct InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283; IL2CPP_EXTERN_C_BEGIN IL2CPP_EXTERN_C_END #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Object // System.Collections.Generic.ArraySortHelper`1<System.Collections.Generic.KeyValuePair`2<System.UInt32,Microsoft.MixedReality.Toolkit.UI.ObjectManipulator/PointerData>> struct ArraySortHelper_1_t9B0575DB38D6D7E228A8F312561ACECDFC84E29C : public RuntimeObject { public: public: }; // System.Collections.Generic.ArraySortHelper`1<System.Collections.Generic.KeyValuePair`2<System.UInt64,System.Object>> struct ArraySortHelper_1_t3D36F2AE05F70D8658DC287138C5C6CE002FCAC2 : public RuntimeObject { public: public: }; // System.Collections.Generic.ArraySortHelper`1<System.Collections.Generic.KeyValuePair`2<UnityEngine.Vector3,System.Object>> struct ArraySortHelper_1_t92F35D0CB4049ABBC7859EF34FC0C6DE2FCAA563 : public RuntimeObject { public: public: }; // System.Collections.Generic.ArraySortHelper`1<System.Collections.Generic.KeyValuePair`2<UnityEngine.Experimental.TerrainAPI.TerrainUtility/TerrainMap/TileCoord,System.Object>> struct ArraySortHelper_1_t73EC2E7DF4318785D24777C7F4C0C6501157FAD1 : public RuntimeObject { public: public: }; // System.Collections.Generic.ArraySortHelper`1<System.Collections.Generic.KeyValuePair`2<System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal/NativeOrStaticEventRegistrationImpl/EventCacheKey,System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal/NativeOrStaticEventRegistrationImpl/EventCacheEntry>> struct ArraySortHelper_1_t3EACBB205636C69D2D4CD2F5B4DA564DD376DBAD : public RuntimeObject { public: public: }; // System.Collections.Generic.ArraySortHelper`1<Newtonsoft.Json.Utilities.StructMultiKey`2<System.Object,System.Object>> struct ArraySortHelper_1_t678C3210AB2205397D8B61D5A8069652C4748B2A : public RuntimeObject { public: public: }; // System.Collections.Generic.ArraySortHelper`1<UnityEngine.XR.Bone> struct ArraySortHelper_1_t9F9C2460C00B6BB540124E5C70BD6BA6BF4FBEC5 : public RuntimeObject { public: public: }; // System.Collections.Generic.ArraySortHelper`1<System.Boolean> struct ArraySortHelper_1_tE8BC1B34B8C9AA5132E2C155546414E59854DE8E : public RuntimeObject { public: public: }; // System.Collections.Generic.ArraySortHelper`1<System.Byte> struct ArraySortHelper_1_tA28D7D16F6739BCCFBD72C0807413BA9B31A0995 : public RuntimeObject { public: public: }; // System.Collections.Generic.ArraySortHelper`1<System.Char> struct ArraySortHelper_1_t5D33D39842BCF7FC1189BFAB38B2D7F376F7E863 : public RuntimeObject { public: public: }; // System.Collections.Generic.ArraySortHelper`1<UnityEngine.Color> struct ArraySortHelper_1_t1189E30B1E778CC5CE25CEC0D0180575D915E3F9 : public RuntimeObject { public: public: }; // System.Collections.Generic.ArraySortHelper`1<UnityEngine.Color32> struct ArraySortHelper_1_t78E599020053FB51DC34B757F972A5A7064E90BE : public RuntimeObject { public: public: }; // System.Collections.Generic.ArraySortHelper`1<System.DateTime> struct ArraySortHelper_1_t81F515A32ABC28E6C98C84B2F9C0EDACF1BAC219 : public RuntimeObject { public: public: }; // System.Collections.Generic.ArraySortHelper`1<System.DateTimeOffset> struct ArraySortHelper_1_t2E9D87F9707CAF267CE68320567A12F179DB66EE : public RuntimeObject { public: public: }; // System.Collections.Generic.ArraySortHelper`1<System.Decimal> struct ArraySortHelper_1_t91517937C83C0BAB37C0A9FC7DA90D82C4AE3D78 : public RuntimeObject { public: public: }; // System.Collections.Generic.ArraySortHelper`1<System.Double> struct ArraySortHelper_1_t395B47C9E8F7105A38B93FF367549A16548F6B70 : public RuntimeObject { public: public: }; // System.Collections.Generic.ArraySortHelper`1<Microsoft.MixedReality.Toolkit.Boundary.Edge> struct ArraySortHelper_1_tA8A6A343B31ACF0FAADABE98E7CBAA4D03BEEF26 : public RuntimeObject { public: public: }; // System.Collections.Generic.ArraySortHelper`1<System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken> struct ArraySortHelper_1_t2BD287D575F3901F49C3F12774391C9AE7B5622D : public RuntimeObject { public: public: }; // System.Collections.Generic.ArraySortHelper`1<UnityEngine.TextCore.GlyphRect> struct ArraySortHelper_1_t566C6674A06157AEDBA19CFD6783AE12C0BC181D : public RuntimeObject { public: public: }; // System.Collections.Generic.ArraySortHelper`1<System.Guid> struct ArraySortHelper_1_tECD623429BB21864FDE10BE4462A01C8B706CC3F : public RuntimeObject { public: public: }; // System.Collections.Generic.ArraySortHelper`1<UnityEngine.InputSystem.InputBinding> struct ArraySortHelper_1_tC9F333FE4CE41FF258FBC28142BA3B7582572950 : public RuntimeObject { public: public: }; // System.Collections.Generic.ArraySortHelper`1<UnityEngine.XR.InputDevice> struct ArraySortHelper_1_tA5F88C9447CD42E7E132EC0952A691E8F0B50606 : public RuntimeObject { public: public: }; // System.Collections.Generic.ArraySortHelper`1<UnityEngine.InputSystem.Layouts.InputDeviceDescription> struct ArraySortHelper_1_tD36C96D074BF98C2A9665C25F87828AAF6C6A037 : public RuntimeObject { public: public: }; // System.Collections.Generic.ArraySortHelper`1<UnityEngine.InputSystem.LowLevel.InputEventPtr> struct ArraySortHelper_1_tA567D31CDB72A0A2C326E4BAD0CDAB57FC17D7F4 : public RuntimeObject { public: public: }; // System.Collections.Generic.ArraySortHelper`1<Microsoft.MixedReality.Toolkit.Utilities.Editor.InspectorPropertySetting> struct ArraySortHelper_1_tA7DC3AD9068566249271E277FDF8DABA36804327 : public RuntimeObject { public: public: }; // System.Collections.Generic.ArraySortHelper`1<System.Int16> struct ArraySortHelper_1_tE1728252F987E0F529B555D15E4275A7811176B9 : public RuntimeObject { public: public: }; // System.Collections.Generic.ArraySortHelper`1<System.Int32> struct ArraySortHelper_1_tF7DCC48B41056CEC15F6A961AA1FAF65C0B10CF1 : public RuntimeObject { public: public: }; // System.Collections.Generic.ArraySortHelper`1<System.Int32Enum> struct ArraySortHelper_1_tC902260BF6E507A3D94294FC63FD6504B1983D41 : public RuntimeObject { public: public: }; // System.Collections.Generic.ArraySortHelper`1<System.Int64> struct ArraySortHelper_1_t7392C2496C81EE3DA0795A5BB6F6B9B62FBA877E : public RuntimeObject { public: public: }; // System.Collections.Generic.ArraySortHelper`1<UnityEngine.InputSystem.Utilities.InternedString> struct ArraySortHelper_1_tC7D35D640AAF0F548D651E5418F2182E11ADC02A : public RuntimeObject { public: public: }; // System.Collections.Generic.ArraySortHelper`1<System.Linq.Expressions.Interpreter.InterpretedFrameInfo> struct ArraySortHelper_1_tC077CDF43BC8B28AB4F633C287BB132755731F11 : public RuntimeObject { public: public: }; // System.Collections.Generic.Comparer`1<System.Collections.Generic.KeyValuePair`2<System.UInt32,Microsoft.MixedReality.Toolkit.UI.ObjectManipulator/PointerData>> struct Comparer_1_tFF5ADC8155B95AC6214A3245C65687DD17A86543 : public RuntimeObject { public: public: }; struct Comparer_1_tFF5ADC8155B95AC6214A3245C65687DD17A86543_StaticFields { public: // System.Collections.Generic.Comparer`1<T> modreq(System.Runtime.CompilerServices.IsVolatile) System.Collections.Generic.Comparer`1::defaultComparer Comparer_1_tFF5ADC8155B95AC6214A3245C65687DD17A86543 * ___defaultComparer_0; public: inline static int32_t get_offset_of_defaultComparer_0() { return static_cast<int32_t>(offsetof(Comparer_1_tFF5ADC8155B95AC6214A3245C65687DD17A86543_StaticFields, ___defaultComparer_0)); } inline Comparer_1_tFF5ADC8155B95AC6214A3245C65687DD17A86543 * get_defaultComparer_0() const { return ___defaultComparer_0; } inline Comparer_1_tFF5ADC8155B95AC6214A3245C65687DD17A86543 ** get_address_of_defaultComparer_0() { return &___defaultComparer_0; } inline void set_defaultComparer_0(Comparer_1_tFF5ADC8155B95AC6214A3245C65687DD17A86543 * value) { ___defaultComparer_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___defaultComparer_0), (void*)value); } }; // System.Collections.Generic.Comparer`1<System.Collections.Generic.KeyValuePair`2<System.UInt64,System.Object>> struct Comparer_1_tE5979B384482E06BAFB2079B78DCF2987FF22830 : public RuntimeObject { public: public: }; struct Comparer_1_tE5979B384482E06BAFB2079B78DCF2987FF22830_StaticFields { public: // System.Collections.Generic.Comparer`1<T> modreq(System.Runtime.CompilerServices.IsVolatile) System.Collections.Generic.Comparer`1::defaultComparer Comparer_1_tE5979B384482E06BAFB2079B78DCF2987FF22830 * ___defaultComparer_0; public: inline static int32_t get_offset_of_defaultComparer_0() { return static_cast<int32_t>(offsetof(Comparer_1_tE5979B384482E06BAFB2079B78DCF2987FF22830_StaticFields, ___defaultComparer_0)); } inline Comparer_1_tE5979B384482E06BAFB2079B78DCF2987FF22830 * get_defaultComparer_0() const { return ___defaultComparer_0; } inline Comparer_1_tE5979B384482E06BAFB2079B78DCF2987FF22830 ** get_address_of_defaultComparer_0() { return &___defaultComparer_0; } inline void set_defaultComparer_0(Comparer_1_tE5979B384482E06BAFB2079B78DCF2987FF22830 * value) { ___defaultComparer_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___defaultComparer_0), (void*)value); } }; // System.Collections.Generic.Comparer`1<System.Collections.Generic.KeyValuePair`2<UnityEngine.Vector3,System.Object>> struct Comparer_1_t27ED41ED2CE084B91431B5A38BA66BF834A164CC : public RuntimeObject { public: public: }; struct Comparer_1_t27ED41ED2CE084B91431B5A38BA66BF834A164CC_StaticFields { public: // System.Collections.Generic.Comparer`1<T> modreq(System.Runtime.CompilerServices.IsVolatile) System.Collections.Generic.Comparer`1::defaultComparer Comparer_1_t27ED41ED2CE084B91431B5A38BA66BF834A164CC * ___defaultComparer_0; public: inline static int32_t get_offset_of_defaultComparer_0() { return static_cast<int32_t>(offsetof(Comparer_1_t27ED41ED2CE084B91431B5A38BA66BF834A164CC_StaticFields, ___defaultComparer_0)); } inline Comparer_1_t27ED41ED2CE084B91431B5A38BA66BF834A164CC * get_defaultComparer_0() const { return ___defaultComparer_0; } inline Comparer_1_t27ED41ED2CE084B91431B5A38BA66BF834A164CC ** get_address_of_defaultComparer_0() { return &___defaultComparer_0; } inline void set_defaultComparer_0(Comparer_1_t27ED41ED2CE084B91431B5A38BA66BF834A164CC * value) { ___defaultComparer_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___defaultComparer_0), (void*)value); } }; // System.Collections.Generic.Comparer`1<System.Collections.Generic.KeyValuePair`2<UnityEngine.Experimental.TerrainAPI.TerrainUtility/TerrainMap/TileCoord,System.Object>> struct Comparer_1_t8851ADD4CD7425275A30FE07841E93EBE6A5318A : public RuntimeObject { public: public: }; struct Comparer_1_t8851ADD4CD7425275A30FE07841E93EBE6A5318A_StaticFields { public: // System.Collections.Generic.Comparer`1<T> modreq(System.Runtime.CompilerServices.IsVolatile) System.Collections.Generic.Comparer`1::defaultComparer Comparer_1_t8851ADD4CD7425275A30FE07841E93EBE6A5318A * ___defaultComparer_0; public: inline static int32_t get_offset_of_defaultComparer_0() { return static_cast<int32_t>(offsetof(Comparer_1_t8851ADD4CD7425275A30FE07841E93EBE6A5318A_StaticFields, ___defaultComparer_0)); } inline Comparer_1_t8851ADD4CD7425275A30FE07841E93EBE6A5318A * get_defaultComparer_0() const { return ___defaultComparer_0; } inline Comparer_1_t8851ADD4CD7425275A30FE07841E93EBE6A5318A ** get_address_of_defaultComparer_0() { return &___defaultComparer_0; } inline void set_defaultComparer_0(Comparer_1_t8851ADD4CD7425275A30FE07841E93EBE6A5318A * value) { ___defaultComparer_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___defaultComparer_0), (void*)value); } }; // System.Collections.Generic.Comparer`1<System.Collections.Generic.KeyValuePair`2<System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal/NativeOrStaticEventRegistrationImpl/EventCacheKey,System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal/NativeOrStaticEventRegistrationImpl/EventCacheEntry>> struct Comparer_1_t35BB3526EED97903C4E4817C3BAB9D1C14471A94 : public RuntimeObject { public: public: }; struct Comparer_1_t35BB3526EED97903C4E4817C3BAB9D1C14471A94_StaticFields { public: // System.Collections.Generic.Comparer`1<T> modreq(System.Runtime.CompilerServices.IsVolatile) System.Collections.Generic.Comparer`1::defaultComparer Comparer_1_t35BB3526EED97903C4E4817C3BAB9D1C14471A94 * ___defaultComparer_0; public: inline static int32_t get_offset_of_defaultComparer_0() { return static_cast<int32_t>(offsetof(Comparer_1_t35BB3526EED97903C4E4817C3BAB9D1C14471A94_StaticFields, ___defaultComparer_0)); } inline Comparer_1_t35BB3526EED97903C4E4817C3BAB9D1C14471A94 * get_defaultComparer_0() const { return ___defaultComparer_0; } inline Comparer_1_t35BB3526EED97903C4E4817C3BAB9D1C14471A94 ** get_address_of_defaultComparer_0() { return &___defaultComparer_0; } inline void set_defaultComparer_0(Comparer_1_t35BB3526EED97903C4E4817C3BAB9D1C14471A94 * value) { ___defaultComparer_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___defaultComparer_0), (void*)value); } }; // System.Collections.Generic.Comparer`1<Newtonsoft.Json.Utilities.StructMultiKey`2<System.Object,System.Object>> struct Comparer_1_t6DF9C6FAF645716D2161E520EB681320C3D3F7CC : public RuntimeObject { public: public: }; struct Comparer_1_t6DF9C6FAF645716D2161E520EB681320C3D3F7CC_StaticFields { public: // System.Collections.Generic.Comparer`1<T> modreq(System.Runtime.CompilerServices.IsVolatile) System.Collections.Generic.Comparer`1::defaultComparer Comparer_1_t6DF9C6FAF645716D2161E520EB681320C3D3F7CC * ___defaultComparer_0; public: inline static int32_t get_offset_of_defaultComparer_0() { return static_cast<int32_t>(offsetof(Comparer_1_t6DF9C6FAF645716D2161E520EB681320C3D3F7CC_StaticFields, ___defaultComparer_0)); } inline Comparer_1_t6DF9C6FAF645716D2161E520EB681320C3D3F7CC * get_defaultComparer_0() const { return ___defaultComparer_0; } inline Comparer_1_t6DF9C6FAF645716D2161E520EB681320C3D3F7CC ** get_address_of_defaultComparer_0() { return &___defaultComparer_0; } inline void set_defaultComparer_0(Comparer_1_t6DF9C6FAF645716D2161E520EB681320C3D3F7CC * value) { ___defaultComparer_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___defaultComparer_0), (void*)value); } }; // System.Collections.Generic.Comparer`1<UnityEngine.XR.Bone> struct Comparer_1_t36A3604A3B46EDC55CDAD4A35DA7E6CCADB184A2 : public RuntimeObject { public: public: }; struct Comparer_1_t36A3604A3B46EDC55CDAD4A35DA7E6CCADB184A2_StaticFields { public: // System.Collections.Generic.Comparer`1<T> modreq(System.Runtime.CompilerServices.IsVolatile) System.Collections.Generic.Comparer`1::defaultComparer Comparer_1_t36A3604A3B46EDC55CDAD4A35DA7E6CCADB184A2 * ___defaultComparer_0; public: inline static int32_t get_offset_of_defaultComparer_0() { return static_cast<int32_t>(offsetof(Comparer_1_t36A3604A3B46EDC55CDAD4A35DA7E6CCADB184A2_StaticFields, ___defaultComparer_0)); } inline Comparer_1_t36A3604A3B46EDC55CDAD4A35DA7E6CCADB184A2 * get_defaultComparer_0() const { return ___defaultComparer_0; } inline Comparer_1_t36A3604A3B46EDC55CDAD4A35DA7E6CCADB184A2 ** get_address_of_defaultComparer_0() { return &___defaultComparer_0; } inline void set_defaultComparer_0(Comparer_1_t36A3604A3B46EDC55CDAD4A35DA7E6CCADB184A2 * value) { ___defaultComparer_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___defaultComparer_0), (void*)value); } }; // System.Collections.Generic.Comparer`1<System.Boolean> struct Comparer_1_tC0B38F30FEF4F46666AA129BB9DBBD166FF98149 : public RuntimeObject { public: public: }; struct Comparer_1_tC0B38F30FEF4F46666AA129BB9DBBD166FF98149_StaticFields { public: // System.Collections.Generic.Comparer`1<T> modreq(System.Runtime.CompilerServices.IsVolatile) System.Collections.Generic.Comparer`1::defaultComparer Comparer_1_tC0B38F30FEF4F46666AA129BB9DBBD166FF98149 * ___defaultComparer_0; public: inline static int32_t get_offset_of_defaultComparer_0() { return static_cast<int32_t>(offsetof(Comparer_1_tC0B38F30FEF4F46666AA129BB9DBBD166FF98149_StaticFields, ___defaultComparer_0)); } inline Comparer_1_tC0B38F30FEF4F46666AA129BB9DBBD166FF98149 * get_defaultComparer_0() const { return ___defaultComparer_0; } inline Comparer_1_tC0B38F30FEF4F46666AA129BB9DBBD166FF98149 ** get_address_of_defaultComparer_0() { return &___defaultComparer_0; } inline void set_defaultComparer_0(Comparer_1_tC0B38F30FEF4F46666AA129BB9DBBD166FF98149 * value) { ___defaultComparer_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___defaultComparer_0), (void*)value); } }; // System.Collections.Generic.Comparer`1<System.Byte> struct Comparer_1_t346664F08452EB01EAF33D1A6102E414E093D66D : public RuntimeObject { public: public: }; struct Comparer_1_t346664F08452EB01EAF33D1A6102E414E093D66D_StaticFields { public: // System.Collections.Generic.Comparer`1<T> modreq(System.Runtime.CompilerServices.IsVolatile) System.Collections.Generic.Comparer`1::defaultComparer Comparer_1_t346664F08452EB01EAF33D1A6102E414E093D66D * ___defaultComparer_0; public: inline static int32_t get_offset_of_defaultComparer_0() { return static_cast<int32_t>(offsetof(Comparer_1_t346664F08452EB01EAF33D1A6102E414E093D66D_StaticFields, ___defaultComparer_0)); } inline Comparer_1_t346664F08452EB01EAF33D1A6102E414E093D66D * get_defaultComparer_0() const { return ___defaultComparer_0; } inline Comparer_1_t346664F08452EB01EAF33D1A6102E414E093D66D ** get_address_of_defaultComparer_0() { return &___defaultComparer_0; } inline void set_defaultComparer_0(Comparer_1_t346664F08452EB01EAF33D1A6102E414E093D66D * value) { ___defaultComparer_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___defaultComparer_0), (void*)value); } }; // System.Collections.Generic.Comparer`1<System.Char> struct Comparer_1_tC38AB2E5AE44DA7D8AE64184D06825F6EEA94EB4 : public RuntimeObject { public: public: }; struct Comparer_1_tC38AB2E5AE44DA7D8AE64184D06825F6EEA94EB4_StaticFields { public: // System.Collections.Generic.Comparer`1<T> modreq(System.Runtime.CompilerServices.IsVolatile) System.Collections.Generic.Comparer`1::defaultComparer Comparer_1_tC38AB2E5AE44DA7D8AE64184D06825F6EEA94EB4 * ___defaultComparer_0; public: inline static int32_t get_offset_of_defaultComparer_0() { return static_cast<int32_t>(offsetof(Comparer_1_tC38AB2E5AE44DA7D8AE64184D06825F6EEA94EB4_StaticFields, ___defaultComparer_0)); } inline Comparer_1_tC38AB2E5AE44DA7D8AE64184D06825F6EEA94EB4 * get_defaultComparer_0() const { return ___defaultComparer_0; } inline Comparer_1_tC38AB2E5AE44DA7D8AE64184D06825F6EEA94EB4 ** get_address_of_defaultComparer_0() { return &___defaultComparer_0; } inline void set_defaultComparer_0(Comparer_1_tC38AB2E5AE44DA7D8AE64184D06825F6EEA94EB4 * value) { ___defaultComparer_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___defaultComparer_0), (void*)value); } }; // System.Collections.Generic.Comparer`1<UnityEngine.Color> struct Comparer_1_tD664CD86F4232686CF77C873ACAA28BABF5B9A6A : public RuntimeObject { public: public: }; struct Comparer_1_tD664CD86F4232686CF77C873ACAA28BABF5B9A6A_StaticFields { public: // System.Collections.Generic.Comparer`1<T> modreq(System.Runtime.CompilerServices.IsVolatile) System.Collections.Generic.Comparer`1::defaultComparer Comparer_1_tD664CD86F4232686CF77C873ACAA28BABF5B9A6A * ___defaultComparer_0; public: inline static int32_t get_offset_of_defaultComparer_0() { return static_cast<int32_t>(offsetof(Comparer_1_tD664CD86F4232686CF77C873ACAA28BABF5B9A6A_StaticFields, ___defaultComparer_0)); } inline Comparer_1_tD664CD86F4232686CF77C873ACAA28BABF5B9A6A * get_defaultComparer_0() const { return ___defaultComparer_0; } inline Comparer_1_tD664CD86F4232686CF77C873ACAA28BABF5B9A6A ** get_address_of_defaultComparer_0() { return &___defaultComparer_0; } inline void set_defaultComparer_0(Comparer_1_tD664CD86F4232686CF77C873ACAA28BABF5B9A6A * value) { ___defaultComparer_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___defaultComparer_0), (void*)value); } }; // System.Collections.Generic.Comparer`1<UnityEngine.Color32> struct Comparer_1_t06A148CCE1860B6B5057FF01C119673090F064F5 : public RuntimeObject { public: public: }; struct Comparer_1_t06A148CCE1860B6B5057FF01C119673090F064F5_StaticFields { public: // System.Collections.Generic.Comparer`1<T> modreq(System.Runtime.CompilerServices.IsVolatile) System.Collections.Generic.Comparer`1::defaultComparer Comparer_1_t06A148CCE1860B6B5057FF01C119673090F064F5 * ___defaultComparer_0; public: inline static int32_t get_offset_of_defaultComparer_0() { return static_cast<int32_t>(offsetof(Comparer_1_t06A148CCE1860B6B5057FF01C119673090F064F5_StaticFields, ___defaultComparer_0)); } inline Comparer_1_t06A148CCE1860B6B5057FF01C119673090F064F5 * get_defaultComparer_0() const { return ___defaultComparer_0; } inline Comparer_1_t06A148CCE1860B6B5057FF01C119673090F064F5 ** get_address_of_defaultComparer_0() { return &___defaultComparer_0; } inline void set_defaultComparer_0(Comparer_1_t06A148CCE1860B6B5057FF01C119673090F064F5 * value) { ___defaultComparer_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___defaultComparer_0), (void*)value); } }; // System.Collections.Generic.Comparer`1<System.DateTime> struct Comparer_1_t956A8C99F0342001A04B720E5E95BAE4B8086032 : public RuntimeObject { public: public: }; struct Comparer_1_t956A8C99F0342001A04B720E5E95BAE4B8086032_StaticFields { public: // System.Collections.Generic.Comparer`1<T> modreq(System.Runtime.CompilerServices.IsVolatile) System.Collections.Generic.Comparer`1::defaultComparer Comparer_1_t956A8C99F0342001A04B720E5E95BAE4B8086032 * ___defaultComparer_0; public: inline static int32_t get_offset_of_defaultComparer_0() { return static_cast<int32_t>(offsetof(Comparer_1_t956A8C99F0342001A04B720E5E95BAE4B8086032_StaticFields, ___defaultComparer_0)); } inline Comparer_1_t956A8C99F0342001A04B720E5E95BAE4B8086032 * get_defaultComparer_0() const { return ___defaultComparer_0; } inline Comparer_1_t956A8C99F0342001A04B720E5E95BAE4B8086032 ** get_address_of_defaultComparer_0() { return &___defaultComparer_0; } inline void set_defaultComparer_0(Comparer_1_t956A8C99F0342001A04B720E5E95BAE4B8086032 * value) { ___defaultComparer_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___defaultComparer_0), (void*)value); } }; // System.Collections.Generic.Comparer`1<System.DateTimeOffset> struct Comparer_1_tBC014CCD2A69AF80CBAD21AEFB5817872C50169B : public RuntimeObject { public: public: }; struct Comparer_1_tBC014CCD2A69AF80CBAD21AEFB5817872C50169B_StaticFields { public: // System.Collections.Generic.Comparer`1<T> modreq(System.Runtime.CompilerServices.IsVolatile) System.Collections.Generic.Comparer`1::defaultComparer Comparer_1_tBC014CCD2A69AF80CBAD21AEFB5817872C50169B * ___defaultComparer_0; public: inline static int32_t get_offset_of_defaultComparer_0() { return static_cast<int32_t>(offsetof(Comparer_1_tBC014CCD2A69AF80CBAD21AEFB5817872C50169B_StaticFields, ___defaultComparer_0)); } inline Comparer_1_tBC014CCD2A69AF80CBAD21AEFB5817872C50169B * get_defaultComparer_0() const { return ___defaultComparer_0; } inline Comparer_1_tBC014CCD2A69AF80CBAD21AEFB5817872C50169B ** get_address_of_defaultComparer_0() { return &___defaultComparer_0; } inline void set_defaultComparer_0(Comparer_1_tBC014CCD2A69AF80CBAD21AEFB5817872C50169B * value) { ___defaultComparer_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___defaultComparer_0), (void*)value); } }; // System.Collections.Generic.Comparer`1<System.Decimal> struct Comparer_1_tEFB1740196FD956BA3930F72EAB67162C60CA204 : public RuntimeObject { public: public: }; struct Comparer_1_tEFB1740196FD956BA3930F72EAB67162C60CA204_StaticFields { public: // System.Collections.Generic.Comparer`1<T> modreq(System.Runtime.CompilerServices.IsVolatile) System.Collections.Generic.Comparer`1::defaultComparer Comparer_1_tEFB1740196FD956BA3930F72EAB67162C60CA204 * ___defaultComparer_0; public: inline static int32_t get_offset_of_defaultComparer_0() { return static_cast<int32_t>(offsetof(Comparer_1_tEFB1740196FD956BA3930F72EAB67162C60CA204_StaticFields, ___defaultComparer_0)); } inline Comparer_1_tEFB1740196FD956BA3930F72EAB67162C60CA204 * get_defaultComparer_0() const { return ___defaultComparer_0; } inline Comparer_1_tEFB1740196FD956BA3930F72EAB67162C60CA204 ** get_address_of_defaultComparer_0() { return &___defaultComparer_0; } inline void set_defaultComparer_0(Comparer_1_tEFB1740196FD956BA3930F72EAB67162C60CA204 * value) { ___defaultComparer_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___defaultComparer_0), (void*)value); } }; // System.Collections.Generic.Comparer`1<System.Double> struct Comparer_1_tFA7BB54D9C304F3F609A9370166110D973A8307C : public RuntimeObject { public: public: }; struct Comparer_1_tFA7BB54D9C304F3F609A9370166110D973A8307C_StaticFields { public: // System.Collections.Generic.Comparer`1<T> modreq(System.Runtime.CompilerServices.IsVolatile) System.Collections.Generic.Comparer`1::defaultComparer Comparer_1_tFA7BB54D9C304F3F609A9370166110D973A8307C * ___defaultComparer_0; public: inline static int32_t get_offset_of_defaultComparer_0() { return static_cast<int32_t>(offsetof(Comparer_1_tFA7BB54D9C304F3F609A9370166110D973A8307C_StaticFields, ___defaultComparer_0)); } inline Comparer_1_tFA7BB54D9C304F3F609A9370166110D973A8307C * get_defaultComparer_0() const { return ___defaultComparer_0; } inline Comparer_1_tFA7BB54D9C304F3F609A9370166110D973A8307C ** get_address_of_defaultComparer_0() { return &___defaultComparer_0; } inline void set_defaultComparer_0(Comparer_1_tFA7BB54D9C304F3F609A9370166110D973A8307C * value) { ___defaultComparer_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___defaultComparer_0), (void*)value); } }; // System.Collections.Generic.Comparer`1<Microsoft.MixedReality.Toolkit.Boundary.Edge> struct Comparer_1_tB762AFE1AFBFFF22BF05602D3BD6E40330EF909A : public RuntimeObject { public: public: }; struct Comparer_1_tB762AFE1AFBFFF22BF05602D3BD6E40330EF909A_StaticFields { public: // System.Collections.Generic.Comparer`1<T> modreq(System.Runtime.CompilerServices.IsVolatile) System.Collections.Generic.Comparer`1::defaultComparer Comparer_1_tB762AFE1AFBFFF22BF05602D3BD6E40330EF909A * ___defaultComparer_0; public: inline static int32_t get_offset_of_defaultComparer_0() { return static_cast<int32_t>(offsetof(Comparer_1_tB762AFE1AFBFFF22BF05602D3BD6E40330EF909A_StaticFields, ___defaultComparer_0)); } inline Comparer_1_tB762AFE1AFBFFF22BF05602D3BD6E40330EF909A * get_defaultComparer_0() const { return ___defaultComparer_0; } inline Comparer_1_tB762AFE1AFBFFF22BF05602D3BD6E40330EF909A ** get_address_of_defaultComparer_0() { return &___defaultComparer_0; } inline void set_defaultComparer_0(Comparer_1_tB762AFE1AFBFFF22BF05602D3BD6E40330EF909A * value) { ___defaultComparer_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___defaultComparer_0), (void*)value); } }; // System.Collections.Generic.Comparer`1<System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken> struct Comparer_1_tACFA0E90774BE88B1013E2F15D08F249EF776CB2 : public RuntimeObject { public: public: }; struct Comparer_1_tACFA0E90774BE88B1013E2F15D08F249EF776CB2_StaticFields { public: // System.Collections.Generic.Comparer`1<T> modreq(System.Runtime.CompilerServices.IsVolatile) System.Collections.Generic.Comparer`1::defaultComparer Comparer_1_tACFA0E90774BE88B1013E2F15D08F249EF776CB2 * ___defaultComparer_0; public: inline static int32_t get_offset_of_defaultComparer_0() { return static_cast<int32_t>(offsetof(Comparer_1_tACFA0E90774BE88B1013E2F15D08F249EF776CB2_StaticFields, ___defaultComparer_0)); } inline Comparer_1_tACFA0E90774BE88B1013E2F15D08F249EF776CB2 * get_defaultComparer_0() const { return ___defaultComparer_0; } inline Comparer_1_tACFA0E90774BE88B1013E2F15D08F249EF776CB2 ** get_address_of_defaultComparer_0() { return &___defaultComparer_0; } inline void set_defaultComparer_0(Comparer_1_tACFA0E90774BE88B1013E2F15D08F249EF776CB2 * value) { ___defaultComparer_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___defaultComparer_0), (void*)value); } }; // System.Collections.Generic.Comparer`1<UnityEngine.TextCore.GlyphRect> struct Comparer_1_tB8DDBF2B4A19D6771A9A5BDF885B7C84D18B0314 : public RuntimeObject { public: public: }; struct Comparer_1_tB8DDBF2B4A19D6771A9A5BDF885B7C84D18B0314_StaticFields { public: // System.Collections.Generic.Comparer`1<T> modreq(System.Runtime.CompilerServices.IsVolatile) System.Collections.Generic.Comparer`1::defaultComparer Comparer_1_tB8DDBF2B4A19D6771A9A5BDF885B7C84D18B0314 * ___defaultComparer_0; public: inline static int32_t get_offset_of_defaultComparer_0() { return static_cast<int32_t>(offsetof(Comparer_1_tB8DDBF2B4A19D6771A9A5BDF885B7C84D18B0314_StaticFields, ___defaultComparer_0)); } inline Comparer_1_tB8DDBF2B4A19D6771A9A5BDF885B7C84D18B0314 * get_defaultComparer_0() const { return ___defaultComparer_0; } inline Comparer_1_tB8DDBF2B4A19D6771A9A5BDF885B7C84D18B0314 ** get_address_of_defaultComparer_0() { return &___defaultComparer_0; } inline void set_defaultComparer_0(Comparer_1_tB8DDBF2B4A19D6771A9A5BDF885B7C84D18B0314 * value) { ___defaultComparer_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___defaultComparer_0), (void*)value); } }; // System.Collections.Generic.Comparer`1<System.Guid> struct Comparer_1_t2EB7657A4870B636EBF36EC87C0E9BEAD4EB994E : public RuntimeObject { public: public: }; struct Comparer_1_t2EB7657A4870B636EBF36EC87C0E9BEAD4EB994E_StaticFields { public: // System.Collections.Generic.Comparer`1<T> modreq(System.Runtime.CompilerServices.IsVolatile) System.Collections.Generic.Comparer`1::defaultComparer Comparer_1_t2EB7657A4870B636EBF36EC87C0E9BEAD4EB994E * ___defaultComparer_0; public: inline static int32_t get_offset_of_defaultComparer_0() { return static_cast<int32_t>(offsetof(Comparer_1_t2EB7657A4870B636EBF36EC87C0E9BEAD4EB994E_StaticFields, ___defaultComparer_0)); } inline Comparer_1_t2EB7657A4870B636EBF36EC87C0E9BEAD4EB994E * get_defaultComparer_0() const { return ___defaultComparer_0; } inline Comparer_1_t2EB7657A4870B636EBF36EC87C0E9BEAD4EB994E ** get_address_of_defaultComparer_0() { return &___defaultComparer_0; } inline void set_defaultComparer_0(Comparer_1_t2EB7657A4870B636EBF36EC87C0E9BEAD4EB994E * value) { ___defaultComparer_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___defaultComparer_0), (void*)value); } }; // System.Collections.Generic.Comparer`1<UnityEngine.InputSystem.InputBinding> struct Comparer_1_tF1626F8A8AF35E99CD061E07752CF281AED1B317 : public RuntimeObject { public: public: }; struct Comparer_1_tF1626F8A8AF35E99CD061E07752CF281AED1B317_StaticFields { public: // System.Collections.Generic.Comparer`1<T> modreq(System.Runtime.CompilerServices.IsVolatile) System.Collections.Generic.Comparer`1::defaultComparer Comparer_1_tF1626F8A8AF35E99CD061E07752CF281AED1B317 * ___defaultComparer_0; public: inline static int32_t get_offset_of_defaultComparer_0() { return static_cast<int32_t>(offsetof(Comparer_1_tF1626F8A8AF35E99CD061E07752CF281AED1B317_StaticFields, ___defaultComparer_0)); } inline Comparer_1_tF1626F8A8AF35E99CD061E07752CF281AED1B317 * get_defaultComparer_0() const { return ___defaultComparer_0; } inline Comparer_1_tF1626F8A8AF35E99CD061E07752CF281AED1B317 ** get_address_of_defaultComparer_0() { return &___defaultComparer_0; } inline void set_defaultComparer_0(Comparer_1_tF1626F8A8AF35E99CD061E07752CF281AED1B317 * value) { ___defaultComparer_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___defaultComparer_0), (void*)value); } }; // System.Collections.Generic.Comparer`1<UnityEngine.XR.InputDevice> struct Comparer_1_t439973A713201373270F785C17070796654B147F : public RuntimeObject { public: public: }; struct Comparer_1_t439973A713201373270F785C17070796654B147F_StaticFields { public: // System.Collections.Generic.Comparer`1<T> modreq(System.Runtime.CompilerServices.IsVolatile) System.Collections.Generic.Comparer`1::defaultComparer Comparer_1_t439973A713201373270F785C17070796654B147F * ___defaultComparer_0; public: inline static int32_t get_offset_of_defaultComparer_0() { return static_cast<int32_t>(offsetof(Comparer_1_t439973A713201373270F785C17070796654B147F_StaticFields, ___defaultComparer_0)); } inline Comparer_1_t439973A713201373270F785C17070796654B147F * get_defaultComparer_0() const { return ___defaultComparer_0; } inline Comparer_1_t439973A713201373270F785C17070796654B147F ** get_address_of_defaultComparer_0() { return &___defaultComparer_0; } inline void set_defaultComparer_0(Comparer_1_t439973A713201373270F785C17070796654B147F * value) { ___defaultComparer_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___defaultComparer_0), (void*)value); } }; // System.Collections.Generic.Comparer`1<UnityEngine.InputSystem.Layouts.InputDeviceDescription> struct Comparer_1_t59395996F8DE7B254E2AA6B94A083A3EEEE35F95 : public RuntimeObject { public: public: }; struct Comparer_1_t59395996F8DE7B254E2AA6B94A083A3EEEE35F95_StaticFields { public: // System.Collections.Generic.Comparer`1<T> modreq(System.Runtime.CompilerServices.IsVolatile) System.Collections.Generic.Comparer`1::defaultComparer Comparer_1_t59395996F8DE7B254E2AA6B94A083A3EEEE35F95 * ___defaultComparer_0; public: inline static int32_t get_offset_of_defaultComparer_0() { return static_cast<int32_t>(offsetof(Comparer_1_t59395996F8DE7B254E2AA6B94A083A3EEEE35F95_StaticFields, ___defaultComparer_0)); } inline Comparer_1_t59395996F8DE7B254E2AA6B94A083A3EEEE35F95 * get_defaultComparer_0() const { return ___defaultComparer_0; } inline Comparer_1_t59395996F8DE7B254E2AA6B94A083A3EEEE35F95 ** get_address_of_defaultComparer_0() { return &___defaultComparer_0; } inline void set_defaultComparer_0(Comparer_1_t59395996F8DE7B254E2AA6B94A083A3EEEE35F95 * value) { ___defaultComparer_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___defaultComparer_0), (void*)value); } }; // System.Collections.Generic.Comparer`1<UnityEngine.InputSystem.LowLevel.InputEventPtr> struct Comparer_1_tCD0C98BC45CDCF14015618213D400E9F35574EBA : public RuntimeObject { public: public: }; struct Comparer_1_tCD0C98BC45CDCF14015618213D400E9F35574EBA_StaticFields { public: // System.Collections.Generic.Comparer`1<T> modreq(System.Runtime.CompilerServices.IsVolatile) System.Collections.Generic.Comparer`1::defaultComparer Comparer_1_tCD0C98BC45CDCF14015618213D400E9F35574EBA * ___defaultComparer_0; public: inline static int32_t get_offset_of_defaultComparer_0() { return static_cast<int32_t>(offsetof(Comparer_1_tCD0C98BC45CDCF14015618213D400E9F35574EBA_StaticFields, ___defaultComparer_0)); } inline Comparer_1_tCD0C98BC45CDCF14015618213D400E9F35574EBA * get_defaultComparer_0() const { return ___defaultComparer_0; } inline Comparer_1_tCD0C98BC45CDCF14015618213D400E9F35574EBA ** get_address_of_defaultComparer_0() { return &___defaultComparer_0; } inline void set_defaultComparer_0(Comparer_1_tCD0C98BC45CDCF14015618213D400E9F35574EBA * value) { ___defaultComparer_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___defaultComparer_0), (void*)value); } }; // System.Collections.Generic.Comparer`1<Microsoft.MixedReality.Toolkit.Utilities.Editor.InspectorPropertySetting> struct Comparer_1_t19025AE1ADBF92A6B621A3BDE0D34F51E39505BB : public RuntimeObject { public: public: }; struct Comparer_1_t19025AE1ADBF92A6B621A3BDE0D34F51E39505BB_StaticFields { public: // System.Collections.Generic.Comparer`1<T> modreq(System.Runtime.CompilerServices.IsVolatile) System.Collections.Generic.Comparer`1::defaultComparer Comparer_1_t19025AE1ADBF92A6B621A3BDE0D34F51E39505BB * ___defaultComparer_0; public: inline static int32_t get_offset_of_defaultComparer_0() { return static_cast<int32_t>(offsetof(Comparer_1_t19025AE1ADBF92A6B621A3BDE0D34F51E39505BB_StaticFields, ___defaultComparer_0)); } inline Comparer_1_t19025AE1ADBF92A6B621A3BDE0D34F51E39505BB * get_defaultComparer_0() const { return ___defaultComparer_0; } inline Comparer_1_t19025AE1ADBF92A6B621A3BDE0D34F51E39505BB ** get_address_of_defaultComparer_0() { return &___defaultComparer_0; } inline void set_defaultComparer_0(Comparer_1_t19025AE1ADBF92A6B621A3BDE0D34F51E39505BB * value) { ___defaultComparer_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___defaultComparer_0), (void*)value); } }; // System.Collections.Generic.Comparer`1<System.Int16> struct Comparer_1_t0B4899E6018F9D85829D592D6DFB60E2180C6D7D : public RuntimeObject { public: public: }; struct Comparer_1_t0B4899E6018F9D85829D592D6DFB60E2180C6D7D_StaticFields { public: // System.Collections.Generic.Comparer`1<T> modreq(System.Runtime.CompilerServices.IsVolatile) System.Collections.Generic.Comparer`1::defaultComparer Comparer_1_t0B4899E6018F9D85829D592D6DFB60E2180C6D7D * ___defaultComparer_0; public: inline static int32_t get_offset_of_defaultComparer_0() { return static_cast<int32_t>(offsetof(Comparer_1_t0B4899E6018F9D85829D592D6DFB60E2180C6D7D_StaticFields, ___defaultComparer_0)); } inline Comparer_1_t0B4899E6018F9D85829D592D6DFB60E2180C6D7D * get_defaultComparer_0() const { return ___defaultComparer_0; } inline Comparer_1_t0B4899E6018F9D85829D592D6DFB60E2180C6D7D ** get_address_of_defaultComparer_0() { return &___defaultComparer_0; } inline void set_defaultComparer_0(Comparer_1_t0B4899E6018F9D85829D592D6DFB60E2180C6D7D * value) { ___defaultComparer_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___defaultComparer_0), (void*)value); } }; // System.Collections.Generic.Comparer`1<System.Int32> struct Comparer_1_t3E3093220DB5D33A829C91C1DFDBDE2F42ECEDC7 : public RuntimeObject { public: public: }; struct Comparer_1_t3E3093220DB5D33A829C91C1DFDBDE2F42ECEDC7_StaticFields { public: // System.Collections.Generic.Comparer`1<T> modreq(System.Runtime.CompilerServices.IsVolatile) System.Collections.Generic.Comparer`1::defaultComparer Comparer_1_t3E3093220DB5D33A829C91C1DFDBDE2F42ECEDC7 * ___defaultComparer_0; public: inline static int32_t get_offset_of_defaultComparer_0() { return static_cast<int32_t>(offsetof(Comparer_1_t3E3093220DB5D33A829C91C1DFDBDE2F42ECEDC7_StaticFields, ___defaultComparer_0)); } inline Comparer_1_t3E3093220DB5D33A829C91C1DFDBDE2F42ECEDC7 * get_defaultComparer_0() const { return ___defaultComparer_0; } inline Comparer_1_t3E3093220DB5D33A829C91C1DFDBDE2F42ECEDC7 ** get_address_of_defaultComparer_0() { return &___defaultComparer_0; } inline void set_defaultComparer_0(Comparer_1_t3E3093220DB5D33A829C91C1DFDBDE2F42ECEDC7 * value) { ___defaultComparer_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___defaultComparer_0), (void*)value); } }; // System.Collections.Generic.Comparer`1<System.Int32Enum> struct Comparer_1_t0D4A8BA5B0F975F811F185B35E597041D0D23BD4 : public RuntimeObject { public: public: }; struct Comparer_1_t0D4A8BA5B0F975F811F185B35E597041D0D23BD4_StaticFields { public: // System.Collections.Generic.Comparer`1<T> modreq(System.Runtime.CompilerServices.IsVolatile) System.Collections.Generic.Comparer`1::defaultComparer Comparer_1_t0D4A8BA5B0F975F811F185B35E597041D0D23BD4 * ___defaultComparer_0; public: inline static int32_t get_offset_of_defaultComparer_0() { return static_cast<int32_t>(offsetof(Comparer_1_t0D4A8BA5B0F975F811F185B35E597041D0D23BD4_StaticFields, ___defaultComparer_0)); } inline Comparer_1_t0D4A8BA5B0F975F811F185B35E597041D0D23BD4 * get_defaultComparer_0() const { return ___defaultComparer_0; } inline Comparer_1_t0D4A8BA5B0F975F811F185B35E597041D0D23BD4 ** get_address_of_defaultComparer_0() { return &___defaultComparer_0; } inline void set_defaultComparer_0(Comparer_1_t0D4A8BA5B0F975F811F185B35E597041D0D23BD4 * value) { ___defaultComparer_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___defaultComparer_0), (void*)value); } }; // System.Collections.Generic.Comparer`1<System.Int64> struct Comparer_1_tE62D0C5B2FD73EBC01ABA133568B5DE8B200A220 : public RuntimeObject { public: public: }; struct Comparer_1_tE62D0C5B2FD73EBC01ABA133568B5DE8B200A220_StaticFields { public: // System.Collections.Generic.Comparer`1<T> modreq(System.Runtime.CompilerServices.IsVolatile) System.Collections.Generic.Comparer`1::defaultComparer Comparer_1_tE62D0C5B2FD73EBC01ABA133568B5DE8B200A220 * ___defaultComparer_0; public: inline static int32_t get_offset_of_defaultComparer_0() { return static_cast<int32_t>(offsetof(Comparer_1_tE62D0C5B2FD73EBC01ABA133568B5DE8B200A220_StaticFields, ___defaultComparer_0)); } inline Comparer_1_tE62D0C5B2FD73EBC01ABA133568B5DE8B200A220 * get_defaultComparer_0() const { return ___defaultComparer_0; } inline Comparer_1_tE62D0C5B2FD73EBC01ABA133568B5DE8B200A220 ** get_address_of_defaultComparer_0() { return &___defaultComparer_0; } inline void set_defaultComparer_0(Comparer_1_tE62D0C5B2FD73EBC01ABA133568B5DE8B200A220 * value) { ___defaultComparer_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___defaultComparer_0), (void*)value); } }; // System.Collections.Generic.Comparer`1<UnityEngine.InputSystem.Utilities.InternedString> struct Comparer_1_tA3EEEEBFB986DD2BD0A34C300A52DDE5010A950A : public RuntimeObject { public: public: }; struct Comparer_1_tA3EEEEBFB986DD2BD0A34C300A52DDE5010A950A_StaticFields { public: // System.Collections.Generic.Comparer`1<T> modreq(System.Runtime.CompilerServices.IsVolatile) System.Collections.Generic.Comparer`1::defaultComparer Comparer_1_tA3EEEEBFB986DD2BD0A34C300A52DDE5010A950A * ___defaultComparer_0; public: inline static int32_t get_offset_of_defaultComparer_0() { return static_cast<int32_t>(offsetof(Comparer_1_tA3EEEEBFB986DD2BD0A34C300A52DDE5010A950A_StaticFields, ___defaultComparer_0)); } inline Comparer_1_tA3EEEEBFB986DD2BD0A34C300A52DDE5010A950A * get_defaultComparer_0() const { return ___defaultComparer_0; } inline Comparer_1_tA3EEEEBFB986DD2BD0A34C300A52DDE5010A950A ** get_address_of_defaultComparer_0() { return &___defaultComparer_0; } inline void set_defaultComparer_0(Comparer_1_tA3EEEEBFB986DD2BD0A34C300A52DDE5010A950A * value) { ___defaultComparer_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___defaultComparer_0), (void*)value); } }; // System.Collections.Generic.Comparer`1<System.Linq.Expressions.Interpreter.InterpretedFrameInfo> struct Comparer_1_t263EB54CA1238067D867DA25B24F5354423883A1 : public RuntimeObject { public: public: }; struct Comparer_1_t263EB54CA1238067D867DA25B24F5354423883A1_StaticFields { public: // System.Collections.Generic.Comparer`1<T> modreq(System.Runtime.CompilerServices.IsVolatile) System.Collections.Generic.Comparer`1::defaultComparer Comparer_1_t263EB54CA1238067D867DA25B24F5354423883A1 * ___defaultComparer_0; public: inline static int32_t get_offset_of_defaultComparer_0() { return static_cast<int32_t>(offsetof(Comparer_1_t263EB54CA1238067D867DA25B24F5354423883A1_StaticFields, ___defaultComparer_0)); } inline Comparer_1_t263EB54CA1238067D867DA25B24F5354423883A1 * get_defaultComparer_0() const { return ___defaultComparer_0; } inline Comparer_1_t263EB54CA1238067D867DA25B24F5354423883A1 ** get_address_of_defaultComparer_0() { return &___defaultComparer_0; } inline void set_defaultComparer_0(Comparer_1_t263EB54CA1238067D867DA25B24F5354423883A1 * value) { ___defaultComparer_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___defaultComparer_0), (void*)value); } }; struct Il2CppArrayBounds; // System.Array // System.String struct String_t : public RuntimeObject { public: // System.Int32 System.String::m_stringLength int32_t ___m_stringLength_0; // System.Char System.String::m_firstChar Il2CppChar ___m_firstChar_1; public: inline static int32_t get_offset_of_m_stringLength_0() { return static_cast<int32_t>(offsetof(String_t, ___m_stringLength_0)); } inline int32_t get_m_stringLength_0() const { return ___m_stringLength_0; } inline int32_t* get_address_of_m_stringLength_0() { return &___m_stringLength_0; } inline void set_m_stringLength_0(int32_t value) { ___m_stringLength_0 = value; } inline static int32_t get_offset_of_m_firstChar_1() { return static_cast<int32_t>(offsetof(String_t, ___m_firstChar_1)); } inline Il2CppChar get_m_firstChar_1() const { return ___m_firstChar_1; } inline Il2CppChar* get_address_of_m_firstChar_1() { return &___m_firstChar_1; } inline void set_m_firstChar_1(Il2CppChar value) { ___m_firstChar_1 = value; } }; struct String_t_StaticFields { public: // System.String System.String::Empty String_t* ___Empty_5; public: inline static int32_t get_offset_of_Empty_5() { return static_cast<int32_t>(offsetof(String_t_StaticFields, ___Empty_5)); } inline String_t* get_Empty_5() const { return ___Empty_5; } inline String_t** get_address_of_Empty_5() { return &___Empty_5; } inline void set_Empty_5(String_t* value) { ___Empty_5 = value; Il2CppCodeGenWriteBarrier((void**)(&___Empty_5), (void*)value); } }; // System.ValueType struct ValueType_tDBF999C1B75C48C68621878250DBF6CDBCF51E52 : public RuntimeObject { public: public: }; // Native definition for P/Invoke marshalling of System.ValueType struct ValueType_tDBF999C1B75C48C68621878250DBF6CDBCF51E52_marshaled_pinvoke { }; // Native definition for COM marshalling of System.ValueType struct ValueType_tDBF999C1B75C48C68621878250DBF6CDBCF51E52_marshaled_com { }; // System.Collections.Generic.KeyValuePair`2<System.UInt64,System.Object> struct KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 { public: // TKey System.Collections.Generic.KeyValuePair`2::key uint64_t ___key_0; // TValue System.Collections.Generic.KeyValuePair`2::value RuntimeObject * ___value_1; public: inline static int32_t get_offset_of_key_0() { return static_cast<int32_t>(offsetof(KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703, ___key_0)); } inline uint64_t get_key_0() const { return ___key_0; } inline uint64_t* get_address_of_key_0() { return &___key_0; } inline void set_key_0(uint64_t value) { ___key_0 = value; } inline static int32_t get_offset_of_value_1() { return static_cast<int32_t>(offsetof(KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703, ___value_1)); } inline RuntimeObject * get_value_1() const { return ___value_1; } inline RuntimeObject ** get_address_of_value_1() { return &___value_1; } inline void set_value_1(RuntimeObject * value) { ___value_1 = value; Il2CppCodeGenWriteBarrier((void**)(&___value_1), (void*)value); } }; // Newtonsoft.Json.Utilities.StructMultiKey`2<System.Object,System.Object> struct StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E { public: // T1 Newtonsoft.Json.Utilities.StructMultiKey`2::Value1 RuntimeObject * ___Value1_0; // T2 Newtonsoft.Json.Utilities.StructMultiKey`2::Value2 RuntimeObject * ___Value2_1; public: inline static int32_t get_offset_of_Value1_0() { return static_cast<int32_t>(offsetof(StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E, ___Value1_0)); } inline RuntimeObject * get_Value1_0() const { return ___Value1_0; } inline RuntimeObject ** get_address_of_Value1_0() { return &___Value1_0; } inline void set_Value1_0(RuntimeObject * value) { ___Value1_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___Value1_0), (void*)value); } inline static int32_t get_offset_of_Value2_1() { return static_cast<int32_t>(offsetof(StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E, ___Value2_1)); } inline RuntimeObject * get_Value2_1() const { return ___Value2_1; } inline RuntimeObject ** get_address_of_Value2_1() { return &___Value2_1; } inline void set_Value2_1(RuntimeObject * value) { ___Value2_1 = value; Il2CppCodeGenWriteBarrier((void**)(&___Value2_1), (void*)value); } }; // UnityEngine.XR.Bone struct Bone_t8EDF2FA2139528015195AF2EA866A28947C3F070 { public: // System.UInt64 UnityEngine.XR.Bone::m_DeviceId uint64_t ___m_DeviceId_0; // System.UInt32 UnityEngine.XR.Bone::m_FeatureIndex uint32_t ___m_FeatureIndex_1; public: inline static int32_t get_offset_of_m_DeviceId_0() { return static_cast<int32_t>(offsetof(Bone_t8EDF2FA2139528015195AF2EA866A28947C3F070, ___m_DeviceId_0)); } inline uint64_t get_m_DeviceId_0() const { return ___m_DeviceId_0; } inline uint64_t* get_address_of_m_DeviceId_0() { return &___m_DeviceId_0; } inline void set_m_DeviceId_0(uint64_t value) { ___m_DeviceId_0 = value; } inline static int32_t get_offset_of_m_FeatureIndex_1() { return static_cast<int32_t>(offsetof(Bone_t8EDF2FA2139528015195AF2EA866A28947C3F070, ___m_FeatureIndex_1)); } inline uint32_t get_m_FeatureIndex_1() const { return ___m_FeatureIndex_1; } inline uint32_t* get_address_of_m_FeatureIndex_1() { return &___m_FeatureIndex_1; } inline void set_m_FeatureIndex_1(uint32_t value) { ___m_FeatureIndex_1 = value; } }; // System.Boolean struct Boolean_t07D1E3F34E4813023D64F584DFF7B34C9D922F37 { public: // System.Boolean System.Boolean::m_value bool ___m_value_0; public: inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(Boolean_t07D1E3F34E4813023D64F584DFF7B34C9D922F37, ___m_value_0)); } inline bool get_m_value_0() const { return ___m_value_0; } inline bool* get_address_of_m_value_0() { return &___m_value_0; } inline void set_m_value_0(bool value) { ___m_value_0 = value; } }; struct Boolean_t07D1E3F34E4813023D64F584DFF7B34C9D922F37_StaticFields { public: // System.String System.Boolean::TrueString String_t* ___TrueString_5; // System.String System.Boolean::FalseString String_t* ___FalseString_6; public: inline static int32_t get_offset_of_TrueString_5() { return static_cast<int32_t>(offsetof(Boolean_t07D1E3F34E4813023D64F584DFF7B34C9D922F37_StaticFields, ___TrueString_5)); } inline String_t* get_TrueString_5() const { return ___TrueString_5; } inline String_t** get_address_of_TrueString_5() { return &___TrueString_5; } inline void set_TrueString_5(String_t* value) { ___TrueString_5 = value; Il2CppCodeGenWriteBarrier((void**)(&___TrueString_5), (void*)value); } inline static int32_t get_offset_of_FalseString_6() { return static_cast<int32_t>(offsetof(Boolean_t07D1E3F34E4813023D64F584DFF7B34C9D922F37_StaticFields, ___FalseString_6)); } inline String_t* get_FalseString_6() const { return ___FalseString_6; } inline String_t** get_address_of_FalseString_6() { return &___FalseString_6; } inline void set_FalseString_6(String_t* value) { ___FalseString_6 = value; Il2CppCodeGenWriteBarrier((void**)(&___FalseString_6), (void*)value); } }; // System.Byte struct Byte_t0111FAB8B8685667EDDAF77683F0D8F86B659056 { public: // System.Byte System.Byte::m_value uint8_t ___m_value_0; public: inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(Byte_t0111FAB8B8685667EDDAF77683F0D8F86B659056, ___m_value_0)); } inline uint8_t get_m_value_0() const { return ___m_value_0; } inline uint8_t* get_address_of_m_value_0() { return &___m_value_0; } inline void set_m_value_0(uint8_t value) { ___m_value_0 = value; } }; // System.Char struct Char_tFF60D8E7E89A20BE2294A003734341BD1DF43E14 { public: // System.Char System.Char::m_value Il2CppChar ___m_value_0; public: inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(Char_tFF60D8E7E89A20BE2294A003734341BD1DF43E14, ___m_value_0)); } inline Il2CppChar get_m_value_0() const { return ___m_value_0; } inline Il2CppChar* get_address_of_m_value_0() { return &___m_value_0; } inline void set_m_value_0(Il2CppChar value) { ___m_value_0 = value; } }; struct Char_tFF60D8E7E89A20BE2294A003734341BD1DF43E14_StaticFields { public: // System.Byte[] System.Char::categoryForLatin1 ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* ___categoryForLatin1_3; public: inline static int32_t get_offset_of_categoryForLatin1_3() { return static_cast<int32_t>(offsetof(Char_tFF60D8E7E89A20BE2294A003734341BD1DF43E14_StaticFields, ___categoryForLatin1_3)); } inline ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* get_categoryForLatin1_3() const { return ___categoryForLatin1_3; } inline ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726** get_address_of_categoryForLatin1_3() { return &___categoryForLatin1_3; } inline void set_categoryForLatin1_3(ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* value) { ___categoryForLatin1_3 = value; Il2CppCodeGenWriteBarrier((void**)(&___categoryForLatin1_3), (void*)value); } }; // UnityEngine.Color struct Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 { public: // System.Single UnityEngine.Color::r float ___r_0; // System.Single UnityEngine.Color::g float ___g_1; // System.Single UnityEngine.Color::b float ___b_2; // System.Single UnityEngine.Color::a float ___a_3; public: inline static int32_t get_offset_of_r_0() { return static_cast<int32_t>(offsetof(Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659, ___r_0)); } inline float get_r_0() const { return ___r_0; } inline float* get_address_of_r_0() { return &___r_0; } inline void set_r_0(float value) { ___r_0 = value; } inline static int32_t get_offset_of_g_1() { return static_cast<int32_t>(offsetof(Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659, ___g_1)); } inline float get_g_1() const { return ___g_1; } inline float* get_address_of_g_1() { return &___g_1; } inline void set_g_1(float value) { ___g_1 = value; } inline static int32_t get_offset_of_b_2() { return static_cast<int32_t>(offsetof(Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659, ___b_2)); } inline float get_b_2() const { return ___b_2; } inline float* get_address_of_b_2() { return &___b_2; } inline void set_b_2(float value) { ___b_2 = value; } inline static int32_t get_offset_of_a_3() { return static_cast<int32_t>(offsetof(Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659, ___a_3)); } inline float get_a_3() const { return ___a_3; } inline float* get_address_of_a_3() { return &___a_3; } inline void set_a_3(float value) { ___a_3 = value; } }; // UnityEngine.Color32 struct Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D { public: union { #pragma pack(push, tp, 1) struct { // System.Int32 UnityEngine.Color32::rgba int32_t ___rgba_0; }; #pragma pack(pop, tp) struct { int32_t ___rgba_0_forAlignmentOnly; }; #pragma pack(push, tp, 1) struct { // System.Byte UnityEngine.Color32::r uint8_t ___r_1; }; #pragma pack(pop, tp) struct { uint8_t ___r_1_forAlignmentOnly; }; #pragma pack(push, tp, 1) struct { char ___g_2_OffsetPadding[1]; // System.Byte UnityEngine.Color32::g uint8_t ___g_2; }; #pragma pack(pop, tp) struct { char ___g_2_OffsetPadding_forAlignmentOnly[1]; uint8_t ___g_2_forAlignmentOnly; }; #pragma pack(push, tp, 1) struct { char ___b_3_OffsetPadding[2]; // System.Byte UnityEngine.Color32::b uint8_t ___b_3; }; #pragma pack(pop, tp) struct { char ___b_3_OffsetPadding_forAlignmentOnly[2]; uint8_t ___b_3_forAlignmentOnly; }; #pragma pack(push, tp, 1) struct { char ___a_4_OffsetPadding[3]; // System.Byte UnityEngine.Color32::a uint8_t ___a_4; }; #pragma pack(pop, tp) struct { char ___a_4_OffsetPadding_forAlignmentOnly[3]; uint8_t ___a_4_forAlignmentOnly; }; }; public: inline static int32_t get_offset_of_rgba_0() { return static_cast<int32_t>(offsetof(Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D, ___rgba_0)); } inline int32_t get_rgba_0() const { return ___rgba_0; } inline int32_t* get_address_of_rgba_0() { return &___rgba_0; } inline void set_rgba_0(int32_t value) { ___rgba_0 = value; } inline static int32_t get_offset_of_r_1() { return static_cast<int32_t>(offsetof(Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D, ___r_1)); } inline uint8_t get_r_1() const { return ___r_1; } inline uint8_t* get_address_of_r_1() { return &___r_1; } inline void set_r_1(uint8_t value) { ___r_1 = value; } inline static int32_t get_offset_of_g_2() { return static_cast<int32_t>(offsetof(Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D, ___g_2)); } inline uint8_t get_g_2() const { return ___g_2; } inline uint8_t* get_address_of_g_2() { return &___g_2; } inline void set_g_2(uint8_t value) { ___g_2 = value; } inline static int32_t get_offset_of_b_3() { return static_cast<int32_t>(offsetof(Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D, ___b_3)); } inline uint8_t get_b_3() const { return ___b_3; } inline uint8_t* get_address_of_b_3() { return &___b_3; } inline void set_b_3(uint8_t value) { ___b_3 = value; } inline static int32_t get_offset_of_a_4() { return static_cast<int32_t>(offsetof(Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D, ___a_4)); } inline uint8_t get_a_4() const { return ___a_4; } inline uint8_t* get_address_of_a_4() { return &___a_4; } inline void set_a_4(uint8_t value) { ___a_4 = value; } }; // System.DateTime struct DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 { public: // System.UInt64 System.DateTime::dateData uint64_t ___dateData_44; public: inline static int32_t get_offset_of_dateData_44() { return static_cast<int32_t>(offsetof(DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405, ___dateData_44)); } inline uint64_t get_dateData_44() const { return ___dateData_44; } inline uint64_t* get_address_of_dateData_44() { return &___dateData_44; } inline void set_dateData_44(uint64_t value) { ___dateData_44 = value; } }; struct DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405_StaticFields { public: // System.Int32[] System.DateTime::DaysToMonth365 Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* ___DaysToMonth365_29; // System.Int32[] System.DateTime::DaysToMonth366 Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* ___DaysToMonth366_30; // System.DateTime System.DateTime::MinValue DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 ___MinValue_31; // System.DateTime System.DateTime::MaxValue DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 ___MaxValue_32; public: inline static int32_t get_offset_of_DaysToMonth365_29() { return static_cast<int32_t>(offsetof(DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405_StaticFields, ___DaysToMonth365_29)); } inline Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* get_DaysToMonth365_29() const { return ___DaysToMonth365_29; } inline Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32** get_address_of_DaysToMonth365_29() { return &___DaysToMonth365_29; } inline void set_DaysToMonth365_29(Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* value) { ___DaysToMonth365_29 = value; Il2CppCodeGenWriteBarrier((void**)(&___DaysToMonth365_29), (void*)value); } inline static int32_t get_offset_of_DaysToMonth366_30() { return static_cast<int32_t>(offsetof(DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405_StaticFields, ___DaysToMonth366_30)); } inline Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* get_DaysToMonth366_30() const { return ___DaysToMonth366_30; } inline Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32** get_address_of_DaysToMonth366_30() { return &___DaysToMonth366_30; } inline void set_DaysToMonth366_30(Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* value) { ___DaysToMonth366_30 = value; Il2CppCodeGenWriteBarrier((void**)(&___DaysToMonth366_30), (void*)value); } inline static int32_t get_offset_of_MinValue_31() { return static_cast<int32_t>(offsetof(DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405_StaticFields, ___MinValue_31)); } inline DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 get_MinValue_31() const { return ___MinValue_31; } inline DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 * get_address_of_MinValue_31() { return &___MinValue_31; } inline void set_MinValue_31(DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 value) { ___MinValue_31 = value; } inline static int32_t get_offset_of_MaxValue_32() { return static_cast<int32_t>(offsetof(DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405_StaticFields, ___MaxValue_32)); } inline DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 get_MaxValue_32() const { return ___MaxValue_32; } inline DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 * get_address_of_MaxValue_32() { return &___MaxValue_32; } inline void set_MaxValue_32(DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 value) { ___MaxValue_32 = value; } }; // System.Decimal struct Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 { public: // System.Int32 System.Decimal::flags int32_t ___flags_14; // System.Int32 System.Decimal::hi int32_t ___hi_15; // System.Int32 System.Decimal::lo int32_t ___lo_16; // System.Int32 System.Decimal::mid int32_t ___mid_17; public: inline static int32_t get_offset_of_flags_14() { return static_cast<int32_t>(offsetof(Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7, ___flags_14)); } inline int32_t get_flags_14() const { return ___flags_14; } inline int32_t* get_address_of_flags_14() { return &___flags_14; } inline void set_flags_14(int32_t value) { ___flags_14 = value; } inline static int32_t get_offset_of_hi_15() { return static_cast<int32_t>(offsetof(Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7, ___hi_15)); } inline int32_t get_hi_15() const { return ___hi_15; } inline int32_t* get_address_of_hi_15() { return &___hi_15; } inline void set_hi_15(int32_t value) { ___hi_15 = value; } inline static int32_t get_offset_of_lo_16() { return static_cast<int32_t>(offsetof(Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7, ___lo_16)); } inline int32_t get_lo_16() const { return ___lo_16; } inline int32_t* get_address_of_lo_16() { return &___lo_16; } inline void set_lo_16(int32_t value) { ___lo_16 = value; } inline static int32_t get_offset_of_mid_17() { return static_cast<int32_t>(offsetof(Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7, ___mid_17)); } inline int32_t get_mid_17() const { return ___mid_17; } inline int32_t* get_address_of_mid_17() { return &___mid_17; } inline void set_mid_17(int32_t value) { ___mid_17 = value; } }; struct Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7_StaticFields { public: // System.UInt32[] System.Decimal::Powers10 UInt32U5BU5D_tCF06F1E9E72E0302C762578FF5358CC523F2A2CF* ___Powers10_6; // System.Decimal System.Decimal::Zero Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 ___Zero_7; // System.Decimal System.Decimal::One Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 ___One_8; // System.Decimal System.Decimal::MinusOne Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 ___MinusOne_9; // System.Decimal System.Decimal::MaxValue Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 ___MaxValue_10; // System.Decimal System.Decimal::MinValue Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 ___MinValue_11; // System.Decimal System.Decimal::NearNegativeZero Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 ___NearNegativeZero_12; // System.Decimal System.Decimal::NearPositiveZero Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 ___NearPositiveZero_13; public: inline static int32_t get_offset_of_Powers10_6() { return static_cast<int32_t>(offsetof(Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7_StaticFields, ___Powers10_6)); } inline UInt32U5BU5D_tCF06F1E9E72E0302C762578FF5358CC523F2A2CF* get_Powers10_6() const { return ___Powers10_6; } inline UInt32U5BU5D_tCF06F1E9E72E0302C762578FF5358CC523F2A2CF** get_address_of_Powers10_6() { return &___Powers10_6; } inline void set_Powers10_6(UInt32U5BU5D_tCF06F1E9E72E0302C762578FF5358CC523F2A2CF* value) { ___Powers10_6 = value; Il2CppCodeGenWriteBarrier((void**)(&___Powers10_6), (void*)value); } inline static int32_t get_offset_of_Zero_7() { return static_cast<int32_t>(offsetof(Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7_StaticFields, ___Zero_7)); } inline Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 get_Zero_7() const { return ___Zero_7; } inline Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 * get_address_of_Zero_7() { return &___Zero_7; } inline void set_Zero_7(Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 value) { ___Zero_7 = value; } inline static int32_t get_offset_of_One_8() { return static_cast<int32_t>(offsetof(Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7_StaticFields, ___One_8)); } inline Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 get_One_8() const { return ___One_8; } inline Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 * get_address_of_One_8() { return &___One_8; } inline void set_One_8(Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 value) { ___One_8 = value; } inline static int32_t get_offset_of_MinusOne_9() { return static_cast<int32_t>(offsetof(Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7_StaticFields, ___MinusOne_9)); } inline Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 get_MinusOne_9() const { return ___MinusOne_9; } inline Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 * get_address_of_MinusOne_9() { return &___MinusOne_9; } inline void set_MinusOne_9(Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 value) { ___MinusOne_9 = value; } inline static int32_t get_offset_of_MaxValue_10() { return static_cast<int32_t>(offsetof(Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7_StaticFields, ___MaxValue_10)); } inline Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 get_MaxValue_10() const { return ___MaxValue_10; } inline Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 * get_address_of_MaxValue_10() { return &___MaxValue_10; } inline void set_MaxValue_10(Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 value) { ___MaxValue_10 = value; } inline static int32_t get_offset_of_MinValue_11() { return static_cast<int32_t>(offsetof(Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7_StaticFields, ___MinValue_11)); } inline Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 get_MinValue_11() const { return ___MinValue_11; } inline Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 * get_address_of_MinValue_11() { return &___MinValue_11; } inline void set_MinValue_11(Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 value) { ___MinValue_11 = value; } inline static int32_t get_offset_of_NearNegativeZero_12() { return static_cast<int32_t>(offsetof(Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7_StaticFields, ___NearNegativeZero_12)); } inline Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 get_NearNegativeZero_12() const { return ___NearNegativeZero_12; } inline Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 * get_address_of_NearNegativeZero_12() { return &___NearNegativeZero_12; } inline void set_NearNegativeZero_12(Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 value) { ___NearNegativeZero_12 = value; } inline static int32_t get_offset_of_NearPositiveZero_13() { return static_cast<int32_t>(offsetof(Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7_StaticFields, ___NearPositiveZero_13)); } inline Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 get_NearPositiveZero_13() const { return ___NearPositiveZero_13; } inline Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 * get_address_of_NearPositiveZero_13() { return &___NearPositiveZero_13; } inline void set_NearPositiveZero_13(Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 value) { ___NearPositiveZero_13 = value; } }; // System.Double struct Double_t42821932CB52DE2057E685D0E1AF3DE5033D2181 { public: // System.Double System.Double::m_value double ___m_value_0; public: inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(Double_t42821932CB52DE2057E685D0E1AF3DE5033D2181, ___m_value_0)); } inline double get_m_value_0() const { return ___m_value_0; } inline double* get_address_of_m_value_0() { return &___m_value_0; } inline void set_m_value_0(double value) { ___m_value_0 = value; } }; struct Double_t42821932CB52DE2057E685D0E1AF3DE5033D2181_StaticFields { public: // System.Double System.Double::NegativeZero double ___NegativeZero_7; public: inline static int32_t get_offset_of_NegativeZero_7() { return static_cast<int32_t>(offsetof(Double_t42821932CB52DE2057E685D0E1AF3DE5033D2181_StaticFields, ___NegativeZero_7)); } inline double get_NegativeZero_7() const { return ___NegativeZero_7; } inline double* get_address_of_NegativeZero_7() { return &___NegativeZero_7; } inline void set_NegativeZero_7(double value) { ___NegativeZero_7 = value; } }; // System.Enum struct Enum_t23B90B40F60E677A8025267341651C94AE079CDA : public ValueType_tDBF999C1B75C48C68621878250DBF6CDBCF51E52 { public: public: }; struct Enum_t23B90B40F60E677A8025267341651C94AE079CDA_StaticFields { public: // System.Char[] System.Enum::enumSeperatorCharArray CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* ___enumSeperatorCharArray_0; public: inline static int32_t get_offset_of_enumSeperatorCharArray_0() { return static_cast<int32_t>(offsetof(Enum_t23B90B40F60E677A8025267341651C94AE079CDA_StaticFields, ___enumSeperatorCharArray_0)); } inline CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* get_enumSeperatorCharArray_0() const { return ___enumSeperatorCharArray_0; } inline CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34** get_address_of_enumSeperatorCharArray_0() { return &___enumSeperatorCharArray_0; } inline void set_enumSeperatorCharArray_0(CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* value) { ___enumSeperatorCharArray_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___enumSeperatorCharArray_0), (void*)value); } }; // Native definition for P/Invoke marshalling of System.Enum struct Enum_t23B90B40F60E677A8025267341651C94AE079CDA_marshaled_pinvoke { }; // Native definition for COM marshalling of System.Enum struct Enum_t23B90B40F60E677A8025267341651C94AE079CDA_marshaled_com { }; // System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken struct EventRegistrationToken_t5460ED02F1A6B74B604DFD634E8D5429857E9830 { public: // System.UInt64 System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken::m_value uint64_t ___m_value_0; public: inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(EventRegistrationToken_t5460ED02F1A6B74B604DFD634E8D5429857E9830, ___m_value_0)); } inline uint64_t get_m_value_0() const { return ___m_value_0; } inline uint64_t* get_address_of_m_value_0() { return &___m_value_0; } inline void set_m_value_0(uint64_t value) { ___m_value_0 = value; } }; // UnityEngine.TextCore.GlyphRect struct GlyphRect_t4F6A791326A28C2CEC6B13B0BD50A4F78280289D { public: // System.Int32 UnityEngine.TextCore.GlyphRect::m_X int32_t ___m_X_0; // System.Int32 UnityEngine.TextCore.GlyphRect::m_Y int32_t ___m_Y_1; // System.Int32 UnityEngine.TextCore.GlyphRect::m_Width int32_t ___m_Width_2; // System.Int32 UnityEngine.TextCore.GlyphRect::m_Height int32_t ___m_Height_3; public: inline static int32_t get_offset_of_m_X_0() { return static_cast<int32_t>(offsetof(GlyphRect_t4F6A791326A28C2CEC6B13B0BD50A4F78280289D, ___m_X_0)); } inline int32_t get_m_X_0() const { return ___m_X_0; } inline int32_t* get_address_of_m_X_0() { return &___m_X_0; } inline void set_m_X_0(int32_t value) { ___m_X_0 = value; } inline static int32_t get_offset_of_m_Y_1() { return static_cast<int32_t>(offsetof(GlyphRect_t4F6A791326A28C2CEC6B13B0BD50A4F78280289D, ___m_Y_1)); } inline int32_t get_m_Y_1() const { return ___m_Y_1; } inline int32_t* get_address_of_m_Y_1() { return &___m_Y_1; } inline void set_m_Y_1(int32_t value) { ___m_Y_1 = value; } inline static int32_t get_offset_of_m_Width_2() { return static_cast<int32_t>(offsetof(GlyphRect_t4F6A791326A28C2CEC6B13B0BD50A4F78280289D, ___m_Width_2)); } inline int32_t get_m_Width_2() const { return ___m_Width_2; } inline int32_t* get_address_of_m_Width_2() { return &___m_Width_2; } inline void set_m_Width_2(int32_t value) { ___m_Width_2 = value; } inline static int32_t get_offset_of_m_Height_3() { return static_cast<int32_t>(offsetof(GlyphRect_t4F6A791326A28C2CEC6B13B0BD50A4F78280289D, ___m_Height_3)); } inline int32_t get_m_Height_3() const { return ___m_Height_3; } inline int32_t* get_address_of_m_Height_3() { return &___m_Height_3; } inline void set_m_Height_3(int32_t value) { ___m_Height_3 = value; } }; struct GlyphRect_t4F6A791326A28C2CEC6B13B0BD50A4F78280289D_StaticFields { public: // UnityEngine.TextCore.GlyphRect UnityEngine.TextCore.GlyphRect::s_ZeroGlyphRect GlyphRect_t4F6A791326A28C2CEC6B13B0BD50A4F78280289D ___s_ZeroGlyphRect_4; public: inline static int32_t get_offset_of_s_ZeroGlyphRect_4() { return static_cast<int32_t>(offsetof(GlyphRect_t4F6A791326A28C2CEC6B13B0BD50A4F78280289D_StaticFields, ___s_ZeroGlyphRect_4)); } inline GlyphRect_t4F6A791326A28C2CEC6B13B0BD50A4F78280289D get_s_ZeroGlyphRect_4() const { return ___s_ZeroGlyphRect_4; } inline GlyphRect_t4F6A791326A28C2CEC6B13B0BD50A4F78280289D * get_address_of_s_ZeroGlyphRect_4() { return &___s_ZeroGlyphRect_4; } inline void set_s_ZeroGlyphRect_4(GlyphRect_t4F6A791326A28C2CEC6B13B0BD50A4F78280289D value) { ___s_ZeroGlyphRect_4 = value; } }; // System.Guid struct Guid_t { public: // System.Int32 System.Guid::_a int32_t ____a_1; // System.Int16 System.Guid::_b int16_t ____b_2; // System.Int16 System.Guid::_c int16_t ____c_3; // System.Byte System.Guid::_d uint8_t ____d_4; // System.Byte System.Guid::_e uint8_t ____e_5; // System.Byte System.Guid::_f uint8_t ____f_6; // System.Byte System.Guid::_g uint8_t ____g_7; // System.Byte System.Guid::_h uint8_t ____h_8; // System.Byte System.Guid::_i uint8_t ____i_9; // System.Byte System.Guid::_j uint8_t ____j_10; // System.Byte System.Guid::_k uint8_t ____k_11; public: inline static int32_t get_offset_of__a_1() { return static_cast<int32_t>(offsetof(Guid_t, ____a_1)); } inline int32_t get__a_1() const { return ____a_1; } inline int32_t* get_address_of__a_1() { return &____a_1; } inline void set__a_1(int32_t value) { ____a_1 = value; } inline static int32_t get_offset_of__b_2() { return static_cast<int32_t>(offsetof(Guid_t, ____b_2)); } inline int16_t get__b_2() const { return ____b_2; } inline int16_t* get_address_of__b_2() { return &____b_2; } inline void set__b_2(int16_t value) { ____b_2 = value; } inline static int32_t get_offset_of__c_3() { return static_cast<int32_t>(offsetof(Guid_t, ____c_3)); } inline int16_t get__c_3() const { return ____c_3; } inline int16_t* get_address_of__c_3() { return &____c_3; } inline void set__c_3(int16_t value) { ____c_3 = value; } inline static int32_t get_offset_of__d_4() { return static_cast<int32_t>(offsetof(Guid_t, ____d_4)); } inline uint8_t get__d_4() const { return ____d_4; } inline uint8_t* get_address_of__d_4() { return &____d_4; } inline void set__d_4(uint8_t value) { ____d_4 = value; } inline static int32_t get_offset_of__e_5() { return static_cast<int32_t>(offsetof(Guid_t, ____e_5)); } inline uint8_t get__e_5() const { return ____e_5; } inline uint8_t* get_address_of__e_5() { return &____e_5; } inline void set__e_5(uint8_t value) { ____e_5 = value; } inline static int32_t get_offset_of__f_6() { return static_cast<int32_t>(offsetof(Guid_t, ____f_6)); } inline uint8_t get__f_6() const { return ____f_6; } inline uint8_t* get_address_of__f_6() { return &____f_6; } inline void set__f_6(uint8_t value) { ____f_6 = value; } inline static int32_t get_offset_of__g_7() { return static_cast<int32_t>(offsetof(Guid_t, ____g_7)); } inline uint8_t get__g_7() const { return ____g_7; } inline uint8_t* get_address_of__g_7() { return &____g_7; } inline void set__g_7(uint8_t value) { ____g_7 = value; } inline static int32_t get_offset_of__h_8() { return static_cast<int32_t>(offsetof(Guid_t, ____h_8)); } inline uint8_t get__h_8() const { return ____h_8; } inline uint8_t* get_address_of__h_8() { return &____h_8; } inline void set__h_8(uint8_t value) { ____h_8 = value; } inline static int32_t get_offset_of__i_9() { return static_cast<int32_t>(offsetof(Guid_t, ____i_9)); } inline uint8_t get__i_9() const { return ____i_9; } inline uint8_t* get_address_of__i_9() { return &____i_9; } inline void set__i_9(uint8_t value) { ____i_9 = value; } inline static int32_t get_offset_of__j_10() { return static_cast<int32_t>(offsetof(Guid_t, ____j_10)); } inline uint8_t get__j_10() const { return ____j_10; } inline uint8_t* get_address_of__j_10() { return &____j_10; } inline void set__j_10(uint8_t value) { ____j_10 = value; } inline static int32_t get_offset_of__k_11() { return static_cast<int32_t>(offsetof(Guid_t, ____k_11)); } inline uint8_t get__k_11() const { return ____k_11; } inline uint8_t* get_address_of__k_11() { return &____k_11; } inline void set__k_11(uint8_t value) { ____k_11 = value; } }; struct Guid_t_StaticFields { public: // System.Guid System.Guid::Empty Guid_t ___Empty_0; // System.Object System.Guid::_rngAccess RuntimeObject * ____rngAccess_12; // System.Security.Cryptography.RandomNumberGenerator System.Guid::_rng RandomNumberGenerator_t2CB5440F189986116A2FA9F907AE52644047AC50 * ____rng_13; // System.Security.Cryptography.RandomNumberGenerator System.Guid::_fastRng RandomNumberGenerator_t2CB5440F189986116A2FA9F907AE52644047AC50 * ____fastRng_14; public: inline static int32_t get_offset_of_Empty_0() { return static_cast<int32_t>(offsetof(Guid_t_StaticFields, ___Empty_0)); } inline Guid_t get_Empty_0() const { return ___Empty_0; } inline Guid_t * get_address_of_Empty_0() { return &___Empty_0; } inline void set_Empty_0(Guid_t value) { ___Empty_0 = value; } inline static int32_t get_offset_of__rngAccess_12() { return static_cast<int32_t>(offsetof(Guid_t_StaticFields, ____rngAccess_12)); } inline RuntimeObject * get__rngAccess_12() const { return ____rngAccess_12; } inline RuntimeObject ** get_address_of__rngAccess_12() { return &____rngAccess_12; } inline void set__rngAccess_12(RuntimeObject * value) { ____rngAccess_12 = value; Il2CppCodeGenWriteBarrier((void**)(&____rngAccess_12), (void*)value); } inline static int32_t get_offset_of__rng_13() { return static_cast<int32_t>(offsetof(Guid_t_StaticFields, ____rng_13)); } inline RandomNumberGenerator_t2CB5440F189986116A2FA9F907AE52644047AC50 * get__rng_13() const { return ____rng_13; } inline RandomNumberGenerator_t2CB5440F189986116A2FA9F907AE52644047AC50 ** get_address_of__rng_13() { return &____rng_13; } inline void set__rng_13(RandomNumberGenerator_t2CB5440F189986116A2FA9F907AE52644047AC50 * value) { ____rng_13 = value; Il2CppCodeGenWriteBarrier((void**)(&____rng_13), (void*)value); } inline static int32_t get_offset_of__fastRng_14() { return static_cast<int32_t>(offsetof(Guid_t_StaticFields, ____fastRng_14)); } inline RandomNumberGenerator_t2CB5440F189986116A2FA9F907AE52644047AC50 * get__fastRng_14() const { return ____fastRng_14; } inline RandomNumberGenerator_t2CB5440F189986116A2FA9F907AE52644047AC50 ** get_address_of__fastRng_14() { return &____fastRng_14; } inline void set__fastRng_14(RandomNumberGenerator_t2CB5440F189986116A2FA9F907AE52644047AC50 * value) { ____fastRng_14 = value; Il2CppCodeGenWriteBarrier((void**)(&____fastRng_14), (void*)value); } }; // UnityEngine.XR.InputDevice struct InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E { public: // System.UInt64 UnityEngine.XR.InputDevice::m_DeviceId uint64_t ___m_DeviceId_1; // System.Boolean UnityEngine.XR.InputDevice::m_Initialized bool ___m_Initialized_2; public: inline static int32_t get_offset_of_m_DeviceId_1() { return static_cast<int32_t>(offsetof(InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E, ___m_DeviceId_1)); } inline uint64_t get_m_DeviceId_1() const { return ___m_DeviceId_1; } inline uint64_t* get_address_of_m_DeviceId_1() { return &___m_DeviceId_1; } inline void set_m_DeviceId_1(uint64_t value) { ___m_DeviceId_1 = value; } inline static int32_t get_offset_of_m_Initialized_2() { return static_cast<int32_t>(offsetof(InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E, ___m_Initialized_2)); } inline bool get_m_Initialized_2() const { return ___m_Initialized_2; } inline bool* get_address_of_m_Initialized_2() { return &___m_Initialized_2; } inline void set_m_Initialized_2(bool value) { ___m_Initialized_2 = value; } }; struct InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E_StaticFields { public: // System.Collections.Generic.List`1<UnityEngine.XR.XRInputSubsystem> UnityEngine.XR.InputDevice::s_InputSubsystemCache List_1_t39579540B4BF5D674E4CAA282D3CEA957BCB90D4 * ___s_InputSubsystemCache_0; public: inline static int32_t get_offset_of_s_InputSubsystemCache_0() { return static_cast<int32_t>(offsetof(InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E_StaticFields, ___s_InputSubsystemCache_0)); } inline List_1_t39579540B4BF5D674E4CAA282D3CEA957BCB90D4 * get_s_InputSubsystemCache_0() const { return ___s_InputSubsystemCache_0; } inline List_1_t39579540B4BF5D674E4CAA282D3CEA957BCB90D4 ** get_address_of_s_InputSubsystemCache_0() { return &___s_InputSubsystemCache_0; } inline void set_s_InputSubsystemCache_0(List_1_t39579540B4BF5D674E4CAA282D3CEA957BCB90D4 * value) { ___s_InputSubsystemCache_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___s_InputSubsystemCache_0), (void*)value); } }; // Native definition for P/Invoke marshalling of UnityEngine.XR.InputDevice struct InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E_marshaled_pinvoke { uint64_t ___m_DeviceId_1; int32_t ___m_Initialized_2; }; // Native definition for COM marshalling of UnityEngine.XR.InputDevice struct InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E_marshaled_com { uint64_t ___m_DeviceId_1; int32_t ___m_Initialized_2; }; // UnityEngine.InputSystem.Layouts.InputDeviceDescription struct InputDeviceDescription_tDCF3D4C660B97F28D8AB46D82C0BA8EA727E48C3 { public: // System.String UnityEngine.InputSystem.Layouts.InputDeviceDescription::m_InterfaceName String_t* ___m_InterfaceName_0; // System.String UnityEngine.InputSystem.Layouts.InputDeviceDescription::m_DeviceClass String_t* ___m_DeviceClass_1; // System.String UnityEngine.InputSystem.Layouts.InputDeviceDescription::m_Manufacturer String_t* ___m_Manufacturer_2; // System.String UnityEngine.InputSystem.Layouts.InputDeviceDescription::m_Product String_t* ___m_Product_3; // System.String UnityEngine.InputSystem.Layouts.InputDeviceDescription::m_Serial String_t* ___m_Serial_4; // System.String UnityEngine.InputSystem.Layouts.InputDeviceDescription::m_Version String_t* ___m_Version_5; // System.String UnityEngine.InputSystem.Layouts.InputDeviceDescription::m_Capabilities String_t* ___m_Capabilities_6; public: inline static int32_t get_offset_of_m_InterfaceName_0() { return static_cast<int32_t>(offsetof(InputDeviceDescription_tDCF3D4C660B97F28D8AB46D82C0BA8EA727E48C3, ___m_InterfaceName_0)); } inline String_t* get_m_InterfaceName_0() const { return ___m_InterfaceName_0; } inline String_t** get_address_of_m_InterfaceName_0() { return &___m_InterfaceName_0; } inline void set_m_InterfaceName_0(String_t* value) { ___m_InterfaceName_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_InterfaceName_0), (void*)value); } inline static int32_t get_offset_of_m_DeviceClass_1() { return static_cast<int32_t>(offsetof(InputDeviceDescription_tDCF3D4C660B97F28D8AB46D82C0BA8EA727E48C3, ___m_DeviceClass_1)); } inline String_t* get_m_DeviceClass_1() const { return ___m_DeviceClass_1; } inline String_t** get_address_of_m_DeviceClass_1() { return &___m_DeviceClass_1; } inline void set_m_DeviceClass_1(String_t* value) { ___m_DeviceClass_1 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_DeviceClass_1), (void*)value); } inline static int32_t get_offset_of_m_Manufacturer_2() { return static_cast<int32_t>(offsetof(InputDeviceDescription_tDCF3D4C660B97F28D8AB46D82C0BA8EA727E48C3, ___m_Manufacturer_2)); } inline String_t* get_m_Manufacturer_2() const { return ___m_Manufacturer_2; } inline String_t** get_address_of_m_Manufacturer_2() { return &___m_Manufacturer_2; } inline void set_m_Manufacturer_2(String_t* value) { ___m_Manufacturer_2 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_Manufacturer_2), (void*)value); } inline static int32_t get_offset_of_m_Product_3() { return static_cast<int32_t>(offsetof(InputDeviceDescription_tDCF3D4C660B97F28D8AB46D82C0BA8EA727E48C3, ___m_Product_3)); } inline String_t* get_m_Product_3() const { return ___m_Product_3; } inline String_t** get_address_of_m_Product_3() { return &___m_Product_3; } inline void set_m_Product_3(String_t* value) { ___m_Product_3 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_Product_3), (void*)value); } inline static int32_t get_offset_of_m_Serial_4() { return static_cast<int32_t>(offsetof(InputDeviceDescription_tDCF3D4C660B97F28D8AB46D82C0BA8EA727E48C3, ___m_Serial_4)); } inline String_t* get_m_Serial_4() const { return ___m_Serial_4; } inline String_t** get_address_of_m_Serial_4() { return &___m_Serial_4; } inline void set_m_Serial_4(String_t* value) { ___m_Serial_4 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_Serial_4), (void*)value); } inline static int32_t get_offset_of_m_Version_5() { return static_cast<int32_t>(offsetof(InputDeviceDescription_tDCF3D4C660B97F28D8AB46D82C0BA8EA727E48C3, ___m_Version_5)); } inline String_t* get_m_Version_5() const { return ___m_Version_5; } inline String_t** get_address_of_m_Version_5() { return &___m_Version_5; } inline void set_m_Version_5(String_t* value) { ___m_Version_5 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_Version_5), (void*)value); } inline static int32_t get_offset_of_m_Capabilities_6() { return static_cast<int32_t>(offsetof(InputDeviceDescription_tDCF3D4C660B97F28D8AB46D82C0BA8EA727E48C3, ___m_Capabilities_6)); } inline String_t* get_m_Capabilities_6() const { return ___m_Capabilities_6; } inline String_t** get_address_of_m_Capabilities_6() { return &___m_Capabilities_6; } inline void set_m_Capabilities_6(String_t* value) { ___m_Capabilities_6 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_Capabilities_6), (void*)value); } }; // Native definition for P/Invoke marshalling of UnityEngine.InputSystem.Layouts.InputDeviceDescription struct InputDeviceDescription_tDCF3D4C660B97F28D8AB46D82C0BA8EA727E48C3_marshaled_pinvoke { char* ___m_InterfaceName_0; char* ___m_DeviceClass_1; char* ___m_Manufacturer_2; char* ___m_Product_3; char* ___m_Serial_4; char* ___m_Version_5; char* ___m_Capabilities_6; }; // Native definition for COM marshalling of UnityEngine.InputSystem.Layouts.InputDeviceDescription struct InputDeviceDescription_tDCF3D4C660B97F28D8AB46D82C0BA8EA727E48C3_marshaled_com { Il2CppChar* ___m_InterfaceName_0; Il2CppChar* ___m_DeviceClass_1; Il2CppChar* ___m_Manufacturer_2; Il2CppChar* ___m_Product_3; Il2CppChar* ___m_Serial_4; Il2CppChar* ___m_Version_5; Il2CppChar* ___m_Capabilities_6; }; // UnityEngine.InputSystem.LowLevel.InputEventPtr struct InputEventPtr_tC7799829CE3FDCA9E191C7BC946ABE0DB17B377D { public: // UnityEngine.InputSystem.LowLevel.InputEvent* UnityEngine.InputSystem.LowLevel.InputEventPtr::m_EventPtr InputEvent_t501FCA2333E787A4DA3C7FF85383FBA452091C92 * ___m_EventPtr_0; public: inline static int32_t get_offset_of_m_EventPtr_0() { return static_cast<int32_t>(offsetof(InputEventPtr_tC7799829CE3FDCA9E191C7BC946ABE0DB17B377D, ___m_EventPtr_0)); } inline InputEvent_t501FCA2333E787A4DA3C7FF85383FBA452091C92 * get_m_EventPtr_0() const { return ___m_EventPtr_0; } inline InputEvent_t501FCA2333E787A4DA3C7FF85383FBA452091C92 ** get_address_of_m_EventPtr_0() { return &___m_EventPtr_0; } inline void set_m_EventPtr_0(InputEvent_t501FCA2333E787A4DA3C7FF85383FBA452091C92 * value) { ___m_EventPtr_0 = value; } }; // System.Int16 struct Int16_tD0F031114106263BB459DA1F099FF9F42691295A { public: // System.Int16 System.Int16::m_value int16_t ___m_value_0; public: inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(Int16_tD0F031114106263BB459DA1F099FF9F42691295A, ___m_value_0)); } inline int16_t get_m_value_0() const { return ___m_value_0; } inline int16_t* get_address_of_m_value_0() { return &___m_value_0; } inline void set_m_value_0(int16_t value) { ___m_value_0 = value; } }; // System.Int32 struct Int32_tFDE5F8CD43D10453F6A2E0C77FE48C6CC7009046 { public: // System.Int32 System.Int32::m_value int32_t ___m_value_0; public: inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(Int32_tFDE5F8CD43D10453F6A2E0C77FE48C6CC7009046, ___m_value_0)); } inline int32_t get_m_value_0() const { return ___m_value_0; } inline int32_t* get_address_of_m_value_0() { return &___m_value_0; } inline void set_m_value_0(int32_t value) { ___m_value_0 = value; } }; // System.Int64 struct Int64_t378EE0D608BD3107E77238E85F30D2BBD46981F3 { public: // System.Int64 System.Int64::m_value int64_t ___m_value_0; public: inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(Int64_t378EE0D608BD3107E77238E85F30D2BBD46981F3, ___m_value_0)); } inline int64_t get_m_value_0() const { return ___m_value_0; } inline int64_t* get_address_of_m_value_0() { return &___m_value_0; } inline void set_m_value_0(int64_t value) { ___m_value_0 = value; } }; // System.IntPtr struct IntPtr_t { public: // System.Void* System.IntPtr::m_value void* ___m_value_0; public: inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(IntPtr_t, ___m_value_0)); } inline void* get_m_value_0() const { return ___m_value_0; } inline void** get_address_of_m_value_0() { return &___m_value_0; } inline void set_m_value_0(void* value) { ___m_value_0 = value; } }; struct IntPtr_t_StaticFields { public: // System.IntPtr System.IntPtr::Zero intptr_t ___Zero_1; public: inline static int32_t get_offset_of_Zero_1() { return static_cast<int32_t>(offsetof(IntPtr_t_StaticFields, ___Zero_1)); } inline intptr_t get_Zero_1() const { return ___Zero_1; } inline intptr_t* get_address_of_Zero_1() { return &___Zero_1; } inline void set_Zero_1(intptr_t value) { ___Zero_1 = value; } }; // UnityEngine.InputSystem.Utilities.InternedString struct InternedString_tD1138602E8B7EA0F5B4851812B13C7E0551E25C8 { public: // System.String UnityEngine.InputSystem.Utilities.InternedString::m_StringOriginalCase String_t* ___m_StringOriginalCase_0; // System.String UnityEngine.InputSystem.Utilities.InternedString::m_StringLowerCase String_t* ___m_StringLowerCase_1; public: inline static int32_t get_offset_of_m_StringOriginalCase_0() { return static_cast<int32_t>(offsetof(InternedString_tD1138602E8B7EA0F5B4851812B13C7E0551E25C8, ___m_StringOriginalCase_0)); } inline String_t* get_m_StringOriginalCase_0() const { return ___m_StringOriginalCase_0; } inline String_t** get_address_of_m_StringOriginalCase_0() { return &___m_StringOriginalCase_0; } inline void set_m_StringOriginalCase_0(String_t* value) { ___m_StringOriginalCase_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_StringOriginalCase_0), (void*)value); } inline static int32_t get_offset_of_m_StringLowerCase_1() { return static_cast<int32_t>(offsetof(InternedString_tD1138602E8B7EA0F5B4851812B13C7E0551E25C8, ___m_StringLowerCase_1)); } inline String_t* get_m_StringLowerCase_1() const { return ___m_StringLowerCase_1; } inline String_t** get_address_of_m_StringLowerCase_1() { return &___m_StringLowerCase_1; } inline void set_m_StringLowerCase_1(String_t* value) { ___m_StringLowerCase_1 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_StringLowerCase_1), (void*)value); } }; // Native definition for P/Invoke marshalling of UnityEngine.InputSystem.Utilities.InternedString struct InternedString_tD1138602E8B7EA0F5B4851812B13C7E0551E25C8_marshaled_pinvoke { char* ___m_StringOriginalCase_0; char* ___m_StringLowerCase_1; }; // Native definition for COM marshalling of UnityEngine.InputSystem.Utilities.InternedString struct InternedString_tD1138602E8B7EA0F5B4851812B13C7E0551E25C8_marshaled_com { Il2CppChar* ___m_StringOriginalCase_0; Il2CppChar* ___m_StringLowerCase_1; }; // System.Linq.Expressions.Interpreter.InterpretedFrameInfo struct InterpretedFrameInfo_tC2C153C83030E30AC9BEC762C0B549D6340A1DF7 { public: // System.String System.Linq.Expressions.Interpreter.InterpretedFrameInfo::_methodName String_t* ____methodName_0; // System.Linq.Expressions.Interpreter.DebugInfo System.Linq.Expressions.Interpreter.InterpretedFrameInfo::_debugInfo DebugInfo_t2FD37DEB5529C6813FAD30E67627B4CEFE8033AC * ____debugInfo_1; public: inline static int32_t get_offset_of__methodName_0() { return static_cast<int32_t>(offsetof(InterpretedFrameInfo_tC2C153C83030E30AC9BEC762C0B549D6340A1DF7, ____methodName_0)); } inline String_t* get__methodName_0() const { return ____methodName_0; } inline String_t** get_address_of__methodName_0() { return &____methodName_0; } inline void set__methodName_0(String_t* value) { ____methodName_0 = value; Il2CppCodeGenWriteBarrier((void**)(&____methodName_0), (void*)value); } inline static int32_t get_offset_of__debugInfo_1() { return static_cast<int32_t>(offsetof(InterpretedFrameInfo_tC2C153C83030E30AC9BEC762C0B549D6340A1DF7, ____debugInfo_1)); } inline DebugInfo_t2FD37DEB5529C6813FAD30E67627B4CEFE8033AC * get__debugInfo_1() const { return ____debugInfo_1; } inline DebugInfo_t2FD37DEB5529C6813FAD30E67627B4CEFE8033AC ** get_address_of__debugInfo_1() { return &____debugInfo_1; } inline void set__debugInfo_1(DebugInfo_t2FD37DEB5529C6813FAD30E67627B4CEFE8033AC * value) { ____debugInfo_1 = value; Il2CppCodeGenWriteBarrier((void**)(&____debugInfo_1), (void*)value); } }; // Native definition for P/Invoke marshalling of System.Linq.Expressions.Interpreter.InterpretedFrameInfo struct InterpretedFrameInfo_tC2C153C83030E30AC9BEC762C0B549D6340A1DF7_marshaled_pinvoke { char* ____methodName_0; DebugInfo_t2FD37DEB5529C6813FAD30E67627B4CEFE8033AC * ____debugInfo_1; }; // Native definition for COM marshalling of System.Linq.Expressions.Interpreter.InterpretedFrameInfo struct InterpretedFrameInfo_tC2C153C83030E30AC9BEC762C0B549D6340A1DF7_marshaled_com { Il2CppChar* ____methodName_0; DebugInfo_t2FD37DEB5529C6813FAD30E67627B4CEFE8033AC * ____debugInfo_1; }; // UnityEngine.Quaternion struct Quaternion_t6D28618CF65156D4A0AD747370DDFD0C514A31B4 { public: // System.Single UnityEngine.Quaternion::x float ___x_0; // System.Single UnityEngine.Quaternion::y float ___y_1; // System.Single UnityEngine.Quaternion::z float ___z_2; // System.Single UnityEngine.Quaternion::w float ___w_3; public: inline static int32_t get_offset_of_x_0() { return static_cast<int32_t>(offsetof(Quaternion_t6D28618CF65156D4A0AD747370DDFD0C514A31B4, ___x_0)); } inline float get_x_0() const { return ___x_0; } inline float* get_address_of_x_0() { return &___x_0; } inline void set_x_0(float value) { ___x_0 = value; } inline static int32_t get_offset_of_y_1() { return static_cast<int32_t>(offsetof(Quaternion_t6D28618CF65156D4A0AD747370DDFD0C514A31B4, ___y_1)); } inline float get_y_1() const { return ___y_1; } inline float* get_address_of_y_1() { return &___y_1; } inline void set_y_1(float value) { ___y_1 = value; } inline static int32_t get_offset_of_z_2() { return static_cast<int32_t>(offsetof(Quaternion_t6D28618CF65156D4A0AD747370DDFD0C514A31B4, ___z_2)); } inline float get_z_2() const { return ___z_2; } inline float* get_address_of_z_2() { return &___z_2; } inline void set_z_2(float value) { ___z_2 = value; } inline static int32_t get_offset_of_w_3() { return static_cast<int32_t>(offsetof(Quaternion_t6D28618CF65156D4A0AD747370DDFD0C514A31B4, ___w_3)); } inline float get_w_3() const { return ___w_3; } inline float* get_address_of_w_3() { return &___w_3; } inline void set_w_3(float value) { ___w_3 = value; } }; struct Quaternion_t6D28618CF65156D4A0AD747370DDFD0C514A31B4_StaticFields { public: // UnityEngine.Quaternion UnityEngine.Quaternion::identityQuaternion Quaternion_t6D28618CF65156D4A0AD747370DDFD0C514A31B4 ___identityQuaternion_4; public: inline static int32_t get_offset_of_identityQuaternion_4() { return static_cast<int32_t>(offsetof(Quaternion_t6D28618CF65156D4A0AD747370DDFD0C514A31B4_StaticFields, ___identityQuaternion_4)); } inline Quaternion_t6D28618CF65156D4A0AD747370DDFD0C514A31B4 get_identityQuaternion_4() const { return ___identityQuaternion_4; } inline Quaternion_t6D28618CF65156D4A0AD747370DDFD0C514A31B4 * get_address_of_identityQuaternion_4() { return &___identityQuaternion_4; } inline void set_identityQuaternion_4(Quaternion_t6D28618CF65156D4A0AD747370DDFD0C514A31B4 value) { ___identityQuaternion_4 = value; } }; // UnityEngine.Vector2 struct Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 { public: // System.Single UnityEngine.Vector2::x float ___x_0; // System.Single UnityEngine.Vector2::y float ___y_1; public: inline static int32_t get_offset_of_x_0() { return static_cast<int32_t>(offsetof(Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9, ___x_0)); } inline float get_x_0() const { return ___x_0; } inline float* get_address_of_x_0() { return &___x_0; } inline void set_x_0(float value) { ___x_0 = value; } inline static int32_t get_offset_of_y_1() { return static_cast<int32_t>(offsetof(Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9, ___y_1)); } inline float get_y_1() const { return ___y_1; } inline float* get_address_of_y_1() { return &___y_1; } inline void set_y_1(float value) { ___y_1 = value; } }; struct Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9_StaticFields { public: // UnityEngine.Vector2 UnityEngine.Vector2::zeroVector Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 ___zeroVector_2; // UnityEngine.Vector2 UnityEngine.Vector2::oneVector Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 ___oneVector_3; // UnityEngine.Vector2 UnityEngine.Vector2::upVector Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 ___upVector_4; // UnityEngine.Vector2 UnityEngine.Vector2::downVector Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 ___downVector_5; // UnityEngine.Vector2 UnityEngine.Vector2::leftVector Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 ___leftVector_6; // UnityEngine.Vector2 UnityEngine.Vector2::rightVector Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 ___rightVector_7; // UnityEngine.Vector2 UnityEngine.Vector2::positiveInfinityVector Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 ___positiveInfinityVector_8; // UnityEngine.Vector2 UnityEngine.Vector2::negativeInfinityVector Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 ___negativeInfinityVector_9; public: inline static int32_t get_offset_of_zeroVector_2() { return static_cast<int32_t>(offsetof(Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9_StaticFields, ___zeroVector_2)); } inline Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 get_zeroVector_2() const { return ___zeroVector_2; } inline Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 * get_address_of_zeroVector_2() { return &___zeroVector_2; } inline void set_zeroVector_2(Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 value) { ___zeroVector_2 = value; } inline static int32_t get_offset_of_oneVector_3() { return static_cast<int32_t>(offsetof(Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9_StaticFields, ___oneVector_3)); } inline Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 get_oneVector_3() const { return ___oneVector_3; } inline Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 * get_address_of_oneVector_3() { return &___oneVector_3; } inline void set_oneVector_3(Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 value) { ___oneVector_3 = value; } inline static int32_t get_offset_of_upVector_4() { return static_cast<int32_t>(offsetof(Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9_StaticFields, ___upVector_4)); } inline Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 get_upVector_4() const { return ___upVector_4; } inline Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 * get_address_of_upVector_4() { return &___upVector_4; } inline void set_upVector_4(Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 value) { ___upVector_4 = value; } inline static int32_t get_offset_of_downVector_5() { return static_cast<int32_t>(offsetof(Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9_StaticFields, ___downVector_5)); } inline Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 get_downVector_5() const { return ___downVector_5; } inline Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 * get_address_of_downVector_5() { return &___downVector_5; } inline void set_downVector_5(Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 value) { ___downVector_5 = value; } inline static int32_t get_offset_of_leftVector_6() { return static_cast<int32_t>(offsetof(Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9_StaticFields, ___leftVector_6)); } inline Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 get_leftVector_6() const { return ___leftVector_6; } inline Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 * get_address_of_leftVector_6() { return &___leftVector_6; } inline void set_leftVector_6(Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 value) { ___leftVector_6 = value; } inline static int32_t get_offset_of_rightVector_7() { return static_cast<int32_t>(offsetof(Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9_StaticFields, ___rightVector_7)); } inline Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 get_rightVector_7() const { return ___rightVector_7; } inline Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 * get_address_of_rightVector_7() { return &___rightVector_7; } inline void set_rightVector_7(Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 value) { ___rightVector_7 = value; } inline static int32_t get_offset_of_positiveInfinityVector_8() { return static_cast<int32_t>(offsetof(Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9_StaticFields, ___positiveInfinityVector_8)); } inline Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 get_positiveInfinityVector_8() const { return ___positiveInfinityVector_8; } inline Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 * get_address_of_positiveInfinityVector_8() { return &___positiveInfinityVector_8; } inline void set_positiveInfinityVector_8(Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 value) { ___positiveInfinityVector_8 = value; } inline static int32_t get_offset_of_negativeInfinityVector_9() { return static_cast<int32_t>(offsetof(Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9_StaticFields, ___negativeInfinityVector_9)); } inline Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 get_negativeInfinityVector_9() const { return ___negativeInfinityVector_9; } inline Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 * get_address_of_negativeInfinityVector_9() { return &___negativeInfinityVector_9; } inline void set_negativeInfinityVector_9(Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 value) { ___negativeInfinityVector_9 = value; } }; // UnityEngine.Vector3 struct Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E { public: // System.Single UnityEngine.Vector3::x float ___x_2; // System.Single UnityEngine.Vector3::y float ___y_3; // System.Single UnityEngine.Vector3::z float ___z_4; public: inline static int32_t get_offset_of_x_2() { return static_cast<int32_t>(offsetof(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E, ___x_2)); } inline float get_x_2() const { return ___x_2; } inline float* get_address_of_x_2() { return &___x_2; } inline void set_x_2(float value) { ___x_2 = value; } inline static int32_t get_offset_of_y_3() { return static_cast<int32_t>(offsetof(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E, ___y_3)); } inline float get_y_3() const { return ___y_3; } inline float* get_address_of_y_3() { return &___y_3; } inline void set_y_3(float value) { ___y_3 = value; } inline static int32_t get_offset_of_z_4() { return static_cast<int32_t>(offsetof(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E, ___z_4)); } inline float get_z_4() const { return ___z_4; } inline float* get_address_of_z_4() { return &___z_4; } inline void set_z_4(float value) { ___z_4 = value; } }; struct Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E_StaticFields { public: // UnityEngine.Vector3 UnityEngine.Vector3::zeroVector Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___zeroVector_5; // UnityEngine.Vector3 UnityEngine.Vector3::oneVector Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___oneVector_6; // UnityEngine.Vector3 UnityEngine.Vector3::upVector Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___upVector_7; // UnityEngine.Vector3 UnityEngine.Vector3::downVector Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___downVector_8; // UnityEngine.Vector3 UnityEngine.Vector3::leftVector Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___leftVector_9; // UnityEngine.Vector3 UnityEngine.Vector3::rightVector Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___rightVector_10; // UnityEngine.Vector3 UnityEngine.Vector3::forwardVector Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___forwardVector_11; // UnityEngine.Vector3 UnityEngine.Vector3::backVector Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___backVector_12; // UnityEngine.Vector3 UnityEngine.Vector3::positiveInfinityVector Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___positiveInfinityVector_13; // UnityEngine.Vector3 UnityEngine.Vector3::negativeInfinityVector Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___negativeInfinityVector_14; public: inline static int32_t get_offset_of_zeroVector_5() { return static_cast<int32_t>(offsetof(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E_StaticFields, ___zeroVector_5)); } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E get_zeroVector_5() const { return ___zeroVector_5; } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E * get_address_of_zeroVector_5() { return &___zeroVector_5; } inline void set_zeroVector_5(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E value) { ___zeroVector_5 = value; } inline static int32_t get_offset_of_oneVector_6() { return static_cast<int32_t>(offsetof(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E_StaticFields, ___oneVector_6)); } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E get_oneVector_6() const { return ___oneVector_6; } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E * get_address_of_oneVector_6() { return &___oneVector_6; } inline void set_oneVector_6(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E value) { ___oneVector_6 = value; } inline static int32_t get_offset_of_upVector_7() { return static_cast<int32_t>(offsetof(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E_StaticFields, ___upVector_7)); } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E get_upVector_7() const { return ___upVector_7; } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E * get_address_of_upVector_7() { return &___upVector_7; } inline void set_upVector_7(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E value) { ___upVector_7 = value; } inline static int32_t get_offset_of_downVector_8() { return static_cast<int32_t>(offsetof(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E_StaticFields, ___downVector_8)); } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E get_downVector_8() const { return ___downVector_8; } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E * get_address_of_downVector_8() { return &___downVector_8; } inline void set_downVector_8(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E value) { ___downVector_8 = value; } inline static int32_t get_offset_of_leftVector_9() { return static_cast<int32_t>(offsetof(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E_StaticFields, ___leftVector_9)); } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E get_leftVector_9() const { return ___leftVector_9; } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E * get_address_of_leftVector_9() { return &___leftVector_9; } inline void set_leftVector_9(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E value) { ___leftVector_9 = value; } inline static int32_t get_offset_of_rightVector_10() { return static_cast<int32_t>(offsetof(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E_StaticFields, ___rightVector_10)); } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E get_rightVector_10() const { return ___rightVector_10; } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E * get_address_of_rightVector_10() { return &___rightVector_10; } inline void set_rightVector_10(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E value) { ___rightVector_10 = value; } inline static int32_t get_offset_of_forwardVector_11() { return static_cast<int32_t>(offsetof(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E_StaticFields, ___forwardVector_11)); } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E get_forwardVector_11() const { return ___forwardVector_11; } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E * get_address_of_forwardVector_11() { return &___forwardVector_11; } inline void set_forwardVector_11(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E value) { ___forwardVector_11 = value; } inline static int32_t get_offset_of_backVector_12() { return static_cast<int32_t>(offsetof(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E_StaticFields, ___backVector_12)); } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E get_backVector_12() const { return ___backVector_12; } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E * get_address_of_backVector_12() { return &___backVector_12; } inline void set_backVector_12(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E value) { ___backVector_12 = value; } inline static int32_t get_offset_of_positiveInfinityVector_13() { return static_cast<int32_t>(offsetof(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E_StaticFields, ___positiveInfinityVector_13)); } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E get_positiveInfinityVector_13() const { return ___positiveInfinityVector_13; } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E * get_address_of_positiveInfinityVector_13() { return &___positiveInfinityVector_13; } inline void set_positiveInfinityVector_13(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E value) { ___positiveInfinityVector_13 = value; } inline static int32_t get_offset_of_negativeInfinityVector_14() { return static_cast<int32_t>(offsetof(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E_StaticFields, ___negativeInfinityVector_14)); } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E get_negativeInfinityVector_14() const { return ___negativeInfinityVector_14; } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E * get_address_of_negativeInfinityVector_14() { return &___negativeInfinityVector_14; } inline void set_negativeInfinityVector_14(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E value) { ___negativeInfinityVector_14 = value; } }; // UnityEngine.Vector4 struct Vector4_tA56A37FC5661BCC89C3DDC24BE12BA5BCB6A02C7 { public: // System.Single UnityEngine.Vector4::x float ___x_1; // System.Single UnityEngine.Vector4::y float ___y_2; // System.Single UnityEngine.Vector4::z float ___z_3; // System.Single UnityEngine.Vector4::w float ___w_4; public: inline static int32_t get_offset_of_x_1() { return static_cast<int32_t>(offsetof(Vector4_tA56A37FC5661BCC89C3DDC24BE12BA5BCB6A02C7, ___x_1)); } inline float get_x_1() const { return ___x_1; } inline float* get_address_of_x_1() { return &___x_1; } inline void set_x_1(float value) { ___x_1 = value; } inline static int32_t get_offset_of_y_2() { return static_cast<int32_t>(offsetof(Vector4_tA56A37FC5661BCC89C3DDC24BE12BA5BCB6A02C7, ___y_2)); } inline float get_y_2() const { return ___y_2; } inline float* get_address_of_y_2() { return &___y_2; } inline void set_y_2(float value) { ___y_2 = value; } inline static int32_t get_offset_of_z_3() { return static_cast<int32_t>(offsetof(Vector4_tA56A37FC5661BCC89C3DDC24BE12BA5BCB6A02C7, ___z_3)); } inline float get_z_3() const { return ___z_3; } inline float* get_address_of_z_3() { return &___z_3; } inline void set_z_3(float value) { ___z_3 = value; } inline static int32_t get_offset_of_w_4() { return static_cast<int32_t>(offsetof(Vector4_tA56A37FC5661BCC89C3DDC24BE12BA5BCB6A02C7, ___w_4)); } inline float get_w_4() const { return ___w_4; } inline float* get_address_of_w_4() { return &___w_4; } inline void set_w_4(float value) { ___w_4 = value; } }; struct Vector4_tA56A37FC5661BCC89C3DDC24BE12BA5BCB6A02C7_StaticFields { public: // UnityEngine.Vector4 UnityEngine.Vector4::zeroVector Vector4_tA56A37FC5661BCC89C3DDC24BE12BA5BCB6A02C7 ___zeroVector_5; // UnityEngine.Vector4 UnityEngine.Vector4::oneVector Vector4_tA56A37FC5661BCC89C3DDC24BE12BA5BCB6A02C7 ___oneVector_6; // UnityEngine.Vector4 UnityEngine.Vector4::positiveInfinityVector Vector4_tA56A37FC5661BCC89C3DDC24BE12BA5BCB6A02C7 ___positiveInfinityVector_7; // UnityEngine.Vector4 UnityEngine.Vector4::negativeInfinityVector Vector4_tA56A37FC5661BCC89C3DDC24BE12BA5BCB6A02C7 ___negativeInfinityVector_8; public: inline static int32_t get_offset_of_zeroVector_5() { return static_cast<int32_t>(offsetof(Vector4_tA56A37FC5661BCC89C3DDC24BE12BA5BCB6A02C7_StaticFields, ___zeroVector_5)); } inline Vector4_tA56A37FC5661BCC89C3DDC24BE12BA5BCB6A02C7 get_zeroVector_5() const { return ___zeroVector_5; } inline Vector4_tA56A37FC5661BCC89C3DDC24BE12BA5BCB6A02C7 * get_address_of_zeroVector_5() { return &___zeroVector_5; } inline void set_zeroVector_5(Vector4_tA56A37FC5661BCC89C3DDC24BE12BA5BCB6A02C7 value) { ___zeroVector_5 = value; } inline static int32_t get_offset_of_oneVector_6() { return static_cast<int32_t>(offsetof(Vector4_tA56A37FC5661BCC89C3DDC24BE12BA5BCB6A02C7_StaticFields, ___oneVector_6)); } inline Vector4_tA56A37FC5661BCC89C3DDC24BE12BA5BCB6A02C7 get_oneVector_6() const { return ___oneVector_6; } inline Vector4_tA56A37FC5661BCC89C3DDC24BE12BA5BCB6A02C7 * get_address_of_oneVector_6() { return &___oneVector_6; } inline void set_oneVector_6(Vector4_tA56A37FC5661BCC89C3DDC24BE12BA5BCB6A02C7 value) { ___oneVector_6 = value; } inline static int32_t get_offset_of_positiveInfinityVector_7() { return static_cast<int32_t>(offsetof(Vector4_tA56A37FC5661BCC89C3DDC24BE12BA5BCB6A02C7_StaticFields, ___positiveInfinityVector_7)); } inline Vector4_tA56A37FC5661BCC89C3DDC24BE12BA5BCB6A02C7 get_positiveInfinityVector_7() const { return ___positiveInfinityVector_7; } inline Vector4_tA56A37FC5661BCC89C3DDC24BE12BA5BCB6A02C7 * get_address_of_positiveInfinityVector_7() { return &___positiveInfinityVector_7; } inline void set_positiveInfinityVector_7(Vector4_tA56A37FC5661BCC89C3DDC24BE12BA5BCB6A02C7 value) { ___positiveInfinityVector_7 = value; } inline static int32_t get_offset_of_negativeInfinityVector_8() { return static_cast<int32_t>(offsetof(Vector4_tA56A37FC5661BCC89C3DDC24BE12BA5BCB6A02C7_StaticFields, ___negativeInfinityVector_8)); } inline Vector4_tA56A37FC5661BCC89C3DDC24BE12BA5BCB6A02C7 get_negativeInfinityVector_8() const { return ___negativeInfinityVector_8; } inline Vector4_tA56A37FC5661BCC89C3DDC24BE12BA5BCB6A02C7 * get_address_of_negativeInfinityVector_8() { return &___negativeInfinityVector_8; } inline void set_negativeInfinityVector_8(Vector4_tA56A37FC5661BCC89C3DDC24BE12BA5BCB6A02C7 value) { ___negativeInfinityVector_8 = value; } }; // System.Void struct Void_t700C6383A2A510C2CF4DD86DABD5CA9FF70ADAC5 { public: union { struct { }; uint8_t Void_t700C6383A2A510C2CF4DD86DABD5CA9FF70ADAC5__padding[1]; }; public: }; // UnityEngine.Experimental.TerrainAPI.TerrainUtility/TerrainMap/TileCoord struct TileCoord_t491EABF2B90DFB255C8F7624FF5528F2DE2CC901 { public: // System.Int32 UnityEngine.Experimental.TerrainAPI.TerrainUtility/TerrainMap/TileCoord::tileX int32_t ___tileX_0; // System.Int32 UnityEngine.Experimental.TerrainAPI.TerrainUtility/TerrainMap/TileCoord::tileZ int32_t ___tileZ_1; public: inline static int32_t get_offset_of_tileX_0() { return static_cast<int32_t>(offsetof(TileCoord_t491EABF2B90DFB255C8F7624FF5528F2DE2CC901, ___tileX_0)); } inline int32_t get_tileX_0() const { return ___tileX_0; } inline int32_t* get_address_of_tileX_0() { return &___tileX_0; } inline void set_tileX_0(int32_t value) { ___tileX_0 = value; } inline static int32_t get_offset_of_tileZ_1() { return static_cast<int32_t>(offsetof(TileCoord_t491EABF2B90DFB255C8F7624FF5528F2DE2CC901, ___tileZ_1)); } inline int32_t get_tileZ_1() const { return ___tileZ_1; } inline int32_t* get_address_of_tileZ_1() { return &___tileZ_1; } inline void set_tileZ_1(int32_t value) { ___tileZ_1 = value; } }; // System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal/NativeOrStaticEventRegistrationImpl/EventCacheEntry struct EventCacheEntry_t0358C3C074463FD01FA32FC97C9FD1215A9BBF86 { public: // System.Runtime.CompilerServices.ConditionalWeakTable`2<System.Object,System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal/NativeOrStaticEventRegistrationImpl/EventRegistrationTokenListWithCount> System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal/NativeOrStaticEventRegistrationImpl/EventCacheEntry::registrationTable ConditionalWeakTable_2_tDE9E02FF583A5D6707A2CCEF9E15BD2791EA4229 * ___registrationTable_0; // System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal/NativeOrStaticEventRegistrationImpl/TokenListCount System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal/NativeOrStaticEventRegistrationImpl/EventCacheEntry::tokenListCount TokenListCount_t769EA62356D8C37857DCC81DB79A76FA75E319AC * ___tokenListCount_1; public: inline static int32_t get_offset_of_registrationTable_0() { return static_cast<int32_t>(offsetof(EventCacheEntry_t0358C3C074463FD01FA32FC97C9FD1215A9BBF86, ___registrationTable_0)); } inline ConditionalWeakTable_2_tDE9E02FF583A5D6707A2CCEF9E15BD2791EA4229 * get_registrationTable_0() const { return ___registrationTable_0; } inline ConditionalWeakTable_2_tDE9E02FF583A5D6707A2CCEF9E15BD2791EA4229 ** get_address_of_registrationTable_0() { return &___registrationTable_0; } inline void set_registrationTable_0(ConditionalWeakTable_2_tDE9E02FF583A5D6707A2CCEF9E15BD2791EA4229 * value) { ___registrationTable_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___registrationTable_0), (void*)value); } inline static int32_t get_offset_of_tokenListCount_1() { return static_cast<int32_t>(offsetof(EventCacheEntry_t0358C3C074463FD01FA32FC97C9FD1215A9BBF86, ___tokenListCount_1)); } inline TokenListCount_t769EA62356D8C37857DCC81DB79A76FA75E319AC * get_tokenListCount_1() const { return ___tokenListCount_1; } inline TokenListCount_t769EA62356D8C37857DCC81DB79A76FA75E319AC ** get_address_of_tokenListCount_1() { return &___tokenListCount_1; } inline void set_tokenListCount_1(TokenListCount_t769EA62356D8C37857DCC81DB79A76FA75E319AC * value) { ___tokenListCount_1 = value; Il2CppCodeGenWriteBarrier((void**)(&___tokenListCount_1), (void*)value); } }; // Native definition for P/Invoke marshalling of System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal/NativeOrStaticEventRegistrationImpl/EventCacheEntry struct EventCacheEntry_t0358C3C074463FD01FA32FC97C9FD1215A9BBF86_marshaled_pinvoke { ConditionalWeakTable_2_tDE9E02FF583A5D6707A2CCEF9E15BD2791EA4229 * ___registrationTable_0; TokenListCount_t769EA62356D8C37857DCC81DB79A76FA75E319AC * ___tokenListCount_1; }; // Native definition for COM marshalling of System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal/NativeOrStaticEventRegistrationImpl/EventCacheEntry struct EventCacheEntry_t0358C3C074463FD01FA32FC97C9FD1215A9BBF86_marshaled_com { ConditionalWeakTable_2_tDE9E02FF583A5D6707A2CCEF9E15BD2791EA4229 * ___registrationTable_0; TokenListCount_t769EA62356D8C37857DCC81DB79A76FA75E319AC * ___tokenListCount_1; }; // System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal/NativeOrStaticEventRegistrationImpl/EventCacheKey struct EventCacheKey_t12702AEDF54C3DF6DAFF437A04ACE47ACEF1D639 { public: // System.Object System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal/NativeOrStaticEventRegistrationImpl/EventCacheKey::target RuntimeObject * ___target_0; // System.Reflection.MethodInfo System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal/NativeOrStaticEventRegistrationImpl/EventCacheKey::method MethodInfo_t * ___method_1; public: inline static int32_t get_offset_of_target_0() { return static_cast<int32_t>(offsetof(EventCacheKey_t12702AEDF54C3DF6DAFF437A04ACE47ACEF1D639, ___target_0)); } inline RuntimeObject * get_target_0() const { return ___target_0; } inline RuntimeObject ** get_address_of_target_0() { return &___target_0; } inline void set_target_0(RuntimeObject * value) { ___target_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___target_0), (void*)value); } inline static int32_t get_offset_of_method_1() { return static_cast<int32_t>(offsetof(EventCacheKey_t12702AEDF54C3DF6DAFF437A04ACE47ACEF1D639, ___method_1)); } inline MethodInfo_t * get_method_1() const { return ___method_1; } inline MethodInfo_t ** get_address_of_method_1() { return &___method_1; } inline void set_method_1(MethodInfo_t * value) { ___method_1 = value; Il2CppCodeGenWriteBarrier((void**)(&___method_1), (void*)value); } }; // Native definition for P/Invoke marshalling of System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal/NativeOrStaticEventRegistrationImpl/EventCacheKey struct EventCacheKey_t12702AEDF54C3DF6DAFF437A04ACE47ACEF1D639_marshaled_pinvoke { Il2CppIUnknown* ___target_0; MethodInfo_t * ___method_1; }; // Native definition for COM marshalling of System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal/NativeOrStaticEventRegistrationImpl/EventCacheKey struct EventCacheKey_t12702AEDF54C3DF6DAFF437A04ACE47ACEF1D639_marshaled_com { Il2CppIUnknown* ___target_0; MethodInfo_t * ___method_1; }; // System.Collections.Generic.KeyValuePair`2<UnityEngine.Vector3,System.Object> struct KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D { public: // TKey System.Collections.Generic.KeyValuePair`2::key Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___key_0; // TValue System.Collections.Generic.KeyValuePair`2::value RuntimeObject * ___value_1; public: inline static int32_t get_offset_of_key_0() { return static_cast<int32_t>(offsetof(KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D, ___key_0)); } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E get_key_0() const { return ___key_0; } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E * get_address_of_key_0() { return &___key_0; } inline void set_key_0(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E value) { ___key_0 = value; } inline static int32_t get_offset_of_value_1() { return static_cast<int32_t>(offsetof(KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D, ___value_1)); } inline RuntimeObject * get_value_1() const { return ___value_1; } inline RuntimeObject ** get_address_of_value_1() { return &___value_1; } inline void set_value_1(RuntimeObject * value) { ___value_1 = value; Il2CppCodeGenWriteBarrier((void**)(&___value_1), (void*)value); } }; // System.Collections.Generic.KeyValuePair`2<UnityEngine.Experimental.TerrainAPI.TerrainUtility/TerrainMap/TileCoord,System.Object> struct KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 { public: // TKey System.Collections.Generic.KeyValuePair`2::key TileCoord_t491EABF2B90DFB255C8F7624FF5528F2DE2CC901 ___key_0; // TValue System.Collections.Generic.KeyValuePair`2::value RuntimeObject * ___value_1; public: inline static int32_t get_offset_of_key_0() { return static_cast<int32_t>(offsetof(KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551, ___key_0)); } inline TileCoord_t491EABF2B90DFB255C8F7624FF5528F2DE2CC901 get_key_0() const { return ___key_0; } inline TileCoord_t491EABF2B90DFB255C8F7624FF5528F2DE2CC901 * get_address_of_key_0() { return &___key_0; } inline void set_key_0(TileCoord_t491EABF2B90DFB255C8F7624FF5528F2DE2CC901 value) { ___key_0 = value; } inline static int32_t get_offset_of_value_1() { return static_cast<int32_t>(offsetof(KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551, ___value_1)); } inline RuntimeObject * get_value_1() const { return ___value_1; } inline RuntimeObject ** get_address_of_value_1() { return &___value_1; } inline void set_value_1(RuntimeObject * value) { ___value_1 = value; Il2CppCodeGenWriteBarrier((void**)(&___value_1), (void*)value); } }; // System.Collections.Generic.KeyValuePair`2<System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal/NativeOrStaticEventRegistrationImpl/EventCacheKey,System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal/NativeOrStaticEventRegistrationImpl/EventCacheEntry> struct KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 { public: // TKey System.Collections.Generic.KeyValuePair`2::key EventCacheKey_t12702AEDF54C3DF6DAFF437A04ACE47ACEF1D639 ___key_0; // TValue System.Collections.Generic.KeyValuePair`2::value EventCacheEntry_t0358C3C074463FD01FA32FC97C9FD1215A9BBF86 ___value_1; public: inline static int32_t get_offset_of_key_0() { return static_cast<int32_t>(offsetof(KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638, ___key_0)); } inline EventCacheKey_t12702AEDF54C3DF6DAFF437A04ACE47ACEF1D639 get_key_0() const { return ___key_0; } inline EventCacheKey_t12702AEDF54C3DF6DAFF437A04ACE47ACEF1D639 * get_address_of_key_0() { return &___key_0; } inline void set_key_0(EventCacheKey_t12702AEDF54C3DF6DAFF437A04ACE47ACEF1D639 value) { ___key_0 = value; Il2CppCodeGenWriteBarrier((void**)&(((&___key_0))->___target_0), (void*)NULL); #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&(((&___key_0))->___method_1), (void*)NULL); #endif } inline static int32_t get_offset_of_value_1() { return static_cast<int32_t>(offsetof(KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638, ___value_1)); } inline EventCacheEntry_t0358C3C074463FD01FA32FC97C9FD1215A9BBF86 get_value_1() const { return ___value_1; } inline EventCacheEntry_t0358C3C074463FD01FA32FC97C9FD1215A9BBF86 * get_address_of_value_1() { return &___value_1; } inline void set_value_1(EventCacheEntry_t0358C3C074463FD01FA32FC97C9FD1215A9BBF86 value) { ___value_1 = value; Il2CppCodeGenWriteBarrier((void**)&(((&___value_1))->___registrationTable_0), (void*)NULL); #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&(((&___value_1))->___tokenListCount_1), (void*)NULL); #endif } }; // UnityEngine.AnimationCurve struct AnimationCurve_t2D452A14820CEDB83BFF2C911682A4E59001AD03 : public RuntimeObject { public: // System.IntPtr UnityEngine.AnimationCurve::m_Ptr intptr_t ___m_Ptr_0; public: inline static int32_t get_offset_of_m_Ptr_0() { return static_cast<int32_t>(offsetof(AnimationCurve_t2D452A14820CEDB83BFF2C911682A4E59001AD03, ___m_Ptr_0)); } inline intptr_t get_m_Ptr_0() const { return ___m_Ptr_0; } inline intptr_t* get_address_of_m_Ptr_0() { return &___m_Ptr_0; } inline void set_m_Ptr_0(intptr_t value) { ___m_Ptr_0 = value; } }; // Native definition for P/Invoke marshalling of UnityEngine.AnimationCurve struct AnimationCurve_t2D452A14820CEDB83BFF2C911682A4E59001AD03_marshaled_pinvoke { intptr_t ___m_Ptr_0; }; // Native definition for COM marshalling of UnityEngine.AnimationCurve struct AnimationCurve_t2D452A14820CEDB83BFF2C911682A4E59001AD03_marshaled_com { intptr_t ___m_Ptr_0; }; // System.DateTimeOffset struct DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5 { public: // System.DateTime System.DateTimeOffset::m_dateTime DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 ___m_dateTime_2; // System.Int16 System.DateTimeOffset::m_offsetMinutes int16_t ___m_offsetMinutes_3; public: inline static int32_t get_offset_of_m_dateTime_2() { return static_cast<int32_t>(offsetof(DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5, ___m_dateTime_2)); } inline DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 get_m_dateTime_2() const { return ___m_dateTime_2; } inline DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 * get_address_of_m_dateTime_2() { return &___m_dateTime_2; } inline void set_m_dateTime_2(DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 value) { ___m_dateTime_2 = value; } inline static int32_t get_offset_of_m_offsetMinutes_3() { return static_cast<int32_t>(offsetof(DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5, ___m_offsetMinutes_3)); } inline int16_t get_m_offsetMinutes_3() const { return ___m_offsetMinutes_3; } inline int16_t* get_address_of_m_offsetMinutes_3() { return &___m_offsetMinutes_3; } inline void set_m_offsetMinutes_3(int16_t value) { ___m_offsetMinutes_3 = value; } }; struct DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5_StaticFields { public: // System.DateTimeOffset System.DateTimeOffset::MinValue DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5 ___MinValue_0; // System.DateTimeOffset System.DateTimeOffset::MaxValue DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5 ___MaxValue_1; public: inline static int32_t get_offset_of_MinValue_0() { return static_cast<int32_t>(offsetof(DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5_StaticFields, ___MinValue_0)); } inline DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5 get_MinValue_0() const { return ___MinValue_0; } inline DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5 * get_address_of_MinValue_0() { return &___MinValue_0; } inline void set_MinValue_0(DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5 value) { ___MinValue_0 = value; } inline static int32_t get_offset_of_MaxValue_1() { return static_cast<int32_t>(offsetof(DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5_StaticFields, ___MaxValue_1)); } inline DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5 get_MaxValue_1() const { return ___MaxValue_1; } inline DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5 * get_address_of_MaxValue_1() { return &___MaxValue_1; } inline void set_MaxValue_1(DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5 value) { ___MaxValue_1 = value; } }; // System.Delegate struct Delegate_t : public RuntimeObject { public: // System.IntPtr System.Delegate::method_ptr Il2CppMethodPointer ___method_ptr_0; // System.IntPtr System.Delegate::invoke_impl intptr_t ___invoke_impl_1; // System.Object System.Delegate::m_target RuntimeObject * ___m_target_2; // System.IntPtr System.Delegate::method intptr_t ___method_3; // System.IntPtr System.Delegate::delegate_trampoline intptr_t ___delegate_trampoline_4; // System.IntPtr System.Delegate::extra_arg intptr_t ___extra_arg_5; // System.IntPtr System.Delegate::method_code intptr_t ___method_code_6; // System.Reflection.MethodInfo System.Delegate::method_info MethodInfo_t * ___method_info_7; // System.Reflection.MethodInfo System.Delegate::original_method_info MethodInfo_t * ___original_method_info_8; // System.DelegateData System.Delegate::data DelegateData_t17DD30660E330C49381DAA99F934BE75CB11F288 * ___data_9; // System.Boolean System.Delegate::method_is_virtual bool ___method_is_virtual_10; public: inline static int32_t get_offset_of_method_ptr_0() { return static_cast<int32_t>(offsetof(Delegate_t, ___method_ptr_0)); } inline Il2CppMethodPointer get_method_ptr_0() const { return ___method_ptr_0; } inline Il2CppMethodPointer* get_address_of_method_ptr_0() { return &___method_ptr_0; } inline void set_method_ptr_0(Il2CppMethodPointer value) { ___method_ptr_0 = value; } inline static int32_t get_offset_of_invoke_impl_1() { return static_cast<int32_t>(offsetof(Delegate_t, ___invoke_impl_1)); } inline intptr_t get_invoke_impl_1() const { return ___invoke_impl_1; } inline intptr_t* get_address_of_invoke_impl_1() { return &___invoke_impl_1; } inline void set_invoke_impl_1(intptr_t value) { ___invoke_impl_1 = value; } inline static int32_t get_offset_of_m_target_2() { return static_cast<int32_t>(offsetof(Delegate_t, ___m_target_2)); } inline RuntimeObject * get_m_target_2() const { return ___m_target_2; } inline RuntimeObject ** get_address_of_m_target_2() { return &___m_target_2; } inline void set_m_target_2(RuntimeObject * value) { ___m_target_2 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_target_2), (void*)value); } inline static int32_t get_offset_of_method_3() { return static_cast<int32_t>(offsetof(Delegate_t, ___method_3)); } inline intptr_t get_method_3() const { return ___method_3; } inline intptr_t* get_address_of_method_3() { return &___method_3; } inline void set_method_3(intptr_t value) { ___method_3 = value; } inline static int32_t get_offset_of_delegate_trampoline_4() { return static_cast<int32_t>(offsetof(Delegate_t, ___delegate_trampoline_4)); } inline intptr_t get_delegate_trampoline_4() const { return ___delegate_trampoline_4; } inline intptr_t* get_address_of_delegate_trampoline_4() { return &___delegate_trampoline_4; } inline void set_delegate_trampoline_4(intptr_t value) { ___delegate_trampoline_4 = value; } inline static int32_t get_offset_of_extra_arg_5() { return static_cast<int32_t>(offsetof(Delegate_t, ___extra_arg_5)); } inline intptr_t get_extra_arg_5() const { return ___extra_arg_5; } inline intptr_t* get_address_of_extra_arg_5() { return &___extra_arg_5; } inline void set_extra_arg_5(intptr_t value) { ___extra_arg_5 = value; } inline static int32_t get_offset_of_method_code_6() { return static_cast<int32_t>(offsetof(Delegate_t, ___method_code_6)); } inline intptr_t get_method_code_6() const { return ___method_code_6; } inline intptr_t* get_address_of_method_code_6() { return &___method_code_6; } inline void set_method_code_6(intptr_t value) { ___method_code_6 = value; } inline static int32_t get_offset_of_method_info_7() { return static_cast<int32_t>(offsetof(Delegate_t, ___method_info_7)); } inline MethodInfo_t * get_method_info_7() const { return ___method_info_7; } inline MethodInfo_t ** get_address_of_method_info_7() { return &___method_info_7; } inline void set_method_info_7(MethodInfo_t * value) { ___method_info_7 = value; Il2CppCodeGenWriteBarrier((void**)(&___method_info_7), (void*)value); } inline static int32_t get_offset_of_original_method_info_8() { return static_cast<int32_t>(offsetof(Delegate_t, ___original_method_info_8)); } inline MethodInfo_t * get_original_method_info_8() const { return ___original_method_info_8; } inline MethodInfo_t ** get_address_of_original_method_info_8() { return &___original_method_info_8; } inline void set_original_method_info_8(MethodInfo_t * value) { ___original_method_info_8 = value; Il2CppCodeGenWriteBarrier((void**)(&___original_method_info_8), (void*)value); } inline static int32_t get_offset_of_data_9() { return static_cast<int32_t>(offsetof(Delegate_t, ___data_9)); } inline DelegateData_t17DD30660E330C49381DAA99F934BE75CB11F288 * get_data_9() const { return ___data_9; } inline DelegateData_t17DD30660E330C49381DAA99F934BE75CB11F288 ** get_address_of_data_9() { return &___data_9; } inline void set_data_9(DelegateData_t17DD30660E330C49381DAA99F934BE75CB11F288 * value) { ___data_9 = value; Il2CppCodeGenWriteBarrier((void**)(&___data_9), (void*)value); } inline static int32_t get_offset_of_method_is_virtual_10() { return static_cast<int32_t>(offsetof(Delegate_t, ___method_is_virtual_10)); } inline bool get_method_is_virtual_10() const { return ___method_is_virtual_10; } inline bool* get_address_of_method_is_virtual_10() { return &___method_is_virtual_10; } inline void set_method_is_virtual_10(bool value) { ___method_is_virtual_10 = value; } }; // Native definition for P/Invoke marshalling of System.Delegate struct Delegate_t_marshaled_pinvoke { intptr_t ___method_ptr_0; intptr_t ___invoke_impl_1; Il2CppIUnknown* ___m_target_2; intptr_t ___method_3; intptr_t ___delegate_trampoline_4; intptr_t ___extra_arg_5; intptr_t ___method_code_6; MethodInfo_t * ___method_info_7; MethodInfo_t * ___original_method_info_8; DelegateData_t17DD30660E330C49381DAA99F934BE75CB11F288 * ___data_9; int32_t ___method_is_virtual_10; }; // Native definition for COM marshalling of System.Delegate struct Delegate_t_marshaled_com { intptr_t ___method_ptr_0; intptr_t ___invoke_impl_1; Il2CppIUnknown* ___m_target_2; intptr_t ___method_3; intptr_t ___delegate_trampoline_4; intptr_t ___extra_arg_5; intptr_t ___method_code_6; MethodInfo_t * ___method_info_7; MethodInfo_t * ___original_method_info_8; DelegateData_t17DD30660E330C49381DAA99F934BE75CB11F288 * ___data_9; int32_t ___method_is_virtual_10; }; // Microsoft.MixedReality.Toolkit.Boundary.Edge struct Edge_t65F291A222EA5D33E62D23059BCE2874AB93A424 { public: // UnityEngine.Vector2 Microsoft.MixedReality.Toolkit.Boundary.Edge::PointA Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 ___PointA_0; // UnityEngine.Vector2 Microsoft.MixedReality.Toolkit.Boundary.Edge::PointB Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 ___PointB_1; public: inline static int32_t get_offset_of_PointA_0() { return static_cast<int32_t>(offsetof(Edge_t65F291A222EA5D33E62D23059BCE2874AB93A424, ___PointA_0)); } inline Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 get_PointA_0() const { return ___PointA_0; } inline Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 * get_address_of_PointA_0() { return &___PointA_0; } inline void set_PointA_0(Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 value) { ___PointA_0 = value; } inline static int32_t get_offset_of_PointB_1() { return static_cast<int32_t>(offsetof(Edge_t65F291A222EA5D33E62D23059BCE2874AB93A424, ___PointB_1)); } inline Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 get_PointB_1() const { return ___PointB_1; } inline Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 * get_address_of_PointB_1() { return &___PointB_1; } inline void set_PointB_1(Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 value) { ___PointB_1 = value; } }; // System.Exception struct Exception_t : public RuntimeObject { public: // System.String System.Exception::_className String_t* ____className_1; // System.String System.Exception::_message String_t* ____message_2; // System.Collections.IDictionary System.Exception::_data RuntimeObject* ____data_3; // System.Exception System.Exception::_innerException Exception_t * ____innerException_4; // System.String System.Exception::_helpURL String_t* ____helpURL_5; // System.Object System.Exception::_stackTrace RuntimeObject * ____stackTrace_6; // System.String System.Exception::_stackTraceString String_t* ____stackTraceString_7; // System.String System.Exception::_remoteStackTraceString String_t* ____remoteStackTraceString_8; // System.Int32 System.Exception::_remoteStackIndex int32_t ____remoteStackIndex_9; // System.Object System.Exception::_dynamicMethods RuntimeObject * ____dynamicMethods_10; // System.Int32 System.Exception::_HResult int32_t ____HResult_11; // System.String System.Exception::_source String_t* ____source_12; // System.Runtime.Serialization.SafeSerializationManager System.Exception::_safeSerializationManager SafeSerializationManager_tDE44F029589A028F8A3053C5C06153FAB4AAE29F * ____safeSerializationManager_13; // System.Diagnostics.StackTrace[] System.Exception::captured_traces StackTraceU5BU5D_t4AD999C288CB6D1F38A299D12B1598D606588971* ___captured_traces_14; // System.IntPtr[] System.Exception::native_trace_ips IntPtrU5BU5D_t27FC72B0409D75AAF33EC42498E8094E95FEE9A6* ___native_trace_ips_15; public: inline static int32_t get_offset_of__className_1() { return static_cast<int32_t>(offsetof(Exception_t, ____className_1)); } inline String_t* get__className_1() const { return ____className_1; } inline String_t** get_address_of__className_1() { return &____className_1; } inline void set__className_1(String_t* value) { ____className_1 = value; Il2CppCodeGenWriteBarrier((void**)(&____className_1), (void*)value); } inline static int32_t get_offset_of__message_2() { return static_cast<int32_t>(offsetof(Exception_t, ____message_2)); } inline String_t* get__message_2() const { return ____message_2; } inline String_t** get_address_of__message_2() { return &____message_2; } inline void set__message_2(String_t* value) { ____message_2 = value; Il2CppCodeGenWriteBarrier((void**)(&____message_2), (void*)value); } inline static int32_t get_offset_of__data_3() { return static_cast<int32_t>(offsetof(Exception_t, ____data_3)); } inline RuntimeObject* get__data_3() const { return ____data_3; } inline RuntimeObject** get_address_of__data_3() { return &____data_3; } inline void set__data_3(RuntimeObject* value) { ____data_3 = value; Il2CppCodeGenWriteBarrier((void**)(&____data_3), (void*)value); } inline static int32_t get_offset_of__innerException_4() { return static_cast<int32_t>(offsetof(Exception_t, ____innerException_4)); } inline Exception_t * get__innerException_4() const { return ____innerException_4; } inline Exception_t ** get_address_of__innerException_4() { return &____innerException_4; } inline void set__innerException_4(Exception_t * value) { ____innerException_4 = value; Il2CppCodeGenWriteBarrier((void**)(&____innerException_4), (void*)value); } inline static int32_t get_offset_of__helpURL_5() { return static_cast<int32_t>(offsetof(Exception_t, ____helpURL_5)); } inline String_t* get__helpURL_5() const { return ____helpURL_5; } inline String_t** get_address_of__helpURL_5() { return &____helpURL_5; } inline void set__helpURL_5(String_t* value) { ____helpURL_5 = value; Il2CppCodeGenWriteBarrier((void**)(&____helpURL_5), (void*)value); } inline static int32_t get_offset_of__stackTrace_6() { return static_cast<int32_t>(offsetof(Exception_t, ____stackTrace_6)); } inline RuntimeObject * get__stackTrace_6() const { return ____stackTrace_6; } inline RuntimeObject ** get_address_of__stackTrace_6() { return &____stackTrace_6; } inline void set__stackTrace_6(RuntimeObject * value) { ____stackTrace_6 = value; Il2CppCodeGenWriteBarrier((void**)(&____stackTrace_6), (void*)value); } inline static int32_t get_offset_of__stackTraceString_7() { return static_cast<int32_t>(offsetof(Exception_t, ____stackTraceString_7)); } inline String_t* get__stackTraceString_7() const { return ____stackTraceString_7; } inline String_t** get_address_of__stackTraceString_7() { return &____stackTraceString_7; } inline void set__stackTraceString_7(String_t* value) { ____stackTraceString_7 = value; Il2CppCodeGenWriteBarrier((void**)(&____stackTraceString_7), (void*)value); } inline static int32_t get_offset_of__remoteStackTraceString_8() { return static_cast<int32_t>(offsetof(Exception_t, ____remoteStackTraceString_8)); } inline String_t* get__remoteStackTraceString_8() const { return ____remoteStackTraceString_8; } inline String_t** get_address_of__remoteStackTraceString_8() { return &____remoteStackTraceString_8; } inline void set__remoteStackTraceString_8(String_t* value) { ____remoteStackTraceString_8 = value; Il2CppCodeGenWriteBarrier((void**)(&____remoteStackTraceString_8), (void*)value); } inline static int32_t get_offset_of__remoteStackIndex_9() { return static_cast<int32_t>(offsetof(Exception_t, ____remoteStackIndex_9)); } inline int32_t get__remoteStackIndex_9() const { return ____remoteStackIndex_9; } inline int32_t* get_address_of__remoteStackIndex_9() { return &____remoteStackIndex_9; } inline void set__remoteStackIndex_9(int32_t value) { ____remoteStackIndex_9 = value; } inline static int32_t get_offset_of__dynamicMethods_10() { return static_cast<int32_t>(offsetof(Exception_t, ____dynamicMethods_10)); } inline RuntimeObject * get__dynamicMethods_10() const { return ____dynamicMethods_10; } inline RuntimeObject ** get_address_of__dynamicMethods_10() { return &____dynamicMethods_10; } inline void set__dynamicMethods_10(RuntimeObject * value) { ____dynamicMethods_10 = value; Il2CppCodeGenWriteBarrier((void**)(&____dynamicMethods_10), (void*)value); } inline static int32_t get_offset_of__HResult_11() { return static_cast<int32_t>(offsetof(Exception_t, ____HResult_11)); } inline int32_t get__HResult_11() const { return ____HResult_11; } inline int32_t* get_address_of__HResult_11() { return &____HResult_11; } inline void set__HResult_11(int32_t value) { ____HResult_11 = value; } inline static int32_t get_offset_of__source_12() { return static_cast<int32_t>(offsetof(Exception_t, ____source_12)); } inline String_t* get__source_12() const { return ____source_12; } inline String_t** get_address_of__source_12() { return &____source_12; } inline void set__source_12(String_t* value) { ____source_12 = value; Il2CppCodeGenWriteBarrier((void**)(&____source_12), (void*)value); } inline static int32_t get_offset_of__safeSerializationManager_13() { return static_cast<int32_t>(offsetof(Exception_t, ____safeSerializationManager_13)); } inline SafeSerializationManager_tDE44F029589A028F8A3053C5C06153FAB4AAE29F * get__safeSerializationManager_13() const { return ____safeSerializationManager_13; } inline SafeSerializationManager_tDE44F029589A028F8A3053C5C06153FAB4AAE29F ** get_address_of__safeSerializationManager_13() { return &____safeSerializationManager_13; } inline void set__safeSerializationManager_13(SafeSerializationManager_tDE44F029589A028F8A3053C5C06153FAB4AAE29F * value) { ____safeSerializationManager_13 = value; Il2CppCodeGenWriteBarrier((void**)(&____safeSerializationManager_13), (void*)value); } inline static int32_t get_offset_of_captured_traces_14() { return static_cast<int32_t>(offsetof(Exception_t, ___captured_traces_14)); } inline StackTraceU5BU5D_t4AD999C288CB6D1F38A299D12B1598D606588971* get_captured_traces_14() const { return ___captured_traces_14; } inline StackTraceU5BU5D_t4AD999C288CB6D1F38A299D12B1598D606588971** get_address_of_captured_traces_14() { return &___captured_traces_14; } inline void set_captured_traces_14(StackTraceU5BU5D_t4AD999C288CB6D1F38A299D12B1598D606588971* value) { ___captured_traces_14 = value; Il2CppCodeGenWriteBarrier((void**)(&___captured_traces_14), (void*)value); } inline static int32_t get_offset_of_native_trace_ips_15() { return static_cast<int32_t>(offsetof(Exception_t, ___native_trace_ips_15)); } inline IntPtrU5BU5D_t27FC72B0409D75AAF33EC42498E8094E95FEE9A6* get_native_trace_ips_15() const { return ___native_trace_ips_15; } inline IntPtrU5BU5D_t27FC72B0409D75AAF33EC42498E8094E95FEE9A6** get_address_of_native_trace_ips_15() { return &___native_trace_ips_15; } inline void set_native_trace_ips_15(IntPtrU5BU5D_t27FC72B0409D75AAF33EC42498E8094E95FEE9A6* value) { ___native_trace_ips_15 = value; Il2CppCodeGenWriteBarrier((void**)(&___native_trace_ips_15), (void*)value); } }; struct Exception_t_StaticFields { public: // System.Object System.Exception::s_EDILock RuntimeObject * ___s_EDILock_0; public: inline static int32_t get_offset_of_s_EDILock_0() { return static_cast<int32_t>(offsetof(Exception_t_StaticFields, ___s_EDILock_0)); } inline RuntimeObject * get_s_EDILock_0() const { return ___s_EDILock_0; } inline RuntimeObject ** get_address_of_s_EDILock_0() { return &___s_EDILock_0; } inline void set_s_EDILock_0(RuntimeObject * value) { ___s_EDILock_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___s_EDILock_0), (void*)value); } }; // Native definition for P/Invoke marshalling of System.Exception struct Exception_t_marshaled_pinvoke { char* ____className_1; char* ____message_2; RuntimeObject* ____data_3; Exception_t_marshaled_pinvoke* ____innerException_4; char* ____helpURL_5; Il2CppIUnknown* ____stackTrace_6; char* ____stackTraceString_7; char* ____remoteStackTraceString_8; int32_t ____remoteStackIndex_9; Il2CppIUnknown* ____dynamicMethods_10; int32_t ____HResult_11; char* ____source_12; SafeSerializationManager_tDE44F029589A028F8A3053C5C06153FAB4AAE29F * ____safeSerializationManager_13; StackTraceU5BU5D_t4AD999C288CB6D1F38A299D12B1598D606588971* ___captured_traces_14; Il2CppSafeArray/*NONE*/* ___native_trace_ips_15; }; // Native definition for COM marshalling of System.Exception struct Exception_t_marshaled_com { Il2CppChar* ____className_1; Il2CppChar* ____message_2; RuntimeObject* ____data_3; Exception_t_marshaled_com* ____innerException_4; Il2CppChar* ____helpURL_5; Il2CppIUnknown* ____stackTrace_6; Il2CppChar* ____stackTraceString_7; Il2CppChar* ____remoteStackTraceString_8; int32_t ____remoteStackIndex_9; Il2CppIUnknown* ____dynamicMethods_10; int32_t ____HResult_11; Il2CppChar* ____source_12; SafeSerializationManager_tDE44F029589A028F8A3053C5C06153FAB4AAE29F * ____safeSerializationManager_13; StackTraceU5BU5D_t4AD999C288CB6D1F38A299D12B1598D606588971* ___captured_traces_14; Il2CppSafeArray/*NONE*/* ___native_trace_ips_15; }; // System.Int32Enum struct Int32Enum_t9B63F771913F2B6D586F1173B44A41FBE26F6B5C { public: // System.Int32 System.Int32Enum::value__ int32_t ___value___2; public: inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(Int32Enum_t9B63F771913F2B6D586F1173B44A41FBE26F6B5C, ___value___2)); } inline int32_t get_value___2() const { return ___value___2; } inline int32_t* get_address_of_value___2() { return &___value___2; } inline void set_value___2(int32_t value) { ___value___2 = value; } }; // UnityEngine.Object struct Object_tF2F3778131EFF286AF62B7B013A170F95A91571A : public RuntimeObject { public: // System.IntPtr UnityEngine.Object::m_CachedPtr intptr_t ___m_CachedPtr_0; public: inline static int32_t get_offset_of_m_CachedPtr_0() { return static_cast<int32_t>(offsetof(Object_tF2F3778131EFF286AF62B7B013A170F95A91571A, ___m_CachedPtr_0)); } inline intptr_t get_m_CachedPtr_0() const { return ___m_CachedPtr_0; } inline intptr_t* get_address_of_m_CachedPtr_0() { return &___m_CachedPtr_0; } inline void set_m_CachedPtr_0(intptr_t value) { ___m_CachedPtr_0 = value; } }; struct Object_tF2F3778131EFF286AF62B7B013A170F95A91571A_StaticFields { public: // System.Int32 UnityEngine.Object::OffsetOfInstanceIDInCPlusPlusObject int32_t ___OffsetOfInstanceIDInCPlusPlusObject_1; public: inline static int32_t get_offset_of_OffsetOfInstanceIDInCPlusPlusObject_1() { return static_cast<int32_t>(offsetof(Object_tF2F3778131EFF286AF62B7B013A170F95A91571A_StaticFields, ___OffsetOfInstanceIDInCPlusPlusObject_1)); } inline int32_t get_OffsetOfInstanceIDInCPlusPlusObject_1() const { return ___OffsetOfInstanceIDInCPlusPlusObject_1; } inline int32_t* get_address_of_OffsetOfInstanceIDInCPlusPlusObject_1() { return &___OffsetOfInstanceIDInCPlusPlusObject_1; } inline void set_OffsetOfInstanceIDInCPlusPlusObject_1(int32_t value) { ___OffsetOfInstanceIDInCPlusPlusObject_1 = value; } }; // Native definition for P/Invoke marshalling of UnityEngine.Object struct Object_tF2F3778131EFF286AF62B7B013A170F95A91571A_marshaled_pinvoke { intptr_t ___m_CachedPtr_0; }; // Native definition for COM marshalling of UnityEngine.Object struct Object_tF2F3778131EFF286AF62B7B013A170F95A91571A_marshaled_com { intptr_t ___m_CachedPtr_0; }; // UnityEngine.InputSystem.InputBinding/Flags struct Flags_t96BD9B15406A59FB60DE4A1F11DF96FB70426BF5 { public: // System.Int32 UnityEngine.InputSystem.InputBinding/Flags::value__ int32_t ___value___2; public: inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(Flags_t96BD9B15406A59FB60DE4A1F11DF96FB70426BF5, ___value___2)); } inline int32_t get_value___2() const { return ___value___2; } inline int32_t* get_address_of_value___2() { return &___value___2; } inline void set_value___2(int32_t value) { ___value___2 = value; } }; // Microsoft.MixedReality.Toolkit.Utilities.Editor.InspectorField/FieldTypes struct FieldTypes_t8079A8AF46E5C22A815148C1D66C9B7009F4A9F4 { public: // System.Int32 Microsoft.MixedReality.Toolkit.Utilities.Editor.InspectorField/FieldTypes::value__ int32_t ___value___2; public: inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(FieldTypes_t8079A8AF46E5C22A815148C1D66C9B7009F4A9F4, ___value___2)); } inline int32_t get_value___2() const { return ___value___2; } inline int32_t* get_address_of_value___2() { return &___value___2; } inline void set_value___2(int32_t value) { ___value___2 = value; } }; // Microsoft.MixedReality.Toolkit.UI.ObjectManipulator/PointerData struct PointerData_t1A46B734E05BB7BCFC8661476AD384296E0BEF95 { public: // Microsoft.MixedReality.Toolkit.Input.IMixedRealityPointer Microsoft.MixedReality.Toolkit.UI.ObjectManipulator/PointerData::pointer RuntimeObject* ___pointer_0; // UnityEngine.Vector3 Microsoft.MixedReality.Toolkit.UI.ObjectManipulator/PointerData::initialGrabPointInPointer Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___initialGrabPointInPointer_1; public: inline static int32_t get_offset_of_pointer_0() { return static_cast<int32_t>(offsetof(PointerData_t1A46B734E05BB7BCFC8661476AD384296E0BEF95, ___pointer_0)); } inline RuntimeObject* get_pointer_0() const { return ___pointer_0; } inline RuntimeObject** get_address_of_pointer_0() { return &___pointer_0; } inline void set_pointer_0(RuntimeObject* value) { ___pointer_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___pointer_0), (void*)value); } inline static int32_t get_offset_of_initialGrabPointInPointer_1() { return static_cast<int32_t>(offsetof(PointerData_t1A46B734E05BB7BCFC8661476AD384296E0BEF95, ___initialGrabPointInPointer_1)); } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E get_initialGrabPointInPointer_1() const { return ___initialGrabPointInPointer_1; } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E * get_address_of_initialGrabPointInPointer_1() { return &___initialGrabPointInPointer_1; } inline void set_initialGrabPointInPointer_1(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E value) { ___initialGrabPointInPointer_1 = value; } }; // Native definition for P/Invoke marshalling of Microsoft.MixedReality.Toolkit.UI.ObjectManipulator/PointerData struct PointerData_t1A46B734E05BB7BCFC8661476AD384296E0BEF95_marshaled_pinvoke { RuntimeObject* ___pointer_0; Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___initialGrabPointInPointer_1; }; // Native definition for COM marshalling of Microsoft.MixedReality.Toolkit.UI.ObjectManipulator/PointerData struct PointerData_t1A46B734E05BB7BCFC8661476AD384296E0BEF95_marshaled_com { RuntimeObject* ___pointer_0; Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___initialGrabPointInPointer_1; }; // System.Collections.Generic.KeyValuePair`2<System.UInt32,Microsoft.MixedReality.Toolkit.UI.ObjectManipulator/PointerData> struct KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 { public: // TKey System.Collections.Generic.KeyValuePair`2::key uint32_t ___key_0; // TValue System.Collections.Generic.KeyValuePair`2::value PointerData_t1A46B734E05BB7BCFC8661476AD384296E0BEF95 ___value_1; public: inline static int32_t get_offset_of_key_0() { return static_cast<int32_t>(offsetof(KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91, ___key_0)); } inline uint32_t get_key_0() const { return ___key_0; } inline uint32_t* get_address_of_key_0() { return &___key_0; } inline void set_key_0(uint32_t value) { ___key_0 = value; } inline static int32_t get_offset_of_value_1() { return static_cast<int32_t>(offsetof(KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91, ___value_1)); } inline PointerData_t1A46B734E05BB7BCFC8661476AD384296E0BEF95 get_value_1() const { return ___value_1; } inline PointerData_t1A46B734E05BB7BCFC8661476AD384296E0BEF95 * get_address_of_value_1() { return &___value_1; } inline void set_value_1(PointerData_t1A46B734E05BB7BCFC8661476AD384296E0BEF95 value) { ___value_1 = value; Il2CppCodeGenWriteBarrier((void**)&(((&___value_1))->___pointer_0), (void*)NULL); } }; // UnityEngine.InputSystem.InputBinding struct InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD { public: // System.String UnityEngine.InputSystem.InputBinding::m_Name String_t* ___m_Name_2; // System.String UnityEngine.InputSystem.InputBinding::m_Id String_t* ___m_Id_3; // System.String UnityEngine.InputSystem.InputBinding::m_Path String_t* ___m_Path_4; // System.String UnityEngine.InputSystem.InputBinding::m_Interactions String_t* ___m_Interactions_5; // System.String UnityEngine.InputSystem.InputBinding::m_Processors String_t* ___m_Processors_6; // System.String UnityEngine.InputSystem.InputBinding::m_Groups String_t* ___m_Groups_7; // System.String UnityEngine.InputSystem.InputBinding::m_Action String_t* ___m_Action_8; // UnityEngine.InputSystem.InputBinding/Flags UnityEngine.InputSystem.InputBinding::m_Flags int32_t ___m_Flags_9; // System.String UnityEngine.InputSystem.InputBinding::m_OverridePath String_t* ___m_OverridePath_10; // System.String UnityEngine.InputSystem.InputBinding::m_OverrideInteractions String_t* ___m_OverrideInteractions_11; // System.String UnityEngine.InputSystem.InputBinding::m_OverrideProcessors String_t* ___m_OverrideProcessors_12; public: inline static int32_t get_offset_of_m_Name_2() { return static_cast<int32_t>(offsetof(InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD, ___m_Name_2)); } inline String_t* get_m_Name_2() const { return ___m_Name_2; } inline String_t** get_address_of_m_Name_2() { return &___m_Name_2; } inline void set_m_Name_2(String_t* value) { ___m_Name_2 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_Name_2), (void*)value); } inline static int32_t get_offset_of_m_Id_3() { return static_cast<int32_t>(offsetof(InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD, ___m_Id_3)); } inline String_t* get_m_Id_3() const { return ___m_Id_3; } inline String_t** get_address_of_m_Id_3() { return &___m_Id_3; } inline void set_m_Id_3(String_t* value) { ___m_Id_3 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_Id_3), (void*)value); } inline static int32_t get_offset_of_m_Path_4() { return static_cast<int32_t>(offsetof(InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD, ___m_Path_4)); } inline String_t* get_m_Path_4() const { return ___m_Path_4; } inline String_t** get_address_of_m_Path_4() { return &___m_Path_4; } inline void set_m_Path_4(String_t* value) { ___m_Path_4 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_Path_4), (void*)value); } inline static int32_t get_offset_of_m_Interactions_5() { return static_cast<int32_t>(offsetof(InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD, ___m_Interactions_5)); } inline String_t* get_m_Interactions_5() const { return ___m_Interactions_5; } inline String_t** get_address_of_m_Interactions_5() { return &___m_Interactions_5; } inline void set_m_Interactions_5(String_t* value) { ___m_Interactions_5 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_Interactions_5), (void*)value); } inline static int32_t get_offset_of_m_Processors_6() { return static_cast<int32_t>(offsetof(InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD, ___m_Processors_6)); } inline String_t* get_m_Processors_6() const { return ___m_Processors_6; } inline String_t** get_address_of_m_Processors_6() { return &___m_Processors_6; } inline void set_m_Processors_6(String_t* value) { ___m_Processors_6 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_Processors_6), (void*)value); } inline static int32_t get_offset_of_m_Groups_7() { return static_cast<int32_t>(offsetof(InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD, ___m_Groups_7)); } inline String_t* get_m_Groups_7() const { return ___m_Groups_7; } inline String_t** get_address_of_m_Groups_7() { return &___m_Groups_7; } inline void set_m_Groups_7(String_t* value) { ___m_Groups_7 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_Groups_7), (void*)value); } inline static int32_t get_offset_of_m_Action_8() { return static_cast<int32_t>(offsetof(InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD, ___m_Action_8)); } inline String_t* get_m_Action_8() const { return ___m_Action_8; } inline String_t** get_address_of_m_Action_8() { return &___m_Action_8; } inline void set_m_Action_8(String_t* value) { ___m_Action_8 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_Action_8), (void*)value); } inline static int32_t get_offset_of_m_Flags_9() { return static_cast<int32_t>(offsetof(InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD, ___m_Flags_9)); } inline int32_t get_m_Flags_9() const { return ___m_Flags_9; } inline int32_t* get_address_of_m_Flags_9() { return &___m_Flags_9; } inline void set_m_Flags_9(int32_t value) { ___m_Flags_9 = value; } inline static int32_t get_offset_of_m_OverridePath_10() { return static_cast<int32_t>(offsetof(InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD, ___m_OverridePath_10)); } inline String_t* get_m_OverridePath_10() const { return ___m_OverridePath_10; } inline String_t** get_address_of_m_OverridePath_10() { return &___m_OverridePath_10; } inline void set_m_OverridePath_10(String_t* value) { ___m_OverridePath_10 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_OverridePath_10), (void*)value); } inline static int32_t get_offset_of_m_OverrideInteractions_11() { return static_cast<int32_t>(offsetof(InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD, ___m_OverrideInteractions_11)); } inline String_t* get_m_OverrideInteractions_11() const { return ___m_OverrideInteractions_11; } inline String_t** get_address_of_m_OverrideInteractions_11() { return &___m_OverrideInteractions_11; } inline void set_m_OverrideInteractions_11(String_t* value) { ___m_OverrideInteractions_11 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_OverrideInteractions_11), (void*)value); } inline static int32_t get_offset_of_m_OverrideProcessors_12() { return static_cast<int32_t>(offsetof(InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD, ___m_OverrideProcessors_12)); } inline String_t* get_m_OverrideProcessors_12() const { return ___m_OverrideProcessors_12; } inline String_t** get_address_of_m_OverrideProcessors_12() { return &___m_OverrideProcessors_12; } inline void set_m_OverrideProcessors_12(String_t* value) { ___m_OverrideProcessors_12 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_OverrideProcessors_12), (void*)value); } }; // Native definition for P/Invoke marshalling of UnityEngine.InputSystem.InputBinding struct InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD_marshaled_pinvoke { char* ___m_Name_2; char* ___m_Id_3; char* ___m_Path_4; char* ___m_Interactions_5; char* ___m_Processors_6; char* ___m_Groups_7; char* ___m_Action_8; int32_t ___m_Flags_9; char* ___m_OverridePath_10; char* ___m_OverrideInteractions_11; char* ___m_OverrideProcessors_12; }; // Native definition for COM marshalling of UnityEngine.InputSystem.InputBinding struct InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD_marshaled_com { Il2CppChar* ___m_Name_2; Il2CppChar* ___m_Id_3; Il2CppChar* ___m_Path_4; Il2CppChar* ___m_Interactions_5; Il2CppChar* ___m_Processors_6; Il2CppChar* ___m_Groups_7; Il2CppChar* ___m_Action_8; int32_t ___m_Flags_9; Il2CppChar* ___m_OverridePath_10; Il2CppChar* ___m_OverrideInteractions_11; Il2CppChar* ___m_OverrideProcessors_12; }; // System.MulticastDelegate struct MulticastDelegate_t : public Delegate_t { public: // System.Delegate[] System.MulticastDelegate::delegates DelegateU5BU5D_t677D8FE08A5F99E8EE49150B73966CD6E9BF7DB8* ___delegates_11; public: inline static int32_t get_offset_of_delegates_11() { return static_cast<int32_t>(offsetof(MulticastDelegate_t, ___delegates_11)); } inline DelegateU5BU5D_t677D8FE08A5F99E8EE49150B73966CD6E9BF7DB8* get_delegates_11() const { return ___delegates_11; } inline DelegateU5BU5D_t677D8FE08A5F99E8EE49150B73966CD6E9BF7DB8** get_address_of_delegates_11() { return &___delegates_11; } inline void set_delegates_11(DelegateU5BU5D_t677D8FE08A5F99E8EE49150B73966CD6E9BF7DB8* value) { ___delegates_11 = value; Il2CppCodeGenWriteBarrier((void**)(&___delegates_11), (void*)value); } }; // Native definition for P/Invoke marshalling of System.MulticastDelegate struct MulticastDelegate_t_marshaled_pinvoke : public Delegate_t_marshaled_pinvoke { Delegate_t_marshaled_pinvoke** ___delegates_11; }; // Native definition for COM marshalling of System.MulticastDelegate struct MulticastDelegate_t_marshaled_com : public Delegate_t_marshaled_com { Delegate_t_marshaled_com** ___delegates_11; }; // UnityEngine.ScriptableObject struct ScriptableObject_t4361E08CEBF052C650D3666C7CEC37EB31DE116A : public Object_tF2F3778131EFF286AF62B7B013A170F95A91571A { public: public: }; // Native definition for P/Invoke marshalling of UnityEngine.ScriptableObject struct ScriptableObject_t4361E08CEBF052C650D3666C7CEC37EB31DE116A_marshaled_pinvoke : public Object_tF2F3778131EFF286AF62B7B013A170F95A91571A_marshaled_pinvoke { }; // Native definition for COM marshalling of UnityEngine.ScriptableObject struct ScriptableObject_t4361E08CEBF052C650D3666C7CEC37EB31DE116A_marshaled_com : public Object_tF2F3778131EFF286AF62B7B013A170F95A91571A_marshaled_com { }; // System.SystemException struct SystemException_tC551B4D6EE3772B5F32C71EE8C719F4B43ECCC62 : public Exception_t { public: public: }; // System.Comparison`1<System.Collections.Generic.KeyValuePair`2<System.UInt32,Microsoft.MixedReality.Toolkit.UI.ObjectManipulator/PointerData>> struct Comparison_1_t06C6A50C081F0BD8CF06DAF062041DCD491DA182 : public MulticastDelegate_t { public: public: }; // System.Comparison`1<System.Collections.Generic.KeyValuePair`2<System.UInt64,System.Object>> struct Comparison_1_tCB6ED764FE30D86B3E159C8F8284298D9A7A3E84 : public MulticastDelegate_t { public: public: }; // System.Comparison`1<System.Collections.Generic.KeyValuePair`2<UnityEngine.Vector3,System.Object>> struct Comparison_1_t8DE3221733CF5C3D7158DF8B83A8673B982861BC : public MulticastDelegate_t { public: public: }; // System.Comparison`1<System.Collections.Generic.KeyValuePair`2<UnityEngine.Experimental.TerrainAPI.TerrainUtility/TerrainMap/TileCoord,System.Object>> struct Comparison_1_t1D33596C3D38DCFBCA6A4E789D13F0A3022A3D6D : public MulticastDelegate_t { public: public: }; // System.Comparison`1<System.Collections.Generic.KeyValuePair`2<System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal/NativeOrStaticEventRegistrationImpl/EventCacheKey,System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal/NativeOrStaticEventRegistrationImpl/EventCacheEntry>> struct Comparison_1_tA26B7ECAC056A07F4D4B7ED815E45397238FD870 : public MulticastDelegate_t { public: public: }; // System.Comparison`1<Newtonsoft.Json.Utilities.StructMultiKey`2<System.Object,System.Object>> struct Comparison_1_t4416764FBA5772FAEAD3B0E55B7613EDC23DA078 : public MulticastDelegate_t { public: public: }; // System.Comparison`1<UnityEngine.XR.Bone> struct Comparison_1_t4AF545185E36C74EC29C2FC74162A0000184CB09 : public MulticastDelegate_t { public: public: }; // System.Comparison`1<System.Boolean> struct Comparison_1_t361FD570B26BC4AFFF2982AAB3011075A8281A0C : public MulticastDelegate_t { public: public: }; // System.Comparison`1<System.Byte> struct Comparison_1_t16CD2D4AE94F3B3121F8DE407B0D15E192CF6FCC : public MulticastDelegate_t { public: public: }; // System.Comparison`1<System.Char> struct Comparison_1_tA212A4EA4B6B81B0C43E008C21F23961526FB45E : public MulticastDelegate_t { public: public: }; // System.Comparison`1<UnityEngine.Color> struct Comparison_1_tBA50C326C36BBCACB9EEF69FBE15237772260CE5 : public MulticastDelegate_t { public: public: }; // System.Comparison`1<UnityEngine.Color32> struct Comparison_1_tF8CF11AB1893EC96EC5344F386B07B3C598EFFBF : public MulticastDelegate_t { public: public: }; // System.Comparison`1<System.DateTime> struct Comparison_1_tF3A572267B1BF59C885566FB3336ADFA0B6AB836 : public MulticastDelegate_t { public: public: }; // System.Comparison`1<System.DateTimeOffset> struct Comparison_1_t01015852A660A57F66433C7F09FB87DCE9CF0DC8 : public MulticastDelegate_t { public: public: }; // System.Comparison`1<System.Decimal> struct Comparison_1_t7E88D390C030E2806A3AE4117C486DECF61C2955 : public MulticastDelegate_t { public: public: }; // System.Comparison`1<System.Double> struct Comparison_1_t08C078C3FDDD0746272F4DC7A982874AB477F342 : public MulticastDelegate_t { public: public: }; // System.Comparison`1<Microsoft.MixedReality.Toolkit.Boundary.Edge> struct Comparison_1_t32F3C4F35231CD50E34D29CCA49E78C670A0CF17 : public MulticastDelegate_t { public: public: }; // System.Comparison`1<System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken> struct Comparison_1_t808B3C7A1EC3855CB188E50BBE0384CF600AB0D6 : public MulticastDelegate_t { public: public: }; // System.Comparison`1<UnityEngine.TextCore.GlyphRect> struct Comparison_1_t32BE1C0C30DA507C0C8E9C6A556BC25DDBE292FE : public MulticastDelegate_t { public: public: }; // System.Comparison`1<System.Guid> struct Comparison_1_t8F5B6FDF6F80F8F406E8649C7010FA9193CD7AC5 : public MulticastDelegate_t { public: public: }; // System.Comparison`1<UnityEngine.InputSystem.InputBinding> struct Comparison_1_t4F5C215788C9C09FAFB5C10F437A7769956F32A0 : public MulticastDelegate_t { public: public: }; // System.Comparison`1<UnityEngine.XR.InputDevice> struct Comparison_1_t370A7EC51138A7AEA3BF6A503F35F7D093D6CAF1 : public MulticastDelegate_t { public: public: }; // System.Comparison`1<UnityEngine.InputSystem.Layouts.InputDeviceDescription> struct Comparison_1_tC442DCC0ACA3EDEF66ACEF4439730285E1662137 : public MulticastDelegate_t { public: public: }; // System.Comparison`1<UnityEngine.InputSystem.LowLevel.InputEventPtr> struct Comparison_1_t9B89F606416E5AC3B5A40CA3B9554DC9DDFFEA50 : public MulticastDelegate_t { public: public: }; // System.Comparison`1<System.Int16> struct Comparison_1_tB6FC1D7EE4276EE69F8CCDADF94587957DF15C97 : public MulticastDelegate_t { public: public: }; // System.Comparison`1<System.Int32> struct Comparison_1_t3430355DCDD0AF453788265DC88E9288D19C4E9C : public MulticastDelegate_t { public: public: }; // System.Comparison`1<System.Int32Enum> struct Comparison_1_t0507E43E406490DCD6586BD5626BDFF91A5A6440 : public MulticastDelegate_t { public: public: }; // System.Comparison`1<System.Int64> struct Comparison_1_tD92B78AEB5AD82F2DCADCC9A5D0C2BE72D2969DF : public MulticastDelegate_t { public: public: }; // System.Comparison`1<UnityEngine.InputSystem.Utilities.InternedString> struct Comparison_1_t1983F36BDC7F5FA1724FDF6EB03F8980528557E6 : public MulticastDelegate_t { public: public: }; // System.Comparison`1<System.Linq.Expressions.Interpreter.InterpretedFrameInfo> struct Comparison_1_t42880657979A7A068EDB75370336E9CAC5E0F734 : public MulticastDelegate_t { public: public: }; // System.IndexOutOfRangeException struct IndexOutOfRangeException_tDC9EF7A0346CE39E54DA1083F07BE6DFC3CE2EDD : public SystemException_tC551B4D6EE3772B5F32C71EE8C719F4B43ECCC62 { public: public: }; // Microsoft.MixedReality.Toolkit.Utilities.Editor.InspectorPropertySetting struct InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9 { public: // Microsoft.MixedReality.Toolkit.Utilities.Editor.InspectorField/FieldTypes Microsoft.MixedReality.Toolkit.Utilities.Editor.InspectorPropertySetting::Type int32_t ___Type_0; // System.String Microsoft.MixedReality.Toolkit.Utilities.Editor.InspectorPropertySetting::Label String_t* ___Label_1; // System.String Microsoft.MixedReality.Toolkit.Utilities.Editor.InspectorPropertySetting::Name String_t* ___Name_2; // System.String Microsoft.MixedReality.Toolkit.Utilities.Editor.InspectorPropertySetting::Tooltip String_t* ___Tooltip_3; // System.Int32 Microsoft.MixedReality.Toolkit.Utilities.Editor.InspectorPropertySetting::IntValue int32_t ___IntValue_4; // System.String Microsoft.MixedReality.Toolkit.Utilities.Editor.InspectorPropertySetting::StringValue String_t* ___StringValue_5; // System.Single Microsoft.MixedReality.Toolkit.Utilities.Editor.InspectorPropertySetting::FloatValue float ___FloatValue_6; // System.Boolean Microsoft.MixedReality.Toolkit.Utilities.Editor.InspectorPropertySetting::BoolValue bool ___BoolValue_7; // UnityEngine.GameObject Microsoft.MixedReality.Toolkit.Utilities.Editor.InspectorPropertySetting::GameObjectValue GameObject_tC000A2E1A7CF1E10FD7BA08863287C072207C319 * ___GameObjectValue_8; // UnityEngine.ScriptableObject Microsoft.MixedReality.Toolkit.Utilities.Editor.InspectorPropertySetting::ScriptableObjectValue ScriptableObject_t4361E08CEBF052C650D3666C7CEC37EB31DE116A * ___ScriptableObjectValue_9; // UnityEngine.Object Microsoft.MixedReality.Toolkit.Utilities.Editor.InspectorPropertySetting::ObjectValue Object_tF2F3778131EFF286AF62B7B013A170F95A91571A * ___ObjectValue_10; // UnityEngine.Material Microsoft.MixedReality.Toolkit.Utilities.Editor.InspectorPropertySetting::MaterialValue Material_t8927C00353A72755313F046D0CE85178AE8218EE * ___MaterialValue_11; // UnityEngine.Texture Microsoft.MixedReality.Toolkit.Utilities.Editor.InspectorPropertySetting::TextureValue Texture_t9FE0218A1EEDF266E8C85879FE123265CACC95AE * ___TextureValue_12; // UnityEngine.Color Microsoft.MixedReality.Toolkit.Utilities.Editor.InspectorPropertySetting::ColorValue Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 ___ColorValue_13; // UnityEngine.Vector2 Microsoft.MixedReality.Toolkit.Utilities.Editor.InspectorPropertySetting::Vector2Value Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 ___Vector2Value_14; // UnityEngine.Vector3 Microsoft.MixedReality.Toolkit.Utilities.Editor.InspectorPropertySetting::Vector3Value Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___Vector3Value_15; // UnityEngine.Vector4 Microsoft.MixedReality.Toolkit.Utilities.Editor.InspectorPropertySetting::Vector4Value Vector4_tA56A37FC5661BCC89C3DDC24BE12BA5BCB6A02C7 ___Vector4Value_16; // UnityEngine.AnimationCurve Microsoft.MixedReality.Toolkit.Utilities.Editor.InspectorPropertySetting::CurveValue AnimationCurve_t2D452A14820CEDB83BFF2C911682A4E59001AD03 * ___CurveValue_17; // UnityEngine.AudioClip Microsoft.MixedReality.Toolkit.Utilities.Editor.InspectorPropertySetting::AudioClipValue AudioClip_t16D2E573E7CC1C5118D8EE0F0692D46866A1C0EE * ___AudioClipValue_18; // UnityEngine.Quaternion Microsoft.MixedReality.Toolkit.Utilities.Editor.InspectorPropertySetting::QuaternionValue Quaternion_t6D28618CF65156D4A0AD747370DDFD0C514A31B4 ___QuaternionValue_19; // UnityEngine.Events.UnityEvent Microsoft.MixedReality.Toolkit.Utilities.Editor.InspectorPropertySetting::EventValue UnityEvent_tA0EA9BC49FD7D5185E7A238EF2E0E6F5D0EE27F4 * ___EventValue_20; // System.String[] Microsoft.MixedReality.Toolkit.Utilities.Editor.InspectorPropertySetting::Options StringU5BU5D_tACEBFEDE350025B554CD507C9AE8FFE49359549A* ___Options_21; public: inline static int32_t get_offset_of_Type_0() { return static_cast<int32_t>(offsetof(InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9, ___Type_0)); } inline int32_t get_Type_0() const { return ___Type_0; } inline int32_t* get_address_of_Type_0() { return &___Type_0; } inline void set_Type_0(int32_t value) { ___Type_0 = value; } inline static int32_t get_offset_of_Label_1() { return static_cast<int32_t>(offsetof(InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9, ___Label_1)); } inline String_t* get_Label_1() const { return ___Label_1; } inline String_t** get_address_of_Label_1() { return &___Label_1; } inline void set_Label_1(String_t* value) { ___Label_1 = value; Il2CppCodeGenWriteBarrier((void**)(&___Label_1), (void*)value); } inline static int32_t get_offset_of_Name_2() { return static_cast<int32_t>(offsetof(InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9, ___Name_2)); } inline String_t* get_Name_2() const { return ___Name_2; } inline String_t** get_address_of_Name_2() { return &___Name_2; } inline void set_Name_2(String_t* value) { ___Name_2 = value; Il2CppCodeGenWriteBarrier((void**)(&___Name_2), (void*)value); } inline static int32_t get_offset_of_Tooltip_3() { return static_cast<int32_t>(offsetof(InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9, ___Tooltip_3)); } inline String_t* get_Tooltip_3() const { return ___Tooltip_3; } inline String_t** get_address_of_Tooltip_3() { return &___Tooltip_3; } inline void set_Tooltip_3(String_t* value) { ___Tooltip_3 = value; Il2CppCodeGenWriteBarrier((void**)(&___Tooltip_3), (void*)value); } inline static int32_t get_offset_of_IntValue_4() { return static_cast<int32_t>(offsetof(InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9, ___IntValue_4)); } inline int32_t get_IntValue_4() const { return ___IntValue_4; } inline int32_t* get_address_of_IntValue_4() { return &___IntValue_4; } inline void set_IntValue_4(int32_t value) { ___IntValue_4 = value; } inline static int32_t get_offset_of_StringValue_5() { return static_cast<int32_t>(offsetof(InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9, ___StringValue_5)); } inline String_t* get_StringValue_5() const { return ___StringValue_5; } inline String_t** get_address_of_StringValue_5() { return &___StringValue_5; } inline void set_StringValue_5(String_t* value) { ___StringValue_5 = value; Il2CppCodeGenWriteBarrier((void**)(&___StringValue_5), (void*)value); } inline static int32_t get_offset_of_FloatValue_6() { return static_cast<int32_t>(offsetof(InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9, ___FloatValue_6)); } inline float get_FloatValue_6() const { return ___FloatValue_6; } inline float* get_address_of_FloatValue_6() { return &___FloatValue_6; } inline void set_FloatValue_6(float value) { ___FloatValue_6 = value; } inline static int32_t get_offset_of_BoolValue_7() { return static_cast<int32_t>(offsetof(InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9, ___BoolValue_7)); } inline bool get_BoolValue_7() const { return ___BoolValue_7; } inline bool* get_address_of_BoolValue_7() { return &___BoolValue_7; } inline void set_BoolValue_7(bool value) { ___BoolValue_7 = value; } inline static int32_t get_offset_of_GameObjectValue_8() { return static_cast<int32_t>(offsetof(InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9, ___GameObjectValue_8)); } inline GameObject_tC000A2E1A7CF1E10FD7BA08863287C072207C319 * get_GameObjectValue_8() const { return ___GameObjectValue_8; } inline GameObject_tC000A2E1A7CF1E10FD7BA08863287C072207C319 ** get_address_of_GameObjectValue_8() { return &___GameObjectValue_8; } inline void set_GameObjectValue_8(GameObject_tC000A2E1A7CF1E10FD7BA08863287C072207C319 * value) { ___GameObjectValue_8 = value; Il2CppCodeGenWriteBarrier((void**)(&___GameObjectValue_8), (void*)value); } inline static int32_t get_offset_of_ScriptableObjectValue_9() { return static_cast<int32_t>(offsetof(InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9, ___ScriptableObjectValue_9)); } inline ScriptableObject_t4361E08CEBF052C650D3666C7CEC37EB31DE116A * get_ScriptableObjectValue_9() const { return ___ScriptableObjectValue_9; } inline ScriptableObject_t4361E08CEBF052C650D3666C7CEC37EB31DE116A ** get_address_of_ScriptableObjectValue_9() { return &___ScriptableObjectValue_9; } inline void set_ScriptableObjectValue_9(ScriptableObject_t4361E08CEBF052C650D3666C7CEC37EB31DE116A * value) { ___ScriptableObjectValue_9 = value; Il2CppCodeGenWriteBarrier((void**)(&___ScriptableObjectValue_9), (void*)value); } inline static int32_t get_offset_of_ObjectValue_10() { return static_cast<int32_t>(offsetof(InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9, ___ObjectValue_10)); } inline Object_tF2F3778131EFF286AF62B7B013A170F95A91571A * get_ObjectValue_10() const { return ___ObjectValue_10; } inline Object_tF2F3778131EFF286AF62B7B013A170F95A91571A ** get_address_of_ObjectValue_10() { return &___ObjectValue_10; } inline void set_ObjectValue_10(Object_tF2F3778131EFF286AF62B7B013A170F95A91571A * value) { ___ObjectValue_10 = value; Il2CppCodeGenWriteBarrier((void**)(&___ObjectValue_10), (void*)value); } inline static int32_t get_offset_of_MaterialValue_11() { return static_cast<int32_t>(offsetof(InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9, ___MaterialValue_11)); } inline Material_t8927C00353A72755313F046D0CE85178AE8218EE * get_MaterialValue_11() const { return ___MaterialValue_11; } inline Material_t8927C00353A72755313F046D0CE85178AE8218EE ** get_address_of_MaterialValue_11() { return &___MaterialValue_11; } inline void set_MaterialValue_11(Material_t8927C00353A72755313F046D0CE85178AE8218EE * value) { ___MaterialValue_11 = value; Il2CppCodeGenWriteBarrier((void**)(&___MaterialValue_11), (void*)value); } inline static int32_t get_offset_of_TextureValue_12() { return static_cast<int32_t>(offsetof(InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9, ___TextureValue_12)); } inline Texture_t9FE0218A1EEDF266E8C85879FE123265CACC95AE * get_TextureValue_12() const { return ___TextureValue_12; } inline Texture_t9FE0218A1EEDF266E8C85879FE123265CACC95AE ** get_address_of_TextureValue_12() { return &___TextureValue_12; } inline void set_TextureValue_12(Texture_t9FE0218A1EEDF266E8C85879FE123265CACC95AE * value) { ___TextureValue_12 = value; Il2CppCodeGenWriteBarrier((void**)(&___TextureValue_12), (void*)value); } inline static int32_t get_offset_of_ColorValue_13() { return static_cast<int32_t>(offsetof(InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9, ___ColorValue_13)); } inline Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 get_ColorValue_13() const { return ___ColorValue_13; } inline Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 * get_address_of_ColorValue_13() { return &___ColorValue_13; } inline void set_ColorValue_13(Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 value) { ___ColorValue_13 = value; } inline static int32_t get_offset_of_Vector2Value_14() { return static_cast<int32_t>(offsetof(InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9, ___Vector2Value_14)); } inline Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 get_Vector2Value_14() const { return ___Vector2Value_14; } inline Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 * get_address_of_Vector2Value_14() { return &___Vector2Value_14; } inline void set_Vector2Value_14(Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 value) { ___Vector2Value_14 = value; } inline static int32_t get_offset_of_Vector3Value_15() { return static_cast<int32_t>(offsetof(InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9, ___Vector3Value_15)); } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E get_Vector3Value_15() const { return ___Vector3Value_15; } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E * get_address_of_Vector3Value_15() { return &___Vector3Value_15; } inline void set_Vector3Value_15(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E value) { ___Vector3Value_15 = value; } inline static int32_t get_offset_of_Vector4Value_16() { return static_cast<int32_t>(offsetof(InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9, ___Vector4Value_16)); } inline Vector4_tA56A37FC5661BCC89C3DDC24BE12BA5BCB6A02C7 get_Vector4Value_16() const { return ___Vector4Value_16; } inline Vector4_tA56A37FC5661BCC89C3DDC24BE12BA5BCB6A02C7 * get_address_of_Vector4Value_16() { return &___Vector4Value_16; } inline void set_Vector4Value_16(Vector4_tA56A37FC5661BCC89C3DDC24BE12BA5BCB6A02C7 value) { ___Vector4Value_16 = value; } inline static int32_t get_offset_of_CurveValue_17() { return static_cast<int32_t>(offsetof(InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9, ___CurveValue_17)); } inline AnimationCurve_t2D452A14820CEDB83BFF2C911682A4E59001AD03 * get_CurveValue_17() const { return ___CurveValue_17; } inline AnimationCurve_t2D452A14820CEDB83BFF2C911682A4E59001AD03 ** get_address_of_CurveValue_17() { return &___CurveValue_17; } inline void set_CurveValue_17(AnimationCurve_t2D452A14820CEDB83BFF2C911682A4E59001AD03 * value) { ___CurveValue_17 = value; Il2CppCodeGenWriteBarrier((void**)(&___CurveValue_17), (void*)value); } inline static int32_t get_offset_of_AudioClipValue_18() { return static_cast<int32_t>(offsetof(InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9, ___AudioClipValue_18)); } inline AudioClip_t16D2E573E7CC1C5118D8EE0F0692D46866A1C0EE * get_AudioClipValue_18() const { return ___AudioClipValue_18; } inline AudioClip_t16D2E573E7CC1C5118D8EE0F0692D46866A1C0EE ** get_address_of_AudioClipValue_18() { return &___AudioClipValue_18; } inline void set_AudioClipValue_18(AudioClip_t16D2E573E7CC1C5118D8EE0F0692D46866A1C0EE * value) { ___AudioClipValue_18 = value; Il2CppCodeGenWriteBarrier((void**)(&___AudioClipValue_18), (void*)value); } inline static int32_t get_offset_of_QuaternionValue_19() { return static_cast<int32_t>(offsetof(InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9, ___QuaternionValue_19)); } inline Quaternion_t6D28618CF65156D4A0AD747370DDFD0C514A31B4 get_QuaternionValue_19() const { return ___QuaternionValue_19; } inline Quaternion_t6D28618CF65156D4A0AD747370DDFD0C514A31B4 * get_address_of_QuaternionValue_19() { return &___QuaternionValue_19; } inline void set_QuaternionValue_19(Quaternion_t6D28618CF65156D4A0AD747370DDFD0C514A31B4 value) { ___QuaternionValue_19 = value; } inline static int32_t get_offset_of_EventValue_20() { return static_cast<int32_t>(offsetof(InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9, ___EventValue_20)); } inline UnityEvent_tA0EA9BC49FD7D5185E7A238EF2E0E6F5D0EE27F4 * get_EventValue_20() const { return ___EventValue_20; } inline UnityEvent_tA0EA9BC49FD7D5185E7A238EF2E0E6F5D0EE27F4 ** get_address_of_EventValue_20() { return &___EventValue_20; } inline void set_EventValue_20(UnityEvent_tA0EA9BC49FD7D5185E7A238EF2E0E6F5D0EE27F4 * value) { ___EventValue_20 = value; Il2CppCodeGenWriteBarrier((void**)(&___EventValue_20), (void*)value); } inline static int32_t get_offset_of_Options_21() { return static_cast<int32_t>(offsetof(InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9, ___Options_21)); } inline StringU5BU5D_tACEBFEDE350025B554CD507C9AE8FFE49359549A* get_Options_21() const { return ___Options_21; } inline StringU5BU5D_tACEBFEDE350025B554CD507C9AE8FFE49359549A** get_address_of_Options_21() { return &___Options_21; } inline void set_Options_21(StringU5BU5D_tACEBFEDE350025B554CD507C9AE8FFE49359549A* value) { ___Options_21 = value; Il2CppCodeGenWriteBarrier((void**)(&___Options_21), (void*)value); } }; // Native definition for P/Invoke marshalling of Microsoft.MixedReality.Toolkit.Utilities.Editor.InspectorPropertySetting struct InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9_marshaled_pinvoke { int32_t ___Type_0; char* ___Label_1; char* ___Name_2; char* ___Tooltip_3; int32_t ___IntValue_4; char* ___StringValue_5; float ___FloatValue_6; int32_t ___BoolValue_7; GameObject_tC000A2E1A7CF1E10FD7BA08863287C072207C319 * ___GameObjectValue_8; ScriptableObject_t4361E08CEBF052C650D3666C7CEC37EB31DE116A_marshaled_pinvoke ___ScriptableObjectValue_9; Object_tF2F3778131EFF286AF62B7B013A170F95A91571A_marshaled_pinvoke ___ObjectValue_10; Material_t8927C00353A72755313F046D0CE85178AE8218EE * ___MaterialValue_11; Texture_t9FE0218A1EEDF266E8C85879FE123265CACC95AE * ___TextureValue_12; Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 ___ColorValue_13; Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 ___Vector2Value_14; Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___Vector3Value_15; Vector4_tA56A37FC5661BCC89C3DDC24BE12BA5BCB6A02C7 ___Vector4Value_16; AnimationCurve_t2D452A14820CEDB83BFF2C911682A4E59001AD03_marshaled_pinvoke ___CurveValue_17; AudioClip_t16D2E573E7CC1C5118D8EE0F0692D46866A1C0EE * ___AudioClipValue_18; Quaternion_t6D28618CF65156D4A0AD747370DDFD0C514A31B4 ___QuaternionValue_19; UnityEvent_tA0EA9BC49FD7D5185E7A238EF2E0E6F5D0EE27F4 * ___EventValue_20; char** ___Options_21; }; // Native definition for COM marshalling of Microsoft.MixedReality.Toolkit.Utilities.Editor.InspectorPropertySetting struct InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9_marshaled_com { int32_t ___Type_0; Il2CppChar* ___Label_1; Il2CppChar* ___Name_2; Il2CppChar* ___Tooltip_3; int32_t ___IntValue_4; Il2CppChar* ___StringValue_5; float ___FloatValue_6; int32_t ___BoolValue_7; GameObject_tC000A2E1A7CF1E10FD7BA08863287C072207C319 * ___GameObjectValue_8; ScriptableObject_t4361E08CEBF052C650D3666C7CEC37EB31DE116A_marshaled_com* ___ScriptableObjectValue_9; Object_tF2F3778131EFF286AF62B7B013A170F95A91571A_marshaled_com* ___ObjectValue_10; Material_t8927C00353A72755313F046D0CE85178AE8218EE * ___MaterialValue_11; Texture_t9FE0218A1EEDF266E8C85879FE123265CACC95AE * ___TextureValue_12; Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 ___ColorValue_13; Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 ___Vector2Value_14; Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___Vector3Value_15; Vector4_tA56A37FC5661BCC89C3DDC24BE12BA5BCB6A02C7 ___Vector4Value_16; AnimationCurve_t2D452A14820CEDB83BFF2C911682A4E59001AD03_marshaled_com* ___CurveValue_17; AudioClip_t16D2E573E7CC1C5118D8EE0F0692D46866A1C0EE * ___AudioClipValue_18; Quaternion_t6D28618CF65156D4A0AD747370DDFD0C514A31B4 ___QuaternionValue_19; UnityEvent_tA0EA9BC49FD7D5185E7A238EF2E0E6F5D0EE27F4 * ___EventValue_20; Il2CppChar** ___Options_21; }; // System.InvalidOperationException struct InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB : public SystemException_tC551B4D6EE3772B5F32C71EE8C719F4B43ECCC62 { public: public: }; // System.Comparison`1<Microsoft.MixedReality.Toolkit.Utilities.Editor.InspectorPropertySetting> struct Comparison_1_tD096E002D2CC9ACAC9904324E4B869286880C0D1 : public MulticastDelegate_t { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif // System.Collections.Generic.KeyValuePair`2<System.UInt32,Microsoft.MixedReality.Toolkit.UI.ObjectManipulator/PointerData>[] struct KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064 : public RuntimeArray { public: ALIGN_FIELD (8) KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 m_Items[1]; public: inline KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 GetAt(il2cpp_array_size_t index) const { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); return m_Items[index]; } inline KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 * GetAddressAt(il2cpp_array_size_t index) { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); return m_Items + index; } inline void SetAt(il2cpp_array_size_t index, KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 value) { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); m_Items[index] = value; Il2CppCodeGenWriteBarrier((void**)&((&((m_Items + index)->___value_1))->___pointer_0), (void*)NULL); } inline KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 GetAtUnchecked(il2cpp_array_size_t index) const { return m_Items[index]; } inline KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 * GetAddressAtUnchecked(il2cpp_array_size_t index) { return m_Items + index; } inline void SetAtUnchecked(il2cpp_array_size_t index, KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 value) { m_Items[index] = value; Il2CppCodeGenWriteBarrier((void**)&((&((m_Items + index)->___value_1))->___pointer_0), (void*)NULL); } }; // System.Collections.Generic.KeyValuePair`2<System.UInt64,System.Object>[] struct KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B : public RuntimeArray { public: ALIGN_FIELD (8) KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 m_Items[1]; public: inline KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 GetAt(il2cpp_array_size_t index) const { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); return m_Items[index]; } inline KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 * GetAddressAt(il2cpp_array_size_t index) { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); return m_Items + index; } inline void SetAt(il2cpp_array_size_t index, KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 value) { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); m_Items[index] = value; Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___value_1), (void*)NULL); } inline KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 GetAtUnchecked(il2cpp_array_size_t index) const { return m_Items[index]; } inline KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 * GetAddressAtUnchecked(il2cpp_array_size_t index) { return m_Items + index; } inline void SetAtUnchecked(il2cpp_array_size_t index, KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 value) { m_Items[index] = value; Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___value_1), (void*)NULL); } }; // System.Collections.Generic.KeyValuePair`2<UnityEngine.Vector3,System.Object>[] struct KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0 : public RuntimeArray { public: ALIGN_FIELD (8) KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D m_Items[1]; public: inline KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D GetAt(il2cpp_array_size_t index) const { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); return m_Items[index]; } inline KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D * GetAddressAt(il2cpp_array_size_t index) { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); return m_Items + index; } inline void SetAt(il2cpp_array_size_t index, KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D value) { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); m_Items[index] = value; Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___value_1), (void*)NULL); } inline KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D GetAtUnchecked(il2cpp_array_size_t index) const { return m_Items[index]; } inline KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D * GetAddressAtUnchecked(il2cpp_array_size_t index) { return m_Items + index; } inline void SetAtUnchecked(il2cpp_array_size_t index, KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D value) { m_Items[index] = value; Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___value_1), (void*)NULL); } }; // System.Collections.Generic.KeyValuePair`2<UnityEngine.Experimental.TerrainAPI.TerrainUtility/TerrainMap/TileCoord,System.Object>[] struct KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C : public RuntimeArray { public: ALIGN_FIELD (8) KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 m_Items[1]; public: inline KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 GetAt(il2cpp_array_size_t index) const { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); return m_Items[index]; } inline KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 * GetAddressAt(il2cpp_array_size_t index) { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); return m_Items + index; } inline void SetAt(il2cpp_array_size_t index, KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 value) { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); m_Items[index] = value; Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___value_1), (void*)NULL); } inline KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 GetAtUnchecked(il2cpp_array_size_t index) const { return m_Items[index]; } inline KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 * GetAddressAtUnchecked(il2cpp_array_size_t index) { return m_Items + index; } inline void SetAtUnchecked(il2cpp_array_size_t index, KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 value) { m_Items[index] = value; Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___value_1), (void*)NULL); } }; // System.Collections.Generic.KeyValuePair`2<System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal/NativeOrStaticEventRegistrationImpl/EventCacheKey,System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal/NativeOrStaticEventRegistrationImpl/EventCacheEntry>[] struct KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102 : public RuntimeArray { public: ALIGN_FIELD (8) KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 m_Items[1]; public: inline KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 GetAt(il2cpp_array_size_t index) const { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); return m_Items[index]; } inline KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 * GetAddressAt(il2cpp_array_size_t index) { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); return m_Items + index; } inline void SetAt(il2cpp_array_size_t index, KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 value) { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); m_Items[index] = value; Il2CppCodeGenWriteBarrier((void**)&((&((m_Items + index)->___key_0))->___target_0), (void*)NULL); #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&((&((m_Items + index)->___key_0))->___method_1), (void*)NULL); #endif #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&((&((m_Items + index)->___value_1))->___registrationTable_0), (void*)NULL); #endif #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&((&((m_Items + index)->___value_1))->___tokenListCount_1), (void*)NULL); #endif } inline KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 GetAtUnchecked(il2cpp_array_size_t index) const { return m_Items[index]; } inline KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 * GetAddressAtUnchecked(il2cpp_array_size_t index) { return m_Items + index; } inline void SetAtUnchecked(il2cpp_array_size_t index, KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 value) { m_Items[index] = value; Il2CppCodeGenWriteBarrier((void**)&((&((m_Items + index)->___key_0))->___target_0), (void*)NULL); #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&((&((m_Items + index)->___key_0))->___method_1), (void*)NULL); #endif #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&((&((m_Items + index)->___value_1))->___registrationTable_0), (void*)NULL); #endif #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&((&((m_Items + index)->___value_1))->___tokenListCount_1), (void*)NULL); #endif } }; // Newtonsoft.Json.Utilities.StructMultiKey`2<System.Object,System.Object>[] struct StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65 : public RuntimeArray { public: ALIGN_FIELD (8) StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E m_Items[1]; public: inline StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E GetAt(il2cpp_array_size_t index) const { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); return m_Items[index]; } inline StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E * GetAddressAt(il2cpp_array_size_t index) { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); return m_Items + index; } inline void SetAt(il2cpp_array_size_t index, StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E value) { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); m_Items[index] = value; Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___Value1_0), (void*)NULL); #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___Value2_1), (void*)NULL); #endif } inline StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E GetAtUnchecked(il2cpp_array_size_t index) const { return m_Items[index]; } inline StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E * GetAddressAtUnchecked(il2cpp_array_size_t index) { return m_Items + index; } inline void SetAtUnchecked(il2cpp_array_size_t index, StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E value) { m_Items[index] = value; Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___Value1_0), (void*)NULL); #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___Value2_1), (void*)NULL); #endif } }; // UnityEngine.XR.Bone[] struct BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6 : public RuntimeArray { public: ALIGN_FIELD (8) Bone_t8EDF2FA2139528015195AF2EA866A28947C3F070 m_Items[1]; public: inline Bone_t8EDF2FA2139528015195AF2EA866A28947C3F070 GetAt(il2cpp_array_size_t index) const { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); return m_Items[index]; } inline Bone_t8EDF2FA2139528015195AF2EA866A28947C3F070 * GetAddressAt(il2cpp_array_size_t index) { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); return m_Items + index; } inline void SetAt(il2cpp_array_size_t index, Bone_t8EDF2FA2139528015195AF2EA866A28947C3F070 value) { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); m_Items[index] = value; } inline Bone_t8EDF2FA2139528015195AF2EA866A28947C3F070 GetAtUnchecked(il2cpp_array_size_t index) const { return m_Items[index]; } inline Bone_t8EDF2FA2139528015195AF2EA866A28947C3F070 * GetAddressAtUnchecked(il2cpp_array_size_t index) { return m_Items + index; } inline void SetAtUnchecked(il2cpp_array_size_t index, Bone_t8EDF2FA2139528015195AF2EA866A28947C3F070 value) { m_Items[index] = value; } }; // System.Boolean[] struct BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C : public RuntimeArray { public: ALIGN_FIELD (8) bool m_Items[1]; public: inline bool GetAt(il2cpp_array_size_t index) const { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); return m_Items[index]; } inline bool* GetAddressAt(il2cpp_array_size_t index) { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); return m_Items + index; } inline void SetAt(il2cpp_array_size_t index, bool value) { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); m_Items[index] = value; } inline bool GetAtUnchecked(il2cpp_array_size_t index) const { return m_Items[index]; } inline bool* GetAddressAtUnchecked(il2cpp_array_size_t index) { return m_Items + index; } inline void SetAtUnchecked(il2cpp_array_size_t index, bool value) { m_Items[index] = value; } }; // System.Byte[] struct ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726 : public RuntimeArray { public: ALIGN_FIELD (8) uint8_t m_Items[1]; public: inline uint8_t GetAt(il2cpp_array_size_t index) const { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); return m_Items[index]; } inline uint8_t* GetAddressAt(il2cpp_array_size_t index) { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); return m_Items + index; } inline void SetAt(il2cpp_array_size_t index, uint8_t value) { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); m_Items[index] = value; } inline uint8_t GetAtUnchecked(il2cpp_array_size_t index) const { return m_Items[index]; } inline uint8_t* GetAddressAtUnchecked(il2cpp_array_size_t index) { return m_Items + index; } inline void SetAtUnchecked(il2cpp_array_size_t index, uint8_t value) { m_Items[index] = value; } }; // System.Char[] struct CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34 : public RuntimeArray { public: ALIGN_FIELD (8) Il2CppChar m_Items[1]; public: inline Il2CppChar GetAt(il2cpp_array_size_t index) const { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); return m_Items[index]; } inline Il2CppChar* GetAddressAt(il2cpp_array_size_t index) { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); return m_Items + index; } inline void SetAt(il2cpp_array_size_t index, Il2CppChar value) { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); m_Items[index] = value; } inline Il2CppChar GetAtUnchecked(il2cpp_array_size_t index) const { return m_Items[index]; } inline Il2CppChar* GetAddressAtUnchecked(il2cpp_array_size_t index) { return m_Items + index; } inline void SetAtUnchecked(il2cpp_array_size_t index, Il2CppChar value) { m_Items[index] = value; } }; // UnityEngine.Color[] struct ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834 : public RuntimeArray { public: ALIGN_FIELD (8) Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 m_Items[1]; public: inline Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 GetAt(il2cpp_array_size_t index) const { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); return m_Items[index]; } inline Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 * GetAddressAt(il2cpp_array_size_t index) { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); return m_Items + index; } inline void SetAt(il2cpp_array_size_t index, Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 value) { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); m_Items[index] = value; } inline Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 GetAtUnchecked(il2cpp_array_size_t index) const { return m_Items[index]; } inline Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 * GetAddressAtUnchecked(il2cpp_array_size_t index) { return m_Items + index; } inline void SetAtUnchecked(il2cpp_array_size_t index, Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 value) { m_Items[index] = value; } }; // UnityEngine.Color32[] struct Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2 : public RuntimeArray { public: ALIGN_FIELD (8) Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D m_Items[1]; public: inline Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D GetAt(il2cpp_array_size_t index) const { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); return m_Items[index]; } inline Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D * GetAddressAt(il2cpp_array_size_t index) { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); return m_Items + index; } inline void SetAt(il2cpp_array_size_t index, Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D value) { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); m_Items[index] = value; } inline Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D GetAtUnchecked(il2cpp_array_size_t index) const { return m_Items[index]; } inline Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D * GetAddressAtUnchecked(il2cpp_array_size_t index) { return m_Items + index; } inline void SetAtUnchecked(il2cpp_array_size_t index, Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D value) { m_Items[index] = value; } }; // System.DateTime[] struct DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1 : public RuntimeArray { public: ALIGN_FIELD (8) DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 m_Items[1]; public: inline DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 GetAt(il2cpp_array_size_t index) const { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); return m_Items[index]; } inline DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 * GetAddressAt(il2cpp_array_size_t index) { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); return m_Items + index; } inline void SetAt(il2cpp_array_size_t index, DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 value) { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); m_Items[index] = value; } inline DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 GetAtUnchecked(il2cpp_array_size_t index) const { return m_Items[index]; } inline DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 * GetAddressAtUnchecked(il2cpp_array_size_t index) { return m_Items + index; } inline void SetAtUnchecked(il2cpp_array_size_t index, DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 value) { m_Items[index] = value; } }; // System.DateTimeOffset[] struct DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826 : public RuntimeArray { public: ALIGN_FIELD (8) DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5 m_Items[1]; public: inline DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5 GetAt(il2cpp_array_size_t index) const { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); return m_Items[index]; } inline DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5 * GetAddressAt(il2cpp_array_size_t index) { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); return m_Items + index; } inline void SetAt(il2cpp_array_size_t index, DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5 value) { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); m_Items[index] = value; } inline DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5 GetAtUnchecked(il2cpp_array_size_t index) const { return m_Items[index]; } inline DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5 * GetAddressAtUnchecked(il2cpp_array_size_t index) { return m_Items + index; } inline void SetAtUnchecked(il2cpp_array_size_t index, DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5 value) { m_Items[index] = value; } }; // System.Decimal[] struct DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA : public RuntimeArray { public: ALIGN_FIELD (8) Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 m_Items[1]; public: inline Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 GetAt(il2cpp_array_size_t index) const { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); return m_Items[index]; } inline Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 * GetAddressAt(il2cpp_array_size_t index) { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); return m_Items + index; } inline void SetAt(il2cpp_array_size_t index, Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 value) { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); m_Items[index] = value; } inline Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 GetAtUnchecked(il2cpp_array_size_t index) const { return m_Items[index]; } inline Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 * GetAddressAtUnchecked(il2cpp_array_size_t index) { return m_Items + index; } inline void SetAtUnchecked(il2cpp_array_size_t index, Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 value) { m_Items[index] = value; } }; // System.Double[] struct DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB : public RuntimeArray { public: ALIGN_FIELD (8) double m_Items[1]; public: inline double GetAt(il2cpp_array_size_t index) const { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); return m_Items[index]; } inline double* GetAddressAt(il2cpp_array_size_t index) { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); return m_Items + index; } inline void SetAt(il2cpp_array_size_t index, double value) { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); m_Items[index] = value; } inline double GetAtUnchecked(il2cpp_array_size_t index) const { return m_Items[index]; } inline double* GetAddressAtUnchecked(il2cpp_array_size_t index) { return m_Items + index; } inline void SetAtUnchecked(il2cpp_array_size_t index, double value) { m_Items[index] = value; } }; // Microsoft.MixedReality.Toolkit.Boundary.Edge[] struct EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20 : public RuntimeArray { public: ALIGN_FIELD (8) Edge_t65F291A222EA5D33E62D23059BCE2874AB93A424 m_Items[1]; public: inline Edge_t65F291A222EA5D33E62D23059BCE2874AB93A424 GetAt(il2cpp_array_size_t index) const { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); return m_Items[index]; } inline Edge_t65F291A222EA5D33E62D23059BCE2874AB93A424 * GetAddressAt(il2cpp_array_size_t index) { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); return m_Items + index; } inline void SetAt(il2cpp_array_size_t index, Edge_t65F291A222EA5D33E62D23059BCE2874AB93A424 value) { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); m_Items[index] = value; } inline Edge_t65F291A222EA5D33E62D23059BCE2874AB93A424 GetAtUnchecked(il2cpp_array_size_t index) const { return m_Items[index]; } inline Edge_t65F291A222EA5D33E62D23059BCE2874AB93A424 * GetAddressAtUnchecked(il2cpp_array_size_t index) { return m_Items + index; } inline void SetAtUnchecked(il2cpp_array_size_t index, Edge_t65F291A222EA5D33E62D23059BCE2874AB93A424 value) { m_Items[index] = value; } }; // System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken[] struct EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B : public RuntimeArray { public: ALIGN_FIELD (8) EventRegistrationToken_t5460ED02F1A6B74B604DFD634E8D5429857E9830 m_Items[1]; public: inline EventRegistrationToken_t5460ED02F1A6B74B604DFD634E8D5429857E9830 GetAt(il2cpp_array_size_t index) const { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); return m_Items[index]; } inline EventRegistrationToken_t5460ED02F1A6B74B604DFD634E8D5429857E9830 * GetAddressAt(il2cpp_array_size_t index) { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); return m_Items + index; } inline void SetAt(il2cpp_array_size_t index, EventRegistrationToken_t5460ED02F1A6B74B604DFD634E8D5429857E9830 value) { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); m_Items[index] = value; } inline EventRegistrationToken_t5460ED02F1A6B74B604DFD634E8D5429857E9830 GetAtUnchecked(il2cpp_array_size_t index) const { return m_Items[index]; } inline EventRegistrationToken_t5460ED02F1A6B74B604DFD634E8D5429857E9830 * GetAddressAtUnchecked(il2cpp_array_size_t index) { return m_Items + index; } inline void SetAtUnchecked(il2cpp_array_size_t index, EventRegistrationToken_t5460ED02F1A6B74B604DFD634E8D5429857E9830 value) { m_Items[index] = value; } }; // UnityEngine.TextCore.GlyphRect[] struct GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA : public RuntimeArray { public: ALIGN_FIELD (8) GlyphRect_t4F6A791326A28C2CEC6B13B0BD50A4F78280289D m_Items[1]; public: inline GlyphRect_t4F6A791326A28C2CEC6B13B0BD50A4F78280289D GetAt(il2cpp_array_size_t index) const { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); return m_Items[index]; } inline GlyphRect_t4F6A791326A28C2CEC6B13B0BD50A4F78280289D * GetAddressAt(il2cpp_array_size_t index) { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); return m_Items + index; } inline void SetAt(il2cpp_array_size_t index, GlyphRect_t4F6A791326A28C2CEC6B13B0BD50A4F78280289D value) { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); m_Items[index] = value; } inline GlyphRect_t4F6A791326A28C2CEC6B13B0BD50A4F78280289D GetAtUnchecked(il2cpp_array_size_t index) const { return m_Items[index]; } inline GlyphRect_t4F6A791326A28C2CEC6B13B0BD50A4F78280289D * GetAddressAtUnchecked(il2cpp_array_size_t index) { return m_Items + index; } inline void SetAtUnchecked(il2cpp_array_size_t index, GlyphRect_t4F6A791326A28C2CEC6B13B0BD50A4F78280289D value) { m_Items[index] = value; } }; // System.Guid[] struct GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8 : public RuntimeArray { public: ALIGN_FIELD (8) Guid_t m_Items[1]; public: inline Guid_t GetAt(il2cpp_array_size_t index) const { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); return m_Items[index]; } inline Guid_t * GetAddressAt(il2cpp_array_size_t index) { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); return m_Items + index; } inline void SetAt(il2cpp_array_size_t index, Guid_t value) { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); m_Items[index] = value; } inline Guid_t GetAtUnchecked(il2cpp_array_size_t index) const { return m_Items[index]; } inline Guid_t * GetAddressAtUnchecked(il2cpp_array_size_t index) { return m_Items + index; } inline void SetAtUnchecked(il2cpp_array_size_t index, Guid_t value) { m_Items[index] = value; } }; // UnityEngine.InputSystem.InputBinding[] struct InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E : public RuntimeArray { public: ALIGN_FIELD (8) InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD m_Items[1]; public: inline InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD GetAt(il2cpp_array_size_t index) const { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); return m_Items[index]; } inline InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD * GetAddressAt(il2cpp_array_size_t index) { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); return m_Items + index; } inline void SetAt(il2cpp_array_size_t index, InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD value) { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); m_Items[index] = value; Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___m_Name_2), (void*)NULL); #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___m_Id_3), (void*)NULL); #endif #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___m_Path_4), (void*)NULL); #endif #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___m_Interactions_5), (void*)NULL); #endif #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___m_Processors_6), (void*)NULL); #endif #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___m_Groups_7), (void*)NULL); #endif #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___m_Action_8), (void*)NULL); #endif #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___m_OverridePath_10), (void*)NULL); #endif #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___m_OverrideInteractions_11), (void*)NULL); #endif #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___m_OverrideProcessors_12), (void*)NULL); #endif } inline InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD GetAtUnchecked(il2cpp_array_size_t index) const { return m_Items[index]; } inline InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD * GetAddressAtUnchecked(il2cpp_array_size_t index) { return m_Items + index; } inline void SetAtUnchecked(il2cpp_array_size_t index, InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD value) { m_Items[index] = value; Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___m_Name_2), (void*)NULL); #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___m_Id_3), (void*)NULL); #endif #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___m_Path_4), (void*)NULL); #endif #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___m_Interactions_5), (void*)NULL); #endif #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___m_Processors_6), (void*)NULL); #endif #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___m_Groups_7), (void*)NULL); #endif #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___m_Action_8), (void*)NULL); #endif #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___m_OverridePath_10), (void*)NULL); #endif #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___m_OverrideInteractions_11), (void*)NULL); #endif #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___m_OverrideProcessors_12), (void*)NULL); #endif } }; // UnityEngine.XR.InputDevice[] struct InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE : public RuntimeArray { public: ALIGN_FIELD (8) InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E m_Items[1]; public: inline InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E GetAt(il2cpp_array_size_t index) const { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); return m_Items[index]; } inline InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E * GetAddressAt(il2cpp_array_size_t index) { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); return m_Items + index; } inline void SetAt(il2cpp_array_size_t index, InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E value) { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); m_Items[index] = value; } inline InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E GetAtUnchecked(il2cpp_array_size_t index) const { return m_Items[index]; } inline InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E * GetAddressAtUnchecked(il2cpp_array_size_t index) { return m_Items + index; } inline void SetAtUnchecked(il2cpp_array_size_t index, InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E value) { m_Items[index] = value; } }; // UnityEngine.InputSystem.Layouts.InputDeviceDescription[] struct InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3 : public RuntimeArray { public: ALIGN_FIELD (8) InputDeviceDescription_tDCF3D4C660B97F28D8AB46D82C0BA8EA727E48C3 m_Items[1]; public: inline InputDeviceDescription_tDCF3D4C660B97F28D8AB46D82C0BA8EA727E48C3 GetAt(il2cpp_array_size_t index) const { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); return m_Items[index]; } inline InputDeviceDescription_tDCF3D4C660B97F28D8AB46D82C0BA8EA727E48C3 * GetAddressAt(il2cpp_array_size_t index) { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); return m_Items + index; } inline void SetAt(il2cpp_array_size_t index, InputDeviceDescription_tDCF3D4C660B97F28D8AB46D82C0BA8EA727E48C3 value) { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); m_Items[index] = value; Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___m_InterfaceName_0), (void*)NULL); #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___m_DeviceClass_1), (void*)NULL); #endif #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___m_Manufacturer_2), (void*)NULL); #endif #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___m_Product_3), (void*)NULL); #endif #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___m_Serial_4), (void*)NULL); #endif #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___m_Version_5), (void*)NULL); #endif #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___m_Capabilities_6), (void*)NULL); #endif } inline InputDeviceDescription_tDCF3D4C660B97F28D8AB46D82C0BA8EA727E48C3 GetAtUnchecked(il2cpp_array_size_t index) const { return m_Items[index]; } inline InputDeviceDescription_tDCF3D4C660B97F28D8AB46D82C0BA8EA727E48C3 * GetAddressAtUnchecked(il2cpp_array_size_t index) { return m_Items + index; } inline void SetAtUnchecked(il2cpp_array_size_t index, InputDeviceDescription_tDCF3D4C660B97F28D8AB46D82C0BA8EA727E48C3 value) { m_Items[index] = value; Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___m_InterfaceName_0), (void*)NULL); #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___m_DeviceClass_1), (void*)NULL); #endif #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___m_Manufacturer_2), (void*)NULL); #endif #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___m_Product_3), (void*)NULL); #endif #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___m_Serial_4), (void*)NULL); #endif #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___m_Version_5), (void*)NULL); #endif #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___m_Capabilities_6), (void*)NULL); #endif } }; // UnityEngine.InputSystem.LowLevel.InputEventPtr[] struct InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A : public RuntimeArray { public: ALIGN_FIELD (8) InputEventPtr_tC7799829CE3FDCA9E191C7BC946ABE0DB17B377D m_Items[1]; public: inline InputEventPtr_tC7799829CE3FDCA9E191C7BC946ABE0DB17B377D GetAt(il2cpp_array_size_t index) const { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); return m_Items[index]; } inline InputEventPtr_tC7799829CE3FDCA9E191C7BC946ABE0DB17B377D * GetAddressAt(il2cpp_array_size_t index) { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); return m_Items + index; } inline void SetAt(il2cpp_array_size_t index, InputEventPtr_tC7799829CE3FDCA9E191C7BC946ABE0DB17B377D value) { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); m_Items[index] = value; } inline InputEventPtr_tC7799829CE3FDCA9E191C7BC946ABE0DB17B377D GetAtUnchecked(il2cpp_array_size_t index) const { return m_Items[index]; } inline InputEventPtr_tC7799829CE3FDCA9E191C7BC946ABE0DB17B377D * GetAddressAtUnchecked(il2cpp_array_size_t index) { return m_Items + index; } inline void SetAtUnchecked(il2cpp_array_size_t index, InputEventPtr_tC7799829CE3FDCA9E191C7BC946ABE0DB17B377D value) { m_Items[index] = value; } }; // Microsoft.MixedReality.Toolkit.Utilities.Editor.InspectorPropertySetting[] struct InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD : public RuntimeArray { public: ALIGN_FIELD (8) InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9 m_Items[1]; public: inline InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9 GetAt(il2cpp_array_size_t index) const { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); return m_Items[index]; } inline InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9 * GetAddressAt(il2cpp_array_size_t index) { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); return m_Items + index; } inline void SetAt(il2cpp_array_size_t index, InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9 value) { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); m_Items[index] = value; Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___Label_1), (void*)NULL); #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___Name_2), (void*)NULL); #endif #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___Tooltip_3), (void*)NULL); #endif #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___StringValue_5), (void*)NULL); #endif #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___GameObjectValue_8), (void*)NULL); #endif #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___ScriptableObjectValue_9), (void*)NULL); #endif #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___ObjectValue_10), (void*)NULL); #endif #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___MaterialValue_11), (void*)NULL); #endif #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___TextureValue_12), (void*)NULL); #endif #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___CurveValue_17), (void*)NULL); #endif #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___AudioClipValue_18), (void*)NULL); #endif #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___EventValue_20), (void*)NULL); #endif #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___Options_21), (void*)NULL); #endif } inline InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9 GetAtUnchecked(il2cpp_array_size_t index) const { return m_Items[index]; } inline InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9 * GetAddressAtUnchecked(il2cpp_array_size_t index) { return m_Items + index; } inline void SetAtUnchecked(il2cpp_array_size_t index, InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9 value) { m_Items[index] = value; Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___Label_1), (void*)NULL); #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___Name_2), (void*)NULL); #endif #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___Tooltip_3), (void*)NULL); #endif #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___StringValue_5), (void*)NULL); #endif #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___GameObjectValue_8), (void*)NULL); #endif #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___ScriptableObjectValue_9), (void*)NULL); #endif #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___ObjectValue_10), (void*)NULL); #endif #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___MaterialValue_11), (void*)NULL); #endif #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___TextureValue_12), (void*)NULL); #endif #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___CurveValue_17), (void*)NULL); #endif #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___AudioClipValue_18), (void*)NULL); #endif #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___EventValue_20), (void*)NULL); #endif #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___Options_21), (void*)NULL); #endif } }; // System.Int16[] struct Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD : public RuntimeArray { public: ALIGN_FIELD (8) int16_t m_Items[1]; public: inline int16_t GetAt(il2cpp_array_size_t index) const { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); return m_Items[index]; } inline int16_t* GetAddressAt(il2cpp_array_size_t index) { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); return m_Items + index; } inline void SetAt(il2cpp_array_size_t index, int16_t value) { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); m_Items[index] = value; } inline int16_t GetAtUnchecked(il2cpp_array_size_t index) const { return m_Items[index]; } inline int16_t* GetAddressAtUnchecked(il2cpp_array_size_t index) { return m_Items + index; } inline void SetAtUnchecked(il2cpp_array_size_t index, int16_t value) { m_Items[index] = value; } }; // System.Int32[] struct Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32 : public RuntimeArray { public: ALIGN_FIELD (8) int32_t m_Items[1]; public: inline int32_t GetAt(il2cpp_array_size_t index) const { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); return m_Items[index]; } inline int32_t* GetAddressAt(il2cpp_array_size_t index) { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); return m_Items + index; } inline void SetAt(il2cpp_array_size_t index, int32_t value) { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); m_Items[index] = value; } inline int32_t GetAtUnchecked(il2cpp_array_size_t index) const { return m_Items[index]; } inline int32_t* GetAddressAtUnchecked(il2cpp_array_size_t index) { return m_Items + index; } inline void SetAtUnchecked(il2cpp_array_size_t index, int32_t value) { m_Items[index] = value; } }; // System.Int32Enum[] struct Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD : public RuntimeArray { public: ALIGN_FIELD (8) int32_t m_Items[1]; public: inline int32_t GetAt(il2cpp_array_size_t index) const { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); return m_Items[index]; } inline int32_t* GetAddressAt(il2cpp_array_size_t index) { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); return m_Items + index; } inline void SetAt(il2cpp_array_size_t index, int32_t value) { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); m_Items[index] = value; } inline int32_t GetAtUnchecked(il2cpp_array_size_t index) const { return m_Items[index]; } inline int32_t* GetAddressAtUnchecked(il2cpp_array_size_t index) { return m_Items + index; } inline void SetAtUnchecked(il2cpp_array_size_t index, int32_t value) { m_Items[index] = value; } }; // System.Int64[] struct Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6 : public RuntimeArray { public: ALIGN_FIELD (8) int64_t m_Items[1]; public: inline int64_t GetAt(il2cpp_array_size_t index) const { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); return m_Items[index]; } inline int64_t* GetAddressAt(il2cpp_array_size_t index) { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); return m_Items + index; } inline void SetAt(il2cpp_array_size_t index, int64_t value) { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); m_Items[index] = value; } inline int64_t GetAtUnchecked(il2cpp_array_size_t index) const { return m_Items[index]; } inline int64_t* GetAddressAtUnchecked(il2cpp_array_size_t index) { return m_Items + index; } inline void SetAtUnchecked(il2cpp_array_size_t index, int64_t value) { m_Items[index] = value; } }; // UnityEngine.InputSystem.Utilities.InternedString[] struct InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648 : public RuntimeArray { public: ALIGN_FIELD (8) InternedString_tD1138602E8B7EA0F5B4851812B13C7E0551E25C8 m_Items[1]; public: inline InternedString_tD1138602E8B7EA0F5B4851812B13C7E0551E25C8 GetAt(il2cpp_array_size_t index) const { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); return m_Items[index]; } inline InternedString_tD1138602E8B7EA0F5B4851812B13C7E0551E25C8 * GetAddressAt(il2cpp_array_size_t index) { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); return m_Items + index; } inline void SetAt(il2cpp_array_size_t index, InternedString_tD1138602E8B7EA0F5B4851812B13C7E0551E25C8 value) { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); m_Items[index] = value; Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___m_StringOriginalCase_0), (void*)NULL); #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___m_StringLowerCase_1), (void*)NULL); #endif } inline InternedString_tD1138602E8B7EA0F5B4851812B13C7E0551E25C8 GetAtUnchecked(il2cpp_array_size_t index) const { return m_Items[index]; } inline InternedString_tD1138602E8B7EA0F5B4851812B13C7E0551E25C8 * GetAddressAtUnchecked(il2cpp_array_size_t index) { return m_Items + index; } inline void SetAtUnchecked(il2cpp_array_size_t index, InternedString_tD1138602E8B7EA0F5B4851812B13C7E0551E25C8 value) { m_Items[index] = value; Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___m_StringOriginalCase_0), (void*)NULL); #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___m_StringLowerCase_1), (void*)NULL); #endif } }; // System.Linq.Expressions.Interpreter.InterpretedFrameInfo[] struct InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283 : public RuntimeArray { public: ALIGN_FIELD (8) InterpretedFrameInfo_tC2C153C83030E30AC9BEC762C0B549D6340A1DF7 m_Items[1]; public: inline InterpretedFrameInfo_tC2C153C83030E30AC9BEC762C0B549D6340A1DF7 GetAt(il2cpp_array_size_t index) const { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); return m_Items[index]; } inline InterpretedFrameInfo_tC2C153C83030E30AC9BEC762C0B549D6340A1DF7 * GetAddressAt(il2cpp_array_size_t index) { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); return m_Items + index; } inline void SetAt(il2cpp_array_size_t index, InterpretedFrameInfo_tC2C153C83030E30AC9BEC762C0B549D6340A1DF7 value) { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); m_Items[index] = value; Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->____methodName_0), (void*)NULL); #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->____debugInfo_1), (void*)NULL); #endif } inline InterpretedFrameInfo_tC2C153C83030E30AC9BEC762C0B549D6340A1DF7 GetAtUnchecked(il2cpp_array_size_t index) const { return m_Items[index]; } inline InterpretedFrameInfo_tC2C153C83030E30AC9BEC762C0B549D6340A1DF7 * GetAddressAtUnchecked(il2cpp_array_size_t index) { return m_Items + index; } inline void SetAtUnchecked(il2cpp_array_size_t index, InterpretedFrameInfo_tC2C153C83030E30AC9BEC762C0B549D6340A1DF7 value) { m_Items[index] = value; Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->____methodName_0), (void*)NULL); #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->____debugInfo_1), (void*)NULL); #endif } }; // System.Void System.Collections.Generic.IntrospectiveSortUtilities::ThrowOrIgnoreBadComparer(System.Object) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void IntrospectiveSortUtilities_ThrowOrIgnoreBadComparer_mE23A8103696FA67F874E7DA86625BB3921DB801F (RuntimeObject * ___comparer0, const RuntimeMethod* method); // System.Void System.InvalidOperationException::.ctor(System.String,System.Exception) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void InvalidOperationException__ctor_m4A65916B1316FBF45ECDF1FF7FAC9E3CA30C112C (InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB * __this, String_t* ___message0, Exception_t * ___innerException1, const RuntimeMethod* method); // System.Int32 System.Collections.Generic.IntrospectiveSortUtilities::FloorLog2(System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t IntrospectiveSortUtilities_FloorLog2_m05ECB6CAC7A23087D9EC2C2A4DDCFE12272C3872 (int32_t ___n0, const RuntimeMethod* method); #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Void System.Collections.Generic.ArraySortHelper`1<System.Collections.Generic.KeyValuePair`2<System.UInt32,Microsoft.MixedReality.Toolkit.UI.ObjectManipulator/PointerData>>::Sort(T[],System.Int32,System.Int32,System.Collections.Generic.IComparer`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Sort_mCB09B28A5073562854300C9001C02A7050A52D38_gshared (KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064* ___keys0, int32_t ___index1, int32_t ___length2, RuntimeObject* ___comparer3, const RuntimeMethod* method) { Exception_t * V_0 = NULL; il2cpp::utils::ExceptionSupportStack<RuntimeObject*, 1> __active_exceptions; il2cpp::utils::ExceptionSupportStack<int32_t, 2> __leave_targets; IL_0000: try { // begin try (depth: 1) { RuntimeObject* L_0 = ___comparer3; if (L_0) { goto IL_000a; } } IL_0003: { Comparer_1_tFF5ADC8155B95AC6214A3245C65687DD17A86543 * L_1; L_1 = (( Comparer_1_tFF5ADC8155B95AC6214A3245C65687DD17A86543 * (*) (const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)->methodPointer)(/*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)); ___comparer3 = (RuntimeObject*)L_1; } IL_000a: { KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064* L_2 = ___keys0; int32_t L_3 = ___index1; int32_t L_4 = ___length2; RuntimeObject* L_5 = ___comparer3; RuntimeObject* L_6 = (RuntimeObject*)L_5; Comparison_1_t06C6A50C081F0BD8CF06DAF062041DCD491DA182 * L_7 = (Comparison_1_t06C6A50C081F0BD8CF06DAF062041DCD491DA182 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 4)); (( void (*) (Comparison_1_t06C6A50C081F0BD8CF06DAF062041DCD491DA182 *, RuntimeObject *, intptr_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 5)->methodPointer)(L_7, (RuntimeObject *)L_6, (intptr_t)((intptr_t)GetInterfaceMethodInfo(L_6, 0, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 3))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 5)); (( void (*) (KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064*, int32_t, int32_t, Comparison_1_t06C6A50C081F0BD8CF06DAF062041DCD491DA182 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)->methodPointer)((KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064*)L_2, (int32_t)L_3, (int32_t)L_4, (Comparison_1_t06C6A50C081F0BD8CF06DAF062041DCD491DA182 *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)); goto IL_0037; } } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&IndexOutOfRangeException_tDC9EF7A0346CE39E54DA1083F07BE6DFC3CE2EDD_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_0021; } if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&Exception_t_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_002a; } throw e; } CATCH_0021: { // begin catch(System.IndexOutOfRangeException) RuntimeObject* L_8 = ___comparer3; IntrospectiveSortUtilities_ThrowOrIgnoreBadComparer_mE23A8103696FA67F874E7DA86625BB3921DB801F((RuntimeObject *)L_8, /*hidden argument*/NULL); IL2CPP_POP_ACTIVE_EXCEPTION(); goto IL_0037; } // end catch (depth: 1) CATCH_002a: { // begin catch(System.Exception) V_0 = (Exception_t *)((Exception_t *)IL2CPP_GET_ACTIVE_EXCEPTION(Exception_t *)); Exception_t * L_9 = V_0; InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB * L_10 = (InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB *)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB_il2cpp_TypeInfo_var))); InvalidOperationException__ctor_m4A65916B1316FBF45ECDF1FF7FAC9E3CA30C112C(L_10, (String_t*)((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral6EDB6C049ED9617FA335A262A29BF30B15221AEA)), (Exception_t *)L_9, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_10, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArraySortHelper_1_Sort_mCB09B28A5073562854300C9001C02A7050A52D38_RuntimeMethod_var))); } // end catch (depth: 1) IL_0037: { return; } } // System.Int32 System.Collections.Generic.ArraySortHelper`1<System.Collections.Generic.KeyValuePair`2<System.UInt32,Microsoft.MixedReality.Toolkit.UI.ObjectManipulator/PointerData>>::BinarySearch(T[],System.Int32,System.Int32,T,System.Collections.Generic.IComparer`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t ArraySortHelper_1_BinarySearch_mE7E52D054A6C93F0DB39AD6AFDD259967D380292_gshared (KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064* ___array0, int32_t ___index1, int32_t ___length2, KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 ___value3, RuntimeObject* ___comparer4, const RuntimeMethod* method) { int32_t V_0 = 0; Exception_t * V_1 = NULL; il2cpp::utils::ExceptionSupportStack<RuntimeObject*, 1> __active_exceptions; il2cpp::utils::ExceptionSupportStack<int32_t, 1> __leave_targets; IL_0000: try { // begin try (depth: 1) { RuntimeObject* L_0 = ___comparer4; if (L_0) { goto IL_000b; } } IL_0004: { Comparer_1_tFF5ADC8155B95AC6214A3245C65687DD17A86543 * L_1; L_1 = (( Comparer_1_tFF5ADC8155B95AC6214A3245C65687DD17A86543 * (*) (const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)->methodPointer)(/*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)); ___comparer4 = (RuntimeObject*)L_1; } IL_000b: { KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064* L_2 = ___array0; int32_t L_3 = ___index1; int32_t L_4 = ___length2; KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 L_5 = ___value3; RuntimeObject* L_6 = ___comparer4; int32_t L_7; L_7 = (( int32_t (*) (KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064*, int32_t, int32_t, KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 , RuntimeObject*, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 8)->methodPointer)((KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064*)L_2, (int32_t)L_3, (int32_t)L_4, (KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 )L_5, (RuntimeObject*)L_6, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 8)); V_0 = (int32_t)L_7; goto IL_0026; } } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&Exception_t_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_0019; } throw e; } CATCH_0019: { // begin catch(System.Exception) V_1 = (Exception_t *)((Exception_t *)IL2CPP_GET_ACTIVE_EXCEPTION(Exception_t *)); Exception_t * L_8 = V_1; InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB * L_9 = (InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB *)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB_il2cpp_TypeInfo_var))); InvalidOperationException__ctor_m4A65916B1316FBF45ECDF1FF7FAC9E3CA30C112C(L_9, (String_t*)((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral6EDB6C049ED9617FA335A262A29BF30B15221AEA)), (Exception_t *)L_8, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_9, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArraySortHelper_1_BinarySearch_mE7E52D054A6C93F0DB39AD6AFDD259967D380292_RuntimeMethod_var))); } // end catch (depth: 1) IL_0026: { int32_t L_10 = V_0; return (int32_t)L_10; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Collections.Generic.KeyValuePair`2<System.UInt32,Microsoft.MixedReality.Toolkit.UI.ObjectManipulator/PointerData>>::Sort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Sort_m71149AF0BC579EE3C60CF6B1835EF8590320871D_gshared (KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064* ___keys0, int32_t ___index1, int32_t ___length2, Comparison_1_t06C6A50C081F0BD8CF06DAF062041DCD491DA182 * ___comparer3, const RuntimeMethod* method) { Exception_t * V_0 = NULL; il2cpp::utils::ExceptionSupportStack<RuntimeObject*, 1> __active_exceptions; il2cpp::utils::ExceptionSupportStack<int32_t, 2> __leave_targets; IL_0000: try { // begin try (depth: 1) KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064* L_0 = ___keys0; int32_t L_1 = ___index1; int32_t L_2 = ___length2; Comparison_1_t06C6A50C081F0BD8CF06DAF062041DCD491DA182 * L_3 = ___comparer3; (( void (*) (KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064*, int32_t, int32_t, Comparison_1_t06C6A50C081F0BD8CF06DAF062041DCD491DA182 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)->methodPointer)((KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064*)L_0, (int32_t)L_1, (int32_t)L_2, (Comparison_1_t06C6A50C081F0BD8CF06DAF062041DCD491DA182 *)L_3, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)); goto IL_0021; } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&IndexOutOfRangeException_tDC9EF7A0346CE39E54DA1083F07BE6DFC3CE2EDD_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_000b; } if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&Exception_t_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_0014; } throw e; } CATCH_000b: { // begin catch(System.IndexOutOfRangeException) Comparison_1_t06C6A50C081F0BD8CF06DAF062041DCD491DA182 * L_4 = ___comparer3; IntrospectiveSortUtilities_ThrowOrIgnoreBadComparer_mE23A8103696FA67F874E7DA86625BB3921DB801F((RuntimeObject *)L_4, /*hidden argument*/NULL); IL2CPP_POP_ACTIVE_EXCEPTION(); goto IL_0021; } // end catch (depth: 1) CATCH_0014: { // begin catch(System.Exception) V_0 = (Exception_t *)((Exception_t *)IL2CPP_GET_ACTIVE_EXCEPTION(Exception_t *)); Exception_t * L_5 = V_0; InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB * L_6 = (InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB *)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB_il2cpp_TypeInfo_var))); InvalidOperationException__ctor_m4A65916B1316FBF45ECDF1FF7FAC9E3CA30C112C(L_6, (String_t*)((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral6EDB6C049ED9617FA335A262A29BF30B15221AEA)), (Exception_t *)L_5, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_6, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArraySortHelper_1_Sort_m71149AF0BC579EE3C60CF6B1835EF8590320871D_RuntimeMethod_var))); } // end catch (depth: 1) IL_0021: { return; } } // System.Int32 System.Collections.Generic.ArraySortHelper`1<System.Collections.Generic.KeyValuePair`2<System.UInt32,Microsoft.MixedReality.Toolkit.UI.ObjectManipulator/PointerData>>::InternalBinarySearch(T[],System.Int32,System.Int32,T,System.Collections.Generic.IComparer`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t ArraySortHelper_1_InternalBinarySearch_m4E81F7E3BDD40D2C148415B658FBC1305A1836B4_gshared (KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064* ___array0, int32_t ___index1, int32_t ___length2, KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 ___value3, RuntimeObject* ___comparer4, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; int32_t V_2 = 0; int32_t V_3 = 0; { int32_t L_0 = ___index1; V_0 = (int32_t)L_0; int32_t L_1 = ___index1; int32_t L_2 = ___length2; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_1, (int32_t)L_2)), (int32_t)1)); goto IL_0035; } IL_000a: { int32_t L_3 = V_0; int32_t L_4 = V_1; int32_t L_5 = V_0; V_2 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)((int32_t)((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_4, (int32_t)L_5))>>(int32_t)1)))); RuntimeObject* L_6 = ___comparer4; KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064* L_7 = ___array0; int32_t L_8 = V_2; NullCheck(L_7); int32_t L_9 = L_8; KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 L_10 = (KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 )(L_7)->GetAt(static_cast<il2cpp_array_size_t>(L_9)); KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 L_11 = ___value3; NullCheck((RuntimeObject*)L_6); int32_t L_12; L_12 = InterfaceFuncInvoker2< int32_t, KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 , KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 >::Invoke(0 /* System.Int32 System.Collections.Generic.IComparer`1<System.Collections.Generic.KeyValuePair`2<System.UInt32,Microsoft.MixedReality.Toolkit.UI.ObjectManipulator/PointerData>>::Compare(T,T) */, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 3), (RuntimeObject*)L_6, (KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 )L_10, (KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 )L_11); V_3 = (int32_t)L_12; int32_t L_13 = V_3; if (L_13) { goto IL_0027; } } { int32_t L_14 = V_2; return (int32_t)L_14; } IL_0027: { int32_t L_15 = V_3; if ((((int32_t)L_15) >= ((int32_t)0))) { goto IL_0031; } } { int32_t L_16 = V_2; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_16, (int32_t)1)); goto IL_0035; } IL_0031: { int32_t L_17 = V_2; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_17, (int32_t)1)); } IL_0035: { int32_t L_18 = V_0; int32_t L_19 = V_1; if ((((int32_t)L_18) <= ((int32_t)L_19))) { goto IL_000a; } } { int32_t L_20 = V_0; return (int32_t)((~L_20)); } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Collections.Generic.KeyValuePair`2<System.UInt32,Microsoft.MixedReality.Toolkit.UI.ObjectManipulator/PointerData>>::SwapIfGreater(T[],System.Comparison`1<T>,System.Int32,System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_SwapIfGreater_mADCFA6DAD266B15BC14C2A3BC6638FE44C885BD3_gshared (KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064* ___keys0, Comparison_1_t06C6A50C081F0BD8CF06DAF062041DCD491DA182 * ___comparer1, int32_t ___a2, int32_t ___b3, const RuntimeMethod* method) { KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 V_0; memset((&V_0), 0, sizeof(V_0)); { int32_t L_0 = ___a2; int32_t L_1 = ___b3; if ((((int32_t)L_0) == ((int32_t)L_1))) { goto IL_0039; } } { Comparison_1_t06C6A50C081F0BD8CF06DAF062041DCD491DA182 * L_2 = ___comparer1; KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064* L_3 = ___keys0; int32_t L_4 = ___a2; NullCheck(L_3); int32_t L_5 = L_4; KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 L_6 = (KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 )(L_3)->GetAt(static_cast<il2cpp_array_size_t>(L_5)); KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064* L_7 = ___keys0; int32_t L_8 = ___b3; NullCheck(L_7); int32_t L_9 = L_8; KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 L_10 = (KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 )(L_7)->GetAt(static_cast<il2cpp_array_size_t>(L_9)); NullCheck((Comparison_1_t06C6A50C081F0BD8CF06DAF062041DCD491DA182 *)L_2); int32_t L_11; L_11 = (( int32_t (*) (Comparison_1_t06C6A50C081F0BD8CF06DAF062041DCD491DA182 *, KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 , KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t06C6A50C081F0BD8CF06DAF062041DCD491DA182 *)L_2, (KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 )L_6, (KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 )L_10, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_11) <= ((int32_t)0))) { goto IL_0039; } } { KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064* L_12 = ___keys0; int32_t L_13 = ___a2; NullCheck(L_12); int32_t L_14 = L_13; KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 L_15 = (KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 )(L_12)->GetAt(static_cast<il2cpp_array_size_t>(L_14)); V_0 = (KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 )L_15; KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064* L_16 = ___keys0; int32_t L_17 = ___a2; KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064* L_18 = ___keys0; int32_t L_19 = ___b3; NullCheck(L_18); int32_t L_20 = L_19; KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 L_21 = (KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 )(L_18)->GetAt(static_cast<il2cpp_array_size_t>(L_20)); NullCheck(L_16); (L_16)->SetAt(static_cast<il2cpp_array_size_t>(L_17), (KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 )L_21); KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064* L_22 = ___keys0; int32_t L_23 = ___b3; KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 L_24 = V_0; NullCheck(L_22); (L_22)->SetAt(static_cast<il2cpp_array_size_t>(L_23), (KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 )L_24); } IL_0039: { return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Collections.Generic.KeyValuePair`2<System.UInt32,Microsoft.MixedReality.Toolkit.UI.ObjectManipulator/PointerData>>::Swap(T[],System.Int32,System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Swap_mE3D1FA92401D69B3FC0C0D35DCB96FCA0C26AABD_gshared (KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064* ___a0, int32_t ___i1, int32_t ___j2, const RuntimeMethod* method) { KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 V_0; memset((&V_0), 0, sizeof(V_0)); { int32_t L_0 = ___i1; int32_t L_1 = ___j2; if ((((int32_t)L_0) == ((int32_t)L_1))) { goto IL_0022; } } { KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064* L_2 = ___a0; int32_t L_3 = ___i1; NullCheck(L_2); int32_t L_4 = L_3; KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 L_5 = (KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 )(L_2)->GetAt(static_cast<il2cpp_array_size_t>(L_4)); V_0 = (KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 )L_5; KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064* L_6 = ___a0; int32_t L_7 = ___i1; KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064* L_8 = ___a0; int32_t L_9 = ___j2; NullCheck(L_8); int32_t L_10 = L_9; KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 L_11 = (KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 )(L_8)->GetAt(static_cast<il2cpp_array_size_t>(L_10)); NullCheck(L_6); (L_6)->SetAt(static_cast<il2cpp_array_size_t>(L_7), (KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 )L_11); KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064* L_12 = ___a0; int32_t L_13 = ___j2; KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 L_14 = V_0; NullCheck(L_12); (L_12)->SetAt(static_cast<il2cpp_array_size_t>(L_13), (KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 )L_14); } IL_0022: { return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Collections.Generic.KeyValuePair`2<System.UInt32,Microsoft.MixedReality.Toolkit.UI.ObjectManipulator/PointerData>>::IntrospectiveSort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_IntrospectiveSort_mF1C78150009EBE8B0FB3EF0B0CEBAB661C24E45E_gshared (KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064* ___keys0, int32_t ___left1, int32_t ___length2, Comparison_1_t06C6A50C081F0BD8CF06DAF062041DCD491DA182 * ___comparer3, const RuntimeMethod* method) { { int32_t L_0 = ___length2; if ((((int32_t)L_0) >= ((int32_t)2))) { goto IL_0005; } } { return; } IL_0005: { KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064* L_1 = ___keys0; int32_t L_2 = ___left1; int32_t L_3 = ___length2; int32_t L_4 = ___left1; KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064* L_5 = ___keys0; NullCheck(L_5); int32_t L_6; L_6 = IntrospectiveSortUtilities_FloorLog2_m05ECB6CAC7A23087D9EC2C2A4DDCFE12272C3872((int32_t)((int32_t)((int32_t)(((RuntimeArray*)L_5)->max_length))), /*hidden argument*/NULL); Comparison_1_t06C6A50C081F0BD8CF06DAF062041DCD491DA182 * L_7 = ___comparer3; (( void (*) (KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064*, int32_t, int32_t, int32_t, Comparison_1_t06C6A50C081F0BD8CF06DAF062041DCD491DA182 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)->methodPointer)((KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064*)L_1, (int32_t)L_2, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)L_4)), (int32_t)1)), (int32_t)((int32_t)il2cpp_codegen_multiply((int32_t)2, (int32_t)L_6)), (Comparison_1_t06C6A50C081F0BD8CF06DAF062041DCD491DA182 *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)); return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Collections.Generic.KeyValuePair`2<System.UInt32,Microsoft.MixedReality.Toolkit.UI.ObjectManipulator/PointerData>>::IntroSort(T[],System.Int32,System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_IntroSort_m1FBB88F79D95DA93F6BD203C60B9963D4500F900_gshared (KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064* ___keys0, int32_t ___lo1, int32_t ___hi2, int32_t ___depthLimit3, Comparison_1_t06C6A50C081F0BD8CF06DAF062041DCD491DA182 * ___comparer4, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; { goto IL_0086; } IL_0005: { int32_t L_0 = ___hi2; int32_t L_1 = ___lo1; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_0, (int32_t)L_1)), (int32_t)1)); int32_t L_2 = V_0; if ((((int32_t)L_2) > ((int32_t)((int32_t)16)))) { goto IL_0056; } } { int32_t L_3 = V_0; if ((!(((uint32_t)L_3) == ((uint32_t)1)))) { goto IL_0015; } } { return; } IL_0015: { int32_t L_4 = V_0; if ((!(((uint32_t)L_4) == ((uint32_t)2)))) { goto IL_0024; } } { KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064* L_5 = ___keys0; Comparison_1_t06C6A50C081F0BD8CF06DAF062041DCD491DA182 * L_6 = ___comparer4; int32_t L_7 = ___lo1; int32_t L_8 = ___hi2; (( void (*) (KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064*, Comparison_1_t06C6A50C081F0BD8CF06DAF062041DCD491DA182 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064*)L_5, (Comparison_1_t06C6A50C081F0BD8CF06DAF062041DCD491DA182 *)L_6, (int32_t)L_7, (int32_t)L_8, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); return; } IL_0024: { int32_t L_9 = V_0; if ((!(((uint32_t)L_9) == ((uint32_t)3)))) { goto IL_004b; } } { KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064* L_10 = ___keys0; Comparison_1_t06C6A50C081F0BD8CF06DAF062041DCD491DA182 * L_11 = ___comparer4; int32_t L_12 = ___lo1; int32_t L_13 = ___hi2; (( void (*) (KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064*, Comparison_1_t06C6A50C081F0BD8CF06DAF062041DCD491DA182 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064*)L_10, (Comparison_1_t06C6A50C081F0BD8CF06DAF062041DCD491DA182 *)L_11, (int32_t)L_12, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_13, (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064* L_14 = ___keys0; Comparison_1_t06C6A50C081F0BD8CF06DAF062041DCD491DA182 * L_15 = ___comparer4; int32_t L_16 = ___lo1; int32_t L_17 = ___hi2; (( void (*) (KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064*, Comparison_1_t06C6A50C081F0BD8CF06DAF062041DCD491DA182 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064*)L_14, (Comparison_1_t06C6A50C081F0BD8CF06DAF062041DCD491DA182 *)L_15, (int32_t)L_16, (int32_t)L_17, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064* L_18 = ___keys0; Comparison_1_t06C6A50C081F0BD8CF06DAF062041DCD491DA182 * L_19 = ___comparer4; int32_t L_20 = ___hi2; int32_t L_21 = ___hi2; (( void (*) (KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064*, Comparison_1_t06C6A50C081F0BD8CF06DAF062041DCD491DA182 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064*)L_18, (Comparison_1_t06C6A50C081F0BD8CF06DAF062041DCD491DA182 *)L_19, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_20, (int32_t)1)), (int32_t)L_21, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); return; } IL_004b: { KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064* L_22 = ___keys0; int32_t L_23 = ___lo1; int32_t L_24 = ___hi2; Comparison_1_t06C6A50C081F0BD8CF06DAF062041DCD491DA182 * L_25 = ___comparer4; (( void (*) (KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064*, int32_t, int32_t, Comparison_1_t06C6A50C081F0BD8CF06DAF062041DCD491DA182 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 12)->methodPointer)((KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064*)L_22, (int32_t)L_23, (int32_t)L_24, (Comparison_1_t06C6A50C081F0BD8CF06DAF062041DCD491DA182 *)L_25, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 12)); return; } IL_0056: { int32_t L_26 = ___depthLimit3; if (L_26) { goto IL_0064; } } { KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064* L_27 = ___keys0; int32_t L_28 = ___lo1; int32_t L_29 = ___hi2; Comparison_1_t06C6A50C081F0BD8CF06DAF062041DCD491DA182 * L_30 = ___comparer4; (( void (*) (KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064*, int32_t, int32_t, Comparison_1_t06C6A50C081F0BD8CF06DAF062041DCD491DA182 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 13)->methodPointer)((KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064*)L_27, (int32_t)L_28, (int32_t)L_29, (Comparison_1_t06C6A50C081F0BD8CF06DAF062041DCD491DA182 *)L_30, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 13)); return; } IL_0064: { int32_t L_31 = ___depthLimit3; ___depthLimit3 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_31, (int32_t)1)); KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064* L_32 = ___keys0; int32_t L_33 = ___lo1; int32_t L_34 = ___hi2; Comparison_1_t06C6A50C081F0BD8CF06DAF062041DCD491DA182 * L_35 = ___comparer4; int32_t L_36; L_36 = (( int32_t (*) (KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064*, int32_t, int32_t, Comparison_1_t06C6A50C081F0BD8CF06DAF062041DCD491DA182 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 14)->methodPointer)((KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064*)L_32, (int32_t)L_33, (int32_t)L_34, (Comparison_1_t06C6A50C081F0BD8CF06DAF062041DCD491DA182 *)L_35, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 14)); V_1 = (int32_t)L_36; KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064* L_37 = ___keys0; int32_t L_38 = V_1; int32_t L_39 = ___hi2; int32_t L_40 = ___depthLimit3; Comparison_1_t06C6A50C081F0BD8CF06DAF062041DCD491DA182 * L_41 = ___comparer4; (( void (*) (KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064*, int32_t, int32_t, int32_t, Comparison_1_t06C6A50C081F0BD8CF06DAF062041DCD491DA182 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)->methodPointer)((KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064*)L_37, (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_38, (int32_t)1)), (int32_t)L_39, (int32_t)L_40, (Comparison_1_t06C6A50C081F0BD8CF06DAF062041DCD491DA182 *)L_41, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)); int32_t L_42 = V_1; ___hi2 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_42, (int32_t)1)); } IL_0086: { int32_t L_43 = ___hi2; int32_t L_44 = ___lo1; if ((((int32_t)L_43) > ((int32_t)L_44))) { goto IL_0005; } } { return; } } // System.Int32 System.Collections.Generic.ArraySortHelper`1<System.Collections.Generic.KeyValuePair`2<System.UInt32,Microsoft.MixedReality.Toolkit.UI.ObjectManipulator/PointerData>>::PickPivotAndPartition(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t ArraySortHelper_1_PickPivotAndPartition_mC5CFD6265F0952B4A0A8502D72A872D80DFEC39C_gshared (KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064* ___keys0, int32_t ___lo1, int32_t ___hi2, Comparison_1_t06C6A50C081F0BD8CF06DAF062041DCD491DA182 * ___comparer3, const RuntimeMethod* method) { int32_t V_0 = 0; KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 V_1; memset((&V_1), 0, sizeof(V_1)); int32_t V_2 = 0; int32_t V_3 = 0; { int32_t L_0 = ___lo1; int32_t L_1 = ___hi2; int32_t L_2 = ___lo1; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_0, (int32_t)((int32_t)((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_1, (int32_t)L_2))/(int32_t)2)))); KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064* L_3 = ___keys0; Comparison_1_t06C6A50C081F0BD8CF06DAF062041DCD491DA182 * L_4 = ___comparer3; int32_t L_5 = ___lo1; int32_t L_6 = V_0; (( void (*) (KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064*, Comparison_1_t06C6A50C081F0BD8CF06DAF062041DCD491DA182 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064*)L_3, (Comparison_1_t06C6A50C081F0BD8CF06DAF062041DCD491DA182 *)L_4, (int32_t)L_5, (int32_t)L_6, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064* L_7 = ___keys0; Comparison_1_t06C6A50C081F0BD8CF06DAF062041DCD491DA182 * L_8 = ___comparer3; int32_t L_9 = ___lo1; int32_t L_10 = ___hi2; (( void (*) (KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064*, Comparison_1_t06C6A50C081F0BD8CF06DAF062041DCD491DA182 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064*)L_7, (Comparison_1_t06C6A50C081F0BD8CF06DAF062041DCD491DA182 *)L_8, (int32_t)L_9, (int32_t)L_10, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064* L_11 = ___keys0; Comparison_1_t06C6A50C081F0BD8CF06DAF062041DCD491DA182 * L_12 = ___comparer3; int32_t L_13 = V_0; int32_t L_14 = ___hi2; (( void (*) (KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064*, Comparison_1_t06C6A50C081F0BD8CF06DAF062041DCD491DA182 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064*)L_11, (Comparison_1_t06C6A50C081F0BD8CF06DAF062041DCD491DA182 *)L_12, (int32_t)L_13, (int32_t)L_14, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064* L_15 = ___keys0; int32_t L_16 = V_0; NullCheck(L_15); int32_t L_17 = L_16; KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 L_18 = (KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 )(L_15)->GetAt(static_cast<il2cpp_array_size_t>(L_17)); V_1 = (KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 )L_18; KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064* L_19 = ___keys0; int32_t L_20 = V_0; int32_t L_21 = ___hi2; (( void (*) (KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064*)L_19, (int32_t)L_20, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_21, (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); int32_t L_22 = ___lo1; V_2 = (int32_t)L_22; int32_t L_23 = ___hi2; V_3 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_23, (int32_t)1)); goto IL_0073; } IL_003d: { Comparison_1_t06C6A50C081F0BD8CF06DAF062041DCD491DA182 * L_24 = ___comparer3; KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064* L_25 = ___keys0; int32_t L_26 = V_2; int32_t L_27 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_26, (int32_t)1)); V_2 = (int32_t)L_27; NullCheck(L_25); int32_t L_28 = L_27; KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 L_29 = (KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 )(L_25)->GetAt(static_cast<il2cpp_array_size_t>(L_28)); KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 L_30 = V_1; NullCheck((Comparison_1_t06C6A50C081F0BD8CF06DAF062041DCD491DA182 *)L_24); int32_t L_31; L_31 = (( int32_t (*) (Comparison_1_t06C6A50C081F0BD8CF06DAF062041DCD491DA182 *, KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 , KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t06C6A50C081F0BD8CF06DAF062041DCD491DA182 *)L_24, (KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 )L_29, (KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 )L_30, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_31) < ((int32_t)0))) { goto IL_003d; } } IL_0052: { Comparison_1_t06C6A50C081F0BD8CF06DAF062041DCD491DA182 * L_32 = ___comparer3; KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 L_33 = V_1; KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064* L_34 = ___keys0; int32_t L_35 = V_3; int32_t L_36 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_35, (int32_t)1)); V_3 = (int32_t)L_36; NullCheck(L_34); int32_t L_37 = L_36; KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 L_38 = (KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 )(L_34)->GetAt(static_cast<il2cpp_array_size_t>(L_37)); NullCheck((Comparison_1_t06C6A50C081F0BD8CF06DAF062041DCD491DA182 *)L_32); int32_t L_39; L_39 = (( int32_t (*) (Comparison_1_t06C6A50C081F0BD8CF06DAF062041DCD491DA182 *, KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 , KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t06C6A50C081F0BD8CF06DAF062041DCD491DA182 *)L_32, (KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 )L_33, (KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 )L_38, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_39) < ((int32_t)0))) { goto IL_0052; } } { int32_t L_40 = V_2; int32_t L_41 = V_3; if ((((int32_t)L_40) >= ((int32_t)L_41))) { goto IL_0077; } } { KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064* L_42 = ___keys0; int32_t L_43 = V_2; int32_t L_44 = V_3; (( void (*) (KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064*)L_42, (int32_t)L_43, (int32_t)L_44, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); } IL_0073: { int32_t L_45 = V_2; int32_t L_46 = V_3; if ((((int32_t)L_45) < ((int32_t)L_46))) { goto IL_003d; } } IL_0077: { KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064* L_47 = ___keys0; int32_t L_48 = V_2; int32_t L_49 = ___hi2; (( void (*) (KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064*)L_47, (int32_t)L_48, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_49, (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); int32_t L_50 = V_2; return (int32_t)L_50; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Collections.Generic.KeyValuePair`2<System.UInt32,Microsoft.MixedReality.Toolkit.UI.ObjectManipulator/PointerData>>::Heapsort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Heapsort_m02A87B496C561F98E1B4CCE31945B17CFD2B01DB_gshared (KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064* ___keys0, int32_t ___lo1, int32_t ___hi2, Comparison_1_t06C6A50C081F0BD8CF06DAF062041DCD491DA182 * ___comparer3, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; int32_t V_2 = 0; { int32_t L_0 = ___hi2; int32_t L_1 = ___lo1; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_0, (int32_t)L_1)), (int32_t)1)); int32_t L_2 = V_0; V_1 = (int32_t)((int32_t)((int32_t)L_2/(int32_t)2)); goto IL_001a; } IL_000c: { KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064* L_3 = ___keys0; int32_t L_4 = V_1; int32_t L_5 = V_0; int32_t L_6 = ___lo1; Comparison_1_t06C6A50C081F0BD8CF06DAF062041DCD491DA182 * L_7 = ___comparer3; (( void (*) (KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064*, int32_t, int32_t, int32_t, Comparison_1_t06C6A50C081F0BD8CF06DAF062041DCD491DA182 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)->methodPointer)((KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064*)L_3, (int32_t)L_4, (int32_t)L_5, (int32_t)L_6, (Comparison_1_t06C6A50C081F0BD8CF06DAF062041DCD491DA182 *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)); int32_t L_8 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_8, (int32_t)1)); } IL_001a: { int32_t L_9 = V_1; if ((((int32_t)L_9) >= ((int32_t)1))) { goto IL_000c; } } { int32_t L_10 = V_0; V_2 = (int32_t)L_10; goto IL_003e; } IL_0022: { KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064* L_11 = ___keys0; int32_t L_12 = ___lo1; int32_t L_13 = ___lo1; int32_t L_14 = V_2; (( void (*) (KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064*)L_11, (int32_t)L_12, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_13, (int32_t)L_14)), (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064* L_15 = ___keys0; int32_t L_16 = V_2; int32_t L_17 = ___lo1; Comparison_1_t06C6A50C081F0BD8CF06DAF062041DCD491DA182 * L_18 = ___comparer3; (( void (*) (KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064*, int32_t, int32_t, int32_t, Comparison_1_t06C6A50C081F0BD8CF06DAF062041DCD491DA182 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)->methodPointer)((KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064*)L_15, (int32_t)1, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_16, (int32_t)1)), (int32_t)L_17, (Comparison_1_t06C6A50C081F0BD8CF06DAF062041DCD491DA182 *)L_18, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)); int32_t L_19 = V_2; V_2 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_19, (int32_t)1)); } IL_003e: { int32_t L_20 = V_2; if ((((int32_t)L_20) > ((int32_t)1))) { goto IL_0022; } } { return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Collections.Generic.KeyValuePair`2<System.UInt32,Microsoft.MixedReality.Toolkit.UI.ObjectManipulator/PointerData>>::DownHeap(T[],System.Int32,System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_DownHeap_mD5D20D5BA9F22B9BFD25DAC9046393D18075F830_gshared (KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064* ___keys0, int32_t ___i1, int32_t ___n2, int32_t ___lo3, Comparison_1_t06C6A50C081F0BD8CF06DAF062041DCD491DA182 * ___comparer4, const RuntimeMethod* method) { KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 V_0; memset((&V_0), 0, sizeof(V_0)); int32_t V_1 = 0; { KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064* L_0 = ___keys0; int32_t L_1 = ___lo3; int32_t L_2 = ___i1; NullCheck(L_0); int32_t L_3 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_1, (int32_t)L_2)), (int32_t)1)); KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 L_4 = (KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 )(L_0)->GetAt(static_cast<il2cpp_array_size_t>(L_3)); V_0 = (KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 )L_4; goto IL_0067; } IL_000e: { int32_t L_5 = ___i1; V_1 = (int32_t)((int32_t)il2cpp_codegen_multiply((int32_t)2, (int32_t)L_5)); int32_t L_6 = V_1; int32_t L_7 = ___n2; if ((((int32_t)L_6) >= ((int32_t)L_7))) { goto IL_0038; } } { Comparison_1_t06C6A50C081F0BD8CF06DAF062041DCD491DA182 * L_8 = ___comparer4; KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064* L_9 = ___keys0; int32_t L_10 = ___lo3; int32_t L_11 = V_1; NullCheck(L_9); int32_t L_12 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_10, (int32_t)L_11)), (int32_t)1)); KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 L_13 = (KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 )(L_9)->GetAt(static_cast<il2cpp_array_size_t>(L_12)); KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064* L_14 = ___keys0; int32_t L_15 = ___lo3; int32_t L_16 = V_1; NullCheck(L_14); int32_t L_17 = ((int32_t)il2cpp_codegen_add((int32_t)L_15, (int32_t)L_16)); KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 L_18 = (KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 )(L_14)->GetAt(static_cast<il2cpp_array_size_t>(L_17)); NullCheck((Comparison_1_t06C6A50C081F0BD8CF06DAF062041DCD491DA182 *)L_8); int32_t L_19; L_19 = (( int32_t (*) (Comparison_1_t06C6A50C081F0BD8CF06DAF062041DCD491DA182 *, KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 , KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t06C6A50C081F0BD8CF06DAF062041DCD491DA182 *)L_8, (KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 )L_13, (KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 )L_18, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_19) >= ((int32_t)0))) { goto IL_0038; } } { int32_t L_20 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_20, (int32_t)1)); } IL_0038: { Comparison_1_t06C6A50C081F0BD8CF06DAF062041DCD491DA182 * L_21 = ___comparer4; KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 L_22 = V_0; KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064* L_23 = ___keys0; int32_t L_24 = ___lo3; int32_t L_25 = V_1; NullCheck(L_23); int32_t L_26 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_24, (int32_t)L_25)), (int32_t)1)); KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 L_27 = (KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 )(L_23)->GetAt(static_cast<il2cpp_array_size_t>(L_26)); NullCheck((Comparison_1_t06C6A50C081F0BD8CF06DAF062041DCD491DA182 *)L_21); int32_t L_28; L_28 = (( int32_t (*) (Comparison_1_t06C6A50C081F0BD8CF06DAF062041DCD491DA182 *, KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 , KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t06C6A50C081F0BD8CF06DAF062041DCD491DA182 *)L_21, (KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 )L_22, (KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 )L_27, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_28) >= ((int32_t)0))) { goto IL_006d; } } { KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064* L_29 = ___keys0; int32_t L_30 = ___lo3; int32_t L_31 = ___i1; KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064* L_32 = ___keys0; int32_t L_33 = ___lo3; int32_t L_34 = V_1; NullCheck(L_32); int32_t L_35 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_33, (int32_t)L_34)), (int32_t)1)); KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 L_36 = (KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 )(L_32)->GetAt(static_cast<il2cpp_array_size_t>(L_35)); NullCheck(L_29); (L_29)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_30, (int32_t)L_31)), (int32_t)1))), (KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 )L_36); int32_t L_37 = V_1; ___i1 = (int32_t)L_37; } IL_0067: { int32_t L_38 = ___i1; int32_t L_39 = ___n2; if ((((int32_t)L_38) <= ((int32_t)((int32_t)((int32_t)L_39/(int32_t)2))))) { goto IL_000e; } } IL_006d: { KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064* L_40 = ___keys0; int32_t L_41 = ___lo3; int32_t L_42 = ___i1; KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 L_43 = V_0; NullCheck(L_40); (L_40)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_41, (int32_t)L_42)), (int32_t)1))), (KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 )L_43); return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Collections.Generic.KeyValuePair`2<System.UInt32,Microsoft.MixedReality.Toolkit.UI.ObjectManipulator/PointerData>>::InsertionSort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_InsertionSort_m6F47F3EE5A5DED5AA5DACC70150A5374CE808394_gshared (KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064* ___keys0, int32_t ___lo1, int32_t ___hi2, Comparison_1_t06C6A50C081F0BD8CF06DAF062041DCD491DA182 * ___comparer3, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 V_2; memset((&V_2), 0, sizeof(V_2)); { int32_t L_0 = ___lo1; V_0 = (int32_t)L_0; goto IL_0049; } IL_0004: { int32_t L_1 = V_0; V_1 = (int32_t)L_1; KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064* L_2 = ___keys0; int32_t L_3 = V_0; NullCheck(L_2); int32_t L_4 = ((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)1)); KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 L_5 = (KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 )(L_2)->GetAt(static_cast<il2cpp_array_size_t>(L_4)); V_2 = (KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 )L_5; goto IL_0026; } IL_0012: { KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064* L_6 = ___keys0; int32_t L_7 = V_1; KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064* L_8 = ___keys0; int32_t L_9 = V_1; NullCheck(L_8); int32_t L_10 = L_9; KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 L_11 = (KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 )(L_8)->GetAt(static_cast<il2cpp_array_size_t>(L_10)); NullCheck(L_6); (L_6)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add((int32_t)L_7, (int32_t)1))), (KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 )L_11); int32_t L_12 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_12, (int32_t)1)); } IL_0026: { int32_t L_13 = V_1; int32_t L_14 = ___lo1; if ((((int32_t)L_13) < ((int32_t)L_14))) { goto IL_003b; } } { Comparison_1_t06C6A50C081F0BD8CF06DAF062041DCD491DA182 * L_15 = ___comparer3; KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 L_16 = V_2; KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064* L_17 = ___keys0; int32_t L_18 = V_1; NullCheck(L_17); int32_t L_19 = L_18; KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 L_20 = (KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 )(L_17)->GetAt(static_cast<il2cpp_array_size_t>(L_19)); NullCheck((Comparison_1_t06C6A50C081F0BD8CF06DAF062041DCD491DA182 *)L_15); int32_t L_21; L_21 = (( int32_t (*) (Comparison_1_t06C6A50C081F0BD8CF06DAF062041DCD491DA182 *, KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 , KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t06C6A50C081F0BD8CF06DAF062041DCD491DA182 *)L_15, (KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 )L_16, (KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 )L_20, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_21) < ((int32_t)0))) { goto IL_0012; } } IL_003b: { KeyValuePair_2U5BU5D_t1C6A334B4FCF8DFF3737093636DADA84BE6AA064* L_22 = ___keys0; int32_t L_23 = V_1; KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 L_24 = V_2; NullCheck(L_22); (L_22)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add((int32_t)L_23, (int32_t)1))), (KeyValuePair_2_t857DA88C3AE0EA55E7BACD4B5D64814FED258A91 )L_24); int32_t L_25 = V_0; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_25, (int32_t)1)); } IL_0049: { int32_t L_26 = V_0; int32_t L_27 = ___hi2; if ((((int32_t)L_26) < ((int32_t)L_27))) { goto IL_0004; } } { return; } } #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Void System.Collections.Generic.ArraySortHelper`1<System.Collections.Generic.KeyValuePair`2<System.UInt64,System.Object>>::Sort(T[],System.Int32,System.Int32,System.Collections.Generic.IComparer`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Sort_m08330F517EAD508B209A2CAD5EDF974803567315_gshared (KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B* ___keys0, int32_t ___index1, int32_t ___length2, RuntimeObject* ___comparer3, const RuntimeMethod* method) { Exception_t * V_0 = NULL; il2cpp::utils::ExceptionSupportStack<RuntimeObject*, 1> __active_exceptions; il2cpp::utils::ExceptionSupportStack<int32_t, 2> __leave_targets; IL_0000: try { // begin try (depth: 1) { RuntimeObject* L_0 = ___comparer3; if (L_0) { goto IL_000a; } } IL_0003: { Comparer_1_tE5979B384482E06BAFB2079B78DCF2987FF22830 * L_1; L_1 = (( Comparer_1_tE5979B384482E06BAFB2079B78DCF2987FF22830 * (*) (const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)->methodPointer)(/*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)); ___comparer3 = (RuntimeObject*)L_1; } IL_000a: { KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B* L_2 = ___keys0; int32_t L_3 = ___index1; int32_t L_4 = ___length2; RuntimeObject* L_5 = ___comparer3; RuntimeObject* L_6 = (RuntimeObject*)L_5; Comparison_1_tCB6ED764FE30D86B3E159C8F8284298D9A7A3E84 * L_7 = (Comparison_1_tCB6ED764FE30D86B3E159C8F8284298D9A7A3E84 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 4)); (( void (*) (Comparison_1_tCB6ED764FE30D86B3E159C8F8284298D9A7A3E84 *, RuntimeObject *, intptr_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 5)->methodPointer)(L_7, (RuntimeObject *)L_6, (intptr_t)((intptr_t)GetInterfaceMethodInfo(L_6, 0, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 3))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 5)); (( void (*) (KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B*, int32_t, int32_t, Comparison_1_tCB6ED764FE30D86B3E159C8F8284298D9A7A3E84 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)->methodPointer)((KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B*)L_2, (int32_t)L_3, (int32_t)L_4, (Comparison_1_tCB6ED764FE30D86B3E159C8F8284298D9A7A3E84 *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)); goto IL_0037; } } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&IndexOutOfRangeException_tDC9EF7A0346CE39E54DA1083F07BE6DFC3CE2EDD_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_0021; } if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&Exception_t_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_002a; } throw e; } CATCH_0021: { // begin catch(System.IndexOutOfRangeException) RuntimeObject* L_8 = ___comparer3; IntrospectiveSortUtilities_ThrowOrIgnoreBadComparer_mE23A8103696FA67F874E7DA86625BB3921DB801F((RuntimeObject *)L_8, /*hidden argument*/NULL); IL2CPP_POP_ACTIVE_EXCEPTION(); goto IL_0037; } // end catch (depth: 1) CATCH_002a: { // begin catch(System.Exception) V_0 = (Exception_t *)((Exception_t *)IL2CPP_GET_ACTIVE_EXCEPTION(Exception_t *)); Exception_t * L_9 = V_0; InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB * L_10 = (InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB *)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB_il2cpp_TypeInfo_var))); InvalidOperationException__ctor_m4A65916B1316FBF45ECDF1FF7FAC9E3CA30C112C(L_10, (String_t*)((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral6EDB6C049ED9617FA335A262A29BF30B15221AEA)), (Exception_t *)L_9, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_10, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArraySortHelper_1_Sort_m08330F517EAD508B209A2CAD5EDF974803567315_RuntimeMethod_var))); } // end catch (depth: 1) IL_0037: { return; } } // System.Int32 System.Collections.Generic.ArraySortHelper`1<System.Collections.Generic.KeyValuePair`2<System.UInt64,System.Object>>::BinarySearch(T[],System.Int32,System.Int32,T,System.Collections.Generic.IComparer`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t ArraySortHelper_1_BinarySearch_m151F0A21517DE820D86832DBBEA294F87F44E5F4_gshared (KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B* ___array0, int32_t ___index1, int32_t ___length2, KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 ___value3, RuntimeObject* ___comparer4, const RuntimeMethod* method) { int32_t V_0 = 0; Exception_t * V_1 = NULL; il2cpp::utils::ExceptionSupportStack<RuntimeObject*, 1> __active_exceptions; il2cpp::utils::ExceptionSupportStack<int32_t, 1> __leave_targets; IL_0000: try { // begin try (depth: 1) { RuntimeObject* L_0 = ___comparer4; if (L_0) { goto IL_000b; } } IL_0004: { Comparer_1_tE5979B384482E06BAFB2079B78DCF2987FF22830 * L_1; L_1 = (( Comparer_1_tE5979B384482E06BAFB2079B78DCF2987FF22830 * (*) (const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)->methodPointer)(/*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)); ___comparer4 = (RuntimeObject*)L_1; } IL_000b: { KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B* L_2 = ___array0; int32_t L_3 = ___index1; int32_t L_4 = ___length2; KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 L_5 = ___value3; RuntimeObject* L_6 = ___comparer4; int32_t L_7; L_7 = (( int32_t (*) (KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B*, int32_t, int32_t, KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 , RuntimeObject*, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 8)->methodPointer)((KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B*)L_2, (int32_t)L_3, (int32_t)L_4, (KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 )L_5, (RuntimeObject*)L_6, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 8)); V_0 = (int32_t)L_7; goto IL_0026; } } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&Exception_t_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_0019; } throw e; } CATCH_0019: { // begin catch(System.Exception) V_1 = (Exception_t *)((Exception_t *)IL2CPP_GET_ACTIVE_EXCEPTION(Exception_t *)); Exception_t * L_8 = V_1; InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB * L_9 = (InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB *)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB_il2cpp_TypeInfo_var))); InvalidOperationException__ctor_m4A65916B1316FBF45ECDF1FF7FAC9E3CA30C112C(L_9, (String_t*)((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral6EDB6C049ED9617FA335A262A29BF30B15221AEA)), (Exception_t *)L_8, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_9, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArraySortHelper_1_BinarySearch_m151F0A21517DE820D86832DBBEA294F87F44E5F4_RuntimeMethod_var))); } // end catch (depth: 1) IL_0026: { int32_t L_10 = V_0; return (int32_t)L_10; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Collections.Generic.KeyValuePair`2<System.UInt64,System.Object>>::Sort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Sort_m2E8466F67480DB0BA408FF96D55754B3AAC26D1C_gshared (KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B* ___keys0, int32_t ___index1, int32_t ___length2, Comparison_1_tCB6ED764FE30D86B3E159C8F8284298D9A7A3E84 * ___comparer3, const RuntimeMethod* method) { Exception_t * V_0 = NULL; il2cpp::utils::ExceptionSupportStack<RuntimeObject*, 1> __active_exceptions; il2cpp::utils::ExceptionSupportStack<int32_t, 2> __leave_targets; IL_0000: try { // begin try (depth: 1) KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B* L_0 = ___keys0; int32_t L_1 = ___index1; int32_t L_2 = ___length2; Comparison_1_tCB6ED764FE30D86B3E159C8F8284298D9A7A3E84 * L_3 = ___comparer3; (( void (*) (KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B*, int32_t, int32_t, Comparison_1_tCB6ED764FE30D86B3E159C8F8284298D9A7A3E84 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)->methodPointer)((KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B*)L_0, (int32_t)L_1, (int32_t)L_2, (Comparison_1_tCB6ED764FE30D86B3E159C8F8284298D9A7A3E84 *)L_3, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)); goto IL_0021; } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&IndexOutOfRangeException_tDC9EF7A0346CE39E54DA1083F07BE6DFC3CE2EDD_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_000b; } if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&Exception_t_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_0014; } throw e; } CATCH_000b: { // begin catch(System.IndexOutOfRangeException) Comparison_1_tCB6ED764FE30D86B3E159C8F8284298D9A7A3E84 * L_4 = ___comparer3; IntrospectiveSortUtilities_ThrowOrIgnoreBadComparer_mE23A8103696FA67F874E7DA86625BB3921DB801F((RuntimeObject *)L_4, /*hidden argument*/NULL); IL2CPP_POP_ACTIVE_EXCEPTION(); goto IL_0021; } // end catch (depth: 1) CATCH_0014: { // begin catch(System.Exception) V_0 = (Exception_t *)((Exception_t *)IL2CPP_GET_ACTIVE_EXCEPTION(Exception_t *)); Exception_t * L_5 = V_0; InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB * L_6 = (InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB *)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB_il2cpp_TypeInfo_var))); InvalidOperationException__ctor_m4A65916B1316FBF45ECDF1FF7FAC9E3CA30C112C(L_6, (String_t*)((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral6EDB6C049ED9617FA335A262A29BF30B15221AEA)), (Exception_t *)L_5, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_6, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArraySortHelper_1_Sort_m2E8466F67480DB0BA408FF96D55754B3AAC26D1C_RuntimeMethod_var))); } // end catch (depth: 1) IL_0021: { return; } } // System.Int32 System.Collections.Generic.ArraySortHelper`1<System.Collections.Generic.KeyValuePair`2<System.UInt64,System.Object>>::InternalBinarySearch(T[],System.Int32,System.Int32,T,System.Collections.Generic.IComparer`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t ArraySortHelper_1_InternalBinarySearch_m11F49C4BE48FA3C2D1AAA0B6B97668185D867F6D_gshared (KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B* ___array0, int32_t ___index1, int32_t ___length2, KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 ___value3, RuntimeObject* ___comparer4, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; int32_t V_2 = 0; int32_t V_3 = 0; { int32_t L_0 = ___index1; V_0 = (int32_t)L_0; int32_t L_1 = ___index1; int32_t L_2 = ___length2; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_1, (int32_t)L_2)), (int32_t)1)); goto IL_0035; } IL_000a: { int32_t L_3 = V_0; int32_t L_4 = V_1; int32_t L_5 = V_0; V_2 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)((int32_t)((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_4, (int32_t)L_5))>>(int32_t)1)))); RuntimeObject* L_6 = ___comparer4; KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B* L_7 = ___array0; int32_t L_8 = V_2; NullCheck(L_7); int32_t L_9 = L_8; KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 L_10 = (KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 )(L_7)->GetAt(static_cast<il2cpp_array_size_t>(L_9)); KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 L_11 = ___value3; NullCheck((RuntimeObject*)L_6); int32_t L_12; L_12 = InterfaceFuncInvoker2< int32_t, KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 , KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 >::Invoke(0 /* System.Int32 System.Collections.Generic.IComparer`1<System.Collections.Generic.KeyValuePair`2<System.UInt64,System.Object>>::Compare(T,T) */, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 3), (RuntimeObject*)L_6, (KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 )L_10, (KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 )L_11); V_3 = (int32_t)L_12; int32_t L_13 = V_3; if (L_13) { goto IL_0027; } } { int32_t L_14 = V_2; return (int32_t)L_14; } IL_0027: { int32_t L_15 = V_3; if ((((int32_t)L_15) >= ((int32_t)0))) { goto IL_0031; } } { int32_t L_16 = V_2; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_16, (int32_t)1)); goto IL_0035; } IL_0031: { int32_t L_17 = V_2; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_17, (int32_t)1)); } IL_0035: { int32_t L_18 = V_0; int32_t L_19 = V_1; if ((((int32_t)L_18) <= ((int32_t)L_19))) { goto IL_000a; } } { int32_t L_20 = V_0; return (int32_t)((~L_20)); } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Collections.Generic.KeyValuePair`2<System.UInt64,System.Object>>::SwapIfGreater(T[],System.Comparison`1<T>,System.Int32,System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_SwapIfGreater_m3BDCC300FB61D4BCEED8A3257FDBE19ED3704221_gshared (KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B* ___keys0, Comparison_1_tCB6ED764FE30D86B3E159C8F8284298D9A7A3E84 * ___comparer1, int32_t ___a2, int32_t ___b3, const RuntimeMethod* method) { KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 V_0; memset((&V_0), 0, sizeof(V_0)); { int32_t L_0 = ___a2; int32_t L_1 = ___b3; if ((((int32_t)L_0) == ((int32_t)L_1))) { goto IL_0039; } } { Comparison_1_tCB6ED764FE30D86B3E159C8F8284298D9A7A3E84 * L_2 = ___comparer1; KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B* L_3 = ___keys0; int32_t L_4 = ___a2; NullCheck(L_3); int32_t L_5 = L_4; KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 L_6 = (KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 )(L_3)->GetAt(static_cast<il2cpp_array_size_t>(L_5)); KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B* L_7 = ___keys0; int32_t L_8 = ___b3; NullCheck(L_7); int32_t L_9 = L_8; KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 L_10 = (KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 )(L_7)->GetAt(static_cast<il2cpp_array_size_t>(L_9)); NullCheck((Comparison_1_tCB6ED764FE30D86B3E159C8F8284298D9A7A3E84 *)L_2); int32_t L_11; L_11 = (( int32_t (*) (Comparison_1_tCB6ED764FE30D86B3E159C8F8284298D9A7A3E84 *, KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 , KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_tCB6ED764FE30D86B3E159C8F8284298D9A7A3E84 *)L_2, (KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 )L_6, (KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 )L_10, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_11) <= ((int32_t)0))) { goto IL_0039; } } { KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B* L_12 = ___keys0; int32_t L_13 = ___a2; NullCheck(L_12); int32_t L_14 = L_13; KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 L_15 = (KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 )(L_12)->GetAt(static_cast<il2cpp_array_size_t>(L_14)); V_0 = (KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 )L_15; KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B* L_16 = ___keys0; int32_t L_17 = ___a2; KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B* L_18 = ___keys0; int32_t L_19 = ___b3; NullCheck(L_18); int32_t L_20 = L_19; KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 L_21 = (KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 )(L_18)->GetAt(static_cast<il2cpp_array_size_t>(L_20)); NullCheck(L_16); (L_16)->SetAt(static_cast<il2cpp_array_size_t>(L_17), (KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 )L_21); KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B* L_22 = ___keys0; int32_t L_23 = ___b3; KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 L_24 = V_0; NullCheck(L_22); (L_22)->SetAt(static_cast<il2cpp_array_size_t>(L_23), (KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 )L_24); } IL_0039: { return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Collections.Generic.KeyValuePair`2<System.UInt64,System.Object>>::Swap(T[],System.Int32,System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Swap_mD9EBDE1520142B42C4160A3D4EEE698216DB4119_gshared (KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B* ___a0, int32_t ___i1, int32_t ___j2, const RuntimeMethod* method) { KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 V_0; memset((&V_0), 0, sizeof(V_0)); { int32_t L_0 = ___i1; int32_t L_1 = ___j2; if ((((int32_t)L_0) == ((int32_t)L_1))) { goto IL_0022; } } { KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B* L_2 = ___a0; int32_t L_3 = ___i1; NullCheck(L_2); int32_t L_4 = L_3; KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 L_5 = (KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 )(L_2)->GetAt(static_cast<il2cpp_array_size_t>(L_4)); V_0 = (KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 )L_5; KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B* L_6 = ___a0; int32_t L_7 = ___i1; KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B* L_8 = ___a0; int32_t L_9 = ___j2; NullCheck(L_8); int32_t L_10 = L_9; KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 L_11 = (KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 )(L_8)->GetAt(static_cast<il2cpp_array_size_t>(L_10)); NullCheck(L_6); (L_6)->SetAt(static_cast<il2cpp_array_size_t>(L_7), (KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 )L_11); KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B* L_12 = ___a0; int32_t L_13 = ___j2; KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 L_14 = V_0; NullCheck(L_12); (L_12)->SetAt(static_cast<il2cpp_array_size_t>(L_13), (KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 )L_14); } IL_0022: { return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Collections.Generic.KeyValuePair`2<System.UInt64,System.Object>>::IntrospectiveSort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_IntrospectiveSort_m8C619F6F7BA7B5A1B9E53D2AD8F96E3D5D83E242_gshared (KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B* ___keys0, int32_t ___left1, int32_t ___length2, Comparison_1_tCB6ED764FE30D86B3E159C8F8284298D9A7A3E84 * ___comparer3, const RuntimeMethod* method) { { int32_t L_0 = ___length2; if ((((int32_t)L_0) >= ((int32_t)2))) { goto IL_0005; } } { return; } IL_0005: { KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B* L_1 = ___keys0; int32_t L_2 = ___left1; int32_t L_3 = ___length2; int32_t L_4 = ___left1; KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B* L_5 = ___keys0; NullCheck(L_5); int32_t L_6; L_6 = IntrospectiveSortUtilities_FloorLog2_m05ECB6CAC7A23087D9EC2C2A4DDCFE12272C3872((int32_t)((int32_t)((int32_t)(((RuntimeArray*)L_5)->max_length))), /*hidden argument*/NULL); Comparison_1_tCB6ED764FE30D86B3E159C8F8284298D9A7A3E84 * L_7 = ___comparer3; (( void (*) (KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B*, int32_t, int32_t, int32_t, Comparison_1_tCB6ED764FE30D86B3E159C8F8284298D9A7A3E84 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)->methodPointer)((KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B*)L_1, (int32_t)L_2, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)L_4)), (int32_t)1)), (int32_t)((int32_t)il2cpp_codegen_multiply((int32_t)2, (int32_t)L_6)), (Comparison_1_tCB6ED764FE30D86B3E159C8F8284298D9A7A3E84 *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)); return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Collections.Generic.KeyValuePair`2<System.UInt64,System.Object>>::IntroSort(T[],System.Int32,System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_IntroSort_mD1D5980D1CE2EAB1F1188B654120916805BDD981_gshared (KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B* ___keys0, int32_t ___lo1, int32_t ___hi2, int32_t ___depthLimit3, Comparison_1_tCB6ED764FE30D86B3E159C8F8284298D9A7A3E84 * ___comparer4, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; { goto IL_0086; } IL_0005: { int32_t L_0 = ___hi2; int32_t L_1 = ___lo1; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_0, (int32_t)L_1)), (int32_t)1)); int32_t L_2 = V_0; if ((((int32_t)L_2) > ((int32_t)((int32_t)16)))) { goto IL_0056; } } { int32_t L_3 = V_0; if ((!(((uint32_t)L_3) == ((uint32_t)1)))) { goto IL_0015; } } { return; } IL_0015: { int32_t L_4 = V_0; if ((!(((uint32_t)L_4) == ((uint32_t)2)))) { goto IL_0024; } } { KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B* L_5 = ___keys0; Comparison_1_tCB6ED764FE30D86B3E159C8F8284298D9A7A3E84 * L_6 = ___comparer4; int32_t L_7 = ___lo1; int32_t L_8 = ___hi2; (( void (*) (KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B*, Comparison_1_tCB6ED764FE30D86B3E159C8F8284298D9A7A3E84 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B*)L_5, (Comparison_1_tCB6ED764FE30D86B3E159C8F8284298D9A7A3E84 *)L_6, (int32_t)L_7, (int32_t)L_8, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); return; } IL_0024: { int32_t L_9 = V_0; if ((!(((uint32_t)L_9) == ((uint32_t)3)))) { goto IL_004b; } } { KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B* L_10 = ___keys0; Comparison_1_tCB6ED764FE30D86B3E159C8F8284298D9A7A3E84 * L_11 = ___comparer4; int32_t L_12 = ___lo1; int32_t L_13 = ___hi2; (( void (*) (KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B*, Comparison_1_tCB6ED764FE30D86B3E159C8F8284298D9A7A3E84 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B*)L_10, (Comparison_1_tCB6ED764FE30D86B3E159C8F8284298D9A7A3E84 *)L_11, (int32_t)L_12, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_13, (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B* L_14 = ___keys0; Comparison_1_tCB6ED764FE30D86B3E159C8F8284298D9A7A3E84 * L_15 = ___comparer4; int32_t L_16 = ___lo1; int32_t L_17 = ___hi2; (( void (*) (KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B*, Comparison_1_tCB6ED764FE30D86B3E159C8F8284298D9A7A3E84 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B*)L_14, (Comparison_1_tCB6ED764FE30D86B3E159C8F8284298D9A7A3E84 *)L_15, (int32_t)L_16, (int32_t)L_17, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B* L_18 = ___keys0; Comparison_1_tCB6ED764FE30D86B3E159C8F8284298D9A7A3E84 * L_19 = ___comparer4; int32_t L_20 = ___hi2; int32_t L_21 = ___hi2; (( void (*) (KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B*, Comparison_1_tCB6ED764FE30D86B3E159C8F8284298D9A7A3E84 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B*)L_18, (Comparison_1_tCB6ED764FE30D86B3E159C8F8284298D9A7A3E84 *)L_19, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_20, (int32_t)1)), (int32_t)L_21, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); return; } IL_004b: { KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B* L_22 = ___keys0; int32_t L_23 = ___lo1; int32_t L_24 = ___hi2; Comparison_1_tCB6ED764FE30D86B3E159C8F8284298D9A7A3E84 * L_25 = ___comparer4; (( void (*) (KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B*, int32_t, int32_t, Comparison_1_tCB6ED764FE30D86B3E159C8F8284298D9A7A3E84 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 12)->methodPointer)((KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B*)L_22, (int32_t)L_23, (int32_t)L_24, (Comparison_1_tCB6ED764FE30D86B3E159C8F8284298D9A7A3E84 *)L_25, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 12)); return; } IL_0056: { int32_t L_26 = ___depthLimit3; if (L_26) { goto IL_0064; } } { KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B* L_27 = ___keys0; int32_t L_28 = ___lo1; int32_t L_29 = ___hi2; Comparison_1_tCB6ED764FE30D86B3E159C8F8284298D9A7A3E84 * L_30 = ___comparer4; (( void (*) (KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B*, int32_t, int32_t, Comparison_1_tCB6ED764FE30D86B3E159C8F8284298D9A7A3E84 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 13)->methodPointer)((KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B*)L_27, (int32_t)L_28, (int32_t)L_29, (Comparison_1_tCB6ED764FE30D86B3E159C8F8284298D9A7A3E84 *)L_30, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 13)); return; } IL_0064: { int32_t L_31 = ___depthLimit3; ___depthLimit3 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_31, (int32_t)1)); KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B* L_32 = ___keys0; int32_t L_33 = ___lo1; int32_t L_34 = ___hi2; Comparison_1_tCB6ED764FE30D86B3E159C8F8284298D9A7A3E84 * L_35 = ___comparer4; int32_t L_36; L_36 = (( int32_t (*) (KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B*, int32_t, int32_t, Comparison_1_tCB6ED764FE30D86B3E159C8F8284298D9A7A3E84 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 14)->methodPointer)((KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B*)L_32, (int32_t)L_33, (int32_t)L_34, (Comparison_1_tCB6ED764FE30D86B3E159C8F8284298D9A7A3E84 *)L_35, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 14)); V_1 = (int32_t)L_36; KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B* L_37 = ___keys0; int32_t L_38 = V_1; int32_t L_39 = ___hi2; int32_t L_40 = ___depthLimit3; Comparison_1_tCB6ED764FE30D86B3E159C8F8284298D9A7A3E84 * L_41 = ___comparer4; (( void (*) (KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B*, int32_t, int32_t, int32_t, Comparison_1_tCB6ED764FE30D86B3E159C8F8284298D9A7A3E84 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)->methodPointer)((KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B*)L_37, (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_38, (int32_t)1)), (int32_t)L_39, (int32_t)L_40, (Comparison_1_tCB6ED764FE30D86B3E159C8F8284298D9A7A3E84 *)L_41, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)); int32_t L_42 = V_1; ___hi2 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_42, (int32_t)1)); } IL_0086: { int32_t L_43 = ___hi2; int32_t L_44 = ___lo1; if ((((int32_t)L_43) > ((int32_t)L_44))) { goto IL_0005; } } { return; } } // System.Int32 System.Collections.Generic.ArraySortHelper`1<System.Collections.Generic.KeyValuePair`2<System.UInt64,System.Object>>::PickPivotAndPartition(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t ArraySortHelper_1_PickPivotAndPartition_mEBCB3B564C32154C9DB6DAF6E1393641EDFC59BD_gshared (KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B* ___keys0, int32_t ___lo1, int32_t ___hi2, Comparison_1_tCB6ED764FE30D86B3E159C8F8284298D9A7A3E84 * ___comparer3, const RuntimeMethod* method) { int32_t V_0 = 0; KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 V_1; memset((&V_1), 0, sizeof(V_1)); int32_t V_2 = 0; int32_t V_3 = 0; { int32_t L_0 = ___lo1; int32_t L_1 = ___hi2; int32_t L_2 = ___lo1; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_0, (int32_t)((int32_t)((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_1, (int32_t)L_2))/(int32_t)2)))); KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B* L_3 = ___keys0; Comparison_1_tCB6ED764FE30D86B3E159C8F8284298D9A7A3E84 * L_4 = ___comparer3; int32_t L_5 = ___lo1; int32_t L_6 = V_0; (( void (*) (KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B*, Comparison_1_tCB6ED764FE30D86B3E159C8F8284298D9A7A3E84 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B*)L_3, (Comparison_1_tCB6ED764FE30D86B3E159C8F8284298D9A7A3E84 *)L_4, (int32_t)L_5, (int32_t)L_6, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B* L_7 = ___keys0; Comparison_1_tCB6ED764FE30D86B3E159C8F8284298D9A7A3E84 * L_8 = ___comparer3; int32_t L_9 = ___lo1; int32_t L_10 = ___hi2; (( void (*) (KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B*, Comparison_1_tCB6ED764FE30D86B3E159C8F8284298D9A7A3E84 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B*)L_7, (Comparison_1_tCB6ED764FE30D86B3E159C8F8284298D9A7A3E84 *)L_8, (int32_t)L_9, (int32_t)L_10, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B* L_11 = ___keys0; Comparison_1_tCB6ED764FE30D86B3E159C8F8284298D9A7A3E84 * L_12 = ___comparer3; int32_t L_13 = V_0; int32_t L_14 = ___hi2; (( void (*) (KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B*, Comparison_1_tCB6ED764FE30D86B3E159C8F8284298D9A7A3E84 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B*)L_11, (Comparison_1_tCB6ED764FE30D86B3E159C8F8284298D9A7A3E84 *)L_12, (int32_t)L_13, (int32_t)L_14, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B* L_15 = ___keys0; int32_t L_16 = V_0; NullCheck(L_15); int32_t L_17 = L_16; KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 L_18 = (KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 )(L_15)->GetAt(static_cast<il2cpp_array_size_t>(L_17)); V_1 = (KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 )L_18; KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B* L_19 = ___keys0; int32_t L_20 = V_0; int32_t L_21 = ___hi2; (( void (*) (KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B*)L_19, (int32_t)L_20, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_21, (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); int32_t L_22 = ___lo1; V_2 = (int32_t)L_22; int32_t L_23 = ___hi2; V_3 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_23, (int32_t)1)); goto IL_0073; } IL_003d: { Comparison_1_tCB6ED764FE30D86B3E159C8F8284298D9A7A3E84 * L_24 = ___comparer3; KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B* L_25 = ___keys0; int32_t L_26 = V_2; int32_t L_27 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_26, (int32_t)1)); V_2 = (int32_t)L_27; NullCheck(L_25); int32_t L_28 = L_27; KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 L_29 = (KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 )(L_25)->GetAt(static_cast<il2cpp_array_size_t>(L_28)); KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 L_30 = V_1; NullCheck((Comparison_1_tCB6ED764FE30D86B3E159C8F8284298D9A7A3E84 *)L_24); int32_t L_31; L_31 = (( int32_t (*) (Comparison_1_tCB6ED764FE30D86B3E159C8F8284298D9A7A3E84 *, KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 , KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_tCB6ED764FE30D86B3E159C8F8284298D9A7A3E84 *)L_24, (KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 )L_29, (KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 )L_30, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_31) < ((int32_t)0))) { goto IL_003d; } } IL_0052: { Comparison_1_tCB6ED764FE30D86B3E159C8F8284298D9A7A3E84 * L_32 = ___comparer3; KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 L_33 = V_1; KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B* L_34 = ___keys0; int32_t L_35 = V_3; int32_t L_36 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_35, (int32_t)1)); V_3 = (int32_t)L_36; NullCheck(L_34); int32_t L_37 = L_36; KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 L_38 = (KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 )(L_34)->GetAt(static_cast<il2cpp_array_size_t>(L_37)); NullCheck((Comparison_1_tCB6ED764FE30D86B3E159C8F8284298D9A7A3E84 *)L_32); int32_t L_39; L_39 = (( int32_t (*) (Comparison_1_tCB6ED764FE30D86B3E159C8F8284298D9A7A3E84 *, KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 , KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_tCB6ED764FE30D86B3E159C8F8284298D9A7A3E84 *)L_32, (KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 )L_33, (KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 )L_38, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_39) < ((int32_t)0))) { goto IL_0052; } } { int32_t L_40 = V_2; int32_t L_41 = V_3; if ((((int32_t)L_40) >= ((int32_t)L_41))) { goto IL_0077; } } { KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B* L_42 = ___keys0; int32_t L_43 = V_2; int32_t L_44 = V_3; (( void (*) (KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B*)L_42, (int32_t)L_43, (int32_t)L_44, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); } IL_0073: { int32_t L_45 = V_2; int32_t L_46 = V_3; if ((((int32_t)L_45) < ((int32_t)L_46))) { goto IL_003d; } } IL_0077: { KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B* L_47 = ___keys0; int32_t L_48 = V_2; int32_t L_49 = ___hi2; (( void (*) (KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B*)L_47, (int32_t)L_48, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_49, (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); int32_t L_50 = V_2; return (int32_t)L_50; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Collections.Generic.KeyValuePair`2<System.UInt64,System.Object>>::Heapsort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Heapsort_mB77D0BD41F17F3E78ACF387FF7A39843919F6886_gshared (KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B* ___keys0, int32_t ___lo1, int32_t ___hi2, Comparison_1_tCB6ED764FE30D86B3E159C8F8284298D9A7A3E84 * ___comparer3, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; int32_t V_2 = 0; { int32_t L_0 = ___hi2; int32_t L_1 = ___lo1; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_0, (int32_t)L_1)), (int32_t)1)); int32_t L_2 = V_0; V_1 = (int32_t)((int32_t)((int32_t)L_2/(int32_t)2)); goto IL_001a; } IL_000c: { KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B* L_3 = ___keys0; int32_t L_4 = V_1; int32_t L_5 = V_0; int32_t L_6 = ___lo1; Comparison_1_tCB6ED764FE30D86B3E159C8F8284298D9A7A3E84 * L_7 = ___comparer3; (( void (*) (KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B*, int32_t, int32_t, int32_t, Comparison_1_tCB6ED764FE30D86B3E159C8F8284298D9A7A3E84 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)->methodPointer)((KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B*)L_3, (int32_t)L_4, (int32_t)L_5, (int32_t)L_6, (Comparison_1_tCB6ED764FE30D86B3E159C8F8284298D9A7A3E84 *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)); int32_t L_8 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_8, (int32_t)1)); } IL_001a: { int32_t L_9 = V_1; if ((((int32_t)L_9) >= ((int32_t)1))) { goto IL_000c; } } { int32_t L_10 = V_0; V_2 = (int32_t)L_10; goto IL_003e; } IL_0022: { KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B* L_11 = ___keys0; int32_t L_12 = ___lo1; int32_t L_13 = ___lo1; int32_t L_14 = V_2; (( void (*) (KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B*)L_11, (int32_t)L_12, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_13, (int32_t)L_14)), (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B* L_15 = ___keys0; int32_t L_16 = V_2; int32_t L_17 = ___lo1; Comparison_1_tCB6ED764FE30D86B3E159C8F8284298D9A7A3E84 * L_18 = ___comparer3; (( void (*) (KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B*, int32_t, int32_t, int32_t, Comparison_1_tCB6ED764FE30D86B3E159C8F8284298D9A7A3E84 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)->methodPointer)((KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B*)L_15, (int32_t)1, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_16, (int32_t)1)), (int32_t)L_17, (Comparison_1_tCB6ED764FE30D86B3E159C8F8284298D9A7A3E84 *)L_18, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)); int32_t L_19 = V_2; V_2 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_19, (int32_t)1)); } IL_003e: { int32_t L_20 = V_2; if ((((int32_t)L_20) > ((int32_t)1))) { goto IL_0022; } } { return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Collections.Generic.KeyValuePair`2<System.UInt64,System.Object>>::DownHeap(T[],System.Int32,System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_DownHeap_mB82871305D10BC3E12F475506BD67619B7E8B4F9_gshared (KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B* ___keys0, int32_t ___i1, int32_t ___n2, int32_t ___lo3, Comparison_1_tCB6ED764FE30D86B3E159C8F8284298D9A7A3E84 * ___comparer4, const RuntimeMethod* method) { KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 V_0; memset((&V_0), 0, sizeof(V_0)); int32_t V_1 = 0; { KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B* L_0 = ___keys0; int32_t L_1 = ___lo3; int32_t L_2 = ___i1; NullCheck(L_0); int32_t L_3 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_1, (int32_t)L_2)), (int32_t)1)); KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 L_4 = (KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 )(L_0)->GetAt(static_cast<il2cpp_array_size_t>(L_3)); V_0 = (KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 )L_4; goto IL_0067; } IL_000e: { int32_t L_5 = ___i1; V_1 = (int32_t)((int32_t)il2cpp_codegen_multiply((int32_t)2, (int32_t)L_5)); int32_t L_6 = V_1; int32_t L_7 = ___n2; if ((((int32_t)L_6) >= ((int32_t)L_7))) { goto IL_0038; } } { Comparison_1_tCB6ED764FE30D86B3E159C8F8284298D9A7A3E84 * L_8 = ___comparer4; KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B* L_9 = ___keys0; int32_t L_10 = ___lo3; int32_t L_11 = V_1; NullCheck(L_9); int32_t L_12 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_10, (int32_t)L_11)), (int32_t)1)); KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 L_13 = (KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 )(L_9)->GetAt(static_cast<il2cpp_array_size_t>(L_12)); KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B* L_14 = ___keys0; int32_t L_15 = ___lo3; int32_t L_16 = V_1; NullCheck(L_14); int32_t L_17 = ((int32_t)il2cpp_codegen_add((int32_t)L_15, (int32_t)L_16)); KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 L_18 = (KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 )(L_14)->GetAt(static_cast<il2cpp_array_size_t>(L_17)); NullCheck((Comparison_1_tCB6ED764FE30D86B3E159C8F8284298D9A7A3E84 *)L_8); int32_t L_19; L_19 = (( int32_t (*) (Comparison_1_tCB6ED764FE30D86B3E159C8F8284298D9A7A3E84 *, KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 , KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_tCB6ED764FE30D86B3E159C8F8284298D9A7A3E84 *)L_8, (KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 )L_13, (KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 )L_18, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_19) >= ((int32_t)0))) { goto IL_0038; } } { int32_t L_20 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_20, (int32_t)1)); } IL_0038: { Comparison_1_tCB6ED764FE30D86B3E159C8F8284298D9A7A3E84 * L_21 = ___comparer4; KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 L_22 = V_0; KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B* L_23 = ___keys0; int32_t L_24 = ___lo3; int32_t L_25 = V_1; NullCheck(L_23); int32_t L_26 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_24, (int32_t)L_25)), (int32_t)1)); KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 L_27 = (KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 )(L_23)->GetAt(static_cast<il2cpp_array_size_t>(L_26)); NullCheck((Comparison_1_tCB6ED764FE30D86B3E159C8F8284298D9A7A3E84 *)L_21); int32_t L_28; L_28 = (( int32_t (*) (Comparison_1_tCB6ED764FE30D86B3E159C8F8284298D9A7A3E84 *, KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 , KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_tCB6ED764FE30D86B3E159C8F8284298D9A7A3E84 *)L_21, (KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 )L_22, (KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 )L_27, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_28) >= ((int32_t)0))) { goto IL_006d; } } { KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B* L_29 = ___keys0; int32_t L_30 = ___lo3; int32_t L_31 = ___i1; KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B* L_32 = ___keys0; int32_t L_33 = ___lo3; int32_t L_34 = V_1; NullCheck(L_32); int32_t L_35 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_33, (int32_t)L_34)), (int32_t)1)); KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 L_36 = (KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 )(L_32)->GetAt(static_cast<il2cpp_array_size_t>(L_35)); NullCheck(L_29); (L_29)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_30, (int32_t)L_31)), (int32_t)1))), (KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 )L_36); int32_t L_37 = V_1; ___i1 = (int32_t)L_37; } IL_0067: { int32_t L_38 = ___i1; int32_t L_39 = ___n2; if ((((int32_t)L_38) <= ((int32_t)((int32_t)((int32_t)L_39/(int32_t)2))))) { goto IL_000e; } } IL_006d: { KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B* L_40 = ___keys0; int32_t L_41 = ___lo3; int32_t L_42 = ___i1; KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 L_43 = V_0; NullCheck(L_40); (L_40)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_41, (int32_t)L_42)), (int32_t)1))), (KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 )L_43); return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Collections.Generic.KeyValuePair`2<System.UInt64,System.Object>>::InsertionSort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_InsertionSort_m8E03B28541AA99B2BB1E93AC2F9F83F3FFCE1DDF_gshared (KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B* ___keys0, int32_t ___lo1, int32_t ___hi2, Comparison_1_tCB6ED764FE30D86B3E159C8F8284298D9A7A3E84 * ___comparer3, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 V_2; memset((&V_2), 0, sizeof(V_2)); { int32_t L_0 = ___lo1; V_0 = (int32_t)L_0; goto IL_0049; } IL_0004: { int32_t L_1 = V_0; V_1 = (int32_t)L_1; KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B* L_2 = ___keys0; int32_t L_3 = V_0; NullCheck(L_2); int32_t L_4 = ((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)1)); KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 L_5 = (KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 )(L_2)->GetAt(static_cast<il2cpp_array_size_t>(L_4)); V_2 = (KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 )L_5; goto IL_0026; } IL_0012: { KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B* L_6 = ___keys0; int32_t L_7 = V_1; KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B* L_8 = ___keys0; int32_t L_9 = V_1; NullCheck(L_8); int32_t L_10 = L_9; KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 L_11 = (KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 )(L_8)->GetAt(static_cast<il2cpp_array_size_t>(L_10)); NullCheck(L_6); (L_6)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add((int32_t)L_7, (int32_t)1))), (KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 )L_11); int32_t L_12 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_12, (int32_t)1)); } IL_0026: { int32_t L_13 = V_1; int32_t L_14 = ___lo1; if ((((int32_t)L_13) < ((int32_t)L_14))) { goto IL_003b; } } { Comparison_1_tCB6ED764FE30D86B3E159C8F8284298D9A7A3E84 * L_15 = ___comparer3; KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 L_16 = V_2; KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B* L_17 = ___keys0; int32_t L_18 = V_1; NullCheck(L_17); int32_t L_19 = L_18; KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 L_20 = (KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 )(L_17)->GetAt(static_cast<il2cpp_array_size_t>(L_19)); NullCheck((Comparison_1_tCB6ED764FE30D86B3E159C8F8284298D9A7A3E84 *)L_15); int32_t L_21; L_21 = (( int32_t (*) (Comparison_1_tCB6ED764FE30D86B3E159C8F8284298D9A7A3E84 *, KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 , KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_tCB6ED764FE30D86B3E159C8F8284298D9A7A3E84 *)L_15, (KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 )L_16, (KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 )L_20, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_21) < ((int32_t)0))) { goto IL_0012; } } IL_003b: { KeyValuePair_2U5BU5D_t4420CAB5421E3B2E0F1ED794740FBEC2F370D30B* L_22 = ___keys0; int32_t L_23 = V_1; KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 L_24 = V_2; NullCheck(L_22); (L_22)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add((int32_t)L_23, (int32_t)1))), (KeyValuePair_2_tB8C085DAB5BB6A37255E0F93DBDCB70456DA2703 )L_24); int32_t L_25 = V_0; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_25, (int32_t)1)); } IL_0049: { int32_t L_26 = V_0; int32_t L_27 = ___hi2; if ((((int32_t)L_26) < ((int32_t)L_27))) { goto IL_0004; } } { return; } } #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Void System.Collections.Generic.ArraySortHelper`1<System.Collections.Generic.KeyValuePair`2<UnityEngine.Vector3,System.Object>>::Sort(T[],System.Int32,System.Int32,System.Collections.Generic.IComparer`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Sort_mB6C4526FCC9F0BDD18D1438C22E4546015875E9E_gshared (KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0* ___keys0, int32_t ___index1, int32_t ___length2, RuntimeObject* ___comparer3, const RuntimeMethod* method) { Exception_t * V_0 = NULL; il2cpp::utils::ExceptionSupportStack<RuntimeObject*, 1> __active_exceptions; il2cpp::utils::ExceptionSupportStack<int32_t, 2> __leave_targets; IL_0000: try { // begin try (depth: 1) { RuntimeObject* L_0 = ___comparer3; if (L_0) { goto IL_000a; } } IL_0003: { Comparer_1_t27ED41ED2CE084B91431B5A38BA66BF834A164CC * L_1; L_1 = (( Comparer_1_t27ED41ED2CE084B91431B5A38BA66BF834A164CC * (*) (const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)->methodPointer)(/*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)); ___comparer3 = (RuntimeObject*)L_1; } IL_000a: { KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0* L_2 = ___keys0; int32_t L_3 = ___index1; int32_t L_4 = ___length2; RuntimeObject* L_5 = ___comparer3; RuntimeObject* L_6 = (RuntimeObject*)L_5; Comparison_1_t8DE3221733CF5C3D7158DF8B83A8673B982861BC * L_7 = (Comparison_1_t8DE3221733CF5C3D7158DF8B83A8673B982861BC *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 4)); (( void (*) (Comparison_1_t8DE3221733CF5C3D7158DF8B83A8673B982861BC *, RuntimeObject *, intptr_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 5)->methodPointer)(L_7, (RuntimeObject *)L_6, (intptr_t)((intptr_t)GetInterfaceMethodInfo(L_6, 0, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 3))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 5)); (( void (*) (KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0*, int32_t, int32_t, Comparison_1_t8DE3221733CF5C3D7158DF8B83A8673B982861BC *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)->methodPointer)((KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0*)L_2, (int32_t)L_3, (int32_t)L_4, (Comparison_1_t8DE3221733CF5C3D7158DF8B83A8673B982861BC *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)); goto IL_0037; } } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&IndexOutOfRangeException_tDC9EF7A0346CE39E54DA1083F07BE6DFC3CE2EDD_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_0021; } if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&Exception_t_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_002a; } throw e; } CATCH_0021: { // begin catch(System.IndexOutOfRangeException) RuntimeObject* L_8 = ___comparer3; IntrospectiveSortUtilities_ThrowOrIgnoreBadComparer_mE23A8103696FA67F874E7DA86625BB3921DB801F((RuntimeObject *)L_8, /*hidden argument*/NULL); IL2CPP_POP_ACTIVE_EXCEPTION(); goto IL_0037; } // end catch (depth: 1) CATCH_002a: { // begin catch(System.Exception) V_0 = (Exception_t *)((Exception_t *)IL2CPP_GET_ACTIVE_EXCEPTION(Exception_t *)); Exception_t * L_9 = V_0; InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB * L_10 = (InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB *)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB_il2cpp_TypeInfo_var))); InvalidOperationException__ctor_m4A65916B1316FBF45ECDF1FF7FAC9E3CA30C112C(L_10, (String_t*)((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral6EDB6C049ED9617FA335A262A29BF30B15221AEA)), (Exception_t *)L_9, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_10, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArraySortHelper_1_Sort_mB6C4526FCC9F0BDD18D1438C22E4546015875E9E_RuntimeMethod_var))); } // end catch (depth: 1) IL_0037: { return; } } // System.Int32 System.Collections.Generic.ArraySortHelper`1<System.Collections.Generic.KeyValuePair`2<UnityEngine.Vector3,System.Object>>::BinarySearch(T[],System.Int32,System.Int32,T,System.Collections.Generic.IComparer`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t ArraySortHelper_1_BinarySearch_m26A99985258E1FA7DC7F2C19FFB42F7D62F9C109_gshared (KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0* ___array0, int32_t ___index1, int32_t ___length2, KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D ___value3, RuntimeObject* ___comparer4, const RuntimeMethod* method) { int32_t V_0 = 0; Exception_t * V_1 = NULL; il2cpp::utils::ExceptionSupportStack<RuntimeObject*, 1> __active_exceptions; il2cpp::utils::ExceptionSupportStack<int32_t, 1> __leave_targets; IL_0000: try { // begin try (depth: 1) { RuntimeObject* L_0 = ___comparer4; if (L_0) { goto IL_000b; } } IL_0004: { Comparer_1_t27ED41ED2CE084B91431B5A38BA66BF834A164CC * L_1; L_1 = (( Comparer_1_t27ED41ED2CE084B91431B5A38BA66BF834A164CC * (*) (const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)->methodPointer)(/*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)); ___comparer4 = (RuntimeObject*)L_1; } IL_000b: { KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0* L_2 = ___array0; int32_t L_3 = ___index1; int32_t L_4 = ___length2; KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D L_5 = ___value3; RuntimeObject* L_6 = ___comparer4; int32_t L_7; L_7 = (( int32_t (*) (KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0*, int32_t, int32_t, KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D , RuntimeObject*, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 8)->methodPointer)((KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0*)L_2, (int32_t)L_3, (int32_t)L_4, (KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D )L_5, (RuntimeObject*)L_6, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 8)); V_0 = (int32_t)L_7; goto IL_0026; } } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&Exception_t_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_0019; } throw e; } CATCH_0019: { // begin catch(System.Exception) V_1 = (Exception_t *)((Exception_t *)IL2CPP_GET_ACTIVE_EXCEPTION(Exception_t *)); Exception_t * L_8 = V_1; InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB * L_9 = (InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB *)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB_il2cpp_TypeInfo_var))); InvalidOperationException__ctor_m4A65916B1316FBF45ECDF1FF7FAC9E3CA30C112C(L_9, (String_t*)((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral6EDB6C049ED9617FA335A262A29BF30B15221AEA)), (Exception_t *)L_8, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_9, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArraySortHelper_1_BinarySearch_m26A99985258E1FA7DC7F2C19FFB42F7D62F9C109_RuntimeMethod_var))); } // end catch (depth: 1) IL_0026: { int32_t L_10 = V_0; return (int32_t)L_10; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Collections.Generic.KeyValuePair`2<UnityEngine.Vector3,System.Object>>::Sort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Sort_m8F4670C1F61D92599BACB2C11D636480346F1627_gshared (KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0* ___keys0, int32_t ___index1, int32_t ___length2, Comparison_1_t8DE3221733CF5C3D7158DF8B83A8673B982861BC * ___comparer3, const RuntimeMethod* method) { Exception_t * V_0 = NULL; il2cpp::utils::ExceptionSupportStack<RuntimeObject*, 1> __active_exceptions; il2cpp::utils::ExceptionSupportStack<int32_t, 2> __leave_targets; IL_0000: try { // begin try (depth: 1) KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0* L_0 = ___keys0; int32_t L_1 = ___index1; int32_t L_2 = ___length2; Comparison_1_t8DE3221733CF5C3D7158DF8B83A8673B982861BC * L_3 = ___comparer3; (( void (*) (KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0*, int32_t, int32_t, Comparison_1_t8DE3221733CF5C3D7158DF8B83A8673B982861BC *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)->methodPointer)((KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0*)L_0, (int32_t)L_1, (int32_t)L_2, (Comparison_1_t8DE3221733CF5C3D7158DF8B83A8673B982861BC *)L_3, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)); goto IL_0021; } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&IndexOutOfRangeException_tDC9EF7A0346CE39E54DA1083F07BE6DFC3CE2EDD_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_000b; } if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&Exception_t_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_0014; } throw e; } CATCH_000b: { // begin catch(System.IndexOutOfRangeException) Comparison_1_t8DE3221733CF5C3D7158DF8B83A8673B982861BC * L_4 = ___comparer3; IntrospectiveSortUtilities_ThrowOrIgnoreBadComparer_mE23A8103696FA67F874E7DA86625BB3921DB801F((RuntimeObject *)L_4, /*hidden argument*/NULL); IL2CPP_POP_ACTIVE_EXCEPTION(); goto IL_0021; } // end catch (depth: 1) CATCH_0014: { // begin catch(System.Exception) V_0 = (Exception_t *)((Exception_t *)IL2CPP_GET_ACTIVE_EXCEPTION(Exception_t *)); Exception_t * L_5 = V_0; InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB * L_6 = (InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB *)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB_il2cpp_TypeInfo_var))); InvalidOperationException__ctor_m4A65916B1316FBF45ECDF1FF7FAC9E3CA30C112C(L_6, (String_t*)((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral6EDB6C049ED9617FA335A262A29BF30B15221AEA)), (Exception_t *)L_5, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_6, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArraySortHelper_1_Sort_m8F4670C1F61D92599BACB2C11D636480346F1627_RuntimeMethod_var))); } // end catch (depth: 1) IL_0021: { return; } } // System.Int32 System.Collections.Generic.ArraySortHelper`1<System.Collections.Generic.KeyValuePair`2<UnityEngine.Vector3,System.Object>>::InternalBinarySearch(T[],System.Int32,System.Int32,T,System.Collections.Generic.IComparer`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t ArraySortHelper_1_InternalBinarySearch_m4F59E5A40937252895269F58CE2E8DA6E69CAA79_gshared (KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0* ___array0, int32_t ___index1, int32_t ___length2, KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D ___value3, RuntimeObject* ___comparer4, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; int32_t V_2 = 0; int32_t V_3 = 0; { int32_t L_0 = ___index1; V_0 = (int32_t)L_0; int32_t L_1 = ___index1; int32_t L_2 = ___length2; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_1, (int32_t)L_2)), (int32_t)1)); goto IL_0035; } IL_000a: { int32_t L_3 = V_0; int32_t L_4 = V_1; int32_t L_5 = V_0; V_2 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)((int32_t)((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_4, (int32_t)L_5))>>(int32_t)1)))); RuntimeObject* L_6 = ___comparer4; KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0* L_7 = ___array0; int32_t L_8 = V_2; NullCheck(L_7); int32_t L_9 = L_8; KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D L_10 = (KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D )(L_7)->GetAt(static_cast<il2cpp_array_size_t>(L_9)); KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D L_11 = ___value3; NullCheck((RuntimeObject*)L_6); int32_t L_12; L_12 = InterfaceFuncInvoker2< int32_t, KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D , KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D >::Invoke(0 /* System.Int32 System.Collections.Generic.IComparer`1<System.Collections.Generic.KeyValuePair`2<UnityEngine.Vector3,System.Object>>::Compare(T,T) */, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 3), (RuntimeObject*)L_6, (KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D )L_10, (KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D )L_11); V_3 = (int32_t)L_12; int32_t L_13 = V_3; if (L_13) { goto IL_0027; } } { int32_t L_14 = V_2; return (int32_t)L_14; } IL_0027: { int32_t L_15 = V_3; if ((((int32_t)L_15) >= ((int32_t)0))) { goto IL_0031; } } { int32_t L_16 = V_2; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_16, (int32_t)1)); goto IL_0035; } IL_0031: { int32_t L_17 = V_2; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_17, (int32_t)1)); } IL_0035: { int32_t L_18 = V_0; int32_t L_19 = V_1; if ((((int32_t)L_18) <= ((int32_t)L_19))) { goto IL_000a; } } { int32_t L_20 = V_0; return (int32_t)((~L_20)); } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Collections.Generic.KeyValuePair`2<UnityEngine.Vector3,System.Object>>::SwapIfGreater(T[],System.Comparison`1<T>,System.Int32,System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_SwapIfGreater_m9EFB3851A1D330CF8DC6AD495606BBC3B39CA119_gshared (KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0* ___keys0, Comparison_1_t8DE3221733CF5C3D7158DF8B83A8673B982861BC * ___comparer1, int32_t ___a2, int32_t ___b3, const RuntimeMethod* method) { KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D V_0; memset((&V_0), 0, sizeof(V_0)); { int32_t L_0 = ___a2; int32_t L_1 = ___b3; if ((((int32_t)L_0) == ((int32_t)L_1))) { goto IL_0039; } } { Comparison_1_t8DE3221733CF5C3D7158DF8B83A8673B982861BC * L_2 = ___comparer1; KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0* L_3 = ___keys0; int32_t L_4 = ___a2; NullCheck(L_3); int32_t L_5 = L_4; KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D L_6 = (KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D )(L_3)->GetAt(static_cast<il2cpp_array_size_t>(L_5)); KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0* L_7 = ___keys0; int32_t L_8 = ___b3; NullCheck(L_7); int32_t L_9 = L_8; KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D L_10 = (KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D )(L_7)->GetAt(static_cast<il2cpp_array_size_t>(L_9)); NullCheck((Comparison_1_t8DE3221733CF5C3D7158DF8B83A8673B982861BC *)L_2); int32_t L_11; L_11 = (( int32_t (*) (Comparison_1_t8DE3221733CF5C3D7158DF8B83A8673B982861BC *, KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D , KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t8DE3221733CF5C3D7158DF8B83A8673B982861BC *)L_2, (KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D )L_6, (KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D )L_10, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_11) <= ((int32_t)0))) { goto IL_0039; } } { KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0* L_12 = ___keys0; int32_t L_13 = ___a2; NullCheck(L_12); int32_t L_14 = L_13; KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D L_15 = (KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D )(L_12)->GetAt(static_cast<il2cpp_array_size_t>(L_14)); V_0 = (KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D )L_15; KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0* L_16 = ___keys0; int32_t L_17 = ___a2; KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0* L_18 = ___keys0; int32_t L_19 = ___b3; NullCheck(L_18); int32_t L_20 = L_19; KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D L_21 = (KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D )(L_18)->GetAt(static_cast<il2cpp_array_size_t>(L_20)); NullCheck(L_16); (L_16)->SetAt(static_cast<il2cpp_array_size_t>(L_17), (KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D )L_21); KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0* L_22 = ___keys0; int32_t L_23 = ___b3; KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D L_24 = V_0; NullCheck(L_22); (L_22)->SetAt(static_cast<il2cpp_array_size_t>(L_23), (KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D )L_24); } IL_0039: { return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Collections.Generic.KeyValuePair`2<UnityEngine.Vector3,System.Object>>::Swap(T[],System.Int32,System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Swap_mD67E78410BE8CBCDB976A5D8F134AD9CF734B496_gshared (KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0* ___a0, int32_t ___i1, int32_t ___j2, const RuntimeMethod* method) { KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D V_0; memset((&V_0), 0, sizeof(V_0)); { int32_t L_0 = ___i1; int32_t L_1 = ___j2; if ((((int32_t)L_0) == ((int32_t)L_1))) { goto IL_0022; } } { KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0* L_2 = ___a0; int32_t L_3 = ___i1; NullCheck(L_2); int32_t L_4 = L_3; KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D L_5 = (KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D )(L_2)->GetAt(static_cast<il2cpp_array_size_t>(L_4)); V_0 = (KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D )L_5; KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0* L_6 = ___a0; int32_t L_7 = ___i1; KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0* L_8 = ___a0; int32_t L_9 = ___j2; NullCheck(L_8); int32_t L_10 = L_9; KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D L_11 = (KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D )(L_8)->GetAt(static_cast<il2cpp_array_size_t>(L_10)); NullCheck(L_6); (L_6)->SetAt(static_cast<il2cpp_array_size_t>(L_7), (KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D )L_11); KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0* L_12 = ___a0; int32_t L_13 = ___j2; KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D L_14 = V_0; NullCheck(L_12); (L_12)->SetAt(static_cast<il2cpp_array_size_t>(L_13), (KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D )L_14); } IL_0022: { return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Collections.Generic.KeyValuePair`2<UnityEngine.Vector3,System.Object>>::IntrospectiveSort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_IntrospectiveSort_m090B8F239BC28CA3AEDB581D1ECF0C0803B5B76E_gshared (KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0* ___keys0, int32_t ___left1, int32_t ___length2, Comparison_1_t8DE3221733CF5C3D7158DF8B83A8673B982861BC * ___comparer3, const RuntimeMethod* method) { { int32_t L_0 = ___length2; if ((((int32_t)L_0) >= ((int32_t)2))) { goto IL_0005; } } { return; } IL_0005: { KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0* L_1 = ___keys0; int32_t L_2 = ___left1; int32_t L_3 = ___length2; int32_t L_4 = ___left1; KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0* L_5 = ___keys0; NullCheck(L_5); int32_t L_6; L_6 = IntrospectiveSortUtilities_FloorLog2_m05ECB6CAC7A23087D9EC2C2A4DDCFE12272C3872((int32_t)((int32_t)((int32_t)(((RuntimeArray*)L_5)->max_length))), /*hidden argument*/NULL); Comparison_1_t8DE3221733CF5C3D7158DF8B83A8673B982861BC * L_7 = ___comparer3; (( void (*) (KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0*, int32_t, int32_t, int32_t, Comparison_1_t8DE3221733CF5C3D7158DF8B83A8673B982861BC *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)->methodPointer)((KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0*)L_1, (int32_t)L_2, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)L_4)), (int32_t)1)), (int32_t)((int32_t)il2cpp_codegen_multiply((int32_t)2, (int32_t)L_6)), (Comparison_1_t8DE3221733CF5C3D7158DF8B83A8673B982861BC *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)); return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Collections.Generic.KeyValuePair`2<UnityEngine.Vector3,System.Object>>::IntroSort(T[],System.Int32,System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_IntroSort_mCA48142F2539DCBC6CA9A5640FFEA176968AC8B5_gshared (KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0* ___keys0, int32_t ___lo1, int32_t ___hi2, int32_t ___depthLimit3, Comparison_1_t8DE3221733CF5C3D7158DF8B83A8673B982861BC * ___comparer4, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; { goto IL_0086; } IL_0005: { int32_t L_0 = ___hi2; int32_t L_1 = ___lo1; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_0, (int32_t)L_1)), (int32_t)1)); int32_t L_2 = V_0; if ((((int32_t)L_2) > ((int32_t)((int32_t)16)))) { goto IL_0056; } } { int32_t L_3 = V_0; if ((!(((uint32_t)L_3) == ((uint32_t)1)))) { goto IL_0015; } } { return; } IL_0015: { int32_t L_4 = V_0; if ((!(((uint32_t)L_4) == ((uint32_t)2)))) { goto IL_0024; } } { KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0* L_5 = ___keys0; Comparison_1_t8DE3221733CF5C3D7158DF8B83A8673B982861BC * L_6 = ___comparer4; int32_t L_7 = ___lo1; int32_t L_8 = ___hi2; (( void (*) (KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0*, Comparison_1_t8DE3221733CF5C3D7158DF8B83A8673B982861BC *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0*)L_5, (Comparison_1_t8DE3221733CF5C3D7158DF8B83A8673B982861BC *)L_6, (int32_t)L_7, (int32_t)L_8, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); return; } IL_0024: { int32_t L_9 = V_0; if ((!(((uint32_t)L_9) == ((uint32_t)3)))) { goto IL_004b; } } { KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0* L_10 = ___keys0; Comparison_1_t8DE3221733CF5C3D7158DF8B83A8673B982861BC * L_11 = ___comparer4; int32_t L_12 = ___lo1; int32_t L_13 = ___hi2; (( void (*) (KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0*, Comparison_1_t8DE3221733CF5C3D7158DF8B83A8673B982861BC *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0*)L_10, (Comparison_1_t8DE3221733CF5C3D7158DF8B83A8673B982861BC *)L_11, (int32_t)L_12, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_13, (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0* L_14 = ___keys0; Comparison_1_t8DE3221733CF5C3D7158DF8B83A8673B982861BC * L_15 = ___comparer4; int32_t L_16 = ___lo1; int32_t L_17 = ___hi2; (( void (*) (KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0*, Comparison_1_t8DE3221733CF5C3D7158DF8B83A8673B982861BC *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0*)L_14, (Comparison_1_t8DE3221733CF5C3D7158DF8B83A8673B982861BC *)L_15, (int32_t)L_16, (int32_t)L_17, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0* L_18 = ___keys0; Comparison_1_t8DE3221733CF5C3D7158DF8B83A8673B982861BC * L_19 = ___comparer4; int32_t L_20 = ___hi2; int32_t L_21 = ___hi2; (( void (*) (KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0*, Comparison_1_t8DE3221733CF5C3D7158DF8B83A8673B982861BC *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0*)L_18, (Comparison_1_t8DE3221733CF5C3D7158DF8B83A8673B982861BC *)L_19, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_20, (int32_t)1)), (int32_t)L_21, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); return; } IL_004b: { KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0* L_22 = ___keys0; int32_t L_23 = ___lo1; int32_t L_24 = ___hi2; Comparison_1_t8DE3221733CF5C3D7158DF8B83A8673B982861BC * L_25 = ___comparer4; (( void (*) (KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0*, int32_t, int32_t, Comparison_1_t8DE3221733CF5C3D7158DF8B83A8673B982861BC *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 12)->methodPointer)((KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0*)L_22, (int32_t)L_23, (int32_t)L_24, (Comparison_1_t8DE3221733CF5C3D7158DF8B83A8673B982861BC *)L_25, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 12)); return; } IL_0056: { int32_t L_26 = ___depthLimit3; if (L_26) { goto IL_0064; } } { KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0* L_27 = ___keys0; int32_t L_28 = ___lo1; int32_t L_29 = ___hi2; Comparison_1_t8DE3221733CF5C3D7158DF8B83A8673B982861BC * L_30 = ___comparer4; (( void (*) (KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0*, int32_t, int32_t, Comparison_1_t8DE3221733CF5C3D7158DF8B83A8673B982861BC *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 13)->methodPointer)((KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0*)L_27, (int32_t)L_28, (int32_t)L_29, (Comparison_1_t8DE3221733CF5C3D7158DF8B83A8673B982861BC *)L_30, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 13)); return; } IL_0064: { int32_t L_31 = ___depthLimit3; ___depthLimit3 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_31, (int32_t)1)); KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0* L_32 = ___keys0; int32_t L_33 = ___lo1; int32_t L_34 = ___hi2; Comparison_1_t8DE3221733CF5C3D7158DF8B83A8673B982861BC * L_35 = ___comparer4; int32_t L_36; L_36 = (( int32_t (*) (KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0*, int32_t, int32_t, Comparison_1_t8DE3221733CF5C3D7158DF8B83A8673B982861BC *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 14)->methodPointer)((KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0*)L_32, (int32_t)L_33, (int32_t)L_34, (Comparison_1_t8DE3221733CF5C3D7158DF8B83A8673B982861BC *)L_35, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 14)); V_1 = (int32_t)L_36; KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0* L_37 = ___keys0; int32_t L_38 = V_1; int32_t L_39 = ___hi2; int32_t L_40 = ___depthLimit3; Comparison_1_t8DE3221733CF5C3D7158DF8B83A8673B982861BC * L_41 = ___comparer4; (( void (*) (KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0*, int32_t, int32_t, int32_t, Comparison_1_t8DE3221733CF5C3D7158DF8B83A8673B982861BC *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)->methodPointer)((KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0*)L_37, (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_38, (int32_t)1)), (int32_t)L_39, (int32_t)L_40, (Comparison_1_t8DE3221733CF5C3D7158DF8B83A8673B982861BC *)L_41, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)); int32_t L_42 = V_1; ___hi2 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_42, (int32_t)1)); } IL_0086: { int32_t L_43 = ___hi2; int32_t L_44 = ___lo1; if ((((int32_t)L_43) > ((int32_t)L_44))) { goto IL_0005; } } { return; } } // System.Int32 System.Collections.Generic.ArraySortHelper`1<System.Collections.Generic.KeyValuePair`2<UnityEngine.Vector3,System.Object>>::PickPivotAndPartition(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t ArraySortHelper_1_PickPivotAndPartition_m9F0173DE35B47FE1B5F42CB65E1D8770F6A206EA_gshared (KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0* ___keys0, int32_t ___lo1, int32_t ___hi2, Comparison_1_t8DE3221733CF5C3D7158DF8B83A8673B982861BC * ___comparer3, const RuntimeMethod* method) { int32_t V_0 = 0; KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D V_1; memset((&V_1), 0, sizeof(V_1)); int32_t V_2 = 0; int32_t V_3 = 0; { int32_t L_0 = ___lo1; int32_t L_1 = ___hi2; int32_t L_2 = ___lo1; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_0, (int32_t)((int32_t)((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_1, (int32_t)L_2))/(int32_t)2)))); KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0* L_3 = ___keys0; Comparison_1_t8DE3221733CF5C3D7158DF8B83A8673B982861BC * L_4 = ___comparer3; int32_t L_5 = ___lo1; int32_t L_6 = V_0; (( void (*) (KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0*, Comparison_1_t8DE3221733CF5C3D7158DF8B83A8673B982861BC *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0*)L_3, (Comparison_1_t8DE3221733CF5C3D7158DF8B83A8673B982861BC *)L_4, (int32_t)L_5, (int32_t)L_6, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0* L_7 = ___keys0; Comparison_1_t8DE3221733CF5C3D7158DF8B83A8673B982861BC * L_8 = ___comparer3; int32_t L_9 = ___lo1; int32_t L_10 = ___hi2; (( void (*) (KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0*, Comparison_1_t8DE3221733CF5C3D7158DF8B83A8673B982861BC *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0*)L_7, (Comparison_1_t8DE3221733CF5C3D7158DF8B83A8673B982861BC *)L_8, (int32_t)L_9, (int32_t)L_10, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0* L_11 = ___keys0; Comparison_1_t8DE3221733CF5C3D7158DF8B83A8673B982861BC * L_12 = ___comparer3; int32_t L_13 = V_0; int32_t L_14 = ___hi2; (( void (*) (KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0*, Comparison_1_t8DE3221733CF5C3D7158DF8B83A8673B982861BC *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0*)L_11, (Comparison_1_t8DE3221733CF5C3D7158DF8B83A8673B982861BC *)L_12, (int32_t)L_13, (int32_t)L_14, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0* L_15 = ___keys0; int32_t L_16 = V_0; NullCheck(L_15); int32_t L_17 = L_16; KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D L_18 = (KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D )(L_15)->GetAt(static_cast<il2cpp_array_size_t>(L_17)); V_1 = (KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D )L_18; KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0* L_19 = ___keys0; int32_t L_20 = V_0; int32_t L_21 = ___hi2; (( void (*) (KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0*)L_19, (int32_t)L_20, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_21, (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); int32_t L_22 = ___lo1; V_2 = (int32_t)L_22; int32_t L_23 = ___hi2; V_3 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_23, (int32_t)1)); goto IL_0073; } IL_003d: { Comparison_1_t8DE3221733CF5C3D7158DF8B83A8673B982861BC * L_24 = ___comparer3; KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0* L_25 = ___keys0; int32_t L_26 = V_2; int32_t L_27 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_26, (int32_t)1)); V_2 = (int32_t)L_27; NullCheck(L_25); int32_t L_28 = L_27; KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D L_29 = (KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D )(L_25)->GetAt(static_cast<il2cpp_array_size_t>(L_28)); KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D L_30 = V_1; NullCheck((Comparison_1_t8DE3221733CF5C3D7158DF8B83A8673B982861BC *)L_24); int32_t L_31; L_31 = (( int32_t (*) (Comparison_1_t8DE3221733CF5C3D7158DF8B83A8673B982861BC *, KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D , KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t8DE3221733CF5C3D7158DF8B83A8673B982861BC *)L_24, (KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D )L_29, (KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D )L_30, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_31) < ((int32_t)0))) { goto IL_003d; } } IL_0052: { Comparison_1_t8DE3221733CF5C3D7158DF8B83A8673B982861BC * L_32 = ___comparer3; KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D L_33 = V_1; KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0* L_34 = ___keys0; int32_t L_35 = V_3; int32_t L_36 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_35, (int32_t)1)); V_3 = (int32_t)L_36; NullCheck(L_34); int32_t L_37 = L_36; KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D L_38 = (KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D )(L_34)->GetAt(static_cast<il2cpp_array_size_t>(L_37)); NullCheck((Comparison_1_t8DE3221733CF5C3D7158DF8B83A8673B982861BC *)L_32); int32_t L_39; L_39 = (( int32_t (*) (Comparison_1_t8DE3221733CF5C3D7158DF8B83A8673B982861BC *, KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D , KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t8DE3221733CF5C3D7158DF8B83A8673B982861BC *)L_32, (KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D )L_33, (KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D )L_38, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_39) < ((int32_t)0))) { goto IL_0052; } } { int32_t L_40 = V_2; int32_t L_41 = V_3; if ((((int32_t)L_40) >= ((int32_t)L_41))) { goto IL_0077; } } { KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0* L_42 = ___keys0; int32_t L_43 = V_2; int32_t L_44 = V_3; (( void (*) (KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0*)L_42, (int32_t)L_43, (int32_t)L_44, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); } IL_0073: { int32_t L_45 = V_2; int32_t L_46 = V_3; if ((((int32_t)L_45) < ((int32_t)L_46))) { goto IL_003d; } } IL_0077: { KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0* L_47 = ___keys0; int32_t L_48 = V_2; int32_t L_49 = ___hi2; (( void (*) (KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0*)L_47, (int32_t)L_48, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_49, (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); int32_t L_50 = V_2; return (int32_t)L_50; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Collections.Generic.KeyValuePair`2<UnityEngine.Vector3,System.Object>>::Heapsort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Heapsort_m395665CF35AA5826880D97C5FA2BA3A3B772541E_gshared (KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0* ___keys0, int32_t ___lo1, int32_t ___hi2, Comparison_1_t8DE3221733CF5C3D7158DF8B83A8673B982861BC * ___comparer3, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; int32_t V_2 = 0; { int32_t L_0 = ___hi2; int32_t L_1 = ___lo1; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_0, (int32_t)L_1)), (int32_t)1)); int32_t L_2 = V_0; V_1 = (int32_t)((int32_t)((int32_t)L_2/(int32_t)2)); goto IL_001a; } IL_000c: { KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0* L_3 = ___keys0; int32_t L_4 = V_1; int32_t L_5 = V_0; int32_t L_6 = ___lo1; Comparison_1_t8DE3221733CF5C3D7158DF8B83A8673B982861BC * L_7 = ___comparer3; (( void (*) (KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0*, int32_t, int32_t, int32_t, Comparison_1_t8DE3221733CF5C3D7158DF8B83A8673B982861BC *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)->methodPointer)((KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0*)L_3, (int32_t)L_4, (int32_t)L_5, (int32_t)L_6, (Comparison_1_t8DE3221733CF5C3D7158DF8B83A8673B982861BC *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)); int32_t L_8 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_8, (int32_t)1)); } IL_001a: { int32_t L_9 = V_1; if ((((int32_t)L_9) >= ((int32_t)1))) { goto IL_000c; } } { int32_t L_10 = V_0; V_2 = (int32_t)L_10; goto IL_003e; } IL_0022: { KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0* L_11 = ___keys0; int32_t L_12 = ___lo1; int32_t L_13 = ___lo1; int32_t L_14 = V_2; (( void (*) (KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0*)L_11, (int32_t)L_12, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_13, (int32_t)L_14)), (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0* L_15 = ___keys0; int32_t L_16 = V_2; int32_t L_17 = ___lo1; Comparison_1_t8DE3221733CF5C3D7158DF8B83A8673B982861BC * L_18 = ___comparer3; (( void (*) (KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0*, int32_t, int32_t, int32_t, Comparison_1_t8DE3221733CF5C3D7158DF8B83A8673B982861BC *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)->methodPointer)((KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0*)L_15, (int32_t)1, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_16, (int32_t)1)), (int32_t)L_17, (Comparison_1_t8DE3221733CF5C3D7158DF8B83A8673B982861BC *)L_18, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)); int32_t L_19 = V_2; V_2 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_19, (int32_t)1)); } IL_003e: { int32_t L_20 = V_2; if ((((int32_t)L_20) > ((int32_t)1))) { goto IL_0022; } } { return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Collections.Generic.KeyValuePair`2<UnityEngine.Vector3,System.Object>>::DownHeap(T[],System.Int32,System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_DownHeap_m6BB5F1002CAF18557568E6483C141C8A097AEEB2_gshared (KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0* ___keys0, int32_t ___i1, int32_t ___n2, int32_t ___lo3, Comparison_1_t8DE3221733CF5C3D7158DF8B83A8673B982861BC * ___comparer4, const RuntimeMethod* method) { KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D V_0; memset((&V_0), 0, sizeof(V_0)); int32_t V_1 = 0; { KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0* L_0 = ___keys0; int32_t L_1 = ___lo3; int32_t L_2 = ___i1; NullCheck(L_0); int32_t L_3 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_1, (int32_t)L_2)), (int32_t)1)); KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D L_4 = (KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D )(L_0)->GetAt(static_cast<il2cpp_array_size_t>(L_3)); V_0 = (KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D )L_4; goto IL_0067; } IL_000e: { int32_t L_5 = ___i1; V_1 = (int32_t)((int32_t)il2cpp_codegen_multiply((int32_t)2, (int32_t)L_5)); int32_t L_6 = V_1; int32_t L_7 = ___n2; if ((((int32_t)L_6) >= ((int32_t)L_7))) { goto IL_0038; } } { Comparison_1_t8DE3221733CF5C3D7158DF8B83A8673B982861BC * L_8 = ___comparer4; KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0* L_9 = ___keys0; int32_t L_10 = ___lo3; int32_t L_11 = V_1; NullCheck(L_9); int32_t L_12 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_10, (int32_t)L_11)), (int32_t)1)); KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D L_13 = (KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D )(L_9)->GetAt(static_cast<il2cpp_array_size_t>(L_12)); KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0* L_14 = ___keys0; int32_t L_15 = ___lo3; int32_t L_16 = V_1; NullCheck(L_14); int32_t L_17 = ((int32_t)il2cpp_codegen_add((int32_t)L_15, (int32_t)L_16)); KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D L_18 = (KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D )(L_14)->GetAt(static_cast<il2cpp_array_size_t>(L_17)); NullCheck((Comparison_1_t8DE3221733CF5C3D7158DF8B83A8673B982861BC *)L_8); int32_t L_19; L_19 = (( int32_t (*) (Comparison_1_t8DE3221733CF5C3D7158DF8B83A8673B982861BC *, KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D , KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t8DE3221733CF5C3D7158DF8B83A8673B982861BC *)L_8, (KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D )L_13, (KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D )L_18, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_19) >= ((int32_t)0))) { goto IL_0038; } } { int32_t L_20 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_20, (int32_t)1)); } IL_0038: { Comparison_1_t8DE3221733CF5C3D7158DF8B83A8673B982861BC * L_21 = ___comparer4; KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D L_22 = V_0; KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0* L_23 = ___keys0; int32_t L_24 = ___lo3; int32_t L_25 = V_1; NullCheck(L_23); int32_t L_26 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_24, (int32_t)L_25)), (int32_t)1)); KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D L_27 = (KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D )(L_23)->GetAt(static_cast<il2cpp_array_size_t>(L_26)); NullCheck((Comparison_1_t8DE3221733CF5C3D7158DF8B83A8673B982861BC *)L_21); int32_t L_28; L_28 = (( int32_t (*) (Comparison_1_t8DE3221733CF5C3D7158DF8B83A8673B982861BC *, KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D , KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t8DE3221733CF5C3D7158DF8B83A8673B982861BC *)L_21, (KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D )L_22, (KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D )L_27, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_28) >= ((int32_t)0))) { goto IL_006d; } } { KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0* L_29 = ___keys0; int32_t L_30 = ___lo3; int32_t L_31 = ___i1; KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0* L_32 = ___keys0; int32_t L_33 = ___lo3; int32_t L_34 = V_1; NullCheck(L_32); int32_t L_35 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_33, (int32_t)L_34)), (int32_t)1)); KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D L_36 = (KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D )(L_32)->GetAt(static_cast<il2cpp_array_size_t>(L_35)); NullCheck(L_29); (L_29)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_30, (int32_t)L_31)), (int32_t)1))), (KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D )L_36); int32_t L_37 = V_1; ___i1 = (int32_t)L_37; } IL_0067: { int32_t L_38 = ___i1; int32_t L_39 = ___n2; if ((((int32_t)L_38) <= ((int32_t)((int32_t)((int32_t)L_39/(int32_t)2))))) { goto IL_000e; } } IL_006d: { KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0* L_40 = ___keys0; int32_t L_41 = ___lo3; int32_t L_42 = ___i1; KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D L_43 = V_0; NullCheck(L_40); (L_40)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_41, (int32_t)L_42)), (int32_t)1))), (KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D )L_43); return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Collections.Generic.KeyValuePair`2<UnityEngine.Vector3,System.Object>>::InsertionSort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_InsertionSort_mB4DE6EB9F7B904275373EA250BCA9A178AFE5742_gshared (KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0* ___keys0, int32_t ___lo1, int32_t ___hi2, Comparison_1_t8DE3221733CF5C3D7158DF8B83A8673B982861BC * ___comparer3, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D V_2; memset((&V_2), 0, sizeof(V_2)); { int32_t L_0 = ___lo1; V_0 = (int32_t)L_0; goto IL_0049; } IL_0004: { int32_t L_1 = V_0; V_1 = (int32_t)L_1; KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0* L_2 = ___keys0; int32_t L_3 = V_0; NullCheck(L_2); int32_t L_4 = ((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)1)); KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D L_5 = (KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D )(L_2)->GetAt(static_cast<il2cpp_array_size_t>(L_4)); V_2 = (KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D )L_5; goto IL_0026; } IL_0012: { KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0* L_6 = ___keys0; int32_t L_7 = V_1; KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0* L_8 = ___keys0; int32_t L_9 = V_1; NullCheck(L_8); int32_t L_10 = L_9; KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D L_11 = (KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D )(L_8)->GetAt(static_cast<il2cpp_array_size_t>(L_10)); NullCheck(L_6); (L_6)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add((int32_t)L_7, (int32_t)1))), (KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D )L_11); int32_t L_12 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_12, (int32_t)1)); } IL_0026: { int32_t L_13 = V_1; int32_t L_14 = ___lo1; if ((((int32_t)L_13) < ((int32_t)L_14))) { goto IL_003b; } } { Comparison_1_t8DE3221733CF5C3D7158DF8B83A8673B982861BC * L_15 = ___comparer3; KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D L_16 = V_2; KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0* L_17 = ___keys0; int32_t L_18 = V_1; NullCheck(L_17); int32_t L_19 = L_18; KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D L_20 = (KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D )(L_17)->GetAt(static_cast<il2cpp_array_size_t>(L_19)); NullCheck((Comparison_1_t8DE3221733CF5C3D7158DF8B83A8673B982861BC *)L_15); int32_t L_21; L_21 = (( int32_t (*) (Comparison_1_t8DE3221733CF5C3D7158DF8B83A8673B982861BC *, KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D , KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t8DE3221733CF5C3D7158DF8B83A8673B982861BC *)L_15, (KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D )L_16, (KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D )L_20, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_21) < ((int32_t)0))) { goto IL_0012; } } IL_003b: { KeyValuePair_2U5BU5D_t344286C6C07CC03F2F680AF75E17EAFD6E870CF0* L_22 = ___keys0; int32_t L_23 = V_1; KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D L_24 = V_2; NullCheck(L_22); (L_22)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add((int32_t)L_23, (int32_t)1))), (KeyValuePair_2_t7C40DFD3E4598A1814263BCC6543EBD170B7664D )L_24); int32_t L_25 = V_0; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_25, (int32_t)1)); } IL_0049: { int32_t L_26 = V_0; int32_t L_27 = ___hi2; if ((((int32_t)L_26) < ((int32_t)L_27))) { goto IL_0004; } } { return; } } #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Void System.Collections.Generic.ArraySortHelper`1<System.Collections.Generic.KeyValuePair`2<UnityEngine.Experimental.TerrainAPI.TerrainUtility/TerrainMap/TileCoord,System.Object>>::Sort(T[],System.Int32,System.Int32,System.Collections.Generic.IComparer`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Sort_mD3F6692CE32B698F3E7FAD21C2538C2C12419B6E_gshared (KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C* ___keys0, int32_t ___index1, int32_t ___length2, RuntimeObject* ___comparer3, const RuntimeMethod* method) { Exception_t * V_0 = NULL; il2cpp::utils::ExceptionSupportStack<RuntimeObject*, 1> __active_exceptions; il2cpp::utils::ExceptionSupportStack<int32_t, 2> __leave_targets; IL_0000: try { // begin try (depth: 1) { RuntimeObject* L_0 = ___comparer3; if (L_0) { goto IL_000a; } } IL_0003: { Comparer_1_t8851ADD4CD7425275A30FE07841E93EBE6A5318A * L_1; L_1 = (( Comparer_1_t8851ADD4CD7425275A30FE07841E93EBE6A5318A * (*) (const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)->methodPointer)(/*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)); ___comparer3 = (RuntimeObject*)L_1; } IL_000a: { KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C* L_2 = ___keys0; int32_t L_3 = ___index1; int32_t L_4 = ___length2; RuntimeObject* L_5 = ___comparer3; RuntimeObject* L_6 = (RuntimeObject*)L_5; Comparison_1_t1D33596C3D38DCFBCA6A4E789D13F0A3022A3D6D * L_7 = (Comparison_1_t1D33596C3D38DCFBCA6A4E789D13F0A3022A3D6D *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 4)); (( void (*) (Comparison_1_t1D33596C3D38DCFBCA6A4E789D13F0A3022A3D6D *, RuntimeObject *, intptr_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 5)->methodPointer)(L_7, (RuntimeObject *)L_6, (intptr_t)((intptr_t)GetInterfaceMethodInfo(L_6, 0, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 3))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 5)); (( void (*) (KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C*, int32_t, int32_t, Comparison_1_t1D33596C3D38DCFBCA6A4E789D13F0A3022A3D6D *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)->methodPointer)((KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C*)L_2, (int32_t)L_3, (int32_t)L_4, (Comparison_1_t1D33596C3D38DCFBCA6A4E789D13F0A3022A3D6D *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)); goto IL_0037; } } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&IndexOutOfRangeException_tDC9EF7A0346CE39E54DA1083F07BE6DFC3CE2EDD_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_0021; } if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&Exception_t_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_002a; } throw e; } CATCH_0021: { // begin catch(System.IndexOutOfRangeException) RuntimeObject* L_8 = ___comparer3; IntrospectiveSortUtilities_ThrowOrIgnoreBadComparer_mE23A8103696FA67F874E7DA86625BB3921DB801F((RuntimeObject *)L_8, /*hidden argument*/NULL); IL2CPP_POP_ACTIVE_EXCEPTION(); goto IL_0037; } // end catch (depth: 1) CATCH_002a: { // begin catch(System.Exception) V_0 = (Exception_t *)((Exception_t *)IL2CPP_GET_ACTIVE_EXCEPTION(Exception_t *)); Exception_t * L_9 = V_0; InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB * L_10 = (InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB *)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB_il2cpp_TypeInfo_var))); InvalidOperationException__ctor_m4A65916B1316FBF45ECDF1FF7FAC9E3CA30C112C(L_10, (String_t*)((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral6EDB6C049ED9617FA335A262A29BF30B15221AEA)), (Exception_t *)L_9, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_10, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArraySortHelper_1_Sort_mD3F6692CE32B698F3E7FAD21C2538C2C12419B6E_RuntimeMethod_var))); } // end catch (depth: 1) IL_0037: { return; } } // System.Int32 System.Collections.Generic.ArraySortHelper`1<System.Collections.Generic.KeyValuePair`2<UnityEngine.Experimental.TerrainAPI.TerrainUtility/TerrainMap/TileCoord,System.Object>>::BinarySearch(T[],System.Int32,System.Int32,T,System.Collections.Generic.IComparer`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t ArraySortHelper_1_BinarySearch_m77C7A16CED764BFEEC02DADDCAD3ECBE37023DC7_gshared (KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C* ___array0, int32_t ___index1, int32_t ___length2, KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 ___value3, RuntimeObject* ___comparer4, const RuntimeMethod* method) { int32_t V_0 = 0; Exception_t * V_1 = NULL; il2cpp::utils::ExceptionSupportStack<RuntimeObject*, 1> __active_exceptions; il2cpp::utils::ExceptionSupportStack<int32_t, 1> __leave_targets; IL_0000: try { // begin try (depth: 1) { RuntimeObject* L_0 = ___comparer4; if (L_0) { goto IL_000b; } } IL_0004: { Comparer_1_t8851ADD4CD7425275A30FE07841E93EBE6A5318A * L_1; L_1 = (( Comparer_1_t8851ADD4CD7425275A30FE07841E93EBE6A5318A * (*) (const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)->methodPointer)(/*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)); ___comparer4 = (RuntimeObject*)L_1; } IL_000b: { KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C* L_2 = ___array0; int32_t L_3 = ___index1; int32_t L_4 = ___length2; KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 L_5 = ___value3; RuntimeObject* L_6 = ___comparer4; int32_t L_7; L_7 = (( int32_t (*) (KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C*, int32_t, int32_t, KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 , RuntimeObject*, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 8)->methodPointer)((KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C*)L_2, (int32_t)L_3, (int32_t)L_4, (KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 )L_5, (RuntimeObject*)L_6, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 8)); V_0 = (int32_t)L_7; goto IL_0026; } } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&Exception_t_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_0019; } throw e; } CATCH_0019: { // begin catch(System.Exception) V_1 = (Exception_t *)((Exception_t *)IL2CPP_GET_ACTIVE_EXCEPTION(Exception_t *)); Exception_t * L_8 = V_1; InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB * L_9 = (InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB *)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB_il2cpp_TypeInfo_var))); InvalidOperationException__ctor_m4A65916B1316FBF45ECDF1FF7FAC9E3CA30C112C(L_9, (String_t*)((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral6EDB6C049ED9617FA335A262A29BF30B15221AEA)), (Exception_t *)L_8, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_9, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArraySortHelper_1_BinarySearch_m77C7A16CED764BFEEC02DADDCAD3ECBE37023DC7_RuntimeMethod_var))); } // end catch (depth: 1) IL_0026: { int32_t L_10 = V_0; return (int32_t)L_10; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Collections.Generic.KeyValuePair`2<UnityEngine.Experimental.TerrainAPI.TerrainUtility/TerrainMap/TileCoord,System.Object>>::Sort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Sort_m9BA141D9F66286C631A0AA624A4C8109B6739195_gshared (KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C* ___keys0, int32_t ___index1, int32_t ___length2, Comparison_1_t1D33596C3D38DCFBCA6A4E789D13F0A3022A3D6D * ___comparer3, const RuntimeMethod* method) { Exception_t * V_0 = NULL; il2cpp::utils::ExceptionSupportStack<RuntimeObject*, 1> __active_exceptions; il2cpp::utils::ExceptionSupportStack<int32_t, 2> __leave_targets; IL_0000: try { // begin try (depth: 1) KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C* L_0 = ___keys0; int32_t L_1 = ___index1; int32_t L_2 = ___length2; Comparison_1_t1D33596C3D38DCFBCA6A4E789D13F0A3022A3D6D * L_3 = ___comparer3; (( void (*) (KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C*, int32_t, int32_t, Comparison_1_t1D33596C3D38DCFBCA6A4E789D13F0A3022A3D6D *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)->methodPointer)((KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C*)L_0, (int32_t)L_1, (int32_t)L_2, (Comparison_1_t1D33596C3D38DCFBCA6A4E789D13F0A3022A3D6D *)L_3, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)); goto IL_0021; } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&IndexOutOfRangeException_tDC9EF7A0346CE39E54DA1083F07BE6DFC3CE2EDD_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_000b; } if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&Exception_t_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_0014; } throw e; } CATCH_000b: { // begin catch(System.IndexOutOfRangeException) Comparison_1_t1D33596C3D38DCFBCA6A4E789D13F0A3022A3D6D * L_4 = ___comparer3; IntrospectiveSortUtilities_ThrowOrIgnoreBadComparer_mE23A8103696FA67F874E7DA86625BB3921DB801F((RuntimeObject *)L_4, /*hidden argument*/NULL); IL2CPP_POP_ACTIVE_EXCEPTION(); goto IL_0021; } // end catch (depth: 1) CATCH_0014: { // begin catch(System.Exception) V_0 = (Exception_t *)((Exception_t *)IL2CPP_GET_ACTIVE_EXCEPTION(Exception_t *)); Exception_t * L_5 = V_0; InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB * L_6 = (InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB *)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB_il2cpp_TypeInfo_var))); InvalidOperationException__ctor_m4A65916B1316FBF45ECDF1FF7FAC9E3CA30C112C(L_6, (String_t*)((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral6EDB6C049ED9617FA335A262A29BF30B15221AEA)), (Exception_t *)L_5, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_6, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArraySortHelper_1_Sort_m9BA141D9F66286C631A0AA624A4C8109B6739195_RuntimeMethod_var))); } // end catch (depth: 1) IL_0021: { return; } } // System.Int32 System.Collections.Generic.ArraySortHelper`1<System.Collections.Generic.KeyValuePair`2<UnityEngine.Experimental.TerrainAPI.TerrainUtility/TerrainMap/TileCoord,System.Object>>::InternalBinarySearch(T[],System.Int32,System.Int32,T,System.Collections.Generic.IComparer`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t ArraySortHelper_1_InternalBinarySearch_m4BB05DE01BB63ABC031944C48F3545507E16AFFC_gshared (KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C* ___array0, int32_t ___index1, int32_t ___length2, KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 ___value3, RuntimeObject* ___comparer4, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; int32_t V_2 = 0; int32_t V_3 = 0; { int32_t L_0 = ___index1; V_0 = (int32_t)L_0; int32_t L_1 = ___index1; int32_t L_2 = ___length2; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_1, (int32_t)L_2)), (int32_t)1)); goto IL_0035; } IL_000a: { int32_t L_3 = V_0; int32_t L_4 = V_1; int32_t L_5 = V_0; V_2 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)((int32_t)((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_4, (int32_t)L_5))>>(int32_t)1)))); RuntimeObject* L_6 = ___comparer4; KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C* L_7 = ___array0; int32_t L_8 = V_2; NullCheck(L_7); int32_t L_9 = L_8; KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 L_10 = (KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 )(L_7)->GetAt(static_cast<il2cpp_array_size_t>(L_9)); KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 L_11 = ___value3; NullCheck((RuntimeObject*)L_6); int32_t L_12; L_12 = InterfaceFuncInvoker2< int32_t, KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 , KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 >::Invoke(0 /* System.Int32 System.Collections.Generic.IComparer`1<System.Collections.Generic.KeyValuePair`2<UnityEngine.Experimental.TerrainAPI.TerrainUtility/TerrainMap/TileCoord,System.Object>>::Compare(T,T) */, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 3), (RuntimeObject*)L_6, (KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 )L_10, (KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 )L_11); V_3 = (int32_t)L_12; int32_t L_13 = V_3; if (L_13) { goto IL_0027; } } { int32_t L_14 = V_2; return (int32_t)L_14; } IL_0027: { int32_t L_15 = V_3; if ((((int32_t)L_15) >= ((int32_t)0))) { goto IL_0031; } } { int32_t L_16 = V_2; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_16, (int32_t)1)); goto IL_0035; } IL_0031: { int32_t L_17 = V_2; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_17, (int32_t)1)); } IL_0035: { int32_t L_18 = V_0; int32_t L_19 = V_1; if ((((int32_t)L_18) <= ((int32_t)L_19))) { goto IL_000a; } } { int32_t L_20 = V_0; return (int32_t)((~L_20)); } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Collections.Generic.KeyValuePair`2<UnityEngine.Experimental.TerrainAPI.TerrainUtility/TerrainMap/TileCoord,System.Object>>::SwapIfGreater(T[],System.Comparison`1<T>,System.Int32,System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_SwapIfGreater_mB231A170D8E7E6E2356189B428039E56B992BE67_gshared (KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C* ___keys0, Comparison_1_t1D33596C3D38DCFBCA6A4E789D13F0A3022A3D6D * ___comparer1, int32_t ___a2, int32_t ___b3, const RuntimeMethod* method) { KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 V_0; memset((&V_0), 0, sizeof(V_0)); { int32_t L_0 = ___a2; int32_t L_1 = ___b3; if ((((int32_t)L_0) == ((int32_t)L_1))) { goto IL_0039; } } { Comparison_1_t1D33596C3D38DCFBCA6A4E789D13F0A3022A3D6D * L_2 = ___comparer1; KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C* L_3 = ___keys0; int32_t L_4 = ___a2; NullCheck(L_3); int32_t L_5 = L_4; KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 L_6 = (KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 )(L_3)->GetAt(static_cast<il2cpp_array_size_t>(L_5)); KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C* L_7 = ___keys0; int32_t L_8 = ___b3; NullCheck(L_7); int32_t L_9 = L_8; KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 L_10 = (KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 )(L_7)->GetAt(static_cast<il2cpp_array_size_t>(L_9)); NullCheck((Comparison_1_t1D33596C3D38DCFBCA6A4E789D13F0A3022A3D6D *)L_2); int32_t L_11; L_11 = (( int32_t (*) (Comparison_1_t1D33596C3D38DCFBCA6A4E789D13F0A3022A3D6D *, KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 , KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t1D33596C3D38DCFBCA6A4E789D13F0A3022A3D6D *)L_2, (KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 )L_6, (KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 )L_10, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_11) <= ((int32_t)0))) { goto IL_0039; } } { KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C* L_12 = ___keys0; int32_t L_13 = ___a2; NullCheck(L_12); int32_t L_14 = L_13; KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 L_15 = (KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 )(L_12)->GetAt(static_cast<il2cpp_array_size_t>(L_14)); V_0 = (KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 )L_15; KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C* L_16 = ___keys0; int32_t L_17 = ___a2; KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C* L_18 = ___keys0; int32_t L_19 = ___b3; NullCheck(L_18); int32_t L_20 = L_19; KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 L_21 = (KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 )(L_18)->GetAt(static_cast<il2cpp_array_size_t>(L_20)); NullCheck(L_16); (L_16)->SetAt(static_cast<il2cpp_array_size_t>(L_17), (KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 )L_21); KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C* L_22 = ___keys0; int32_t L_23 = ___b3; KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 L_24 = V_0; NullCheck(L_22); (L_22)->SetAt(static_cast<il2cpp_array_size_t>(L_23), (KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 )L_24); } IL_0039: { return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Collections.Generic.KeyValuePair`2<UnityEngine.Experimental.TerrainAPI.TerrainUtility/TerrainMap/TileCoord,System.Object>>::Swap(T[],System.Int32,System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Swap_m8735DD25D55AA50F7A4297307C2AE6E5404391F5_gshared (KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C* ___a0, int32_t ___i1, int32_t ___j2, const RuntimeMethod* method) { KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 V_0; memset((&V_0), 0, sizeof(V_0)); { int32_t L_0 = ___i1; int32_t L_1 = ___j2; if ((((int32_t)L_0) == ((int32_t)L_1))) { goto IL_0022; } } { KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C* L_2 = ___a0; int32_t L_3 = ___i1; NullCheck(L_2); int32_t L_4 = L_3; KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 L_5 = (KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 )(L_2)->GetAt(static_cast<il2cpp_array_size_t>(L_4)); V_0 = (KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 )L_5; KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C* L_6 = ___a0; int32_t L_7 = ___i1; KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C* L_8 = ___a0; int32_t L_9 = ___j2; NullCheck(L_8); int32_t L_10 = L_9; KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 L_11 = (KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 )(L_8)->GetAt(static_cast<il2cpp_array_size_t>(L_10)); NullCheck(L_6); (L_6)->SetAt(static_cast<il2cpp_array_size_t>(L_7), (KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 )L_11); KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C* L_12 = ___a0; int32_t L_13 = ___j2; KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 L_14 = V_0; NullCheck(L_12); (L_12)->SetAt(static_cast<il2cpp_array_size_t>(L_13), (KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 )L_14); } IL_0022: { return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Collections.Generic.KeyValuePair`2<UnityEngine.Experimental.TerrainAPI.TerrainUtility/TerrainMap/TileCoord,System.Object>>::IntrospectiveSort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_IntrospectiveSort_m605E29CCDCC6492791E45D0811F274EA0DF25F98_gshared (KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C* ___keys0, int32_t ___left1, int32_t ___length2, Comparison_1_t1D33596C3D38DCFBCA6A4E789D13F0A3022A3D6D * ___comparer3, const RuntimeMethod* method) { { int32_t L_0 = ___length2; if ((((int32_t)L_0) >= ((int32_t)2))) { goto IL_0005; } } { return; } IL_0005: { KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C* L_1 = ___keys0; int32_t L_2 = ___left1; int32_t L_3 = ___length2; int32_t L_4 = ___left1; KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C* L_5 = ___keys0; NullCheck(L_5); int32_t L_6; L_6 = IntrospectiveSortUtilities_FloorLog2_m05ECB6CAC7A23087D9EC2C2A4DDCFE12272C3872((int32_t)((int32_t)((int32_t)(((RuntimeArray*)L_5)->max_length))), /*hidden argument*/NULL); Comparison_1_t1D33596C3D38DCFBCA6A4E789D13F0A3022A3D6D * L_7 = ___comparer3; (( void (*) (KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C*, int32_t, int32_t, int32_t, Comparison_1_t1D33596C3D38DCFBCA6A4E789D13F0A3022A3D6D *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)->methodPointer)((KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C*)L_1, (int32_t)L_2, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)L_4)), (int32_t)1)), (int32_t)((int32_t)il2cpp_codegen_multiply((int32_t)2, (int32_t)L_6)), (Comparison_1_t1D33596C3D38DCFBCA6A4E789D13F0A3022A3D6D *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)); return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Collections.Generic.KeyValuePair`2<UnityEngine.Experimental.TerrainAPI.TerrainUtility/TerrainMap/TileCoord,System.Object>>::IntroSort(T[],System.Int32,System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_IntroSort_mF858EEF014EA0842D2A3DE4190D2CA7607DD8D51_gshared (KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C* ___keys0, int32_t ___lo1, int32_t ___hi2, int32_t ___depthLimit3, Comparison_1_t1D33596C3D38DCFBCA6A4E789D13F0A3022A3D6D * ___comparer4, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; { goto IL_0086; } IL_0005: { int32_t L_0 = ___hi2; int32_t L_1 = ___lo1; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_0, (int32_t)L_1)), (int32_t)1)); int32_t L_2 = V_0; if ((((int32_t)L_2) > ((int32_t)((int32_t)16)))) { goto IL_0056; } } { int32_t L_3 = V_0; if ((!(((uint32_t)L_3) == ((uint32_t)1)))) { goto IL_0015; } } { return; } IL_0015: { int32_t L_4 = V_0; if ((!(((uint32_t)L_4) == ((uint32_t)2)))) { goto IL_0024; } } { KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C* L_5 = ___keys0; Comparison_1_t1D33596C3D38DCFBCA6A4E789D13F0A3022A3D6D * L_6 = ___comparer4; int32_t L_7 = ___lo1; int32_t L_8 = ___hi2; (( void (*) (KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C*, Comparison_1_t1D33596C3D38DCFBCA6A4E789D13F0A3022A3D6D *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C*)L_5, (Comparison_1_t1D33596C3D38DCFBCA6A4E789D13F0A3022A3D6D *)L_6, (int32_t)L_7, (int32_t)L_8, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); return; } IL_0024: { int32_t L_9 = V_0; if ((!(((uint32_t)L_9) == ((uint32_t)3)))) { goto IL_004b; } } { KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C* L_10 = ___keys0; Comparison_1_t1D33596C3D38DCFBCA6A4E789D13F0A3022A3D6D * L_11 = ___comparer4; int32_t L_12 = ___lo1; int32_t L_13 = ___hi2; (( void (*) (KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C*, Comparison_1_t1D33596C3D38DCFBCA6A4E789D13F0A3022A3D6D *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C*)L_10, (Comparison_1_t1D33596C3D38DCFBCA6A4E789D13F0A3022A3D6D *)L_11, (int32_t)L_12, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_13, (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C* L_14 = ___keys0; Comparison_1_t1D33596C3D38DCFBCA6A4E789D13F0A3022A3D6D * L_15 = ___comparer4; int32_t L_16 = ___lo1; int32_t L_17 = ___hi2; (( void (*) (KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C*, Comparison_1_t1D33596C3D38DCFBCA6A4E789D13F0A3022A3D6D *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C*)L_14, (Comparison_1_t1D33596C3D38DCFBCA6A4E789D13F0A3022A3D6D *)L_15, (int32_t)L_16, (int32_t)L_17, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C* L_18 = ___keys0; Comparison_1_t1D33596C3D38DCFBCA6A4E789D13F0A3022A3D6D * L_19 = ___comparer4; int32_t L_20 = ___hi2; int32_t L_21 = ___hi2; (( void (*) (KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C*, Comparison_1_t1D33596C3D38DCFBCA6A4E789D13F0A3022A3D6D *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C*)L_18, (Comparison_1_t1D33596C3D38DCFBCA6A4E789D13F0A3022A3D6D *)L_19, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_20, (int32_t)1)), (int32_t)L_21, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); return; } IL_004b: { KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C* L_22 = ___keys0; int32_t L_23 = ___lo1; int32_t L_24 = ___hi2; Comparison_1_t1D33596C3D38DCFBCA6A4E789D13F0A3022A3D6D * L_25 = ___comparer4; (( void (*) (KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C*, int32_t, int32_t, Comparison_1_t1D33596C3D38DCFBCA6A4E789D13F0A3022A3D6D *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 12)->methodPointer)((KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C*)L_22, (int32_t)L_23, (int32_t)L_24, (Comparison_1_t1D33596C3D38DCFBCA6A4E789D13F0A3022A3D6D *)L_25, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 12)); return; } IL_0056: { int32_t L_26 = ___depthLimit3; if (L_26) { goto IL_0064; } } { KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C* L_27 = ___keys0; int32_t L_28 = ___lo1; int32_t L_29 = ___hi2; Comparison_1_t1D33596C3D38DCFBCA6A4E789D13F0A3022A3D6D * L_30 = ___comparer4; (( void (*) (KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C*, int32_t, int32_t, Comparison_1_t1D33596C3D38DCFBCA6A4E789D13F0A3022A3D6D *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 13)->methodPointer)((KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C*)L_27, (int32_t)L_28, (int32_t)L_29, (Comparison_1_t1D33596C3D38DCFBCA6A4E789D13F0A3022A3D6D *)L_30, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 13)); return; } IL_0064: { int32_t L_31 = ___depthLimit3; ___depthLimit3 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_31, (int32_t)1)); KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C* L_32 = ___keys0; int32_t L_33 = ___lo1; int32_t L_34 = ___hi2; Comparison_1_t1D33596C3D38DCFBCA6A4E789D13F0A3022A3D6D * L_35 = ___comparer4; int32_t L_36; L_36 = (( int32_t (*) (KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C*, int32_t, int32_t, Comparison_1_t1D33596C3D38DCFBCA6A4E789D13F0A3022A3D6D *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 14)->methodPointer)((KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C*)L_32, (int32_t)L_33, (int32_t)L_34, (Comparison_1_t1D33596C3D38DCFBCA6A4E789D13F0A3022A3D6D *)L_35, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 14)); V_1 = (int32_t)L_36; KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C* L_37 = ___keys0; int32_t L_38 = V_1; int32_t L_39 = ___hi2; int32_t L_40 = ___depthLimit3; Comparison_1_t1D33596C3D38DCFBCA6A4E789D13F0A3022A3D6D * L_41 = ___comparer4; (( void (*) (KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C*, int32_t, int32_t, int32_t, Comparison_1_t1D33596C3D38DCFBCA6A4E789D13F0A3022A3D6D *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)->methodPointer)((KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C*)L_37, (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_38, (int32_t)1)), (int32_t)L_39, (int32_t)L_40, (Comparison_1_t1D33596C3D38DCFBCA6A4E789D13F0A3022A3D6D *)L_41, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)); int32_t L_42 = V_1; ___hi2 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_42, (int32_t)1)); } IL_0086: { int32_t L_43 = ___hi2; int32_t L_44 = ___lo1; if ((((int32_t)L_43) > ((int32_t)L_44))) { goto IL_0005; } } { return; } } // System.Int32 System.Collections.Generic.ArraySortHelper`1<System.Collections.Generic.KeyValuePair`2<UnityEngine.Experimental.TerrainAPI.TerrainUtility/TerrainMap/TileCoord,System.Object>>::PickPivotAndPartition(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t ArraySortHelper_1_PickPivotAndPartition_mE8E6C33A87613F1EDBC1674FC83C7C07EEFD6CC8_gshared (KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C* ___keys0, int32_t ___lo1, int32_t ___hi2, Comparison_1_t1D33596C3D38DCFBCA6A4E789D13F0A3022A3D6D * ___comparer3, const RuntimeMethod* method) { int32_t V_0 = 0; KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 V_1; memset((&V_1), 0, sizeof(V_1)); int32_t V_2 = 0; int32_t V_3 = 0; { int32_t L_0 = ___lo1; int32_t L_1 = ___hi2; int32_t L_2 = ___lo1; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_0, (int32_t)((int32_t)((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_1, (int32_t)L_2))/(int32_t)2)))); KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C* L_3 = ___keys0; Comparison_1_t1D33596C3D38DCFBCA6A4E789D13F0A3022A3D6D * L_4 = ___comparer3; int32_t L_5 = ___lo1; int32_t L_6 = V_0; (( void (*) (KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C*, Comparison_1_t1D33596C3D38DCFBCA6A4E789D13F0A3022A3D6D *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C*)L_3, (Comparison_1_t1D33596C3D38DCFBCA6A4E789D13F0A3022A3D6D *)L_4, (int32_t)L_5, (int32_t)L_6, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C* L_7 = ___keys0; Comparison_1_t1D33596C3D38DCFBCA6A4E789D13F0A3022A3D6D * L_8 = ___comparer3; int32_t L_9 = ___lo1; int32_t L_10 = ___hi2; (( void (*) (KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C*, Comparison_1_t1D33596C3D38DCFBCA6A4E789D13F0A3022A3D6D *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C*)L_7, (Comparison_1_t1D33596C3D38DCFBCA6A4E789D13F0A3022A3D6D *)L_8, (int32_t)L_9, (int32_t)L_10, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C* L_11 = ___keys0; Comparison_1_t1D33596C3D38DCFBCA6A4E789D13F0A3022A3D6D * L_12 = ___comparer3; int32_t L_13 = V_0; int32_t L_14 = ___hi2; (( void (*) (KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C*, Comparison_1_t1D33596C3D38DCFBCA6A4E789D13F0A3022A3D6D *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C*)L_11, (Comparison_1_t1D33596C3D38DCFBCA6A4E789D13F0A3022A3D6D *)L_12, (int32_t)L_13, (int32_t)L_14, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C* L_15 = ___keys0; int32_t L_16 = V_0; NullCheck(L_15); int32_t L_17 = L_16; KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 L_18 = (KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 )(L_15)->GetAt(static_cast<il2cpp_array_size_t>(L_17)); V_1 = (KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 )L_18; KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C* L_19 = ___keys0; int32_t L_20 = V_0; int32_t L_21 = ___hi2; (( void (*) (KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C*)L_19, (int32_t)L_20, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_21, (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); int32_t L_22 = ___lo1; V_2 = (int32_t)L_22; int32_t L_23 = ___hi2; V_3 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_23, (int32_t)1)); goto IL_0073; } IL_003d: { Comparison_1_t1D33596C3D38DCFBCA6A4E789D13F0A3022A3D6D * L_24 = ___comparer3; KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C* L_25 = ___keys0; int32_t L_26 = V_2; int32_t L_27 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_26, (int32_t)1)); V_2 = (int32_t)L_27; NullCheck(L_25); int32_t L_28 = L_27; KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 L_29 = (KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 )(L_25)->GetAt(static_cast<il2cpp_array_size_t>(L_28)); KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 L_30 = V_1; NullCheck((Comparison_1_t1D33596C3D38DCFBCA6A4E789D13F0A3022A3D6D *)L_24); int32_t L_31; L_31 = (( int32_t (*) (Comparison_1_t1D33596C3D38DCFBCA6A4E789D13F0A3022A3D6D *, KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 , KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t1D33596C3D38DCFBCA6A4E789D13F0A3022A3D6D *)L_24, (KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 )L_29, (KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 )L_30, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_31) < ((int32_t)0))) { goto IL_003d; } } IL_0052: { Comparison_1_t1D33596C3D38DCFBCA6A4E789D13F0A3022A3D6D * L_32 = ___comparer3; KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 L_33 = V_1; KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C* L_34 = ___keys0; int32_t L_35 = V_3; int32_t L_36 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_35, (int32_t)1)); V_3 = (int32_t)L_36; NullCheck(L_34); int32_t L_37 = L_36; KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 L_38 = (KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 )(L_34)->GetAt(static_cast<il2cpp_array_size_t>(L_37)); NullCheck((Comparison_1_t1D33596C3D38DCFBCA6A4E789D13F0A3022A3D6D *)L_32); int32_t L_39; L_39 = (( int32_t (*) (Comparison_1_t1D33596C3D38DCFBCA6A4E789D13F0A3022A3D6D *, KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 , KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t1D33596C3D38DCFBCA6A4E789D13F0A3022A3D6D *)L_32, (KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 )L_33, (KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 )L_38, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_39) < ((int32_t)0))) { goto IL_0052; } } { int32_t L_40 = V_2; int32_t L_41 = V_3; if ((((int32_t)L_40) >= ((int32_t)L_41))) { goto IL_0077; } } { KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C* L_42 = ___keys0; int32_t L_43 = V_2; int32_t L_44 = V_3; (( void (*) (KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C*)L_42, (int32_t)L_43, (int32_t)L_44, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); } IL_0073: { int32_t L_45 = V_2; int32_t L_46 = V_3; if ((((int32_t)L_45) < ((int32_t)L_46))) { goto IL_003d; } } IL_0077: { KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C* L_47 = ___keys0; int32_t L_48 = V_2; int32_t L_49 = ___hi2; (( void (*) (KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C*)L_47, (int32_t)L_48, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_49, (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); int32_t L_50 = V_2; return (int32_t)L_50; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Collections.Generic.KeyValuePair`2<UnityEngine.Experimental.TerrainAPI.TerrainUtility/TerrainMap/TileCoord,System.Object>>::Heapsort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Heapsort_mC98391FA8415006A6D1788806C47EE9B487D4060_gshared (KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C* ___keys0, int32_t ___lo1, int32_t ___hi2, Comparison_1_t1D33596C3D38DCFBCA6A4E789D13F0A3022A3D6D * ___comparer3, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; int32_t V_2 = 0; { int32_t L_0 = ___hi2; int32_t L_1 = ___lo1; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_0, (int32_t)L_1)), (int32_t)1)); int32_t L_2 = V_0; V_1 = (int32_t)((int32_t)((int32_t)L_2/(int32_t)2)); goto IL_001a; } IL_000c: { KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C* L_3 = ___keys0; int32_t L_4 = V_1; int32_t L_5 = V_0; int32_t L_6 = ___lo1; Comparison_1_t1D33596C3D38DCFBCA6A4E789D13F0A3022A3D6D * L_7 = ___comparer3; (( void (*) (KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C*, int32_t, int32_t, int32_t, Comparison_1_t1D33596C3D38DCFBCA6A4E789D13F0A3022A3D6D *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)->methodPointer)((KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C*)L_3, (int32_t)L_4, (int32_t)L_5, (int32_t)L_6, (Comparison_1_t1D33596C3D38DCFBCA6A4E789D13F0A3022A3D6D *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)); int32_t L_8 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_8, (int32_t)1)); } IL_001a: { int32_t L_9 = V_1; if ((((int32_t)L_9) >= ((int32_t)1))) { goto IL_000c; } } { int32_t L_10 = V_0; V_2 = (int32_t)L_10; goto IL_003e; } IL_0022: { KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C* L_11 = ___keys0; int32_t L_12 = ___lo1; int32_t L_13 = ___lo1; int32_t L_14 = V_2; (( void (*) (KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C*)L_11, (int32_t)L_12, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_13, (int32_t)L_14)), (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C* L_15 = ___keys0; int32_t L_16 = V_2; int32_t L_17 = ___lo1; Comparison_1_t1D33596C3D38DCFBCA6A4E789D13F0A3022A3D6D * L_18 = ___comparer3; (( void (*) (KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C*, int32_t, int32_t, int32_t, Comparison_1_t1D33596C3D38DCFBCA6A4E789D13F0A3022A3D6D *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)->methodPointer)((KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C*)L_15, (int32_t)1, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_16, (int32_t)1)), (int32_t)L_17, (Comparison_1_t1D33596C3D38DCFBCA6A4E789D13F0A3022A3D6D *)L_18, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)); int32_t L_19 = V_2; V_2 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_19, (int32_t)1)); } IL_003e: { int32_t L_20 = V_2; if ((((int32_t)L_20) > ((int32_t)1))) { goto IL_0022; } } { return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Collections.Generic.KeyValuePair`2<UnityEngine.Experimental.TerrainAPI.TerrainUtility/TerrainMap/TileCoord,System.Object>>::DownHeap(T[],System.Int32,System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_DownHeap_mB4F6A88C2DA0F722B42E4B5B20F6B8AF1387D5B5_gshared (KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C* ___keys0, int32_t ___i1, int32_t ___n2, int32_t ___lo3, Comparison_1_t1D33596C3D38DCFBCA6A4E789D13F0A3022A3D6D * ___comparer4, const RuntimeMethod* method) { KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 V_0; memset((&V_0), 0, sizeof(V_0)); int32_t V_1 = 0; { KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C* L_0 = ___keys0; int32_t L_1 = ___lo3; int32_t L_2 = ___i1; NullCheck(L_0); int32_t L_3 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_1, (int32_t)L_2)), (int32_t)1)); KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 L_4 = (KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 )(L_0)->GetAt(static_cast<il2cpp_array_size_t>(L_3)); V_0 = (KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 )L_4; goto IL_0067; } IL_000e: { int32_t L_5 = ___i1; V_1 = (int32_t)((int32_t)il2cpp_codegen_multiply((int32_t)2, (int32_t)L_5)); int32_t L_6 = V_1; int32_t L_7 = ___n2; if ((((int32_t)L_6) >= ((int32_t)L_7))) { goto IL_0038; } } { Comparison_1_t1D33596C3D38DCFBCA6A4E789D13F0A3022A3D6D * L_8 = ___comparer4; KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C* L_9 = ___keys0; int32_t L_10 = ___lo3; int32_t L_11 = V_1; NullCheck(L_9); int32_t L_12 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_10, (int32_t)L_11)), (int32_t)1)); KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 L_13 = (KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 )(L_9)->GetAt(static_cast<il2cpp_array_size_t>(L_12)); KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C* L_14 = ___keys0; int32_t L_15 = ___lo3; int32_t L_16 = V_1; NullCheck(L_14); int32_t L_17 = ((int32_t)il2cpp_codegen_add((int32_t)L_15, (int32_t)L_16)); KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 L_18 = (KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 )(L_14)->GetAt(static_cast<il2cpp_array_size_t>(L_17)); NullCheck((Comparison_1_t1D33596C3D38DCFBCA6A4E789D13F0A3022A3D6D *)L_8); int32_t L_19; L_19 = (( int32_t (*) (Comparison_1_t1D33596C3D38DCFBCA6A4E789D13F0A3022A3D6D *, KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 , KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t1D33596C3D38DCFBCA6A4E789D13F0A3022A3D6D *)L_8, (KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 )L_13, (KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 )L_18, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_19) >= ((int32_t)0))) { goto IL_0038; } } { int32_t L_20 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_20, (int32_t)1)); } IL_0038: { Comparison_1_t1D33596C3D38DCFBCA6A4E789D13F0A3022A3D6D * L_21 = ___comparer4; KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 L_22 = V_0; KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C* L_23 = ___keys0; int32_t L_24 = ___lo3; int32_t L_25 = V_1; NullCheck(L_23); int32_t L_26 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_24, (int32_t)L_25)), (int32_t)1)); KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 L_27 = (KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 )(L_23)->GetAt(static_cast<il2cpp_array_size_t>(L_26)); NullCheck((Comparison_1_t1D33596C3D38DCFBCA6A4E789D13F0A3022A3D6D *)L_21); int32_t L_28; L_28 = (( int32_t (*) (Comparison_1_t1D33596C3D38DCFBCA6A4E789D13F0A3022A3D6D *, KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 , KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t1D33596C3D38DCFBCA6A4E789D13F0A3022A3D6D *)L_21, (KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 )L_22, (KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 )L_27, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_28) >= ((int32_t)0))) { goto IL_006d; } } { KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C* L_29 = ___keys0; int32_t L_30 = ___lo3; int32_t L_31 = ___i1; KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C* L_32 = ___keys0; int32_t L_33 = ___lo3; int32_t L_34 = V_1; NullCheck(L_32); int32_t L_35 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_33, (int32_t)L_34)), (int32_t)1)); KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 L_36 = (KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 )(L_32)->GetAt(static_cast<il2cpp_array_size_t>(L_35)); NullCheck(L_29); (L_29)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_30, (int32_t)L_31)), (int32_t)1))), (KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 )L_36); int32_t L_37 = V_1; ___i1 = (int32_t)L_37; } IL_0067: { int32_t L_38 = ___i1; int32_t L_39 = ___n2; if ((((int32_t)L_38) <= ((int32_t)((int32_t)((int32_t)L_39/(int32_t)2))))) { goto IL_000e; } } IL_006d: { KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C* L_40 = ___keys0; int32_t L_41 = ___lo3; int32_t L_42 = ___i1; KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 L_43 = V_0; NullCheck(L_40); (L_40)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_41, (int32_t)L_42)), (int32_t)1))), (KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 )L_43); return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Collections.Generic.KeyValuePair`2<UnityEngine.Experimental.TerrainAPI.TerrainUtility/TerrainMap/TileCoord,System.Object>>::InsertionSort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_InsertionSort_m427B068F46141FA707E83FC2947D0B4C44E4C330_gshared (KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C* ___keys0, int32_t ___lo1, int32_t ___hi2, Comparison_1_t1D33596C3D38DCFBCA6A4E789D13F0A3022A3D6D * ___comparer3, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 V_2; memset((&V_2), 0, sizeof(V_2)); { int32_t L_0 = ___lo1; V_0 = (int32_t)L_0; goto IL_0049; } IL_0004: { int32_t L_1 = V_0; V_1 = (int32_t)L_1; KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C* L_2 = ___keys0; int32_t L_3 = V_0; NullCheck(L_2); int32_t L_4 = ((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)1)); KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 L_5 = (KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 )(L_2)->GetAt(static_cast<il2cpp_array_size_t>(L_4)); V_2 = (KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 )L_5; goto IL_0026; } IL_0012: { KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C* L_6 = ___keys0; int32_t L_7 = V_1; KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C* L_8 = ___keys0; int32_t L_9 = V_1; NullCheck(L_8); int32_t L_10 = L_9; KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 L_11 = (KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 )(L_8)->GetAt(static_cast<il2cpp_array_size_t>(L_10)); NullCheck(L_6); (L_6)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add((int32_t)L_7, (int32_t)1))), (KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 )L_11); int32_t L_12 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_12, (int32_t)1)); } IL_0026: { int32_t L_13 = V_1; int32_t L_14 = ___lo1; if ((((int32_t)L_13) < ((int32_t)L_14))) { goto IL_003b; } } { Comparison_1_t1D33596C3D38DCFBCA6A4E789D13F0A3022A3D6D * L_15 = ___comparer3; KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 L_16 = V_2; KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C* L_17 = ___keys0; int32_t L_18 = V_1; NullCheck(L_17); int32_t L_19 = L_18; KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 L_20 = (KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 )(L_17)->GetAt(static_cast<il2cpp_array_size_t>(L_19)); NullCheck((Comparison_1_t1D33596C3D38DCFBCA6A4E789D13F0A3022A3D6D *)L_15); int32_t L_21; L_21 = (( int32_t (*) (Comparison_1_t1D33596C3D38DCFBCA6A4E789D13F0A3022A3D6D *, KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 , KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t1D33596C3D38DCFBCA6A4E789D13F0A3022A3D6D *)L_15, (KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 )L_16, (KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 )L_20, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_21) < ((int32_t)0))) { goto IL_0012; } } IL_003b: { KeyValuePair_2U5BU5D_tFE6B4C7AAF7248A65A2EFD85E339C6F988A62C2C* L_22 = ___keys0; int32_t L_23 = V_1; KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 L_24 = V_2; NullCheck(L_22); (L_22)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add((int32_t)L_23, (int32_t)1))), (KeyValuePair_2_tCBAAE4FBE6091373C1916EE17527311382CF4551 )L_24); int32_t L_25 = V_0; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_25, (int32_t)1)); } IL_0049: { int32_t L_26 = V_0; int32_t L_27 = ___hi2; if ((((int32_t)L_26) < ((int32_t)L_27))) { goto IL_0004; } } { return; } } #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Void System.Collections.Generic.ArraySortHelper`1<System.Collections.Generic.KeyValuePair`2<System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal/NativeOrStaticEventRegistrationImpl/EventCacheKey,System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal/NativeOrStaticEventRegistrationImpl/EventCacheEntry>>::Sort(T[],System.Int32,System.Int32,System.Collections.Generic.IComparer`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Sort_m04A02B771DC5046E9003DF90217750A0CB35E38B_gshared (KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102* ___keys0, int32_t ___index1, int32_t ___length2, RuntimeObject* ___comparer3, const RuntimeMethod* method) { Exception_t * V_0 = NULL; il2cpp::utils::ExceptionSupportStack<RuntimeObject*, 1> __active_exceptions; il2cpp::utils::ExceptionSupportStack<int32_t, 2> __leave_targets; IL_0000: try { // begin try (depth: 1) { RuntimeObject* L_0 = ___comparer3; if (L_0) { goto IL_000a; } } IL_0003: { Comparer_1_t35BB3526EED97903C4E4817C3BAB9D1C14471A94 * L_1; L_1 = (( Comparer_1_t35BB3526EED97903C4E4817C3BAB9D1C14471A94 * (*) (const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)->methodPointer)(/*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)); ___comparer3 = (RuntimeObject*)L_1; } IL_000a: { KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102* L_2 = ___keys0; int32_t L_3 = ___index1; int32_t L_4 = ___length2; RuntimeObject* L_5 = ___comparer3; RuntimeObject* L_6 = (RuntimeObject*)L_5; Comparison_1_tA26B7ECAC056A07F4D4B7ED815E45397238FD870 * L_7 = (Comparison_1_tA26B7ECAC056A07F4D4B7ED815E45397238FD870 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 4)); (( void (*) (Comparison_1_tA26B7ECAC056A07F4D4B7ED815E45397238FD870 *, RuntimeObject *, intptr_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 5)->methodPointer)(L_7, (RuntimeObject *)L_6, (intptr_t)((intptr_t)GetInterfaceMethodInfo(L_6, 0, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 3))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 5)); (( void (*) (KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102*, int32_t, int32_t, Comparison_1_tA26B7ECAC056A07F4D4B7ED815E45397238FD870 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)->methodPointer)((KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102*)L_2, (int32_t)L_3, (int32_t)L_4, (Comparison_1_tA26B7ECAC056A07F4D4B7ED815E45397238FD870 *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)); goto IL_0037; } } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&IndexOutOfRangeException_tDC9EF7A0346CE39E54DA1083F07BE6DFC3CE2EDD_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_0021; } if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&Exception_t_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_002a; } throw e; } CATCH_0021: { // begin catch(System.IndexOutOfRangeException) RuntimeObject* L_8 = ___comparer3; IntrospectiveSortUtilities_ThrowOrIgnoreBadComparer_mE23A8103696FA67F874E7DA86625BB3921DB801F((RuntimeObject *)L_8, /*hidden argument*/NULL); IL2CPP_POP_ACTIVE_EXCEPTION(); goto IL_0037; } // end catch (depth: 1) CATCH_002a: { // begin catch(System.Exception) V_0 = (Exception_t *)((Exception_t *)IL2CPP_GET_ACTIVE_EXCEPTION(Exception_t *)); Exception_t * L_9 = V_0; InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB * L_10 = (InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB *)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB_il2cpp_TypeInfo_var))); InvalidOperationException__ctor_m4A65916B1316FBF45ECDF1FF7FAC9E3CA30C112C(L_10, (String_t*)((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral6EDB6C049ED9617FA335A262A29BF30B15221AEA)), (Exception_t *)L_9, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_10, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArraySortHelper_1_Sort_m04A02B771DC5046E9003DF90217750A0CB35E38B_RuntimeMethod_var))); } // end catch (depth: 1) IL_0037: { return; } } // System.Int32 System.Collections.Generic.ArraySortHelper`1<System.Collections.Generic.KeyValuePair`2<System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal/NativeOrStaticEventRegistrationImpl/EventCacheKey,System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal/NativeOrStaticEventRegistrationImpl/EventCacheEntry>>::BinarySearch(T[],System.Int32,System.Int32,T,System.Collections.Generic.IComparer`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t ArraySortHelper_1_BinarySearch_mCE1754C5C7BDDE89A2CD9D0825E0BFDDB7FB3418_gshared (KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102* ___array0, int32_t ___index1, int32_t ___length2, KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 ___value3, RuntimeObject* ___comparer4, const RuntimeMethod* method) { int32_t V_0 = 0; Exception_t * V_1 = NULL; il2cpp::utils::ExceptionSupportStack<RuntimeObject*, 1> __active_exceptions; il2cpp::utils::ExceptionSupportStack<int32_t, 1> __leave_targets; IL_0000: try { // begin try (depth: 1) { RuntimeObject* L_0 = ___comparer4; if (L_0) { goto IL_000b; } } IL_0004: { Comparer_1_t35BB3526EED97903C4E4817C3BAB9D1C14471A94 * L_1; L_1 = (( Comparer_1_t35BB3526EED97903C4E4817C3BAB9D1C14471A94 * (*) (const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)->methodPointer)(/*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)); ___comparer4 = (RuntimeObject*)L_1; } IL_000b: { KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102* L_2 = ___array0; int32_t L_3 = ___index1; int32_t L_4 = ___length2; KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 L_5 = ___value3; RuntimeObject* L_6 = ___comparer4; int32_t L_7; L_7 = (( int32_t (*) (KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102*, int32_t, int32_t, KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 , RuntimeObject*, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 8)->methodPointer)((KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102*)L_2, (int32_t)L_3, (int32_t)L_4, (KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 )L_5, (RuntimeObject*)L_6, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 8)); V_0 = (int32_t)L_7; goto IL_0026; } } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&Exception_t_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_0019; } throw e; } CATCH_0019: { // begin catch(System.Exception) V_1 = (Exception_t *)((Exception_t *)IL2CPP_GET_ACTIVE_EXCEPTION(Exception_t *)); Exception_t * L_8 = V_1; InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB * L_9 = (InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB *)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB_il2cpp_TypeInfo_var))); InvalidOperationException__ctor_m4A65916B1316FBF45ECDF1FF7FAC9E3CA30C112C(L_9, (String_t*)((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral6EDB6C049ED9617FA335A262A29BF30B15221AEA)), (Exception_t *)L_8, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_9, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArraySortHelper_1_BinarySearch_mCE1754C5C7BDDE89A2CD9D0825E0BFDDB7FB3418_RuntimeMethod_var))); } // end catch (depth: 1) IL_0026: { int32_t L_10 = V_0; return (int32_t)L_10; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Collections.Generic.KeyValuePair`2<System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal/NativeOrStaticEventRegistrationImpl/EventCacheKey,System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal/NativeOrStaticEventRegistrationImpl/EventCacheEntry>>::Sort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Sort_mD550B242969B53D75044D3C1BB2FCC14F4575FAA_gshared (KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102* ___keys0, int32_t ___index1, int32_t ___length2, Comparison_1_tA26B7ECAC056A07F4D4B7ED815E45397238FD870 * ___comparer3, const RuntimeMethod* method) { Exception_t * V_0 = NULL; il2cpp::utils::ExceptionSupportStack<RuntimeObject*, 1> __active_exceptions; il2cpp::utils::ExceptionSupportStack<int32_t, 2> __leave_targets; IL_0000: try { // begin try (depth: 1) KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102* L_0 = ___keys0; int32_t L_1 = ___index1; int32_t L_2 = ___length2; Comparison_1_tA26B7ECAC056A07F4D4B7ED815E45397238FD870 * L_3 = ___comparer3; (( void (*) (KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102*, int32_t, int32_t, Comparison_1_tA26B7ECAC056A07F4D4B7ED815E45397238FD870 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)->methodPointer)((KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102*)L_0, (int32_t)L_1, (int32_t)L_2, (Comparison_1_tA26B7ECAC056A07F4D4B7ED815E45397238FD870 *)L_3, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)); goto IL_0021; } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&IndexOutOfRangeException_tDC9EF7A0346CE39E54DA1083F07BE6DFC3CE2EDD_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_000b; } if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&Exception_t_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_0014; } throw e; } CATCH_000b: { // begin catch(System.IndexOutOfRangeException) Comparison_1_tA26B7ECAC056A07F4D4B7ED815E45397238FD870 * L_4 = ___comparer3; IntrospectiveSortUtilities_ThrowOrIgnoreBadComparer_mE23A8103696FA67F874E7DA86625BB3921DB801F((RuntimeObject *)L_4, /*hidden argument*/NULL); IL2CPP_POP_ACTIVE_EXCEPTION(); goto IL_0021; } // end catch (depth: 1) CATCH_0014: { // begin catch(System.Exception) V_0 = (Exception_t *)((Exception_t *)IL2CPP_GET_ACTIVE_EXCEPTION(Exception_t *)); Exception_t * L_5 = V_0; InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB * L_6 = (InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB *)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB_il2cpp_TypeInfo_var))); InvalidOperationException__ctor_m4A65916B1316FBF45ECDF1FF7FAC9E3CA30C112C(L_6, (String_t*)((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral6EDB6C049ED9617FA335A262A29BF30B15221AEA)), (Exception_t *)L_5, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_6, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArraySortHelper_1_Sort_mD550B242969B53D75044D3C1BB2FCC14F4575FAA_RuntimeMethod_var))); } // end catch (depth: 1) IL_0021: { return; } } // System.Int32 System.Collections.Generic.ArraySortHelper`1<System.Collections.Generic.KeyValuePair`2<System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal/NativeOrStaticEventRegistrationImpl/EventCacheKey,System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal/NativeOrStaticEventRegistrationImpl/EventCacheEntry>>::InternalBinarySearch(T[],System.Int32,System.Int32,T,System.Collections.Generic.IComparer`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t ArraySortHelper_1_InternalBinarySearch_m269E3EEE4384DBB352656ED8AA8AD3C1BC872218_gshared (KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102* ___array0, int32_t ___index1, int32_t ___length2, KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 ___value3, RuntimeObject* ___comparer4, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; int32_t V_2 = 0; int32_t V_3 = 0; { int32_t L_0 = ___index1; V_0 = (int32_t)L_0; int32_t L_1 = ___index1; int32_t L_2 = ___length2; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_1, (int32_t)L_2)), (int32_t)1)); goto IL_0035; } IL_000a: { int32_t L_3 = V_0; int32_t L_4 = V_1; int32_t L_5 = V_0; V_2 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)((int32_t)((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_4, (int32_t)L_5))>>(int32_t)1)))); RuntimeObject* L_6 = ___comparer4; KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102* L_7 = ___array0; int32_t L_8 = V_2; NullCheck(L_7); int32_t L_9 = L_8; KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 L_10 = (KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 )(L_7)->GetAt(static_cast<il2cpp_array_size_t>(L_9)); KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 L_11 = ___value3; NullCheck((RuntimeObject*)L_6); int32_t L_12; L_12 = InterfaceFuncInvoker2< int32_t, KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 , KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 >::Invoke(0 /* System.Int32 System.Collections.Generic.IComparer`1<System.Collections.Generic.KeyValuePair`2<System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal/NativeOrStaticEventRegistrationImpl/EventCacheKey,System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal/NativeOrStaticEventRegistrationImpl/EventCacheEntry>>::Compare(T,T) */, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 3), (RuntimeObject*)L_6, (KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 )L_10, (KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 )L_11); V_3 = (int32_t)L_12; int32_t L_13 = V_3; if (L_13) { goto IL_0027; } } { int32_t L_14 = V_2; return (int32_t)L_14; } IL_0027: { int32_t L_15 = V_3; if ((((int32_t)L_15) >= ((int32_t)0))) { goto IL_0031; } } { int32_t L_16 = V_2; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_16, (int32_t)1)); goto IL_0035; } IL_0031: { int32_t L_17 = V_2; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_17, (int32_t)1)); } IL_0035: { int32_t L_18 = V_0; int32_t L_19 = V_1; if ((((int32_t)L_18) <= ((int32_t)L_19))) { goto IL_000a; } } { int32_t L_20 = V_0; return (int32_t)((~L_20)); } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Collections.Generic.KeyValuePair`2<System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal/NativeOrStaticEventRegistrationImpl/EventCacheKey,System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal/NativeOrStaticEventRegistrationImpl/EventCacheEntry>>::SwapIfGreater(T[],System.Comparison`1<T>,System.Int32,System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_SwapIfGreater_m138C93045E2BD5B15D076B3DA49C2076BAD095F4_gshared (KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102* ___keys0, Comparison_1_tA26B7ECAC056A07F4D4B7ED815E45397238FD870 * ___comparer1, int32_t ___a2, int32_t ___b3, const RuntimeMethod* method) { KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 V_0; memset((&V_0), 0, sizeof(V_0)); { int32_t L_0 = ___a2; int32_t L_1 = ___b3; if ((((int32_t)L_0) == ((int32_t)L_1))) { goto IL_0039; } } { Comparison_1_tA26B7ECAC056A07F4D4B7ED815E45397238FD870 * L_2 = ___comparer1; KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102* L_3 = ___keys0; int32_t L_4 = ___a2; NullCheck(L_3); int32_t L_5 = L_4; KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 L_6 = (KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 )(L_3)->GetAt(static_cast<il2cpp_array_size_t>(L_5)); KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102* L_7 = ___keys0; int32_t L_8 = ___b3; NullCheck(L_7); int32_t L_9 = L_8; KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 L_10 = (KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 )(L_7)->GetAt(static_cast<il2cpp_array_size_t>(L_9)); NullCheck((Comparison_1_tA26B7ECAC056A07F4D4B7ED815E45397238FD870 *)L_2); int32_t L_11; L_11 = (( int32_t (*) (Comparison_1_tA26B7ECAC056A07F4D4B7ED815E45397238FD870 *, KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 , KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_tA26B7ECAC056A07F4D4B7ED815E45397238FD870 *)L_2, (KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 )L_6, (KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 )L_10, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_11) <= ((int32_t)0))) { goto IL_0039; } } { KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102* L_12 = ___keys0; int32_t L_13 = ___a2; NullCheck(L_12); int32_t L_14 = L_13; KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 L_15 = (KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 )(L_12)->GetAt(static_cast<il2cpp_array_size_t>(L_14)); V_0 = (KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 )L_15; KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102* L_16 = ___keys0; int32_t L_17 = ___a2; KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102* L_18 = ___keys0; int32_t L_19 = ___b3; NullCheck(L_18); int32_t L_20 = L_19; KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 L_21 = (KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 )(L_18)->GetAt(static_cast<il2cpp_array_size_t>(L_20)); NullCheck(L_16); (L_16)->SetAt(static_cast<il2cpp_array_size_t>(L_17), (KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 )L_21); KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102* L_22 = ___keys0; int32_t L_23 = ___b3; KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 L_24 = V_0; NullCheck(L_22); (L_22)->SetAt(static_cast<il2cpp_array_size_t>(L_23), (KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 )L_24); } IL_0039: { return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Collections.Generic.KeyValuePair`2<System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal/NativeOrStaticEventRegistrationImpl/EventCacheKey,System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal/NativeOrStaticEventRegistrationImpl/EventCacheEntry>>::Swap(T[],System.Int32,System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Swap_m19A277B517445D54BAE906AE4AE1A674ED067D57_gshared (KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102* ___a0, int32_t ___i1, int32_t ___j2, const RuntimeMethod* method) { KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 V_0; memset((&V_0), 0, sizeof(V_0)); { int32_t L_0 = ___i1; int32_t L_1 = ___j2; if ((((int32_t)L_0) == ((int32_t)L_1))) { goto IL_0022; } } { KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102* L_2 = ___a0; int32_t L_3 = ___i1; NullCheck(L_2); int32_t L_4 = L_3; KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 L_5 = (KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 )(L_2)->GetAt(static_cast<il2cpp_array_size_t>(L_4)); V_0 = (KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 )L_5; KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102* L_6 = ___a0; int32_t L_7 = ___i1; KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102* L_8 = ___a0; int32_t L_9 = ___j2; NullCheck(L_8); int32_t L_10 = L_9; KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 L_11 = (KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 )(L_8)->GetAt(static_cast<il2cpp_array_size_t>(L_10)); NullCheck(L_6); (L_6)->SetAt(static_cast<il2cpp_array_size_t>(L_7), (KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 )L_11); KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102* L_12 = ___a0; int32_t L_13 = ___j2; KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 L_14 = V_0; NullCheck(L_12); (L_12)->SetAt(static_cast<il2cpp_array_size_t>(L_13), (KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 )L_14); } IL_0022: { return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Collections.Generic.KeyValuePair`2<System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal/NativeOrStaticEventRegistrationImpl/EventCacheKey,System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal/NativeOrStaticEventRegistrationImpl/EventCacheEntry>>::IntrospectiveSort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_IntrospectiveSort_m56019BDBE96AE0AEB87170BAF020075AC86B1901_gshared (KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102* ___keys0, int32_t ___left1, int32_t ___length2, Comparison_1_tA26B7ECAC056A07F4D4B7ED815E45397238FD870 * ___comparer3, const RuntimeMethod* method) { { int32_t L_0 = ___length2; if ((((int32_t)L_0) >= ((int32_t)2))) { goto IL_0005; } } { return; } IL_0005: { KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102* L_1 = ___keys0; int32_t L_2 = ___left1; int32_t L_3 = ___length2; int32_t L_4 = ___left1; KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102* L_5 = ___keys0; NullCheck(L_5); int32_t L_6; L_6 = IntrospectiveSortUtilities_FloorLog2_m05ECB6CAC7A23087D9EC2C2A4DDCFE12272C3872((int32_t)((int32_t)((int32_t)(((RuntimeArray*)L_5)->max_length))), /*hidden argument*/NULL); Comparison_1_tA26B7ECAC056A07F4D4B7ED815E45397238FD870 * L_7 = ___comparer3; (( void (*) (KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102*, int32_t, int32_t, int32_t, Comparison_1_tA26B7ECAC056A07F4D4B7ED815E45397238FD870 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)->methodPointer)((KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102*)L_1, (int32_t)L_2, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)L_4)), (int32_t)1)), (int32_t)((int32_t)il2cpp_codegen_multiply((int32_t)2, (int32_t)L_6)), (Comparison_1_tA26B7ECAC056A07F4D4B7ED815E45397238FD870 *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)); return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Collections.Generic.KeyValuePair`2<System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal/NativeOrStaticEventRegistrationImpl/EventCacheKey,System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal/NativeOrStaticEventRegistrationImpl/EventCacheEntry>>::IntroSort(T[],System.Int32,System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_IntroSort_m276CE7C74D725B14239A18195C1D715786A36CC5_gshared (KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102* ___keys0, int32_t ___lo1, int32_t ___hi2, int32_t ___depthLimit3, Comparison_1_tA26B7ECAC056A07F4D4B7ED815E45397238FD870 * ___comparer4, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; { goto IL_0086; } IL_0005: { int32_t L_0 = ___hi2; int32_t L_1 = ___lo1; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_0, (int32_t)L_1)), (int32_t)1)); int32_t L_2 = V_0; if ((((int32_t)L_2) > ((int32_t)((int32_t)16)))) { goto IL_0056; } } { int32_t L_3 = V_0; if ((!(((uint32_t)L_3) == ((uint32_t)1)))) { goto IL_0015; } } { return; } IL_0015: { int32_t L_4 = V_0; if ((!(((uint32_t)L_4) == ((uint32_t)2)))) { goto IL_0024; } } { KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102* L_5 = ___keys0; Comparison_1_tA26B7ECAC056A07F4D4B7ED815E45397238FD870 * L_6 = ___comparer4; int32_t L_7 = ___lo1; int32_t L_8 = ___hi2; (( void (*) (KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102*, Comparison_1_tA26B7ECAC056A07F4D4B7ED815E45397238FD870 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102*)L_5, (Comparison_1_tA26B7ECAC056A07F4D4B7ED815E45397238FD870 *)L_6, (int32_t)L_7, (int32_t)L_8, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); return; } IL_0024: { int32_t L_9 = V_0; if ((!(((uint32_t)L_9) == ((uint32_t)3)))) { goto IL_004b; } } { KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102* L_10 = ___keys0; Comparison_1_tA26B7ECAC056A07F4D4B7ED815E45397238FD870 * L_11 = ___comparer4; int32_t L_12 = ___lo1; int32_t L_13 = ___hi2; (( void (*) (KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102*, Comparison_1_tA26B7ECAC056A07F4D4B7ED815E45397238FD870 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102*)L_10, (Comparison_1_tA26B7ECAC056A07F4D4B7ED815E45397238FD870 *)L_11, (int32_t)L_12, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_13, (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102* L_14 = ___keys0; Comparison_1_tA26B7ECAC056A07F4D4B7ED815E45397238FD870 * L_15 = ___comparer4; int32_t L_16 = ___lo1; int32_t L_17 = ___hi2; (( void (*) (KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102*, Comparison_1_tA26B7ECAC056A07F4D4B7ED815E45397238FD870 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102*)L_14, (Comparison_1_tA26B7ECAC056A07F4D4B7ED815E45397238FD870 *)L_15, (int32_t)L_16, (int32_t)L_17, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102* L_18 = ___keys0; Comparison_1_tA26B7ECAC056A07F4D4B7ED815E45397238FD870 * L_19 = ___comparer4; int32_t L_20 = ___hi2; int32_t L_21 = ___hi2; (( void (*) (KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102*, Comparison_1_tA26B7ECAC056A07F4D4B7ED815E45397238FD870 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102*)L_18, (Comparison_1_tA26B7ECAC056A07F4D4B7ED815E45397238FD870 *)L_19, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_20, (int32_t)1)), (int32_t)L_21, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); return; } IL_004b: { KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102* L_22 = ___keys0; int32_t L_23 = ___lo1; int32_t L_24 = ___hi2; Comparison_1_tA26B7ECAC056A07F4D4B7ED815E45397238FD870 * L_25 = ___comparer4; (( void (*) (KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102*, int32_t, int32_t, Comparison_1_tA26B7ECAC056A07F4D4B7ED815E45397238FD870 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 12)->methodPointer)((KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102*)L_22, (int32_t)L_23, (int32_t)L_24, (Comparison_1_tA26B7ECAC056A07F4D4B7ED815E45397238FD870 *)L_25, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 12)); return; } IL_0056: { int32_t L_26 = ___depthLimit3; if (L_26) { goto IL_0064; } } { KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102* L_27 = ___keys0; int32_t L_28 = ___lo1; int32_t L_29 = ___hi2; Comparison_1_tA26B7ECAC056A07F4D4B7ED815E45397238FD870 * L_30 = ___comparer4; (( void (*) (KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102*, int32_t, int32_t, Comparison_1_tA26B7ECAC056A07F4D4B7ED815E45397238FD870 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 13)->methodPointer)((KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102*)L_27, (int32_t)L_28, (int32_t)L_29, (Comparison_1_tA26B7ECAC056A07F4D4B7ED815E45397238FD870 *)L_30, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 13)); return; } IL_0064: { int32_t L_31 = ___depthLimit3; ___depthLimit3 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_31, (int32_t)1)); KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102* L_32 = ___keys0; int32_t L_33 = ___lo1; int32_t L_34 = ___hi2; Comparison_1_tA26B7ECAC056A07F4D4B7ED815E45397238FD870 * L_35 = ___comparer4; int32_t L_36; L_36 = (( int32_t (*) (KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102*, int32_t, int32_t, Comparison_1_tA26B7ECAC056A07F4D4B7ED815E45397238FD870 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 14)->methodPointer)((KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102*)L_32, (int32_t)L_33, (int32_t)L_34, (Comparison_1_tA26B7ECAC056A07F4D4B7ED815E45397238FD870 *)L_35, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 14)); V_1 = (int32_t)L_36; KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102* L_37 = ___keys0; int32_t L_38 = V_1; int32_t L_39 = ___hi2; int32_t L_40 = ___depthLimit3; Comparison_1_tA26B7ECAC056A07F4D4B7ED815E45397238FD870 * L_41 = ___comparer4; (( void (*) (KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102*, int32_t, int32_t, int32_t, Comparison_1_tA26B7ECAC056A07F4D4B7ED815E45397238FD870 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)->methodPointer)((KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102*)L_37, (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_38, (int32_t)1)), (int32_t)L_39, (int32_t)L_40, (Comparison_1_tA26B7ECAC056A07F4D4B7ED815E45397238FD870 *)L_41, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)); int32_t L_42 = V_1; ___hi2 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_42, (int32_t)1)); } IL_0086: { int32_t L_43 = ___hi2; int32_t L_44 = ___lo1; if ((((int32_t)L_43) > ((int32_t)L_44))) { goto IL_0005; } } { return; } } // System.Int32 System.Collections.Generic.ArraySortHelper`1<System.Collections.Generic.KeyValuePair`2<System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal/NativeOrStaticEventRegistrationImpl/EventCacheKey,System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal/NativeOrStaticEventRegistrationImpl/EventCacheEntry>>::PickPivotAndPartition(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t ArraySortHelper_1_PickPivotAndPartition_mB96BB2AD54DEB2148C5D02A2921848FB624104F0_gshared (KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102* ___keys0, int32_t ___lo1, int32_t ___hi2, Comparison_1_tA26B7ECAC056A07F4D4B7ED815E45397238FD870 * ___comparer3, const RuntimeMethod* method) { int32_t V_0 = 0; KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 V_1; memset((&V_1), 0, sizeof(V_1)); int32_t V_2 = 0; int32_t V_3 = 0; { int32_t L_0 = ___lo1; int32_t L_1 = ___hi2; int32_t L_2 = ___lo1; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_0, (int32_t)((int32_t)((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_1, (int32_t)L_2))/(int32_t)2)))); KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102* L_3 = ___keys0; Comparison_1_tA26B7ECAC056A07F4D4B7ED815E45397238FD870 * L_4 = ___comparer3; int32_t L_5 = ___lo1; int32_t L_6 = V_0; (( void (*) (KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102*, Comparison_1_tA26B7ECAC056A07F4D4B7ED815E45397238FD870 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102*)L_3, (Comparison_1_tA26B7ECAC056A07F4D4B7ED815E45397238FD870 *)L_4, (int32_t)L_5, (int32_t)L_6, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102* L_7 = ___keys0; Comparison_1_tA26B7ECAC056A07F4D4B7ED815E45397238FD870 * L_8 = ___comparer3; int32_t L_9 = ___lo1; int32_t L_10 = ___hi2; (( void (*) (KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102*, Comparison_1_tA26B7ECAC056A07F4D4B7ED815E45397238FD870 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102*)L_7, (Comparison_1_tA26B7ECAC056A07F4D4B7ED815E45397238FD870 *)L_8, (int32_t)L_9, (int32_t)L_10, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102* L_11 = ___keys0; Comparison_1_tA26B7ECAC056A07F4D4B7ED815E45397238FD870 * L_12 = ___comparer3; int32_t L_13 = V_0; int32_t L_14 = ___hi2; (( void (*) (KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102*, Comparison_1_tA26B7ECAC056A07F4D4B7ED815E45397238FD870 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102*)L_11, (Comparison_1_tA26B7ECAC056A07F4D4B7ED815E45397238FD870 *)L_12, (int32_t)L_13, (int32_t)L_14, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102* L_15 = ___keys0; int32_t L_16 = V_0; NullCheck(L_15); int32_t L_17 = L_16; KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 L_18 = (KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 )(L_15)->GetAt(static_cast<il2cpp_array_size_t>(L_17)); V_1 = (KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 )L_18; KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102* L_19 = ___keys0; int32_t L_20 = V_0; int32_t L_21 = ___hi2; (( void (*) (KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102*)L_19, (int32_t)L_20, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_21, (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); int32_t L_22 = ___lo1; V_2 = (int32_t)L_22; int32_t L_23 = ___hi2; V_3 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_23, (int32_t)1)); goto IL_0073; } IL_003d: { Comparison_1_tA26B7ECAC056A07F4D4B7ED815E45397238FD870 * L_24 = ___comparer3; KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102* L_25 = ___keys0; int32_t L_26 = V_2; int32_t L_27 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_26, (int32_t)1)); V_2 = (int32_t)L_27; NullCheck(L_25); int32_t L_28 = L_27; KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 L_29 = (KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 )(L_25)->GetAt(static_cast<il2cpp_array_size_t>(L_28)); KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 L_30 = V_1; NullCheck((Comparison_1_tA26B7ECAC056A07F4D4B7ED815E45397238FD870 *)L_24); int32_t L_31; L_31 = (( int32_t (*) (Comparison_1_tA26B7ECAC056A07F4D4B7ED815E45397238FD870 *, KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 , KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_tA26B7ECAC056A07F4D4B7ED815E45397238FD870 *)L_24, (KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 )L_29, (KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 )L_30, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_31) < ((int32_t)0))) { goto IL_003d; } } IL_0052: { Comparison_1_tA26B7ECAC056A07F4D4B7ED815E45397238FD870 * L_32 = ___comparer3; KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 L_33 = V_1; KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102* L_34 = ___keys0; int32_t L_35 = V_3; int32_t L_36 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_35, (int32_t)1)); V_3 = (int32_t)L_36; NullCheck(L_34); int32_t L_37 = L_36; KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 L_38 = (KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 )(L_34)->GetAt(static_cast<il2cpp_array_size_t>(L_37)); NullCheck((Comparison_1_tA26B7ECAC056A07F4D4B7ED815E45397238FD870 *)L_32); int32_t L_39; L_39 = (( int32_t (*) (Comparison_1_tA26B7ECAC056A07F4D4B7ED815E45397238FD870 *, KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 , KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_tA26B7ECAC056A07F4D4B7ED815E45397238FD870 *)L_32, (KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 )L_33, (KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 )L_38, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_39) < ((int32_t)0))) { goto IL_0052; } } { int32_t L_40 = V_2; int32_t L_41 = V_3; if ((((int32_t)L_40) >= ((int32_t)L_41))) { goto IL_0077; } } { KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102* L_42 = ___keys0; int32_t L_43 = V_2; int32_t L_44 = V_3; (( void (*) (KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102*)L_42, (int32_t)L_43, (int32_t)L_44, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); } IL_0073: { int32_t L_45 = V_2; int32_t L_46 = V_3; if ((((int32_t)L_45) < ((int32_t)L_46))) { goto IL_003d; } } IL_0077: { KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102* L_47 = ___keys0; int32_t L_48 = V_2; int32_t L_49 = ___hi2; (( void (*) (KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102*)L_47, (int32_t)L_48, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_49, (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); int32_t L_50 = V_2; return (int32_t)L_50; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Collections.Generic.KeyValuePair`2<System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal/NativeOrStaticEventRegistrationImpl/EventCacheKey,System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal/NativeOrStaticEventRegistrationImpl/EventCacheEntry>>::Heapsort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Heapsort_mA9CD194DE596163C812623CFB7D8DCBB632B5BB4_gshared (KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102* ___keys0, int32_t ___lo1, int32_t ___hi2, Comparison_1_tA26B7ECAC056A07F4D4B7ED815E45397238FD870 * ___comparer3, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; int32_t V_2 = 0; { int32_t L_0 = ___hi2; int32_t L_1 = ___lo1; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_0, (int32_t)L_1)), (int32_t)1)); int32_t L_2 = V_0; V_1 = (int32_t)((int32_t)((int32_t)L_2/(int32_t)2)); goto IL_001a; } IL_000c: { KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102* L_3 = ___keys0; int32_t L_4 = V_1; int32_t L_5 = V_0; int32_t L_6 = ___lo1; Comparison_1_tA26B7ECAC056A07F4D4B7ED815E45397238FD870 * L_7 = ___comparer3; (( void (*) (KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102*, int32_t, int32_t, int32_t, Comparison_1_tA26B7ECAC056A07F4D4B7ED815E45397238FD870 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)->methodPointer)((KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102*)L_3, (int32_t)L_4, (int32_t)L_5, (int32_t)L_6, (Comparison_1_tA26B7ECAC056A07F4D4B7ED815E45397238FD870 *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)); int32_t L_8 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_8, (int32_t)1)); } IL_001a: { int32_t L_9 = V_1; if ((((int32_t)L_9) >= ((int32_t)1))) { goto IL_000c; } } { int32_t L_10 = V_0; V_2 = (int32_t)L_10; goto IL_003e; } IL_0022: { KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102* L_11 = ___keys0; int32_t L_12 = ___lo1; int32_t L_13 = ___lo1; int32_t L_14 = V_2; (( void (*) (KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102*)L_11, (int32_t)L_12, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_13, (int32_t)L_14)), (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102* L_15 = ___keys0; int32_t L_16 = V_2; int32_t L_17 = ___lo1; Comparison_1_tA26B7ECAC056A07F4D4B7ED815E45397238FD870 * L_18 = ___comparer3; (( void (*) (KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102*, int32_t, int32_t, int32_t, Comparison_1_tA26B7ECAC056A07F4D4B7ED815E45397238FD870 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)->methodPointer)((KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102*)L_15, (int32_t)1, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_16, (int32_t)1)), (int32_t)L_17, (Comparison_1_tA26B7ECAC056A07F4D4B7ED815E45397238FD870 *)L_18, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)); int32_t L_19 = V_2; V_2 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_19, (int32_t)1)); } IL_003e: { int32_t L_20 = V_2; if ((((int32_t)L_20) > ((int32_t)1))) { goto IL_0022; } } { return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Collections.Generic.KeyValuePair`2<System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal/NativeOrStaticEventRegistrationImpl/EventCacheKey,System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal/NativeOrStaticEventRegistrationImpl/EventCacheEntry>>::DownHeap(T[],System.Int32,System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_DownHeap_m33A5934FADBB0ED83DEFBA00CD1CCBAA2CB9CD31_gshared (KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102* ___keys0, int32_t ___i1, int32_t ___n2, int32_t ___lo3, Comparison_1_tA26B7ECAC056A07F4D4B7ED815E45397238FD870 * ___comparer4, const RuntimeMethod* method) { KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 V_0; memset((&V_0), 0, sizeof(V_0)); int32_t V_1 = 0; { KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102* L_0 = ___keys0; int32_t L_1 = ___lo3; int32_t L_2 = ___i1; NullCheck(L_0); int32_t L_3 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_1, (int32_t)L_2)), (int32_t)1)); KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 L_4 = (KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 )(L_0)->GetAt(static_cast<il2cpp_array_size_t>(L_3)); V_0 = (KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 )L_4; goto IL_0067; } IL_000e: { int32_t L_5 = ___i1; V_1 = (int32_t)((int32_t)il2cpp_codegen_multiply((int32_t)2, (int32_t)L_5)); int32_t L_6 = V_1; int32_t L_7 = ___n2; if ((((int32_t)L_6) >= ((int32_t)L_7))) { goto IL_0038; } } { Comparison_1_tA26B7ECAC056A07F4D4B7ED815E45397238FD870 * L_8 = ___comparer4; KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102* L_9 = ___keys0; int32_t L_10 = ___lo3; int32_t L_11 = V_1; NullCheck(L_9); int32_t L_12 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_10, (int32_t)L_11)), (int32_t)1)); KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 L_13 = (KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 )(L_9)->GetAt(static_cast<il2cpp_array_size_t>(L_12)); KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102* L_14 = ___keys0; int32_t L_15 = ___lo3; int32_t L_16 = V_1; NullCheck(L_14); int32_t L_17 = ((int32_t)il2cpp_codegen_add((int32_t)L_15, (int32_t)L_16)); KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 L_18 = (KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 )(L_14)->GetAt(static_cast<il2cpp_array_size_t>(L_17)); NullCheck((Comparison_1_tA26B7ECAC056A07F4D4B7ED815E45397238FD870 *)L_8); int32_t L_19; L_19 = (( int32_t (*) (Comparison_1_tA26B7ECAC056A07F4D4B7ED815E45397238FD870 *, KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 , KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_tA26B7ECAC056A07F4D4B7ED815E45397238FD870 *)L_8, (KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 )L_13, (KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 )L_18, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_19) >= ((int32_t)0))) { goto IL_0038; } } { int32_t L_20 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_20, (int32_t)1)); } IL_0038: { Comparison_1_tA26B7ECAC056A07F4D4B7ED815E45397238FD870 * L_21 = ___comparer4; KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 L_22 = V_0; KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102* L_23 = ___keys0; int32_t L_24 = ___lo3; int32_t L_25 = V_1; NullCheck(L_23); int32_t L_26 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_24, (int32_t)L_25)), (int32_t)1)); KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 L_27 = (KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 )(L_23)->GetAt(static_cast<il2cpp_array_size_t>(L_26)); NullCheck((Comparison_1_tA26B7ECAC056A07F4D4B7ED815E45397238FD870 *)L_21); int32_t L_28; L_28 = (( int32_t (*) (Comparison_1_tA26B7ECAC056A07F4D4B7ED815E45397238FD870 *, KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 , KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_tA26B7ECAC056A07F4D4B7ED815E45397238FD870 *)L_21, (KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 )L_22, (KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 )L_27, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_28) >= ((int32_t)0))) { goto IL_006d; } } { KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102* L_29 = ___keys0; int32_t L_30 = ___lo3; int32_t L_31 = ___i1; KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102* L_32 = ___keys0; int32_t L_33 = ___lo3; int32_t L_34 = V_1; NullCheck(L_32); int32_t L_35 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_33, (int32_t)L_34)), (int32_t)1)); KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 L_36 = (KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 )(L_32)->GetAt(static_cast<il2cpp_array_size_t>(L_35)); NullCheck(L_29); (L_29)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_30, (int32_t)L_31)), (int32_t)1))), (KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 )L_36); int32_t L_37 = V_1; ___i1 = (int32_t)L_37; } IL_0067: { int32_t L_38 = ___i1; int32_t L_39 = ___n2; if ((((int32_t)L_38) <= ((int32_t)((int32_t)((int32_t)L_39/(int32_t)2))))) { goto IL_000e; } } IL_006d: { KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102* L_40 = ___keys0; int32_t L_41 = ___lo3; int32_t L_42 = ___i1; KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 L_43 = V_0; NullCheck(L_40); (L_40)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_41, (int32_t)L_42)), (int32_t)1))), (KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 )L_43); return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Collections.Generic.KeyValuePair`2<System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal/NativeOrStaticEventRegistrationImpl/EventCacheKey,System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal/NativeOrStaticEventRegistrationImpl/EventCacheEntry>>::InsertionSort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_InsertionSort_m5470BCE675734A856DD74F997CEFD33A02BF5DBC_gshared (KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102* ___keys0, int32_t ___lo1, int32_t ___hi2, Comparison_1_tA26B7ECAC056A07F4D4B7ED815E45397238FD870 * ___comparer3, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 V_2; memset((&V_2), 0, sizeof(V_2)); { int32_t L_0 = ___lo1; V_0 = (int32_t)L_0; goto IL_0049; } IL_0004: { int32_t L_1 = V_0; V_1 = (int32_t)L_1; KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102* L_2 = ___keys0; int32_t L_3 = V_0; NullCheck(L_2); int32_t L_4 = ((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)1)); KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 L_5 = (KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 )(L_2)->GetAt(static_cast<il2cpp_array_size_t>(L_4)); V_2 = (KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 )L_5; goto IL_0026; } IL_0012: { KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102* L_6 = ___keys0; int32_t L_7 = V_1; KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102* L_8 = ___keys0; int32_t L_9 = V_1; NullCheck(L_8); int32_t L_10 = L_9; KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 L_11 = (KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 )(L_8)->GetAt(static_cast<il2cpp_array_size_t>(L_10)); NullCheck(L_6); (L_6)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add((int32_t)L_7, (int32_t)1))), (KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 )L_11); int32_t L_12 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_12, (int32_t)1)); } IL_0026: { int32_t L_13 = V_1; int32_t L_14 = ___lo1; if ((((int32_t)L_13) < ((int32_t)L_14))) { goto IL_003b; } } { Comparison_1_tA26B7ECAC056A07F4D4B7ED815E45397238FD870 * L_15 = ___comparer3; KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 L_16 = V_2; KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102* L_17 = ___keys0; int32_t L_18 = V_1; NullCheck(L_17); int32_t L_19 = L_18; KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 L_20 = (KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 )(L_17)->GetAt(static_cast<il2cpp_array_size_t>(L_19)); NullCheck((Comparison_1_tA26B7ECAC056A07F4D4B7ED815E45397238FD870 *)L_15); int32_t L_21; L_21 = (( int32_t (*) (Comparison_1_tA26B7ECAC056A07F4D4B7ED815E45397238FD870 *, KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 , KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_tA26B7ECAC056A07F4D4B7ED815E45397238FD870 *)L_15, (KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 )L_16, (KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 )L_20, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_21) < ((int32_t)0))) { goto IL_0012; } } IL_003b: { KeyValuePair_2U5BU5D_tA1CC60C2A8578B44096E62ACBE1293DCF1506102* L_22 = ___keys0; int32_t L_23 = V_1; KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 L_24 = V_2; NullCheck(L_22); (L_22)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add((int32_t)L_23, (int32_t)1))), (KeyValuePair_2_t0B088855363A49AC8DA4399E9C74CCA59E47F638 )L_24); int32_t L_25 = V_0; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_25, (int32_t)1)); } IL_0049: { int32_t L_26 = V_0; int32_t L_27 = ___hi2; if ((((int32_t)L_26) < ((int32_t)L_27))) { goto IL_0004; } } { return; } } #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Void System.Collections.Generic.ArraySortHelper`1<Newtonsoft.Json.Utilities.StructMultiKey`2<System.Object,System.Object>>::Sort(T[],System.Int32,System.Int32,System.Collections.Generic.IComparer`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Sort_m91F7B150C1469D93343E6A50567C6BE243978E24_gshared (StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65* ___keys0, int32_t ___index1, int32_t ___length2, RuntimeObject* ___comparer3, const RuntimeMethod* method) { Exception_t * V_0 = NULL; il2cpp::utils::ExceptionSupportStack<RuntimeObject*, 1> __active_exceptions; il2cpp::utils::ExceptionSupportStack<int32_t, 2> __leave_targets; IL_0000: try { // begin try (depth: 1) { RuntimeObject* L_0 = ___comparer3; if (L_0) { goto IL_000a; } } IL_0003: { Comparer_1_t6DF9C6FAF645716D2161E520EB681320C3D3F7CC * L_1; L_1 = (( Comparer_1_t6DF9C6FAF645716D2161E520EB681320C3D3F7CC * (*) (const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)->methodPointer)(/*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)); ___comparer3 = (RuntimeObject*)L_1; } IL_000a: { StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65* L_2 = ___keys0; int32_t L_3 = ___index1; int32_t L_4 = ___length2; RuntimeObject* L_5 = ___comparer3; RuntimeObject* L_6 = (RuntimeObject*)L_5; Comparison_1_t4416764FBA5772FAEAD3B0E55B7613EDC23DA078 * L_7 = (Comparison_1_t4416764FBA5772FAEAD3B0E55B7613EDC23DA078 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 4)); (( void (*) (Comparison_1_t4416764FBA5772FAEAD3B0E55B7613EDC23DA078 *, RuntimeObject *, intptr_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 5)->methodPointer)(L_7, (RuntimeObject *)L_6, (intptr_t)((intptr_t)GetInterfaceMethodInfo(L_6, 0, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 3))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 5)); (( void (*) (StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65*, int32_t, int32_t, Comparison_1_t4416764FBA5772FAEAD3B0E55B7613EDC23DA078 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)->methodPointer)((StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65*)L_2, (int32_t)L_3, (int32_t)L_4, (Comparison_1_t4416764FBA5772FAEAD3B0E55B7613EDC23DA078 *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)); goto IL_0037; } } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&IndexOutOfRangeException_tDC9EF7A0346CE39E54DA1083F07BE6DFC3CE2EDD_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_0021; } if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&Exception_t_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_002a; } throw e; } CATCH_0021: { // begin catch(System.IndexOutOfRangeException) RuntimeObject* L_8 = ___comparer3; IntrospectiveSortUtilities_ThrowOrIgnoreBadComparer_mE23A8103696FA67F874E7DA86625BB3921DB801F((RuntimeObject *)L_8, /*hidden argument*/NULL); IL2CPP_POP_ACTIVE_EXCEPTION(); goto IL_0037; } // end catch (depth: 1) CATCH_002a: { // begin catch(System.Exception) V_0 = (Exception_t *)((Exception_t *)IL2CPP_GET_ACTIVE_EXCEPTION(Exception_t *)); Exception_t * L_9 = V_0; InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB * L_10 = (InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB *)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB_il2cpp_TypeInfo_var))); InvalidOperationException__ctor_m4A65916B1316FBF45ECDF1FF7FAC9E3CA30C112C(L_10, (String_t*)((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral6EDB6C049ED9617FA335A262A29BF30B15221AEA)), (Exception_t *)L_9, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_10, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArraySortHelper_1_Sort_m91F7B150C1469D93343E6A50567C6BE243978E24_RuntimeMethod_var))); } // end catch (depth: 1) IL_0037: { return; } } // System.Int32 System.Collections.Generic.ArraySortHelper`1<Newtonsoft.Json.Utilities.StructMultiKey`2<System.Object,System.Object>>::BinarySearch(T[],System.Int32,System.Int32,T,System.Collections.Generic.IComparer`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t ArraySortHelper_1_BinarySearch_mCF85A6C7CC4BEEEA254D8E964AE0D559081C285E_gshared (StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65* ___array0, int32_t ___index1, int32_t ___length2, StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E ___value3, RuntimeObject* ___comparer4, const RuntimeMethod* method) { int32_t V_0 = 0; Exception_t * V_1 = NULL; il2cpp::utils::ExceptionSupportStack<RuntimeObject*, 1> __active_exceptions; il2cpp::utils::ExceptionSupportStack<int32_t, 1> __leave_targets; IL_0000: try { // begin try (depth: 1) { RuntimeObject* L_0 = ___comparer4; if (L_0) { goto IL_000b; } } IL_0004: { Comparer_1_t6DF9C6FAF645716D2161E520EB681320C3D3F7CC * L_1; L_1 = (( Comparer_1_t6DF9C6FAF645716D2161E520EB681320C3D3F7CC * (*) (const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)->methodPointer)(/*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)); ___comparer4 = (RuntimeObject*)L_1; } IL_000b: { StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65* L_2 = ___array0; int32_t L_3 = ___index1; int32_t L_4 = ___length2; StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E L_5 = ___value3; RuntimeObject* L_6 = ___comparer4; int32_t L_7; L_7 = (( int32_t (*) (StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65*, int32_t, int32_t, StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E , RuntimeObject*, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 8)->methodPointer)((StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65*)L_2, (int32_t)L_3, (int32_t)L_4, (StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E )L_5, (RuntimeObject*)L_6, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 8)); V_0 = (int32_t)L_7; goto IL_0026; } } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&Exception_t_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_0019; } throw e; } CATCH_0019: { // begin catch(System.Exception) V_1 = (Exception_t *)((Exception_t *)IL2CPP_GET_ACTIVE_EXCEPTION(Exception_t *)); Exception_t * L_8 = V_1; InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB * L_9 = (InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB *)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB_il2cpp_TypeInfo_var))); InvalidOperationException__ctor_m4A65916B1316FBF45ECDF1FF7FAC9E3CA30C112C(L_9, (String_t*)((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral6EDB6C049ED9617FA335A262A29BF30B15221AEA)), (Exception_t *)L_8, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_9, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArraySortHelper_1_BinarySearch_mCF85A6C7CC4BEEEA254D8E964AE0D559081C285E_RuntimeMethod_var))); } // end catch (depth: 1) IL_0026: { int32_t L_10 = V_0; return (int32_t)L_10; } } // System.Void System.Collections.Generic.ArraySortHelper`1<Newtonsoft.Json.Utilities.StructMultiKey`2<System.Object,System.Object>>::Sort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Sort_m6E3E6197E3A4DE1DDB726FA14208763878D14FEB_gshared (StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65* ___keys0, int32_t ___index1, int32_t ___length2, Comparison_1_t4416764FBA5772FAEAD3B0E55B7613EDC23DA078 * ___comparer3, const RuntimeMethod* method) { Exception_t * V_0 = NULL; il2cpp::utils::ExceptionSupportStack<RuntimeObject*, 1> __active_exceptions; il2cpp::utils::ExceptionSupportStack<int32_t, 2> __leave_targets; IL_0000: try { // begin try (depth: 1) StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65* L_0 = ___keys0; int32_t L_1 = ___index1; int32_t L_2 = ___length2; Comparison_1_t4416764FBA5772FAEAD3B0E55B7613EDC23DA078 * L_3 = ___comparer3; (( void (*) (StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65*, int32_t, int32_t, Comparison_1_t4416764FBA5772FAEAD3B0E55B7613EDC23DA078 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)->methodPointer)((StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65*)L_0, (int32_t)L_1, (int32_t)L_2, (Comparison_1_t4416764FBA5772FAEAD3B0E55B7613EDC23DA078 *)L_3, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)); goto IL_0021; } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&IndexOutOfRangeException_tDC9EF7A0346CE39E54DA1083F07BE6DFC3CE2EDD_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_000b; } if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&Exception_t_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_0014; } throw e; } CATCH_000b: { // begin catch(System.IndexOutOfRangeException) Comparison_1_t4416764FBA5772FAEAD3B0E55B7613EDC23DA078 * L_4 = ___comparer3; IntrospectiveSortUtilities_ThrowOrIgnoreBadComparer_mE23A8103696FA67F874E7DA86625BB3921DB801F((RuntimeObject *)L_4, /*hidden argument*/NULL); IL2CPP_POP_ACTIVE_EXCEPTION(); goto IL_0021; } // end catch (depth: 1) CATCH_0014: { // begin catch(System.Exception) V_0 = (Exception_t *)((Exception_t *)IL2CPP_GET_ACTIVE_EXCEPTION(Exception_t *)); Exception_t * L_5 = V_0; InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB * L_6 = (InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB *)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB_il2cpp_TypeInfo_var))); InvalidOperationException__ctor_m4A65916B1316FBF45ECDF1FF7FAC9E3CA30C112C(L_6, (String_t*)((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral6EDB6C049ED9617FA335A262A29BF30B15221AEA)), (Exception_t *)L_5, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_6, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArraySortHelper_1_Sort_m6E3E6197E3A4DE1DDB726FA14208763878D14FEB_RuntimeMethod_var))); } // end catch (depth: 1) IL_0021: { return; } } // System.Int32 System.Collections.Generic.ArraySortHelper`1<Newtonsoft.Json.Utilities.StructMultiKey`2<System.Object,System.Object>>::InternalBinarySearch(T[],System.Int32,System.Int32,T,System.Collections.Generic.IComparer`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t ArraySortHelper_1_InternalBinarySearch_m7DC70AB05189F7F32D454858F0B43F4685A0B5A2_gshared (StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65* ___array0, int32_t ___index1, int32_t ___length2, StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E ___value3, RuntimeObject* ___comparer4, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; int32_t V_2 = 0; int32_t V_3 = 0; { int32_t L_0 = ___index1; V_0 = (int32_t)L_0; int32_t L_1 = ___index1; int32_t L_2 = ___length2; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_1, (int32_t)L_2)), (int32_t)1)); goto IL_0035; } IL_000a: { int32_t L_3 = V_0; int32_t L_4 = V_1; int32_t L_5 = V_0; V_2 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)((int32_t)((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_4, (int32_t)L_5))>>(int32_t)1)))); RuntimeObject* L_6 = ___comparer4; StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65* L_7 = ___array0; int32_t L_8 = V_2; NullCheck(L_7); int32_t L_9 = L_8; StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E L_10 = (StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E )(L_7)->GetAt(static_cast<il2cpp_array_size_t>(L_9)); StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E L_11 = ___value3; NullCheck((RuntimeObject*)L_6); int32_t L_12; L_12 = InterfaceFuncInvoker2< int32_t, StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E , StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E >::Invoke(0 /* System.Int32 System.Collections.Generic.IComparer`1<Newtonsoft.Json.Utilities.StructMultiKey`2<System.Object,System.Object>>::Compare(T,T) */, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 3), (RuntimeObject*)L_6, (StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E )L_10, (StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E )L_11); V_3 = (int32_t)L_12; int32_t L_13 = V_3; if (L_13) { goto IL_0027; } } { int32_t L_14 = V_2; return (int32_t)L_14; } IL_0027: { int32_t L_15 = V_3; if ((((int32_t)L_15) >= ((int32_t)0))) { goto IL_0031; } } { int32_t L_16 = V_2; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_16, (int32_t)1)); goto IL_0035; } IL_0031: { int32_t L_17 = V_2; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_17, (int32_t)1)); } IL_0035: { int32_t L_18 = V_0; int32_t L_19 = V_1; if ((((int32_t)L_18) <= ((int32_t)L_19))) { goto IL_000a; } } { int32_t L_20 = V_0; return (int32_t)((~L_20)); } } // System.Void System.Collections.Generic.ArraySortHelper`1<Newtonsoft.Json.Utilities.StructMultiKey`2<System.Object,System.Object>>::SwapIfGreater(T[],System.Comparison`1<T>,System.Int32,System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_SwapIfGreater_m13099882CABB5BE02AEF568C3CA29C8CDBFB8C94_gshared (StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65* ___keys0, Comparison_1_t4416764FBA5772FAEAD3B0E55B7613EDC23DA078 * ___comparer1, int32_t ___a2, int32_t ___b3, const RuntimeMethod* method) { StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E V_0; memset((&V_0), 0, sizeof(V_0)); { int32_t L_0 = ___a2; int32_t L_1 = ___b3; if ((((int32_t)L_0) == ((int32_t)L_1))) { goto IL_0039; } } { Comparison_1_t4416764FBA5772FAEAD3B0E55B7613EDC23DA078 * L_2 = ___comparer1; StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65* L_3 = ___keys0; int32_t L_4 = ___a2; NullCheck(L_3); int32_t L_5 = L_4; StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E L_6 = (StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E )(L_3)->GetAt(static_cast<il2cpp_array_size_t>(L_5)); StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65* L_7 = ___keys0; int32_t L_8 = ___b3; NullCheck(L_7); int32_t L_9 = L_8; StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E L_10 = (StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E )(L_7)->GetAt(static_cast<il2cpp_array_size_t>(L_9)); NullCheck((Comparison_1_t4416764FBA5772FAEAD3B0E55B7613EDC23DA078 *)L_2); int32_t L_11; L_11 = (( int32_t (*) (Comparison_1_t4416764FBA5772FAEAD3B0E55B7613EDC23DA078 *, StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E , StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t4416764FBA5772FAEAD3B0E55B7613EDC23DA078 *)L_2, (StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E )L_6, (StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E )L_10, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_11) <= ((int32_t)0))) { goto IL_0039; } } { StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65* L_12 = ___keys0; int32_t L_13 = ___a2; NullCheck(L_12); int32_t L_14 = L_13; StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E L_15 = (StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E )(L_12)->GetAt(static_cast<il2cpp_array_size_t>(L_14)); V_0 = (StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E )L_15; StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65* L_16 = ___keys0; int32_t L_17 = ___a2; StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65* L_18 = ___keys0; int32_t L_19 = ___b3; NullCheck(L_18); int32_t L_20 = L_19; StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E L_21 = (StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E )(L_18)->GetAt(static_cast<il2cpp_array_size_t>(L_20)); NullCheck(L_16); (L_16)->SetAt(static_cast<il2cpp_array_size_t>(L_17), (StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E )L_21); StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65* L_22 = ___keys0; int32_t L_23 = ___b3; StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E L_24 = V_0; NullCheck(L_22); (L_22)->SetAt(static_cast<il2cpp_array_size_t>(L_23), (StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E )L_24); } IL_0039: { return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<Newtonsoft.Json.Utilities.StructMultiKey`2<System.Object,System.Object>>::Swap(T[],System.Int32,System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Swap_mF6176729FD9DB0753D85CAEB018E6CBE4408E7F8_gshared (StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65* ___a0, int32_t ___i1, int32_t ___j2, const RuntimeMethod* method) { StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E V_0; memset((&V_0), 0, sizeof(V_0)); { int32_t L_0 = ___i1; int32_t L_1 = ___j2; if ((((int32_t)L_0) == ((int32_t)L_1))) { goto IL_0022; } } { StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65* L_2 = ___a0; int32_t L_3 = ___i1; NullCheck(L_2); int32_t L_4 = L_3; StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E L_5 = (StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E )(L_2)->GetAt(static_cast<il2cpp_array_size_t>(L_4)); V_0 = (StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E )L_5; StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65* L_6 = ___a0; int32_t L_7 = ___i1; StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65* L_8 = ___a0; int32_t L_9 = ___j2; NullCheck(L_8); int32_t L_10 = L_9; StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E L_11 = (StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E )(L_8)->GetAt(static_cast<il2cpp_array_size_t>(L_10)); NullCheck(L_6); (L_6)->SetAt(static_cast<il2cpp_array_size_t>(L_7), (StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E )L_11); StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65* L_12 = ___a0; int32_t L_13 = ___j2; StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E L_14 = V_0; NullCheck(L_12); (L_12)->SetAt(static_cast<il2cpp_array_size_t>(L_13), (StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E )L_14); } IL_0022: { return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<Newtonsoft.Json.Utilities.StructMultiKey`2<System.Object,System.Object>>::IntrospectiveSort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_IntrospectiveSort_mE1427428B59DA809EEB05BB3FA1A4EAFF3F0F50E_gshared (StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65* ___keys0, int32_t ___left1, int32_t ___length2, Comparison_1_t4416764FBA5772FAEAD3B0E55B7613EDC23DA078 * ___comparer3, const RuntimeMethod* method) { { int32_t L_0 = ___length2; if ((((int32_t)L_0) >= ((int32_t)2))) { goto IL_0005; } } { return; } IL_0005: { StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65* L_1 = ___keys0; int32_t L_2 = ___left1; int32_t L_3 = ___length2; int32_t L_4 = ___left1; StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65* L_5 = ___keys0; NullCheck(L_5); int32_t L_6; L_6 = IntrospectiveSortUtilities_FloorLog2_m05ECB6CAC7A23087D9EC2C2A4DDCFE12272C3872((int32_t)((int32_t)((int32_t)(((RuntimeArray*)L_5)->max_length))), /*hidden argument*/NULL); Comparison_1_t4416764FBA5772FAEAD3B0E55B7613EDC23DA078 * L_7 = ___comparer3; (( void (*) (StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65*, int32_t, int32_t, int32_t, Comparison_1_t4416764FBA5772FAEAD3B0E55B7613EDC23DA078 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)->methodPointer)((StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65*)L_1, (int32_t)L_2, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)L_4)), (int32_t)1)), (int32_t)((int32_t)il2cpp_codegen_multiply((int32_t)2, (int32_t)L_6)), (Comparison_1_t4416764FBA5772FAEAD3B0E55B7613EDC23DA078 *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)); return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<Newtonsoft.Json.Utilities.StructMultiKey`2<System.Object,System.Object>>::IntroSort(T[],System.Int32,System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_IntroSort_mD95A7072B71E78B38FFC00C9B8D3983376DFD544_gshared (StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65* ___keys0, int32_t ___lo1, int32_t ___hi2, int32_t ___depthLimit3, Comparison_1_t4416764FBA5772FAEAD3B0E55B7613EDC23DA078 * ___comparer4, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; { goto IL_0086; } IL_0005: { int32_t L_0 = ___hi2; int32_t L_1 = ___lo1; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_0, (int32_t)L_1)), (int32_t)1)); int32_t L_2 = V_0; if ((((int32_t)L_2) > ((int32_t)((int32_t)16)))) { goto IL_0056; } } { int32_t L_3 = V_0; if ((!(((uint32_t)L_3) == ((uint32_t)1)))) { goto IL_0015; } } { return; } IL_0015: { int32_t L_4 = V_0; if ((!(((uint32_t)L_4) == ((uint32_t)2)))) { goto IL_0024; } } { StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65* L_5 = ___keys0; Comparison_1_t4416764FBA5772FAEAD3B0E55B7613EDC23DA078 * L_6 = ___comparer4; int32_t L_7 = ___lo1; int32_t L_8 = ___hi2; (( void (*) (StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65*, Comparison_1_t4416764FBA5772FAEAD3B0E55B7613EDC23DA078 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65*)L_5, (Comparison_1_t4416764FBA5772FAEAD3B0E55B7613EDC23DA078 *)L_6, (int32_t)L_7, (int32_t)L_8, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); return; } IL_0024: { int32_t L_9 = V_0; if ((!(((uint32_t)L_9) == ((uint32_t)3)))) { goto IL_004b; } } { StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65* L_10 = ___keys0; Comparison_1_t4416764FBA5772FAEAD3B0E55B7613EDC23DA078 * L_11 = ___comparer4; int32_t L_12 = ___lo1; int32_t L_13 = ___hi2; (( void (*) (StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65*, Comparison_1_t4416764FBA5772FAEAD3B0E55B7613EDC23DA078 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65*)L_10, (Comparison_1_t4416764FBA5772FAEAD3B0E55B7613EDC23DA078 *)L_11, (int32_t)L_12, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_13, (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65* L_14 = ___keys0; Comparison_1_t4416764FBA5772FAEAD3B0E55B7613EDC23DA078 * L_15 = ___comparer4; int32_t L_16 = ___lo1; int32_t L_17 = ___hi2; (( void (*) (StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65*, Comparison_1_t4416764FBA5772FAEAD3B0E55B7613EDC23DA078 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65*)L_14, (Comparison_1_t4416764FBA5772FAEAD3B0E55B7613EDC23DA078 *)L_15, (int32_t)L_16, (int32_t)L_17, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65* L_18 = ___keys0; Comparison_1_t4416764FBA5772FAEAD3B0E55B7613EDC23DA078 * L_19 = ___comparer4; int32_t L_20 = ___hi2; int32_t L_21 = ___hi2; (( void (*) (StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65*, Comparison_1_t4416764FBA5772FAEAD3B0E55B7613EDC23DA078 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65*)L_18, (Comparison_1_t4416764FBA5772FAEAD3B0E55B7613EDC23DA078 *)L_19, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_20, (int32_t)1)), (int32_t)L_21, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); return; } IL_004b: { StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65* L_22 = ___keys0; int32_t L_23 = ___lo1; int32_t L_24 = ___hi2; Comparison_1_t4416764FBA5772FAEAD3B0E55B7613EDC23DA078 * L_25 = ___comparer4; (( void (*) (StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65*, int32_t, int32_t, Comparison_1_t4416764FBA5772FAEAD3B0E55B7613EDC23DA078 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 12)->methodPointer)((StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65*)L_22, (int32_t)L_23, (int32_t)L_24, (Comparison_1_t4416764FBA5772FAEAD3B0E55B7613EDC23DA078 *)L_25, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 12)); return; } IL_0056: { int32_t L_26 = ___depthLimit3; if (L_26) { goto IL_0064; } } { StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65* L_27 = ___keys0; int32_t L_28 = ___lo1; int32_t L_29 = ___hi2; Comparison_1_t4416764FBA5772FAEAD3B0E55B7613EDC23DA078 * L_30 = ___comparer4; (( void (*) (StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65*, int32_t, int32_t, Comparison_1_t4416764FBA5772FAEAD3B0E55B7613EDC23DA078 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 13)->methodPointer)((StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65*)L_27, (int32_t)L_28, (int32_t)L_29, (Comparison_1_t4416764FBA5772FAEAD3B0E55B7613EDC23DA078 *)L_30, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 13)); return; } IL_0064: { int32_t L_31 = ___depthLimit3; ___depthLimit3 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_31, (int32_t)1)); StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65* L_32 = ___keys0; int32_t L_33 = ___lo1; int32_t L_34 = ___hi2; Comparison_1_t4416764FBA5772FAEAD3B0E55B7613EDC23DA078 * L_35 = ___comparer4; int32_t L_36; L_36 = (( int32_t (*) (StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65*, int32_t, int32_t, Comparison_1_t4416764FBA5772FAEAD3B0E55B7613EDC23DA078 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 14)->methodPointer)((StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65*)L_32, (int32_t)L_33, (int32_t)L_34, (Comparison_1_t4416764FBA5772FAEAD3B0E55B7613EDC23DA078 *)L_35, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 14)); V_1 = (int32_t)L_36; StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65* L_37 = ___keys0; int32_t L_38 = V_1; int32_t L_39 = ___hi2; int32_t L_40 = ___depthLimit3; Comparison_1_t4416764FBA5772FAEAD3B0E55B7613EDC23DA078 * L_41 = ___comparer4; (( void (*) (StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65*, int32_t, int32_t, int32_t, Comparison_1_t4416764FBA5772FAEAD3B0E55B7613EDC23DA078 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)->methodPointer)((StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65*)L_37, (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_38, (int32_t)1)), (int32_t)L_39, (int32_t)L_40, (Comparison_1_t4416764FBA5772FAEAD3B0E55B7613EDC23DA078 *)L_41, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)); int32_t L_42 = V_1; ___hi2 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_42, (int32_t)1)); } IL_0086: { int32_t L_43 = ___hi2; int32_t L_44 = ___lo1; if ((((int32_t)L_43) > ((int32_t)L_44))) { goto IL_0005; } } { return; } } // System.Int32 System.Collections.Generic.ArraySortHelper`1<Newtonsoft.Json.Utilities.StructMultiKey`2<System.Object,System.Object>>::PickPivotAndPartition(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t ArraySortHelper_1_PickPivotAndPartition_m3E09A3EFD238E379EDB530BA4F0B897F5A11C577_gshared (StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65* ___keys0, int32_t ___lo1, int32_t ___hi2, Comparison_1_t4416764FBA5772FAEAD3B0E55B7613EDC23DA078 * ___comparer3, const RuntimeMethod* method) { int32_t V_0 = 0; StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E V_1; memset((&V_1), 0, sizeof(V_1)); int32_t V_2 = 0; int32_t V_3 = 0; { int32_t L_0 = ___lo1; int32_t L_1 = ___hi2; int32_t L_2 = ___lo1; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_0, (int32_t)((int32_t)((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_1, (int32_t)L_2))/(int32_t)2)))); StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65* L_3 = ___keys0; Comparison_1_t4416764FBA5772FAEAD3B0E55B7613EDC23DA078 * L_4 = ___comparer3; int32_t L_5 = ___lo1; int32_t L_6 = V_0; (( void (*) (StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65*, Comparison_1_t4416764FBA5772FAEAD3B0E55B7613EDC23DA078 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65*)L_3, (Comparison_1_t4416764FBA5772FAEAD3B0E55B7613EDC23DA078 *)L_4, (int32_t)L_5, (int32_t)L_6, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65* L_7 = ___keys0; Comparison_1_t4416764FBA5772FAEAD3B0E55B7613EDC23DA078 * L_8 = ___comparer3; int32_t L_9 = ___lo1; int32_t L_10 = ___hi2; (( void (*) (StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65*, Comparison_1_t4416764FBA5772FAEAD3B0E55B7613EDC23DA078 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65*)L_7, (Comparison_1_t4416764FBA5772FAEAD3B0E55B7613EDC23DA078 *)L_8, (int32_t)L_9, (int32_t)L_10, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65* L_11 = ___keys0; Comparison_1_t4416764FBA5772FAEAD3B0E55B7613EDC23DA078 * L_12 = ___comparer3; int32_t L_13 = V_0; int32_t L_14 = ___hi2; (( void (*) (StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65*, Comparison_1_t4416764FBA5772FAEAD3B0E55B7613EDC23DA078 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65*)L_11, (Comparison_1_t4416764FBA5772FAEAD3B0E55B7613EDC23DA078 *)L_12, (int32_t)L_13, (int32_t)L_14, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65* L_15 = ___keys0; int32_t L_16 = V_0; NullCheck(L_15); int32_t L_17 = L_16; StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E L_18 = (StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E )(L_15)->GetAt(static_cast<il2cpp_array_size_t>(L_17)); V_1 = (StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E )L_18; StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65* L_19 = ___keys0; int32_t L_20 = V_0; int32_t L_21 = ___hi2; (( void (*) (StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65*)L_19, (int32_t)L_20, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_21, (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); int32_t L_22 = ___lo1; V_2 = (int32_t)L_22; int32_t L_23 = ___hi2; V_3 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_23, (int32_t)1)); goto IL_0073; } IL_003d: { Comparison_1_t4416764FBA5772FAEAD3B0E55B7613EDC23DA078 * L_24 = ___comparer3; StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65* L_25 = ___keys0; int32_t L_26 = V_2; int32_t L_27 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_26, (int32_t)1)); V_2 = (int32_t)L_27; NullCheck(L_25); int32_t L_28 = L_27; StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E L_29 = (StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E )(L_25)->GetAt(static_cast<il2cpp_array_size_t>(L_28)); StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E L_30 = V_1; NullCheck((Comparison_1_t4416764FBA5772FAEAD3B0E55B7613EDC23DA078 *)L_24); int32_t L_31; L_31 = (( int32_t (*) (Comparison_1_t4416764FBA5772FAEAD3B0E55B7613EDC23DA078 *, StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E , StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t4416764FBA5772FAEAD3B0E55B7613EDC23DA078 *)L_24, (StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E )L_29, (StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E )L_30, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_31) < ((int32_t)0))) { goto IL_003d; } } IL_0052: { Comparison_1_t4416764FBA5772FAEAD3B0E55B7613EDC23DA078 * L_32 = ___comparer3; StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E L_33 = V_1; StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65* L_34 = ___keys0; int32_t L_35 = V_3; int32_t L_36 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_35, (int32_t)1)); V_3 = (int32_t)L_36; NullCheck(L_34); int32_t L_37 = L_36; StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E L_38 = (StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E )(L_34)->GetAt(static_cast<il2cpp_array_size_t>(L_37)); NullCheck((Comparison_1_t4416764FBA5772FAEAD3B0E55B7613EDC23DA078 *)L_32); int32_t L_39; L_39 = (( int32_t (*) (Comparison_1_t4416764FBA5772FAEAD3B0E55B7613EDC23DA078 *, StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E , StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t4416764FBA5772FAEAD3B0E55B7613EDC23DA078 *)L_32, (StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E )L_33, (StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E )L_38, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_39) < ((int32_t)0))) { goto IL_0052; } } { int32_t L_40 = V_2; int32_t L_41 = V_3; if ((((int32_t)L_40) >= ((int32_t)L_41))) { goto IL_0077; } } { StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65* L_42 = ___keys0; int32_t L_43 = V_2; int32_t L_44 = V_3; (( void (*) (StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65*)L_42, (int32_t)L_43, (int32_t)L_44, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); } IL_0073: { int32_t L_45 = V_2; int32_t L_46 = V_3; if ((((int32_t)L_45) < ((int32_t)L_46))) { goto IL_003d; } } IL_0077: { StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65* L_47 = ___keys0; int32_t L_48 = V_2; int32_t L_49 = ___hi2; (( void (*) (StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65*)L_47, (int32_t)L_48, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_49, (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); int32_t L_50 = V_2; return (int32_t)L_50; } } // System.Void System.Collections.Generic.ArraySortHelper`1<Newtonsoft.Json.Utilities.StructMultiKey`2<System.Object,System.Object>>::Heapsort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Heapsort_mA1D690C8D6D2CA0A157F9085B7602F1E372FB2B9_gshared (StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65* ___keys0, int32_t ___lo1, int32_t ___hi2, Comparison_1_t4416764FBA5772FAEAD3B0E55B7613EDC23DA078 * ___comparer3, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; int32_t V_2 = 0; { int32_t L_0 = ___hi2; int32_t L_1 = ___lo1; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_0, (int32_t)L_1)), (int32_t)1)); int32_t L_2 = V_0; V_1 = (int32_t)((int32_t)((int32_t)L_2/(int32_t)2)); goto IL_001a; } IL_000c: { StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65* L_3 = ___keys0; int32_t L_4 = V_1; int32_t L_5 = V_0; int32_t L_6 = ___lo1; Comparison_1_t4416764FBA5772FAEAD3B0E55B7613EDC23DA078 * L_7 = ___comparer3; (( void (*) (StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65*, int32_t, int32_t, int32_t, Comparison_1_t4416764FBA5772FAEAD3B0E55B7613EDC23DA078 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)->methodPointer)((StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65*)L_3, (int32_t)L_4, (int32_t)L_5, (int32_t)L_6, (Comparison_1_t4416764FBA5772FAEAD3B0E55B7613EDC23DA078 *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)); int32_t L_8 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_8, (int32_t)1)); } IL_001a: { int32_t L_9 = V_1; if ((((int32_t)L_9) >= ((int32_t)1))) { goto IL_000c; } } { int32_t L_10 = V_0; V_2 = (int32_t)L_10; goto IL_003e; } IL_0022: { StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65* L_11 = ___keys0; int32_t L_12 = ___lo1; int32_t L_13 = ___lo1; int32_t L_14 = V_2; (( void (*) (StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65*)L_11, (int32_t)L_12, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_13, (int32_t)L_14)), (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65* L_15 = ___keys0; int32_t L_16 = V_2; int32_t L_17 = ___lo1; Comparison_1_t4416764FBA5772FAEAD3B0E55B7613EDC23DA078 * L_18 = ___comparer3; (( void (*) (StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65*, int32_t, int32_t, int32_t, Comparison_1_t4416764FBA5772FAEAD3B0E55B7613EDC23DA078 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)->methodPointer)((StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65*)L_15, (int32_t)1, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_16, (int32_t)1)), (int32_t)L_17, (Comparison_1_t4416764FBA5772FAEAD3B0E55B7613EDC23DA078 *)L_18, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)); int32_t L_19 = V_2; V_2 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_19, (int32_t)1)); } IL_003e: { int32_t L_20 = V_2; if ((((int32_t)L_20) > ((int32_t)1))) { goto IL_0022; } } { return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<Newtonsoft.Json.Utilities.StructMultiKey`2<System.Object,System.Object>>::DownHeap(T[],System.Int32,System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_DownHeap_m21CCD9F5D4E14F4FD98129F2CA63C5DEC4F75E2B_gshared (StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65* ___keys0, int32_t ___i1, int32_t ___n2, int32_t ___lo3, Comparison_1_t4416764FBA5772FAEAD3B0E55B7613EDC23DA078 * ___comparer4, const RuntimeMethod* method) { StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E V_0; memset((&V_0), 0, sizeof(V_0)); int32_t V_1 = 0; { StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65* L_0 = ___keys0; int32_t L_1 = ___lo3; int32_t L_2 = ___i1; NullCheck(L_0); int32_t L_3 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_1, (int32_t)L_2)), (int32_t)1)); StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E L_4 = (StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E )(L_0)->GetAt(static_cast<il2cpp_array_size_t>(L_3)); V_0 = (StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E )L_4; goto IL_0067; } IL_000e: { int32_t L_5 = ___i1; V_1 = (int32_t)((int32_t)il2cpp_codegen_multiply((int32_t)2, (int32_t)L_5)); int32_t L_6 = V_1; int32_t L_7 = ___n2; if ((((int32_t)L_6) >= ((int32_t)L_7))) { goto IL_0038; } } { Comparison_1_t4416764FBA5772FAEAD3B0E55B7613EDC23DA078 * L_8 = ___comparer4; StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65* L_9 = ___keys0; int32_t L_10 = ___lo3; int32_t L_11 = V_1; NullCheck(L_9); int32_t L_12 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_10, (int32_t)L_11)), (int32_t)1)); StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E L_13 = (StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E )(L_9)->GetAt(static_cast<il2cpp_array_size_t>(L_12)); StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65* L_14 = ___keys0; int32_t L_15 = ___lo3; int32_t L_16 = V_1; NullCheck(L_14); int32_t L_17 = ((int32_t)il2cpp_codegen_add((int32_t)L_15, (int32_t)L_16)); StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E L_18 = (StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E )(L_14)->GetAt(static_cast<il2cpp_array_size_t>(L_17)); NullCheck((Comparison_1_t4416764FBA5772FAEAD3B0E55B7613EDC23DA078 *)L_8); int32_t L_19; L_19 = (( int32_t (*) (Comparison_1_t4416764FBA5772FAEAD3B0E55B7613EDC23DA078 *, StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E , StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t4416764FBA5772FAEAD3B0E55B7613EDC23DA078 *)L_8, (StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E )L_13, (StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E )L_18, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_19) >= ((int32_t)0))) { goto IL_0038; } } { int32_t L_20 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_20, (int32_t)1)); } IL_0038: { Comparison_1_t4416764FBA5772FAEAD3B0E55B7613EDC23DA078 * L_21 = ___comparer4; StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E L_22 = V_0; StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65* L_23 = ___keys0; int32_t L_24 = ___lo3; int32_t L_25 = V_1; NullCheck(L_23); int32_t L_26 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_24, (int32_t)L_25)), (int32_t)1)); StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E L_27 = (StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E )(L_23)->GetAt(static_cast<il2cpp_array_size_t>(L_26)); NullCheck((Comparison_1_t4416764FBA5772FAEAD3B0E55B7613EDC23DA078 *)L_21); int32_t L_28; L_28 = (( int32_t (*) (Comparison_1_t4416764FBA5772FAEAD3B0E55B7613EDC23DA078 *, StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E , StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t4416764FBA5772FAEAD3B0E55B7613EDC23DA078 *)L_21, (StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E )L_22, (StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E )L_27, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_28) >= ((int32_t)0))) { goto IL_006d; } } { StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65* L_29 = ___keys0; int32_t L_30 = ___lo3; int32_t L_31 = ___i1; StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65* L_32 = ___keys0; int32_t L_33 = ___lo3; int32_t L_34 = V_1; NullCheck(L_32); int32_t L_35 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_33, (int32_t)L_34)), (int32_t)1)); StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E L_36 = (StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E )(L_32)->GetAt(static_cast<il2cpp_array_size_t>(L_35)); NullCheck(L_29); (L_29)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_30, (int32_t)L_31)), (int32_t)1))), (StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E )L_36); int32_t L_37 = V_1; ___i1 = (int32_t)L_37; } IL_0067: { int32_t L_38 = ___i1; int32_t L_39 = ___n2; if ((((int32_t)L_38) <= ((int32_t)((int32_t)((int32_t)L_39/(int32_t)2))))) { goto IL_000e; } } IL_006d: { StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65* L_40 = ___keys0; int32_t L_41 = ___lo3; int32_t L_42 = ___i1; StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E L_43 = V_0; NullCheck(L_40); (L_40)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_41, (int32_t)L_42)), (int32_t)1))), (StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E )L_43); return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<Newtonsoft.Json.Utilities.StructMultiKey`2<System.Object,System.Object>>::InsertionSort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_InsertionSort_mC95C92618A50DF7B975DBA53173B13B34C2B83EC_gshared (StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65* ___keys0, int32_t ___lo1, int32_t ___hi2, Comparison_1_t4416764FBA5772FAEAD3B0E55B7613EDC23DA078 * ___comparer3, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E V_2; memset((&V_2), 0, sizeof(V_2)); { int32_t L_0 = ___lo1; V_0 = (int32_t)L_0; goto IL_0049; } IL_0004: { int32_t L_1 = V_0; V_1 = (int32_t)L_1; StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65* L_2 = ___keys0; int32_t L_3 = V_0; NullCheck(L_2); int32_t L_4 = ((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)1)); StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E L_5 = (StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E )(L_2)->GetAt(static_cast<il2cpp_array_size_t>(L_4)); V_2 = (StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E )L_5; goto IL_0026; } IL_0012: { StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65* L_6 = ___keys0; int32_t L_7 = V_1; StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65* L_8 = ___keys0; int32_t L_9 = V_1; NullCheck(L_8); int32_t L_10 = L_9; StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E L_11 = (StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E )(L_8)->GetAt(static_cast<il2cpp_array_size_t>(L_10)); NullCheck(L_6); (L_6)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add((int32_t)L_7, (int32_t)1))), (StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E )L_11); int32_t L_12 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_12, (int32_t)1)); } IL_0026: { int32_t L_13 = V_1; int32_t L_14 = ___lo1; if ((((int32_t)L_13) < ((int32_t)L_14))) { goto IL_003b; } } { Comparison_1_t4416764FBA5772FAEAD3B0E55B7613EDC23DA078 * L_15 = ___comparer3; StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E L_16 = V_2; StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65* L_17 = ___keys0; int32_t L_18 = V_1; NullCheck(L_17); int32_t L_19 = L_18; StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E L_20 = (StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E )(L_17)->GetAt(static_cast<il2cpp_array_size_t>(L_19)); NullCheck((Comparison_1_t4416764FBA5772FAEAD3B0E55B7613EDC23DA078 *)L_15); int32_t L_21; L_21 = (( int32_t (*) (Comparison_1_t4416764FBA5772FAEAD3B0E55B7613EDC23DA078 *, StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E , StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t4416764FBA5772FAEAD3B0E55B7613EDC23DA078 *)L_15, (StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E )L_16, (StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E )L_20, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_21) < ((int32_t)0))) { goto IL_0012; } } IL_003b: { StructMultiKey_2U5BU5D_t1D2863FA3519D4B0FA5A211785872E62AB994E65* L_22 = ___keys0; int32_t L_23 = V_1; StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E L_24 = V_2; NullCheck(L_22); (L_22)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add((int32_t)L_23, (int32_t)1))), (StructMultiKey_2_t760079386A9F95F111F6A2FE1E78428DC356FB9E )L_24); int32_t L_25 = V_0; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_25, (int32_t)1)); } IL_0049: { int32_t L_26 = V_0; int32_t L_27 = ___hi2; if ((((int32_t)L_26) < ((int32_t)L_27))) { goto IL_0004; } } { return; } } #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Void System.Collections.Generic.ArraySortHelper`1<UnityEngine.XR.Bone>::Sort(T[],System.Int32,System.Int32,System.Collections.Generic.IComparer`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Sort_mB69C8CD784CCF7B781C4D316717DB4707C78B798_gshared (BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6* ___keys0, int32_t ___index1, int32_t ___length2, RuntimeObject* ___comparer3, const RuntimeMethod* method) { Exception_t * V_0 = NULL; il2cpp::utils::ExceptionSupportStack<RuntimeObject*, 1> __active_exceptions; il2cpp::utils::ExceptionSupportStack<int32_t, 2> __leave_targets; IL_0000: try { // begin try (depth: 1) { RuntimeObject* L_0 = ___comparer3; if (L_0) { goto IL_000a; } } IL_0003: { Comparer_1_t36A3604A3B46EDC55CDAD4A35DA7E6CCADB184A2 * L_1; L_1 = (( Comparer_1_t36A3604A3B46EDC55CDAD4A35DA7E6CCADB184A2 * (*) (const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)->methodPointer)(/*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)); ___comparer3 = (RuntimeObject*)L_1; } IL_000a: { BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6* L_2 = ___keys0; int32_t L_3 = ___index1; int32_t L_4 = ___length2; RuntimeObject* L_5 = ___comparer3; RuntimeObject* L_6 = (RuntimeObject*)L_5; Comparison_1_t4AF545185E36C74EC29C2FC74162A0000184CB09 * L_7 = (Comparison_1_t4AF545185E36C74EC29C2FC74162A0000184CB09 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 4)); (( void (*) (Comparison_1_t4AF545185E36C74EC29C2FC74162A0000184CB09 *, RuntimeObject *, intptr_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 5)->methodPointer)(L_7, (RuntimeObject *)L_6, (intptr_t)((intptr_t)GetInterfaceMethodInfo(L_6, 0, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 3))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 5)); (( void (*) (BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6*, int32_t, int32_t, Comparison_1_t4AF545185E36C74EC29C2FC74162A0000184CB09 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)->methodPointer)((BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6*)L_2, (int32_t)L_3, (int32_t)L_4, (Comparison_1_t4AF545185E36C74EC29C2FC74162A0000184CB09 *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)); goto IL_0037; } } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&IndexOutOfRangeException_tDC9EF7A0346CE39E54DA1083F07BE6DFC3CE2EDD_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_0021; } if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&Exception_t_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_002a; } throw e; } CATCH_0021: { // begin catch(System.IndexOutOfRangeException) RuntimeObject* L_8 = ___comparer3; IntrospectiveSortUtilities_ThrowOrIgnoreBadComparer_mE23A8103696FA67F874E7DA86625BB3921DB801F((RuntimeObject *)L_8, /*hidden argument*/NULL); IL2CPP_POP_ACTIVE_EXCEPTION(); goto IL_0037; } // end catch (depth: 1) CATCH_002a: { // begin catch(System.Exception) V_0 = (Exception_t *)((Exception_t *)IL2CPP_GET_ACTIVE_EXCEPTION(Exception_t *)); Exception_t * L_9 = V_0; InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB * L_10 = (InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB *)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB_il2cpp_TypeInfo_var))); InvalidOperationException__ctor_m4A65916B1316FBF45ECDF1FF7FAC9E3CA30C112C(L_10, (String_t*)((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral6EDB6C049ED9617FA335A262A29BF30B15221AEA)), (Exception_t *)L_9, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_10, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArraySortHelper_1_Sort_mB69C8CD784CCF7B781C4D316717DB4707C78B798_RuntimeMethod_var))); } // end catch (depth: 1) IL_0037: { return; } } // System.Int32 System.Collections.Generic.ArraySortHelper`1<UnityEngine.XR.Bone>::BinarySearch(T[],System.Int32,System.Int32,T,System.Collections.Generic.IComparer`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t ArraySortHelper_1_BinarySearch_mCD1C3307C7D0FC5B6C09336386261F4F386713C4_gshared (BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6* ___array0, int32_t ___index1, int32_t ___length2, Bone_t8EDF2FA2139528015195AF2EA866A28947C3F070 ___value3, RuntimeObject* ___comparer4, const RuntimeMethod* method) { int32_t V_0 = 0; Exception_t * V_1 = NULL; il2cpp::utils::ExceptionSupportStack<RuntimeObject*, 1> __active_exceptions; il2cpp::utils::ExceptionSupportStack<int32_t, 1> __leave_targets; IL_0000: try { // begin try (depth: 1) { RuntimeObject* L_0 = ___comparer4; if (L_0) { goto IL_000b; } } IL_0004: { Comparer_1_t36A3604A3B46EDC55CDAD4A35DA7E6CCADB184A2 * L_1; L_1 = (( Comparer_1_t36A3604A3B46EDC55CDAD4A35DA7E6CCADB184A2 * (*) (const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)->methodPointer)(/*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)); ___comparer4 = (RuntimeObject*)L_1; } IL_000b: { BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6* L_2 = ___array0; int32_t L_3 = ___index1; int32_t L_4 = ___length2; Bone_t8EDF2FA2139528015195AF2EA866A28947C3F070 L_5 = ___value3; RuntimeObject* L_6 = ___comparer4; int32_t L_7; L_7 = (( int32_t (*) (BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6*, int32_t, int32_t, Bone_t8EDF2FA2139528015195AF2EA866A28947C3F070 , RuntimeObject*, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 8)->methodPointer)((BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6*)L_2, (int32_t)L_3, (int32_t)L_4, (Bone_t8EDF2FA2139528015195AF2EA866A28947C3F070 )L_5, (RuntimeObject*)L_6, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 8)); V_0 = (int32_t)L_7; goto IL_0026; } } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&Exception_t_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_0019; } throw e; } CATCH_0019: { // begin catch(System.Exception) V_1 = (Exception_t *)((Exception_t *)IL2CPP_GET_ACTIVE_EXCEPTION(Exception_t *)); Exception_t * L_8 = V_1; InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB * L_9 = (InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB *)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB_il2cpp_TypeInfo_var))); InvalidOperationException__ctor_m4A65916B1316FBF45ECDF1FF7FAC9E3CA30C112C(L_9, (String_t*)((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral6EDB6C049ED9617FA335A262A29BF30B15221AEA)), (Exception_t *)L_8, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_9, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArraySortHelper_1_BinarySearch_mCD1C3307C7D0FC5B6C09336386261F4F386713C4_RuntimeMethod_var))); } // end catch (depth: 1) IL_0026: { int32_t L_10 = V_0; return (int32_t)L_10; } } // System.Void System.Collections.Generic.ArraySortHelper`1<UnityEngine.XR.Bone>::Sort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Sort_m66687CBB8A94908F400688F9F159CA32E92C3AB1_gshared (BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6* ___keys0, int32_t ___index1, int32_t ___length2, Comparison_1_t4AF545185E36C74EC29C2FC74162A0000184CB09 * ___comparer3, const RuntimeMethod* method) { Exception_t * V_0 = NULL; il2cpp::utils::ExceptionSupportStack<RuntimeObject*, 1> __active_exceptions; il2cpp::utils::ExceptionSupportStack<int32_t, 2> __leave_targets; IL_0000: try { // begin try (depth: 1) BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6* L_0 = ___keys0; int32_t L_1 = ___index1; int32_t L_2 = ___length2; Comparison_1_t4AF545185E36C74EC29C2FC74162A0000184CB09 * L_3 = ___comparer3; (( void (*) (BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6*, int32_t, int32_t, Comparison_1_t4AF545185E36C74EC29C2FC74162A0000184CB09 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)->methodPointer)((BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6*)L_0, (int32_t)L_1, (int32_t)L_2, (Comparison_1_t4AF545185E36C74EC29C2FC74162A0000184CB09 *)L_3, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)); goto IL_0021; } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&IndexOutOfRangeException_tDC9EF7A0346CE39E54DA1083F07BE6DFC3CE2EDD_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_000b; } if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&Exception_t_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_0014; } throw e; } CATCH_000b: { // begin catch(System.IndexOutOfRangeException) Comparison_1_t4AF545185E36C74EC29C2FC74162A0000184CB09 * L_4 = ___comparer3; IntrospectiveSortUtilities_ThrowOrIgnoreBadComparer_mE23A8103696FA67F874E7DA86625BB3921DB801F((RuntimeObject *)L_4, /*hidden argument*/NULL); IL2CPP_POP_ACTIVE_EXCEPTION(); goto IL_0021; } // end catch (depth: 1) CATCH_0014: { // begin catch(System.Exception) V_0 = (Exception_t *)((Exception_t *)IL2CPP_GET_ACTIVE_EXCEPTION(Exception_t *)); Exception_t * L_5 = V_0; InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB * L_6 = (InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB *)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB_il2cpp_TypeInfo_var))); InvalidOperationException__ctor_m4A65916B1316FBF45ECDF1FF7FAC9E3CA30C112C(L_6, (String_t*)((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral6EDB6C049ED9617FA335A262A29BF30B15221AEA)), (Exception_t *)L_5, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_6, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArraySortHelper_1_Sort_m66687CBB8A94908F400688F9F159CA32E92C3AB1_RuntimeMethod_var))); } // end catch (depth: 1) IL_0021: { return; } } // System.Int32 System.Collections.Generic.ArraySortHelper`1<UnityEngine.XR.Bone>::InternalBinarySearch(T[],System.Int32,System.Int32,T,System.Collections.Generic.IComparer`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t ArraySortHelper_1_InternalBinarySearch_m1C03858FBE22EA118099C65091CDF9BD1C386253_gshared (BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6* ___array0, int32_t ___index1, int32_t ___length2, Bone_t8EDF2FA2139528015195AF2EA866A28947C3F070 ___value3, RuntimeObject* ___comparer4, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; int32_t V_2 = 0; int32_t V_3 = 0; { int32_t L_0 = ___index1; V_0 = (int32_t)L_0; int32_t L_1 = ___index1; int32_t L_2 = ___length2; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_1, (int32_t)L_2)), (int32_t)1)); goto IL_0035; } IL_000a: { int32_t L_3 = V_0; int32_t L_4 = V_1; int32_t L_5 = V_0; V_2 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)((int32_t)((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_4, (int32_t)L_5))>>(int32_t)1)))); RuntimeObject* L_6 = ___comparer4; BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6* L_7 = ___array0; int32_t L_8 = V_2; NullCheck(L_7); int32_t L_9 = L_8; Bone_t8EDF2FA2139528015195AF2EA866A28947C3F070 L_10 = (L_7)->GetAt(static_cast<il2cpp_array_size_t>(L_9)); Bone_t8EDF2FA2139528015195AF2EA866A28947C3F070 L_11 = ___value3; NullCheck((RuntimeObject*)L_6); int32_t L_12; L_12 = InterfaceFuncInvoker2< int32_t, Bone_t8EDF2FA2139528015195AF2EA866A28947C3F070 , Bone_t8EDF2FA2139528015195AF2EA866A28947C3F070 >::Invoke(0 /* System.Int32 System.Collections.Generic.IComparer`1<UnityEngine.XR.Bone>::Compare(T,T) */, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 3), (RuntimeObject*)L_6, (Bone_t8EDF2FA2139528015195AF2EA866A28947C3F070 )L_10, (Bone_t8EDF2FA2139528015195AF2EA866A28947C3F070 )L_11); V_3 = (int32_t)L_12; int32_t L_13 = V_3; if (L_13) { goto IL_0027; } } { int32_t L_14 = V_2; return (int32_t)L_14; } IL_0027: { int32_t L_15 = V_3; if ((((int32_t)L_15) >= ((int32_t)0))) { goto IL_0031; } } { int32_t L_16 = V_2; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_16, (int32_t)1)); goto IL_0035; } IL_0031: { int32_t L_17 = V_2; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_17, (int32_t)1)); } IL_0035: { int32_t L_18 = V_0; int32_t L_19 = V_1; if ((((int32_t)L_18) <= ((int32_t)L_19))) { goto IL_000a; } } { int32_t L_20 = V_0; return (int32_t)((~L_20)); } } // System.Void System.Collections.Generic.ArraySortHelper`1<UnityEngine.XR.Bone>::SwapIfGreater(T[],System.Comparison`1<T>,System.Int32,System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_SwapIfGreater_m8B23896D4667A55FFE0E008A0D2545CA34373AF3_gshared (BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6* ___keys0, Comparison_1_t4AF545185E36C74EC29C2FC74162A0000184CB09 * ___comparer1, int32_t ___a2, int32_t ___b3, const RuntimeMethod* method) { Bone_t8EDF2FA2139528015195AF2EA866A28947C3F070 V_0; memset((&V_0), 0, sizeof(V_0)); { int32_t L_0 = ___a2; int32_t L_1 = ___b3; if ((((int32_t)L_0) == ((int32_t)L_1))) { goto IL_0039; } } { Comparison_1_t4AF545185E36C74EC29C2FC74162A0000184CB09 * L_2 = ___comparer1; BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6* L_3 = ___keys0; int32_t L_4 = ___a2; NullCheck(L_3); int32_t L_5 = L_4; Bone_t8EDF2FA2139528015195AF2EA866A28947C3F070 L_6 = (L_3)->GetAt(static_cast<il2cpp_array_size_t>(L_5)); BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6* L_7 = ___keys0; int32_t L_8 = ___b3; NullCheck(L_7); int32_t L_9 = L_8; Bone_t8EDF2FA2139528015195AF2EA866A28947C3F070 L_10 = (L_7)->GetAt(static_cast<il2cpp_array_size_t>(L_9)); NullCheck((Comparison_1_t4AF545185E36C74EC29C2FC74162A0000184CB09 *)L_2); int32_t L_11; L_11 = (( int32_t (*) (Comparison_1_t4AF545185E36C74EC29C2FC74162A0000184CB09 *, Bone_t8EDF2FA2139528015195AF2EA866A28947C3F070 , Bone_t8EDF2FA2139528015195AF2EA866A28947C3F070 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t4AF545185E36C74EC29C2FC74162A0000184CB09 *)L_2, (Bone_t8EDF2FA2139528015195AF2EA866A28947C3F070 )L_6, (Bone_t8EDF2FA2139528015195AF2EA866A28947C3F070 )L_10, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_11) <= ((int32_t)0))) { goto IL_0039; } } { BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6* L_12 = ___keys0; int32_t L_13 = ___a2; NullCheck(L_12); int32_t L_14 = L_13; Bone_t8EDF2FA2139528015195AF2EA866A28947C3F070 L_15 = (L_12)->GetAt(static_cast<il2cpp_array_size_t>(L_14)); V_0 = (Bone_t8EDF2FA2139528015195AF2EA866A28947C3F070 )L_15; BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6* L_16 = ___keys0; int32_t L_17 = ___a2; BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6* L_18 = ___keys0; int32_t L_19 = ___b3; NullCheck(L_18); int32_t L_20 = L_19; Bone_t8EDF2FA2139528015195AF2EA866A28947C3F070 L_21 = (L_18)->GetAt(static_cast<il2cpp_array_size_t>(L_20)); NullCheck(L_16); (L_16)->SetAt(static_cast<il2cpp_array_size_t>(L_17), (Bone_t8EDF2FA2139528015195AF2EA866A28947C3F070 )L_21); BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6* L_22 = ___keys0; int32_t L_23 = ___b3; Bone_t8EDF2FA2139528015195AF2EA866A28947C3F070 L_24 = V_0; NullCheck(L_22); (L_22)->SetAt(static_cast<il2cpp_array_size_t>(L_23), (Bone_t8EDF2FA2139528015195AF2EA866A28947C3F070 )L_24); } IL_0039: { return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<UnityEngine.XR.Bone>::Swap(T[],System.Int32,System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Swap_m3603CD0986452F08CB65C9B9DD32A3C1B4D20911_gshared (BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6* ___a0, int32_t ___i1, int32_t ___j2, const RuntimeMethod* method) { Bone_t8EDF2FA2139528015195AF2EA866A28947C3F070 V_0; memset((&V_0), 0, sizeof(V_0)); { int32_t L_0 = ___i1; int32_t L_1 = ___j2; if ((((int32_t)L_0) == ((int32_t)L_1))) { goto IL_0022; } } { BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6* L_2 = ___a0; int32_t L_3 = ___i1; NullCheck(L_2); int32_t L_4 = L_3; Bone_t8EDF2FA2139528015195AF2EA866A28947C3F070 L_5 = (L_2)->GetAt(static_cast<il2cpp_array_size_t>(L_4)); V_0 = (Bone_t8EDF2FA2139528015195AF2EA866A28947C3F070 )L_5; BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6* L_6 = ___a0; int32_t L_7 = ___i1; BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6* L_8 = ___a0; int32_t L_9 = ___j2; NullCheck(L_8); int32_t L_10 = L_9; Bone_t8EDF2FA2139528015195AF2EA866A28947C3F070 L_11 = (L_8)->GetAt(static_cast<il2cpp_array_size_t>(L_10)); NullCheck(L_6); (L_6)->SetAt(static_cast<il2cpp_array_size_t>(L_7), (Bone_t8EDF2FA2139528015195AF2EA866A28947C3F070 )L_11); BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6* L_12 = ___a0; int32_t L_13 = ___j2; Bone_t8EDF2FA2139528015195AF2EA866A28947C3F070 L_14 = V_0; NullCheck(L_12); (L_12)->SetAt(static_cast<il2cpp_array_size_t>(L_13), (Bone_t8EDF2FA2139528015195AF2EA866A28947C3F070 )L_14); } IL_0022: { return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<UnityEngine.XR.Bone>::IntrospectiveSort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_IntrospectiveSort_m47CABE08AA48186662D1473A68686F0588C5EEC6_gshared (BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6* ___keys0, int32_t ___left1, int32_t ___length2, Comparison_1_t4AF545185E36C74EC29C2FC74162A0000184CB09 * ___comparer3, const RuntimeMethod* method) { { int32_t L_0 = ___length2; if ((((int32_t)L_0) >= ((int32_t)2))) { goto IL_0005; } } { return; } IL_0005: { BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6* L_1 = ___keys0; int32_t L_2 = ___left1; int32_t L_3 = ___length2; int32_t L_4 = ___left1; BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6* L_5 = ___keys0; NullCheck(L_5); int32_t L_6; L_6 = IntrospectiveSortUtilities_FloorLog2_m05ECB6CAC7A23087D9EC2C2A4DDCFE12272C3872((int32_t)((int32_t)((int32_t)(((RuntimeArray*)L_5)->max_length))), /*hidden argument*/NULL); Comparison_1_t4AF545185E36C74EC29C2FC74162A0000184CB09 * L_7 = ___comparer3; (( void (*) (BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6*, int32_t, int32_t, int32_t, Comparison_1_t4AF545185E36C74EC29C2FC74162A0000184CB09 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)->methodPointer)((BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6*)L_1, (int32_t)L_2, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)L_4)), (int32_t)1)), (int32_t)((int32_t)il2cpp_codegen_multiply((int32_t)2, (int32_t)L_6)), (Comparison_1_t4AF545185E36C74EC29C2FC74162A0000184CB09 *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)); return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<UnityEngine.XR.Bone>::IntroSort(T[],System.Int32,System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_IntroSort_mEA0D05F27F7ABD8ACDCF4234A871FFF7CE8C33E0_gshared (BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6* ___keys0, int32_t ___lo1, int32_t ___hi2, int32_t ___depthLimit3, Comparison_1_t4AF545185E36C74EC29C2FC74162A0000184CB09 * ___comparer4, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; { goto IL_0086; } IL_0005: { int32_t L_0 = ___hi2; int32_t L_1 = ___lo1; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_0, (int32_t)L_1)), (int32_t)1)); int32_t L_2 = V_0; if ((((int32_t)L_2) > ((int32_t)((int32_t)16)))) { goto IL_0056; } } { int32_t L_3 = V_0; if ((!(((uint32_t)L_3) == ((uint32_t)1)))) { goto IL_0015; } } { return; } IL_0015: { int32_t L_4 = V_0; if ((!(((uint32_t)L_4) == ((uint32_t)2)))) { goto IL_0024; } } { BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6* L_5 = ___keys0; Comparison_1_t4AF545185E36C74EC29C2FC74162A0000184CB09 * L_6 = ___comparer4; int32_t L_7 = ___lo1; int32_t L_8 = ___hi2; (( void (*) (BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6*, Comparison_1_t4AF545185E36C74EC29C2FC74162A0000184CB09 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6*)L_5, (Comparison_1_t4AF545185E36C74EC29C2FC74162A0000184CB09 *)L_6, (int32_t)L_7, (int32_t)L_8, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); return; } IL_0024: { int32_t L_9 = V_0; if ((!(((uint32_t)L_9) == ((uint32_t)3)))) { goto IL_004b; } } { BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6* L_10 = ___keys0; Comparison_1_t4AF545185E36C74EC29C2FC74162A0000184CB09 * L_11 = ___comparer4; int32_t L_12 = ___lo1; int32_t L_13 = ___hi2; (( void (*) (BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6*, Comparison_1_t4AF545185E36C74EC29C2FC74162A0000184CB09 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6*)L_10, (Comparison_1_t4AF545185E36C74EC29C2FC74162A0000184CB09 *)L_11, (int32_t)L_12, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_13, (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6* L_14 = ___keys0; Comparison_1_t4AF545185E36C74EC29C2FC74162A0000184CB09 * L_15 = ___comparer4; int32_t L_16 = ___lo1; int32_t L_17 = ___hi2; (( void (*) (BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6*, Comparison_1_t4AF545185E36C74EC29C2FC74162A0000184CB09 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6*)L_14, (Comparison_1_t4AF545185E36C74EC29C2FC74162A0000184CB09 *)L_15, (int32_t)L_16, (int32_t)L_17, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6* L_18 = ___keys0; Comparison_1_t4AF545185E36C74EC29C2FC74162A0000184CB09 * L_19 = ___comparer4; int32_t L_20 = ___hi2; int32_t L_21 = ___hi2; (( void (*) (BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6*, Comparison_1_t4AF545185E36C74EC29C2FC74162A0000184CB09 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6*)L_18, (Comparison_1_t4AF545185E36C74EC29C2FC74162A0000184CB09 *)L_19, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_20, (int32_t)1)), (int32_t)L_21, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); return; } IL_004b: { BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6* L_22 = ___keys0; int32_t L_23 = ___lo1; int32_t L_24 = ___hi2; Comparison_1_t4AF545185E36C74EC29C2FC74162A0000184CB09 * L_25 = ___comparer4; (( void (*) (BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6*, int32_t, int32_t, Comparison_1_t4AF545185E36C74EC29C2FC74162A0000184CB09 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 12)->methodPointer)((BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6*)L_22, (int32_t)L_23, (int32_t)L_24, (Comparison_1_t4AF545185E36C74EC29C2FC74162A0000184CB09 *)L_25, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 12)); return; } IL_0056: { int32_t L_26 = ___depthLimit3; if (L_26) { goto IL_0064; } } { BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6* L_27 = ___keys0; int32_t L_28 = ___lo1; int32_t L_29 = ___hi2; Comparison_1_t4AF545185E36C74EC29C2FC74162A0000184CB09 * L_30 = ___comparer4; (( void (*) (BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6*, int32_t, int32_t, Comparison_1_t4AF545185E36C74EC29C2FC74162A0000184CB09 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 13)->methodPointer)((BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6*)L_27, (int32_t)L_28, (int32_t)L_29, (Comparison_1_t4AF545185E36C74EC29C2FC74162A0000184CB09 *)L_30, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 13)); return; } IL_0064: { int32_t L_31 = ___depthLimit3; ___depthLimit3 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_31, (int32_t)1)); BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6* L_32 = ___keys0; int32_t L_33 = ___lo1; int32_t L_34 = ___hi2; Comparison_1_t4AF545185E36C74EC29C2FC74162A0000184CB09 * L_35 = ___comparer4; int32_t L_36; L_36 = (( int32_t (*) (BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6*, int32_t, int32_t, Comparison_1_t4AF545185E36C74EC29C2FC74162A0000184CB09 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 14)->methodPointer)((BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6*)L_32, (int32_t)L_33, (int32_t)L_34, (Comparison_1_t4AF545185E36C74EC29C2FC74162A0000184CB09 *)L_35, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 14)); V_1 = (int32_t)L_36; BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6* L_37 = ___keys0; int32_t L_38 = V_1; int32_t L_39 = ___hi2; int32_t L_40 = ___depthLimit3; Comparison_1_t4AF545185E36C74EC29C2FC74162A0000184CB09 * L_41 = ___comparer4; (( void (*) (BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6*, int32_t, int32_t, int32_t, Comparison_1_t4AF545185E36C74EC29C2FC74162A0000184CB09 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)->methodPointer)((BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6*)L_37, (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_38, (int32_t)1)), (int32_t)L_39, (int32_t)L_40, (Comparison_1_t4AF545185E36C74EC29C2FC74162A0000184CB09 *)L_41, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)); int32_t L_42 = V_1; ___hi2 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_42, (int32_t)1)); } IL_0086: { int32_t L_43 = ___hi2; int32_t L_44 = ___lo1; if ((((int32_t)L_43) > ((int32_t)L_44))) { goto IL_0005; } } { return; } } // System.Int32 System.Collections.Generic.ArraySortHelper`1<UnityEngine.XR.Bone>::PickPivotAndPartition(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t ArraySortHelper_1_PickPivotAndPartition_mA7A676FB7B72C5DD420F70889F7DEE2A560ACE08_gshared (BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6* ___keys0, int32_t ___lo1, int32_t ___hi2, Comparison_1_t4AF545185E36C74EC29C2FC74162A0000184CB09 * ___comparer3, const RuntimeMethod* method) { int32_t V_0 = 0; Bone_t8EDF2FA2139528015195AF2EA866A28947C3F070 V_1; memset((&V_1), 0, sizeof(V_1)); int32_t V_2 = 0; int32_t V_3 = 0; { int32_t L_0 = ___lo1; int32_t L_1 = ___hi2; int32_t L_2 = ___lo1; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_0, (int32_t)((int32_t)((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_1, (int32_t)L_2))/(int32_t)2)))); BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6* L_3 = ___keys0; Comparison_1_t4AF545185E36C74EC29C2FC74162A0000184CB09 * L_4 = ___comparer3; int32_t L_5 = ___lo1; int32_t L_6 = V_0; (( void (*) (BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6*, Comparison_1_t4AF545185E36C74EC29C2FC74162A0000184CB09 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6*)L_3, (Comparison_1_t4AF545185E36C74EC29C2FC74162A0000184CB09 *)L_4, (int32_t)L_5, (int32_t)L_6, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6* L_7 = ___keys0; Comparison_1_t4AF545185E36C74EC29C2FC74162A0000184CB09 * L_8 = ___comparer3; int32_t L_9 = ___lo1; int32_t L_10 = ___hi2; (( void (*) (BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6*, Comparison_1_t4AF545185E36C74EC29C2FC74162A0000184CB09 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6*)L_7, (Comparison_1_t4AF545185E36C74EC29C2FC74162A0000184CB09 *)L_8, (int32_t)L_9, (int32_t)L_10, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6* L_11 = ___keys0; Comparison_1_t4AF545185E36C74EC29C2FC74162A0000184CB09 * L_12 = ___comparer3; int32_t L_13 = V_0; int32_t L_14 = ___hi2; (( void (*) (BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6*, Comparison_1_t4AF545185E36C74EC29C2FC74162A0000184CB09 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6*)L_11, (Comparison_1_t4AF545185E36C74EC29C2FC74162A0000184CB09 *)L_12, (int32_t)L_13, (int32_t)L_14, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6* L_15 = ___keys0; int32_t L_16 = V_0; NullCheck(L_15); int32_t L_17 = L_16; Bone_t8EDF2FA2139528015195AF2EA866A28947C3F070 L_18 = (L_15)->GetAt(static_cast<il2cpp_array_size_t>(L_17)); V_1 = (Bone_t8EDF2FA2139528015195AF2EA866A28947C3F070 )L_18; BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6* L_19 = ___keys0; int32_t L_20 = V_0; int32_t L_21 = ___hi2; (( void (*) (BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6*)L_19, (int32_t)L_20, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_21, (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); int32_t L_22 = ___lo1; V_2 = (int32_t)L_22; int32_t L_23 = ___hi2; V_3 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_23, (int32_t)1)); goto IL_0073; } IL_003d: { Comparison_1_t4AF545185E36C74EC29C2FC74162A0000184CB09 * L_24 = ___comparer3; BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6* L_25 = ___keys0; int32_t L_26 = V_2; int32_t L_27 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_26, (int32_t)1)); V_2 = (int32_t)L_27; NullCheck(L_25); int32_t L_28 = L_27; Bone_t8EDF2FA2139528015195AF2EA866A28947C3F070 L_29 = (L_25)->GetAt(static_cast<il2cpp_array_size_t>(L_28)); Bone_t8EDF2FA2139528015195AF2EA866A28947C3F070 L_30 = V_1; NullCheck((Comparison_1_t4AF545185E36C74EC29C2FC74162A0000184CB09 *)L_24); int32_t L_31; L_31 = (( int32_t (*) (Comparison_1_t4AF545185E36C74EC29C2FC74162A0000184CB09 *, Bone_t8EDF2FA2139528015195AF2EA866A28947C3F070 , Bone_t8EDF2FA2139528015195AF2EA866A28947C3F070 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t4AF545185E36C74EC29C2FC74162A0000184CB09 *)L_24, (Bone_t8EDF2FA2139528015195AF2EA866A28947C3F070 )L_29, (Bone_t8EDF2FA2139528015195AF2EA866A28947C3F070 )L_30, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_31) < ((int32_t)0))) { goto IL_003d; } } IL_0052: { Comparison_1_t4AF545185E36C74EC29C2FC74162A0000184CB09 * L_32 = ___comparer3; Bone_t8EDF2FA2139528015195AF2EA866A28947C3F070 L_33 = V_1; BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6* L_34 = ___keys0; int32_t L_35 = V_3; int32_t L_36 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_35, (int32_t)1)); V_3 = (int32_t)L_36; NullCheck(L_34); int32_t L_37 = L_36; Bone_t8EDF2FA2139528015195AF2EA866A28947C3F070 L_38 = (L_34)->GetAt(static_cast<il2cpp_array_size_t>(L_37)); NullCheck((Comparison_1_t4AF545185E36C74EC29C2FC74162A0000184CB09 *)L_32); int32_t L_39; L_39 = (( int32_t (*) (Comparison_1_t4AF545185E36C74EC29C2FC74162A0000184CB09 *, Bone_t8EDF2FA2139528015195AF2EA866A28947C3F070 , Bone_t8EDF2FA2139528015195AF2EA866A28947C3F070 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t4AF545185E36C74EC29C2FC74162A0000184CB09 *)L_32, (Bone_t8EDF2FA2139528015195AF2EA866A28947C3F070 )L_33, (Bone_t8EDF2FA2139528015195AF2EA866A28947C3F070 )L_38, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_39) < ((int32_t)0))) { goto IL_0052; } } { int32_t L_40 = V_2; int32_t L_41 = V_3; if ((((int32_t)L_40) >= ((int32_t)L_41))) { goto IL_0077; } } { BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6* L_42 = ___keys0; int32_t L_43 = V_2; int32_t L_44 = V_3; (( void (*) (BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6*)L_42, (int32_t)L_43, (int32_t)L_44, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); } IL_0073: { int32_t L_45 = V_2; int32_t L_46 = V_3; if ((((int32_t)L_45) < ((int32_t)L_46))) { goto IL_003d; } } IL_0077: { BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6* L_47 = ___keys0; int32_t L_48 = V_2; int32_t L_49 = ___hi2; (( void (*) (BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6*)L_47, (int32_t)L_48, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_49, (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); int32_t L_50 = V_2; return (int32_t)L_50; } } // System.Void System.Collections.Generic.ArraySortHelper`1<UnityEngine.XR.Bone>::Heapsort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Heapsort_m09D836C562833EBB6D24434BD47CD7C986DACF2B_gshared (BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6* ___keys0, int32_t ___lo1, int32_t ___hi2, Comparison_1_t4AF545185E36C74EC29C2FC74162A0000184CB09 * ___comparer3, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; int32_t V_2 = 0; { int32_t L_0 = ___hi2; int32_t L_1 = ___lo1; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_0, (int32_t)L_1)), (int32_t)1)); int32_t L_2 = V_0; V_1 = (int32_t)((int32_t)((int32_t)L_2/(int32_t)2)); goto IL_001a; } IL_000c: { BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6* L_3 = ___keys0; int32_t L_4 = V_1; int32_t L_5 = V_0; int32_t L_6 = ___lo1; Comparison_1_t4AF545185E36C74EC29C2FC74162A0000184CB09 * L_7 = ___comparer3; (( void (*) (BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6*, int32_t, int32_t, int32_t, Comparison_1_t4AF545185E36C74EC29C2FC74162A0000184CB09 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)->methodPointer)((BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6*)L_3, (int32_t)L_4, (int32_t)L_5, (int32_t)L_6, (Comparison_1_t4AF545185E36C74EC29C2FC74162A0000184CB09 *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)); int32_t L_8 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_8, (int32_t)1)); } IL_001a: { int32_t L_9 = V_1; if ((((int32_t)L_9) >= ((int32_t)1))) { goto IL_000c; } } { int32_t L_10 = V_0; V_2 = (int32_t)L_10; goto IL_003e; } IL_0022: { BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6* L_11 = ___keys0; int32_t L_12 = ___lo1; int32_t L_13 = ___lo1; int32_t L_14 = V_2; (( void (*) (BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6*)L_11, (int32_t)L_12, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_13, (int32_t)L_14)), (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6* L_15 = ___keys0; int32_t L_16 = V_2; int32_t L_17 = ___lo1; Comparison_1_t4AF545185E36C74EC29C2FC74162A0000184CB09 * L_18 = ___comparer3; (( void (*) (BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6*, int32_t, int32_t, int32_t, Comparison_1_t4AF545185E36C74EC29C2FC74162A0000184CB09 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)->methodPointer)((BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6*)L_15, (int32_t)1, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_16, (int32_t)1)), (int32_t)L_17, (Comparison_1_t4AF545185E36C74EC29C2FC74162A0000184CB09 *)L_18, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)); int32_t L_19 = V_2; V_2 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_19, (int32_t)1)); } IL_003e: { int32_t L_20 = V_2; if ((((int32_t)L_20) > ((int32_t)1))) { goto IL_0022; } } { return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<UnityEngine.XR.Bone>::DownHeap(T[],System.Int32,System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_DownHeap_m08BD43AC98FE8C74A735FF3E70CA1AFD1DDADAA1_gshared (BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6* ___keys0, int32_t ___i1, int32_t ___n2, int32_t ___lo3, Comparison_1_t4AF545185E36C74EC29C2FC74162A0000184CB09 * ___comparer4, const RuntimeMethod* method) { Bone_t8EDF2FA2139528015195AF2EA866A28947C3F070 V_0; memset((&V_0), 0, sizeof(V_0)); int32_t V_1 = 0; { BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6* L_0 = ___keys0; int32_t L_1 = ___lo3; int32_t L_2 = ___i1; NullCheck(L_0); int32_t L_3 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_1, (int32_t)L_2)), (int32_t)1)); Bone_t8EDF2FA2139528015195AF2EA866A28947C3F070 L_4 = (L_0)->GetAt(static_cast<il2cpp_array_size_t>(L_3)); V_0 = (Bone_t8EDF2FA2139528015195AF2EA866A28947C3F070 )L_4; goto IL_0067; } IL_000e: { int32_t L_5 = ___i1; V_1 = (int32_t)((int32_t)il2cpp_codegen_multiply((int32_t)2, (int32_t)L_5)); int32_t L_6 = V_1; int32_t L_7 = ___n2; if ((((int32_t)L_6) >= ((int32_t)L_7))) { goto IL_0038; } } { Comparison_1_t4AF545185E36C74EC29C2FC74162A0000184CB09 * L_8 = ___comparer4; BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6* L_9 = ___keys0; int32_t L_10 = ___lo3; int32_t L_11 = V_1; NullCheck(L_9); int32_t L_12 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_10, (int32_t)L_11)), (int32_t)1)); Bone_t8EDF2FA2139528015195AF2EA866A28947C3F070 L_13 = (L_9)->GetAt(static_cast<il2cpp_array_size_t>(L_12)); BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6* L_14 = ___keys0; int32_t L_15 = ___lo3; int32_t L_16 = V_1; NullCheck(L_14); int32_t L_17 = ((int32_t)il2cpp_codegen_add((int32_t)L_15, (int32_t)L_16)); Bone_t8EDF2FA2139528015195AF2EA866A28947C3F070 L_18 = (L_14)->GetAt(static_cast<il2cpp_array_size_t>(L_17)); NullCheck((Comparison_1_t4AF545185E36C74EC29C2FC74162A0000184CB09 *)L_8); int32_t L_19; L_19 = (( int32_t (*) (Comparison_1_t4AF545185E36C74EC29C2FC74162A0000184CB09 *, Bone_t8EDF2FA2139528015195AF2EA866A28947C3F070 , Bone_t8EDF2FA2139528015195AF2EA866A28947C3F070 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t4AF545185E36C74EC29C2FC74162A0000184CB09 *)L_8, (Bone_t8EDF2FA2139528015195AF2EA866A28947C3F070 )L_13, (Bone_t8EDF2FA2139528015195AF2EA866A28947C3F070 )L_18, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_19) >= ((int32_t)0))) { goto IL_0038; } } { int32_t L_20 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_20, (int32_t)1)); } IL_0038: { Comparison_1_t4AF545185E36C74EC29C2FC74162A0000184CB09 * L_21 = ___comparer4; Bone_t8EDF2FA2139528015195AF2EA866A28947C3F070 L_22 = V_0; BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6* L_23 = ___keys0; int32_t L_24 = ___lo3; int32_t L_25 = V_1; NullCheck(L_23); int32_t L_26 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_24, (int32_t)L_25)), (int32_t)1)); Bone_t8EDF2FA2139528015195AF2EA866A28947C3F070 L_27 = (L_23)->GetAt(static_cast<il2cpp_array_size_t>(L_26)); NullCheck((Comparison_1_t4AF545185E36C74EC29C2FC74162A0000184CB09 *)L_21); int32_t L_28; L_28 = (( int32_t (*) (Comparison_1_t4AF545185E36C74EC29C2FC74162A0000184CB09 *, Bone_t8EDF2FA2139528015195AF2EA866A28947C3F070 , Bone_t8EDF2FA2139528015195AF2EA866A28947C3F070 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t4AF545185E36C74EC29C2FC74162A0000184CB09 *)L_21, (Bone_t8EDF2FA2139528015195AF2EA866A28947C3F070 )L_22, (Bone_t8EDF2FA2139528015195AF2EA866A28947C3F070 )L_27, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_28) >= ((int32_t)0))) { goto IL_006d; } } { BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6* L_29 = ___keys0; int32_t L_30 = ___lo3; int32_t L_31 = ___i1; BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6* L_32 = ___keys0; int32_t L_33 = ___lo3; int32_t L_34 = V_1; NullCheck(L_32); int32_t L_35 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_33, (int32_t)L_34)), (int32_t)1)); Bone_t8EDF2FA2139528015195AF2EA866A28947C3F070 L_36 = (L_32)->GetAt(static_cast<il2cpp_array_size_t>(L_35)); NullCheck(L_29); (L_29)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_30, (int32_t)L_31)), (int32_t)1))), (Bone_t8EDF2FA2139528015195AF2EA866A28947C3F070 )L_36); int32_t L_37 = V_1; ___i1 = (int32_t)L_37; } IL_0067: { int32_t L_38 = ___i1; int32_t L_39 = ___n2; if ((((int32_t)L_38) <= ((int32_t)((int32_t)((int32_t)L_39/(int32_t)2))))) { goto IL_000e; } } IL_006d: { BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6* L_40 = ___keys0; int32_t L_41 = ___lo3; int32_t L_42 = ___i1; Bone_t8EDF2FA2139528015195AF2EA866A28947C3F070 L_43 = V_0; NullCheck(L_40); (L_40)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_41, (int32_t)L_42)), (int32_t)1))), (Bone_t8EDF2FA2139528015195AF2EA866A28947C3F070 )L_43); return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<UnityEngine.XR.Bone>::InsertionSort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_InsertionSort_mCC0DD544BE8D8518433B5AED600C1092BFCD0DD9_gshared (BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6* ___keys0, int32_t ___lo1, int32_t ___hi2, Comparison_1_t4AF545185E36C74EC29C2FC74162A0000184CB09 * ___comparer3, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; Bone_t8EDF2FA2139528015195AF2EA866A28947C3F070 V_2; memset((&V_2), 0, sizeof(V_2)); { int32_t L_0 = ___lo1; V_0 = (int32_t)L_0; goto IL_0049; } IL_0004: { int32_t L_1 = V_0; V_1 = (int32_t)L_1; BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6* L_2 = ___keys0; int32_t L_3 = V_0; NullCheck(L_2); int32_t L_4 = ((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)1)); Bone_t8EDF2FA2139528015195AF2EA866A28947C3F070 L_5 = (L_2)->GetAt(static_cast<il2cpp_array_size_t>(L_4)); V_2 = (Bone_t8EDF2FA2139528015195AF2EA866A28947C3F070 )L_5; goto IL_0026; } IL_0012: { BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6* L_6 = ___keys0; int32_t L_7 = V_1; BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6* L_8 = ___keys0; int32_t L_9 = V_1; NullCheck(L_8); int32_t L_10 = L_9; Bone_t8EDF2FA2139528015195AF2EA866A28947C3F070 L_11 = (L_8)->GetAt(static_cast<il2cpp_array_size_t>(L_10)); NullCheck(L_6); (L_6)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add((int32_t)L_7, (int32_t)1))), (Bone_t8EDF2FA2139528015195AF2EA866A28947C3F070 )L_11); int32_t L_12 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_12, (int32_t)1)); } IL_0026: { int32_t L_13 = V_1; int32_t L_14 = ___lo1; if ((((int32_t)L_13) < ((int32_t)L_14))) { goto IL_003b; } } { Comparison_1_t4AF545185E36C74EC29C2FC74162A0000184CB09 * L_15 = ___comparer3; Bone_t8EDF2FA2139528015195AF2EA866A28947C3F070 L_16 = V_2; BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6* L_17 = ___keys0; int32_t L_18 = V_1; NullCheck(L_17); int32_t L_19 = L_18; Bone_t8EDF2FA2139528015195AF2EA866A28947C3F070 L_20 = (L_17)->GetAt(static_cast<il2cpp_array_size_t>(L_19)); NullCheck((Comparison_1_t4AF545185E36C74EC29C2FC74162A0000184CB09 *)L_15); int32_t L_21; L_21 = (( int32_t (*) (Comparison_1_t4AF545185E36C74EC29C2FC74162A0000184CB09 *, Bone_t8EDF2FA2139528015195AF2EA866A28947C3F070 , Bone_t8EDF2FA2139528015195AF2EA866A28947C3F070 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t4AF545185E36C74EC29C2FC74162A0000184CB09 *)L_15, (Bone_t8EDF2FA2139528015195AF2EA866A28947C3F070 )L_16, (Bone_t8EDF2FA2139528015195AF2EA866A28947C3F070 )L_20, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_21) < ((int32_t)0))) { goto IL_0012; } } IL_003b: { BoneU5BU5D_t2272F77511BCE614BA7A8E6713E4086CAE20D9B6* L_22 = ___keys0; int32_t L_23 = V_1; Bone_t8EDF2FA2139528015195AF2EA866A28947C3F070 L_24 = V_2; NullCheck(L_22); (L_22)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add((int32_t)L_23, (int32_t)1))), (Bone_t8EDF2FA2139528015195AF2EA866A28947C3F070 )L_24); int32_t L_25 = V_0; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_25, (int32_t)1)); } IL_0049: { int32_t L_26 = V_0; int32_t L_27 = ___hi2; if ((((int32_t)L_26) < ((int32_t)L_27))) { goto IL_0004; } } { return; } } #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Void System.Collections.Generic.ArraySortHelper`1<System.Boolean>::Sort(T[],System.Int32,System.Int32,System.Collections.Generic.IComparer`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Sort_m2384C955B3394C1EE9F776CFCC43351A366B0179_gshared (BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C* ___keys0, int32_t ___index1, int32_t ___length2, RuntimeObject* ___comparer3, const RuntimeMethod* method) { Exception_t * V_0 = NULL; il2cpp::utils::ExceptionSupportStack<RuntimeObject*, 1> __active_exceptions; il2cpp::utils::ExceptionSupportStack<int32_t, 2> __leave_targets; IL_0000: try { // begin try (depth: 1) { RuntimeObject* L_0 = ___comparer3; if (L_0) { goto IL_000a; } } IL_0003: { Comparer_1_tC0B38F30FEF4F46666AA129BB9DBBD166FF98149 * L_1; L_1 = (( Comparer_1_tC0B38F30FEF4F46666AA129BB9DBBD166FF98149 * (*) (const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)->methodPointer)(/*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)); ___comparer3 = (RuntimeObject*)L_1; } IL_000a: { BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C* L_2 = ___keys0; int32_t L_3 = ___index1; int32_t L_4 = ___length2; RuntimeObject* L_5 = ___comparer3; RuntimeObject* L_6 = (RuntimeObject*)L_5; Comparison_1_t361FD570B26BC4AFFF2982AAB3011075A8281A0C * L_7 = (Comparison_1_t361FD570B26BC4AFFF2982AAB3011075A8281A0C *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 4)); (( void (*) (Comparison_1_t361FD570B26BC4AFFF2982AAB3011075A8281A0C *, RuntimeObject *, intptr_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 5)->methodPointer)(L_7, (RuntimeObject *)L_6, (intptr_t)((intptr_t)GetInterfaceMethodInfo(L_6, 0, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 3))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 5)); (( void (*) (BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C*, int32_t, int32_t, Comparison_1_t361FD570B26BC4AFFF2982AAB3011075A8281A0C *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)->methodPointer)((BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C*)L_2, (int32_t)L_3, (int32_t)L_4, (Comparison_1_t361FD570B26BC4AFFF2982AAB3011075A8281A0C *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)); goto IL_0037; } } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&IndexOutOfRangeException_tDC9EF7A0346CE39E54DA1083F07BE6DFC3CE2EDD_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_0021; } if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&Exception_t_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_002a; } throw e; } CATCH_0021: { // begin catch(System.IndexOutOfRangeException) RuntimeObject* L_8 = ___comparer3; IntrospectiveSortUtilities_ThrowOrIgnoreBadComparer_mE23A8103696FA67F874E7DA86625BB3921DB801F((RuntimeObject *)L_8, /*hidden argument*/NULL); IL2CPP_POP_ACTIVE_EXCEPTION(); goto IL_0037; } // end catch (depth: 1) CATCH_002a: { // begin catch(System.Exception) V_0 = (Exception_t *)((Exception_t *)IL2CPP_GET_ACTIVE_EXCEPTION(Exception_t *)); Exception_t * L_9 = V_0; InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB * L_10 = (InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB *)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB_il2cpp_TypeInfo_var))); InvalidOperationException__ctor_m4A65916B1316FBF45ECDF1FF7FAC9E3CA30C112C(L_10, (String_t*)((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral6EDB6C049ED9617FA335A262A29BF30B15221AEA)), (Exception_t *)L_9, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_10, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArraySortHelper_1_Sort_m2384C955B3394C1EE9F776CFCC43351A366B0179_RuntimeMethod_var))); } // end catch (depth: 1) IL_0037: { return; } } // System.Int32 System.Collections.Generic.ArraySortHelper`1<System.Boolean>::BinarySearch(T[],System.Int32,System.Int32,T,System.Collections.Generic.IComparer`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t ArraySortHelper_1_BinarySearch_m972D13C70D2A3271EC7C457BB6F62DAA05F94CD6_gshared (BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C* ___array0, int32_t ___index1, int32_t ___length2, bool ___value3, RuntimeObject* ___comparer4, const RuntimeMethod* method) { int32_t V_0 = 0; Exception_t * V_1 = NULL; il2cpp::utils::ExceptionSupportStack<RuntimeObject*, 1> __active_exceptions; il2cpp::utils::ExceptionSupportStack<int32_t, 1> __leave_targets; IL_0000: try { // begin try (depth: 1) { RuntimeObject* L_0 = ___comparer4; if (L_0) { goto IL_000b; } } IL_0004: { Comparer_1_tC0B38F30FEF4F46666AA129BB9DBBD166FF98149 * L_1; L_1 = (( Comparer_1_tC0B38F30FEF4F46666AA129BB9DBBD166FF98149 * (*) (const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)->methodPointer)(/*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)); ___comparer4 = (RuntimeObject*)L_1; } IL_000b: { BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C* L_2 = ___array0; int32_t L_3 = ___index1; int32_t L_4 = ___length2; bool L_5 = ___value3; RuntimeObject* L_6 = ___comparer4; int32_t L_7; L_7 = (( int32_t (*) (BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C*, int32_t, int32_t, bool, RuntimeObject*, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 8)->methodPointer)((BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C*)L_2, (int32_t)L_3, (int32_t)L_4, (bool)L_5, (RuntimeObject*)L_6, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 8)); V_0 = (int32_t)L_7; goto IL_0026; } } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&Exception_t_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_0019; } throw e; } CATCH_0019: { // begin catch(System.Exception) V_1 = (Exception_t *)((Exception_t *)IL2CPP_GET_ACTIVE_EXCEPTION(Exception_t *)); Exception_t * L_8 = V_1; InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB * L_9 = (InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB *)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB_il2cpp_TypeInfo_var))); InvalidOperationException__ctor_m4A65916B1316FBF45ECDF1FF7FAC9E3CA30C112C(L_9, (String_t*)((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral6EDB6C049ED9617FA335A262A29BF30B15221AEA)), (Exception_t *)L_8, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_9, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArraySortHelper_1_BinarySearch_m972D13C70D2A3271EC7C457BB6F62DAA05F94CD6_RuntimeMethod_var))); } // end catch (depth: 1) IL_0026: { int32_t L_10 = V_0; return (int32_t)L_10; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Boolean>::Sort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Sort_mBF94A42FD825D372AD75A2A98FEC3C7287E56E11_gshared (BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C* ___keys0, int32_t ___index1, int32_t ___length2, Comparison_1_t361FD570B26BC4AFFF2982AAB3011075A8281A0C * ___comparer3, const RuntimeMethod* method) { Exception_t * V_0 = NULL; il2cpp::utils::ExceptionSupportStack<RuntimeObject*, 1> __active_exceptions; il2cpp::utils::ExceptionSupportStack<int32_t, 2> __leave_targets; IL_0000: try { // begin try (depth: 1) BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C* L_0 = ___keys0; int32_t L_1 = ___index1; int32_t L_2 = ___length2; Comparison_1_t361FD570B26BC4AFFF2982AAB3011075A8281A0C * L_3 = ___comparer3; (( void (*) (BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C*, int32_t, int32_t, Comparison_1_t361FD570B26BC4AFFF2982AAB3011075A8281A0C *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)->methodPointer)((BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C*)L_0, (int32_t)L_1, (int32_t)L_2, (Comparison_1_t361FD570B26BC4AFFF2982AAB3011075A8281A0C *)L_3, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)); goto IL_0021; } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&IndexOutOfRangeException_tDC9EF7A0346CE39E54DA1083F07BE6DFC3CE2EDD_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_000b; } if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&Exception_t_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_0014; } throw e; } CATCH_000b: { // begin catch(System.IndexOutOfRangeException) Comparison_1_t361FD570B26BC4AFFF2982AAB3011075A8281A0C * L_4 = ___comparer3; IntrospectiveSortUtilities_ThrowOrIgnoreBadComparer_mE23A8103696FA67F874E7DA86625BB3921DB801F((RuntimeObject *)L_4, /*hidden argument*/NULL); IL2CPP_POP_ACTIVE_EXCEPTION(); goto IL_0021; } // end catch (depth: 1) CATCH_0014: { // begin catch(System.Exception) V_0 = (Exception_t *)((Exception_t *)IL2CPP_GET_ACTIVE_EXCEPTION(Exception_t *)); Exception_t * L_5 = V_0; InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB * L_6 = (InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB *)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB_il2cpp_TypeInfo_var))); InvalidOperationException__ctor_m4A65916B1316FBF45ECDF1FF7FAC9E3CA30C112C(L_6, (String_t*)((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral6EDB6C049ED9617FA335A262A29BF30B15221AEA)), (Exception_t *)L_5, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_6, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArraySortHelper_1_Sort_mBF94A42FD825D372AD75A2A98FEC3C7287E56E11_RuntimeMethod_var))); } // end catch (depth: 1) IL_0021: { return; } } // System.Int32 System.Collections.Generic.ArraySortHelper`1<System.Boolean>::InternalBinarySearch(T[],System.Int32,System.Int32,T,System.Collections.Generic.IComparer`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t ArraySortHelper_1_InternalBinarySearch_m618EC22EAF1263CA57AAE2CE5954160EEB462A20_gshared (BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C* ___array0, int32_t ___index1, int32_t ___length2, bool ___value3, RuntimeObject* ___comparer4, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; int32_t V_2 = 0; int32_t V_3 = 0; { int32_t L_0 = ___index1; V_0 = (int32_t)L_0; int32_t L_1 = ___index1; int32_t L_2 = ___length2; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_1, (int32_t)L_2)), (int32_t)1)); goto IL_0035; } IL_000a: { int32_t L_3 = V_0; int32_t L_4 = V_1; int32_t L_5 = V_0; V_2 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)((int32_t)((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_4, (int32_t)L_5))>>(int32_t)1)))); RuntimeObject* L_6 = ___comparer4; BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C* L_7 = ___array0; int32_t L_8 = V_2; NullCheck(L_7); int32_t L_9 = L_8; bool L_10 = (L_7)->GetAt(static_cast<il2cpp_array_size_t>(L_9)); bool L_11 = ___value3; NullCheck((RuntimeObject*)L_6); int32_t L_12; L_12 = InterfaceFuncInvoker2< int32_t, bool, bool >::Invoke(0 /* System.Int32 System.Collections.Generic.IComparer`1<System.Boolean>::Compare(T,T) */, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 3), (RuntimeObject*)L_6, (bool)L_10, (bool)L_11); V_3 = (int32_t)L_12; int32_t L_13 = V_3; if (L_13) { goto IL_0027; } } { int32_t L_14 = V_2; return (int32_t)L_14; } IL_0027: { int32_t L_15 = V_3; if ((((int32_t)L_15) >= ((int32_t)0))) { goto IL_0031; } } { int32_t L_16 = V_2; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_16, (int32_t)1)); goto IL_0035; } IL_0031: { int32_t L_17 = V_2; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_17, (int32_t)1)); } IL_0035: { int32_t L_18 = V_0; int32_t L_19 = V_1; if ((((int32_t)L_18) <= ((int32_t)L_19))) { goto IL_000a; } } { int32_t L_20 = V_0; return (int32_t)((~L_20)); } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Boolean>::SwapIfGreater(T[],System.Comparison`1<T>,System.Int32,System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_SwapIfGreater_m5E0F6D48A940E48BCC20F3B12769E50E194F515B_gshared (BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C* ___keys0, Comparison_1_t361FD570B26BC4AFFF2982AAB3011075A8281A0C * ___comparer1, int32_t ___a2, int32_t ___b3, const RuntimeMethod* method) { bool V_0 = false; { int32_t L_0 = ___a2; int32_t L_1 = ___b3; if ((((int32_t)L_0) == ((int32_t)L_1))) { goto IL_0039; } } { Comparison_1_t361FD570B26BC4AFFF2982AAB3011075A8281A0C * L_2 = ___comparer1; BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C* L_3 = ___keys0; int32_t L_4 = ___a2; NullCheck(L_3); int32_t L_5 = L_4; bool L_6 = (L_3)->GetAt(static_cast<il2cpp_array_size_t>(L_5)); BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C* L_7 = ___keys0; int32_t L_8 = ___b3; NullCheck(L_7); int32_t L_9 = L_8; bool L_10 = (L_7)->GetAt(static_cast<il2cpp_array_size_t>(L_9)); NullCheck((Comparison_1_t361FD570B26BC4AFFF2982AAB3011075A8281A0C *)L_2); int32_t L_11; L_11 = (( int32_t (*) (Comparison_1_t361FD570B26BC4AFFF2982AAB3011075A8281A0C *, bool, bool, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t361FD570B26BC4AFFF2982AAB3011075A8281A0C *)L_2, (bool)L_6, (bool)L_10, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_11) <= ((int32_t)0))) { goto IL_0039; } } { BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C* L_12 = ___keys0; int32_t L_13 = ___a2; NullCheck(L_12); int32_t L_14 = L_13; bool L_15 = (L_12)->GetAt(static_cast<il2cpp_array_size_t>(L_14)); V_0 = (bool)L_15; BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C* L_16 = ___keys0; int32_t L_17 = ___a2; BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C* L_18 = ___keys0; int32_t L_19 = ___b3; NullCheck(L_18); int32_t L_20 = L_19; bool L_21 = (L_18)->GetAt(static_cast<il2cpp_array_size_t>(L_20)); NullCheck(L_16); (L_16)->SetAt(static_cast<il2cpp_array_size_t>(L_17), (bool)L_21); BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C* L_22 = ___keys0; int32_t L_23 = ___b3; bool L_24 = V_0; NullCheck(L_22); (L_22)->SetAt(static_cast<il2cpp_array_size_t>(L_23), (bool)L_24); } IL_0039: { return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Boolean>::Swap(T[],System.Int32,System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Swap_m235F79A6F936D802974197A3458ACBA35B0A9D85_gshared (BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C* ___a0, int32_t ___i1, int32_t ___j2, const RuntimeMethod* method) { bool V_0 = false; { int32_t L_0 = ___i1; int32_t L_1 = ___j2; if ((((int32_t)L_0) == ((int32_t)L_1))) { goto IL_0022; } } { BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C* L_2 = ___a0; int32_t L_3 = ___i1; NullCheck(L_2); int32_t L_4 = L_3; bool L_5 = (L_2)->GetAt(static_cast<il2cpp_array_size_t>(L_4)); V_0 = (bool)L_5; BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C* L_6 = ___a0; int32_t L_7 = ___i1; BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C* L_8 = ___a0; int32_t L_9 = ___j2; NullCheck(L_8); int32_t L_10 = L_9; bool L_11 = (L_8)->GetAt(static_cast<il2cpp_array_size_t>(L_10)); NullCheck(L_6); (L_6)->SetAt(static_cast<il2cpp_array_size_t>(L_7), (bool)L_11); BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C* L_12 = ___a0; int32_t L_13 = ___j2; bool L_14 = V_0; NullCheck(L_12); (L_12)->SetAt(static_cast<il2cpp_array_size_t>(L_13), (bool)L_14); } IL_0022: { return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Boolean>::IntrospectiveSort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_IntrospectiveSort_mCE22C3A2CEF288B0F20198ABF09130C3388B8F0A_gshared (BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C* ___keys0, int32_t ___left1, int32_t ___length2, Comparison_1_t361FD570B26BC4AFFF2982AAB3011075A8281A0C * ___comparer3, const RuntimeMethod* method) { { int32_t L_0 = ___length2; if ((((int32_t)L_0) >= ((int32_t)2))) { goto IL_0005; } } { return; } IL_0005: { BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C* L_1 = ___keys0; int32_t L_2 = ___left1; int32_t L_3 = ___length2; int32_t L_4 = ___left1; BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C* L_5 = ___keys0; NullCheck(L_5); int32_t L_6; L_6 = IntrospectiveSortUtilities_FloorLog2_m05ECB6CAC7A23087D9EC2C2A4DDCFE12272C3872((int32_t)((int32_t)((int32_t)(((RuntimeArray*)L_5)->max_length))), /*hidden argument*/NULL); Comparison_1_t361FD570B26BC4AFFF2982AAB3011075A8281A0C * L_7 = ___comparer3; (( void (*) (BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C*, int32_t, int32_t, int32_t, Comparison_1_t361FD570B26BC4AFFF2982AAB3011075A8281A0C *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)->methodPointer)((BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C*)L_1, (int32_t)L_2, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)L_4)), (int32_t)1)), (int32_t)((int32_t)il2cpp_codegen_multiply((int32_t)2, (int32_t)L_6)), (Comparison_1_t361FD570B26BC4AFFF2982AAB3011075A8281A0C *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)); return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Boolean>::IntroSort(T[],System.Int32,System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_IntroSort_m36CBE649633DF759202A92861361DF9B245000EB_gshared (BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C* ___keys0, int32_t ___lo1, int32_t ___hi2, int32_t ___depthLimit3, Comparison_1_t361FD570B26BC4AFFF2982AAB3011075A8281A0C * ___comparer4, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; { goto IL_0086; } IL_0005: { int32_t L_0 = ___hi2; int32_t L_1 = ___lo1; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_0, (int32_t)L_1)), (int32_t)1)); int32_t L_2 = V_0; if ((((int32_t)L_2) > ((int32_t)((int32_t)16)))) { goto IL_0056; } } { int32_t L_3 = V_0; if ((!(((uint32_t)L_3) == ((uint32_t)1)))) { goto IL_0015; } } { return; } IL_0015: { int32_t L_4 = V_0; if ((!(((uint32_t)L_4) == ((uint32_t)2)))) { goto IL_0024; } } { BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C* L_5 = ___keys0; Comparison_1_t361FD570B26BC4AFFF2982AAB3011075A8281A0C * L_6 = ___comparer4; int32_t L_7 = ___lo1; int32_t L_8 = ___hi2; (( void (*) (BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C*, Comparison_1_t361FD570B26BC4AFFF2982AAB3011075A8281A0C *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C*)L_5, (Comparison_1_t361FD570B26BC4AFFF2982AAB3011075A8281A0C *)L_6, (int32_t)L_7, (int32_t)L_8, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); return; } IL_0024: { int32_t L_9 = V_0; if ((!(((uint32_t)L_9) == ((uint32_t)3)))) { goto IL_004b; } } { BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C* L_10 = ___keys0; Comparison_1_t361FD570B26BC4AFFF2982AAB3011075A8281A0C * L_11 = ___comparer4; int32_t L_12 = ___lo1; int32_t L_13 = ___hi2; (( void (*) (BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C*, Comparison_1_t361FD570B26BC4AFFF2982AAB3011075A8281A0C *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C*)L_10, (Comparison_1_t361FD570B26BC4AFFF2982AAB3011075A8281A0C *)L_11, (int32_t)L_12, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_13, (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C* L_14 = ___keys0; Comparison_1_t361FD570B26BC4AFFF2982AAB3011075A8281A0C * L_15 = ___comparer4; int32_t L_16 = ___lo1; int32_t L_17 = ___hi2; (( void (*) (BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C*, Comparison_1_t361FD570B26BC4AFFF2982AAB3011075A8281A0C *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C*)L_14, (Comparison_1_t361FD570B26BC4AFFF2982AAB3011075A8281A0C *)L_15, (int32_t)L_16, (int32_t)L_17, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C* L_18 = ___keys0; Comparison_1_t361FD570B26BC4AFFF2982AAB3011075A8281A0C * L_19 = ___comparer4; int32_t L_20 = ___hi2; int32_t L_21 = ___hi2; (( void (*) (BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C*, Comparison_1_t361FD570B26BC4AFFF2982AAB3011075A8281A0C *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C*)L_18, (Comparison_1_t361FD570B26BC4AFFF2982AAB3011075A8281A0C *)L_19, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_20, (int32_t)1)), (int32_t)L_21, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); return; } IL_004b: { BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C* L_22 = ___keys0; int32_t L_23 = ___lo1; int32_t L_24 = ___hi2; Comparison_1_t361FD570B26BC4AFFF2982AAB3011075A8281A0C * L_25 = ___comparer4; (( void (*) (BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C*, int32_t, int32_t, Comparison_1_t361FD570B26BC4AFFF2982AAB3011075A8281A0C *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 12)->methodPointer)((BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C*)L_22, (int32_t)L_23, (int32_t)L_24, (Comparison_1_t361FD570B26BC4AFFF2982AAB3011075A8281A0C *)L_25, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 12)); return; } IL_0056: { int32_t L_26 = ___depthLimit3; if (L_26) { goto IL_0064; } } { BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C* L_27 = ___keys0; int32_t L_28 = ___lo1; int32_t L_29 = ___hi2; Comparison_1_t361FD570B26BC4AFFF2982AAB3011075A8281A0C * L_30 = ___comparer4; (( void (*) (BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C*, int32_t, int32_t, Comparison_1_t361FD570B26BC4AFFF2982AAB3011075A8281A0C *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 13)->methodPointer)((BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C*)L_27, (int32_t)L_28, (int32_t)L_29, (Comparison_1_t361FD570B26BC4AFFF2982AAB3011075A8281A0C *)L_30, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 13)); return; } IL_0064: { int32_t L_31 = ___depthLimit3; ___depthLimit3 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_31, (int32_t)1)); BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C* L_32 = ___keys0; int32_t L_33 = ___lo1; int32_t L_34 = ___hi2; Comparison_1_t361FD570B26BC4AFFF2982AAB3011075A8281A0C * L_35 = ___comparer4; int32_t L_36; L_36 = (( int32_t (*) (BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C*, int32_t, int32_t, Comparison_1_t361FD570B26BC4AFFF2982AAB3011075A8281A0C *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 14)->methodPointer)((BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C*)L_32, (int32_t)L_33, (int32_t)L_34, (Comparison_1_t361FD570B26BC4AFFF2982AAB3011075A8281A0C *)L_35, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 14)); V_1 = (int32_t)L_36; BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C* L_37 = ___keys0; int32_t L_38 = V_1; int32_t L_39 = ___hi2; int32_t L_40 = ___depthLimit3; Comparison_1_t361FD570B26BC4AFFF2982AAB3011075A8281A0C * L_41 = ___comparer4; (( void (*) (BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C*, int32_t, int32_t, int32_t, Comparison_1_t361FD570B26BC4AFFF2982AAB3011075A8281A0C *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)->methodPointer)((BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C*)L_37, (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_38, (int32_t)1)), (int32_t)L_39, (int32_t)L_40, (Comparison_1_t361FD570B26BC4AFFF2982AAB3011075A8281A0C *)L_41, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)); int32_t L_42 = V_1; ___hi2 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_42, (int32_t)1)); } IL_0086: { int32_t L_43 = ___hi2; int32_t L_44 = ___lo1; if ((((int32_t)L_43) > ((int32_t)L_44))) { goto IL_0005; } } { return; } } // System.Int32 System.Collections.Generic.ArraySortHelper`1<System.Boolean>::PickPivotAndPartition(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t ArraySortHelper_1_PickPivotAndPartition_mED0900A0758769512CB8D6E66ABB678D9A5FE2A4_gshared (BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C* ___keys0, int32_t ___lo1, int32_t ___hi2, Comparison_1_t361FD570B26BC4AFFF2982AAB3011075A8281A0C * ___comparer3, const RuntimeMethod* method) { int32_t V_0 = 0; bool V_1 = false; int32_t V_2 = 0; int32_t V_3 = 0; { int32_t L_0 = ___lo1; int32_t L_1 = ___hi2; int32_t L_2 = ___lo1; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_0, (int32_t)((int32_t)((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_1, (int32_t)L_2))/(int32_t)2)))); BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C* L_3 = ___keys0; Comparison_1_t361FD570B26BC4AFFF2982AAB3011075A8281A0C * L_4 = ___comparer3; int32_t L_5 = ___lo1; int32_t L_6 = V_0; (( void (*) (BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C*, Comparison_1_t361FD570B26BC4AFFF2982AAB3011075A8281A0C *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C*)L_3, (Comparison_1_t361FD570B26BC4AFFF2982AAB3011075A8281A0C *)L_4, (int32_t)L_5, (int32_t)L_6, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C* L_7 = ___keys0; Comparison_1_t361FD570B26BC4AFFF2982AAB3011075A8281A0C * L_8 = ___comparer3; int32_t L_9 = ___lo1; int32_t L_10 = ___hi2; (( void (*) (BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C*, Comparison_1_t361FD570B26BC4AFFF2982AAB3011075A8281A0C *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C*)L_7, (Comparison_1_t361FD570B26BC4AFFF2982AAB3011075A8281A0C *)L_8, (int32_t)L_9, (int32_t)L_10, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C* L_11 = ___keys0; Comparison_1_t361FD570B26BC4AFFF2982AAB3011075A8281A0C * L_12 = ___comparer3; int32_t L_13 = V_0; int32_t L_14 = ___hi2; (( void (*) (BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C*, Comparison_1_t361FD570B26BC4AFFF2982AAB3011075A8281A0C *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C*)L_11, (Comparison_1_t361FD570B26BC4AFFF2982AAB3011075A8281A0C *)L_12, (int32_t)L_13, (int32_t)L_14, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C* L_15 = ___keys0; int32_t L_16 = V_0; NullCheck(L_15); int32_t L_17 = L_16; bool L_18 = (L_15)->GetAt(static_cast<il2cpp_array_size_t>(L_17)); V_1 = (bool)L_18; BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C* L_19 = ___keys0; int32_t L_20 = V_0; int32_t L_21 = ___hi2; (( void (*) (BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C*)L_19, (int32_t)L_20, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_21, (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); int32_t L_22 = ___lo1; V_2 = (int32_t)L_22; int32_t L_23 = ___hi2; V_3 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_23, (int32_t)1)); goto IL_0073; } IL_003d: { Comparison_1_t361FD570B26BC4AFFF2982AAB3011075A8281A0C * L_24 = ___comparer3; BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C* L_25 = ___keys0; int32_t L_26 = V_2; int32_t L_27 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_26, (int32_t)1)); V_2 = (int32_t)L_27; NullCheck(L_25); int32_t L_28 = L_27; bool L_29 = (L_25)->GetAt(static_cast<il2cpp_array_size_t>(L_28)); bool L_30 = V_1; NullCheck((Comparison_1_t361FD570B26BC4AFFF2982AAB3011075A8281A0C *)L_24); int32_t L_31; L_31 = (( int32_t (*) (Comparison_1_t361FD570B26BC4AFFF2982AAB3011075A8281A0C *, bool, bool, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t361FD570B26BC4AFFF2982AAB3011075A8281A0C *)L_24, (bool)L_29, (bool)L_30, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_31) < ((int32_t)0))) { goto IL_003d; } } IL_0052: { Comparison_1_t361FD570B26BC4AFFF2982AAB3011075A8281A0C * L_32 = ___comparer3; bool L_33 = V_1; BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C* L_34 = ___keys0; int32_t L_35 = V_3; int32_t L_36 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_35, (int32_t)1)); V_3 = (int32_t)L_36; NullCheck(L_34); int32_t L_37 = L_36; bool L_38 = (L_34)->GetAt(static_cast<il2cpp_array_size_t>(L_37)); NullCheck((Comparison_1_t361FD570B26BC4AFFF2982AAB3011075A8281A0C *)L_32); int32_t L_39; L_39 = (( int32_t (*) (Comparison_1_t361FD570B26BC4AFFF2982AAB3011075A8281A0C *, bool, bool, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t361FD570B26BC4AFFF2982AAB3011075A8281A0C *)L_32, (bool)L_33, (bool)L_38, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_39) < ((int32_t)0))) { goto IL_0052; } } { int32_t L_40 = V_2; int32_t L_41 = V_3; if ((((int32_t)L_40) >= ((int32_t)L_41))) { goto IL_0077; } } { BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C* L_42 = ___keys0; int32_t L_43 = V_2; int32_t L_44 = V_3; (( void (*) (BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C*)L_42, (int32_t)L_43, (int32_t)L_44, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); } IL_0073: { int32_t L_45 = V_2; int32_t L_46 = V_3; if ((((int32_t)L_45) < ((int32_t)L_46))) { goto IL_003d; } } IL_0077: { BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C* L_47 = ___keys0; int32_t L_48 = V_2; int32_t L_49 = ___hi2; (( void (*) (BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C*)L_47, (int32_t)L_48, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_49, (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); int32_t L_50 = V_2; return (int32_t)L_50; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Boolean>::Heapsort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Heapsort_mC5321F4336DED00C156B63296F9450E7204BC29E_gshared (BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C* ___keys0, int32_t ___lo1, int32_t ___hi2, Comparison_1_t361FD570B26BC4AFFF2982AAB3011075A8281A0C * ___comparer3, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; int32_t V_2 = 0; { int32_t L_0 = ___hi2; int32_t L_1 = ___lo1; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_0, (int32_t)L_1)), (int32_t)1)); int32_t L_2 = V_0; V_1 = (int32_t)((int32_t)((int32_t)L_2/(int32_t)2)); goto IL_001a; } IL_000c: { BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C* L_3 = ___keys0; int32_t L_4 = V_1; int32_t L_5 = V_0; int32_t L_6 = ___lo1; Comparison_1_t361FD570B26BC4AFFF2982AAB3011075A8281A0C * L_7 = ___comparer3; (( void (*) (BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C*, int32_t, int32_t, int32_t, Comparison_1_t361FD570B26BC4AFFF2982AAB3011075A8281A0C *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)->methodPointer)((BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C*)L_3, (int32_t)L_4, (int32_t)L_5, (int32_t)L_6, (Comparison_1_t361FD570B26BC4AFFF2982AAB3011075A8281A0C *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)); int32_t L_8 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_8, (int32_t)1)); } IL_001a: { int32_t L_9 = V_1; if ((((int32_t)L_9) >= ((int32_t)1))) { goto IL_000c; } } { int32_t L_10 = V_0; V_2 = (int32_t)L_10; goto IL_003e; } IL_0022: { BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C* L_11 = ___keys0; int32_t L_12 = ___lo1; int32_t L_13 = ___lo1; int32_t L_14 = V_2; (( void (*) (BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C*)L_11, (int32_t)L_12, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_13, (int32_t)L_14)), (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C* L_15 = ___keys0; int32_t L_16 = V_2; int32_t L_17 = ___lo1; Comparison_1_t361FD570B26BC4AFFF2982AAB3011075A8281A0C * L_18 = ___comparer3; (( void (*) (BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C*, int32_t, int32_t, int32_t, Comparison_1_t361FD570B26BC4AFFF2982AAB3011075A8281A0C *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)->methodPointer)((BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C*)L_15, (int32_t)1, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_16, (int32_t)1)), (int32_t)L_17, (Comparison_1_t361FD570B26BC4AFFF2982AAB3011075A8281A0C *)L_18, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)); int32_t L_19 = V_2; V_2 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_19, (int32_t)1)); } IL_003e: { int32_t L_20 = V_2; if ((((int32_t)L_20) > ((int32_t)1))) { goto IL_0022; } } { return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Boolean>::DownHeap(T[],System.Int32,System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_DownHeap_m7AD0868EB53F79CE03BC5C35BEEDA913A59E19E3_gshared (BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C* ___keys0, int32_t ___i1, int32_t ___n2, int32_t ___lo3, Comparison_1_t361FD570B26BC4AFFF2982AAB3011075A8281A0C * ___comparer4, const RuntimeMethod* method) { bool V_0 = false; int32_t V_1 = 0; { BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C* L_0 = ___keys0; int32_t L_1 = ___lo3; int32_t L_2 = ___i1; NullCheck(L_0); int32_t L_3 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_1, (int32_t)L_2)), (int32_t)1)); bool L_4 = (L_0)->GetAt(static_cast<il2cpp_array_size_t>(L_3)); V_0 = (bool)L_4; goto IL_0067; } IL_000e: { int32_t L_5 = ___i1; V_1 = (int32_t)((int32_t)il2cpp_codegen_multiply((int32_t)2, (int32_t)L_5)); int32_t L_6 = V_1; int32_t L_7 = ___n2; if ((((int32_t)L_6) >= ((int32_t)L_7))) { goto IL_0038; } } { Comparison_1_t361FD570B26BC4AFFF2982AAB3011075A8281A0C * L_8 = ___comparer4; BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C* L_9 = ___keys0; int32_t L_10 = ___lo3; int32_t L_11 = V_1; NullCheck(L_9); int32_t L_12 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_10, (int32_t)L_11)), (int32_t)1)); bool L_13 = (L_9)->GetAt(static_cast<il2cpp_array_size_t>(L_12)); BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C* L_14 = ___keys0; int32_t L_15 = ___lo3; int32_t L_16 = V_1; NullCheck(L_14); int32_t L_17 = ((int32_t)il2cpp_codegen_add((int32_t)L_15, (int32_t)L_16)); bool L_18 = (L_14)->GetAt(static_cast<il2cpp_array_size_t>(L_17)); NullCheck((Comparison_1_t361FD570B26BC4AFFF2982AAB3011075A8281A0C *)L_8); int32_t L_19; L_19 = (( int32_t (*) (Comparison_1_t361FD570B26BC4AFFF2982AAB3011075A8281A0C *, bool, bool, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t361FD570B26BC4AFFF2982AAB3011075A8281A0C *)L_8, (bool)L_13, (bool)L_18, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_19) >= ((int32_t)0))) { goto IL_0038; } } { int32_t L_20 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_20, (int32_t)1)); } IL_0038: { Comparison_1_t361FD570B26BC4AFFF2982AAB3011075A8281A0C * L_21 = ___comparer4; bool L_22 = V_0; BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C* L_23 = ___keys0; int32_t L_24 = ___lo3; int32_t L_25 = V_1; NullCheck(L_23); int32_t L_26 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_24, (int32_t)L_25)), (int32_t)1)); bool L_27 = (L_23)->GetAt(static_cast<il2cpp_array_size_t>(L_26)); NullCheck((Comparison_1_t361FD570B26BC4AFFF2982AAB3011075A8281A0C *)L_21); int32_t L_28; L_28 = (( int32_t (*) (Comparison_1_t361FD570B26BC4AFFF2982AAB3011075A8281A0C *, bool, bool, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t361FD570B26BC4AFFF2982AAB3011075A8281A0C *)L_21, (bool)L_22, (bool)L_27, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_28) >= ((int32_t)0))) { goto IL_006d; } } { BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C* L_29 = ___keys0; int32_t L_30 = ___lo3; int32_t L_31 = ___i1; BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C* L_32 = ___keys0; int32_t L_33 = ___lo3; int32_t L_34 = V_1; NullCheck(L_32); int32_t L_35 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_33, (int32_t)L_34)), (int32_t)1)); bool L_36 = (L_32)->GetAt(static_cast<il2cpp_array_size_t>(L_35)); NullCheck(L_29); (L_29)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_30, (int32_t)L_31)), (int32_t)1))), (bool)L_36); int32_t L_37 = V_1; ___i1 = (int32_t)L_37; } IL_0067: { int32_t L_38 = ___i1; int32_t L_39 = ___n2; if ((((int32_t)L_38) <= ((int32_t)((int32_t)((int32_t)L_39/(int32_t)2))))) { goto IL_000e; } } IL_006d: { BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C* L_40 = ___keys0; int32_t L_41 = ___lo3; int32_t L_42 = ___i1; bool L_43 = V_0; NullCheck(L_40); (L_40)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_41, (int32_t)L_42)), (int32_t)1))), (bool)L_43); return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Boolean>::InsertionSort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_InsertionSort_m6F9EC939BDEE00C8FCA8EB310227DB4E1A39A0BC_gshared (BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C* ___keys0, int32_t ___lo1, int32_t ___hi2, Comparison_1_t361FD570B26BC4AFFF2982AAB3011075A8281A0C * ___comparer3, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; bool V_2 = false; { int32_t L_0 = ___lo1; V_0 = (int32_t)L_0; goto IL_0049; } IL_0004: { int32_t L_1 = V_0; V_1 = (int32_t)L_1; BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C* L_2 = ___keys0; int32_t L_3 = V_0; NullCheck(L_2); int32_t L_4 = ((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)1)); bool L_5 = (L_2)->GetAt(static_cast<il2cpp_array_size_t>(L_4)); V_2 = (bool)L_5; goto IL_0026; } IL_0012: { BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C* L_6 = ___keys0; int32_t L_7 = V_1; BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C* L_8 = ___keys0; int32_t L_9 = V_1; NullCheck(L_8); int32_t L_10 = L_9; bool L_11 = (L_8)->GetAt(static_cast<il2cpp_array_size_t>(L_10)); NullCheck(L_6); (L_6)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add((int32_t)L_7, (int32_t)1))), (bool)L_11); int32_t L_12 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_12, (int32_t)1)); } IL_0026: { int32_t L_13 = V_1; int32_t L_14 = ___lo1; if ((((int32_t)L_13) < ((int32_t)L_14))) { goto IL_003b; } } { Comparison_1_t361FD570B26BC4AFFF2982AAB3011075A8281A0C * L_15 = ___comparer3; bool L_16 = V_2; BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C* L_17 = ___keys0; int32_t L_18 = V_1; NullCheck(L_17); int32_t L_19 = L_18; bool L_20 = (L_17)->GetAt(static_cast<il2cpp_array_size_t>(L_19)); NullCheck((Comparison_1_t361FD570B26BC4AFFF2982AAB3011075A8281A0C *)L_15); int32_t L_21; L_21 = (( int32_t (*) (Comparison_1_t361FD570B26BC4AFFF2982AAB3011075A8281A0C *, bool, bool, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t361FD570B26BC4AFFF2982AAB3011075A8281A0C *)L_15, (bool)L_16, (bool)L_20, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_21) < ((int32_t)0))) { goto IL_0012; } } IL_003b: { BooleanU5BU5D_tEC7BAF93C44F875016DAADC8696EE3A465644D3C* L_22 = ___keys0; int32_t L_23 = V_1; bool L_24 = V_2; NullCheck(L_22); (L_22)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add((int32_t)L_23, (int32_t)1))), (bool)L_24); int32_t L_25 = V_0; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_25, (int32_t)1)); } IL_0049: { int32_t L_26 = V_0; int32_t L_27 = ___hi2; if ((((int32_t)L_26) < ((int32_t)L_27))) { goto IL_0004; } } { return; } } #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Void System.Collections.Generic.ArraySortHelper`1<System.Byte>::Sort(T[],System.Int32,System.Int32,System.Collections.Generic.IComparer`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Sort_mD7E141533ED76F084E8A8FAFC52E3181C6322928_gshared (ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* ___keys0, int32_t ___index1, int32_t ___length2, RuntimeObject* ___comparer3, const RuntimeMethod* method) { Exception_t * V_0 = NULL; il2cpp::utils::ExceptionSupportStack<RuntimeObject*, 1> __active_exceptions; il2cpp::utils::ExceptionSupportStack<int32_t, 2> __leave_targets; IL_0000: try { // begin try (depth: 1) { RuntimeObject* L_0 = ___comparer3; if (L_0) { goto IL_000a; } } IL_0003: { Comparer_1_t346664F08452EB01EAF33D1A6102E414E093D66D * L_1; L_1 = (( Comparer_1_t346664F08452EB01EAF33D1A6102E414E093D66D * (*) (const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)->methodPointer)(/*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)); ___comparer3 = (RuntimeObject*)L_1; } IL_000a: { ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* L_2 = ___keys0; int32_t L_3 = ___index1; int32_t L_4 = ___length2; RuntimeObject* L_5 = ___comparer3; RuntimeObject* L_6 = (RuntimeObject*)L_5; Comparison_1_t16CD2D4AE94F3B3121F8DE407B0D15E192CF6FCC * L_7 = (Comparison_1_t16CD2D4AE94F3B3121F8DE407B0D15E192CF6FCC *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 4)); (( void (*) (Comparison_1_t16CD2D4AE94F3B3121F8DE407B0D15E192CF6FCC *, RuntimeObject *, intptr_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 5)->methodPointer)(L_7, (RuntimeObject *)L_6, (intptr_t)((intptr_t)GetInterfaceMethodInfo(L_6, 0, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 3))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 5)); (( void (*) (ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726*, int32_t, int32_t, Comparison_1_t16CD2D4AE94F3B3121F8DE407B0D15E192CF6FCC *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)->methodPointer)((ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726*)L_2, (int32_t)L_3, (int32_t)L_4, (Comparison_1_t16CD2D4AE94F3B3121F8DE407B0D15E192CF6FCC *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)); goto IL_0037; } } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&IndexOutOfRangeException_tDC9EF7A0346CE39E54DA1083F07BE6DFC3CE2EDD_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_0021; } if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&Exception_t_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_002a; } throw e; } CATCH_0021: { // begin catch(System.IndexOutOfRangeException) RuntimeObject* L_8 = ___comparer3; IntrospectiveSortUtilities_ThrowOrIgnoreBadComparer_mE23A8103696FA67F874E7DA86625BB3921DB801F((RuntimeObject *)L_8, /*hidden argument*/NULL); IL2CPP_POP_ACTIVE_EXCEPTION(); goto IL_0037; } // end catch (depth: 1) CATCH_002a: { // begin catch(System.Exception) V_0 = (Exception_t *)((Exception_t *)IL2CPP_GET_ACTIVE_EXCEPTION(Exception_t *)); Exception_t * L_9 = V_0; InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB * L_10 = (InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB *)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB_il2cpp_TypeInfo_var))); InvalidOperationException__ctor_m4A65916B1316FBF45ECDF1FF7FAC9E3CA30C112C(L_10, (String_t*)((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral6EDB6C049ED9617FA335A262A29BF30B15221AEA)), (Exception_t *)L_9, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_10, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArraySortHelper_1_Sort_mD7E141533ED76F084E8A8FAFC52E3181C6322928_RuntimeMethod_var))); } // end catch (depth: 1) IL_0037: { return; } } // System.Int32 System.Collections.Generic.ArraySortHelper`1<System.Byte>::BinarySearch(T[],System.Int32,System.Int32,T,System.Collections.Generic.IComparer`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t ArraySortHelper_1_BinarySearch_m1CA333A5AFCC5CAA34AE2211060A7CD634992652_gshared (ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* ___array0, int32_t ___index1, int32_t ___length2, uint8_t ___value3, RuntimeObject* ___comparer4, const RuntimeMethod* method) { int32_t V_0 = 0; Exception_t * V_1 = NULL; il2cpp::utils::ExceptionSupportStack<RuntimeObject*, 1> __active_exceptions; il2cpp::utils::ExceptionSupportStack<int32_t, 1> __leave_targets; IL_0000: try { // begin try (depth: 1) { RuntimeObject* L_0 = ___comparer4; if (L_0) { goto IL_000b; } } IL_0004: { Comparer_1_t346664F08452EB01EAF33D1A6102E414E093D66D * L_1; L_1 = (( Comparer_1_t346664F08452EB01EAF33D1A6102E414E093D66D * (*) (const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)->methodPointer)(/*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)); ___comparer4 = (RuntimeObject*)L_1; } IL_000b: { ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* L_2 = ___array0; int32_t L_3 = ___index1; int32_t L_4 = ___length2; uint8_t L_5 = ___value3; RuntimeObject* L_6 = ___comparer4; int32_t L_7; L_7 = (( int32_t (*) (ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726*, int32_t, int32_t, uint8_t, RuntimeObject*, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 8)->methodPointer)((ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726*)L_2, (int32_t)L_3, (int32_t)L_4, (uint8_t)L_5, (RuntimeObject*)L_6, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 8)); V_0 = (int32_t)L_7; goto IL_0026; } } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&Exception_t_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_0019; } throw e; } CATCH_0019: { // begin catch(System.Exception) V_1 = (Exception_t *)((Exception_t *)IL2CPP_GET_ACTIVE_EXCEPTION(Exception_t *)); Exception_t * L_8 = V_1; InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB * L_9 = (InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB *)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB_il2cpp_TypeInfo_var))); InvalidOperationException__ctor_m4A65916B1316FBF45ECDF1FF7FAC9E3CA30C112C(L_9, (String_t*)((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral6EDB6C049ED9617FA335A262A29BF30B15221AEA)), (Exception_t *)L_8, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_9, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArraySortHelper_1_BinarySearch_m1CA333A5AFCC5CAA34AE2211060A7CD634992652_RuntimeMethod_var))); } // end catch (depth: 1) IL_0026: { int32_t L_10 = V_0; return (int32_t)L_10; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Byte>::Sort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Sort_m395AB7EDB8993DB3A5EF2B5984B4F706AF39F45A_gshared (ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* ___keys0, int32_t ___index1, int32_t ___length2, Comparison_1_t16CD2D4AE94F3B3121F8DE407B0D15E192CF6FCC * ___comparer3, const RuntimeMethod* method) { Exception_t * V_0 = NULL; il2cpp::utils::ExceptionSupportStack<RuntimeObject*, 1> __active_exceptions; il2cpp::utils::ExceptionSupportStack<int32_t, 2> __leave_targets; IL_0000: try { // begin try (depth: 1) ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* L_0 = ___keys0; int32_t L_1 = ___index1; int32_t L_2 = ___length2; Comparison_1_t16CD2D4AE94F3B3121F8DE407B0D15E192CF6FCC * L_3 = ___comparer3; (( void (*) (ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726*, int32_t, int32_t, Comparison_1_t16CD2D4AE94F3B3121F8DE407B0D15E192CF6FCC *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)->methodPointer)((ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726*)L_0, (int32_t)L_1, (int32_t)L_2, (Comparison_1_t16CD2D4AE94F3B3121F8DE407B0D15E192CF6FCC *)L_3, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)); goto IL_0021; } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&IndexOutOfRangeException_tDC9EF7A0346CE39E54DA1083F07BE6DFC3CE2EDD_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_000b; } if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&Exception_t_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_0014; } throw e; } CATCH_000b: { // begin catch(System.IndexOutOfRangeException) Comparison_1_t16CD2D4AE94F3B3121F8DE407B0D15E192CF6FCC * L_4 = ___comparer3; IntrospectiveSortUtilities_ThrowOrIgnoreBadComparer_mE23A8103696FA67F874E7DA86625BB3921DB801F((RuntimeObject *)L_4, /*hidden argument*/NULL); IL2CPP_POP_ACTIVE_EXCEPTION(); goto IL_0021; } // end catch (depth: 1) CATCH_0014: { // begin catch(System.Exception) V_0 = (Exception_t *)((Exception_t *)IL2CPP_GET_ACTIVE_EXCEPTION(Exception_t *)); Exception_t * L_5 = V_0; InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB * L_6 = (InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB *)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB_il2cpp_TypeInfo_var))); InvalidOperationException__ctor_m4A65916B1316FBF45ECDF1FF7FAC9E3CA30C112C(L_6, (String_t*)((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral6EDB6C049ED9617FA335A262A29BF30B15221AEA)), (Exception_t *)L_5, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_6, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArraySortHelper_1_Sort_m395AB7EDB8993DB3A5EF2B5984B4F706AF39F45A_RuntimeMethod_var))); } // end catch (depth: 1) IL_0021: { return; } } // System.Int32 System.Collections.Generic.ArraySortHelper`1<System.Byte>::InternalBinarySearch(T[],System.Int32,System.Int32,T,System.Collections.Generic.IComparer`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t ArraySortHelper_1_InternalBinarySearch_mB0D070CD9AD70F22914DFB0D71FAD4D4A204850B_gshared (ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* ___array0, int32_t ___index1, int32_t ___length2, uint8_t ___value3, RuntimeObject* ___comparer4, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; int32_t V_2 = 0; int32_t V_3 = 0; { int32_t L_0 = ___index1; V_0 = (int32_t)L_0; int32_t L_1 = ___index1; int32_t L_2 = ___length2; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_1, (int32_t)L_2)), (int32_t)1)); goto IL_0035; } IL_000a: { int32_t L_3 = V_0; int32_t L_4 = V_1; int32_t L_5 = V_0; V_2 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)((int32_t)((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_4, (int32_t)L_5))>>(int32_t)1)))); RuntimeObject* L_6 = ___comparer4; ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* L_7 = ___array0; int32_t L_8 = V_2; NullCheck(L_7); int32_t L_9 = L_8; uint8_t L_10 = (L_7)->GetAt(static_cast<il2cpp_array_size_t>(L_9)); uint8_t L_11 = ___value3; NullCheck((RuntimeObject*)L_6); int32_t L_12; L_12 = InterfaceFuncInvoker2< int32_t, uint8_t, uint8_t >::Invoke(0 /* System.Int32 System.Collections.Generic.IComparer`1<System.Byte>::Compare(T,T) */, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 3), (RuntimeObject*)L_6, (uint8_t)L_10, (uint8_t)L_11); V_3 = (int32_t)L_12; int32_t L_13 = V_3; if (L_13) { goto IL_0027; } } { int32_t L_14 = V_2; return (int32_t)L_14; } IL_0027: { int32_t L_15 = V_3; if ((((int32_t)L_15) >= ((int32_t)0))) { goto IL_0031; } } { int32_t L_16 = V_2; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_16, (int32_t)1)); goto IL_0035; } IL_0031: { int32_t L_17 = V_2; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_17, (int32_t)1)); } IL_0035: { int32_t L_18 = V_0; int32_t L_19 = V_1; if ((((int32_t)L_18) <= ((int32_t)L_19))) { goto IL_000a; } } { int32_t L_20 = V_0; return (int32_t)((~L_20)); } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Byte>::SwapIfGreater(T[],System.Comparison`1<T>,System.Int32,System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_SwapIfGreater_m92A1000F4B5BCBD08973DB6EBD690CA332A7B85B_gshared (ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* ___keys0, Comparison_1_t16CD2D4AE94F3B3121F8DE407B0D15E192CF6FCC * ___comparer1, int32_t ___a2, int32_t ___b3, const RuntimeMethod* method) { uint8_t V_0 = 0x0; { int32_t L_0 = ___a2; int32_t L_1 = ___b3; if ((((int32_t)L_0) == ((int32_t)L_1))) { goto IL_0039; } } { Comparison_1_t16CD2D4AE94F3B3121F8DE407B0D15E192CF6FCC * L_2 = ___comparer1; ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* L_3 = ___keys0; int32_t L_4 = ___a2; NullCheck(L_3); int32_t L_5 = L_4; uint8_t L_6 = (L_3)->GetAt(static_cast<il2cpp_array_size_t>(L_5)); ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* L_7 = ___keys0; int32_t L_8 = ___b3; NullCheck(L_7); int32_t L_9 = L_8; uint8_t L_10 = (L_7)->GetAt(static_cast<il2cpp_array_size_t>(L_9)); NullCheck((Comparison_1_t16CD2D4AE94F3B3121F8DE407B0D15E192CF6FCC *)L_2); int32_t L_11; L_11 = (( int32_t (*) (Comparison_1_t16CD2D4AE94F3B3121F8DE407B0D15E192CF6FCC *, uint8_t, uint8_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t16CD2D4AE94F3B3121F8DE407B0D15E192CF6FCC *)L_2, (uint8_t)L_6, (uint8_t)L_10, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_11) <= ((int32_t)0))) { goto IL_0039; } } { ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* L_12 = ___keys0; int32_t L_13 = ___a2; NullCheck(L_12); int32_t L_14 = L_13; uint8_t L_15 = (L_12)->GetAt(static_cast<il2cpp_array_size_t>(L_14)); V_0 = (uint8_t)L_15; ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* L_16 = ___keys0; int32_t L_17 = ___a2; ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* L_18 = ___keys0; int32_t L_19 = ___b3; NullCheck(L_18); int32_t L_20 = L_19; uint8_t L_21 = (L_18)->GetAt(static_cast<il2cpp_array_size_t>(L_20)); NullCheck(L_16); (L_16)->SetAt(static_cast<il2cpp_array_size_t>(L_17), (uint8_t)L_21); ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* L_22 = ___keys0; int32_t L_23 = ___b3; uint8_t L_24 = V_0; NullCheck(L_22); (L_22)->SetAt(static_cast<il2cpp_array_size_t>(L_23), (uint8_t)L_24); } IL_0039: { return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Byte>::Swap(T[],System.Int32,System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Swap_m7F57F3F130327156460C84ED8AA702B9972ADD48_gshared (ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* ___a0, int32_t ___i1, int32_t ___j2, const RuntimeMethod* method) { uint8_t V_0 = 0x0; { int32_t L_0 = ___i1; int32_t L_1 = ___j2; if ((((int32_t)L_0) == ((int32_t)L_1))) { goto IL_0022; } } { ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* L_2 = ___a0; int32_t L_3 = ___i1; NullCheck(L_2); int32_t L_4 = L_3; uint8_t L_5 = (L_2)->GetAt(static_cast<il2cpp_array_size_t>(L_4)); V_0 = (uint8_t)L_5; ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* L_6 = ___a0; int32_t L_7 = ___i1; ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* L_8 = ___a0; int32_t L_9 = ___j2; NullCheck(L_8); int32_t L_10 = L_9; uint8_t L_11 = (L_8)->GetAt(static_cast<il2cpp_array_size_t>(L_10)); NullCheck(L_6); (L_6)->SetAt(static_cast<il2cpp_array_size_t>(L_7), (uint8_t)L_11); ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* L_12 = ___a0; int32_t L_13 = ___j2; uint8_t L_14 = V_0; NullCheck(L_12); (L_12)->SetAt(static_cast<il2cpp_array_size_t>(L_13), (uint8_t)L_14); } IL_0022: { return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Byte>::IntrospectiveSort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_IntrospectiveSort_m1BE7CAD448470C35037D8BFC3FA032A4F5D3E912_gshared (ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* ___keys0, int32_t ___left1, int32_t ___length2, Comparison_1_t16CD2D4AE94F3B3121F8DE407B0D15E192CF6FCC * ___comparer3, const RuntimeMethod* method) { { int32_t L_0 = ___length2; if ((((int32_t)L_0) >= ((int32_t)2))) { goto IL_0005; } } { return; } IL_0005: { ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* L_1 = ___keys0; int32_t L_2 = ___left1; int32_t L_3 = ___length2; int32_t L_4 = ___left1; ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* L_5 = ___keys0; NullCheck(L_5); int32_t L_6; L_6 = IntrospectiveSortUtilities_FloorLog2_m05ECB6CAC7A23087D9EC2C2A4DDCFE12272C3872((int32_t)((int32_t)((int32_t)(((RuntimeArray*)L_5)->max_length))), /*hidden argument*/NULL); Comparison_1_t16CD2D4AE94F3B3121F8DE407B0D15E192CF6FCC * L_7 = ___comparer3; (( void (*) (ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726*, int32_t, int32_t, int32_t, Comparison_1_t16CD2D4AE94F3B3121F8DE407B0D15E192CF6FCC *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)->methodPointer)((ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726*)L_1, (int32_t)L_2, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)L_4)), (int32_t)1)), (int32_t)((int32_t)il2cpp_codegen_multiply((int32_t)2, (int32_t)L_6)), (Comparison_1_t16CD2D4AE94F3B3121F8DE407B0D15E192CF6FCC *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)); return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Byte>::IntroSort(T[],System.Int32,System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_IntroSort_m74A36168F9D63280638CC4DAC3C4EB19C935A280_gshared (ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* ___keys0, int32_t ___lo1, int32_t ___hi2, int32_t ___depthLimit3, Comparison_1_t16CD2D4AE94F3B3121F8DE407B0D15E192CF6FCC * ___comparer4, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; { goto IL_0086; } IL_0005: { int32_t L_0 = ___hi2; int32_t L_1 = ___lo1; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_0, (int32_t)L_1)), (int32_t)1)); int32_t L_2 = V_0; if ((((int32_t)L_2) > ((int32_t)((int32_t)16)))) { goto IL_0056; } } { int32_t L_3 = V_0; if ((!(((uint32_t)L_3) == ((uint32_t)1)))) { goto IL_0015; } } { return; } IL_0015: { int32_t L_4 = V_0; if ((!(((uint32_t)L_4) == ((uint32_t)2)))) { goto IL_0024; } } { ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* L_5 = ___keys0; Comparison_1_t16CD2D4AE94F3B3121F8DE407B0D15E192CF6FCC * L_6 = ___comparer4; int32_t L_7 = ___lo1; int32_t L_8 = ___hi2; (( void (*) (ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726*, Comparison_1_t16CD2D4AE94F3B3121F8DE407B0D15E192CF6FCC *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726*)L_5, (Comparison_1_t16CD2D4AE94F3B3121F8DE407B0D15E192CF6FCC *)L_6, (int32_t)L_7, (int32_t)L_8, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); return; } IL_0024: { int32_t L_9 = V_0; if ((!(((uint32_t)L_9) == ((uint32_t)3)))) { goto IL_004b; } } { ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* L_10 = ___keys0; Comparison_1_t16CD2D4AE94F3B3121F8DE407B0D15E192CF6FCC * L_11 = ___comparer4; int32_t L_12 = ___lo1; int32_t L_13 = ___hi2; (( void (*) (ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726*, Comparison_1_t16CD2D4AE94F3B3121F8DE407B0D15E192CF6FCC *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726*)L_10, (Comparison_1_t16CD2D4AE94F3B3121F8DE407B0D15E192CF6FCC *)L_11, (int32_t)L_12, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_13, (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* L_14 = ___keys0; Comparison_1_t16CD2D4AE94F3B3121F8DE407B0D15E192CF6FCC * L_15 = ___comparer4; int32_t L_16 = ___lo1; int32_t L_17 = ___hi2; (( void (*) (ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726*, Comparison_1_t16CD2D4AE94F3B3121F8DE407B0D15E192CF6FCC *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726*)L_14, (Comparison_1_t16CD2D4AE94F3B3121F8DE407B0D15E192CF6FCC *)L_15, (int32_t)L_16, (int32_t)L_17, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* L_18 = ___keys0; Comparison_1_t16CD2D4AE94F3B3121F8DE407B0D15E192CF6FCC * L_19 = ___comparer4; int32_t L_20 = ___hi2; int32_t L_21 = ___hi2; (( void (*) (ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726*, Comparison_1_t16CD2D4AE94F3B3121F8DE407B0D15E192CF6FCC *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726*)L_18, (Comparison_1_t16CD2D4AE94F3B3121F8DE407B0D15E192CF6FCC *)L_19, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_20, (int32_t)1)), (int32_t)L_21, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); return; } IL_004b: { ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* L_22 = ___keys0; int32_t L_23 = ___lo1; int32_t L_24 = ___hi2; Comparison_1_t16CD2D4AE94F3B3121F8DE407B0D15E192CF6FCC * L_25 = ___comparer4; (( void (*) (ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726*, int32_t, int32_t, Comparison_1_t16CD2D4AE94F3B3121F8DE407B0D15E192CF6FCC *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 12)->methodPointer)((ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726*)L_22, (int32_t)L_23, (int32_t)L_24, (Comparison_1_t16CD2D4AE94F3B3121F8DE407B0D15E192CF6FCC *)L_25, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 12)); return; } IL_0056: { int32_t L_26 = ___depthLimit3; if (L_26) { goto IL_0064; } } { ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* L_27 = ___keys0; int32_t L_28 = ___lo1; int32_t L_29 = ___hi2; Comparison_1_t16CD2D4AE94F3B3121F8DE407B0D15E192CF6FCC * L_30 = ___comparer4; (( void (*) (ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726*, int32_t, int32_t, Comparison_1_t16CD2D4AE94F3B3121F8DE407B0D15E192CF6FCC *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 13)->methodPointer)((ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726*)L_27, (int32_t)L_28, (int32_t)L_29, (Comparison_1_t16CD2D4AE94F3B3121F8DE407B0D15E192CF6FCC *)L_30, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 13)); return; } IL_0064: { int32_t L_31 = ___depthLimit3; ___depthLimit3 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_31, (int32_t)1)); ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* L_32 = ___keys0; int32_t L_33 = ___lo1; int32_t L_34 = ___hi2; Comparison_1_t16CD2D4AE94F3B3121F8DE407B0D15E192CF6FCC * L_35 = ___comparer4; int32_t L_36; L_36 = (( int32_t (*) (ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726*, int32_t, int32_t, Comparison_1_t16CD2D4AE94F3B3121F8DE407B0D15E192CF6FCC *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 14)->methodPointer)((ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726*)L_32, (int32_t)L_33, (int32_t)L_34, (Comparison_1_t16CD2D4AE94F3B3121F8DE407B0D15E192CF6FCC *)L_35, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 14)); V_1 = (int32_t)L_36; ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* L_37 = ___keys0; int32_t L_38 = V_1; int32_t L_39 = ___hi2; int32_t L_40 = ___depthLimit3; Comparison_1_t16CD2D4AE94F3B3121F8DE407B0D15E192CF6FCC * L_41 = ___comparer4; (( void (*) (ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726*, int32_t, int32_t, int32_t, Comparison_1_t16CD2D4AE94F3B3121F8DE407B0D15E192CF6FCC *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)->methodPointer)((ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726*)L_37, (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_38, (int32_t)1)), (int32_t)L_39, (int32_t)L_40, (Comparison_1_t16CD2D4AE94F3B3121F8DE407B0D15E192CF6FCC *)L_41, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)); int32_t L_42 = V_1; ___hi2 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_42, (int32_t)1)); } IL_0086: { int32_t L_43 = ___hi2; int32_t L_44 = ___lo1; if ((((int32_t)L_43) > ((int32_t)L_44))) { goto IL_0005; } } { return; } } // System.Int32 System.Collections.Generic.ArraySortHelper`1<System.Byte>::PickPivotAndPartition(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t ArraySortHelper_1_PickPivotAndPartition_mEE28A0B32E64BC2E808DE442EE802EBC367915D2_gshared (ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* ___keys0, int32_t ___lo1, int32_t ___hi2, Comparison_1_t16CD2D4AE94F3B3121F8DE407B0D15E192CF6FCC * ___comparer3, const RuntimeMethod* method) { int32_t V_0 = 0; uint8_t V_1 = 0x0; int32_t V_2 = 0; int32_t V_3 = 0; { int32_t L_0 = ___lo1; int32_t L_1 = ___hi2; int32_t L_2 = ___lo1; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_0, (int32_t)((int32_t)((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_1, (int32_t)L_2))/(int32_t)2)))); ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* L_3 = ___keys0; Comparison_1_t16CD2D4AE94F3B3121F8DE407B0D15E192CF6FCC * L_4 = ___comparer3; int32_t L_5 = ___lo1; int32_t L_6 = V_0; (( void (*) (ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726*, Comparison_1_t16CD2D4AE94F3B3121F8DE407B0D15E192CF6FCC *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726*)L_3, (Comparison_1_t16CD2D4AE94F3B3121F8DE407B0D15E192CF6FCC *)L_4, (int32_t)L_5, (int32_t)L_6, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* L_7 = ___keys0; Comparison_1_t16CD2D4AE94F3B3121F8DE407B0D15E192CF6FCC * L_8 = ___comparer3; int32_t L_9 = ___lo1; int32_t L_10 = ___hi2; (( void (*) (ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726*, Comparison_1_t16CD2D4AE94F3B3121F8DE407B0D15E192CF6FCC *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726*)L_7, (Comparison_1_t16CD2D4AE94F3B3121F8DE407B0D15E192CF6FCC *)L_8, (int32_t)L_9, (int32_t)L_10, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* L_11 = ___keys0; Comparison_1_t16CD2D4AE94F3B3121F8DE407B0D15E192CF6FCC * L_12 = ___comparer3; int32_t L_13 = V_0; int32_t L_14 = ___hi2; (( void (*) (ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726*, Comparison_1_t16CD2D4AE94F3B3121F8DE407B0D15E192CF6FCC *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726*)L_11, (Comparison_1_t16CD2D4AE94F3B3121F8DE407B0D15E192CF6FCC *)L_12, (int32_t)L_13, (int32_t)L_14, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* L_15 = ___keys0; int32_t L_16 = V_0; NullCheck(L_15); int32_t L_17 = L_16; uint8_t L_18 = (L_15)->GetAt(static_cast<il2cpp_array_size_t>(L_17)); V_1 = (uint8_t)L_18; ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* L_19 = ___keys0; int32_t L_20 = V_0; int32_t L_21 = ___hi2; (( void (*) (ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726*)L_19, (int32_t)L_20, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_21, (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); int32_t L_22 = ___lo1; V_2 = (int32_t)L_22; int32_t L_23 = ___hi2; V_3 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_23, (int32_t)1)); goto IL_0073; } IL_003d: { Comparison_1_t16CD2D4AE94F3B3121F8DE407B0D15E192CF6FCC * L_24 = ___comparer3; ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* L_25 = ___keys0; int32_t L_26 = V_2; int32_t L_27 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_26, (int32_t)1)); V_2 = (int32_t)L_27; NullCheck(L_25); int32_t L_28 = L_27; uint8_t L_29 = (L_25)->GetAt(static_cast<il2cpp_array_size_t>(L_28)); uint8_t L_30 = V_1; NullCheck((Comparison_1_t16CD2D4AE94F3B3121F8DE407B0D15E192CF6FCC *)L_24); int32_t L_31; L_31 = (( int32_t (*) (Comparison_1_t16CD2D4AE94F3B3121F8DE407B0D15E192CF6FCC *, uint8_t, uint8_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t16CD2D4AE94F3B3121F8DE407B0D15E192CF6FCC *)L_24, (uint8_t)L_29, (uint8_t)L_30, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_31) < ((int32_t)0))) { goto IL_003d; } } IL_0052: { Comparison_1_t16CD2D4AE94F3B3121F8DE407B0D15E192CF6FCC * L_32 = ___comparer3; uint8_t L_33 = V_1; ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* L_34 = ___keys0; int32_t L_35 = V_3; int32_t L_36 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_35, (int32_t)1)); V_3 = (int32_t)L_36; NullCheck(L_34); int32_t L_37 = L_36; uint8_t L_38 = (L_34)->GetAt(static_cast<il2cpp_array_size_t>(L_37)); NullCheck((Comparison_1_t16CD2D4AE94F3B3121F8DE407B0D15E192CF6FCC *)L_32); int32_t L_39; L_39 = (( int32_t (*) (Comparison_1_t16CD2D4AE94F3B3121F8DE407B0D15E192CF6FCC *, uint8_t, uint8_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t16CD2D4AE94F3B3121F8DE407B0D15E192CF6FCC *)L_32, (uint8_t)L_33, (uint8_t)L_38, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_39) < ((int32_t)0))) { goto IL_0052; } } { int32_t L_40 = V_2; int32_t L_41 = V_3; if ((((int32_t)L_40) >= ((int32_t)L_41))) { goto IL_0077; } } { ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* L_42 = ___keys0; int32_t L_43 = V_2; int32_t L_44 = V_3; (( void (*) (ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726*)L_42, (int32_t)L_43, (int32_t)L_44, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); } IL_0073: { int32_t L_45 = V_2; int32_t L_46 = V_3; if ((((int32_t)L_45) < ((int32_t)L_46))) { goto IL_003d; } } IL_0077: { ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* L_47 = ___keys0; int32_t L_48 = V_2; int32_t L_49 = ___hi2; (( void (*) (ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726*)L_47, (int32_t)L_48, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_49, (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); int32_t L_50 = V_2; return (int32_t)L_50; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Byte>::Heapsort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Heapsort_m9B8165AB55EA411A21CBBE1F1A9A8B8D78D5930A_gshared (ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* ___keys0, int32_t ___lo1, int32_t ___hi2, Comparison_1_t16CD2D4AE94F3B3121F8DE407B0D15E192CF6FCC * ___comparer3, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; int32_t V_2 = 0; { int32_t L_0 = ___hi2; int32_t L_1 = ___lo1; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_0, (int32_t)L_1)), (int32_t)1)); int32_t L_2 = V_0; V_1 = (int32_t)((int32_t)((int32_t)L_2/(int32_t)2)); goto IL_001a; } IL_000c: { ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* L_3 = ___keys0; int32_t L_4 = V_1; int32_t L_5 = V_0; int32_t L_6 = ___lo1; Comparison_1_t16CD2D4AE94F3B3121F8DE407B0D15E192CF6FCC * L_7 = ___comparer3; (( void (*) (ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726*, int32_t, int32_t, int32_t, Comparison_1_t16CD2D4AE94F3B3121F8DE407B0D15E192CF6FCC *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)->methodPointer)((ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726*)L_3, (int32_t)L_4, (int32_t)L_5, (int32_t)L_6, (Comparison_1_t16CD2D4AE94F3B3121F8DE407B0D15E192CF6FCC *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)); int32_t L_8 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_8, (int32_t)1)); } IL_001a: { int32_t L_9 = V_1; if ((((int32_t)L_9) >= ((int32_t)1))) { goto IL_000c; } } { int32_t L_10 = V_0; V_2 = (int32_t)L_10; goto IL_003e; } IL_0022: { ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* L_11 = ___keys0; int32_t L_12 = ___lo1; int32_t L_13 = ___lo1; int32_t L_14 = V_2; (( void (*) (ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726*)L_11, (int32_t)L_12, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_13, (int32_t)L_14)), (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* L_15 = ___keys0; int32_t L_16 = V_2; int32_t L_17 = ___lo1; Comparison_1_t16CD2D4AE94F3B3121F8DE407B0D15E192CF6FCC * L_18 = ___comparer3; (( void (*) (ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726*, int32_t, int32_t, int32_t, Comparison_1_t16CD2D4AE94F3B3121F8DE407B0D15E192CF6FCC *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)->methodPointer)((ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726*)L_15, (int32_t)1, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_16, (int32_t)1)), (int32_t)L_17, (Comparison_1_t16CD2D4AE94F3B3121F8DE407B0D15E192CF6FCC *)L_18, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)); int32_t L_19 = V_2; V_2 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_19, (int32_t)1)); } IL_003e: { int32_t L_20 = V_2; if ((((int32_t)L_20) > ((int32_t)1))) { goto IL_0022; } } { return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Byte>::DownHeap(T[],System.Int32,System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_DownHeap_mC2A1E8C6F31F5DD3BA7A9D34B0E5839D9A520621_gshared (ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* ___keys0, int32_t ___i1, int32_t ___n2, int32_t ___lo3, Comparison_1_t16CD2D4AE94F3B3121F8DE407B0D15E192CF6FCC * ___comparer4, const RuntimeMethod* method) { uint8_t V_0 = 0x0; int32_t V_1 = 0; { ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* L_0 = ___keys0; int32_t L_1 = ___lo3; int32_t L_2 = ___i1; NullCheck(L_0); int32_t L_3 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_1, (int32_t)L_2)), (int32_t)1)); uint8_t L_4 = (L_0)->GetAt(static_cast<il2cpp_array_size_t>(L_3)); V_0 = (uint8_t)L_4; goto IL_0067; } IL_000e: { int32_t L_5 = ___i1; V_1 = (int32_t)((int32_t)il2cpp_codegen_multiply((int32_t)2, (int32_t)L_5)); int32_t L_6 = V_1; int32_t L_7 = ___n2; if ((((int32_t)L_6) >= ((int32_t)L_7))) { goto IL_0038; } } { Comparison_1_t16CD2D4AE94F3B3121F8DE407B0D15E192CF6FCC * L_8 = ___comparer4; ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* L_9 = ___keys0; int32_t L_10 = ___lo3; int32_t L_11 = V_1; NullCheck(L_9); int32_t L_12 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_10, (int32_t)L_11)), (int32_t)1)); uint8_t L_13 = (L_9)->GetAt(static_cast<il2cpp_array_size_t>(L_12)); ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* L_14 = ___keys0; int32_t L_15 = ___lo3; int32_t L_16 = V_1; NullCheck(L_14); int32_t L_17 = ((int32_t)il2cpp_codegen_add((int32_t)L_15, (int32_t)L_16)); uint8_t L_18 = (L_14)->GetAt(static_cast<il2cpp_array_size_t>(L_17)); NullCheck((Comparison_1_t16CD2D4AE94F3B3121F8DE407B0D15E192CF6FCC *)L_8); int32_t L_19; L_19 = (( int32_t (*) (Comparison_1_t16CD2D4AE94F3B3121F8DE407B0D15E192CF6FCC *, uint8_t, uint8_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t16CD2D4AE94F3B3121F8DE407B0D15E192CF6FCC *)L_8, (uint8_t)L_13, (uint8_t)L_18, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_19) >= ((int32_t)0))) { goto IL_0038; } } { int32_t L_20 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_20, (int32_t)1)); } IL_0038: { Comparison_1_t16CD2D4AE94F3B3121F8DE407B0D15E192CF6FCC * L_21 = ___comparer4; uint8_t L_22 = V_0; ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* L_23 = ___keys0; int32_t L_24 = ___lo3; int32_t L_25 = V_1; NullCheck(L_23); int32_t L_26 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_24, (int32_t)L_25)), (int32_t)1)); uint8_t L_27 = (L_23)->GetAt(static_cast<il2cpp_array_size_t>(L_26)); NullCheck((Comparison_1_t16CD2D4AE94F3B3121F8DE407B0D15E192CF6FCC *)L_21); int32_t L_28; L_28 = (( int32_t (*) (Comparison_1_t16CD2D4AE94F3B3121F8DE407B0D15E192CF6FCC *, uint8_t, uint8_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t16CD2D4AE94F3B3121F8DE407B0D15E192CF6FCC *)L_21, (uint8_t)L_22, (uint8_t)L_27, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_28) >= ((int32_t)0))) { goto IL_006d; } } { ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* L_29 = ___keys0; int32_t L_30 = ___lo3; int32_t L_31 = ___i1; ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* L_32 = ___keys0; int32_t L_33 = ___lo3; int32_t L_34 = V_1; NullCheck(L_32); int32_t L_35 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_33, (int32_t)L_34)), (int32_t)1)); uint8_t L_36 = (L_32)->GetAt(static_cast<il2cpp_array_size_t>(L_35)); NullCheck(L_29); (L_29)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_30, (int32_t)L_31)), (int32_t)1))), (uint8_t)L_36); int32_t L_37 = V_1; ___i1 = (int32_t)L_37; } IL_0067: { int32_t L_38 = ___i1; int32_t L_39 = ___n2; if ((((int32_t)L_38) <= ((int32_t)((int32_t)((int32_t)L_39/(int32_t)2))))) { goto IL_000e; } } IL_006d: { ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* L_40 = ___keys0; int32_t L_41 = ___lo3; int32_t L_42 = ___i1; uint8_t L_43 = V_0; NullCheck(L_40); (L_40)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_41, (int32_t)L_42)), (int32_t)1))), (uint8_t)L_43); return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Byte>::InsertionSort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_InsertionSort_m3841EB70D99A923BD5DFC8F6EBB985AE581E7310_gshared (ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* ___keys0, int32_t ___lo1, int32_t ___hi2, Comparison_1_t16CD2D4AE94F3B3121F8DE407B0D15E192CF6FCC * ___comparer3, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; uint8_t V_2 = 0x0; { int32_t L_0 = ___lo1; V_0 = (int32_t)L_0; goto IL_0049; } IL_0004: { int32_t L_1 = V_0; V_1 = (int32_t)L_1; ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* L_2 = ___keys0; int32_t L_3 = V_0; NullCheck(L_2); int32_t L_4 = ((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)1)); uint8_t L_5 = (L_2)->GetAt(static_cast<il2cpp_array_size_t>(L_4)); V_2 = (uint8_t)L_5; goto IL_0026; } IL_0012: { ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* L_6 = ___keys0; int32_t L_7 = V_1; ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* L_8 = ___keys0; int32_t L_9 = V_1; NullCheck(L_8); int32_t L_10 = L_9; uint8_t L_11 = (L_8)->GetAt(static_cast<il2cpp_array_size_t>(L_10)); NullCheck(L_6); (L_6)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add((int32_t)L_7, (int32_t)1))), (uint8_t)L_11); int32_t L_12 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_12, (int32_t)1)); } IL_0026: { int32_t L_13 = V_1; int32_t L_14 = ___lo1; if ((((int32_t)L_13) < ((int32_t)L_14))) { goto IL_003b; } } { Comparison_1_t16CD2D4AE94F3B3121F8DE407B0D15E192CF6FCC * L_15 = ___comparer3; uint8_t L_16 = V_2; ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* L_17 = ___keys0; int32_t L_18 = V_1; NullCheck(L_17); int32_t L_19 = L_18; uint8_t L_20 = (L_17)->GetAt(static_cast<il2cpp_array_size_t>(L_19)); NullCheck((Comparison_1_t16CD2D4AE94F3B3121F8DE407B0D15E192CF6FCC *)L_15); int32_t L_21; L_21 = (( int32_t (*) (Comparison_1_t16CD2D4AE94F3B3121F8DE407B0D15E192CF6FCC *, uint8_t, uint8_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t16CD2D4AE94F3B3121F8DE407B0D15E192CF6FCC *)L_15, (uint8_t)L_16, (uint8_t)L_20, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_21) < ((int32_t)0))) { goto IL_0012; } } IL_003b: { ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* L_22 = ___keys0; int32_t L_23 = V_1; uint8_t L_24 = V_2; NullCheck(L_22); (L_22)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add((int32_t)L_23, (int32_t)1))), (uint8_t)L_24); int32_t L_25 = V_0; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_25, (int32_t)1)); } IL_0049: { int32_t L_26 = V_0; int32_t L_27 = ___hi2; if ((((int32_t)L_26) < ((int32_t)L_27))) { goto IL_0004; } } { return; } } #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Void System.Collections.Generic.ArraySortHelper`1<System.Char>::Sort(T[],System.Int32,System.Int32,System.Collections.Generic.IComparer`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Sort_m89C569EF5CAE7342E59C42D10E954AD80CE61BFD_gshared (CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* ___keys0, int32_t ___index1, int32_t ___length2, RuntimeObject* ___comparer3, const RuntimeMethod* method) { Exception_t * V_0 = NULL; il2cpp::utils::ExceptionSupportStack<RuntimeObject*, 1> __active_exceptions; il2cpp::utils::ExceptionSupportStack<int32_t, 2> __leave_targets; IL_0000: try { // begin try (depth: 1) { RuntimeObject* L_0 = ___comparer3; if (L_0) { goto IL_000a; } } IL_0003: { Comparer_1_tC38AB2E5AE44DA7D8AE64184D06825F6EEA94EB4 * L_1; L_1 = (( Comparer_1_tC38AB2E5AE44DA7D8AE64184D06825F6EEA94EB4 * (*) (const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)->methodPointer)(/*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)); ___comparer3 = (RuntimeObject*)L_1; } IL_000a: { CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* L_2 = ___keys0; int32_t L_3 = ___index1; int32_t L_4 = ___length2; RuntimeObject* L_5 = ___comparer3; RuntimeObject* L_6 = (RuntimeObject*)L_5; Comparison_1_tA212A4EA4B6B81B0C43E008C21F23961526FB45E * L_7 = (Comparison_1_tA212A4EA4B6B81B0C43E008C21F23961526FB45E *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 4)); (( void (*) (Comparison_1_tA212A4EA4B6B81B0C43E008C21F23961526FB45E *, RuntimeObject *, intptr_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 5)->methodPointer)(L_7, (RuntimeObject *)L_6, (intptr_t)((intptr_t)GetInterfaceMethodInfo(L_6, 0, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 3))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 5)); (( void (*) (CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34*, int32_t, int32_t, Comparison_1_tA212A4EA4B6B81B0C43E008C21F23961526FB45E *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)->methodPointer)((CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34*)L_2, (int32_t)L_3, (int32_t)L_4, (Comparison_1_tA212A4EA4B6B81B0C43E008C21F23961526FB45E *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)); goto IL_0037; } } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&IndexOutOfRangeException_tDC9EF7A0346CE39E54DA1083F07BE6DFC3CE2EDD_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_0021; } if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&Exception_t_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_002a; } throw e; } CATCH_0021: { // begin catch(System.IndexOutOfRangeException) RuntimeObject* L_8 = ___comparer3; IntrospectiveSortUtilities_ThrowOrIgnoreBadComparer_mE23A8103696FA67F874E7DA86625BB3921DB801F((RuntimeObject *)L_8, /*hidden argument*/NULL); IL2CPP_POP_ACTIVE_EXCEPTION(); goto IL_0037; } // end catch (depth: 1) CATCH_002a: { // begin catch(System.Exception) V_0 = (Exception_t *)((Exception_t *)IL2CPP_GET_ACTIVE_EXCEPTION(Exception_t *)); Exception_t * L_9 = V_0; InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB * L_10 = (InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB *)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB_il2cpp_TypeInfo_var))); InvalidOperationException__ctor_m4A65916B1316FBF45ECDF1FF7FAC9E3CA30C112C(L_10, (String_t*)((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral6EDB6C049ED9617FA335A262A29BF30B15221AEA)), (Exception_t *)L_9, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_10, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArraySortHelper_1_Sort_m89C569EF5CAE7342E59C42D10E954AD80CE61BFD_RuntimeMethod_var))); } // end catch (depth: 1) IL_0037: { return; } } // System.Int32 System.Collections.Generic.ArraySortHelper`1<System.Char>::BinarySearch(T[],System.Int32,System.Int32,T,System.Collections.Generic.IComparer`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t ArraySortHelper_1_BinarySearch_m1C42BD0DCD3434CB01C6E969B4418B4667D3AAB6_gshared (CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* ___array0, int32_t ___index1, int32_t ___length2, Il2CppChar ___value3, RuntimeObject* ___comparer4, const RuntimeMethod* method) { int32_t V_0 = 0; Exception_t * V_1 = NULL; il2cpp::utils::ExceptionSupportStack<RuntimeObject*, 1> __active_exceptions; il2cpp::utils::ExceptionSupportStack<int32_t, 1> __leave_targets; IL_0000: try { // begin try (depth: 1) { RuntimeObject* L_0 = ___comparer4; if (L_0) { goto IL_000b; } } IL_0004: { Comparer_1_tC38AB2E5AE44DA7D8AE64184D06825F6EEA94EB4 * L_1; L_1 = (( Comparer_1_tC38AB2E5AE44DA7D8AE64184D06825F6EEA94EB4 * (*) (const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)->methodPointer)(/*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)); ___comparer4 = (RuntimeObject*)L_1; } IL_000b: { CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* L_2 = ___array0; int32_t L_3 = ___index1; int32_t L_4 = ___length2; Il2CppChar L_5 = ___value3; RuntimeObject* L_6 = ___comparer4; int32_t L_7; L_7 = (( int32_t (*) (CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34*, int32_t, int32_t, Il2CppChar, RuntimeObject*, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 8)->methodPointer)((CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34*)L_2, (int32_t)L_3, (int32_t)L_4, (Il2CppChar)L_5, (RuntimeObject*)L_6, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 8)); V_0 = (int32_t)L_7; goto IL_0026; } } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&Exception_t_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_0019; } throw e; } CATCH_0019: { // begin catch(System.Exception) V_1 = (Exception_t *)((Exception_t *)IL2CPP_GET_ACTIVE_EXCEPTION(Exception_t *)); Exception_t * L_8 = V_1; InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB * L_9 = (InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB *)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB_il2cpp_TypeInfo_var))); InvalidOperationException__ctor_m4A65916B1316FBF45ECDF1FF7FAC9E3CA30C112C(L_9, (String_t*)((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral6EDB6C049ED9617FA335A262A29BF30B15221AEA)), (Exception_t *)L_8, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_9, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArraySortHelper_1_BinarySearch_m1C42BD0DCD3434CB01C6E969B4418B4667D3AAB6_RuntimeMethod_var))); } // end catch (depth: 1) IL_0026: { int32_t L_10 = V_0; return (int32_t)L_10; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Char>::Sort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Sort_m927A5C32C7B253805ED3F72101F2246D25645AC0_gshared (CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* ___keys0, int32_t ___index1, int32_t ___length2, Comparison_1_tA212A4EA4B6B81B0C43E008C21F23961526FB45E * ___comparer3, const RuntimeMethod* method) { Exception_t * V_0 = NULL; il2cpp::utils::ExceptionSupportStack<RuntimeObject*, 1> __active_exceptions; il2cpp::utils::ExceptionSupportStack<int32_t, 2> __leave_targets; IL_0000: try { // begin try (depth: 1) CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* L_0 = ___keys0; int32_t L_1 = ___index1; int32_t L_2 = ___length2; Comparison_1_tA212A4EA4B6B81B0C43E008C21F23961526FB45E * L_3 = ___comparer3; (( void (*) (CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34*, int32_t, int32_t, Comparison_1_tA212A4EA4B6B81B0C43E008C21F23961526FB45E *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)->methodPointer)((CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34*)L_0, (int32_t)L_1, (int32_t)L_2, (Comparison_1_tA212A4EA4B6B81B0C43E008C21F23961526FB45E *)L_3, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)); goto IL_0021; } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&IndexOutOfRangeException_tDC9EF7A0346CE39E54DA1083F07BE6DFC3CE2EDD_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_000b; } if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&Exception_t_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_0014; } throw e; } CATCH_000b: { // begin catch(System.IndexOutOfRangeException) Comparison_1_tA212A4EA4B6B81B0C43E008C21F23961526FB45E * L_4 = ___comparer3; IntrospectiveSortUtilities_ThrowOrIgnoreBadComparer_mE23A8103696FA67F874E7DA86625BB3921DB801F((RuntimeObject *)L_4, /*hidden argument*/NULL); IL2CPP_POP_ACTIVE_EXCEPTION(); goto IL_0021; } // end catch (depth: 1) CATCH_0014: { // begin catch(System.Exception) V_0 = (Exception_t *)((Exception_t *)IL2CPP_GET_ACTIVE_EXCEPTION(Exception_t *)); Exception_t * L_5 = V_0; InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB * L_6 = (InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB *)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB_il2cpp_TypeInfo_var))); InvalidOperationException__ctor_m4A65916B1316FBF45ECDF1FF7FAC9E3CA30C112C(L_6, (String_t*)((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral6EDB6C049ED9617FA335A262A29BF30B15221AEA)), (Exception_t *)L_5, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_6, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArraySortHelper_1_Sort_m927A5C32C7B253805ED3F72101F2246D25645AC0_RuntimeMethod_var))); } // end catch (depth: 1) IL_0021: { return; } } // System.Int32 System.Collections.Generic.ArraySortHelper`1<System.Char>::InternalBinarySearch(T[],System.Int32,System.Int32,T,System.Collections.Generic.IComparer`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t ArraySortHelper_1_InternalBinarySearch_m0145E4C3255FFACD4E47DB590F0424F282BC65D1_gshared (CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* ___array0, int32_t ___index1, int32_t ___length2, Il2CppChar ___value3, RuntimeObject* ___comparer4, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; int32_t V_2 = 0; int32_t V_3 = 0; { int32_t L_0 = ___index1; V_0 = (int32_t)L_0; int32_t L_1 = ___index1; int32_t L_2 = ___length2; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_1, (int32_t)L_2)), (int32_t)1)); goto IL_0035; } IL_000a: { int32_t L_3 = V_0; int32_t L_4 = V_1; int32_t L_5 = V_0; V_2 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)((int32_t)((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_4, (int32_t)L_5))>>(int32_t)1)))); RuntimeObject* L_6 = ___comparer4; CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* L_7 = ___array0; int32_t L_8 = V_2; NullCheck(L_7); int32_t L_9 = L_8; Il2CppChar L_10 = (L_7)->GetAt(static_cast<il2cpp_array_size_t>(L_9)); Il2CppChar L_11 = ___value3; NullCheck((RuntimeObject*)L_6); int32_t L_12; L_12 = InterfaceFuncInvoker2< int32_t, Il2CppChar, Il2CppChar >::Invoke(0 /* System.Int32 System.Collections.Generic.IComparer`1<System.Char>::Compare(T,T) */, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 3), (RuntimeObject*)L_6, (Il2CppChar)L_10, (Il2CppChar)L_11); V_3 = (int32_t)L_12; int32_t L_13 = V_3; if (L_13) { goto IL_0027; } } { int32_t L_14 = V_2; return (int32_t)L_14; } IL_0027: { int32_t L_15 = V_3; if ((((int32_t)L_15) >= ((int32_t)0))) { goto IL_0031; } } { int32_t L_16 = V_2; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_16, (int32_t)1)); goto IL_0035; } IL_0031: { int32_t L_17 = V_2; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_17, (int32_t)1)); } IL_0035: { int32_t L_18 = V_0; int32_t L_19 = V_1; if ((((int32_t)L_18) <= ((int32_t)L_19))) { goto IL_000a; } } { int32_t L_20 = V_0; return (int32_t)((~L_20)); } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Char>::SwapIfGreater(T[],System.Comparison`1<T>,System.Int32,System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_SwapIfGreater_m5C46B5CF4AB3D69AC1C78C74445F11553AAD626B_gshared (CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* ___keys0, Comparison_1_tA212A4EA4B6B81B0C43E008C21F23961526FB45E * ___comparer1, int32_t ___a2, int32_t ___b3, const RuntimeMethod* method) { Il2CppChar V_0 = 0x0; { int32_t L_0 = ___a2; int32_t L_1 = ___b3; if ((((int32_t)L_0) == ((int32_t)L_1))) { goto IL_0039; } } { Comparison_1_tA212A4EA4B6B81B0C43E008C21F23961526FB45E * L_2 = ___comparer1; CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* L_3 = ___keys0; int32_t L_4 = ___a2; NullCheck(L_3); int32_t L_5 = L_4; Il2CppChar L_6 = (L_3)->GetAt(static_cast<il2cpp_array_size_t>(L_5)); CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* L_7 = ___keys0; int32_t L_8 = ___b3; NullCheck(L_7); int32_t L_9 = L_8; Il2CppChar L_10 = (L_7)->GetAt(static_cast<il2cpp_array_size_t>(L_9)); NullCheck((Comparison_1_tA212A4EA4B6B81B0C43E008C21F23961526FB45E *)L_2); int32_t L_11; L_11 = (( int32_t (*) (Comparison_1_tA212A4EA4B6B81B0C43E008C21F23961526FB45E *, Il2CppChar, Il2CppChar, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_tA212A4EA4B6B81B0C43E008C21F23961526FB45E *)L_2, (Il2CppChar)L_6, (Il2CppChar)L_10, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_11) <= ((int32_t)0))) { goto IL_0039; } } { CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* L_12 = ___keys0; int32_t L_13 = ___a2; NullCheck(L_12); int32_t L_14 = L_13; Il2CppChar L_15 = (L_12)->GetAt(static_cast<il2cpp_array_size_t>(L_14)); V_0 = (Il2CppChar)L_15; CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* L_16 = ___keys0; int32_t L_17 = ___a2; CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* L_18 = ___keys0; int32_t L_19 = ___b3; NullCheck(L_18); int32_t L_20 = L_19; Il2CppChar L_21 = (L_18)->GetAt(static_cast<il2cpp_array_size_t>(L_20)); NullCheck(L_16); (L_16)->SetAt(static_cast<il2cpp_array_size_t>(L_17), (Il2CppChar)L_21); CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* L_22 = ___keys0; int32_t L_23 = ___b3; Il2CppChar L_24 = V_0; NullCheck(L_22); (L_22)->SetAt(static_cast<il2cpp_array_size_t>(L_23), (Il2CppChar)L_24); } IL_0039: { return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Char>::Swap(T[],System.Int32,System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Swap_m48E6E26520D24892BFA86D1E7C3695CAAC573A6F_gshared (CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* ___a0, int32_t ___i1, int32_t ___j2, const RuntimeMethod* method) { Il2CppChar V_0 = 0x0; { int32_t L_0 = ___i1; int32_t L_1 = ___j2; if ((((int32_t)L_0) == ((int32_t)L_1))) { goto IL_0022; } } { CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* L_2 = ___a0; int32_t L_3 = ___i1; NullCheck(L_2); int32_t L_4 = L_3; Il2CppChar L_5 = (L_2)->GetAt(static_cast<il2cpp_array_size_t>(L_4)); V_0 = (Il2CppChar)L_5; CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* L_6 = ___a0; int32_t L_7 = ___i1; CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* L_8 = ___a0; int32_t L_9 = ___j2; NullCheck(L_8); int32_t L_10 = L_9; Il2CppChar L_11 = (L_8)->GetAt(static_cast<il2cpp_array_size_t>(L_10)); NullCheck(L_6); (L_6)->SetAt(static_cast<il2cpp_array_size_t>(L_7), (Il2CppChar)L_11); CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* L_12 = ___a0; int32_t L_13 = ___j2; Il2CppChar L_14 = V_0; NullCheck(L_12); (L_12)->SetAt(static_cast<il2cpp_array_size_t>(L_13), (Il2CppChar)L_14); } IL_0022: { return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Char>::IntrospectiveSort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_IntrospectiveSort_m0B9FDD60E3AF9071030705B369A9513F7DD54403_gshared (CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* ___keys0, int32_t ___left1, int32_t ___length2, Comparison_1_tA212A4EA4B6B81B0C43E008C21F23961526FB45E * ___comparer3, const RuntimeMethod* method) { { int32_t L_0 = ___length2; if ((((int32_t)L_0) >= ((int32_t)2))) { goto IL_0005; } } { return; } IL_0005: { CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* L_1 = ___keys0; int32_t L_2 = ___left1; int32_t L_3 = ___length2; int32_t L_4 = ___left1; CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* L_5 = ___keys0; NullCheck(L_5); int32_t L_6; L_6 = IntrospectiveSortUtilities_FloorLog2_m05ECB6CAC7A23087D9EC2C2A4DDCFE12272C3872((int32_t)((int32_t)((int32_t)(((RuntimeArray*)L_5)->max_length))), /*hidden argument*/NULL); Comparison_1_tA212A4EA4B6B81B0C43E008C21F23961526FB45E * L_7 = ___comparer3; (( void (*) (CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34*, int32_t, int32_t, int32_t, Comparison_1_tA212A4EA4B6B81B0C43E008C21F23961526FB45E *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)->methodPointer)((CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34*)L_1, (int32_t)L_2, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)L_4)), (int32_t)1)), (int32_t)((int32_t)il2cpp_codegen_multiply((int32_t)2, (int32_t)L_6)), (Comparison_1_tA212A4EA4B6B81B0C43E008C21F23961526FB45E *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)); return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Char>::IntroSort(T[],System.Int32,System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_IntroSort_m08DA1F4023661910BA078F2DAF27B930B710B2C5_gshared (CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* ___keys0, int32_t ___lo1, int32_t ___hi2, int32_t ___depthLimit3, Comparison_1_tA212A4EA4B6B81B0C43E008C21F23961526FB45E * ___comparer4, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; { goto IL_0086; } IL_0005: { int32_t L_0 = ___hi2; int32_t L_1 = ___lo1; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_0, (int32_t)L_1)), (int32_t)1)); int32_t L_2 = V_0; if ((((int32_t)L_2) > ((int32_t)((int32_t)16)))) { goto IL_0056; } } { int32_t L_3 = V_0; if ((!(((uint32_t)L_3) == ((uint32_t)1)))) { goto IL_0015; } } { return; } IL_0015: { int32_t L_4 = V_0; if ((!(((uint32_t)L_4) == ((uint32_t)2)))) { goto IL_0024; } } { CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* L_5 = ___keys0; Comparison_1_tA212A4EA4B6B81B0C43E008C21F23961526FB45E * L_6 = ___comparer4; int32_t L_7 = ___lo1; int32_t L_8 = ___hi2; (( void (*) (CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34*, Comparison_1_tA212A4EA4B6B81B0C43E008C21F23961526FB45E *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34*)L_5, (Comparison_1_tA212A4EA4B6B81B0C43E008C21F23961526FB45E *)L_6, (int32_t)L_7, (int32_t)L_8, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); return; } IL_0024: { int32_t L_9 = V_0; if ((!(((uint32_t)L_9) == ((uint32_t)3)))) { goto IL_004b; } } { CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* L_10 = ___keys0; Comparison_1_tA212A4EA4B6B81B0C43E008C21F23961526FB45E * L_11 = ___comparer4; int32_t L_12 = ___lo1; int32_t L_13 = ___hi2; (( void (*) (CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34*, Comparison_1_tA212A4EA4B6B81B0C43E008C21F23961526FB45E *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34*)L_10, (Comparison_1_tA212A4EA4B6B81B0C43E008C21F23961526FB45E *)L_11, (int32_t)L_12, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_13, (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* L_14 = ___keys0; Comparison_1_tA212A4EA4B6B81B0C43E008C21F23961526FB45E * L_15 = ___comparer4; int32_t L_16 = ___lo1; int32_t L_17 = ___hi2; (( void (*) (CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34*, Comparison_1_tA212A4EA4B6B81B0C43E008C21F23961526FB45E *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34*)L_14, (Comparison_1_tA212A4EA4B6B81B0C43E008C21F23961526FB45E *)L_15, (int32_t)L_16, (int32_t)L_17, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* L_18 = ___keys0; Comparison_1_tA212A4EA4B6B81B0C43E008C21F23961526FB45E * L_19 = ___comparer4; int32_t L_20 = ___hi2; int32_t L_21 = ___hi2; (( void (*) (CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34*, Comparison_1_tA212A4EA4B6B81B0C43E008C21F23961526FB45E *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34*)L_18, (Comparison_1_tA212A4EA4B6B81B0C43E008C21F23961526FB45E *)L_19, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_20, (int32_t)1)), (int32_t)L_21, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); return; } IL_004b: { CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* L_22 = ___keys0; int32_t L_23 = ___lo1; int32_t L_24 = ___hi2; Comparison_1_tA212A4EA4B6B81B0C43E008C21F23961526FB45E * L_25 = ___comparer4; (( void (*) (CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34*, int32_t, int32_t, Comparison_1_tA212A4EA4B6B81B0C43E008C21F23961526FB45E *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 12)->methodPointer)((CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34*)L_22, (int32_t)L_23, (int32_t)L_24, (Comparison_1_tA212A4EA4B6B81B0C43E008C21F23961526FB45E *)L_25, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 12)); return; } IL_0056: { int32_t L_26 = ___depthLimit3; if (L_26) { goto IL_0064; } } { CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* L_27 = ___keys0; int32_t L_28 = ___lo1; int32_t L_29 = ___hi2; Comparison_1_tA212A4EA4B6B81B0C43E008C21F23961526FB45E * L_30 = ___comparer4; (( void (*) (CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34*, int32_t, int32_t, Comparison_1_tA212A4EA4B6B81B0C43E008C21F23961526FB45E *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 13)->methodPointer)((CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34*)L_27, (int32_t)L_28, (int32_t)L_29, (Comparison_1_tA212A4EA4B6B81B0C43E008C21F23961526FB45E *)L_30, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 13)); return; } IL_0064: { int32_t L_31 = ___depthLimit3; ___depthLimit3 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_31, (int32_t)1)); CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* L_32 = ___keys0; int32_t L_33 = ___lo1; int32_t L_34 = ___hi2; Comparison_1_tA212A4EA4B6B81B0C43E008C21F23961526FB45E * L_35 = ___comparer4; int32_t L_36; L_36 = (( int32_t (*) (CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34*, int32_t, int32_t, Comparison_1_tA212A4EA4B6B81B0C43E008C21F23961526FB45E *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 14)->methodPointer)((CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34*)L_32, (int32_t)L_33, (int32_t)L_34, (Comparison_1_tA212A4EA4B6B81B0C43E008C21F23961526FB45E *)L_35, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 14)); V_1 = (int32_t)L_36; CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* L_37 = ___keys0; int32_t L_38 = V_1; int32_t L_39 = ___hi2; int32_t L_40 = ___depthLimit3; Comparison_1_tA212A4EA4B6B81B0C43E008C21F23961526FB45E * L_41 = ___comparer4; (( void (*) (CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34*, int32_t, int32_t, int32_t, Comparison_1_tA212A4EA4B6B81B0C43E008C21F23961526FB45E *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)->methodPointer)((CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34*)L_37, (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_38, (int32_t)1)), (int32_t)L_39, (int32_t)L_40, (Comparison_1_tA212A4EA4B6B81B0C43E008C21F23961526FB45E *)L_41, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)); int32_t L_42 = V_1; ___hi2 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_42, (int32_t)1)); } IL_0086: { int32_t L_43 = ___hi2; int32_t L_44 = ___lo1; if ((((int32_t)L_43) > ((int32_t)L_44))) { goto IL_0005; } } { return; } } // System.Int32 System.Collections.Generic.ArraySortHelper`1<System.Char>::PickPivotAndPartition(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t ArraySortHelper_1_PickPivotAndPartition_m59879619C339A19E5CA5838ACFB152704FFB8BBD_gshared (CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* ___keys0, int32_t ___lo1, int32_t ___hi2, Comparison_1_tA212A4EA4B6B81B0C43E008C21F23961526FB45E * ___comparer3, const RuntimeMethod* method) { int32_t V_0 = 0; Il2CppChar V_1 = 0x0; int32_t V_2 = 0; int32_t V_3 = 0; { int32_t L_0 = ___lo1; int32_t L_1 = ___hi2; int32_t L_2 = ___lo1; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_0, (int32_t)((int32_t)((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_1, (int32_t)L_2))/(int32_t)2)))); CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* L_3 = ___keys0; Comparison_1_tA212A4EA4B6B81B0C43E008C21F23961526FB45E * L_4 = ___comparer3; int32_t L_5 = ___lo1; int32_t L_6 = V_0; (( void (*) (CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34*, Comparison_1_tA212A4EA4B6B81B0C43E008C21F23961526FB45E *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34*)L_3, (Comparison_1_tA212A4EA4B6B81B0C43E008C21F23961526FB45E *)L_4, (int32_t)L_5, (int32_t)L_6, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* L_7 = ___keys0; Comparison_1_tA212A4EA4B6B81B0C43E008C21F23961526FB45E * L_8 = ___comparer3; int32_t L_9 = ___lo1; int32_t L_10 = ___hi2; (( void (*) (CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34*, Comparison_1_tA212A4EA4B6B81B0C43E008C21F23961526FB45E *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34*)L_7, (Comparison_1_tA212A4EA4B6B81B0C43E008C21F23961526FB45E *)L_8, (int32_t)L_9, (int32_t)L_10, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* L_11 = ___keys0; Comparison_1_tA212A4EA4B6B81B0C43E008C21F23961526FB45E * L_12 = ___comparer3; int32_t L_13 = V_0; int32_t L_14 = ___hi2; (( void (*) (CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34*, Comparison_1_tA212A4EA4B6B81B0C43E008C21F23961526FB45E *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34*)L_11, (Comparison_1_tA212A4EA4B6B81B0C43E008C21F23961526FB45E *)L_12, (int32_t)L_13, (int32_t)L_14, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* L_15 = ___keys0; int32_t L_16 = V_0; NullCheck(L_15); int32_t L_17 = L_16; Il2CppChar L_18 = (L_15)->GetAt(static_cast<il2cpp_array_size_t>(L_17)); V_1 = (Il2CppChar)L_18; CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* L_19 = ___keys0; int32_t L_20 = V_0; int32_t L_21 = ___hi2; (( void (*) (CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34*)L_19, (int32_t)L_20, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_21, (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); int32_t L_22 = ___lo1; V_2 = (int32_t)L_22; int32_t L_23 = ___hi2; V_3 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_23, (int32_t)1)); goto IL_0073; } IL_003d: { Comparison_1_tA212A4EA4B6B81B0C43E008C21F23961526FB45E * L_24 = ___comparer3; CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* L_25 = ___keys0; int32_t L_26 = V_2; int32_t L_27 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_26, (int32_t)1)); V_2 = (int32_t)L_27; NullCheck(L_25); int32_t L_28 = L_27; Il2CppChar L_29 = (L_25)->GetAt(static_cast<il2cpp_array_size_t>(L_28)); Il2CppChar L_30 = V_1; NullCheck((Comparison_1_tA212A4EA4B6B81B0C43E008C21F23961526FB45E *)L_24); int32_t L_31; L_31 = (( int32_t (*) (Comparison_1_tA212A4EA4B6B81B0C43E008C21F23961526FB45E *, Il2CppChar, Il2CppChar, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_tA212A4EA4B6B81B0C43E008C21F23961526FB45E *)L_24, (Il2CppChar)L_29, (Il2CppChar)L_30, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_31) < ((int32_t)0))) { goto IL_003d; } } IL_0052: { Comparison_1_tA212A4EA4B6B81B0C43E008C21F23961526FB45E * L_32 = ___comparer3; Il2CppChar L_33 = V_1; CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* L_34 = ___keys0; int32_t L_35 = V_3; int32_t L_36 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_35, (int32_t)1)); V_3 = (int32_t)L_36; NullCheck(L_34); int32_t L_37 = L_36; Il2CppChar L_38 = (L_34)->GetAt(static_cast<il2cpp_array_size_t>(L_37)); NullCheck((Comparison_1_tA212A4EA4B6B81B0C43E008C21F23961526FB45E *)L_32); int32_t L_39; L_39 = (( int32_t (*) (Comparison_1_tA212A4EA4B6B81B0C43E008C21F23961526FB45E *, Il2CppChar, Il2CppChar, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_tA212A4EA4B6B81B0C43E008C21F23961526FB45E *)L_32, (Il2CppChar)L_33, (Il2CppChar)L_38, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_39) < ((int32_t)0))) { goto IL_0052; } } { int32_t L_40 = V_2; int32_t L_41 = V_3; if ((((int32_t)L_40) >= ((int32_t)L_41))) { goto IL_0077; } } { CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* L_42 = ___keys0; int32_t L_43 = V_2; int32_t L_44 = V_3; (( void (*) (CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34*)L_42, (int32_t)L_43, (int32_t)L_44, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); } IL_0073: { int32_t L_45 = V_2; int32_t L_46 = V_3; if ((((int32_t)L_45) < ((int32_t)L_46))) { goto IL_003d; } } IL_0077: { CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* L_47 = ___keys0; int32_t L_48 = V_2; int32_t L_49 = ___hi2; (( void (*) (CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34*)L_47, (int32_t)L_48, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_49, (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); int32_t L_50 = V_2; return (int32_t)L_50; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Char>::Heapsort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Heapsort_mE39067C5233490FAC89E8A8E61237CBD31B6B5ED_gshared (CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* ___keys0, int32_t ___lo1, int32_t ___hi2, Comparison_1_tA212A4EA4B6B81B0C43E008C21F23961526FB45E * ___comparer3, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; int32_t V_2 = 0; { int32_t L_0 = ___hi2; int32_t L_1 = ___lo1; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_0, (int32_t)L_1)), (int32_t)1)); int32_t L_2 = V_0; V_1 = (int32_t)((int32_t)((int32_t)L_2/(int32_t)2)); goto IL_001a; } IL_000c: { CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* L_3 = ___keys0; int32_t L_4 = V_1; int32_t L_5 = V_0; int32_t L_6 = ___lo1; Comparison_1_tA212A4EA4B6B81B0C43E008C21F23961526FB45E * L_7 = ___comparer3; (( void (*) (CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34*, int32_t, int32_t, int32_t, Comparison_1_tA212A4EA4B6B81B0C43E008C21F23961526FB45E *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)->methodPointer)((CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34*)L_3, (int32_t)L_4, (int32_t)L_5, (int32_t)L_6, (Comparison_1_tA212A4EA4B6B81B0C43E008C21F23961526FB45E *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)); int32_t L_8 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_8, (int32_t)1)); } IL_001a: { int32_t L_9 = V_1; if ((((int32_t)L_9) >= ((int32_t)1))) { goto IL_000c; } } { int32_t L_10 = V_0; V_2 = (int32_t)L_10; goto IL_003e; } IL_0022: { CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* L_11 = ___keys0; int32_t L_12 = ___lo1; int32_t L_13 = ___lo1; int32_t L_14 = V_2; (( void (*) (CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34*)L_11, (int32_t)L_12, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_13, (int32_t)L_14)), (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* L_15 = ___keys0; int32_t L_16 = V_2; int32_t L_17 = ___lo1; Comparison_1_tA212A4EA4B6B81B0C43E008C21F23961526FB45E * L_18 = ___comparer3; (( void (*) (CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34*, int32_t, int32_t, int32_t, Comparison_1_tA212A4EA4B6B81B0C43E008C21F23961526FB45E *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)->methodPointer)((CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34*)L_15, (int32_t)1, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_16, (int32_t)1)), (int32_t)L_17, (Comparison_1_tA212A4EA4B6B81B0C43E008C21F23961526FB45E *)L_18, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)); int32_t L_19 = V_2; V_2 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_19, (int32_t)1)); } IL_003e: { int32_t L_20 = V_2; if ((((int32_t)L_20) > ((int32_t)1))) { goto IL_0022; } } { return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Char>::DownHeap(T[],System.Int32,System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_DownHeap_m88CD9DE89632A7783288613451540EC8E4341FC7_gshared (CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* ___keys0, int32_t ___i1, int32_t ___n2, int32_t ___lo3, Comparison_1_tA212A4EA4B6B81B0C43E008C21F23961526FB45E * ___comparer4, const RuntimeMethod* method) { Il2CppChar V_0 = 0x0; int32_t V_1 = 0; { CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* L_0 = ___keys0; int32_t L_1 = ___lo3; int32_t L_2 = ___i1; NullCheck(L_0); int32_t L_3 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_1, (int32_t)L_2)), (int32_t)1)); Il2CppChar L_4 = (L_0)->GetAt(static_cast<il2cpp_array_size_t>(L_3)); V_0 = (Il2CppChar)L_4; goto IL_0067; } IL_000e: { int32_t L_5 = ___i1; V_1 = (int32_t)((int32_t)il2cpp_codegen_multiply((int32_t)2, (int32_t)L_5)); int32_t L_6 = V_1; int32_t L_7 = ___n2; if ((((int32_t)L_6) >= ((int32_t)L_7))) { goto IL_0038; } } { Comparison_1_tA212A4EA4B6B81B0C43E008C21F23961526FB45E * L_8 = ___comparer4; CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* L_9 = ___keys0; int32_t L_10 = ___lo3; int32_t L_11 = V_1; NullCheck(L_9); int32_t L_12 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_10, (int32_t)L_11)), (int32_t)1)); Il2CppChar L_13 = (L_9)->GetAt(static_cast<il2cpp_array_size_t>(L_12)); CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* L_14 = ___keys0; int32_t L_15 = ___lo3; int32_t L_16 = V_1; NullCheck(L_14); int32_t L_17 = ((int32_t)il2cpp_codegen_add((int32_t)L_15, (int32_t)L_16)); Il2CppChar L_18 = (L_14)->GetAt(static_cast<il2cpp_array_size_t>(L_17)); NullCheck((Comparison_1_tA212A4EA4B6B81B0C43E008C21F23961526FB45E *)L_8); int32_t L_19; L_19 = (( int32_t (*) (Comparison_1_tA212A4EA4B6B81B0C43E008C21F23961526FB45E *, Il2CppChar, Il2CppChar, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_tA212A4EA4B6B81B0C43E008C21F23961526FB45E *)L_8, (Il2CppChar)L_13, (Il2CppChar)L_18, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_19) >= ((int32_t)0))) { goto IL_0038; } } { int32_t L_20 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_20, (int32_t)1)); } IL_0038: { Comparison_1_tA212A4EA4B6B81B0C43E008C21F23961526FB45E * L_21 = ___comparer4; Il2CppChar L_22 = V_0; CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* L_23 = ___keys0; int32_t L_24 = ___lo3; int32_t L_25 = V_1; NullCheck(L_23); int32_t L_26 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_24, (int32_t)L_25)), (int32_t)1)); Il2CppChar L_27 = (L_23)->GetAt(static_cast<il2cpp_array_size_t>(L_26)); NullCheck((Comparison_1_tA212A4EA4B6B81B0C43E008C21F23961526FB45E *)L_21); int32_t L_28; L_28 = (( int32_t (*) (Comparison_1_tA212A4EA4B6B81B0C43E008C21F23961526FB45E *, Il2CppChar, Il2CppChar, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_tA212A4EA4B6B81B0C43E008C21F23961526FB45E *)L_21, (Il2CppChar)L_22, (Il2CppChar)L_27, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_28) >= ((int32_t)0))) { goto IL_006d; } } { CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* L_29 = ___keys0; int32_t L_30 = ___lo3; int32_t L_31 = ___i1; CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* L_32 = ___keys0; int32_t L_33 = ___lo3; int32_t L_34 = V_1; NullCheck(L_32); int32_t L_35 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_33, (int32_t)L_34)), (int32_t)1)); Il2CppChar L_36 = (L_32)->GetAt(static_cast<il2cpp_array_size_t>(L_35)); NullCheck(L_29); (L_29)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_30, (int32_t)L_31)), (int32_t)1))), (Il2CppChar)L_36); int32_t L_37 = V_1; ___i1 = (int32_t)L_37; } IL_0067: { int32_t L_38 = ___i1; int32_t L_39 = ___n2; if ((((int32_t)L_38) <= ((int32_t)((int32_t)((int32_t)L_39/(int32_t)2))))) { goto IL_000e; } } IL_006d: { CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* L_40 = ___keys0; int32_t L_41 = ___lo3; int32_t L_42 = ___i1; Il2CppChar L_43 = V_0; NullCheck(L_40); (L_40)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_41, (int32_t)L_42)), (int32_t)1))), (Il2CppChar)L_43); return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Char>::InsertionSort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_InsertionSort_mD70ECFE5EC2B31978AB5D456A456A0F1843CE017_gshared (CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* ___keys0, int32_t ___lo1, int32_t ___hi2, Comparison_1_tA212A4EA4B6B81B0C43E008C21F23961526FB45E * ___comparer3, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; Il2CppChar V_2 = 0x0; { int32_t L_0 = ___lo1; V_0 = (int32_t)L_0; goto IL_0049; } IL_0004: { int32_t L_1 = V_0; V_1 = (int32_t)L_1; CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* L_2 = ___keys0; int32_t L_3 = V_0; NullCheck(L_2); int32_t L_4 = ((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)1)); Il2CppChar L_5 = (L_2)->GetAt(static_cast<il2cpp_array_size_t>(L_4)); V_2 = (Il2CppChar)L_5; goto IL_0026; } IL_0012: { CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* L_6 = ___keys0; int32_t L_7 = V_1; CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* L_8 = ___keys0; int32_t L_9 = V_1; NullCheck(L_8); int32_t L_10 = L_9; Il2CppChar L_11 = (L_8)->GetAt(static_cast<il2cpp_array_size_t>(L_10)); NullCheck(L_6); (L_6)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add((int32_t)L_7, (int32_t)1))), (Il2CppChar)L_11); int32_t L_12 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_12, (int32_t)1)); } IL_0026: { int32_t L_13 = V_1; int32_t L_14 = ___lo1; if ((((int32_t)L_13) < ((int32_t)L_14))) { goto IL_003b; } } { Comparison_1_tA212A4EA4B6B81B0C43E008C21F23961526FB45E * L_15 = ___comparer3; Il2CppChar L_16 = V_2; CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* L_17 = ___keys0; int32_t L_18 = V_1; NullCheck(L_17); int32_t L_19 = L_18; Il2CppChar L_20 = (L_17)->GetAt(static_cast<il2cpp_array_size_t>(L_19)); NullCheck((Comparison_1_tA212A4EA4B6B81B0C43E008C21F23961526FB45E *)L_15); int32_t L_21; L_21 = (( int32_t (*) (Comparison_1_tA212A4EA4B6B81B0C43E008C21F23961526FB45E *, Il2CppChar, Il2CppChar, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_tA212A4EA4B6B81B0C43E008C21F23961526FB45E *)L_15, (Il2CppChar)L_16, (Il2CppChar)L_20, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_21) < ((int32_t)0))) { goto IL_0012; } } IL_003b: { CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* L_22 = ___keys0; int32_t L_23 = V_1; Il2CppChar L_24 = V_2; NullCheck(L_22); (L_22)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add((int32_t)L_23, (int32_t)1))), (Il2CppChar)L_24); int32_t L_25 = V_0; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_25, (int32_t)1)); } IL_0049: { int32_t L_26 = V_0; int32_t L_27 = ___hi2; if ((((int32_t)L_26) < ((int32_t)L_27))) { goto IL_0004; } } { return; } } #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Void System.Collections.Generic.ArraySortHelper`1<UnityEngine.Color>::Sort(T[],System.Int32,System.Int32,System.Collections.Generic.IComparer`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Sort_m9251CE0FCC10EA633883EBB189B31145FDA24EDE_gshared (ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834* ___keys0, int32_t ___index1, int32_t ___length2, RuntimeObject* ___comparer3, const RuntimeMethod* method) { Exception_t * V_0 = NULL; il2cpp::utils::ExceptionSupportStack<RuntimeObject*, 1> __active_exceptions; il2cpp::utils::ExceptionSupportStack<int32_t, 2> __leave_targets; IL_0000: try { // begin try (depth: 1) { RuntimeObject* L_0 = ___comparer3; if (L_0) { goto IL_000a; } } IL_0003: { Comparer_1_tD664CD86F4232686CF77C873ACAA28BABF5B9A6A * L_1; L_1 = (( Comparer_1_tD664CD86F4232686CF77C873ACAA28BABF5B9A6A * (*) (const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)->methodPointer)(/*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)); ___comparer3 = (RuntimeObject*)L_1; } IL_000a: { ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834* L_2 = ___keys0; int32_t L_3 = ___index1; int32_t L_4 = ___length2; RuntimeObject* L_5 = ___comparer3; RuntimeObject* L_6 = (RuntimeObject*)L_5; Comparison_1_tBA50C326C36BBCACB9EEF69FBE15237772260CE5 * L_7 = (Comparison_1_tBA50C326C36BBCACB9EEF69FBE15237772260CE5 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 4)); (( void (*) (Comparison_1_tBA50C326C36BBCACB9EEF69FBE15237772260CE5 *, RuntimeObject *, intptr_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 5)->methodPointer)(L_7, (RuntimeObject *)L_6, (intptr_t)((intptr_t)GetInterfaceMethodInfo(L_6, 0, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 3))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 5)); (( void (*) (ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834*, int32_t, int32_t, Comparison_1_tBA50C326C36BBCACB9EEF69FBE15237772260CE5 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)->methodPointer)((ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834*)L_2, (int32_t)L_3, (int32_t)L_4, (Comparison_1_tBA50C326C36BBCACB9EEF69FBE15237772260CE5 *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)); goto IL_0037; } } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&IndexOutOfRangeException_tDC9EF7A0346CE39E54DA1083F07BE6DFC3CE2EDD_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_0021; } if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&Exception_t_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_002a; } throw e; } CATCH_0021: { // begin catch(System.IndexOutOfRangeException) RuntimeObject* L_8 = ___comparer3; IntrospectiveSortUtilities_ThrowOrIgnoreBadComparer_mE23A8103696FA67F874E7DA86625BB3921DB801F((RuntimeObject *)L_8, /*hidden argument*/NULL); IL2CPP_POP_ACTIVE_EXCEPTION(); goto IL_0037; } // end catch (depth: 1) CATCH_002a: { // begin catch(System.Exception) V_0 = (Exception_t *)((Exception_t *)IL2CPP_GET_ACTIVE_EXCEPTION(Exception_t *)); Exception_t * L_9 = V_0; InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB * L_10 = (InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB *)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB_il2cpp_TypeInfo_var))); InvalidOperationException__ctor_m4A65916B1316FBF45ECDF1FF7FAC9E3CA30C112C(L_10, (String_t*)((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral6EDB6C049ED9617FA335A262A29BF30B15221AEA)), (Exception_t *)L_9, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_10, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArraySortHelper_1_Sort_m9251CE0FCC10EA633883EBB189B31145FDA24EDE_RuntimeMethod_var))); } // end catch (depth: 1) IL_0037: { return; } } // System.Int32 System.Collections.Generic.ArraySortHelper`1<UnityEngine.Color>::BinarySearch(T[],System.Int32,System.Int32,T,System.Collections.Generic.IComparer`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t ArraySortHelper_1_BinarySearch_mE76D8728CB15390968FC58A6734C3C12B0C9847F_gshared (ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834* ___array0, int32_t ___index1, int32_t ___length2, Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 ___value3, RuntimeObject* ___comparer4, const RuntimeMethod* method) { int32_t V_0 = 0; Exception_t * V_1 = NULL; il2cpp::utils::ExceptionSupportStack<RuntimeObject*, 1> __active_exceptions; il2cpp::utils::ExceptionSupportStack<int32_t, 1> __leave_targets; IL_0000: try { // begin try (depth: 1) { RuntimeObject* L_0 = ___comparer4; if (L_0) { goto IL_000b; } } IL_0004: { Comparer_1_tD664CD86F4232686CF77C873ACAA28BABF5B9A6A * L_1; L_1 = (( Comparer_1_tD664CD86F4232686CF77C873ACAA28BABF5B9A6A * (*) (const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)->methodPointer)(/*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)); ___comparer4 = (RuntimeObject*)L_1; } IL_000b: { ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834* L_2 = ___array0; int32_t L_3 = ___index1; int32_t L_4 = ___length2; Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 L_5 = ___value3; RuntimeObject* L_6 = ___comparer4; int32_t L_7; L_7 = (( int32_t (*) (ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834*, int32_t, int32_t, Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 , RuntimeObject*, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 8)->methodPointer)((ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834*)L_2, (int32_t)L_3, (int32_t)L_4, (Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 )L_5, (RuntimeObject*)L_6, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 8)); V_0 = (int32_t)L_7; goto IL_0026; } } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&Exception_t_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_0019; } throw e; } CATCH_0019: { // begin catch(System.Exception) V_1 = (Exception_t *)((Exception_t *)IL2CPP_GET_ACTIVE_EXCEPTION(Exception_t *)); Exception_t * L_8 = V_1; InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB * L_9 = (InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB *)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB_il2cpp_TypeInfo_var))); InvalidOperationException__ctor_m4A65916B1316FBF45ECDF1FF7FAC9E3CA30C112C(L_9, (String_t*)((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral6EDB6C049ED9617FA335A262A29BF30B15221AEA)), (Exception_t *)L_8, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_9, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArraySortHelper_1_BinarySearch_mE76D8728CB15390968FC58A6734C3C12B0C9847F_RuntimeMethod_var))); } // end catch (depth: 1) IL_0026: { int32_t L_10 = V_0; return (int32_t)L_10; } } // System.Void System.Collections.Generic.ArraySortHelper`1<UnityEngine.Color>::Sort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Sort_mEDBD802A10E2F9FAC38CEF19CC8C23AF922D0611_gshared (ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834* ___keys0, int32_t ___index1, int32_t ___length2, Comparison_1_tBA50C326C36BBCACB9EEF69FBE15237772260CE5 * ___comparer3, const RuntimeMethod* method) { Exception_t * V_0 = NULL; il2cpp::utils::ExceptionSupportStack<RuntimeObject*, 1> __active_exceptions; il2cpp::utils::ExceptionSupportStack<int32_t, 2> __leave_targets; IL_0000: try { // begin try (depth: 1) ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834* L_0 = ___keys0; int32_t L_1 = ___index1; int32_t L_2 = ___length2; Comparison_1_tBA50C326C36BBCACB9EEF69FBE15237772260CE5 * L_3 = ___comparer3; (( void (*) (ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834*, int32_t, int32_t, Comparison_1_tBA50C326C36BBCACB9EEF69FBE15237772260CE5 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)->methodPointer)((ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834*)L_0, (int32_t)L_1, (int32_t)L_2, (Comparison_1_tBA50C326C36BBCACB9EEF69FBE15237772260CE5 *)L_3, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)); goto IL_0021; } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&IndexOutOfRangeException_tDC9EF7A0346CE39E54DA1083F07BE6DFC3CE2EDD_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_000b; } if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&Exception_t_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_0014; } throw e; } CATCH_000b: { // begin catch(System.IndexOutOfRangeException) Comparison_1_tBA50C326C36BBCACB9EEF69FBE15237772260CE5 * L_4 = ___comparer3; IntrospectiveSortUtilities_ThrowOrIgnoreBadComparer_mE23A8103696FA67F874E7DA86625BB3921DB801F((RuntimeObject *)L_4, /*hidden argument*/NULL); IL2CPP_POP_ACTIVE_EXCEPTION(); goto IL_0021; } // end catch (depth: 1) CATCH_0014: { // begin catch(System.Exception) V_0 = (Exception_t *)((Exception_t *)IL2CPP_GET_ACTIVE_EXCEPTION(Exception_t *)); Exception_t * L_5 = V_0; InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB * L_6 = (InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB *)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB_il2cpp_TypeInfo_var))); InvalidOperationException__ctor_m4A65916B1316FBF45ECDF1FF7FAC9E3CA30C112C(L_6, (String_t*)((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral6EDB6C049ED9617FA335A262A29BF30B15221AEA)), (Exception_t *)L_5, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_6, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArraySortHelper_1_Sort_mEDBD802A10E2F9FAC38CEF19CC8C23AF922D0611_RuntimeMethod_var))); } // end catch (depth: 1) IL_0021: { return; } } // System.Int32 System.Collections.Generic.ArraySortHelper`1<UnityEngine.Color>::InternalBinarySearch(T[],System.Int32,System.Int32,T,System.Collections.Generic.IComparer`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t ArraySortHelper_1_InternalBinarySearch_m571ADBDDB0859E1F1724352F1F33E3ADF83DCB77_gshared (ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834* ___array0, int32_t ___index1, int32_t ___length2, Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 ___value3, RuntimeObject* ___comparer4, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; int32_t V_2 = 0; int32_t V_3 = 0; { int32_t L_0 = ___index1; V_0 = (int32_t)L_0; int32_t L_1 = ___index1; int32_t L_2 = ___length2; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_1, (int32_t)L_2)), (int32_t)1)); goto IL_0035; } IL_000a: { int32_t L_3 = V_0; int32_t L_4 = V_1; int32_t L_5 = V_0; V_2 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)((int32_t)((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_4, (int32_t)L_5))>>(int32_t)1)))); RuntimeObject* L_6 = ___comparer4; ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834* L_7 = ___array0; int32_t L_8 = V_2; NullCheck(L_7); int32_t L_9 = L_8; Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 L_10 = (L_7)->GetAt(static_cast<il2cpp_array_size_t>(L_9)); Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 L_11 = ___value3; NullCheck((RuntimeObject*)L_6); int32_t L_12; L_12 = InterfaceFuncInvoker2< int32_t, Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 , Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 >::Invoke(0 /* System.Int32 System.Collections.Generic.IComparer`1<UnityEngine.Color>::Compare(T,T) */, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 3), (RuntimeObject*)L_6, (Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 )L_10, (Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 )L_11); V_3 = (int32_t)L_12; int32_t L_13 = V_3; if (L_13) { goto IL_0027; } } { int32_t L_14 = V_2; return (int32_t)L_14; } IL_0027: { int32_t L_15 = V_3; if ((((int32_t)L_15) >= ((int32_t)0))) { goto IL_0031; } } { int32_t L_16 = V_2; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_16, (int32_t)1)); goto IL_0035; } IL_0031: { int32_t L_17 = V_2; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_17, (int32_t)1)); } IL_0035: { int32_t L_18 = V_0; int32_t L_19 = V_1; if ((((int32_t)L_18) <= ((int32_t)L_19))) { goto IL_000a; } } { int32_t L_20 = V_0; return (int32_t)((~L_20)); } } // System.Void System.Collections.Generic.ArraySortHelper`1<UnityEngine.Color>::SwapIfGreater(T[],System.Comparison`1<T>,System.Int32,System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_SwapIfGreater_m9FA505FDE2621288594338E8C22A3537A6BC7388_gshared (ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834* ___keys0, Comparison_1_tBA50C326C36BBCACB9EEF69FBE15237772260CE5 * ___comparer1, int32_t ___a2, int32_t ___b3, const RuntimeMethod* method) { Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 V_0; memset((&V_0), 0, sizeof(V_0)); { int32_t L_0 = ___a2; int32_t L_1 = ___b3; if ((((int32_t)L_0) == ((int32_t)L_1))) { goto IL_0039; } } { Comparison_1_tBA50C326C36BBCACB9EEF69FBE15237772260CE5 * L_2 = ___comparer1; ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834* L_3 = ___keys0; int32_t L_4 = ___a2; NullCheck(L_3); int32_t L_5 = L_4; Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 L_6 = (L_3)->GetAt(static_cast<il2cpp_array_size_t>(L_5)); ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834* L_7 = ___keys0; int32_t L_8 = ___b3; NullCheck(L_7); int32_t L_9 = L_8; Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 L_10 = (L_7)->GetAt(static_cast<il2cpp_array_size_t>(L_9)); NullCheck((Comparison_1_tBA50C326C36BBCACB9EEF69FBE15237772260CE5 *)L_2); int32_t L_11; L_11 = (( int32_t (*) (Comparison_1_tBA50C326C36BBCACB9EEF69FBE15237772260CE5 *, Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 , Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_tBA50C326C36BBCACB9EEF69FBE15237772260CE5 *)L_2, (Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 )L_6, (Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 )L_10, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_11) <= ((int32_t)0))) { goto IL_0039; } } { ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834* L_12 = ___keys0; int32_t L_13 = ___a2; NullCheck(L_12); int32_t L_14 = L_13; Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 L_15 = (L_12)->GetAt(static_cast<il2cpp_array_size_t>(L_14)); V_0 = (Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 )L_15; ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834* L_16 = ___keys0; int32_t L_17 = ___a2; ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834* L_18 = ___keys0; int32_t L_19 = ___b3; NullCheck(L_18); int32_t L_20 = L_19; Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 L_21 = (L_18)->GetAt(static_cast<il2cpp_array_size_t>(L_20)); NullCheck(L_16); (L_16)->SetAt(static_cast<il2cpp_array_size_t>(L_17), (Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 )L_21); ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834* L_22 = ___keys0; int32_t L_23 = ___b3; Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 L_24 = V_0; NullCheck(L_22); (L_22)->SetAt(static_cast<il2cpp_array_size_t>(L_23), (Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 )L_24); } IL_0039: { return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<UnityEngine.Color>::Swap(T[],System.Int32,System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Swap_mEB50353D6F4E9C050D4C637814C0C0470DA5BD6A_gshared (ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834* ___a0, int32_t ___i1, int32_t ___j2, const RuntimeMethod* method) { Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 V_0; memset((&V_0), 0, sizeof(V_0)); { int32_t L_0 = ___i1; int32_t L_1 = ___j2; if ((((int32_t)L_0) == ((int32_t)L_1))) { goto IL_0022; } } { ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834* L_2 = ___a0; int32_t L_3 = ___i1; NullCheck(L_2); int32_t L_4 = L_3; Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 L_5 = (L_2)->GetAt(static_cast<il2cpp_array_size_t>(L_4)); V_0 = (Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 )L_5; ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834* L_6 = ___a0; int32_t L_7 = ___i1; ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834* L_8 = ___a0; int32_t L_9 = ___j2; NullCheck(L_8); int32_t L_10 = L_9; Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 L_11 = (L_8)->GetAt(static_cast<il2cpp_array_size_t>(L_10)); NullCheck(L_6); (L_6)->SetAt(static_cast<il2cpp_array_size_t>(L_7), (Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 )L_11); ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834* L_12 = ___a0; int32_t L_13 = ___j2; Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 L_14 = V_0; NullCheck(L_12); (L_12)->SetAt(static_cast<il2cpp_array_size_t>(L_13), (Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 )L_14); } IL_0022: { return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<UnityEngine.Color>::IntrospectiveSort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_IntrospectiveSort_mC1242AE01956E80099E82D0D3C86F9D6CE434DB3_gshared (ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834* ___keys0, int32_t ___left1, int32_t ___length2, Comparison_1_tBA50C326C36BBCACB9EEF69FBE15237772260CE5 * ___comparer3, const RuntimeMethod* method) { { int32_t L_0 = ___length2; if ((((int32_t)L_0) >= ((int32_t)2))) { goto IL_0005; } } { return; } IL_0005: { ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834* L_1 = ___keys0; int32_t L_2 = ___left1; int32_t L_3 = ___length2; int32_t L_4 = ___left1; ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834* L_5 = ___keys0; NullCheck(L_5); int32_t L_6; L_6 = IntrospectiveSortUtilities_FloorLog2_m05ECB6CAC7A23087D9EC2C2A4DDCFE12272C3872((int32_t)((int32_t)((int32_t)(((RuntimeArray*)L_5)->max_length))), /*hidden argument*/NULL); Comparison_1_tBA50C326C36BBCACB9EEF69FBE15237772260CE5 * L_7 = ___comparer3; (( void (*) (ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834*, int32_t, int32_t, int32_t, Comparison_1_tBA50C326C36BBCACB9EEF69FBE15237772260CE5 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)->methodPointer)((ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834*)L_1, (int32_t)L_2, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)L_4)), (int32_t)1)), (int32_t)((int32_t)il2cpp_codegen_multiply((int32_t)2, (int32_t)L_6)), (Comparison_1_tBA50C326C36BBCACB9EEF69FBE15237772260CE5 *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)); return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<UnityEngine.Color>::IntroSort(T[],System.Int32,System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_IntroSort_mBC95DEC0F7D3A370A7D7A9B50E2B9B90F74C159D_gshared (ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834* ___keys0, int32_t ___lo1, int32_t ___hi2, int32_t ___depthLimit3, Comparison_1_tBA50C326C36BBCACB9EEF69FBE15237772260CE5 * ___comparer4, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; { goto IL_0086; } IL_0005: { int32_t L_0 = ___hi2; int32_t L_1 = ___lo1; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_0, (int32_t)L_1)), (int32_t)1)); int32_t L_2 = V_0; if ((((int32_t)L_2) > ((int32_t)((int32_t)16)))) { goto IL_0056; } } { int32_t L_3 = V_0; if ((!(((uint32_t)L_3) == ((uint32_t)1)))) { goto IL_0015; } } { return; } IL_0015: { int32_t L_4 = V_0; if ((!(((uint32_t)L_4) == ((uint32_t)2)))) { goto IL_0024; } } { ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834* L_5 = ___keys0; Comparison_1_tBA50C326C36BBCACB9EEF69FBE15237772260CE5 * L_6 = ___comparer4; int32_t L_7 = ___lo1; int32_t L_8 = ___hi2; (( void (*) (ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834*, Comparison_1_tBA50C326C36BBCACB9EEF69FBE15237772260CE5 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834*)L_5, (Comparison_1_tBA50C326C36BBCACB9EEF69FBE15237772260CE5 *)L_6, (int32_t)L_7, (int32_t)L_8, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); return; } IL_0024: { int32_t L_9 = V_0; if ((!(((uint32_t)L_9) == ((uint32_t)3)))) { goto IL_004b; } } { ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834* L_10 = ___keys0; Comparison_1_tBA50C326C36BBCACB9EEF69FBE15237772260CE5 * L_11 = ___comparer4; int32_t L_12 = ___lo1; int32_t L_13 = ___hi2; (( void (*) (ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834*, Comparison_1_tBA50C326C36BBCACB9EEF69FBE15237772260CE5 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834*)L_10, (Comparison_1_tBA50C326C36BBCACB9EEF69FBE15237772260CE5 *)L_11, (int32_t)L_12, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_13, (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834* L_14 = ___keys0; Comparison_1_tBA50C326C36BBCACB9EEF69FBE15237772260CE5 * L_15 = ___comparer4; int32_t L_16 = ___lo1; int32_t L_17 = ___hi2; (( void (*) (ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834*, Comparison_1_tBA50C326C36BBCACB9EEF69FBE15237772260CE5 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834*)L_14, (Comparison_1_tBA50C326C36BBCACB9EEF69FBE15237772260CE5 *)L_15, (int32_t)L_16, (int32_t)L_17, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834* L_18 = ___keys0; Comparison_1_tBA50C326C36BBCACB9EEF69FBE15237772260CE5 * L_19 = ___comparer4; int32_t L_20 = ___hi2; int32_t L_21 = ___hi2; (( void (*) (ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834*, Comparison_1_tBA50C326C36BBCACB9EEF69FBE15237772260CE5 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834*)L_18, (Comparison_1_tBA50C326C36BBCACB9EEF69FBE15237772260CE5 *)L_19, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_20, (int32_t)1)), (int32_t)L_21, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); return; } IL_004b: { ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834* L_22 = ___keys0; int32_t L_23 = ___lo1; int32_t L_24 = ___hi2; Comparison_1_tBA50C326C36BBCACB9EEF69FBE15237772260CE5 * L_25 = ___comparer4; (( void (*) (ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834*, int32_t, int32_t, Comparison_1_tBA50C326C36BBCACB9EEF69FBE15237772260CE5 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 12)->methodPointer)((ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834*)L_22, (int32_t)L_23, (int32_t)L_24, (Comparison_1_tBA50C326C36BBCACB9EEF69FBE15237772260CE5 *)L_25, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 12)); return; } IL_0056: { int32_t L_26 = ___depthLimit3; if (L_26) { goto IL_0064; } } { ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834* L_27 = ___keys0; int32_t L_28 = ___lo1; int32_t L_29 = ___hi2; Comparison_1_tBA50C326C36BBCACB9EEF69FBE15237772260CE5 * L_30 = ___comparer4; (( void (*) (ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834*, int32_t, int32_t, Comparison_1_tBA50C326C36BBCACB9EEF69FBE15237772260CE5 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 13)->methodPointer)((ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834*)L_27, (int32_t)L_28, (int32_t)L_29, (Comparison_1_tBA50C326C36BBCACB9EEF69FBE15237772260CE5 *)L_30, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 13)); return; } IL_0064: { int32_t L_31 = ___depthLimit3; ___depthLimit3 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_31, (int32_t)1)); ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834* L_32 = ___keys0; int32_t L_33 = ___lo1; int32_t L_34 = ___hi2; Comparison_1_tBA50C326C36BBCACB9EEF69FBE15237772260CE5 * L_35 = ___comparer4; int32_t L_36; L_36 = (( int32_t (*) (ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834*, int32_t, int32_t, Comparison_1_tBA50C326C36BBCACB9EEF69FBE15237772260CE5 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 14)->methodPointer)((ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834*)L_32, (int32_t)L_33, (int32_t)L_34, (Comparison_1_tBA50C326C36BBCACB9EEF69FBE15237772260CE5 *)L_35, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 14)); V_1 = (int32_t)L_36; ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834* L_37 = ___keys0; int32_t L_38 = V_1; int32_t L_39 = ___hi2; int32_t L_40 = ___depthLimit3; Comparison_1_tBA50C326C36BBCACB9EEF69FBE15237772260CE5 * L_41 = ___comparer4; (( void (*) (ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834*, int32_t, int32_t, int32_t, Comparison_1_tBA50C326C36BBCACB9EEF69FBE15237772260CE5 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)->methodPointer)((ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834*)L_37, (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_38, (int32_t)1)), (int32_t)L_39, (int32_t)L_40, (Comparison_1_tBA50C326C36BBCACB9EEF69FBE15237772260CE5 *)L_41, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)); int32_t L_42 = V_1; ___hi2 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_42, (int32_t)1)); } IL_0086: { int32_t L_43 = ___hi2; int32_t L_44 = ___lo1; if ((((int32_t)L_43) > ((int32_t)L_44))) { goto IL_0005; } } { return; } } // System.Int32 System.Collections.Generic.ArraySortHelper`1<UnityEngine.Color>::PickPivotAndPartition(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t ArraySortHelper_1_PickPivotAndPartition_mA9816D0A8EA96BAD7836B3716725233F1C774F5D_gshared (ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834* ___keys0, int32_t ___lo1, int32_t ___hi2, Comparison_1_tBA50C326C36BBCACB9EEF69FBE15237772260CE5 * ___comparer3, const RuntimeMethod* method) { int32_t V_0 = 0; Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 V_1; memset((&V_1), 0, sizeof(V_1)); int32_t V_2 = 0; int32_t V_3 = 0; { int32_t L_0 = ___lo1; int32_t L_1 = ___hi2; int32_t L_2 = ___lo1; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_0, (int32_t)((int32_t)((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_1, (int32_t)L_2))/(int32_t)2)))); ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834* L_3 = ___keys0; Comparison_1_tBA50C326C36BBCACB9EEF69FBE15237772260CE5 * L_4 = ___comparer3; int32_t L_5 = ___lo1; int32_t L_6 = V_0; (( void (*) (ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834*, Comparison_1_tBA50C326C36BBCACB9EEF69FBE15237772260CE5 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834*)L_3, (Comparison_1_tBA50C326C36BBCACB9EEF69FBE15237772260CE5 *)L_4, (int32_t)L_5, (int32_t)L_6, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834* L_7 = ___keys0; Comparison_1_tBA50C326C36BBCACB9EEF69FBE15237772260CE5 * L_8 = ___comparer3; int32_t L_9 = ___lo1; int32_t L_10 = ___hi2; (( void (*) (ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834*, Comparison_1_tBA50C326C36BBCACB9EEF69FBE15237772260CE5 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834*)L_7, (Comparison_1_tBA50C326C36BBCACB9EEF69FBE15237772260CE5 *)L_8, (int32_t)L_9, (int32_t)L_10, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834* L_11 = ___keys0; Comparison_1_tBA50C326C36BBCACB9EEF69FBE15237772260CE5 * L_12 = ___comparer3; int32_t L_13 = V_0; int32_t L_14 = ___hi2; (( void (*) (ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834*, Comparison_1_tBA50C326C36BBCACB9EEF69FBE15237772260CE5 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834*)L_11, (Comparison_1_tBA50C326C36BBCACB9EEF69FBE15237772260CE5 *)L_12, (int32_t)L_13, (int32_t)L_14, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834* L_15 = ___keys0; int32_t L_16 = V_0; NullCheck(L_15); int32_t L_17 = L_16; Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 L_18 = (L_15)->GetAt(static_cast<il2cpp_array_size_t>(L_17)); V_1 = (Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 )L_18; ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834* L_19 = ___keys0; int32_t L_20 = V_0; int32_t L_21 = ___hi2; (( void (*) (ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834*)L_19, (int32_t)L_20, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_21, (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); int32_t L_22 = ___lo1; V_2 = (int32_t)L_22; int32_t L_23 = ___hi2; V_3 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_23, (int32_t)1)); goto IL_0073; } IL_003d: { Comparison_1_tBA50C326C36BBCACB9EEF69FBE15237772260CE5 * L_24 = ___comparer3; ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834* L_25 = ___keys0; int32_t L_26 = V_2; int32_t L_27 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_26, (int32_t)1)); V_2 = (int32_t)L_27; NullCheck(L_25); int32_t L_28 = L_27; Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 L_29 = (L_25)->GetAt(static_cast<il2cpp_array_size_t>(L_28)); Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 L_30 = V_1; NullCheck((Comparison_1_tBA50C326C36BBCACB9EEF69FBE15237772260CE5 *)L_24); int32_t L_31; L_31 = (( int32_t (*) (Comparison_1_tBA50C326C36BBCACB9EEF69FBE15237772260CE5 *, Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 , Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_tBA50C326C36BBCACB9EEF69FBE15237772260CE5 *)L_24, (Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 )L_29, (Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 )L_30, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_31) < ((int32_t)0))) { goto IL_003d; } } IL_0052: { Comparison_1_tBA50C326C36BBCACB9EEF69FBE15237772260CE5 * L_32 = ___comparer3; Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 L_33 = V_1; ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834* L_34 = ___keys0; int32_t L_35 = V_3; int32_t L_36 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_35, (int32_t)1)); V_3 = (int32_t)L_36; NullCheck(L_34); int32_t L_37 = L_36; Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 L_38 = (L_34)->GetAt(static_cast<il2cpp_array_size_t>(L_37)); NullCheck((Comparison_1_tBA50C326C36BBCACB9EEF69FBE15237772260CE5 *)L_32); int32_t L_39; L_39 = (( int32_t (*) (Comparison_1_tBA50C326C36BBCACB9EEF69FBE15237772260CE5 *, Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 , Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_tBA50C326C36BBCACB9EEF69FBE15237772260CE5 *)L_32, (Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 )L_33, (Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 )L_38, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_39) < ((int32_t)0))) { goto IL_0052; } } { int32_t L_40 = V_2; int32_t L_41 = V_3; if ((((int32_t)L_40) >= ((int32_t)L_41))) { goto IL_0077; } } { ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834* L_42 = ___keys0; int32_t L_43 = V_2; int32_t L_44 = V_3; (( void (*) (ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834*)L_42, (int32_t)L_43, (int32_t)L_44, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); } IL_0073: { int32_t L_45 = V_2; int32_t L_46 = V_3; if ((((int32_t)L_45) < ((int32_t)L_46))) { goto IL_003d; } } IL_0077: { ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834* L_47 = ___keys0; int32_t L_48 = V_2; int32_t L_49 = ___hi2; (( void (*) (ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834*)L_47, (int32_t)L_48, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_49, (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); int32_t L_50 = V_2; return (int32_t)L_50; } } // System.Void System.Collections.Generic.ArraySortHelper`1<UnityEngine.Color>::Heapsort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Heapsort_m17453A45158FBCEC4F687B1F653E0926B056FD6A_gshared (ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834* ___keys0, int32_t ___lo1, int32_t ___hi2, Comparison_1_tBA50C326C36BBCACB9EEF69FBE15237772260CE5 * ___comparer3, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; int32_t V_2 = 0; { int32_t L_0 = ___hi2; int32_t L_1 = ___lo1; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_0, (int32_t)L_1)), (int32_t)1)); int32_t L_2 = V_0; V_1 = (int32_t)((int32_t)((int32_t)L_2/(int32_t)2)); goto IL_001a; } IL_000c: { ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834* L_3 = ___keys0; int32_t L_4 = V_1; int32_t L_5 = V_0; int32_t L_6 = ___lo1; Comparison_1_tBA50C326C36BBCACB9EEF69FBE15237772260CE5 * L_7 = ___comparer3; (( void (*) (ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834*, int32_t, int32_t, int32_t, Comparison_1_tBA50C326C36BBCACB9EEF69FBE15237772260CE5 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)->methodPointer)((ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834*)L_3, (int32_t)L_4, (int32_t)L_5, (int32_t)L_6, (Comparison_1_tBA50C326C36BBCACB9EEF69FBE15237772260CE5 *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)); int32_t L_8 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_8, (int32_t)1)); } IL_001a: { int32_t L_9 = V_1; if ((((int32_t)L_9) >= ((int32_t)1))) { goto IL_000c; } } { int32_t L_10 = V_0; V_2 = (int32_t)L_10; goto IL_003e; } IL_0022: { ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834* L_11 = ___keys0; int32_t L_12 = ___lo1; int32_t L_13 = ___lo1; int32_t L_14 = V_2; (( void (*) (ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834*)L_11, (int32_t)L_12, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_13, (int32_t)L_14)), (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834* L_15 = ___keys0; int32_t L_16 = V_2; int32_t L_17 = ___lo1; Comparison_1_tBA50C326C36BBCACB9EEF69FBE15237772260CE5 * L_18 = ___comparer3; (( void (*) (ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834*, int32_t, int32_t, int32_t, Comparison_1_tBA50C326C36BBCACB9EEF69FBE15237772260CE5 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)->methodPointer)((ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834*)L_15, (int32_t)1, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_16, (int32_t)1)), (int32_t)L_17, (Comparison_1_tBA50C326C36BBCACB9EEF69FBE15237772260CE5 *)L_18, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)); int32_t L_19 = V_2; V_2 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_19, (int32_t)1)); } IL_003e: { int32_t L_20 = V_2; if ((((int32_t)L_20) > ((int32_t)1))) { goto IL_0022; } } { return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<UnityEngine.Color>::DownHeap(T[],System.Int32,System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_DownHeap_m64DE0457E6947D776E0B56D0E4E9D74A303033AB_gshared (ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834* ___keys0, int32_t ___i1, int32_t ___n2, int32_t ___lo3, Comparison_1_tBA50C326C36BBCACB9EEF69FBE15237772260CE5 * ___comparer4, const RuntimeMethod* method) { Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 V_0; memset((&V_0), 0, sizeof(V_0)); int32_t V_1 = 0; { ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834* L_0 = ___keys0; int32_t L_1 = ___lo3; int32_t L_2 = ___i1; NullCheck(L_0); int32_t L_3 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_1, (int32_t)L_2)), (int32_t)1)); Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 L_4 = (L_0)->GetAt(static_cast<il2cpp_array_size_t>(L_3)); V_0 = (Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 )L_4; goto IL_0067; } IL_000e: { int32_t L_5 = ___i1; V_1 = (int32_t)((int32_t)il2cpp_codegen_multiply((int32_t)2, (int32_t)L_5)); int32_t L_6 = V_1; int32_t L_7 = ___n2; if ((((int32_t)L_6) >= ((int32_t)L_7))) { goto IL_0038; } } { Comparison_1_tBA50C326C36BBCACB9EEF69FBE15237772260CE5 * L_8 = ___comparer4; ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834* L_9 = ___keys0; int32_t L_10 = ___lo3; int32_t L_11 = V_1; NullCheck(L_9); int32_t L_12 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_10, (int32_t)L_11)), (int32_t)1)); Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 L_13 = (L_9)->GetAt(static_cast<il2cpp_array_size_t>(L_12)); ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834* L_14 = ___keys0; int32_t L_15 = ___lo3; int32_t L_16 = V_1; NullCheck(L_14); int32_t L_17 = ((int32_t)il2cpp_codegen_add((int32_t)L_15, (int32_t)L_16)); Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 L_18 = (L_14)->GetAt(static_cast<il2cpp_array_size_t>(L_17)); NullCheck((Comparison_1_tBA50C326C36BBCACB9EEF69FBE15237772260CE5 *)L_8); int32_t L_19; L_19 = (( int32_t (*) (Comparison_1_tBA50C326C36BBCACB9EEF69FBE15237772260CE5 *, Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 , Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_tBA50C326C36BBCACB9EEF69FBE15237772260CE5 *)L_8, (Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 )L_13, (Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 )L_18, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_19) >= ((int32_t)0))) { goto IL_0038; } } { int32_t L_20 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_20, (int32_t)1)); } IL_0038: { Comparison_1_tBA50C326C36BBCACB9EEF69FBE15237772260CE5 * L_21 = ___comparer4; Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 L_22 = V_0; ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834* L_23 = ___keys0; int32_t L_24 = ___lo3; int32_t L_25 = V_1; NullCheck(L_23); int32_t L_26 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_24, (int32_t)L_25)), (int32_t)1)); Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 L_27 = (L_23)->GetAt(static_cast<il2cpp_array_size_t>(L_26)); NullCheck((Comparison_1_tBA50C326C36BBCACB9EEF69FBE15237772260CE5 *)L_21); int32_t L_28; L_28 = (( int32_t (*) (Comparison_1_tBA50C326C36BBCACB9EEF69FBE15237772260CE5 *, Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 , Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_tBA50C326C36BBCACB9EEF69FBE15237772260CE5 *)L_21, (Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 )L_22, (Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 )L_27, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_28) >= ((int32_t)0))) { goto IL_006d; } } { ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834* L_29 = ___keys0; int32_t L_30 = ___lo3; int32_t L_31 = ___i1; ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834* L_32 = ___keys0; int32_t L_33 = ___lo3; int32_t L_34 = V_1; NullCheck(L_32); int32_t L_35 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_33, (int32_t)L_34)), (int32_t)1)); Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 L_36 = (L_32)->GetAt(static_cast<il2cpp_array_size_t>(L_35)); NullCheck(L_29); (L_29)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_30, (int32_t)L_31)), (int32_t)1))), (Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 )L_36); int32_t L_37 = V_1; ___i1 = (int32_t)L_37; } IL_0067: { int32_t L_38 = ___i1; int32_t L_39 = ___n2; if ((((int32_t)L_38) <= ((int32_t)((int32_t)((int32_t)L_39/(int32_t)2))))) { goto IL_000e; } } IL_006d: { ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834* L_40 = ___keys0; int32_t L_41 = ___lo3; int32_t L_42 = ___i1; Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 L_43 = V_0; NullCheck(L_40); (L_40)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_41, (int32_t)L_42)), (int32_t)1))), (Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 )L_43); return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<UnityEngine.Color>::InsertionSort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_InsertionSort_m4A810DE703A3957A3F85674354D5272F33166EAC_gshared (ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834* ___keys0, int32_t ___lo1, int32_t ___hi2, Comparison_1_tBA50C326C36BBCACB9EEF69FBE15237772260CE5 * ___comparer3, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 V_2; memset((&V_2), 0, sizeof(V_2)); { int32_t L_0 = ___lo1; V_0 = (int32_t)L_0; goto IL_0049; } IL_0004: { int32_t L_1 = V_0; V_1 = (int32_t)L_1; ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834* L_2 = ___keys0; int32_t L_3 = V_0; NullCheck(L_2); int32_t L_4 = ((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)1)); Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 L_5 = (L_2)->GetAt(static_cast<il2cpp_array_size_t>(L_4)); V_2 = (Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 )L_5; goto IL_0026; } IL_0012: { ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834* L_6 = ___keys0; int32_t L_7 = V_1; ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834* L_8 = ___keys0; int32_t L_9 = V_1; NullCheck(L_8); int32_t L_10 = L_9; Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 L_11 = (L_8)->GetAt(static_cast<il2cpp_array_size_t>(L_10)); NullCheck(L_6); (L_6)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add((int32_t)L_7, (int32_t)1))), (Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 )L_11); int32_t L_12 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_12, (int32_t)1)); } IL_0026: { int32_t L_13 = V_1; int32_t L_14 = ___lo1; if ((((int32_t)L_13) < ((int32_t)L_14))) { goto IL_003b; } } { Comparison_1_tBA50C326C36BBCACB9EEF69FBE15237772260CE5 * L_15 = ___comparer3; Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 L_16 = V_2; ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834* L_17 = ___keys0; int32_t L_18 = V_1; NullCheck(L_17); int32_t L_19 = L_18; Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 L_20 = (L_17)->GetAt(static_cast<il2cpp_array_size_t>(L_19)); NullCheck((Comparison_1_tBA50C326C36BBCACB9EEF69FBE15237772260CE5 *)L_15); int32_t L_21; L_21 = (( int32_t (*) (Comparison_1_tBA50C326C36BBCACB9EEF69FBE15237772260CE5 *, Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 , Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_tBA50C326C36BBCACB9EEF69FBE15237772260CE5 *)L_15, (Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 )L_16, (Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 )L_20, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_21) < ((int32_t)0))) { goto IL_0012; } } IL_003b: { ColorU5BU5D_t358DD89F511301E663AD9157305B94A2DEFF8834* L_22 = ___keys0; int32_t L_23 = V_1; Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 L_24 = V_2; NullCheck(L_22); (L_22)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add((int32_t)L_23, (int32_t)1))), (Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 )L_24); int32_t L_25 = V_0; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_25, (int32_t)1)); } IL_0049: { int32_t L_26 = V_0; int32_t L_27 = ___hi2; if ((((int32_t)L_26) < ((int32_t)L_27))) { goto IL_0004; } } { return; } } #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Void System.Collections.Generic.ArraySortHelper`1<UnityEngine.Color32>::Sort(T[],System.Int32,System.Int32,System.Collections.Generic.IComparer`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Sort_mD6ED488C7E2AC0AF762D514D66A5E6B6C7B5A56D_gshared (Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2* ___keys0, int32_t ___index1, int32_t ___length2, RuntimeObject* ___comparer3, const RuntimeMethod* method) { Exception_t * V_0 = NULL; il2cpp::utils::ExceptionSupportStack<RuntimeObject*, 1> __active_exceptions; il2cpp::utils::ExceptionSupportStack<int32_t, 2> __leave_targets; IL_0000: try { // begin try (depth: 1) { RuntimeObject* L_0 = ___comparer3; if (L_0) { goto IL_000a; } } IL_0003: { Comparer_1_t06A148CCE1860B6B5057FF01C119673090F064F5 * L_1; L_1 = (( Comparer_1_t06A148CCE1860B6B5057FF01C119673090F064F5 * (*) (const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)->methodPointer)(/*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)); ___comparer3 = (RuntimeObject*)L_1; } IL_000a: { Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2* L_2 = ___keys0; int32_t L_3 = ___index1; int32_t L_4 = ___length2; RuntimeObject* L_5 = ___comparer3; RuntimeObject* L_6 = (RuntimeObject*)L_5; Comparison_1_tF8CF11AB1893EC96EC5344F386B07B3C598EFFBF * L_7 = (Comparison_1_tF8CF11AB1893EC96EC5344F386B07B3C598EFFBF *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 4)); (( void (*) (Comparison_1_tF8CF11AB1893EC96EC5344F386B07B3C598EFFBF *, RuntimeObject *, intptr_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 5)->methodPointer)(L_7, (RuntimeObject *)L_6, (intptr_t)((intptr_t)GetInterfaceMethodInfo(L_6, 0, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 3))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 5)); (( void (*) (Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2*, int32_t, int32_t, Comparison_1_tF8CF11AB1893EC96EC5344F386B07B3C598EFFBF *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)->methodPointer)((Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2*)L_2, (int32_t)L_3, (int32_t)L_4, (Comparison_1_tF8CF11AB1893EC96EC5344F386B07B3C598EFFBF *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)); goto IL_0037; } } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&IndexOutOfRangeException_tDC9EF7A0346CE39E54DA1083F07BE6DFC3CE2EDD_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_0021; } if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&Exception_t_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_002a; } throw e; } CATCH_0021: { // begin catch(System.IndexOutOfRangeException) RuntimeObject* L_8 = ___comparer3; IntrospectiveSortUtilities_ThrowOrIgnoreBadComparer_mE23A8103696FA67F874E7DA86625BB3921DB801F((RuntimeObject *)L_8, /*hidden argument*/NULL); IL2CPP_POP_ACTIVE_EXCEPTION(); goto IL_0037; } // end catch (depth: 1) CATCH_002a: { // begin catch(System.Exception) V_0 = (Exception_t *)((Exception_t *)IL2CPP_GET_ACTIVE_EXCEPTION(Exception_t *)); Exception_t * L_9 = V_0; InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB * L_10 = (InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB *)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB_il2cpp_TypeInfo_var))); InvalidOperationException__ctor_m4A65916B1316FBF45ECDF1FF7FAC9E3CA30C112C(L_10, (String_t*)((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral6EDB6C049ED9617FA335A262A29BF30B15221AEA)), (Exception_t *)L_9, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_10, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArraySortHelper_1_Sort_mD6ED488C7E2AC0AF762D514D66A5E6B6C7B5A56D_RuntimeMethod_var))); } // end catch (depth: 1) IL_0037: { return; } } // System.Int32 System.Collections.Generic.ArraySortHelper`1<UnityEngine.Color32>::BinarySearch(T[],System.Int32,System.Int32,T,System.Collections.Generic.IComparer`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t ArraySortHelper_1_BinarySearch_m51D4FF2F18E519ABF889731DA1576CBCB09A3092_gshared (Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2* ___array0, int32_t ___index1, int32_t ___length2, Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D ___value3, RuntimeObject* ___comparer4, const RuntimeMethod* method) { int32_t V_0 = 0; Exception_t * V_1 = NULL; il2cpp::utils::ExceptionSupportStack<RuntimeObject*, 1> __active_exceptions; il2cpp::utils::ExceptionSupportStack<int32_t, 1> __leave_targets; IL_0000: try { // begin try (depth: 1) { RuntimeObject* L_0 = ___comparer4; if (L_0) { goto IL_000b; } } IL_0004: { Comparer_1_t06A148CCE1860B6B5057FF01C119673090F064F5 * L_1; L_1 = (( Comparer_1_t06A148CCE1860B6B5057FF01C119673090F064F5 * (*) (const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)->methodPointer)(/*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)); ___comparer4 = (RuntimeObject*)L_1; } IL_000b: { Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2* L_2 = ___array0; int32_t L_3 = ___index1; int32_t L_4 = ___length2; Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D L_5 = ___value3; RuntimeObject* L_6 = ___comparer4; int32_t L_7; L_7 = (( int32_t (*) (Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2*, int32_t, int32_t, Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D , RuntimeObject*, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 8)->methodPointer)((Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2*)L_2, (int32_t)L_3, (int32_t)L_4, (Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D )L_5, (RuntimeObject*)L_6, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 8)); V_0 = (int32_t)L_7; goto IL_0026; } } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&Exception_t_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_0019; } throw e; } CATCH_0019: { // begin catch(System.Exception) V_1 = (Exception_t *)((Exception_t *)IL2CPP_GET_ACTIVE_EXCEPTION(Exception_t *)); Exception_t * L_8 = V_1; InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB * L_9 = (InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB *)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB_il2cpp_TypeInfo_var))); InvalidOperationException__ctor_m4A65916B1316FBF45ECDF1FF7FAC9E3CA30C112C(L_9, (String_t*)((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral6EDB6C049ED9617FA335A262A29BF30B15221AEA)), (Exception_t *)L_8, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_9, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArraySortHelper_1_BinarySearch_m51D4FF2F18E519ABF889731DA1576CBCB09A3092_RuntimeMethod_var))); } // end catch (depth: 1) IL_0026: { int32_t L_10 = V_0; return (int32_t)L_10; } } // System.Void System.Collections.Generic.ArraySortHelper`1<UnityEngine.Color32>::Sort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Sort_m1E9184F32D901A2BFF6781EA8E1FBBF041632595_gshared (Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2* ___keys0, int32_t ___index1, int32_t ___length2, Comparison_1_tF8CF11AB1893EC96EC5344F386B07B3C598EFFBF * ___comparer3, const RuntimeMethod* method) { Exception_t * V_0 = NULL; il2cpp::utils::ExceptionSupportStack<RuntimeObject*, 1> __active_exceptions; il2cpp::utils::ExceptionSupportStack<int32_t, 2> __leave_targets; IL_0000: try { // begin try (depth: 1) Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2* L_0 = ___keys0; int32_t L_1 = ___index1; int32_t L_2 = ___length2; Comparison_1_tF8CF11AB1893EC96EC5344F386B07B3C598EFFBF * L_3 = ___comparer3; (( void (*) (Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2*, int32_t, int32_t, Comparison_1_tF8CF11AB1893EC96EC5344F386B07B3C598EFFBF *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)->methodPointer)((Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2*)L_0, (int32_t)L_1, (int32_t)L_2, (Comparison_1_tF8CF11AB1893EC96EC5344F386B07B3C598EFFBF *)L_3, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)); goto IL_0021; } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&IndexOutOfRangeException_tDC9EF7A0346CE39E54DA1083F07BE6DFC3CE2EDD_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_000b; } if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&Exception_t_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_0014; } throw e; } CATCH_000b: { // begin catch(System.IndexOutOfRangeException) Comparison_1_tF8CF11AB1893EC96EC5344F386B07B3C598EFFBF * L_4 = ___comparer3; IntrospectiveSortUtilities_ThrowOrIgnoreBadComparer_mE23A8103696FA67F874E7DA86625BB3921DB801F((RuntimeObject *)L_4, /*hidden argument*/NULL); IL2CPP_POP_ACTIVE_EXCEPTION(); goto IL_0021; } // end catch (depth: 1) CATCH_0014: { // begin catch(System.Exception) V_0 = (Exception_t *)((Exception_t *)IL2CPP_GET_ACTIVE_EXCEPTION(Exception_t *)); Exception_t * L_5 = V_0; InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB * L_6 = (InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB *)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB_il2cpp_TypeInfo_var))); InvalidOperationException__ctor_m4A65916B1316FBF45ECDF1FF7FAC9E3CA30C112C(L_6, (String_t*)((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral6EDB6C049ED9617FA335A262A29BF30B15221AEA)), (Exception_t *)L_5, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_6, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArraySortHelper_1_Sort_m1E9184F32D901A2BFF6781EA8E1FBBF041632595_RuntimeMethod_var))); } // end catch (depth: 1) IL_0021: { return; } } // System.Int32 System.Collections.Generic.ArraySortHelper`1<UnityEngine.Color32>::InternalBinarySearch(T[],System.Int32,System.Int32,T,System.Collections.Generic.IComparer`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t ArraySortHelper_1_InternalBinarySearch_mF7988722A92DD41A92FB997E4D3B9F938194ABD3_gshared (Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2* ___array0, int32_t ___index1, int32_t ___length2, Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D ___value3, RuntimeObject* ___comparer4, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; int32_t V_2 = 0; int32_t V_3 = 0; { int32_t L_0 = ___index1; V_0 = (int32_t)L_0; int32_t L_1 = ___index1; int32_t L_2 = ___length2; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_1, (int32_t)L_2)), (int32_t)1)); goto IL_0035; } IL_000a: { int32_t L_3 = V_0; int32_t L_4 = V_1; int32_t L_5 = V_0; V_2 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)((int32_t)((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_4, (int32_t)L_5))>>(int32_t)1)))); RuntimeObject* L_6 = ___comparer4; Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2* L_7 = ___array0; int32_t L_8 = V_2; NullCheck(L_7); int32_t L_9 = L_8; Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D L_10 = (L_7)->GetAt(static_cast<il2cpp_array_size_t>(L_9)); Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D L_11 = ___value3; NullCheck((RuntimeObject*)L_6); int32_t L_12; L_12 = InterfaceFuncInvoker2< int32_t, Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D , Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D >::Invoke(0 /* System.Int32 System.Collections.Generic.IComparer`1<UnityEngine.Color32>::Compare(T,T) */, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 3), (RuntimeObject*)L_6, (Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D )L_10, (Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D )L_11); V_3 = (int32_t)L_12; int32_t L_13 = V_3; if (L_13) { goto IL_0027; } } { int32_t L_14 = V_2; return (int32_t)L_14; } IL_0027: { int32_t L_15 = V_3; if ((((int32_t)L_15) >= ((int32_t)0))) { goto IL_0031; } } { int32_t L_16 = V_2; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_16, (int32_t)1)); goto IL_0035; } IL_0031: { int32_t L_17 = V_2; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_17, (int32_t)1)); } IL_0035: { int32_t L_18 = V_0; int32_t L_19 = V_1; if ((((int32_t)L_18) <= ((int32_t)L_19))) { goto IL_000a; } } { int32_t L_20 = V_0; return (int32_t)((~L_20)); } } // System.Void System.Collections.Generic.ArraySortHelper`1<UnityEngine.Color32>::SwapIfGreater(T[],System.Comparison`1<T>,System.Int32,System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_SwapIfGreater_m73C01EC4BC7BFEF887C8B53369E01DF9F7C670C3_gshared (Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2* ___keys0, Comparison_1_tF8CF11AB1893EC96EC5344F386B07B3C598EFFBF * ___comparer1, int32_t ___a2, int32_t ___b3, const RuntimeMethod* method) { Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D V_0; memset((&V_0), 0, sizeof(V_0)); { int32_t L_0 = ___a2; int32_t L_1 = ___b3; if ((((int32_t)L_0) == ((int32_t)L_1))) { goto IL_0039; } } { Comparison_1_tF8CF11AB1893EC96EC5344F386B07B3C598EFFBF * L_2 = ___comparer1; Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2* L_3 = ___keys0; int32_t L_4 = ___a2; NullCheck(L_3); int32_t L_5 = L_4; Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D L_6 = (L_3)->GetAt(static_cast<il2cpp_array_size_t>(L_5)); Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2* L_7 = ___keys0; int32_t L_8 = ___b3; NullCheck(L_7); int32_t L_9 = L_8; Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D L_10 = (L_7)->GetAt(static_cast<il2cpp_array_size_t>(L_9)); NullCheck((Comparison_1_tF8CF11AB1893EC96EC5344F386B07B3C598EFFBF *)L_2); int32_t L_11; L_11 = (( int32_t (*) (Comparison_1_tF8CF11AB1893EC96EC5344F386B07B3C598EFFBF *, Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D , Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_tF8CF11AB1893EC96EC5344F386B07B3C598EFFBF *)L_2, (Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D )L_6, (Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D )L_10, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_11) <= ((int32_t)0))) { goto IL_0039; } } { Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2* L_12 = ___keys0; int32_t L_13 = ___a2; NullCheck(L_12); int32_t L_14 = L_13; Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D L_15 = (L_12)->GetAt(static_cast<il2cpp_array_size_t>(L_14)); V_0 = (Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D )L_15; Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2* L_16 = ___keys0; int32_t L_17 = ___a2; Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2* L_18 = ___keys0; int32_t L_19 = ___b3; NullCheck(L_18); int32_t L_20 = L_19; Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D L_21 = (L_18)->GetAt(static_cast<il2cpp_array_size_t>(L_20)); NullCheck(L_16); (L_16)->SetAt(static_cast<il2cpp_array_size_t>(L_17), (Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D )L_21); Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2* L_22 = ___keys0; int32_t L_23 = ___b3; Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D L_24 = V_0; NullCheck(L_22); (L_22)->SetAt(static_cast<il2cpp_array_size_t>(L_23), (Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D )L_24); } IL_0039: { return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<UnityEngine.Color32>::Swap(T[],System.Int32,System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Swap_mFD37664F819E00495953283D64EB526550BF8828_gshared (Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2* ___a0, int32_t ___i1, int32_t ___j2, const RuntimeMethod* method) { Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D V_0; memset((&V_0), 0, sizeof(V_0)); { int32_t L_0 = ___i1; int32_t L_1 = ___j2; if ((((int32_t)L_0) == ((int32_t)L_1))) { goto IL_0022; } } { Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2* L_2 = ___a0; int32_t L_3 = ___i1; NullCheck(L_2); int32_t L_4 = L_3; Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D L_5 = (L_2)->GetAt(static_cast<il2cpp_array_size_t>(L_4)); V_0 = (Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D )L_5; Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2* L_6 = ___a0; int32_t L_7 = ___i1; Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2* L_8 = ___a0; int32_t L_9 = ___j2; NullCheck(L_8); int32_t L_10 = L_9; Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D L_11 = (L_8)->GetAt(static_cast<il2cpp_array_size_t>(L_10)); NullCheck(L_6); (L_6)->SetAt(static_cast<il2cpp_array_size_t>(L_7), (Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D )L_11); Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2* L_12 = ___a0; int32_t L_13 = ___j2; Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D L_14 = V_0; NullCheck(L_12); (L_12)->SetAt(static_cast<il2cpp_array_size_t>(L_13), (Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D )L_14); } IL_0022: { return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<UnityEngine.Color32>::IntrospectiveSort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_IntrospectiveSort_mDD5051280EFC85BDD8DFFD2C5CE1DB30B5C8445D_gshared (Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2* ___keys0, int32_t ___left1, int32_t ___length2, Comparison_1_tF8CF11AB1893EC96EC5344F386B07B3C598EFFBF * ___comparer3, const RuntimeMethod* method) { { int32_t L_0 = ___length2; if ((((int32_t)L_0) >= ((int32_t)2))) { goto IL_0005; } } { return; } IL_0005: { Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2* L_1 = ___keys0; int32_t L_2 = ___left1; int32_t L_3 = ___length2; int32_t L_4 = ___left1; Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2* L_5 = ___keys0; NullCheck(L_5); int32_t L_6; L_6 = IntrospectiveSortUtilities_FloorLog2_m05ECB6CAC7A23087D9EC2C2A4DDCFE12272C3872((int32_t)((int32_t)((int32_t)(((RuntimeArray*)L_5)->max_length))), /*hidden argument*/NULL); Comparison_1_tF8CF11AB1893EC96EC5344F386B07B3C598EFFBF * L_7 = ___comparer3; (( void (*) (Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2*, int32_t, int32_t, int32_t, Comparison_1_tF8CF11AB1893EC96EC5344F386B07B3C598EFFBF *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)->methodPointer)((Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2*)L_1, (int32_t)L_2, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)L_4)), (int32_t)1)), (int32_t)((int32_t)il2cpp_codegen_multiply((int32_t)2, (int32_t)L_6)), (Comparison_1_tF8CF11AB1893EC96EC5344F386B07B3C598EFFBF *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)); return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<UnityEngine.Color32>::IntroSort(T[],System.Int32,System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_IntroSort_mB5D061CAB0B88C50557D8A4E6C0070E64164228C_gshared (Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2* ___keys0, int32_t ___lo1, int32_t ___hi2, int32_t ___depthLimit3, Comparison_1_tF8CF11AB1893EC96EC5344F386B07B3C598EFFBF * ___comparer4, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; { goto IL_0086; } IL_0005: { int32_t L_0 = ___hi2; int32_t L_1 = ___lo1; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_0, (int32_t)L_1)), (int32_t)1)); int32_t L_2 = V_0; if ((((int32_t)L_2) > ((int32_t)((int32_t)16)))) { goto IL_0056; } } { int32_t L_3 = V_0; if ((!(((uint32_t)L_3) == ((uint32_t)1)))) { goto IL_0015; } } { return; } IL_0015: { int32_t L_4 = V_0; if ((!(((uint32_t)L_4) == ((uint32_t)2)))) { goto IL_0024; } } { Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2* L_5 = ___keys0; Comparison_1_tF8CF11AB1893EC96EC5344F386B07B3C598EFFBF * L_6 = ___comparer4; int32_t L_7 = ___lo1; int32_t L_8 = ___hi2; (( void (*) (Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2*, Comparison_1_tF8CF11AB1893EC96EC5344F386B07B3C598EFFBF *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2*)L_5, (Comparison_1_tF8CF11AB1893EC96EC5344F386B07B3C598EFFBF *)L_6, (int32_t)L_7, (int32_t)L_8, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); return; } IL_0024: { int32_t L_9 = V_0; if ((!(((uint32_t)L_9) == ((uint32_t)3)))) { goto IL_004b; } } { Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2* L_10 = ___keys0; Comparison_1_tF8CF11AB1893EC96EC5344F386B07B3C598EFFBF * L_11 = ___comparer4; int32_t L_12 = ___lo1; int32_t L_13 = ___hi2; (( void (*) (Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2*, Comparison_1_tF8CF11AB1893EC96EC5344F386B07B3C598EFFBF *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2*)L_10, (Comparison_1_tF8CF11AB1893EC96EC5344F386B07B3C598EFFBF *)L_11, (int32_t)L_12, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_13, (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2* L_14 = ___keys0; Comparison_1_tF8CF11AB1893EC96EC5344F386B07B3C598EFFBF * L_15 = ___comparer4; int32_t L_16 = ___lo1; int32_t L_17 = ___hi2; (( void (*) (Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2*, Comparison_1_tF8CF11AB1893EC96EC5344F386B07B3C598EFFBF *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2*)L_14, (Comparison_1_tF8CF11AB1893EC96EC5344F386B07B3C598EFFBF *)L_15, (int32_t)L_16, (int32_t)L_17, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2* L_18 = ___keys0; Comparison_1_tF8CF11AB1893EC96EC5344F386B07B3C598EFFBF * L_19 = ___comparer4; int32_t L_20 = ___hi2; int32_t L_21 = ___hi2; (( void (*) (Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2*, Comparison_1_tF8CF11AB1893EC96EC5344F386B07B3C598EFFBF *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2*)L_18, (Comparison_1_tF8CF11AB1893EC96EC5344F386B07B3C598EFFBF *)L_19, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_20, (int32_t)1)), (int32_t)L_21, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); return; } IL_004b: { Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2* L_22 = ___keys0; int32_t L_23 = ___lo1; int32_t L_24 = ___hi2; Comparison_1_tF8CF11AB1893EC96EC5344F386B07B3C598EFFBF * L_25 = ___comparer4; (( void (*) (Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2*, int32_t, int32_t, Comparison_1_tF8CF11AB1893EC96EC5344F386B07B3C598EFFBF *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 12)->methodPointer)((Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2*)L_22, (int32_t)L_23, (int32_t)L_24, (Comparison_1_tF8CF11AB1893EC96EC5344F386B07B3C598EFFBF *)L_25, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 12)); return; } IL_0056: { int32_t L_26 = ___depthLimit3; if (L_26) { goto IL_0064; } } { Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2* L_27 = ___keys0; int32_t L_28 = ___lo1; int32_t L_29 = ___hi2; Comparison_1_tF8CF11AB1893EC96EC5344F386B07B3C598EFFBF * L_30 = ___comparer4; (( void (*) (Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2*, int32_t, int32_t, Comparison_1_tF8CF11AB1893EC96EC5344F386B07B3C598EFFBF *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 13)->methodPointer)((Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2*)L_27, (int32_t)L_28, (int32_t)L_29, (Comparison_1_tF8CF11AB1893EC96EC5344F386B07B3C598EFFBF *)L_30, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 13)); return; } IL_0064: { int32_t L_31 = ___depthLimit3; ___depthLimit3 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_31, (int32_t)1)); Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2* L_32 = ___keys0; int32_t L_33 = ___lo1; int32_t L_34 = ___hi2; Comparison_1_tF8CF11AB1893EC96EC5344F386B07B3C598EFFBF * L_35 = ___comparer4; int32_t L_36; L_36 = (( int32_t (*) (Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2*, int32_t, int32_t, Comparison_1_tF8CF11AB1893EC96EC5344F386B07B3C598EFFBF *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 14)->methodPointer)((Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2*)L_32, (int32_t)L_33, (int32_t)L_34, (Comparison_1_tF8CF11AB1893EC96EC5344F386B07B3C598EFFBF *)L_35, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 14)); V_1 = (int32_t)L_36; Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2* L_37 = ___keys0; int32_t L_38 = V_1; int32_t L_39 = ___hi2; int32_t L_40 = ___depthLimit3; Comparison_1_tF8CF11AB1893EC96EC5344F386B07B3C598EFFBF * L_41 = ___comparer4; (( void (*) (Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2*, int32_t, int32_t, int32_t, Comparison_1_tF8CF11AB1893EC96EC5344F386B07B3C598EFFBF *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)->methodPointer)((Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2*)L_37, (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_38, (int32_t)1)), (int32_t)L_39, (int32_t)L_40, (Comparison_1_tF8CF11AB1893EC96EC5344F386B07B3C598EFFBF *)L_41, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)); int32_t L_42 = V_1; ___hi2 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_42, (int32_t)1)); } IL_0086: { int32_t L_43 = ___hi2; int32_t L_44 = ___lo1; if ((((int32_t)L_43) > ((int32_t)L_44))) { goto IL_0005; } } { return; } } // System.Int32 System.Collections.Generic.ArraySortHelper`1<UnityEngine.Color32>::PickPivotAndPartition(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t ArraySortHelper_1_PickPivotAndPartition_m9421E2D9354FFA209F38C2B9524D3D6FF610704B_gshared (Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2* ___keys0, int32_t ___lo1, int32_t ___hi2, Comparison_1_tF8CF11AB1893EC96EC5344F386B07B3C598EFFBF * ___comparer3, const RuntimeMethod* method) { int32_t V_0 = 0; Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D V_1; memset((&V_1), 0, sizeof(V_1)); int32_t V_2 = 0; int32_t V_3 = 0; { int32_t L_0 = ___lo1; int32_t L_1 = ___hi2; int32_t L_2 = ___lo1; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_0, (int32_t)((int32_t)((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_1, (int32_t)L_2))/(int32_t)2)))); Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2* L_3 = ___keys0; Comparison_1_tF8CF11AB1893EC96EC5344F386B07B3C598EFFBF * L_4 = ___comparer3; int32_t L_5 = ___lo1; int32_t L_6 = V_0; (( void (*) (Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2*, Comparison_1_tF8CF11AB1893EC96EC5344F386B07B3C598EFFBF *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2*)L_3, (Comparison_1_tF8CF11AB1893EC96EC5344F386B07B3C598EFFBF *)L_4, (int32_t)L_5, (int32_t)L_6, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2* L_7 = ___keys0; Comparison_1_tF8CF11AB1893EC96EC5344F386B07B3C598EFFBF * L_8 = ___comparer3; int32_t L_9 = ___lo1; int32_t L_10 = ___hi2; (( void (*) (Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2*, Comparison_1_tF8CF11AB1893EC96EC5344F386B07B3C598EFFBF *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2*)L_7, (Comparison_1_tF8CF11AB1893EC96EC5344F386B07B3C598EFFBF *)L_8, (int32_t)L_9, (int32_t)L_10, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2* L_11 = ___keys0; Comparison_1_tF8CF11AB1893EC96EC5344F386B07B3C598EFFBF * L_12 = ___comparer3; int32_t L_13 = V_0; int32_t L_14 = ___hi2; (( void (*) (Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2*, Comparison_1_tF8CF11AB1893EC96EC5344F386B07B3C598EFFBF *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2*)L_11, (Comparison_1_tF8CF11AB1893EC96EC5344F386B07B3C598EFFBF *)L_12, (int32_t)L_13, (int32_t)L_14, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2* L_15 = ___keys0; int32_t L_16 = V_0; NullCheck(L_15); int32_t L_17 = L_16; Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D L_18 = (L_15)->GetAt(static_cast<il2cpp_array_size_t>(L_17)); V_1 = (Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D )L_18; Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2* L_19 = ___keys0; int32_t L_20 = V_0; int32_t L_21 = ___hi2; (( void (*) (Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2*)L_19, (int32_t)L_20, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_21, (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); int32_t L_22 = ___lo1; V_2 = (int32_t)L_22; int32_t L_23 = ___hi2; V_3 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_23, (int32_t)1)); goto IL_0073; } IL_003d: { Comparison_1_tF8CF11AB1893EC96EC5344F386B07B3C598EFFBF * L_24 = ___comparer3; Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2* L_25 = ___keys0; int32_t L_26 = V_2; int32_t L_27 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_26, (int32_t)1)); V_2 = (int32_t)L_27; NullCheck(L_25); int32_t L_28 = L_27; Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D L_29 = (L_25)->GetAt(static_cast<il2cpp_array_size_t>(L_28)); Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D L_30 = V_1; NullCheck((Comparison_1_tF8CF11AB1893EC96EC5344F386B07B3C598EFFBF *)L_24); int32_t L_31; L_31 = (( int32_t (*) (Comparison_1_tF8CF11AB1893EC96EC5344F386B07B3C598EFFBF *, Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D , Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_tF8CF11AB1893EC96EC5344F386B07B3C598EFFBF *)L_24, (Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D )L_29, (Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D )L_30, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_31) < ((int32_t)0))) { goto IL_003d; } } IL_0052: { Comparison_1_tF8CF11AB1893EC96EC5344F386B07B3C598EFFBF * L_32 = ___comparer3; Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D L_33 = V_1; Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2* L_34 = ___keys0; int32_t L_35 = V_3; int32_t L_36 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_35, (int32_t)1)); V_3 = (int32_t)L_36; NullCheck(L_34); int32_t L_37 = L_36; Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D L_38 = (L_34)->GetAt(static_cast<il2cpp_array_size_t>(L_37)); NullCheck((Comparison_1_tF8CF11AB1893EC96EC5344F386B07B3C598EFFBF *)L_32); int32_t L_39; L_39 = (( int32_t (*) (Comparison_1_tF8CF11AB1893EC96EC5344F386B07B3C598EFFBF *, Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D , Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_tF8CF11AB1893EC96EC5344F386B07B3C598EFFBF *)L_32, (Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D )L_33, (Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D )L_38, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_39) < ((int32_t)0))) { goto IL_0052; } } { int32_t L_40 = V_2; int32_t L_41 = V_3; if ((((int32_t)L_40) >= ((int32_t)L_41))) { goto IL_0077; } } { Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2* L_42 = ___keys0; int32_t L_43 = V_2; int32_t L_44 = V_3; (( void (*) (Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2*)L_42, (int32_t)L_43, (int32_t)L_44, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); } IL_0073: { int32_t L_45 = V_2; int32_t L_46 = V_3; if ((((int32_t)L_45) < ((int32_t)L_46))) { goto IL_003d; } } IL_0077: { Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2* L_47 = ___keys0; int32_t L_48 = V_2; int32_t L_49 = ___hi2; (( void (*) (Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2*)L_47, (int32_t)L_48, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_49, (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); int32_t L_50 = V_2; return (int32_t)L_50; } } // System.Void System.Collections.Generic.ArraySortHelper`1<UnityEngine.Color32>::Heapsort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Heapsort_m7CF8E3C8E54356CA115815730DBF791EE156ED61_gshared (Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2* ___keys0, int32_t ___lo1, int32_t ___hi2, Comparison_1_tF8CF11AB1893EC96EC5344F386B07B3C598EFFBF * ___comparer3, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; int32_t V_2 = 0; { int32_t L_0 = ___hi2; int32_t L_1 = ___lo1; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_0, (int32_t)L_1)), (int32_t)1)); int32_t L_2 = V_0; V_1 = (int32_t)((int32_t)((int32_t)L_2/(int32_t)2)); goto IL_001a; } IL_000c: { Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2* L_3 = ___keys0; int32_t L_4 = V_1; int32_t L_5 = V_0; int32_t L_6 = ___lo1; Comparison_1_tF8CF11AB1893EC96EC5344F386B07B3C598EFFBF * L_7 = ___comparer3; (( void (*) (Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2*, int32_t, int32_t, int32_t, Comparison_1_tF8CF11AB1893EC96EC5344F386B07B3C598EFFBF *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)->methodPointer)((Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2*)L_3, (int32_t)L_4, (int32_t)L_5, (int32_t)L_6, (Comparison_1_tF8CF11AB1893EC96EC5344F386B07B3C598EFFBF *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)); int32_t L_8 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_8, (int32_t)1)); } IL_001a: { int32_t L_9 = V_1; if ((((int32_t)L_9) >= ((int32_t)1))) { goto IL_000c; } } { int32_t L_10 = V_0; V_2 = (int32_t)L_10; goto IL_003e; } IL_0022: { Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2* L_11 = ___keys0; int32_t L_12 = ___lo1; int32_t L_13 = ___lo1; int32_t L_14 = V_2; (( void (*) (Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2*)L_11, (int32_t)L_12, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_13, (int32_t)L_14)), (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2* L_15 = ___keys0; int32_t L_16 = V_2; int32_t L_17 = ___lo1; Comparison_1_tF8CF11AB1893EC96EC5344F386B07B3C598EFFBF * L_18 = ___comparer3; (( void (*) (Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2*, int32_t, int32_t, int32_t, Comparison_1_tF8CF11AB1893EC96EC5344F386B07B3C598EFFBF *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)->methodPointer)((Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2*)L_15, (int32_t)1, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_16, (int32_t)1)), (int32_t)L_17, (Comparison_1_tF8CF11AB1893EC96EC5344F386B07B3C598EFFBF *)L_18, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)); int32_t L_19 = V_2; V_2 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_19, (int32_t)1)); } IL_003e: { int32_t L_20 = V_2; if ((((int32_t)L_20) > ((int32_t)1))) { goto IL_0022; } } { return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<UnityEngine.Color32>::DownHeap(T[],System.Int32,System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_DownHeap_mF67FBCAE401DC39BC1F5A483587FD53BE0070093_gshared (Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2* ___keys0, int32_t ___i1, int32_t ___n2, int32_t ___lo3, Comparison_1_tF8CF11AB1893EC96EC5344F386B07B3C598EFFBF * ___comparer4, const RuntimeMethod* method) { Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D V_0; memset((&V_0), 0, sizeof(V_0)); int32_t V_1 = 0; { Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2* L_0 = ___keys0; int32_t L_1 = ___lo3; int32_t L_2 = ___i1; NullCheck(L_0); int32_t L_3 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_1, (int32_t)L_2)), (int32_t)1)); Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D L_4 = (L_0)->GetAt(static_cast<il2cpp_array_size_t>(L_3)); V_0 = (Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D )L_4; goto IL_0067; } IL_000e: { int32_t L_5 = ___i1; V_1 = (int32_t)((int32_t)il2cpp_codegen_multiply((int32_t)2, (int32_t)L_5)); int32_t L_6 = V_1; int32_t L_7 = ___n2; if ((((int32_t)L_6) >= ((int32_t)L_7))) { goto IL_0038; } } { Comparison_1_tF8CF11AB1893EC96EC5344F386B07B3C598EFFBF * L_8 = ___comparer4; Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2* L_9 = ___keys0; int32_t L_10 = ___lo3; int32_t L_11 = V_1; NullCheck(L_9); int32_t L_12 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_10, (int32_t)L_11)), (int32_t)1)); Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D L_13 = (L_9)->GetAt(static_cast<il2cpp_array_size_t>(L_12)); Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2* L_14 = ___keys0; int32_t L_15 = ___lo3; int32_t L_16 = V_1; NullCheck(L_14); int32_t L_17 = ((int32_t)il2cpp_codegen_add((int32_t)L_15, (int32_t)L_16)); Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D L_18 = (L_14)->GetAt(static_cast<il2cpp_array_size_t>(L_17)); NullCheck((Comparison_1_tF8CF11AB1893EC96EC5344F386B07B3C598EFFBF *)L_8); int32_t L_19; L_19 = (( int32_t (*) (Comparison_1_tF8CF11AB1893EC96EC5344F386B07B3C598EFFBF *, Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D , Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_tF8CF11AB1893EC96EC5344F386B07B3C598EFFBF *)L_8, (Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D )L_13, (Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D )L_18, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_19) >= ((int32_t)0))) { goto IL_0038; } } { int32_t L_20 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_20, (int32_t)1)); } IL_0038: { Comparison_1_tF8CF11AB1893EC96EC5344F386B07B3C598EFFBF * L_21 = ___comparer4; Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D L_22 = V_0; Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2* L_23 = ___keys0; int32_t L_24 = ___lo3; int32_t L_25 = V_1; NullCheck(L_23); int32_t L_26 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_24, (int32_t)L_25)), (int32_t)1)); Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D L_27 = (L_23)->GetAt(static_cast<il2cpp_array_size_t>(L_26)); NullCheck((Comparison_1_tF8CF11AB1893EC96EC5344F386B07B3C598EFFBF *)L_21); int32_t L_28; L_28 = (( int32_t (*) (Comparison_1_tF8CF11AB1893EC96EC5344F386B07B3C598EFFBF *, Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D , Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_tF8CF11AB1893EC96EC5344F386B07B3C598EFFBF *)L_21, (Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D )L_22, (Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D )L_27, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_28) >= ((int32_t)0))) { goto IL_006d; } } { Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2* L_29 = ___keys0; int32_t L_30 = ___lo3; int32_t L_31 = ___i1; Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2* L_32 = ___keys0; int32_t L_33 = ___lo3; int32_t L_34 = V_1; NullCheck(L_32); int32_t L_35 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_33, (int32_t)L_34)), (int32_t)1)); Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D L_36 = (L_32)->GetAt(static_cast<il2cpp_array_size_t>(L_35)); NullCheck(L_29); (L_29)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_30, (int32_t)L_31)), (int32_t)1))), (Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D )L_36); int32_t L_37 = V_1; ___i1 = (int32_t)L_37; } IL_0067: { int32_t L_38 = ___i1; int32_t L_39 = ___n2; if ((((int32_t)L_38) <= ((int32_t)((int32_t)((int32_t)L_39/(int32_t)2))))) { goto IL_000e; } } IL_006d: { Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2* L_40 = ___keys0; int32_t L_41 = ___lo3; int32_t L_42 = ___i1; Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D L_43 = V_0; NullCheck(L_40); (L_40)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_41, (int32_t)L_42)), (int32_t)1))), (Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D )L_43); return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<UnityEngine.Color32>::InsertionSort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_InsertionSort_m96BFB593AC8F8E65655E0F421EE9D85985B17DAA_gshared (Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2* ___keys0, int32_t ___lo1, int32_t ___hi2, Comparison_1_tF8CF11AB1893EC96EC5344F386B07B3C598EFFBF * ___comparer3, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D V_2; memset((&V_2), 0, sizeof(V_2)); { int32_t L_0 = ___lo1; V_0 = (int32_t)L_0; goto IL_0049; } IL_0004: { int32_t L_1 = V_0; V_1 = (int32_t)L_1; Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2* L_2 = ___keys0; int32_t L_3 = V_0; NullCheck(L_2); int32_t L_4 = ((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)1)); Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D L_5 = (L_2)->GetAt(static_cast<il2cpp_array_size_t>(L_4)); V_2 = (Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D )L_5; goto IL_0026; } IL_0012: { Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2* L_6 = ___keys0; int32_t L_7 = V_1; Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2* L_8 = ___keys0; int32_t L_9 = V_1; NullCheck(L_8); int32_t L_10 = L_9; Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D L_11 = (L_8)->GetAt(static_cast<il2cpp_array_size_t>(L_10)); NullCheck(L_6); (L_6)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add((int32_t)L_7, (int32_t)1))), (Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D )L_11); int32_t L_12 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_12, (int32_t)1)); } IL_0026: { int32_t L_13 = V_1; int32_t L_14 = ___lo1; if ((((int32_t)L_13) < ((int32_t)L_14))) { goto IL_003b; } } { Comparison_1_tF8CF11AB1893EC96EC5344F386B07B3C598EFFBF * L_15 = ___comparer3; Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D L_16 = V_2; Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2* L_17 = ___keys0; int32_t L_18 = V_1; NullCheck(L_17); int32_t L_19 = L_18; Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D L_20 = (L_17)->GetAt(static_cast<il2cpp_array_size_t>(L_19)); NullCheck((Comparison_1_tF8CF11AB1893EC96EC5344F386B07B3C598EFFBF *)L_15); int32_t L_21; L_21 = (( int32_t (*) (Comparison_1_tF8CF11AB1893EC96EC5344F386B07B3C598EFFBF *, Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D , Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_tF8CF11AB1893EC96EC5344F386B07B3C598EFFBF *)L_15, (Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D )L_16, (Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D )L_20, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_21) < ((int32_t)0))) { goto IL_0012; } } IL_003b: { Color32U5BU5D_t7FEB526973BF84608073B85CF2D581427F0235E2* L_22 = ___keys0; int32_t L_23 = V_1; Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D L_24 = V_2; NullCheck(L_22); (L_22)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add((int32_t)L_23, (int32_t)1))), (Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D )L_24); int32_t L_25 = V_0; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_25, (int32_t)1)); } IL_0049: { int32_t L_26 = V_0; int32_t L_27 = ___hi2; if ((((int32_t)L_26) < ((int32_t)L_27))) { goto IL_0004; } } { return; } } #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Void System.Collections.Generic.ArraySortHelper`1<System.DateTime>::Sort(T[],System.Int32,System.Int32,System.Collections.Generic.IComparer`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Sort_m9949398864F04AF24324274C3A288F8BE77D2BAD_gshared (DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1* ___keys0, int32_t ___index1, int32_t ___length2, RuntimeObject* ___comparer3, const RuntimeMethod* method) { Exception_t * V_0 = NULL; il2cpp::utils::ExceptionSupportStack<RuntimeObject*, 1> __active_exceptions; il2cpp::utils::ExceptionSupportStack<int32_t, 2> __leave_targets; IL_0000: try { // begin try (depth: 1) { RuntimeObject* L_0 = ___comparer3; if (L_0) { goto IL_000a; } } IL_0003: { Comparer_1_t956A8C99F0342001A04B720E5E95BAE4B8086032 * L_1; L_1 = (( Comparer_1_t956A8C99F0342001A04B720E5E95BAE4B8086032 * (*) (const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)->methodPointer)(/*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)); ___comparer3 = (RuntimeObject*)L_1; } IL_000a: { DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1* L_2 = ___keys0; int32_t L_3 = ___index1; int32_t L_4 = ___length2; RuntimeObject* L_5 = ___comparer3; RuntimeObject* L_6 = (RuntimeObject*)L_5; Comparison_1_tF3A572267B1BF59C885566FB3336ADFA0B6AB836 * L_7 = (Comparison_1_tF3A572267B1BF59C885566FB3336ADFA0B6AB836 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 4)); (( void (*) (Comparison_1_tF3A572267B1BF59C885566FB3336ADFA0B6AB836 *, RuntimeObject *, intptr_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 5)->methodPointer)(L_7, (RuntimeObject *)L_6, (intptr_t)((intptr_t)GetInterfaceMethodInfo(L_6, 0, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 3))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 5)); (( void (*) (DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1*, int32_t, int32_t, Comparison_1_tF3A572267B1BF59C885566FB3336ADFA0B6AB836 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)->methodPointer)((DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1*)L_2, (int32_t)L_3, (int32_t)L_4, (Comparison_1_tF3A572267B1BF59C885566FB3336ADFA0B6AB836 *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)); goto IL_0037; } } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&IndexOutOfRangeException_tDC9EF7A0346CE39E54DA1083F07BE6DFC3CE2EDD_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_0021; } if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&Exception_t_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_002a; } throw e; } CATCH_0021: { // begin catch(System.IndexOutOfRangeException) RuntimeObject* L_8 = ___comparer3; IntrospectiveSortUtilities_ThrowOrIgnoreBadComparer_mE23A8103696FA67F874E7DA86625BB3921DB801F((RuntimeObject *)L_8, /*hidden argument*/NULL); IL2CPP_POP_ACTIVE_EXCEPTION(); goto IL_0037; } // end catch (depth: 1) CATCH_002a: { // begin catch(System.Exception) V_0 = (Exception_t *)((Exception_t *)IL2CPP_GET_ACTIVE_EXCEPTION(Exception_t *)); Exception_t * L_9 = V_0; InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB * L_10 = (InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB *)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB_il2cpp_TypeInfo_var))); InvalidOperationException__ctor_m4A65916B1316FBF45ECDF1FF7FAC9E3CA30C112C(L_10, (String_t*)((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral6EDB6C049ED9617FA335A262A29BF30B15221AEA)), (Exception_t *)L_9, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_10, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArraySortHelper_1_Sort_m9949398864F04AF24324274C3A288F8BE77D2BAD_RuntimeMethod_var))); } // end catch (depth: 1) IL_0037: { return; } } // System.Int32 System.Collections.Generic.ArraySortHelper`1<System.DateTime>::BinarySearch(T[],System.Int32,System.Int32,T,System.Collections.Generic.IComparer`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t ArraySortHelper_1_BinarySearch_m9AC0B4471A2CB7B844DBBFBDCECDF8762EFA63ED_gshared (DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1* ___array0, int32_t ___index1, int32_t ___length2, DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 ___value3, RuntimeObject* ___comparer4, const RuntimeMethod* method) { int32_t V_0 = 0; Exception_t * V_1 = NULL; il2cpp::utils::ExceptionSupportStack<RuntimeObject*, 1> __active_exceptions; il2cpp::utils::ExceptionSupportStack<int32_t, 1> __leave_targets; IL_0000: try { // begin try (depth: 1) { RuntimeObject* L_0 = ___comparer4; if (L_0) { goto IL_000b; } } IL_0004: { Comparer_1_t956A8C99F0342001A04B720E5E95BAE4B8086032 * L_1; L_1 = (( Comparer_1_t956A8C99F0342001A04B720E5E95BAE4B8086032 * (*) (const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)->methodPointer)(/*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)); ___comparer4 = (RuntimeObject*)L_1; } IL_000b: { DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1* L_2 = ___array0; int32_t L_3 = ___index1; int32_t L_4 = ___length2; DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 L_5 = ___value3; RuntimeObject* L_6 = ___comparer4; int32_t L_7; L_7 = (( int32_t (*) (DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1*, int32_t, int32_t, DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 , RuntimeObject*, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 8)->methodPointer)((DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1*)L_2, (int32_t)L_3, (int32_t)L_4, (DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 )L_5, (RuntimeObject*)L_6, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 8)); V_0 = (int32_t)L_7; goto IL_0026; } } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&Exception_t_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_0019; } throw e; } CATCH_0019: { // begin catch(System.Exception) V_1 = (Exception_t *)((Exception_t *)IL2CPP_GET_ACTIVE_EXCEPTION(Exception_t *)); Exception_t * L_8 = V_1; InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB * L_9 = (InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB *)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB_il2cpp_TypeInfo_var))); InvalidOperationException__ctor_m4A65916B1316FBF45ECDF1FF7FAC9E3CA30C112C(L_9, (String_t*)((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral6EDB6C049ED9617FA335A262A29BF30B15221AEA)), (Exception_t *)L_8, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_9, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArraySortHelper_1_BinarySearch_m9AC0B4471A2CB7B844DBBFBDCECDF8762EFA63ED_RuntimeMethod_var))); } // end catch (depth: 1) IL_0026: { int32_t L_10 = V_0; return (int32_t)L_10; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.DateTime>::Sort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Sort_mB9F5A0EFBD82CB088D9585B063D9D10B41F6105B_gshared (DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1* ___keys0, int32_t ___index1, int32_t ___length2, Comparison_1_tF3A572267B1BF59C885566FB3336ADFA0B6AB836 * ___comparer3, const RuntimeMethod* method) { Exception_t * V_0 = NULL; il2cpp::utils::ExceptionSupportStack<RuntimeObject*, 1> __active_exceptions; il2cpp::utils::ExceptionSupportStack<int32_t, 2> __leave_targets; IL_0000: try { // begin try (depth: 1) DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1* L_0 = ___keys0; int32_t L_1 = ___index1; int32_t L_2 = ___length2; Comparison_1_tF3A572267B1BF59C885566FB3336ADFA0B6AB836 * L_3 = ___comparer3; (( void (*) (DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1*, int32_t, int32_t, Comparison_1_tF3A572267B1BF59C885566FB3336ADFA0B6AB836 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)->methodPointer)((DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1*)L_0, (int32_t)L_1, (int32_t)L_2, (Comparison_1_tF3A572267B1BF59C885566FB3336ADFA0B6AB836 *)L_3, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)); goto IL_0021; } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&IndexOutOfRangeException_tDC9EF7A0346CE39E54DA1083F07BE6DFC3CE2EDD_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_000b; } if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&Exception_t_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_0014; } throw e; } CATCH_000b: { // begin catch(System.IndexOutOfRangeException) Comparison_1_tF3A572267B1BF59C885566FB3336ADFA0B6AB836 * L_4 = ___comparer3; IntrospectiveSortUtilities_ThrowOrIgnoreBadComparer_mE23A8103696FA67F874E7DA86625BB3921DB801F((RuntimeObject *)L_4, /*hidden argument*/NULL); IL2CPP_POP_ACTIVE_EXCEPTION(); goto IL_0021; } // end catch (depth: 1) CATCH_0014: { // begin catch(System.Exception) V_0 = (Exception_t *)((Exception_t *)IL2CPP_GET_ACTIVE_EXCEPTION(Exception_t *)); Exception_t * L_5 = V_0; InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB * L_6 = (InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB *)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB_il2cpp_TypeInfo_var))); InvalidOperationException__ctor_m4A65916B1316FBF45ECDF1FF7FAC9E3CA30C112C(L_6, (String_t*)((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral6EDB6C049ED9617FA335A262A29BF30B15221AEA)), (Exception_t *)L_5, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_6, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArraySortHelper_1_Sort_mB9F5A0EFBD82CB088D9585B063D9D10B41F6105B_RuntimeMethod_var))); } // end catch (depth: 1) IL_0021: { return; } } // System.Int32 System.Collections.Generic.ArraySortHelper`1<System.DateTime>::InternalBinarySearch(T[],System.Int32,System.Int32,T,System.Collections.Generic.IComparer`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t ArraySortHelper_1_InternalBinarySearch_mDCC124849C2B055B0AD598E05A9D813EAA62690C_gshared (DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1* ___array0, int32_t ___index1, int32_t ___length2, DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 ___value3, RuntimeObject* ___comparer4, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; int32_t V_2 = 0; int32_t V_3 = 0; { int32_t L_0 = ___index1; V_0 = (int32_t)L_0; int32_t L_1 = ___index1; int32_t L_2 = ___length2; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_1, (int32_t)L_2)), (int32_t)1)); goto IL_0035; } IL_000a: { int32_t L_3 = V_0; int32_t L_4 = V_1; int32_t L_5 = V_0; V_2 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)((int32_t)((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_4, (int32_t)L_5))>>(int32_t)1)))); RuntimeObject* L_6 = ___comparer4; DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1* L_7 = ___array0; int32_t L_8 = V_2; NullCheck(L_7); int32_t L_9 = L_8; DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 L_10 = (L_7)->GetAt(static_cast<il2cpp_array_size_t>(L_9)); DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 L_11 = ___value3; NullCheck((RuntimeObject*)L_6); int32_t L_12; L_12 = InterfaceFuncInvoker2< int32_t, DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 , DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 >::Invoke(0 /* System.Int32 System.Collections.Generic.IComparer`1<System.DateTime>::Compare(T,T) */, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 3), (RuntimeObject*)L_6, (DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 )L_10, (DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 )L_11); V_3 = (int32_t)L_12; int32_t L_13 = V_3; if (L_13) { goto IL_0027; } } { int32_t L_14 = V_2; return (int32_t)L_14; } IL_0027: { int32_t L_15 = V_3; if ((((int32_t)L_15) >= ((int32_t)0))) { goto IL_0031; } } { int32_t L_16 = V_2; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_16, (int32_t)1)); goto IL_0035; } IL_0031: { int32_t L_17 = V_2; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_17, (int32_t)1)); } IL_0035: { int32_t L_18 = V_0; int32_t L_19 = V_1; if ((((int32_t)L_18) <= ((int32_t)L_19))) { goto IL_000a; } } { int32_t L_20 = V_0; return (int32_t)((~L_20)); } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.DateTime>::SwapIfGreater(T[],System.Comparison`1<T>,System.Int32,System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_SwapIfGreater_m8EF831AE81BC9ECDDC947BE0AB54801456CFEA06_gshared (DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1* ___keys0, Comparison_1_tF3A572267B1BF59C885566FB3336ADFA0B6AB836 * ___comparer1, int32_t ___a2, int32_t ___b3, const RuntimeMethod* method) { DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 V_0; memset((&V_0), 0, sizeof(V_0)); { int32_t L_0 = ___a2; int32_t L_1 = ___b3; if ((((int32_t)L_0) == ((int32_t)L_1))) { goto IL_0039; } } { Comparison_1_tF3A572267B1BF59C885566FB3336ADFA0B6AB836 * L_2 = ___comparer1; DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1* L_3 = ___keys0; int32_t L_4 = ___a2; NullCheck(L_3); int32_t L_5 = L_4; DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 L_6 = (L_3)->GetAt(static_cast<il2cpp_array_size_t>(L_5)); DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1* L_7 = ___keys0; int32_t L_8 = ___b3; NullCheck(L_7); int32_t L_9 = L_8; DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 L_10 = (L_7)->GetAt(static_cast<il2cpp_array_size_t>(L_9)); NullCheck((Comparison_1_tF3A572267B1BF59C885566FB3336ADFA0B6AB836 *)L_2); int32_t L_11; L_11 = (( int32_t (*) (Comparison_1_tF3A572267B1BF59C885566FB3336ADFA0B6AB836 *, DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 , DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_tF3A572267B1BF59C885566FB3336ADFA0B6AB836 *)L_2, (DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 )L_6, (DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 )L_10, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_11) <= ((int32_t)0))) { goto IL_0039; } } { DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1* L_12 = ___keys0; int32_t L_13 = ___a2; NullCheck(L_12); int32_t L_14 = L_13; DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 L_15 = (L_12)->GetAt(static_cast<il2cpp_array_size_t>(L_14)); V_0 = (DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 )L_15; DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1* L_16 = ___keys0; int32_t L_17 = ___a2; DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1* L_18 = ___keys0; int32_t L_19 = ___b3; NullCheck(L_18); int32_t L_20 = L_19; DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 L_21 = (L_18)->GetAt(static_cast<il2cpp_array_size_t>(L_20)); NullCheck(L_16); (L_16)->SetAt(static_cast<il2cpp_array_size_t>(L_17), (DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 )L_21); DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1* L_22 = ___keys0; int32_t L_23 = ___b3; DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 L_24 = V_0; NullCheck(L_22); (L_22)->SetAt(static_cast<il2cpp_array_size_t>(L_23), (DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 )L_24); } IL_0039: { return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.DateTime>::Swap(T[],System.Int32,System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Swap_mBE21AE6C1969A3B89E0CFF7B855F9BC1099E6B3B_gshared (DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1* ___a0, int32_t ___i1, int32_t ___j2, const RuntimeMethod* method) { DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 V_0; memset((&V_0), 0, sizeof(V_0)); { int32_t L_0 = ___i1; int32_t L_1 = ___j2; if ((((int32_t)L_0) == ((int32_t)L_1))) { goto IL_0022; } } { DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1* L_2 = ___a0; int32_t L_3 = ___i1; NullCheck(L_2); int32_t L_4 = L_3; DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 L_5 = (L_2)->GetAt(static_cast<il2cpp_array_size_t>(L_4)); V_0 = (DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 )L_5; DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1* L_6 = ___a0; int32_t L_7 = ___i1; DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1* L_8 = ___a0; int32_t L_9 = ___j2; NullCheck(L_8); int32_t L_10 = L_9; DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 L_11 = (L_8)->GetAt(static_cast<il2cpp_array_size_t>(L_10)); NullCheck(L_6); (L_6)->SetAt(static_cast<il2cpp_array_size_t>(L_7), (DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 )L_11); DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1* L_12 = ___a0; int32_t L_13 = ___j2; DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 L_14 = V_0; NullCheck(L_12); (L_12)->SetAt(static_cast<il2cpp_array_size_t>(L_13), (DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 )L_14); } IL_0022: { return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.DateTime>::IntrospectiveSort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_IntrospectiveSort_m2E26755314D5F4348D635559D44F2E6FDEE020A8_gshared (DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1* ___keys0, int32_t ___left1, int32_t ___length2, Comparison_1_tF3A572267B1BF59C885566FB3336ADFA0B6AB836 * ___comparer3, const RuntimeMethod* method) { { int32_t L_0 = ___length2; if ((((int32_t)L_0) >= ((int32_t)2))) { goto IL_0005; } } { return; } IL_0005: { DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1* L_1 = ___keys0; int32_t L_2 = ___left1; int32_t L_3 = ___length2; int32_t L_4 = ___left1; DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1* L_5 = ___keys0; NullCheck(L_5); int32_t L_6; L_6 = IntrospectiveSortUtilities_FloorLog2_m05ECB6CAC7A23087D9EC2C2A4DDCFE12272C3872((int32_t)((int32_t)((int32_t)(((RuntimeArray*)L_5)->max_length))), /*hidden argument*/NULL); Comparison_1_tF3A572267B1BF59C885566FB3336ADFA0B6AB836 * L_7 = ___comparer3; (( void (*) (DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1*, int32_t, int32_t, int32_t, Comparison_1_tF3A572267B1BF59C885566FB3336ADFA0B6AB836 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)->methodPointer)((DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1*)L_1, (int32_t)L_2, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)L_4)), (int32_t)1)), (int32_t)((int32_t)il2cpp_codegen_multiply((int32_t)2, (int32_t)L_6)), (Comparison_1_tF3A572267B1BF59C885566FB3336ADFA0B6AB836 *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)); return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.DateTime>::IntroSort(T[],System.Int32,System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_IntroSort_m67DFB98AE304A1F9607E1154309FDFB7CC122A7B_gshared (DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1* ___keys0, int32_t ___lo1, int32_t ___hi2, int32_t ___depthLimit3, Comparison_1_tF3A572267B1BF59C885566FB3336ADFA0B6AB836 * ___comparer4, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; { goto IL_0086; } IL_0005: { int32_t L_0 = ___hi2; int32_t L_1 = ___lo1; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_0, (int32_t)L_1)), (int32_t)1)); int32_t L_2 = V_0; if ((((int32_t)L_2) > ((int32_t)((int32_t)16)))) { goto IL_0056; } } { int32_t L_3 = V_0; if ((!(((uint32_t)L_3) == ((uint32_t)1)))) { goto IL_0015; } } { return; } IL_0015: { int32_t L_4 = V_0; if ((!(((uint32_t)L_4) == ((uint32_t)2)))) { goto IL_0024; } } { DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1* L_5 = ___keys0; Comparison_1_tF3A572267B1BF59C885566FB3336ADFA0B6AB836 * L_6 = ___comparer4; int32_t L_7 = ___lo1; int32_t L_8 = ___hi2; (( void (*) (DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1*, Comparison_1_tF3A572267B1BF59C885566FB3336ADFA0B6AB836 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1*)L_5, (Comparison_1_tF3A572267B1BF59C885566FB3336ADFA0B6AB836 *)L_6, (int32_t)L_7, (int32_t)L_8, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); return; } IL_0024: { int32_t L_9 = V_0; if ((!(((uint32_t)L_9) == ((uint32_t)3)))) { goto IL_004b; } } { DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1* L_10 = ___keys0; Comparison_1_tF3A572267B1BF59C885566FB3336ADFA0B6AB836 * L_11 = ___comparer4; int32_t L_12 = ___lo1; int32_t L_13 = ___hi2; (( void (*) (DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1*, Comparison_1_tF3A572267B1BF59C885566FB3336ADFA0B6AB836 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1*)L_10, (Comparison_1_tF3A572267B1BF59C885566FB3336ADFA0B6AB836 *)L_11, (int32_t)L_12, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_13, (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1* L_14 = ___keys0; Comparison_1_tF3A572267B1BF59C885566FB3336ADFA0B6AB836 * L_15 = ___comparer4; int32_t L_16 = ___lo1; int32_t L_17 = ___hi2; (( void (*) (DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1*, Comparison_1_tF3A572267B1BF59C885566FB3336ADFA0B6AB836 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1*)L_14, (Comparison_1_tF3A572267B1BF59C885566FB3336ADFA0B6AB836 *)L_15, (int32_t)L_16, (int32_t)L_17, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1* L_18 = ___keys0; Comparison_1_tF3A572267B1BF59C885566FB3336ADFA0B6AB836 * L_19 = ___comparer4; int32_t L_20 = ___hi2; int32_t L_21 = ___hi2; (( void (*) (DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1*, Comparison_1_tF3A572267B1BF59C885566FB3336ADFA0B6AB836 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1*)L_18, (Comparison_1_tF3A572267B1BF59C885566FB3336ADFA0B6AB836 *)L_19, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_20, (int32_t)1)), (int32_t)L_21, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); return; } IL_004b: { DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1* L_22 = ___keys0; int32_t L_23 = ___lo1; int32_t L_24 = ___hi2; Comparison_1_tF3A572267B1BF59C885566FB3336ADFA0B6AB836 * L_25 = ___comparer4; (( void (*) (DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1*, int32_t, int32_t, Comparison_1_tF3A572267B1BF59C885566FB3336ADFA0B6AB836 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 12)->methodPointer)((DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1*)L_22, (int32_t)L_23, (int32_t)L_24, (Comparison_1_tF3A572267B1BF59C885566FB3336ADFA0B6AB836 *)L_25, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 12)); return; } IL_0056: { int32_t L_26 = ___depthLimit3; if (L_26) { goto IL_0064; } } { DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1* L_27 = ___keys0; int32_t L_28 = ___lo1; int32_t L_29 = ___hi2; Comparison_1_tF3A572267B1BF59C885566FB3336ADFA0B6AB836 * L_30 = ___comparer4; (( void (*) (DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1*, int32_t, int32_t, Comparison_1_tF3A572267B1BF59C885566FB3336ADFA0B6AB836 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 13)->methodPointer)((DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1*)L_27, (int32_t)L_28, (int32_t)L_29, (Comparison_1_tF3A572267B1BF59C885566FB3336ADFA0B6AB836 *)L_30, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 13)); return; } IL_0064: { int32_t L_31 = ___depthLimit3; ___depthLimit3 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_31, (int32_t)1)); DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1* L_32 = ___keys0; int32_t L_33 = ___lo1; int32_t L_34 = ___hi2; Comparison_1_tF3A572267B1BF59C885566FB3336ADFA0B6AB836 * L_35 = ___comparer4; int32_t L_36; L_36 = (( int32_t (*) (DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1*, int32_t, int32_t, Comparison_1_tF3A572267B1BF59C885566FB3336ADFA0B6AB836 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 14)->methodPointer)((DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1*)L_32, (int32_t)L_33, (int32_t)L_34, (Comparison_1_tF3A572267B1BF59C885566FB3336ADFA0B6AB836 *)L_35, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 14)); V_1 = (int32_t)L_36; DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1* L_37 = ___keys0; int32_t L_38 = V_1; int32_t L_39 = ___hi2; int32_t L_40 = ___depthLimit3; Comparison_1_tF3A572267B1BF59C885566FB3336ADFA0B6AB836 * L_41 = ___comparer4; (( void (*) (DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1*, int32_t, int32_t, int32_t, Comparison_1_tF3A572267B1BF59C885566FB3336ADFA0B6AB836 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)->methodPointer)((DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1*)L_37, (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_38, (int32_t)1)), (int32_t)L_39, (int32_t)L_40, (Comparison_1_tF3A572267B1BF59C885566FB3336ADFA0B6AB836 *)L_41, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)); int32_t L_42 = V_1; ___hi2 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_42, (int32_t)1)); } IL_0086: { int32_t L_43 = ___hi2; int32_t L_44 = ___lo1; if ((((int32_t)L_43) > ((int32_t)L_44))) { goto IL_0005; } } { return; } } // System.Int32 System.Collections.Generic.ArraySortHelper`1<System.DateTime>::PickPivotAndPartition(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t ArraySortHelper_1_PickPivotAndPartition_m6F845FDF4EF5A16F256CBC2C80BE9DBD87C0DD9D_gshared (DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1* ___keys0, int32_t ___lo1, int32_t ___hi2, Comparison_1_tF3A572267B1BF59C885566FB3336ADFA0B6AB836 * ___comparer3, const RuntimeMethod* method) { int32_t V_0 = 0; DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 V_1; memset((&V_1), 0, sizeof(V_1)); int32_t V_2 = 0; int32_t V_3 = 0; { int32_t L_0 = ___lo1; int32_t L_1 = ___hi2; int32_t L_2 = ___lo1; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_0, (int32_t)((int32_t)((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_1, (int32_t)L_2))/(int32_t)2)))); DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1* L_3 = ___keys0; Comparison_1_tF3A572267B1BF59C885566FB3336ADFA0B6AB836 * L_4 = ___comparer3; int32_t L_5 = ___lo1; int32_t L_6 = V_0; (( void (*) (DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1*, Comparison_1_tF3A572267B1BF59C885566FB3336ADFA0B6AB836 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1*)L_3, (Comparison_1_tF3A572267B1BF59C885566FB3336ADFA0B6AB836 *)L_4, (int32_t)L_5, (int32_t)L_6, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1* L_7 = ___keys0; Comparison_1_tF3A572267B1BF59C885566FB3336ADFA0B6AB836 * L_8 = ___comparer3; int32_t L_9 = ___lo1; int32_t L_10 = ___hi2; (( void (*) (DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1*, Comparison_1_tF3A572267B1BF59C885566FB3336ADFA0B6AB836 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1*)L_7, (Comparison_1_tF3A572267B1BF59C885566FB3336ADFA0B6AB836 *)L_8, (int32_t)L_9, (int32_t)L_10, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1* L_11 = ___keys0; Comparison_1_tF3A572267B1BF59C885566FB3336ADFA0B6AB836 * L_12 = ___comparer3; int32_t L_13 = V_0; int32_t L_14 = ___hi2; (( void (*) (DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1*, Comparison_1_tF3A572267B1BF59C885566FB3336ADFA0B6AB836 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1*)L_11, (Comparison_1_tF3A572267B1BF59C885566FB3336ADFA0B6AB836 *)L_12, (int32_t)L_13, (int32_t)L_14, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1* L_15 = ___keys0; int32_t L_16 = V_0; NullCheck(L_15); int32_t L_17 = L_16; DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 L_18 = (L_15)->GetAt(static_cast<il2cpp_array_size_t>(L_17)); V_1 = (DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 )L_18; DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1* L_19 = ___keys0; int32_t L_20 = V_0; int32_t L_21 = ___hi2; (( void (*) (DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1*)L_19, (int32_t)L_20, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_21, (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); int32_t L_22 = ___lo1; V_2 = (int32_t)L_22; int32_t L_23 = ___hi2; V_3 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_23, (int32_t)1)); goto IL_0073; } IL_003d: { Comparison_1_tF3A572267B1BF59C885566FB3336ADFA0B6AB836 * L_24 = ___comparer3; DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1* L_25 = ___keys0; int32_t L_26 = V_2; int32_t L_27 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_26, (int32_t)1)); V_2 = (int32_t)L_27; NullCheck(L_25); int32_t L_28 = L_27; DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 L_29 = (L_25)->GetAt(static_cast<il2cpp_array_size_t>(L_28)); DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 L_30 = V_1; NullCheck((Comparison_1_tF3A572267B1BF59C885566FB3336ADFA0B6AB836 *)L_24); int32_t L_31; L_31 = (( int32_t (*) (Comparison_1_tF3A572267B1BF59C885566FB3336ADFA0B6AB836 *, DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 , DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_tF3A572267B1BF59C885566FB3336ADFA0B6AB836 *)L_24, (DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 )L_29, (DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 )L_30, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_31) < ((int32_t)0))) { goto IL_003d; } } IL_0052: { Comparison_1_tF3A572267B1BF59C885566FB3336ADFA0B6AB836 * L_32 = ___comparer3; DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 L_33 = V_1; DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1* L_34 = ___keys0; int32_t L_35 = V_3; int32_t L_36 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_35, (int32_t)1)); V_3 = (int32_t)L_36; NullCheck(L_34); int32_t L_37 = L_36; DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 L_38 = (L_34)->GetAt(static_cast<il2cpp_array_size_t>(L_37)); NullCheck((Comparison_1_tF3A572267B1BF59C885566FB3336ADFA0B6AB836 *)L_32); int32_t L_39; L_39 = (( int32_t (*) (Comparison_1_tF3A572267B1BF59C885566FB3336ADFA0B6AB836 *, DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 , DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_tF3A572267B1BF59C885566FB3336ADFA0B6AB836 *)L_32, (DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 )L_33, (DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 )L_38, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_39) < ((int32_t)0))) { goto IL_0052; } } { int32_t L_40 = V_2; int32_t L_41 = V_3; if ((((int32_t)L_40) >= ((int32_t)L_41))) { goto IL_0077; } } { DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1* L_42 = ___keys0; int32_t L_43 = V_2; int32_t L_44 = V_3; (( void (*) (DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1*)L_42, (int32_t)L_43, (int32_t)L_44, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); } IL_0073: { int32_t L_45 = V_2; int32_t L_46 = V_3; if ((((int32_t)L_45) < ((int32_t)L_46))) { goto IL_003d; } } IL_0077: { DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1* L_47 = ___keys0; int32_t L_48 = V_2; int32_t L_49 = ___hi2; (( void (*) (DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1*)L_47, (int32_t)L_48, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_49, (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); int32_t L_50 = V_2; return (int32_t)L_50; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.DateTime>::Heapsort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Heapsort_m25456ADE9DAC8F80847557CE08CD94C9250FA3B5_gshared (DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1* ___keys0, int32_t ___lo1, int32_t ___hi2, Comparison_1_tF3A572267B1BF59C885566FB3336ADFA0B6AB836 * ___comparer3, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; int32_t V_2 = 0; { int32_t L_0 = ___hi2; int32_t L_1 = ___lo1; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_0, (int32_t)L_1)), (int32_t)1)); int32_t L_2 = V_0; V_1 = (int32_t)((int32_t)((int32_t)L_2/(int32_t)2)); goto IL_001a; } IL_000c: { DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1* L_3 = ___keys0; int32_t L_4 = V_1; int32_t L_5 = V_0; int32_t L_6 = ___lo1; Comparison_1_tF3A572267B1BF59C885566FB3336ADFA0B6AB836 * L_7 = ___comparer3; (( void (*) (DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1*, int32_t, int32_t, int32_t, Comparison_1_tF3A572267B1BF59C885566FB3336ADFA0B6AB836 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)->methodPointer)((DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1*)L_3, (int32_t)L_4, (int32_t)L_5, (int32_t)L_6, (Comparison_1_tF3A572267B1BF59C885566FB3336ADFA0B6AB836 *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)); int32_t L_8 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_8, (int32_t)1)); } IL_001a: { int32_t L_9 = V_1; if ((((int32_t)L_9) >= ((int32_t)1))) { goto IL_000c; } } { int32_t L_10 = V_0; V_2 = (int32_t)L_10; goto IL_003e; } IL_0022: { DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1* L_11 = ___keys0; int32_t L_12 = ___lo1; int32_t L_13 = ___lo1; int32_t L_14 = V_2; (( void (*) (DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1*)L_11, (int32_t)L_12, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_13, (int32_t)L_14)), (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1* L_15 = ___keys0; int32_t L_16 = V_2; int32_t L_17 = ___lo1; Comparison_1_tF3A572267B1BF59C885566FB3336ADFA0B6AB836 * L_18 = ___comparer3; (( void (*) (DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1*, int32_t, int32_t, int32_t, Comparison_1_tF3A572267B1BF59C885566FB3336ADFA0B6AB836 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)->methodPointer)((DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1*)L_15, (int32_t)1, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_16, (int32_t)1)), (int32_t)L_17, (Comparison_1_tF3A572267B1BF59C885566FB3336ADFA0B6AB836 *)L_18, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)); int32_t L_19 = V_2; V_2 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_19, (int32_t)1)); } IL_003e: { int32_t L_20 = V_2; if ((((int32_t)L_20) > ((int32_t)1))) { goto IL_0022; } } { return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.DateTime>::DownHeap(T[],System.Int32,System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_DownHeap_m361C0F2668385CFE3302241983877D62DF662672_gshared (DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1* ___keys0, int32_t ___i1, int32_t ___n2, int32_t ___lo3, Comparison_1_tF3A572267B1BF59C885566FB3336ADFA0B6AB836 * ___comparer4, const RuntimeMethod* method) { DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 V_0; memset((&V_0), 0, sizeof(V_0)); int32_t V_1 = 0; { DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1* L_0 = ___keys0; int32_t L_1 = ___lo3; int32_t L_2 = ___i1; NullCheck(L_0); int32_t L_3 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_1, (int32_t)L_2)), (int32_t)1)); DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 L_4 = (L_0)->GetAt(static_cast<il2cpp_array_size_t>(L_3)); V_0 = (DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 )L_4; goto IL_0067; } IL_000e: { int32_t L_5 = ___i1; V_1 = (int32_t)((int32_t)il2cpp_codegen_multiply((int32_t)2, (int32_t)L_5)); int32_t L_6 = V_1; int32_t L_7 = ___n2; if ((((int32_t)L_6) >= ((int32_t)L_7))) { goto IL_0038; } } { Comparison_1_tF3A572267B1BF59C885566FB3336ADFA0B6AB836 * L_8 = ___comparer4; DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1* L_9 = ___keys0; int32_t L_10 = ___lo3; int32_t L_11 = V_1; NullCheck(L_9); int32_t L_12 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_10, (int32_t)L_11)), (int32_t)1)); DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 L_13 = (L_9)->GetAt(static_cast<il2cpp_array_size_t>(L_12)); DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1* L_14 = ___keys0; int32_t L_15 = ___lo3; int32_t L_16 = V_1; NullCheck(L_14); int32_t L_17 = ((int32_t)il2cpp_codegen_add((int32_t)L_15, (int32_t)L_16)); DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 L_18 = (L_14)->GetAt(static_cast<il2cpp_array_size_t>(L_17)); NullCheck((Comparison_1_tF3A572267B1BF59C885566FB3336ADFA0B6AB836 *)L_8); int32_t L_19; L_19 = (( int32_t (*) (Comparison_1_tF3A572267B1BF59C885566FB3336ADFA0B6AB836 *, DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 , DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_tF3A572267B1BF59C885566FB3336ADFA0B6AB836 *)L_8, (DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 )L_13, (DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 )L_18, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_19) >= ((int32_t)0))) { goto IL_0038; } } { int32_t L_20 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_20, (int32_t)1)); } IL_0038: { Comparison_1_tF3A572267B1BF59C885566FB3336ADFA0B6AB836 * L_21 = ___comparer4; DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 L_22 = V_0; DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1* L_23 = ___keys0; int32_t L_24 = ___lo3; int32_t L_25 = V_1; NullCheck(L_23); int32_t L_26 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_24, (int32_t)L_25)), (int32_t)1)); DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 L_27 = (L_23)->GetAt(static_cast<il2cpp_array_size_t>(L_26)); NullCheck((Comparison_1_tF3A572267B1BF59C885566FB3336ADFA0B6AB836 *)L_21); int32_t L_28; L_28 = (( int32_t (*) (Comparison_1_tF3A572267B1BF59C885566FB3336ADFA0B6AB836 *, DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 , DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_tF3A572267B1BF59C885566FB3336ADFA0B6AB836 *)L_21, (DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 )L_22, (DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 )L_27, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_28) >= ((int32_t)0))) { goto IL_006d; } } { DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1* L_29 = ___keys0; int32_t L_30 = ___lo3; int32_t L_31 = ___i1; DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1* L_32 = ___keys0; int32_t L_33 = ___lo3; int32_t L_34 = V_1; NullCheck(L_32); int32_t L_35 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_33, (int32_t)L_34)), (int32_t)1)); DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 L_36 = (L_32)->GetAt(static_cast<il2cpp_array_size_t>(L_35)); NullCheck(L_29); (L_29)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_30, (int32_t)L_31)), (int32_t)1))), (DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 )L_36); int32_t L_37 = V_1; ___i1 = (int32_t)L_37; } IL_0067: { int32_t L_38 = ___i1; int32_t L_39 = ___n2; if ((((int32_t)L_38) <= ((int32_t)((int32_t)((int32_t)L_39/(int32_t)2))))) { goto IL_000e; } } IL_006d: { DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1* L_40 = ___keys0; int32_t L_41 = ___lo3; int32_t L_42 = ___i1; DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 L_43 = V_0; NullCheck(L_40); (L_40)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_41, (int32_t)L_42)), (int32_t)1))), (DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 )L_43); return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.DateTime>::InsertionSort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_InsertionSort_m44EF938985F1624CD074053162F7F3F0BFB2B297_gshared (DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1* ___keys0, int32_t ___lo1, int32_t ___hi2, Comparison_1_tF3A572267B1BF59C885566FB3336ADFA0B6AB836 * ___comparer3, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 V_2; memset((&V_2), 0, sizeof(V_2)); { int32_t L_0 = ___lo1; V_0 = (int32_t)L_0; goto IL_0049; } IL_0004: { int32_t L_1 = V_0; V_1 = (int32_t)L_1; DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1* L_2 = ___keys0; int32_t L_3 = V_0; NullCheck(L_2); int32_t L_4 = ((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)1)); DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 L_5 = (L_2)->GetAt(static_cast<il2cpp_array_size_t>(L_4)); V_2 = (DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 )L_5; goto IL_0026; } IL_0012: { DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1* L_6 = ___keys0; int32_t L_7 = V_1; DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1* L_8 = ___keys0; int32_t L_9 = V_1; NullCheck(L_8); int32_t L_10 = L_9; DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 L_11 = (L_8)->GetAt(static_cast<il2cpp_array_size_t>(L_10)); NullCheck(L_6); (L_6)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add((int32_t)L_7, (int32_t)1))), (DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 )L_11); int32_t L_12 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_12, (int32_t)1)); } IL_0026: { int32_t L_13 = V_1; int32_t L_14 = ___lo1; if ((((int32_t)L_13) < ((int32_t)L_14))) { goto IL_003b; } } { Comparison_1_tF3A572267B1BF59C885566FB3336ADFA0B6AB836 * L_15 = ___comparer3; DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 L_16 = V_2; DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1* L_17 = ___keys0; int32_t L_18 = V_1; NullCheck(L_17); int32_t L_19 = L_18; DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 L_20 = (L_17)->GetAt(static_cast<il2cpp_array_size_t>(L_19)); NullCheck((Comparison_1_tF3A572267B1BF59C885566FB3336ADFA0B6AB836 *)L_15); int32_t L_21; L_21 = (( int32_t (*) (Comparison_1_tF3A572267B1BF59C885566FB3336ADFA0B6AB836 *, DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 , DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_tF3A572267B1BF59C885566FB3336ADFA0B6AB836 *)L_15, (DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 )L_16, (DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 )L_20, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_21) < ((int32_t)0))) { goto IL_0012; } } IL_003b: { DateTimeU5BU5D_t43291D587229E4ED44A327CC74DC7771EF2EBBC1* L_22 = ___keys0; int32_t L_23 = V_1; DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 L_24 = V_2; NullCheck(L_22); (L_22)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add((int32_t)L_23, (int32_t)1))), (DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 )L_24); int32_t L_25 = V_0; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_25, (int32_t)1)); } IL_0049: { int32_t L_26 = V_0; int32_t L_27 = ___hi2; if ((((int32_t)L_26) < ((int32_t)L_27))) { goto IL_0004; } } { return; } } #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Void System.Collections.Generic.ArraySortHelper`1<System.DateTimeOffset>::Sort(T[],System.Int32,System.Int32,System.Collections.Generic.IComparer`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Sort_mA57B8B37B26D46329D8B30C562681FBE080C2A33_gshared (DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826* ___keys0, int32_t ___index1, int32_t ___length2, RuntimeObject* ___comparer3, const RuntimeMethod* method) { Exception_t * V_0 = NULL; il2cpp::utils::ExceptionSupportStack<RuntimeObject*, 1> __active_exceptions; il2cpp::utils::ExceptionSupportStack<int32_t, 2> __leave_targets; IL_0000: try { // begin try (depth: 1) { RuntimeObject* L_0 = ___comparer3; if (L_0) { goto IL_000a; } } IL_0003: { Comparer_1_tBC014CCD2A69AF80CBAD21AEFB5817872C50169B * L_1; L_1 = (( Comparer_1_tBC014CCD2A69AF80CBAD21AEFB5817872C50169B * (*) (const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)->methodPointer)(/*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)); ___comparer3 = (RuntimeObject*)L_1; } IL_000a: { DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826* L_2 = ___keys0; int32_t L_3 = ___index1; int32_t L_4 = ___length2; RuntimeObject* L_5 = ___comparer3; RuntimeObject* L_6 = (RuntimeObject*)L_5; Comparison_1_t01015852A660A57F66433C7F09FB87DCE9CF0DC8 * L_7 = (Comparison_1_t01015852A660A57F66433C7F09FB87DCE9CF0DC8 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 4)); (( void (*) (Comparison_1_t01015852A660A57F66433C7F09FB87DCE9CF0DC8 *, RuntimeObject *, intptr_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 5)->methodPointer)(L_7, (RuntimeObject *)L_6, (intptr_t)((intptr_t)GetInterfaceMethodInfo(L_6, 0, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 3))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 5)); (( void (*) (DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826*, int32_t, int32_t, Comparison_1_t01015852A660A57F66433C7F09FB87DCE9CF0DC8 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)->methodPointer)((DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826*)L_2, (int32_t)L_3, (int32_t)L_4, (Comparison_1_t01015852A660A57F66433C7F09FB87DCE9CF0DC8 *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)); goto IL_0037; } } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&IndexOutOfRangeException_tDC9EF7A0346CE39E54DA1083F07BE6DFC3CE2EDD_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_0021; } if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&Exception_t_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_002a; } throw e; } CATCH_0021: { // begin catch(System.IndexOutOfRangeException) RuntimeObject* L_8 = ___comparer3; IntrospectiveSortUtilities_ThrowOrIgnoreBadComparer_mE23A8103696FA67F874E7DA86625BB3921DB801F((RuntimeObject *)L_8, /*hidden argument*/NULL); IL2CPP_POP_ACTIVE_EXCEPTION(); goto IL_0037; } // end catch (depth: 1) CATCH_002a: { // begin catch(System.Exception) V_0 = (Exception_t *)((Exception_t *)IL2CPP_GET_ACTIVE_EXCEPTION(Exception_t *)); Exception_t * L_9 = V_0; InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB * L_10 = (InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB *)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB_il2cpp_TypeInfo_var))); InvalidOperationException__ctor_m4A65916B1316FBF45ECDF1FF7FAC9E3CA30C112C(L_10, (String_t*)((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral6EDB6C049ED9617FA335A262A29BF30B15221AEA)), (Exception_t *)L_9, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_10, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArraySortHelper_1_Sort_mA57B8B37B26D46329D8B30C562681FBE080C2A33_RuntimeMethod_var))); } // end catch (depth: 1) IL_0037: { return; } } // System.Int32 System.Collections.Generic.ArraySortHelper`1<System.DateTimeOffset>::BinarySearch(T[],System.Int32,System.Int32,T,System.Collections.Generic.IComparer`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t ArraySortHelper_1_BinarySearch_m5E72117D153F0C273EBB14177468B767B85FB158_gshared (DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826* ___array0, int32_t ___index1, int32_t ___length2, DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5 ___value3, RuntimeObject* ___comparer4, const RuntimeMethod* method) { int32_t V_0 = 0; Exception_t * V_1 = NULL; il2cpp::utils::ExceptionSupportStack<RuntimeObject*, 1> __active_exceptions; il2cpp::utils::ExceptionSupportStack<int32_t, 1> __leave_targets; IL_0000: try { // begin try (depth: 1) { RuntimeObject* L_0 = ___comparer4; if (L_0) { goto IL_000b; } } IL_0004: { Comparer_1_tBC014CCD2A69AF80CBAD21AEFB5817872C50169B * L_1; L_1 = (( Comparer_1_tBC014CCD2A69AF80CBAD21AEFB5817872C50169B * (*) (const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)->methodPointer)(/*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)); ___comparer4 = (RuntimeObject*)L_1; } IL_000b: { DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826* L_2 = ___array0; int32_t L_3 = ___index1; int32_t L_4 = ___length2; DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5 L_5 = ___value3; RuntimeObject* L_6 = ___comparer4; int32_t L_7; L_7 = (( int32_t (*) (DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826*, int32_t, int32_t, DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5 , RuntimeObject*, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 8)->methodPointer)((DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826*)L_2, (int32_t)L_3, (int32_t)L_4, (DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5 )L_5, (RuntimeObject*)L_6, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 8)); V_0 = (int32_t)L_7; goto IL_0026; } } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&Exception_t_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_0019; } throw e; } CATCH_0019: { // begin catch(System.Exception) V_1 = (Exception_t *)((Exception_t *)IL2CPP_GET_ACTIVE_EXCEPTION(Exception_t *)); Exception_t * L_8 = V_1; InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB * L_9 = (InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB *)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB_il2cpp_TypeInfo_var))); InvalidOperationException__ctor_m4A65916B1316FBF45ECDF1FF7FAC9E3CA30C112C(L_9, (String_t*)((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral6EDB6C049ED9617FA335A262A29BF30B15221AEA)), (Exception_t *)L_8, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_9, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArraySortHelper_1_BinarySearch_m5E72117D153F0C273EBB14177468B767B85FB158_RuntimeMethod_var))); } // end catch (depth: 1) IL_0026: { int32_t L_10 = V_0; return (int32_t)L_10; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.DateTimeOffset>::Sort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Sort_m4C3D844B7692E9CC36869F0AE4E9FF9E83F5D0E4_gshared (DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826* ___keys0, int32_t ___index1, int32_t ___length2, Comparison_1_t01015852A660A57F66433C7F09FB87DCE9CF0DC8 * ___comparer3, const RuntimeMethod* method) { Exception_t * V_0 = NULL; il2cpp::utils::ExceptionSupportStack<RuntimeObject*, 1> __active_exceptions; il2cpp::utils::ExceptionSupportStack<int32_t, 2> __leave_targets; IL_0000: try { // begin try (depth: 1) DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826* L_0 = ___keys0; int32_t L_1 = ___index1; int32_t L_2 = ___length2; Comparison_1_t01015852A660A57F66433C7F09FB87DCE9CF0DC8 * L_3 = ___comparer3; (( void (*) (DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826*, int32_t, int32_t, Comparison_1_t01015852A660A57F66433C7F09FB87DCE9CF0DC8 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)->methodPointer)((DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826*)L_0, (int32_t)L_1, (int32_t)L_2, (Comparison_1_t01015852A660A57F66433C7F09FB87DCE9CF0DC8 *)L_3, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)); goto IL_0021; } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&IndexOutOfRangeException_tDC9EF7A0346CE39E54DA1083F07BE6DFC3CE2EDD_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_000b; } if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&Exception_t_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_0014; } throw e; } CATCH_000b: { // begin catch(System.IndexOutOfRangeException) Comparison_1_t01015852A660A57F66433C7F09FB87DCE9CF0DC8 * L_4 = ___comparer3; IntrospectiveSortUtilities_ThrowOrIgnoreBadComparer_mE23A8103696FA67F874E7DA86625BB3921DB801F((RuntimeObject *)L_4, /*hidden argument*/NULL); IL2CPP_POP_ACTIVE_EXCEPTION(); goto IL_0021; } // end catch (depth: 1) CATCH_0014: { // begin catch(System.Exception) V_0 = (Exception_t *)((Exception_t *)IL2CPP_GET_ACTIVE_EXCEPTION(Exception_t *)); Exception_t * L_5 = V_0; InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB * L_6 = (InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB *)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB_il2cpp_TypeInfo_var))); InvalidOperationException__ctor_m4A65916B1316FBF45ECDF1FF7FAC9E3CA30C112C(L_6, (String_t*)((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral6EDB6C049ED9617FA335A262A29BF30B15221AEA)), (Exception_t *)L_5, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_6, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArraySortHelper_1_Sort_m4C3D844B7692E9CC36869F0AE4E9FF9E83F5D0E4_RuntimeMethod_var))); } // end catch (depth: 1) IL_0021: { return; } } // System.Int32 System.Collections.Generic.ArraySortHelper`1<System.DateTimeOffset>::InternalBinarySearch(T[],System.Int32,System.Int32,T,System.Collections.Generic.IComparer`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t ArraySortHelper_1_InternalBinarySearch_mD349A7B5F8311D0C947B7FC75188EFF54CAB512E_gshared (DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826* ___array0, int32_t ___index1, int32_t ___length2, DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5 ___value3, RuntimeObject* ___comparer4, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; int32_t V_2 = 0; int32_t V_3 = 0; { int32_t L_0 = ___index1; V_0 = (int32_t)L_0; int32_t L_1 = ___index1; int32_t L_2 = ___length2; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_1, (int32_t)L_2)), (int32_t)1)); goto IL_0035; } IL_000a: { int32_t L_3 = V_0; int32_t L_4 = V_1; int32_t L_5 = V_0; V_2 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)((int32_t)((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_4, (int32_t)L_5))>>(int32_t)1)))); RuntimeObject* L_6 = ___comparer4; DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826* L_7 = ___array0; int32_t L_8 = V_2; NullCheck(L_7); int32_t L_9 = L_8; DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5 L_10 = (L_7)->GetAt(static_cast<il2cpp_array_size_t>(L_9)); DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5 L_11 = ___value3; NullCheck((RuntimeObject*)L_6); int32_t L_12; L_12 = InterfaceFuncInvoker2< int32_t, DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5 , DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5 >::Invoke(0 /* System.Int32 System.Collections.Generic.IComparer`1<System.DateTimeOffset>::Compare(T,T) */, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 3), (RuntimeObject*)L_6, (DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5 )L_10, (DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5 )L_11); V_3 = (int32_t)L_12; int32_t L_13 = V_3; if (L_13) { goto IL_0027; } } { int32_t L_14 = V_2; return (int32_t)L_14; } IL_0027: { int32_t L_15 = V_3; if ((((int32_t)L_15) >= ((int32_t)0))) { goto IL_0031; } } { int32_t L_16 = V_2; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_16, (int32_t)1)); goto IL_0035; } IL_0031: { int32_t L_17 = V_2; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_17, (int32_t)1)); } IL_0035: { int32_t L_18 = V_0; int32_t L_19 = V_1; if ((((int32_t)L_18) <= ((int32_t)L_19))) { goto IL_000a; } } { int32_t L_20 = V_0; return (int32_t)((~L_20)); } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.DateTimeOffset>::SwapIfGreater(T[],System.Comparison`1<T>,System.Int32,System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_SwapIfGreater_mD2A8C315BA74DE90919CF48350E73DA60C45A6B9_gshared (DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826* ___keys0, Comparison_1_t01015852A660A57F66433C7F09FB87DCE9CF0DC8 * ___comparer1, int32_t ___a2, int32_t ___b3, const RuntimeMethod* method) { DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5 V_0; memset((&V_0), 0, sizeof(V_0)); { int32_t L_0 = ___a2; int32_t L_1 = ___b3; if ((((int32_t)L_0) == ((int32_t)L_1))) { goto IL_0039; } } { Comparison_1_t01015852A660A57F66433C7F09FB87DCE9CF0DC8 * L_2 = ___comparer1; DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826* L_3 = ___keys0; int32_t L_4 = ___a2; NullCheck(L_3); int32_t L_5 = L_4; DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5 L_6 = (L_3)->GetAt(static_cast<il2cpp_array_size_t>(L_5)); DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826* L_7 = ___keys0; int32_t L_8 = ___b3; NullCheck(L_7); int32_t L_9 = L_8; DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5 L_10 = (L_7)->GetAt(static_cast<il2cpp_array_size_t>(L_9)); NullCheck((Comparison_1_t01015852A660A57F66433C7F09FB87DCE9CF0DC8 *)L_2); int32_t L_11; L_11 = (( int32_t (*) (Comparison_1_t01015852A660A57F66433C7F09FB87DCE9CF0DC8 *, DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5 , DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t01015852A660A57F66433C7F09FB87DCE9CF0DC8 *)L_2, (DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5 )L_6, (DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5 )L_10, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_11) <= ((int32_t)0))) { goto IL_0039; } } { DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826* L_12 = ___keys0; int32_t L_13 = ___a2; NullCheck(L_12); int32_t L_14 = L_13; DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5 L_15 = (L_12)->GetAt(static_cast<il2cpp_array_size_t>(L_14)); V_0 = (DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5 )L_15; DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826* L_16 = ___keys0; int32_t L_17 = ___a2; DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826* L_18 = ___keys0; int32_t L_19 = ___b3; NullCheck(L_18); int32_t L_20 = L_19; DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5 L_21 = (L_18)->GetAt(static_cast<il2cpp_array_size_t>(L_20)); NullCheck(L_16); (L_16)->SetAt(static_cast<il2cpp_array_size_t>(L_17), (DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5 )L_21); DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826* L_22 = ___keys0; int32_t L_23 = ___b3; DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5 L_24 = V_0; NullCheck(L_22); (L_22)->SetAt(static_cast<il2cpp_array_size_t>(L_23), (DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5 )L_24); } IL_0039: { return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.DateTimeOffset>::Swap(T[],System.Int32,System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Swap_mEAC9BF13C53E50C2AB826341A766072D3F131C94_gshared (DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826* ___a0, int32_t ___i1, int32_t ___j2, const RuntimeMethod* method) { DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5 V_0; memset((&V_0), 0, sizeof(V_0)); { int32_t L_0 = ___i1; int32_t L_1 = ___j2; if ((((int32_t)L_0) == ((int32_t)L_1))) { goto IL_0022; } } { DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826* L_2 = ___a0; int32_t L_3 = ___i1; NullCheck(L_2); int32_t L_4 = L_3; DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5 L_5 = (L_2)->GetAt(static_cast<il2cpp_array_size_t>(L_4)); V_0 = (DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5 )L_5; DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826* L_6 = ___a0; int32_t L_7 = ___i1; DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826* L_8 = ___a0; int32_t L_9 = ___j2; NullCheck(L_8); int32_t L_10 = L_9; DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5 L_11 = (L_8)->GetAt(static_cast<il2cpp_array_size_t>(L_10)); NullCheck(L_6); (L_6)->SetAt(static_cast<il2cpp_array_size_t>(L_7), (DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5 )L_11); DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826* L_12 = ___a0; int32_t L_13 = ___j2; DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5 L_14 = V_0; NullCheck(L_12); (L_12)->SetAt(static_cast<il2cpp_array_size_t>(L_13), (DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5 )L_14); } IL_0022: { return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.DateTimeOffset>::IntrospectiveSort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_IntrospectiveSort_m4CDD86C8001CF0795350219BB7E766C34D55DFF6_gshared (DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826* ___keys0, int32_t ___left1, int32_t ___length2, Comparison_1_t01015852A660A57F66433C7F09FB87DCE9CF0DC8 * ___comparer3, const RuntimeMethod* method) { { int32_t L_0 = ___length2; if ((((int32_t)L_0) >= ((int32_t)2))) { goto IL_0005; } } { return; } IL_0005: { DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826* L_1 = ___keys0; int32_t L_2 = ___left1; int32_t L_3 = ___length2; int32_t L_4 = ___left1; DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826* L_5 = ___keys0; NullCheck(L_5); int32_t L_6; L_6 = IntrospectiveSortUtilities_FloorLog2_m05ECB6CAC7A23087D9EC2C2A4DDCFE12272C3872((int32_t)((int32_t)((int32_t)(((RuntimeArray*)L_5)->max_length))), /*hidden argument*/NULL); Comparison_1_t01015852A660A57F66433C7F09FB87DCE9CF0DC8 * L_7 = ___comparer3; (( void (*) (DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826*, int32_t, int32_t, int32_t, Comparison_1_t01015852A660A57F66433C7F09FB87DCE9CF0DC8 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)->methodPointer)((DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826*)L_1, (int32_t)L_2, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)L_4)), (int32_t)1)), (int32_t)((int32_t)il2cpp_codegen_multiply((int32_t)2, (int32_t)L_6)), (Comparison_1_t01015852A660A57F66433C7F09FB87DCE9CF0DC8 *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)); return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.DateTimeOffset>::IntroSort(T[],System.Int32,System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_IntroSort_m7193A1BDA790895009331B74FD996C18896241A0_gshared (DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826* ___keys0, int32_t ___lo1, int32_t ___hi2, int32_t ___depthLimit3, Comparison_1_t01015852A660A57F66433C7F09FB87DCE9CF0DC8 * ___comparer4, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; { goto IL_0086; } IL_0005: { int32_t L_0 = ___hi2; int32_t L_1 = ___lo1; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_0, (int32_t)L_1)), (int32_t)1)); int32_t L_2 = V_0; if ((((int32_t)L_2) > ((int32_t)((int32_t)16)))) { goto IL_0056; } } { int32_t L_3 = V_0; if ((!(((uint32_t)L_3) == ((uint32_t)1)))) { goto IL_0015; } } { return; } IL_0015: { int32_t L_4 = V_0; if ((!(((uint32_t)L_4) == ((uint32_t)2)))) { goto IL_0024; } } { DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826* L_5 = ___keys0; Comparison_1_t01015852A660A57F66433C7F09FB87DCE9CF0DC8 * L_6 = ___comparer4; int32_t L_7 = ___lo1; int32_t L_8 = ___hi2; (( void (*) (DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826*, Comparison_1_t01015852A660A57F66433C7F09FB87DCE9CF0DC8 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826*)L_5, (Comparison_1_t01015852A660A57F66433C7F09FB87DCE9CF0DC8 *)L_6, (int32_t)L_7, (int32_t)L_8, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); return; } IL_0024: { int32_t L_9 = V_0; if ((!(((uint32_t)L_9) == ((uint32_t)3)))) { goto IL_004b; } } { DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826* L_10 = ___keys0; Comparison_1_t01015852A660A57F66433C7F09FB87DCE9CF0DC8 * L_11 = ___comparer4; int32_t L_12 = ___lo1; int32_t L_13 = ___hi2; (( void (*) (DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826*, Comparison_1_t01015852A660A57F66433C7F09FB87DCE9CF0DC8 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826*)L_10, (Comparison_1_t01015852A660A57F66433C7F09FB87DCE9CF0DC8 *)L_11, (int32_t)L_12, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_13, (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826* L_14 = ___keys0; Comparison_1_t01015852A660A57F66433C7F09FB87DCE9CF0DC8 * L_15 = ___comparer4; int32_t L_16 = ___lo1; int32_t L_17 = ___hi2; (( void (*) (DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826*, Comparison_1_t01015852A660A57F66433C7F09FB87DCE9CF0DC8 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826*)L_14, (Comparison_1_t01015852A660A57F66433C7F09FB87DCE9CF0DC8 *)L_15, (int32_t)L_16, (int32_t)L_17, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826* L_18 = ___keys0; Comparison_1_t01015852A660A57F66433C7F09FB87DCE9CF0DC8 * L_19 = ___comparer4; int32_t L_20 = ___hi2; int32_t L_21 = ___hi2; (( void (*) (DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826*, Comparison_1_t01015852A660A57F66433C7F09FB87DCE9CF0DC8 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826*)L_18, (Comparison_1_t01015852A660A57F66433C7F09FB87DCE9CF0DC8 *)L_19, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_20, (int32_t)1)), (int32_t)L_21, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); return; } IL_004b: { DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826* L_22 = ___keys0; int32_t L_23 = ___lo1; int32_t L_24 = ___hi2; Comparison_1_t01015852A660A57F66433C7F09FB87DCE9CF0DC8 * L_25 = ___comparer4; (( void (*) (DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826*, int32_t, int32_t, Comparison_1_t01015852A660A57F66433C7F09FB87DCE9CF0DC8 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 12)->methodPointer)((DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826*)L_22, (int32_t)L_23, (int32_t)L_24, (Comparison_1_t01015852A660A57F66433C7F09FB87DCE9CF0DC8 *)L_25, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 12)); return; } IL_0056: { int32_t L_26 = ___depthLimit3; if (L_26) { goto IL_0064; } } { DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826* L_27 = ___keys0; int32_t L_28 = ___lo1; int32_t L_29 = ___hi2; Comparison_1_t01015852A660A57F66433C7F09FB87DCE9CF0DC8 * L_30 = ___comparer4; (( void (*) (DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826*, int32_t, int32_t, Comparison_1_t01015852A660A57F66433C7F09FB87DCE9CF0DC8 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 13)->methodPointer)((DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826*)L_27, (int32_t)L_28, (int32_t)L_29, (Comparison_1_t01015852A660A57F66433C7F09FB87DCE9CF0DC8 *)L_30, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 13)); return; } IL_0064: { int32_t L_31 = ___depthLimit3; ___depthLimit3 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_31, (int32_t)1)); DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826* L_32 = ___keys0; int32_t L_33 = ___lo1; int32_t L_34 = ___hi2; Comparison_1_t01015852A660A57F66433C7F09FB87DCE9CF0DC8 * L_35 = ___comparer4; int32_t L_36; L_36 = (( int32_t (*) (DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826*, int32_t, int32_t, Comparison_1_t01015852A660A57F66433C7F09FB87DCE9CF0DC8 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 14)->methodPointer)((DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826*)L_32, (int32_t)L_33, (int32_t)L_34, (Comparison_1_t01015852A660A57F66433C7F09FB87DCE9CF0DC8 *)L_35, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 14)); V_1 = (int32_t)L_36; DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826* L_37 = ___keys0; int32_t L_38 = V_1; int32_t L_39 = ___hi2; int32_t L_40 = ___depthLimit3; Comparison_1_t01015852A660A57F66433C7F09FB87DCE9CF0DC8 * L_41 = ___comparer4; (( void (*) (DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826*, int32_t, int32_t, int32_t, Comparison_1_t01015852A660A57F66433C7F09FB87DCE9CF0DC8 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)->methodPointer)((DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826*)L_37, (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_38, (int32_t)1)), (int32_t)L_39, (int32_t)L_40, (Comparison_1_t01015852A660A57F66433C7F09FB87DCE9CF0DC8 *)L_41, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)); int32_t L_42 = V_1; ___hi2 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_42, (int32_t)1)); } IL_0086: { int32_t L_43 = ___hi2; int32_t L_44 = ___lo1; if ((((int32_t)L_43) > ((int32_t)L_44))) { goto IL_0005; } } { return; } } // System.Int32 System.Collections.Generic.ArraySortHelper`1<System.DateTimeOffset>::PickPivotAndPartition(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t ArraySortHelper_1_PickPivotAndPartition_m916F74C10364D6A438106C7F65E0FB363638E4C2_gshared (DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826* ___keys0, int32_t ___lo1, int32_t ___hi2, Comparison_1_t01015852A660A57F66433C7F09FB87DCE9CF0DC8 * ___comparer3, const RuntimeMethod* method) { int32_t V_0 = 0; DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5 V_1; memset((&V_1), 0, sizeof(V_1)); int32_t V_2 = 0; int32_t V_3 = 0; { int32_t L_0 = ___lo1; int32_t L_1 = ___hi2; int32_t L_2 = ___lo1; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_0, (int32_t)((int32_t)((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_1, (int32_t)L_2))/(int32_t)2)))); DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826* L_3 = ___keys0; Comparison_1_t01015852A660A57F66433C7F09FB87DCE9CF0DC8 * L_4 = ___comparer3; int32_t L_5 = ___lo1; int32_t L_6 = V_0; (( void (*) (DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826*, Comparison_1_t01015852A660A57F66433C7F09FB87DCE9CF0DC8 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826*)L_3, (Comparison_1_t01015852A660A57F66433C7F09FB87DCE9CF0DC8 *)L_4, (int32_t)L_5, (int32_t)L_6, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826* L_7 = ___keys0; Comparison_1_t01015852A660A57F66433C7F09FB87DCE9CF0DC8 * L_8 = ___comparer3; int32_t L_9 = ___lo1; int32_t L_10 = ___hi2; (( void (*) (DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826*, Comparison_1_t01015852A660A57F66433C7F09FB87DCE9CF0DC8 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826*)L_7, (Comparison_1_t01015852A660A57F66433C7F09FB87DCE9CF0DC8 *)L_8, (int32_t)L_9, (int32_t)L_10, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826* L_11 = ___keys0; Comparison_1_t01015852A660A57F66433C7F09FB87DCE9CF0DC8 * L_12 = ___comparer3; int32_t L_13 = V_0; int32_t L_14 = ___hi2; (( void (*) (DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826*, Comparison_1_t01015852A660A57F66433C7F09FB87DCE9CF0DC8 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826*)L_11, (Comparison_1_t01015852A660A57F66433C7F09FB87DCE9CF0DC8 *)L_12, (int32_t)L_13, (int32_t)L_14, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826* L_15 = ___keys0; int32_t L_16 = V_0; NullCheck(L_15); int32_t L_17 = L_16; DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5 L_18 = (L_15)->GetAt(static_cast<il2cpp_array_size_t>(L_17)); V_1 = (DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5 )L_18; DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826* L_19 = ___keys0; int32_t L_20 = V_0; int32_t L_21 = ___hi2; (( void (*) (DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826*)L_19, (int32_t)L_20, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_21, (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); int32_t L_22 = ___lo1; V_2 = (int32_t)L_22; int32_t L_23 = ___hi2; V_3 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_23, (int32_t)1)); goto IL_0073; } IL_003d: { Comparison_1_t01015852A660A57F66433C7F09FB87DCE9CF0DC8 * L_24 = ___comparer3; DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826* L_25 = ___keys0; int32_t L_26 = V_2; int32_t L_27 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_26, (int32_t)1)); V_2 = (int32_t)L_27; NullCheck(L_25); int32_t L_28 = L_27; DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5 L_29 = (L_25)->GetAt(static_cast<il2cpp_array_size_t>(L_28)); DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5 L_30 = V_1; NullCheck((Comparison_1_t01015852A660A57F66433C7F09FB87DCE9CF0DC8 *)L_24); int32_t L_31; L_31 = (( int32_t (*) (Comparison_1_t01015852A660A57F66433C7F09FB87DCE9CF0DC8 *, DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5 , DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t01015852A660A57F66433C7F09FB87DCE9CF0DC8 *)L_24, (DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5 )L_29, (DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5 )L_30, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_31) < ((int32_t)0))) { goto IL_003d; } } IL_0052: { Comparison_1_t01015852A660A57F66433C7F09FB87DCE9CF0DC8 * L_32 = ___comparer3; DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5 L_33 = V_1; DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826* L_34 = ___keys0; int32_t L_35 = V_3; int32_t L_36 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_35, (int32_t)1)); V_3 = (int32_t)L_36; NullCheck(L_34); int32_t L_37 = L_36; DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5 L_38 = (L_34)->GetAt(static_cast<il2cpp_array_size_t>(L_37)); NullCheck((Comparison_1_t01015852A660A57F66433C7F09FB87DCE9CF0DC8 *)L_32); int32_t L_39; L_39 = (( int32_t (*) (Comparison_1_t01015852A660A57F66433C7F09FB87DCE9CF0DC8 *, DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5 , DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t01015852A660A57F66433C7F09FB87DCE9CF0DC8 *)L_32, (DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5 )L_33, (DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5 )L_38, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_39) < ((int32_t)0))) { goto IL_0052; } } { int32_t L_40 = V_2; int32_t L_41 = V_3; if ((((int32_t)L_40) >= ((int32_t)L_41))) { goto IL_0077; } } { DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826* L_42 = ___keys0; int32_t L_43 = V_2; int32_t L_44 = V_3; (( void (*) (DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826*)L_42, (int32_t)L_43, (int32_t)L_44, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); } IL_0073: { int32_t L_45 = V_2; int32_t L_46 = V_3; if ((((int32_t)L_45) < ((int32_t)L_46))) { goto IL_003d; } } IL_0077: { DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826* L_47 = ___keys0; int32_t L_48 = V_2; int32_t L_49 = ___hi2; (( void (*) (DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826*)L_47, (int32_t)L_48, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_49, (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); int32_t L_50 = V_2; return (int32_t)L_50; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.DateTimeOffset>::Heapsort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Heapsort_m77CF6565E5D76DA11BCD9F453F4D3FE7533E1D98_gshared (DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826* ___keys0, int32_t ___lo1, int32_t ___hi2, Comparison_1_t01015852A660A57F66433C7F09FB87DCE9CF0DC8 * ___comparer3, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; int32_t V_2 = 0; { int32_t L_0 = ___hi2; int32_t L_1 = ___lo1; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_0, (int32_t)L_1)), (int32_t)1)); int32_t L_2 = V_0; V_1 = (int32_t)((int32_t)((int32_t)L_2/(int32_t)2)); goto IL_001a; } IL_000c: { DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826* L_3 = ___keys0; int32_t L_4 = V_1; int32_t L_5 = V_0; int32_t L_6 = ___lo1; Comparison_1_t01015852A660A57F66433C7F09FB87DCE9CF0DC8 * L_7 = ___comparer3; (( void (*) (DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826*, int32_t, int32_t, int32_t, Comparison_1_t01015852A660A57F66433C7F09FB87DCE9CF0DC8 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)->methodPointer)((DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826*)L_3, (int32_t)L_4, (int32_t)L_5, (int32_t)L_6, (Comparison_1_t01015852A660A57F66433C7F09FB87DCE9CF0DC8 *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)); int32_t L_8 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_8, (int32_t)1)); } IL_001a: { int32_t L_9 = V_1; if ((((int32_t)L_9) >= ((int32_t)1))) { goto IL_000c; } } { int32_t L_10 = V_0; V_2 = (int32_t)L_10; goto IL_003e; } IL_0022: { DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826* L_11 = ___keys0; int32_t L_12 = ___lo1; int32_t L_13 = ___lo1; int32_t L_14 = V_2; (( void (*) (DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826*)L_11, (int32_t)L_12, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_13, (int32_t)L_14)), (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826* L_15 = ___keys0; int32_t L_16 = V_2; int32_t L_17 = ___lo1; Comparison_1_t01015852A660A57F66433C7F09FB87DCE9CF0DC8 * L_18 = ___comparer3; (( void (*) (DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826*, int32_t, int32_t, int32_t, Comparison_1_t01015852A660A57F66433C7F09FB87DCE9CF0DC8 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)->methodPointer)((DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826*)L_15, (int32_t)1, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_16, (int32_t)1)), (int32_t)L_17, (Comparison_1_t01015852A660A57F66433C7F09FB87DCE9CF0DC8 *)L_18, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)); int32_t L_19 = V_2; V_2 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_19, (int32_t)1)); } IL_003e: { int32_t L_20 = V_2; if ((((int32_t)L_20) > ((int32_t)1))) { goto IL_0022; } } { return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.DateTimeOffset>::DownHeap(T[],System.Int32,System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_DownHeap_m1B53F0DDD0A347D057CA5876F6555D8EC823C6E9_gshared (DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826* ___keys0, int32_t ___i1, int32_t ___n2, int32_t ___lo3, Comparison_1_t01015852A660A57F66433C7F09FB87DCE9CF0DC8 * ___comparer4, const RuntimeMethod* method) { DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5 V_0; memset((&V_0), 0, sizeof(V_0)); int32_t V_1 = 0; { DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826* L_0 = ___keys0; int32_t L_1 = ___lo3; int32_t L_2 = ___i1; NullCheck(L_0); int32_t L_3 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_1, (int32_t)L_2)), (int32_t)1)); DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5 L_4 = (L_0)->GetAt(static_cast<il2cpp_array_size_t>(L_3)); V_0 = (DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5 )L_4; goto IL_0067; } IL_000e: { int32_t L_5 = ___i1; V_1 = (int32_t)((int32_t)il2cpp_codegen_multiply((int32_t)2, (int32_t)L_5)); int32_t L_6 = V_1; int32_t L_7 = ___n2; if ((((int32_t)L_6) >= ((int32_t)L_7))) { goto IL_0038; } } { Comparison_1_t01015852A660A57F66433C7F09FB87DCE9CF0DC8 * L_8 = ___comparer4; DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826* L_9 = ___keys0; int32_t L_10 = ___lo3; int32_t L_11 = V_1; NullCheck(L_9); int32_t L_12 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_10, (int32_t)L_11)), (int32_t)1)); DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5 L_13 = (L_9)->GetAt(static_cast<il2cpp_array_size_t>(L_12)); DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826* L_14 = ___keys0; int32_t L_15 = ___lo3; int32_t L_16 = V_1; NullCheck(L_14); int32_t L_17 = ((int32_t)il2cpp_codegen_add((int32_t)L_15, (int32_t)L_16)); DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5 L_18 = (L_14)->GetAt(static_cast<il2cpp_array_size_t>(L_17)); NullCheck((Comparison_1_t01015852A660A57F66433C7F09FB87DCE9CF0DC8 *)L_8); int32_t L_19; L_19 = (( int32_t (*) (Comparison_1_t01015852A660A57F66433C7F09FB87DCE9CF0DC8 *, DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5 , DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t01015852A660A57F66433C7F09FB87DCE9CF0DC8 *)L_8, (DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5 )L_13, (DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5 )L_18, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_19) >= ((int32_t)0))) { goto IL_0038; } } { int32_t L_20 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_20, (int32_t)1)); } IL_0038: { Comparison_1_t01015852A660A57F66433C7F09FB87DCE9CF0DC8 * L_21 = ___comparer4; DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5 L_22 = V_0; DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826* L_23 = ___keys0; int32_t L_24 = ___lo3; int32_t L_25 = V_1; NullCheck(L_23); int32_t L_26 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_24, (int32_t)L_25)), (int32_t)1)); DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5 L_27 = (L_23)->GetAt(static_cast<il2cpp_array_size_t>(L_26)); NullCheck((Comparison_1_t01015852A660A57F66433C7F09FB87DCE9CF0DC8 *)L_21); int32_t L_28; L_28 = (( int32_t (*) (Comparison_1_t01015852A660A57F66433C7F09FB87DCE9CF0DC8 *, DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5 , DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t01015852A660A57F66433C7F09FB87DCE9CF0DC8 *)L_21, (DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5 )L_22, (DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5 )L_27, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_28) >= ((int32_t)0))) { goto IL_006d; } } { DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826* L_29 = ___keys0; int32_t L_30 = ___lo3; int32_t L_31 = ___i1; DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826* L_32 = ___keys0; int32_t L_33 = ___lo3; int32_t L_34 = V_1; NullCheck(L_32); int32_t L_35 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_33, (int32_t)L_34)), (int32_t)1)); DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5 L_36 = (L_32)->GetAt(static_cast<il2cpp_array_size_t>(L_35)); NullCheck(L_29); (L_29)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_30, (int32_t)L_31)), (int32_t)1))), (DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5 )L_36); int32_t L_37 = V_1; ___i1 = (int32_t)L_37; } IL_0067: { int32_t L_38 = ___i1; int32_t L_39 = ___n2; if ((((int32_t)L_38) <= ((int32_t)((int32_t)((int32_t)L_39/(int32_t)2))))) { goto IL_000e; } } IL_006d: { DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826* L_40 = ___keys0; int32_t L_41 = ___lo3; int32_t L_42 = ___i1; DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5 L_43 = V_0; NullCheck(L_40); (L_40)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_41, (int32_t)L_42)), (int32_t)1))), (DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5 )L_43); return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.DateTimeOffset>::InsertionSort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_InsertionSort_m3501BEE9C7677FA33F73163C4C64E297FC3E1B87_gshared (DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826* ___keys0, int32_t ___lo1, int32_t ___hi2, Comparison_1_t01015852A660A57F66433C7F09FB87DCE9CF0DC8 * ___comparer3, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5 V_2; memset((&V_2), 0, sizeof(V_2)); { int32_t L_0 = ___lo1; V_0 = (int32_t)L_0; goto IL_0049; } IL_0004: { int32_t L_1 = V_0; V_1 = (int32_t)L_1; DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826* L_2 = ___keys0; int32_t L_3 = V_0; NullCheck(L_2); int32_t L_4 = ((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)1)); DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5 L_5 = (L_2)->GetAt(static_cast<il2cpp_array_size_t>(L_4)); V_2 = (DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5 )L_5; goto IL_0026; } IL_0012: { DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826* L_6 = ___keys0; int32_t L_7 = V_1; DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826* L_8 = ___keys0; int32_t L_9 = V_1; NullCheck(L_8); int32_t L_10 = L_9; DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5 L_11 = (L_8)->GetAt(static_cast<il2cpp_array_size_t>(L_10)); NullCheck(L_6); (L_6)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add((int32_t)L_7, (int32_t)1))), (DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5 )L_11); int32_t L_12 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_12, (int32_t)1)); } IL_0026: { int32_t L_13 = V_1; int32_t L_14 = ___lo1; if ((((int32_t)L_13) < ((int32_t)L_14))) { goto IL_003b; } } { Comparison_1_t01015852A660A57F66433C7F09FB87DCE9CF0DC8 * L_15 = ___comparer3; DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5 L_16 = V_2; DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826* L_17 = ___keys0; int32_t L_18 = V_1; NullCheck(L_17); int32_t L_19 = L_18; DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5 L_20 = (L_17)->GetAt(static_cast<il2cpp_array_size_t>(L_19)); NullCheck((Comparison_1_t01015852A660A57F66433C7F09FB87DCE9CF0DC8 *)L_15); int32_t L_21; L_21 = (( int32_t (*) (Comparison_1_t01015852A660A57F66433C7F09FB87DCE9CF0DC8 *, DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5 , DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t01015852A660A57F66433C7F09FB87DCE9CF0DC8 *)L_15, (DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5 )L_16, (DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5 )L_20, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_21) < ((int32_t)0))) { goto IL_0012; } } IL_003b: { DateTimeOffsetU5BU5D_t81746224316E5FC7189685EFB35488C8CED41826* L_22 = ___keys0; int32_t L_23 = V_1; DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5 L_24 = V_2; NullCheck(L_22); (L_22)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add((int32_t)L_23, (int32_t)1))), (DateTimeOffset_t205B59B1EFB6646DCE3CC50553377BF6023615B5 )L_24); int32_t L_25 = V_0; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_25, (int32_t)1)); } IL_0049: { int32_t L_26 = V_0; int32_t L_27 = ___hi2; if ((((int32_t)L_26) < ((int32_t)L_27))) { goto IL_0004; } } { return; } } #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Void System.Collections.Generic.ArraySortHelper`1<System.Decimal>::Sort(T[],System.Int32,System.Int32,System.Collections.Generic.IComparer`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Sort_mD81CF98D2A4E469911751347D197940E0831D7C4_gshared (DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA* ___keys0, int32_t ___index1, int32_t ___length2, RuntimeObject* ___comparer3, const RuntimeMethod* method) { Exception_t * V_0 = NULL; il2cpp::utils::ExceptionSupportStack<RuntimeObject*, 1> __active_exceptions; il2cpp::utils::ExceptionSupportStack<int32_t, 2> __leave_targets; IL_0000: try { // begin try (depth: 1) { RuntimeObject* L_0 = ___comparer3; if (L_0) { goto IL_000a; } } IL_0003: { Comparer_1_tEFB1740196FD956BA3930F72EAB67162C60CA204 * L_1; L_1 = (( Comparer_1_tEFB1740196FD956BA3930F72EAB67162C60CA204 * (*) (const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)->methodPointer)(/*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)); ___comparer3 = (RuntimeObject*)L_1; } IL_000a: { DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA* L_2 = ___keys0; int32_t L_3 = ___index1; int32_t L_4 = ___length2; RuntimeObject* L_5 = ___comparer3; RuntimeObject* L_6 = (RuntimeObject*)L_5; Comparison_1_t7E88D390C030E2806A3AE4117C486DECF61C2955 * L_7 = (Comparison_1_t7E88D390C030E2806A3AE4117C486DECF61C2955 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 4)); (( void (*) (Comparison_1_t7E88D390C030E2806A3AE4117C486DECF61C2955 *, RuntimeObject *, intptr_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 5)->methodPointer)(L_7, (RuntimeObject *)L_6, (intptr_t)((intptr_t)GetInterfaceMethodInfo(L_6, 0, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 3))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 5)); (( void (*) (DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA*, int32_t, int32_t, Comparison_1_t7E88D390C030E2806A3AE4117C486DECF61C2955 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)->methodPointer)((DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA*)L_2, (int32_t)L_3, (int32_t)L_4, (Comparison_1_t7E88D390C030E2806A3AE4117C486DECF61C2955 *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)); goto IL_0037; } } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&IndexOutOfRangeException_tDC9EF7A0346CE39E54DA1083F07BE6DFC3CE2EDD_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_0021; } if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&Exception_t_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_002a; } throw e; } CATCH_0021: { // begin catch(System.IndexOutOfRangeException) RuntimeObject* L_8 = ___comparer3; IntrospectiveSortUtilities_ThrowOrIgnoreBadComparer_mE23A8103696FA67F874E7DA86625BB3921DB801F((RuntimeObject *)L_8, /*hidden argument*/NULL); IL2CPP_POP_ACTIVE_EXCEPTION(); goto IL_0037; } // end catch (depth: 1) CATCH_002a: { // begin catch(System.Exception) V_0 = (Exception_t *)((Exception_t *)IL2CPP_GET_ACTIVE_EXCEPTION(Exception_t *)); Exception_t * L_9 = V_0; InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB * L_10 = (InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB *)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB_il2cpp_TypeInfo_var))); InvalidOperationException__ctor_m4A65916B1316FBF45ECDF1FF7FAC9E3CA30C112C(L_10, (String_t*)((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral6EDB6C049ED9617FA335A262A29BF30B15221AEA)), (Exception_t *)L_9, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_10, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArraySortHelper_1_Sort_mD81CF98D2A4E469911751347D197940E0831D7C4_RuntimeMethod_var))); } // end catch (depth: 1) IL_0037: { return; } } // System.Int32 System.Collections.Generic.ArraySortHelper`1<System.Decimal>::BinarySearch(T[],System.Int32,System.Int32,T,System.Collections.Generic.IComparer`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t ArraySortHelper_1_BinarySearch_mA4F8BA0DD4507193D90D55CF48ADB08AB62A297D_gshared (DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA* ___array0, int32_t ___index1, int32_t ___length2, Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 ___value3, RuntimeObject* ___comparer4, const RuntimeMethod* method) { int32_t V_0 = 0; Exception_t * V_1 = NULL; il2cpp::utils::ExceptionSupportStack<RuntimeObject*, 1> __active_exceptions; il2cpp::utils::ExceptionSupportStack<int32_t, 1> __leave_targets; IL_0000: try { // begin try (depth: 1) { RuntimeObject* L_0 = ___comparer4; if (L_0) { goto IL_000b; } } IL_0004: { Comparer_1_tEFB1740196FD956BA3930F72EAB67162C60CA204 * L_1; L_1 = (( Comparer_1_tEFB1740196FD956BA3930F72EAB67162C60CA204 * (*) (const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)->methodPointer)(/*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)); ___comparer4 = (RuntimeObject*)L_1; } IL_000b: { DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA* L_2 = ___array0; int32_t L_3 = ___index1; int32_t L_4 = ___length2; Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 L_5 = ___value3; RuntimeObject* L_6 = ___comparer4; int32_t L_7; L_7 = (( int32_t (*) (DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA*, int32_t, int32_t, Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 , RuntimeObject*, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 8)->methodPointer)((DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA*)L_2, (int32_t)L_3, (int32_t)L_4, (Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 )L_5, (RuntimeObject*)L_6, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 8)); V_0 = (int32_t)L_7; goto IL_0026; } } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&Exception_t_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_0019; } throw e; } CATCH_0019: { // begin catch(System.Exception) V_1 = (Exception_t *)((Exception_t *)IL2CPP_GET_ACTIVE_EXCEPTION(Exception_t *)); Exception_t * L_8 = V_1; InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB * L_9 = (InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB *)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB_il2cpp_TypeInfo_var))); InvalidOperationException__ctor_m4A65916B1316FBF45ECDF1FF7FAC9E3CA30C112C(L_9, (String_t*)((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral6EDB6C049ED9617FA335A262A29BF30B15221AEA)), (Exception_t *)L_8, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_9, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArraySortHelper_1_BinarySearch_mA4F8BA0DD4507193D90D55CF48ADB08AB62A297D_RuntimeMethod_var))); } // end catch (depth: 1) IL_0026: { int32_t L_10 = V_0; return (int32_t)L_10; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Decimal>::Sort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Sort_m33ECB1AE9E0098CAC91C41CDDF72F6CF1A045F7B_gshared (DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA* ___keys0, int32_t ___index1, int32_t ___length2, Comparison_1_t7E88D390C030E2806A3AE4117C486DECF61C2955 * ___comparer3, const RuntimeMethod* method) { Exception_t * V_0 = NULL; il2cpp::utils::ExceptionSupportStack<RuntimeObject*, 1> __active_exceptions; il2cpp::utils::ExceptionSupportStack<int32_t, 2> __leave_targets; IL_0000: try { // begin try (depth: 1) DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA* L_0 = ___keys0; int32_t L_1 = ___index1; int32_t L_2 = ___length2; Comparison_1_t7E88D390C030E2806A3AE4117C486DECF61C2955 * L_3 = ___comparer3; (( void (*) (DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA*, int32_t, int32_t, Comparison_1_t7E88D390C030E2806A3AE4117C486DECF61C2955 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)->methodPointer)((DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA*)L_0, (int32_t)L_1, (int32_t)L_2, (Comparison_1_t7E88D390C030E2806A3AE4117C486DECF61C2955 *)L_3, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)); goto IL_0021; } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&IndexOutOfRangeException_tDC9EF7A0346CE39E54DA1083F07BE6DFC3CE2EDD_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_000b; } if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&Exception_t_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_0014; } throw e; } CATCH_000b: { // begin catch(System.IndexOutOfRangeException) Comparison_1_t7E88D390C030E2806A3AE4117C486DECF61C2955 * L_4 = ___comparer3; IntrospectiveSortUtilities_ThrowOrIgnoreBadComparer_mE23A8103696FA67F874E7DA86625BB3921DB801F((RuntimeObject *)L_4, /*hidden argument*/NULL); IL2CPP_POP_ACTIVE_EXCEPTION(); goto IL_0021; } // end catch (depth: 1) CATCH_0014: { // begin catch(System.Exception) V_0 = (Exception_t *)((Exception_t *)IL2CPP_GET_ACTIVE_EXCEPTION(Exception_t *)); Exception_t * L_5 = V_0; InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB * L_6 = (InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB *)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB_il2cpp_TypeInfo_var))); InvalidOperationException__ctor_m4A65916B1316FBF45ECDF1FF7FAC9E3CA30C112C(L_6, (String_t*)((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral6EDB6C049ED9617FA335A262A29BF30B15221AEA)), (Exception_t *)L_5, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_6, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArraySortHelper_1_Sort_m33ECB1AE9E0098CAC91C41CDDF72F6CF1A045F7B_RuntimeMethod_var))); } // end catch (depth: 1) IL_0021: { return; } } // System.Int32 System.Collections.Generic.ArraySortHelper`1<System.Decimal>::InternalBinarySearch(T[],System.Int32,System.Int32,T,System.Collections.Generic.IComparer`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t ArraySortHelper_1_InternalBinarySearch_m038252443084C39018148356C98CA3A2FE4485BF_gshared (DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA* ___array0, int32_t ___index1, int32_t ___length2, Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 ___value3, RuntimeObject* ___comparer4, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; int32_t V_2 = 0; int32_t V_3 = 0; { int32_t L_0 = ___index1; V_0 = (int32_t)L_0; int32_t L_1 = ___index1; int32_t L_2 = ___length2; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_1, (int32_t)L_2)), (int32_t)1)); goto IL_0035; } IL_000a: { int32_t L_3 = V_0; int32_t L_4 = V_1; int32_t L_5 = V_0; V_2 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)((int32_t)((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_4, (int32_t)L_5))>>(int32_t)1)))); RuntimeObject* L_6 = ___comparer4; DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA* L_7 = ___array0; int32_t L_8 = V_2; NullCheck(L_7); int32_t L_9 = L_8; Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 L_10 = (L_7)->GetAt(static_cast<il2cpp_array_size_t>(L_9)); Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 L_11 = ___value3; NullCheck((RuntimeObject*)L_6); int32_t L_12; L_12 = InterfaceFuncInvoker2< int32_t, Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 , Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 >::Invoke(0 /* System.Int32 System.Collections.Generic.IComparer`1<System.Decimal>::Compare(T,T) */, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 3), (RuntimeObject*)L_6, (Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 )L_10, (Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 )L_11); V_3 = (int32_t)L_12; int32_t L_13 = V_3; if (L_13) { goto IL_0027; } } { int32_t L_14 = V_2; return (int32_t)L_14; } IL_0027: { int32_t L_15 = V_3; if ((((int32_t)L_15) >= ((int32_t)0))) { goto IL_0031; } } { int32_t L_16 = V_2; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_16, (int32_t)1)); goto IL_0035; } IL_0031: { int32_t L_17 = V_2; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_17, (int32_t)1)); } IL_0035: { int32_t L_18 = V_0; int32_t L_19 = V_1; if ((((int32_t)L_18) <= ((int32_t)L_19))) { goto IL_000a; } } { int32_t L_20 = V_0; return (int32_t)((~L_20)); } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Decimal>::SwapIfGreater(T[],System.Comparison`1<T>,System.Int32,System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_SwapIfGreater_m791E3FE1C4960994A560CF009FA66A34719ABA5D_gshared (DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA* ___keys0, Comparison_1_t7E88D390C030E2806A3AE4117C486DECF61C2955 * ___comparer1, int32_t ___a2, int32_t ___b3, const RuntimeMethod* method) { Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 V_0; memset((&V_0), 0, sizeof(V_0)); { int32_t L_0 = ___a2; int32_t L_1 = ___b3; if ((((int32_t)L_0) == ((int32_t)L_1))) { goto IL_0039; } } { Comparison_1_t7E88D390C030E2806A3AE4117C486DECF61C2955 * L_2 = ___comparer1; DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA* L_3 = ___keys0; int32_t L_4 = ___a2; NullCheck(L_3); int32_t L_5 = L_4; Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 L_6 = (L_3)->GetAt(static_cast<il2cpp_array_size_t>(L_5)); DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA* L_7 = ___keys0; int32_t L_8 = ___b3; NullCheck(L_7); int32_t L_9 = L_8; Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 L_10 = (L_7)->GetAt(static_cast<il2cpp_array_size_t>(L_9)); NullCheck((Comparison_1_t7E88D390C030E2806A3AE4117C486DECF61C2955 *)L_2); int32_t L_11; L_11 = (( int32_t (*) (Comparison_1_t7E88D390C030E2806A3AE4117C486DECF61C2955 *, Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 , Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t7E88D390C030E2806A3AE4117C486DECF61C2955 *)L_2, (Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 )L_6, (Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 )L_10, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_11) <= ((int32_t)0))) { goto IL_0039; } } { DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA* L_12 = ___keys0; int32_t L_13 = ___a2; NullCheck(L_12); int32_t L_14 = L_13; Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 L_15 = (L_12)->GetAt(static_cast<il2cpp_array_size_t>(L_14)); V_0 = (Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 )L_15; DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA* L_16 = ___keys0; int32_t L_17 = ___a2; DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA* L_18 = ___keys0; int32_t L_19 = ___b3; NullCheck(L_18); int32_t L_20 = L_19; Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 L_21 = (L_18)->GetAt(static_cast<il2cpp_array_size_t>(L_20)); NullCheck(L_16); (L_16)->SetAt(static_cast<il2cpp_array_size_t>(L_17), (Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 )L_21); DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA* L_22 = ___keys0; int32_t L_23 = ___b3; Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 L_24 = V_0; NullCheck(L_22); (L_22)->SetAt(static_cast<il2cpp_array_size_t>(L_23), (Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 )L_24); } IL_0039: { return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Decimal>::Swap(T[],System.Int32,System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Swap_mCC2563833745992B5C3C62849EE30E13037CCB4E_gshared (DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA* ___a0, int32_t ___i1, int32_t ___j2, const RuntimeMethod* method) { Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 V_0; memset((&V_0), 0, sizeof(V_0)); { int32_t L_0 = ___i1; int32_t L_1 = ___j2; if ((((int32_t)L_0) == ((int32_t)L_1))) { goto IL_0022; } } { DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA* L_2 = ___a0; int32_t L_3 = ___i1; NullCheck(L_2); int32_t L_4 = L_3; Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 L_5 = (L_2)->GetAt(static_cast<il2cpp_array_size_t>(L_4)); V_0 = (Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 )L_5; DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA* L_6 = ___a0; int32_t L_7 = ___i1; DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA* L_8 = ___a0; int32_t L_9 = ___j2; NullCheck(L_8); int32_t L_10 = L_9; Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 L_11 = (L_8)->GetAt(static_cast<il2cpp_array_size_t>(L_10)); NullCheck(L_6); (L_6)->SetAt(static_cast<il2cpp_array_size_t>(L_7), (Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 )L_11); DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA* L_12 = ___a0; int32_t L_13 = ___j2; Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 L_14 = V_0; NullCheck(L_12); (L_12)->SetAt(static_cast<il2cpp_array_size_t>(L_13), (Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 )L_14); } IL_0022: { return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Decimal>::IntrospectiveSort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_IntrospectiveSort_m8D4714C1F661985F6CCD9DD95E4A7181B482B21C_gshared (DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA* ___keys0, int32_t ___left1, int32_t ___length2, Comparison_1_t7E88D390C030E2806A3AE4117C486DECF61C2955 * ___comparer3, const RuntimeMethod* method) { { int32_t L_0 = ___length2; if ((((int32_t)L_0) >= ((int32_t)2))) { goto IL_0005; } } { return; } IL_0005: { DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA* L_1 = ___keys0; int32_t L_2 = ___left1; int32_t L_3 = ___length2; int32_t L_4 = ___left1; DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA* L_5 = ___keys0; NullCheck(L_5); int32_t L_6; L_6 = IntrospectiveSortUtilities_FloorLog2_m05ECB6CAC7A23087D9EC2C2A4DDCFE12272C3872((int32_t)((int32_t)((int32_t)(((RuntimeArray*)L_5)->max_length))), /*hidden argument*/NULL); Comparison_1_t7E88D390C030E2806A3AE4117C486DECF61C2955 * L_7 = ___comparer3; (( void (*) (DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA*, int32_t, int32_t, int32_t, Comparison_1_t7E88D390C030E2806A3AE4117C486DECF61C2955 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)->methodPointer)((DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA*)L_1, (int32_t)L_2, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)L_4)), (int32_t)1)), (int32_t)((int32_t)il2cpp_codegen_multiply((int32_t)2, (int32_t)L_6)), (Comparison_1_t7E88D390C030E2806A3AE4117C486DECF61C2955 *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)); return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Decimal>::IntroSort(T[],System.Int32,System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_IntroSort_mF7F5BC1F4004062BFE81D4BD241E863FC190F7E5_gshared (DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA* ___keys0, int32_t ___lo1, int32_t ___hi2, int32_t ___depthLimit3, Comparison_1_t7E88D390C030E2806A3AE4117C486DECF61C2955 * ___comparer4, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; { goto IL_0086; } IL_0005: { int32_t L_0 = ___hi2; int32_t L_1 = ___lo1; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_0, (int32_t)L_1)), (int32_t)1)); int32_t L_2 = V_0; if ((((int32_t)L_2) > ((int32_t)((int32_t)16)))) { goto IL_0056; } } { int32_t L_3 = V_0; if ((!(((uint32_t)L_3) == ((uint32_t)1)))) { goto IL_0015; } } { return; } IL_0015: { int32_t L_4 = V_0; if ((!(((uint32_t)L_4) == ((uint32_t)2)))) { goto IL_0024; } } { DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA* L_5 = ___keys0; Comparison_1_t7E88D390C030E2806A3AE4117C486DECF61C2955 * L_6 = ___comparer4; int32_t L_7 = ___lo1; int32_t L_8 = ___hi2; (( void (*) (DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA*, Comparison_1_t7E88D390C030E2806A3AE4117C486DECF61C2955 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA*)L_5, (Comparison_1_t7E88D390C030E2806A3AE4117C486DECF61C2955 *)L_6, (int32_t)L_7, (int32_t)L_8, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); return; } IL_0024: { int32_t L_9 = V_0; if ((!(((uint32_t)L_9) == ((uint32_t)3)))) { goto IL_004b; } } { DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA* L_10 = ___keys0; Comparison_1_t7E88D390C030E2806A3AE4117C486DECF61C2955 * L_11 = ___comparer4; int32_t L_12 = ___lo1; int32_t L_13 = ___hi2; (( void (*) (DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA*, Comparison_1_t7E88D390C030E2806A3AE4117C486DECF61C2955 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA*)L_10, (Comparison_1_t7E88D390C030E2806A3AE4117C486DECF61C2955 *)L_11, (int32_t)L_12, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_13, (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA* L_14 = ___keys0; Comparison_1_t7E88D390C030E2806A3AE4117C486DECF61C2955 * L_15 = ___comparer4; int32_t L_16 = ___lo1; int32_t L_17 = ___hi2; (( void (*) (DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA*, Comparison_1_t7E88D390C030E2806A3AE4117C486DECF61C2955 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA*)L_14, (Comparison_1_t7E88D390C030E2806A3AE4117C486DECF61C2955 *)L_15, (int32_t)L_16, (int32_t)L_17, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA* L_18 = ___keys0; Comparison_1_t7E88D390C030E2806A3AE4117C486DECF61C2955 * L_19 = ___comparer4; int32_t L_20 = ___hi2; int32_t L_21 = ___hi2; (( void (*) (DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA*, Comparison_1_t7E88D390C030E2806A3AE4117C486DECF61C2955 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA*)L_18, (Comparison_1_t7E88D390C030E2806A3AE4117C486DECF61C2955 *)L_19, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_20, (int32_t)1)), (int32_t)L_21, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); return; } IL_004b: { DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA* L_22 = ___keys0; int32_t L_23 = ___lo1; int32_t L_24 = ___hi2; Comparison_1_t7E88D390C030E2806A3AE4117C486DECF61C2955 * L_25 = ___comparer4; (( void (*) (DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA*, int32_t, int32_t, Comparison_1_t7E88D390C030E2806A3AE4117C486DECF61C2955 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 12)->methodPointer)((DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA*)L_22, (int32_t)L_23, (int32_t)L_24, (Comparison_1_t7E88D390C030E2806A3AE4117C486DECF61C2955 *)L_25, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 12)); return; } IL_0056: { int32_t L_26 = ___depthLimit3; if (L_26) { goto IL_0064; } } { DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA* L_27 = ___keys0; int32_t L_28 = ___lo1; int32_t L_29 = ___hi2; Comparison_1_t7E88D390C030E2806A3AE4117C486DECF61C2955 * L_30 = ___comparer4; (( void (*) (DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA*, int32_t, int32_t, Comparison_1_t7E88D390C030E2806A3AE4117C486DECF61C2955 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 13)->methodPointer)((DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA*)L_27, (int32_t)L_28, (int32_t)L_29, (Comparison_1_t7E88D390C030E2806A3AE4117C486DECF61C2955 *)L_30, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 13)); return; } IL_0064: { int32_t L_31 = ___depthLimit3; ___depthLimit3 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_31, (int32_t)1)); DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA* L_32 = ___keys0; int32_t L_33 = ___lo1; int32_t L_34 = ___hi2; Comparison_1_t7E88D390C030E2806A3AE4117C486DECF61C2955 * L_35 = ___comparer4; int32_t L_36; L_36 = (( int32_t (*) (DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA*, int32_t, int32_t, Comparison_1_t7E88D390C030E2806A3AE4117C486DECF61C2955 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 14)->methodPointer)((DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA*)L_32, (int32_t)L_33, (int32_t)L_34, (Comparison_1_t7E88D390C030E2806A3AE4117C486DECF61C2955 *)L_35, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 14)); V_1 = (int32_t)L_36; DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA* L_37 = ___keys0; int32_t L_38 = V_1; int32_t L_39 = ___hi2; int32_t L_40 = ___depthLimit3; Comparison_1_t7E88D390C030E2806A3AE4117C486DECF61C2955 * L_41 = ___comparer4; (( void (*) (DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA*, int32_t, int32_t, int32_t, Comparison_1_t7E88D390C030E2806A3AE4117C486DECF61C2955 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)->methodPointer)((DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA*)L_37, (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_38, (int32_t)1)), (int32_t)L_39, (int32_t)L_40, (Comparison_1_t7E88D390C030E2806A3AE4117C486DECF61C2955 *)L_41, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)); int32_t L_42 = V_1; ___hi2 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_42, (int32_t)1)); } IL_0086: { int32_t L_43 = ___hi2; int32_t L_44 = ___lo1; if ((((int32_t)L_43) > ((int32_t)L_44))) { goto IL_0005; } } { return; } } // System.Int32 System.Collections.Generic.ArraySortHelper`1<System.Decimal>::PickPivotAndPartition(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t ArraySortHelper_1_PickPivotAndPartition_mA02BE0EEC3F8CE158988E4DFCFBB548CC099BA51_gshared (DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA* ___keys0, int32_t ___lo1, int32_t ___hi2, Comparison_1_t7E88D390C030E2806A3AE4117C486DECF61C2955 * ___comparer3, const RuntimeMethod* method) { int32_t V_0 = 0; Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 V_1; memset((&V_1), 0, sizeof(V_1)); int32_t V_2 = 0; int32_t V_3 = 0; { int32_t L_0 = ___lo1; int32_t L_1 = ___hi2; int32_t L_2 = ___lo1; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_0, (int32_t)((int32_t)((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_1, (int32_t)L_2))/(int32_t)2)))); DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA* L_3 = ___keys0; Comparison_1_t7E88D390C030E2806A3AE4117C486DECF61C2955 * L_4 = ___comparer3; int32_t L_5 = ___lo1; int32_t L_6 = V_0; (( void (*) (DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA*, Comparison_1_t7E88D390C030E2806A3AE4117C486DECF61C2955 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA*)L_3, (Comparison_1_t7E88D390C030E2806A3AE4117C486DECF61C2955 *)L_4, (int32_t)L_5, (int32_t)L_6, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA* L_7 = ___keys0; Comparison_1_t7E88D390C030E2806A3AE4117C486DECF61C2955 * L_8 = ___comparer3; int32_t L_9 = ___lo1; int32_t L_10 = ___hi2; (( void (*) (DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA*, Comparison_1_t7E88D390C030E2806A3AE4117C486DECF61C2955 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA*)L_7, (Comparison_1_t7E88D390C030E2806A3AE4117C486DECF61C2955 *)L_8, (int32_t)L_9, (int32_t)L_10, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA* L_11 = ___keys0; Comparison_1_t7E88D390C030E2806A3AE4117C486DECF61C2955 * L_12 = ___comparer3; int32_t L_13 = V_0; int32_t L_14 = ___hi2; (( void (*) (DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA*, Comparison_1_t7E88D390C030E2806A3AE4117C486DECF61C2955 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA*)L_11, (Comparison_1_t7E88D390C030E2806A3AE4117C486DECF61C2955 *)L_12, (int32_t)L_13, (int32_t)L_14, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA* L_15 = ___keys0; int32_t L_16 = V_0; NullCheck(L_15); int32_t L_17 = L_16; Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 L_18 = (L_15)->GetAt(static_cast<il2cpp_array_size_t>(L_17)); V_1 = (Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 )L_18; DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA* L_19 = ___keys0; int32_t L_20 = V_0; int32_t L_21 = ___hi2; (( void (*) (DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA*)L_19, (int32_t)L_20, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_21, (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); int32_t L_22 = ___lo1; V_2 = (int32_t)L_22; int32_t L_23 = ___hi2; V_3 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_23, (int32_t)1)); goto IL_0073; } IL_003d: { Comparison_1_t7E88D390C030E2806A3AE4117C486DECF61C2955 * L_24 = ___comparer3; DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA* L_25 = ___keys0; int32_t L_26 = V_2; int32_t L_27 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_26, (int32_t)1)); V_2 = (int32_t)L_27; NullCheck(L_25); int32_t L_28 = L_27; Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 L_29 = (L_25)->GetAt(static_cast<il2cpp_array_size_t>(L_28)); Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 L_30 = V_1; NullCheck((Comparison_1_t7E88D390C030E2806A3AE4117C486DECF61C2955 *)L_24); int32_t L_31; L_31 = (( int32_t (*) (Comparison_1_t7E88D390C030E2806A3AE4117C486DECF61C2955 *, Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 , Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t7E88D390C030E2806A3AE4117C486DECF61C2955 *)L_24, (Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 )L_29, (Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 )L_30, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_31) < ((int32_t)0))) { goto IL_003d; } } IL_0052: { Comparison_1_t7E88D390C030E2806A3AE4117C486DECF61C2955 * L_32 = ___comparer3; Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 L_33 = V_1; DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA* L_34 = ___keys0; int32_t L_35 = V_3; int32_t L_36 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_35, (int32_t)1)); V_3 = (int32_t)L_36; NullCheck(L_34); int32_t L_37 = L_36; Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 L_38 = (L_34)->GetAt(static_cast<il2cpp_array_size_t>(L_37)); NullCheck((Comparison_1_t7E88D390C030E2806A3AE4117C486DECF61C2955 *)L_32); int32_t L_39; L_39 = (( int32_t (*) (Comparison_1_t7E88D390C030E2806A3AE4117C486DECF61C2955 *, Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 , Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t7E88D390C030E2806A3AE4117C486DECF61C2955 *)L_32, (Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 )L_33, (Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 )L_38, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_39) < ((int32_t)0))) { goto IL_0052; } } { int32_t L_40 = V_2; int32_t L_41 = V_3; if ((((int32_t)L_40) >= ((int32_t)L_41))) { goto IL_0077; } } { DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA* L_42 = ___keys0; int32_t L_43 = V_2; int32_t L_44 = V_3; (( void (*) (DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA*)L_42, (int32_t)L_43, (int32_t)L_44, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); } IL_0073: { int32_t L_45 = V_2; int32_t L_46 = V_3; if ((((int32_t)L_45) < ((int32_t)L_46))) { goto IL_003d; } } IL_0077: { DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA* L_47 = ___keys0; int32_t L_48 = V_2; int32_t L_49 = ___hi2; (( void (*) (DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA*)L_47, (int32_t)L_48, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_49, (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); int32_t L_50 = V_2; return (int32_t)L_50; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Decimal>::Heapsort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Heapsort_mFEDC8B2520366FA260E070D02BF088255F161E3E_gshared (DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA* ___keys0, int32_t ___lo1, int32_t ___hi2, Comparison_1_t7E88D390C030E2806A3AE4117C486DECF61C2955 * ___comparer3, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; int32_t V_2 = 0; { int32_t L_0 = ___hi2; int32_t L_1 = ___lo1; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_0, (int32_t)L_1)), (int32_t)1)); int32_t L_2 = V_0; V_1 = (int32_t)((int32_t)((int32_t)L_2/(int32_t)2)); goto IL_001a; } IL_000c: { DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA* L_3 = ___keys0; int32_t L_4 = V_1; int32_t L_5 = V_0; int32_t L_6 = ___lo1; Comparison_1_t7E88D390C030E2806A3AE4117C486DECF61C2955 * L_7 = ___comparer3; (( void (*) (DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA*, int32_t, int32_t, int32_t, Comparison_1_t7E88D390C030E2806A3AE4117C486DECF61C2955 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)->methodPointer)((DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA*)L_3, (int32_t)L_4, (int32_t)L_5, (int32_t)L_6, (Comparison_1_t7E88D390C030E2806A3AE4117C486DECF61C2955 *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)); int32_t L_8 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_8, (int32_t)1)); } IL_001a: { int32_t L_9 = V_1; if ((((int32_t)L_9) >= ((int32_t)1))) { goto IL_000c; } } { int32_t L_10 = V_0; V_2 = (int32_t)L_10; goto IL_003e; } IL_0022: { DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA* L_11 = ___keys0; int32_t L_12 = ___lo1; int32_t L_13 = ___lo1; int32_t L_14 = V_2; (( void (*) (DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA*)L_11, (int32_t)L_12, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_13, (int32_t)L_14)), (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA* L_15 = ___keys0; int32_t L_16 = V_2; int32_t L_17 = ___lo1; Comparison_1_t7E88D390C030E2806A3AE4117C486DECF61C2955 * L_18 = ___comparer3; (( void (*) (DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA*, int32_t, int32_t, int32_t, Comparison_1_t7E88D390C030E2806A3AE4117C486DECF61C2955 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)->methodPointer)((DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA*)L_15, (int32_t)1, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_16, (int32_t)1)), (int32_t)L_17, (Comparison_1_t7E88D390C030E2806A3AE4117C486DECF61C2955 *)L_18, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)); int32_t L_19 = V_2; V_2 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_19, (int32_t)1)); } IL_003e: { int32_t L_20 = V_2; if ((((int32_t)L_20) > ((int32_t)1))) { goto IL_0022; } } { return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Decimal>::DownHeap(T[],System.Int32,System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_DownHeap_mA7BC3400377237B2B32D2405D8798C10CD9B2A76_gshared (DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA* ___keys0, int32_t ___i1, int32_t ___n2, int32_t ___lo3, Comparison_1_t7E88D390C030E2806A3AE4117C486DECF61C2955 * ___comparer4, const RuntimeMethod* method) { Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 V_0; memset((&V_0), 0, sizeof(V_0)); int32_t V_1 = 0; { DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA* L_0 = ___keys0; int32_t L_1 = ___lo3; int32_t L_2 = ___i1; NullCheck(L_0); int32_t L_3 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_1, (int32_t)L_2)), (int32_t)1)); Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 L_4 = (L_0)->GetAt(static_cast<il2cpp_array_size_t>(L_3)); V_0 = (Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 )L_4; goto IL_0067; } IL_000e: { int32_t L_5 = ___i1; V_1 = (int32_t)((int32_t)il2cpp_codegen_multiply((int32_t)2, (int32_t)L_5)); int32_t L_6 = V_1; int32_t L_7 = ___n2; if ((((int32_t)L_6) >= ((int32_t)L_7))) { goto IL_0038; } } { Comparison_1_t7E88D390C030E2806A3AE4117C486DECF61C2955 * L_8 = ___comparer4; DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA* L_9 = ___keys0; int32_t L_10 = ___lo3; int32_t L_11 = V_1; NullCheck(L_9); int32_t L_12 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_10, (int32_t)L_11)), (int32_t)1)); Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 L_13 = (L_9)->GetAt(static_cast<il2cpp_array_size_t>(L_12)); DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA* L_14 = ___keys0; int32_t L_15 = ___lo3; int32_t L_16 = V_1; NullCheck(L_14); int32_t L_17 = ((int32_t)il2cpp_codegen_add((int32_t)L_15, (int32_t)L_16)); Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 L_18 = (L_14)->GetAt(static_cast<il2cpp_array_size_t>(L_17)); NullCheck((Comparison_1_t7E88D390C030E2806A3AE4117C486DECF61C2955 *)L_8); int32_t L_19; L_19 = (( int32_t (*) (Comparison_1_t7E88D390C030E2806A3AE4117C486DECF61C2955 *, Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 , Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t7E88D390C030E2806A3AE4117C486DECF61C2955 *)L_8, (Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 )L_13, (Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 )L_18, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_19) >= ((int32_t)0))) { goto IL_0038; } } { int32_t L_20 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_20, (int32_t)1)); } IL_0038: { Comparison_1_t7E88D390C030E2806A3AE4117C486DECF61C2955 * L_21 = ___comparer4; Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 L_22 = V_0; DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA* L_23 = ___keys0; int32_t L_24 = ___lo3; int32_t L_25 = V_1; NullCheck(L_23); int32_t L_26 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_24, (int32_t)L_25)), (int32_t)1)); Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 L_27 = (L_23)->GetAt(static_cast<il2cpp_array_size_t>(L_26)); NullCheck((Comparison_1_t7E88D390C030E2806A3AE4117C486DECF61C2955 *)L_21); int32_t L_28; L_28 = (( int32_t (*) (Comparison_1_t7E88D390C030E2806A3AE4117C486DECF61C2955 *, Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 , Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t7E88D390C030E2806A3AE4117C486DECF61C2955 *)L_21, (Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 )L_22, (Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 )L_27, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_28) >= ((int32_t)0))) { goto IL_006d; } } { DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA* L_29 = ___keys0; int32_t L_30 = ___lo3; int32_t L_31 = ___i1; DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA* L_32 = ___keys0; int32_t L_33 = ___lo3; int32_t L_34 = V_1; NullCheck(L_32); int32_t L_35 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_33, (int32_t)L_34)), (int32_t)1)); Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 L_36 = (L_32)->GetAt(static_cast<il2cpp_array_size_t>(L_35)); NullCheck(L_29); (L_29)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_30, (int32_t)L_31)), (int32_t)1))), (Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 )L_36); int32_t L_37 = V_1; ___i1 = (int32_t)L_37; } IL_0067: { int32_t L_38 = ___i1; int32_t L_39 = ___n2; if ((((int32_t)L_38) <= ((int32_t)((int32_t)((int32_t)L_39/(int32_t)2))))) { goto IL_000e; } } IL_006d: { DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA* L_40 = ___keys0; int32_t L_41 = ___lo3; int32_t L_42 = ___i1; Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 L_43 = V_0; NullCheck(L_40); (L_40)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_41, (int32_t)L_42)), (int32_t)1))), (Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 )L_43); return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Decimal>::InsertionSort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_InsertionSort_mB69F516A51DACF06ACEB945FF367B9F2BFFED227_gshared (DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA* ___keys0, int32_t ___lo1, int32_t ___hi2, Comparison_1_t7E88D390C030E2806A3AE4117C486DECF61C2955 * ___comparer3, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 V_2; memset((&V_2), 0, sizeof(V_2)); { int32_t L_0 = ___lo1; V_0 = (int32_t)L_0; goto IL_0049; } IL_0004: { int32_t L_1 = V_0; V_1 = (int32_t)L_1; DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA* L_2 = ___keys0; int32_t L_3 = V_0; NullCheck(L_2); int32_t L_4 = ((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)1)); Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 L_5 = (L_2)->GetAt(static_cast<il2cpp_array_size_t>(L_4)); V_2 = (Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 )L_5; goto IL_0026; } IL_0012: { DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA* L_6 = ___keys0; int32_t L_7 = V_1; DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA* L_8 = ___keys0; int32_t L_9 = V_1; NullCheck(L_8); int32_t L_10 = L_9; Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 L_11 = (L_8)->GetAt(static_cast<il2cpp_array_size_t>(L_10)); NullCheck(L_6); (L_6)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add((int32_t)L_7, (int32_t)1))), (Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 )L_11); int32_t L_12 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_12, (int32_t)1)); } IL_0026: { int32_t L_13 = V_1; int32_t L_14 = ___lo1; if ((((int32_t)L_13) < ((int32_t)L_14))) { goto IL_003b; } } { Comparison_1_t7E88D390C030E2806A3AE4117C486DECF61C2955 * L_15 = ___comparer3; Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 L_16 = V_2; DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA* L_17 = ___keys0; int32_t L_18 = V_1; NullCheck(L_17); int32_t L_19 = L_18; Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 L_20 = (L_17)->GetAt(static_cast<il2cpp_array_size_t>(L_19)); NullCheck((Comparison_1_t7E88D390C030E2806A3AE4117C486DECF61C2955 *)L_15); int32_t L_21; L_21 = (( int32_t (*) (Comparison_1_t7E88D390C030E2806A3AE4117C486DECF61C2955 *, Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 , Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t7E88D390C030E2806A3AE4117C486DECF61C2955 *)L_15, (Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 )L_16, (Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 )L_20, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_21) < ((int32_t)0))) { goto IL_0012; } } IL_003b: { DecimalU5BU5D_tAA3302A4A6ACCE77638A2346993A0FAAE2F9FDBA* L_22 = ___keys0; int32_t L_23 = V_1; Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 L_24 = V_2; NullCheck(L_22); (L_22)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add((int32_t)L_23, (int32_t)1))), (Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 )L_24); int32_t L_25 = V_0; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_25, (int32_t)1)); } IL_0049: { int32_t L_26 = V_0; int32_t L_27 = ___hi2; if ((((int32_t)L_26) < ((int32_t)L_27))) { goto IL_0004; } } { return; } } #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Void System.Collections.Generic.ArraySortHelper`1<System.Double>::Sort(T[],System.Int32,System.Int32,System.Collections.Generic.IComparer`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Sort_m72D76D9704C02DD92B41C7AD6F540111D51B08CB_gshared (DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB* ___keys0, int32_t ___index1, int32_t ___length2, RuntimeObject* ___comparer3, const RuntimeMethod* method) { Exception_t * V_0 = NULL; il2cpp::utils::ExceptionSupportStack<RuntimeObject*, 1> __active_exceptions; il2cpp::utils::ExceptionSupportStack<int32_t, 2> __leave_targets; IL_0000: try { // begin try (depth: 1) { RuntimeObject* L_0 = ___comparer3; if (L_0) { goto IL_000a; } } IL_0003: { Comparer_1_tFA7BB54D9C304F3F609A9370166110D973A8307C * L_1; L_1 = (( Comparer_1_tFA7BB54D9C304F3F609A9370166110D973A8307C * (*) (const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)->methodPointer)(/*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)); ___comparer3 = (RuntimeObject*)L_1; } IL_000a: { DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB* L_2 = ___keys0; int32_t L_3 = ___index1; int32_t L_4 = ___length2; RuntimeObject* L_5 = ___comparer3; RuntimeObject* L_6 = (RuntimeObject*)L_5; Comparison_1_t08C078C3FDDD0746272F4DC7A982874AB477F342 * L_7 = (Comparison_1_t08C078C3FDDD0746272F4DC7A982874AB477F342 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 4)); (( void (*) (Comparison_1_t08C078C3FDDD0746272F4DC7A982874AB477F342 *, RuntimeObject *, intptr_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 5)->methodPointer)(L_7, (RuntimeObject *)L_6, (intptr_t)((intptr_t)GetInterfaceMethodInfo(L_6, 0, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 3))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 5)); (( void (*) (DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB*, int32_t, int32_t, Comparison_1_t08C078C3FDDD0746272F4DC7A982874AB477F342 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)->methodPointer)((DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB*)L_2, (int32_t)L_3, (int32_t)L_4, (Comparison_1_t08C078C3FDDD0746272F4DC7A982874AB477F342 *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)); goto IL_0037; } } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&IndexOutOfRangeException_tDC9EF7A0346CE39E54DA1083F07BE6DFC3CE2EDD_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_0021; } if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&Exception_t_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_002a; } throw e; } CATCH_0021: { // begin catch(System.IndexOutOfRangeException) RuntimeObject* L_8 = ___comparer3; IntrospectiveSortUtilities_ThrowOrIgnoreBadComparer_mE23A8103696FA67F874E7DA86625BB3921DB801F((RuntimeObject *)L_8, /*hidden argument*/NULL); IL2CPP_POP_ACTIVE_EXCEPTION(); goto IL_0037; } // end catch (depth: 1) CATCH_002a: { // begin catch(System.Exception) V_0 = (Exception_t *)((Exception_t *)IL2CPP_GET_ACTIVE_EXCEPTION(Exception_t *)); Exception_t * L_9 = V_0; InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB * L_10 = (InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB *)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB_il2cpp_TypeInfo_var))); InvalidOperationException__ctor_m4A65916B1316FBF45ECDF1FF7FAC9E3CA30C112C(L_10, (String_t*)((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral6EDB6C049ED9617FA335A262A29BF30B15221AEA)), (Exception_t *)L_9, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_10, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArraySortHelper_1_Sort_m72D76D9704C02DD92B41C7AD6F540111D51B08CB_RuntimeMethod_var))); } // end catch (depth: 1) IL_0037: { return; } } // System.Int32 System.Collections.Generic.ArraySortHelper`1<System.Double>::BinarySearch(T[],System.Int32,System.Int32,T,System.Collections.Generic.IComparer`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t ArraySortHelper_1_BinarySearch_mA38479F54D222A5F0EDE55CE54F189EDA43C60D3_gshared (DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB* ___array0, int32_t ___index1, int32_t ___length2, double ___value3, RuntimeObject* ___comparer4, const RuntimeMethod* method) { int32_t V_0 = 0; Exception_t * V_1 = NULL; il2cpp::utils::ExceptionSupportStack<RuntimeObject*, 1> __active_exceptions; il2cpp::utils::ExceptionSupportStack<int32_t, 1> __leave_targets; IL_0000: try { // begin try (depth: 1) { RuntimeObject* L_0 = ___comparer4; if (L_0) { goto IL_000b; } } IL_0004: { Comparer_1_tFA7BB54D9C304F3F609A9370166110D973A8307C * L_1; L_1 = (( Comparer_1_tFA7BB54D9C304F3F609A9370166110D973A8307C * (*) (const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)->methodPointer)(/*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)); ___comparer4 = (RuntimeObject*)L_1; } IL_000b: { DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB* L_2 = ___array0; int32_t L_3 = ___index1; int32_t L_4 = ___length2; double L_5 = ___value3; RuntimeObject* L_6 = ___comparer4; int32_t L_7; L_7 = (( int32_t (*) (DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB*, int32_t, int32_t, double, RuntimeObject*, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 8)->methodPointer)((DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB*)L_2, (int32_t)L_3, (int32_t)L_4, (double)L_5, (RuntimeObject*)L_6, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 8)); V_0 = (int32_t)L_7; goto IL_0026; } } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&Exception_t_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_0019; } throw e; } CATCH_0019: { // begin catch(System.Exception) V_1 = (Exception_t *)((Exception_t *)IL2CPP_GET_ACTIVE_EXCEPTION(Exception_t *)); Exception_t * L_8 = V_1; InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB * L_9 = (InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB *)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB_il2cpp_TypeInfo_var))); InvalidOperationException__ctor_m4A65916B1316FBF45ECDF1FF7FAC9E3CA30C112C(L_9, (String_t*)((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral6EDB6C049ED9617FA335A262A29BF30B15221AEA)), (Exception_t *)L_8, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_9, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArraySortHelper_1_BinarySearch_mA38479F54D222A5F0EDE55CE54F189EDA43C60D3_RuntimeMethod_var))); } // end catch (depth: 1) IL_0026: { int32_t L_10 = V_0; return (int32_t)L_10; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Double>::Sort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Sort_mFC586C83A51D59AE3A065E32DC0E9556FEAF341F_gshared (DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB* ___keys0, int32_t ___index1, int32_t ___length2, Comparison_1_t08C078C3FDDD0746272F4DC7A982874AB477F342 * ___comparer3, const RuntimeMethod* method) { Exception_t * V_0 = NULL; il2cpp::utils::ExceptionSupportStack<RuntimeObject*, 1> __active_exceptions; il2cpp::utils::ExceptionSupportStack<int32_t, 2> __leave_targets; IL_0000: try { // begin try (depth: 1) DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB* L_0 = ___keys0; int32_t L_1 = ___index1; int32_t L_2 = ___length2; Comparison_1_t08C078C3FDDD0746272F4DC7A982874AB477F342 * L_3 = ___comparer3; (( void (*) (DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB*, int32_t, int32_t, Comparison_1_t08C078C3FDDD0746272F4DC7A982874AB477F342 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)->methodPointer)((DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB*)L_0, (int32_t)L_1, (int32_t)L_2, (Comparison_1_t08C078C3FDDD0746272F4DC7A982874AB477F342 *)L_3, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)); goto IL_0021; } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&IndexOutOfRangeException_tDC9EF7A0346CE39E54DA1083F07BE6DFC3CE2EDD_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_000b; } if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&Exception_t_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_0014; } throw e; } CATCH_000b: { // begin catch(System.IndexOutOfRangeException) Comparison_1_t08C078C3FDDD0746272F4DC7A982874AB477F342 * L_4 = ___comparer3; IntrospectiveSortUtilities_ThrowOrIgnoreBadComparer_mE23A8103696FA67F874E7DA86625BB3921DB801F((RuntimeObject *)L_4, /*hidden argument*/NULL); IL2CPP_POP_ACTIVE_EXCEPTION(); goto IL_0021; } // end catch (depth: 1) CATCH_0014: { // begin catch(System.Exception) V_0 = (Exception_t *)((Exception_t *)IL2CPP_GET_ACTIVE_EXCEPTION(Exception_t *)); Exception_t * L_5 = V_0; InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB * L_6 = (InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB *)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB_il2cpp_TypeInfo_var))); InvalidOperationException__ctor_m4A65916B1316FBF45ECDF1FF7FAC9E3CA30C112C(L_6, (String_t*)((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral6EDB6C049ED9617FA335A262A29BF30B15221AEA)), (Exception_t *)L_5, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_6, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArraySortHelper_1_Sort_mFC586C83A51D59AE3A065E32DC0E9556FEAF341F_RuntimeMethod_var))); } // end catch (depth: 1) IL_0021: { return; } } // System.Int32 System.Collections.Generic.ArraySortHelper`1<System.Double>::InternalBinarySearch(T[],System.Int32,System.Int32,T,System.Collections.Generic.IComparer`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t ArraySortHelper_1_InternalBinarySearch_mEFF60CFC40390425A34B06E583A03A7CB610B362_gshared (DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB* ___array0, int32_t ___index1, int32_t ___length2, double ___value3, RuntimeObject* ___comparer4, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; int32_t V_2 = 0; int32_t V_3 = 0; { int32_t L_0 = ___index1; V_0 = (int32_t)L_0; int32_t L_1 = ___index1; int32_t L_2 = ___length2; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_1, (int32_t)L_2)), (int32_t)1)); goto IL_0035; } IL_000a: { int32_t L_3 = V_0; int32_t L_4 = V_1; int32_t L_5 = V_0; V_2 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)((int32_t)((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_4, (int32_t)L_5))>>(int32_t)1)))); RuntimeObject* L_6 = ___comparer4; DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB* L_7 = ___array0; int32_t L_8 = V_2; NullCheck(L_7); int32_t L_9 = L_8; double L_10 = (L_7)->GetAt(static_cast<il2cpp_array_size_t>(L_9)); double L_11 = ___value3; NullCheck((RuntimeObject*)L_6); int32_t L_12; L_12 = InterfaceFuncInvoker2< int32_t, double, double >::Invoke(0 /* System.Int32 System.Collections.Generic.IComparer`1<System.Double>::Compare(T,T) */, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 3), (RuntimeObject*)L_6, (double)L_10, (double)L_11); V_3 = (int32_t)L_12; int32_t L_13 = V_3; if (L_13) { goto IL_0027; } } { int32_t L_14 = V_2; return (int32_t)L_14; } IL_0027: { int32_t L_15 = V_3; if ((((int32_t)L_15) >= ((int32_t)0))) { goto IL_0031; } } { int32_t L_16 = V_2; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_16, (int32_t)1)); goto IL_0035; } IL_0031: { int32_t L_17 = V_2; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_17, (int32_t)1)); } IL_0035: { int32_t L_18 = V_0; int32_t L_19 = V_1; if ((((int32_t)L_18) <= ((int32_t)L_19))) { goto IL_000a; } } { int32_t L_20 = V_0; return (int32_t)((~L_20)); } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Double>::SwapIfGreater(T[],System.Comparison`1<T>,System.Int32,System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_SwapIfGreater_m0A227CEA4B09FE445EFF7D21C904854D7D75CE7C_gshared (DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB* ___keys0, Comparison_1_t08C078C3FDDD0746272F4DC7A982874AB477F342 * ___comparer1, int32_t ___a2, int32_t ___b3, const RuntimeMethod* method) { double V_0 = 0.0; { int32_t L_0 = ___a2; int32_t L_1 = ___b3; if ((((int32_t)L_0) == ((int32_t)L_1))) { goto IL_0039; } } { Comparison_1_t08C078C3FDDD0746272F4DC7A982874AB477F342 * L_2 = ___comparer1; DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB* L_3 = ___keys0; int32_t L_4 = ___a2; NullCheck(L_3); int32_t L_5 = L_4; double L_6 = (L_3)->GetAt(static_cast<il2cpp_array_size_t>(L_5)); DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB* L_7 = ___keys0; int32_t L_8 = ___b3; NullCheck(L_7); int32_t L_9 = L_8; double L_10 = (L_7)->GetAt(static_cast<il2cpp_array_size_t>(L_9)); NullCheck((Comparison_1_t08C078C3FDDD0746272F4DC7A982874AB477F342 *)L_2); int32_t L_11; L_11 = (( int32_t (*) (Comparison_1_t08C078C3FDDD0746272F4DC7A982874AB477F342 *, double, double, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t08C078C3FDDD0746272F4DC7A982874AB477F342 *)L_2, (double)L_6, (double)L_10, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_11) <= ((int32_t)0))) { goto IL_0039; } } { DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB* L_12 = ___keys0; int32_t L_13 = ___a2; NullCheck(L_12); int32_t L_14 = L_13; double L_15 = (L_12)->GetAt(static_cast<il2cpp_array_size_t>(L_14)); V_0 = (double)L_15; DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB* L_16 = ___keys0; int32_t L_17 = ___a2; DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB* L_18 = ___keys0; int32_t L_19 = ___b3; NullCheck(L_18); int32_t L_20 = L_19; double L_21 = (L_18)->GetAt(static_cast<il2cpp_array_size_t>(L_20)); NullCheck(L_16); (L_16)->SetAt(static_cast<il2cpp_array_size_t>(L_17), (double)L_21); DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB* L_22 = ___keys0; int32_t L_23 = ___b3; double L_24 = V_0; NullCheck(L_22); (L_22)->SetAt(static_cast<il2cpp_array_size_t>(L_23), (double)L_24); } IL_0039: { return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Double>::Swap(T[],System.Int32,System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Swap_m72CD4B477A10C40BD5E2AC49D8541C12B5C61D26_gshared (DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB* ___a0, int32_t ___i1, int32_t ___j2, const RuntimeMethod* method) { double V_0 = 0.0; { int32_t L_0 = ___i1; int32_t L_1 = ___j2; if ((((int32_t)L_0) == ((int32_t)L_1))) { goto IL_0022; } } { DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB* L_2 = ___a0; int32_t L_3 = ___i1; NullCheck(L_2); int32_t L_4 = L_3; double L_5 = (L_2)->GetAt(static_cast<il2cpp_array_size_t>(L_4)); V_0 = (double)L_5; DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB* L_6 = ___a0; int32_t L_7 = ___i1; DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB* L_8 = ___a0; int32_t L_9 = ___j2; NullCheck(L_8); int32_t L_10 = L_9; double L_11 = (L_8)->GetAt(static_cast<il2cpp_array_size_t>(L_10)); NullCheck(L_6); (L_6)->SetAt(static_cast<il2cpp_array_size_t>(L_7), (double)L_11); DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB* L_12 = ___a0; int32_t L_13 = ___j2; double L_14 = V_0; NullCheck(L_12); (L_12)->SetAt(static_cast<il2cpp_array_size_t>(L_13), (double)L_14); } IL_0022: { return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Double>::IntrospectiveSort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_IntrospectiveSort_m50FD45AA9648E78470195C1290CEA840ACFE80F8_gshared (DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB* ___keys0, int32_t ___left1, int32_t ___length2, Comparison_1_t08C078C3FDDD0746272F4DC7A982874AB477F342 * ___comparer3, const RuntimeMethod* method) { { int32_t L_0 = ___length2; if ((((int32_t)L_0) >= ((int32_t)2))) { goto IL_0005; } } { return; } IL_0005: { DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB* L_1 = ___keys0; int32_t L_2 = ___left1; int32_t L_3 = ___length2; int32_t L_4 = ___left1; DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB* L_5 = ___keys0; NullCheck(L_5); int32_t L_6; L_6 = IntrospectiveSortUtilities_FloorLog2_m05ECB6CAC7A23087D9EC2C2A4DDCFE12272C3872((int32_t)((int32_t)((int32_t)(((RuntimeArray*)L_5)->max_length))), /*hidden argument*/NULL); Comparison_1_t08C078C3FDDD0746272F4DC7A982874AB477F342 * L_7 = ___comparer3; (( void (*) (DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB*, int32_t, int32_t, int32_t, Comparison_1_t08C078C3FDDD0746272F4DC7A982874AB477F342 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)->methodPointer)((DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB*)L_1, (int32_t)L_2, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)L_4)), (int32_t)1)), (int32_t)((int32_t)il2cpp_codegen_multiply((int32_t)2, (int32_t)L_6)), (Comparison_1_t08C078C3FDDD0746272F4DC7A982874AB477F342 *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)); return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Double>::IntroSort(T[],System.Int32,System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_IntroSort_m5BDF87D390D0CEF367AF763FD57CE21F5B837DEA_gshared (DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB* ___keys0, int32_t ___lo1, int32_t ___hi2, int32_t ___depthLimit3, Comparison_1_t08C078C3FDDD0746272F4DC7A982874AB477F342 * ___comparer4, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; { goto IL_0086; } IL_0005: { int32_t L_0 = ___hi2; int32_t L_1 = ___lo1; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_0, (int32_t)L_1)), (int32_t)1)); int32_t L_2 = V_0; if ((((int32_t)L_2) > ((int32_t)((int32_t)16)))) { goto IL_0056; } } { int32_t L_3 = V_0; if ((!(((uint32_t)L_3) == ((uint32_t)1)))) { goto IL_0015; } } { return; } IL_0015: { int32_t L_4 = V_0; if ((!(((uint32_t)L_4) == ((uint32_t)2)))) { goto IL_0024; } } { DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB* L_5 = ___keys0; Comparison_1_t08C078C3FDDD0746272F4DC7A982874AB477F342 * L_6 = ___comparer4; int32_t L_7 = ___lo1; int32_t L_8 = ___hi2; (( void (*) (DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB*, Comparison_1_t08C078C3FDDD0746272F4DC7A982874AB477F342 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB*)L_5, (Comparison_1_t08C078C3FDDD0746272F4DC7A982874AB477F342 *)L_6, (int32_t)L_7, (int32_t)L_8, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); return; } IL_0024: { int32_t L_9 = V_0; if ((!(((uint32_t)L_9) == ((uint32_t)3)))) { goto IL_004b; } } { DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB* L_10 = ___keys0; Comparison_1_t08C078C3FDDD0746272F4DC7A982874AB477F342 * L_11 = ___comparer4; int32_t L_12 = ___lo1; int32_t L_13 = ___hi2; (( void (*) (DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB*, Comparison_1_t08C078C3FDDD0746272F4DC7A982874AB477F342 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB*)L_10, (Comparison_1_t08C078C3FDDD0746272F4DC7A982874AB477F342 *)L_11, (int32_t)L_12, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_13, (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB* L_14 = ___keys0; Comparison_1_t08C078C3FDDD0746272F4DC7A982874AB477F342 * L_15 = ___comparer4; int32_t L_16 = ___lo1; int32_t L_17 = ___hi2; (( void (*) (DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB*, Comparison_1_t08C078C3FDDD0746272F4DC7A982874AB477F342 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB*)L_14, (Comparison_1_t08C078C3FDDD0746272F4DC7A982874AB477F342 *)L_15, (int32_t)L_16, (int32_t)L_17, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB* L_18 = ___keys0; Comparison_1_t08C078C3FDDD0746272F4DC7A982874AB477F342 * L_19 = ___comparer4; int32_t L_20 = ___hi2; int32_t L_21 = ___hi2; (( void (*) (DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB*, Comparison_1_t08C078C3FDDD0746272F4DC7A982874AB477F342 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB*)L_18, (Comparison_1_t08C078C3FDDD0746272F4DC7A982874AB477F342 *)L_19, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_20, (int32_t)1)), (int32_t)L_21, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); return; } IL_004b: { DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB* L_22 = ___keys0; int32_t L_23 = ___lo1; int32_t L_24 = ___hi2; Comparison_1_t08C078C3FDDD0746272F4DC7A982874AB477F342 * L_25 = ___comparer4; (( void (*) (DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB*, int32_t, int32_t, Comparison_1_t08C078C3FDDD0746272F4DC7A982874AB477F342 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 12)->methodPointer)((DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB*)L_22, (int32_t)L_23, (int32_t)L_24, (Comparison_1_t08C078C3FDDD0746272F4DC7A982874AB477F342 *)L_25, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 12)); return; } IL_0056: { int32_t L_26 = ___depthLimit3; if (L_26) { goto IL_0064; } } { DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB* L_27 = ___keys0; int32_t L_28 = ___lo1; int32_t L_29 = ___hi2; Comparison_1_t08C078C3FDDD0746272F4DC7A982874AB477F342 * L_30 = ___comparer4; (( void (*) (DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB*, int32_t, int32_t, Comparison_1_t08C078C3FDDD0746272F4DC7A982874AB477F342 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 13)->methodPointer)((DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB*)L_27, (int32_t)L_28, (int32_t)L_29, (Comparison_1_t08C078C3FDDD0746272F4DC7A982874AB477F342 *)L_30, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 13)); return; } IL_0064: { int32_t L_31 = ___depthLimit3; ___depthLimit3 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_31, (int32_t)1)); DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB* L_32 = ___keys0; int32_t L_33 = ___lo1; int32_t L_34 = ___hi2; Comparison_1_t08C078C3FDDD0746272F4DC7A982874AB477F342 * L_35 = ___comparer4; int32_t L_36; L_36 = (( int32_t (*) (DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB*, int32_t, int32_t, Comparison_1_t08C078C3FDDD0746272F4DC7A982874AB477F342 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 14)->methodPointer)((DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB*)L_32, (int32_t)L_33, (int32_t)L_34, (Comparison_1_t08C078C3FDDD0746272F4DC7A982874AB477F342 *)L_35, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 14)); V_1 = (int32_t)L_36; DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB* L_37 = ___keys0; int32_t L_38 = V_1; int32_t L_39 = ___hi2; int32_t L_40 = ___depthLimit3; Comparison_1_t08C078C3FDDD0746272F4DC7A982874AB477F342 * L_41 = ___comparer4; (( void (*) (DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB*, int32_t, int32_t, int32_t, Comparison_1_t08C078C3FDDD0746272F4DC7A982874AB477F342 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)->methodPointer)((DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB*)L_37, (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_38, (int32_t)1)), (int32_t)L_39, (int32_t)L_40, (Comparison_1_t08C078C3FDDD0746272F4DC7A982874AB477F342 *)L_41, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)); int32_t L_42 = V_1; ___hi2 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_42, (int32_t)1)); } IL_0086: { int32_t L_43 = ___hi2; int32_t L_44 = ___lo1; if ((((int32_t)L_43) > ((int32_t)L_44))) { goto IL_0005; } } { return; } } // System.Int32 System.Collections.Generic.ArraySortHelper`1<System.Double>::PickPivotAndPartition(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t ArraySortHelper_1_PickPivotAndPartition_m6C6D4E67A42A9A93384BCB14F037BEC1D51FFD09_gshared (DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB* ___keys0, int32_t ___lo1, int32_t ___hi2, Comparison_1_t08C078C3FDDD0746272F4DC7A982874AB477F342 * ___comparer3, const RuntimeMethod* method) { int32_t V_0 = 0; double V_1 = 0.0; int32_t V_2 = 0; int32_t V_3 = 0; { int32_t L_0 = ___lo1; int32_t L_1 = ___hi2; int32_t L_2 = ___lo1; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_0, (int32_t)((int32_t)((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_1, (int32_t)L_2))/(int32_t)2)))); DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB* L_3 = ___keys0; Comparison_1_t08C078C3FDDD0746272F4DC7A982874AB477F342 * L_4 = ___comparer3; int32_t L_5 = ___lo1; int32_t L_6 = V_0; (( void (*) (DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB*, Comparison_1_t08C078C3FDDD0746272F4DC7A982874AB477F342 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB*)L_3, (Comparison_1_t08C078C3FDDD0746272F4DC7A982874AB477F342 *)L_4, (int32_t)L_5, (int32_t)L_6, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB* L_7 = ___keys0; Comparison_1_t08C078C3FDDD0746272F4DC7A982874AB477F342 * L_8 = ___comparer3; int32_t L_9 = ___lo1; int32_t L_10 = ___hi2; (( void (*) (DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB*, Comparison_1_t08C078C3FDDD0746272F4DC7A982874AB477F342 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB*)L_7, (Comparison_1_t08C078C3FDDD0746272F4DC7A982874AB477F342 *)L_8, (int32_t)L_9, (int32_t)L_10, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB* L_11 = ___keys0; Comparison_1_t08C078C3FDDD0746272F4DC7A982874AB477F342 * L_12 = ___comparer3; int32_t L_13 = V_0; int32_t L_14 = ___hi2; (( void (*) (DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB*, Comparison_1_t08C078C3FDDD0746272F4DC7A982874AB477F342 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB*)L_11, (Comparison_1_t08C078C3FDDD0746272F4DC7A982874AB477F342 *)L_12, (int32_t)L_13, (int32_t)L_14, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB* L_15 = ___keys0; int32_t L_16 = V_0; NullCheck(L_15); int32_t L_17 = L_16; double L_18 = (L_15)->GetAt(static_cast<il2cpp_array_size_t>(L_17)); V_1 = (double)L_18; DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB* L_19 = ___keys0; int32_t L_20 = V_0; int32_t L_21 = ___hi2; (( void (*) (DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB*)L_19, (int32_t)L_20, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_21, (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); int32_t L_22 = ___lo1; V_2 = (int32_t)L_22; int32_t L_23 = ___hi2; V_3 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_23, (int32_t)1)); goto IL_0073; } IL_003d: { Comparison_1_t08C078C3FDDD0746272F4DC7A982874AB477F342 * L_24 = ___comparer3; DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB* L_25 = ___keys0; int32_t L_26 = V_2; int32_t L_27 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_26, (int32_t)1)); V_2 = (int32_t)L_27; NullCheck(L_25); int32_t L_28 = L_27; double L_29 = (L_25)->GetAt(static_cast<il2cpp_array_size_t>(L_28)); double L_30 = V_1; NullCheck((Comparison_1_t08C078C3FDDD0746272F4DC7A982874AB477F342 *)L_24); int32_t L_31; L_31 = (( int32_t (*) (Comparison_1_t08C078C3FDDD0746272F4DC7A982874AB477F342 *, double, double, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t08C078C3FDDD0746272F4DC7A982874AB477F342 *)L_24, (double)L_29, (double)L_30, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_31) < ((int32_t)0))) { goto IL_003d; } } IL_0052: { Comparison_1_t08C078C3FDDD0746272F4DC7A982874AB477F342 * L_32 = ___comparer3; double L_33 = V_1; DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB* L_34 = ___keys0; int32_t L_35 = V_3; int32_t L_36 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_35, (int32_t)1)); V_3 = (int32_t)L_36; NullCheck(L_34); int32_t L_37 = L_36; double L_38 = (L_34)->GetAt(static_cast<il2cpp_array_size_t>(L_37)); NullCheck((Comparison_1_t08C078C3FDDD0746272F4DC7A982874AB477F342 *)L_32); int32_t L_39; L_39 = (( int32_t (*) (Comparison_1_t08C078C3FDDD0746272F4DC7A982874AB477F342 *, double, double, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t08C078C3FDDD0746272F4DC7A982874AB477F342 *)L_32, (double)L_33, (double)L_38, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_39) < ((int32_t)0))) { goto IL_0052; } } { int32_t L_40 = V_2; int32_t L_41 = V_3; if ((((int32_t)L_40) >= ((int32_t)L_41))) { goto IL_0077; } } { DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB* L_42 = ___keys0; int32_t L_43 = V_2; int32_t L_44 = V_3; (( void (*) (DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB*)L_42, (int32_t)L_43, (int32_t)L_44, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); } IL_0073: { int32_t L_45 = V_2; int32_t L_46 = V_3; if ((((int32_t)L_45) < ((int32_t)L_46))) { goto IL_003d; } } IL_0077: { DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB* L_47 = ___keys0; int32_t L_48 = V_2; int32_t L_49 = ___hi2; (( void (*) (DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB*)L_47, (int32_t)L_48, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_49, (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); int32_t L_50 = V_2; return (int32_t)L_50; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Double>::Heapsort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Heapsort_mB272D257275A942B34DD9B525DAA61735071970E_gshared (DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB* ___keys0, int32_t ___lo1, int32_t ___hi2, Comparison_1_t08C078C3FDDD0746272F4DC7A982874AB477F342 * ___comparer3, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; int32_t V_2 = 0; { int32_t L_0 = ___hi2; int32_t L_1 = ___lo1; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_0, (int32_t)L_1)), (int32_t)1)); int32_t L_2 = V_0; V_1 = (int32_t)((int32_t)((int32_t)L_2/(int32_t)2)); goto IL_001a; } IL_000c: { DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB* L_3 = ___keys0; int32_t L_4 = V_1; int32_t L_5 = V_0; int32_t L_6 = ___lo1; Comparison_1_t08C078C3FDDD0746272F4DC7A982874AB477F342 * L_7 = ___comparer3; (( void (*) (DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB*, int32_t, int32_t, int32_t, Comparison_1_t08C078C3FDDD0746272F4DC7A982874AB477F342 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)->methodPointer)((DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB*)L_3, (int32_t)L_4, (int32_t)L_5, (int32_t)L_6, (Comparison_1_t08C078C3FDDD0746272F4DC7A982874AB477F342 *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)); int32_t L_8 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_8, (int32_t)1)); } IL_001a: { int32_t L_9 = V_1; if ((((int32_t)L_9) >= ((int32_t)1))) { goto IL_000c; } } { int32_t L_10 = V_0; V_2 = (int32_t)L_10; goto IL_003e; } IL_0022: { DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB* L_11 = ___keys0; int32_t L_12 = ___lo1; int32_t L_13 = ___lo1; int32_t L_14 = V_2; (( void (*) (DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB*)L_11, (int32_t)L_12, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_13, (int32_t)L_14)), (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB* L_15 = ___keys0; int32_t L_16 = V_2; int32_t L_17 = ___lo1; Comparison_1_t08C078C3FDDD0746272F4DC7A982874AB477F342 * L_18 = ___comparer3; (( void (*) (DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB*, int32_t, int32_t, int32_t, Comparison_1_t08C078C3FDDD0746272F4DC7A982874AB477F342 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)->methodPointer)((DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB*)L_15, (int32_t)1, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_16, (int32_t)1)), (int32_t)L_17, (Comparison_1_t08C078C3FDDD0746272F4DC7A982874AB477F342 *)L_18, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)); int32_t L_19 = V_2; V_2 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_19, (int32_t)1)); } IL_003e: { int32_t L_20 = V_2; if ((((int32_t)L_20) > ((int32_t)1))) { goto IL_0022; } } { return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Double>::DownHeap(T[],System.Int32,System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_DownHeap_m886EA0D6961AF28050C9E0B68E9D5F77AB2A8E61_gshared (DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB* ___keys0, int32_t ___i1, int32_t ___n2, int32_t ___lo3, Comparison_1_t08C078C3FDDD0746272F4DC7A982874AB477F342 * ___comparer4, const RuntimeMethod* method) { double V_0 = 0.0; int32_t V_1 = 0; { DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB* L_0 = ___keys0; int32_t L_1 = ___lo3; int32_t L_2 = ___i1; NullCheck(L_0); int32_t L_3 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_1, (int32_t)L_2)), (int32_t)1)); double L_4 = (L_0)->GetAt(static_cast<il2cpp_array_size_t>(L_3)); V_0 = (double)L_4; goto IL_0067; } IL_000e: { int32_t L_5 = ___i1; V_1 = (int32_t)((int32_t)il2cpp_codegen_multiply((int32_t)2, (int32_t)L_5)); int32_t L_6 = V_1; int32_t L_7 = ___n2; if ((((int32_t)L_6) >= ((int32_t)L_7))) { goto IL_0038; } } { Comparison_1_t08C078C3FDDD0746272F4DC7A982874AB477F342 * L_8 = ___comparer4; DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB* L_9 = ___keys0; int32_t L_10 = ___lo3; int32_t L_11 = V_1; NullCheck(L_9); int32_t L_12 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_10, (int32_t)L_11)), (int32_t)1)); double L_13 = (L_9)->GetAt(static_cast<il2cpp_array_size_t>(L_12)); DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB* L_14 = ___keys0; int32_t L_15 = ___lo3; int32_t L_16 = V_1; NullCheck(L_14); int32_t L_17 = ((int32_t)il2cpp_codegen_add((int32_t)L_15, (int32_t)L_16)); double L_18 = (L_14)->GetAt(static_cast<il2cpp_array_size_t>(L_17)); NullCheck((Comparison_1_t08C078C3FDDD0746272F4DC7A982874AB477F342 *)L_8); int32_t L_19; L_19 = (( int32_t (*) (Comparison_1_t08C078C3FDDD0746272F4DC7A982874AB477F342 *, double, double, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t08C078C3FDDD0746272F4DC7A982874AB477F342 *)L_8, (double)L_13, (double)L_18, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_19) >= ((int32_t)0))) { goto IL_0038; } } { int32_t L_20 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_20, (int32_t)1)); } IL_0038: { Comparison_1_t08C078C3FDDD0746272F4DC7A982874AB477F342 * L_21 = ___comparer4; double L_22 = V_0; DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB* L_23 = ___keys0; int32_t L_24 = ___lo3; int32_t L_25 = V_1; NullCheck(L_23); int32_t L_26 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_24, (int32_t)L_25)), (int32_t)1)); double L_27 = (L_23)->GetAt(static_cast<il2cpp_array_size_t>(L_26)); NullCheck((Comparison_1_t08C078C3FDDD0746272F4DC7A982874AB477F342 *)L_21); int32_t L_28; L_28 = (( int32_t (*) (Comparison_1_t08C078C3FDDD0746272F4DC7A982874AB477F342 *, double, double, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t08C078C3FDDD0746272F4DC7A982874AB477F342 *)L_21, (double)L_22, (double)L_27, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_28) >= ((int32_t)0))) { goto IL_006d; } } { DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB* L_29 = ___keys0; int32_t L_30 = ___lo3; int32_t L_31 = ___i1; DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB* L_32 = ___keys0; int32_t L_33 = ___lo3; int32_t L_34 = V_1; NullCheck(L_32); int32_t L_35 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_33, (int32_t)L_34)), (int32_t)1)); double L_36 = (L_32)->GetAt(static_cast<il2cpp_array_size_t>(L_35)); NullCheck(L_29); (L_29)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_30, (int32_t)L_31)), (int32_t)1))), (double)L_36); int32_t L_37 = V_1; ___i1 = (int32_t)L_37; } IL_0067: { int32_t L_38 = ___i1; int32_t L_39 = ___n2; if ((((int32_t)L_38) <= ((int32_t)((int32_t)((int32_t)L_39/(int32_t)2))))) { goto IL_000e; } } IL_006d: { DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB* L_40 = ___keys0; int32_t L_41 = ___lo3; int32_t L_42 = ___i1; double L_43 = V_0; NullCheck(L_40); (L_40)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_41, (int32_t)L_42)), (int32_t)1))), (double)L_43); return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Double>::InsertionSort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_InsertionSort_m20CBFE4CBAB2325B7F218C4BB3209ECDBCDB4EA7_gshared (DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB* ___keys0, int32_t ___lo1, int32_t ___hi2, Comparison_1_t08C078C3FDDD0746272F4DC7A982874AB477F342 * ___comparer3, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; double V_2 = 0.0; { int32_t L_0 = ___lo1; V_0 = (int32_t)L_0; goto IL_0049; } IL_0004: { int32_t L_1 = V_0; V_1 = (int32_t)L_1; DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB* L_2 = ___keys0; int32_t L_3 = V_0; NullCheck(L_2); int32_t L_4 = ((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)1)); double L_5 = (L_2)->GetAt(static_cast<il2cpp_array_size_t>(L_4)); V_2 = (double)L_5; goto IL_0026; } IL_0012: { DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB* L_6 = ___keys0; int32_t L_7 = V_1; DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB* L_8 = ___keys0; int32_t L_9 = V_1; NullCheck(L_8); int32_t L_10 = L_9; double L_11 = (L_8)->GetAt(static_cast<il2cpp_array_size_t>(L_10)); NullCheck(L_6); (L_6)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add((int32_t)L_7, (int32_t)1))), (double)L_11); int32_t L_12 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_12, (int32_t)1)); } IL_0026: { int32_t L_13 = V_1; int32_t L_14 = ___lo1; if ((((int32_t)L_13) < ((int32_t)L_14))) { goto IL_003b; } } { Comparison_1_t08C078C3FDDD0746272F4DC7A982874AB477F342 * L_15 = ___comparer3; double L_16 = V_2; DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB* L_17 = ___keys0; int32_t L_18 = V_1; NullCheck(L_17); int32_t L_19 = L_18; double L_20 = (L_17)->GetAt(static_cast<il2cpp_array_size_t>(L_19)); NullCheck((Comparison_1_t08C078C3FDDD0746272F4DC7A982874AB477F342 *)L_15); int32_t L_21; L_21 = (( int32_t (*) (Comparison_1_t08C078C3FDDD0746272F4DC7A982874AB477F342 *, double, double, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t08C078C3FDDD0746272F4DC7A982874AB477F342 *)L_15, (double)L_16, (double)L_20, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_21) < ((int32_t)0))) { goto IL_0012; } } IL_003b: { DoubleU5BU5D_t8E1B42EB2ABB79FBD193A6B8C8D97A7CDE44A4FB* L_22 = ___keys0; int32_t L_23 = V_1; double L_24 = V_2; NullCheck(L_22); (L_22)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add((int32_t)L_23, (int32_t)1))), (double)L_24); int32_t L_25 = V_0; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_25, (int32_t)1)); } IL_0049: { int32_t L_26 = V_0; int32_t L_27 = ___hi2; if ((((int32_t)L_26) < ((int32_t)L_27))) { goto IL_0004; } } { return; } } #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Void System.Collections.Generic.ArraySortHelper`1<Microsoft.MixedReality.Toolkit.Boundary.Edge>::Sort(T[],System.Int32,System.Int32,System.Collections.Generic.IComparer`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Sort_mAD310E9415B837C5755D703FE4FADB0FBC4BE4D4_gshared (EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20* ___keys0, int32_t ___index1, int32_t ___length2, RuntimeObject* ___comparer3, const RuntimeMethod* method) { Exception_t * V_0 = NULL; il2cpp::utils::ExceptionSupportStack<RuntimeObject*, 1> __active_exceptions; il2cpp::utils::ExceptionSupportStack<int32_t, 2> __leave_targets; IL_0000: try { // begin try (depth: 1) { RuntimeObject* L_0 = ___comparer3; if (L_0) { goto IL_000a; } } IL_0003: { Comparer_1_tB762AFE1AFBFFF22BF05602D3BD6E40330EF909A * L_1; L_1 = (( Comparer_1_tB762AFE1AFBFFF22BF05602D3BD6E40330EF909A * (*) (const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)->methodPointer)(/*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)); ___comparer3 = (RuntimeObject*)L_1; } IL_000a: { EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20* L_2 = ___keys0; int32_t L_3 = ___index1; int32_t L_4 = ___length2; RuntimeObject* L_5 = ___comparer3; RuntimeObject* L_6 = (RuntimeObject*)L_5; Comparison_1_t32F3C4F35231CD50E34D29CCA49E78C670A0CF17 * L_7 = (Comparison_1_t32F3C4F35231CD50E34D29CCA49E78C670A0CF17 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 4)); (( void (*) (Comparison_1_t32F3C4F35231CD50E34D29CCA49E78C670A0CF17 *, RuntimeObject *, intptr_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 5)->methodPointer)(L_7, (RuntimeObject *)L_6, (intptr_t)((intptr_t)GetInterfaceMethodInfo(L_6, 0, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 3))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 5)); (( void (*) (EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20*, int32_t, int32_t, Comparison_1_t32F3C4F35231CD50E34D29CCA49E78C670A0CF17 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)->methodPointer)((EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20*)L_2, (int32_t)L_3, (int32_t)L_4, (Comparison_1_t32F3C4F35231CD50E34D29CCA49E78C670A0CF17 *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)); goto IL_0037; } } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&IndexOutOfRangeException_tDC9EF7A0346CE39E54DA1083F07BE6DFC3CE2EDD_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_0021; } if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&Exception_t_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_002a; } throw e; } CATCH_0021: { // begin catch(System.IndexOutOfRangeException) RuntimeObject* L_8 = ___comparer3; IntrospectiveSortUtilities_ThrowOrIgnoreBadComparer_mE23A8103696FA67F874E7DA86625BB3921DB801F((RuntimeObject *)L_8, /*hidden argument*/NULL); IL2CPP_POP_ACTIVE_EXCEPTION(); goto IL_0037; } // end catch (depth: 1) CATCH_002a: { // begin catch(System.Exception) V_0 = (Exception_t *)((Exception_t *)IL2CPP_GET_ACTIVE_EXCEPTION(Exception_t *)); Exception_t * L_9 = V_0; InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB * L_10 = (InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB *)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB_il2cpp_TypeInfo_var))); InvalidOperationException__ctor_m4A65916B1316FBF45ECDF1FF7FAC9E3CA30C112C(L_10, (String_t*)((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral6EDB6C049ED9617FA335A262A29BF30B15221AEA)), (Exception_t *)L_9, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_10, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArraySortHelper_1_Sort_mAD310E9415B837C5755D703FE4FADB0FBC4BE4D4_RuntimeMethod_var))); } // end catch (depth: 1) IL_0037: { return; } } // System.Int32 System.Collections.Generic.ArraySortHelper`1<Microsoft.MixedReality.Toolkit.Boundary.Edge>::BinarySearch(T[],System.Int32,System.Int32,T,System.Collections.Generic.IComparer`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t ArraySortHelper_1_BinarySearch_m884D4FF28914C2E66D76E128A9D77E8E4DAAD78D_gshared (EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20* ___array0, int32_t ___index1, int32_t ___length2, Edge_t65F291A222EA5D33E62D23059BCE2874AB93A424 ___value3, RuntimeObject* ___comparer4, const RuntimeMethod* method) { int32_t V_0 = 0; Exception_t * V_1 = NULL; il2cpp::utils::ExceptionSupportStack<RuntimeObject*, 1> __active_exceptions; il2cpp::utils::ExceptionSupportStack<int32_t, 1> __leave_targets; IL_0000: try { // begin try (depth: 1) { RuntimeObject* L_0 = ___comparer4; if (L_0) { goto IL_000b; } } IL_0004: { Comparer_1_tB762AFE1AFBFFF22BF05602D3BD6E40330EF909A * L_1; L_1 = (( Comparer_1_tB762AFE1AFBFFF22BF05602D3BD6E40330EF909A * (*) (const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)->methodPointer)(/*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)); ___comparer4 = (RuntimeObject*)L_1; } IL_000b: { EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20* L_2 = ___array0; int32_t L_3 = ___index1; int32_t L_4 = ___length2; Edge_t65F291A222EA5D33E62D23059BCE2874AB93A424 L_5 = ___value3; RuntimeObject* L_6 = ___comparer4; int32_t L_7; L_7 = (( int32_t (*) (EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20*, int32_t, int32_t, Edge_t65F291A222EA5D33E62D23059BCE2874AB93A424 , RuntimeObject*, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 8)->methodPointer)((EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20*)L_2, (int32_t)L_3, (int32_t)L_4, (Edge_t65F291A222EA5D33E62D23059BCE2874AB93A424 )L_5, (RuntimeObject*)L_6, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 8)); V_0 = (int32_t)L_7; goto IL_0026; } } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&Exception_t_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_0019; } throw e; } CATCH_0019: { // begin catch(System.Exception) V_1 = (Exception_t *)((Exception_t *)IL2CPP_GET_ACTIVE_EXCEPTION(Exception_t *)); Exception_t * L_8 = V_1; InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB * L_9 = (InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB *)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB_il2cpp_TypeInfo_var))); InvalidOperationException__ctor_m4A65916B1316FBF45ECDF1FF7FAC9E3CA30C112C(L_9, (String_t*)((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral6EDB6C049ED9617FA335A262A29BF30B15221AEA)), (Exception_t *)L_8, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_9, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArraySortHelper_1_BinarySearch_m884D4FF28914C2E66D76E128A9D77E8E4DAAD78D_RuntimeMethod_var))); } // end catch (depth: 1) IL_0026: { int32_t L_10 = V_0; return (int32_t)L_10; } } // System.Void System.Collections.Generic.ArraySortHelper`1<Microsoft.MixedReality.Toolkit.Boundary.Edge>::Sort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Sort_m90EC3F70512AABDB77F617B7F1EB46B814E114A1_gshared (EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20* ___keys0, int32_t ___index1, int32_t ___length2, Comparison_1_t32F3C4F35231CD50E34D29CCA49E78C670A0CF17 * ___comparer3, const RuntimeMethod* method) { Exception_t * V_0 = NULL; il2cpp::utils::ExceptionSupportStack<RuntimeObject*, 1> __active_exceptions; il2cpp::utils::ExceptionSupportStack<int32_t, 2> __leave_targets; IL_0000: try { // begin try (depth: 1) EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20* L_0 = ___keys0; int32_t L_1 = ___index1; int32_t L_2 = ___length2; Comparison_1_t32F3C4F35231CD50E34D29CCA49E78C670A0CF17 * L_3 = ___comparer3; (( void (*) (EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20*, int32_t, int32_t, Comparison_1_t32F3C4F35231CD50E34D29CCA49E78C670A0CF17 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)->methodPointer)((EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20*)L_0, (int32_t)L_1, (int32_t)L_2, (Comparison_1_t32F3C4F35231CD50E34D29CCA49E78C670A0CF17 *)L_3, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)); goto IL_0021; } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&IndexOutOfRangeException_tDC9EF7A0346CE39E54DA1083F07BE6DFC3CE2EDD_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_000b; } if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&Exception_t_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_0014; } throw e; } CATCH_000b: { // begin catch(System.IndexOutOfRangeException) Comparison_1_t32F3C4F35231CD50E34D29CCA49E78C670A0CF17 * L_4 = ___comparer3; IntrospectiveSortUtilities_ThrowOrIgnoreBadComparer_mE23A8103696FA67F874E7DA86625BB3921DB801F((RuntimeObject *)L_4, /*hidden argument*/NULL); IL2CPP_POP_ACTIVE_EXCEPTION(); goto IL_0021; } // end catch (depth: 1) CATCH_0014: { // begin catch(System.Exception) V_0 = (Exception_t *)((Exception_t *)IL2CPP_GET_ACTIVE_EXCEPTION(Exception_t *)); Exception_t * L_5 = V_0; InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB * L_6 = (InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB *)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB_il2cpp_TypeInfo_var))); InvalidOperationException__ctor_m4A65916B1316FBF45ECDF1FF7FAC9E3CA30C112C(L_6, (String_t*)((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral6EDB6C049ED9617FA335A262A29BF30B15221AEA)), (Exception_t *)L_5, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_6, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArraySortHelper_1_Sort_m90EC3F70512AABDB77F617B7F1EB46B814E114A1_RuntimeMethod_var))); } // end catch (depth: 1) IL_0021: { return; } } // System.Int32 System.Collections.Generic.ArraySortHelper`1<Microsoft.MixedReality.Toolkit.Boundary.Edge>::InternalBinarySearch(T[],System.Int32,System.Int32,T,System.Collections.Generic.IComparer`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t ArraySortHelper_1_InternalBinarySearch_m496127E4E3DCEDC66C17E20F28AC4EEB5C089650_gshared (EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20* ___array0, int32_t ___index1, int32_t ___length2, Edge_t65F291A222EA5D33E62D23059BCE2874AB93A424 ___value3, RuntimeObject* ___comparer4, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; int32_t V_2 = 0; int32_t V_3 = 0; { int32_t L_0 = ___index1; V_0 = (int32_t)L_0; int32_t L_1 = ___index1; int32_t L_2 = ___length2; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_1, (int32_t)L_2)), (int32_t)1)); goto IL_0035; } IL_000a: { int32_t L_3 = V_0; int32_t L_4 = V_1; int32_t L_5 = V_0; V_2 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)((int32_t)((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_4, (int32_t)L_5))>>(int32_t)1)))); RuntimeObject* L_6 = ___comparer4; EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20* L_7 = ___array0; int32_t L_8 = V_2; NullCheck(L_7); int32_t L_9 = L_8; Edge_t65F291A222EA5D33E62D23059BCE2874AB93A424 L_10 = (L_7)->GetAt(static_cast<il2cpp_array_size_t>(L_9)); Edge_t65F291A222EA5D33E62D23059BCE2874AB93A424 L_11 = ___value3; NullCheck((RuntimeObject*)L_6); int32_t L_12; L_12 = InterfaceFuncInvoker2< int32_t, Edge_t65F291A222EA5D33E62D23059BCE2874AB93A424 , Edge_t65F291A222EA5D33E62D23059BCE2874AB93A424 >::Invoke(0 /* System.Int32 System.Collections.Generic.IComparer`1<Microsoft.MixedReality.Toolkit.Boundary.Edge>::Compare(T,T) */, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 3), (RuntimeObject*)L_6, (Edge_t65F291A222EA5D33E62D23059BCE2874AB93A424 )L_10, (Edge_t65F291A222EA5D33E62D23059BCE2874AB93A424 )L_11); V_3 = (int32_t)L_12; int32_t L_13 = V_3; if (L_13) { goto IL_0027; } } { int32_t L_14 = V_2; return (int32_t)L_14; } IL_0027: { int32_t L_15 = V_3; if ((((int32_t)L_15) >= ((int32_t)0))) { goto IL_0031; } } { int32_t L_16 = V_2; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_16, (int32_t)1)); goto IL_0035; } IL_0031: { int32_t L_17 = V_2; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_17, (int32_t)1)); } IL_0035: { int32_t L_18 = V_0; int32_t L_19 = V_1; if ((((int32_t)L_18) <= ((int32_t)L_19))) { goto IL_000a; } } { int32_t L_20 = V_0; return (int32_t)((~L_20)); } } // System.Void System.Collections.Generic.ArraySortHelper`1<Microsoft.MixedReality.Toolkit.Boundary.Edge>::SwapIfGreater(T[],System.Comparison`1<T>,System.Int32,System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_SwapIfGreater_mF30CE66583DFF82E2AA7FFED9C95A9EB2CAF5BC7_gshared (EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20* ___keys0, Comparison_1_t32F3C4F35231CD50E34D29CCA49E78C670A0CF17 * ___comparer1, int32_t ___a2, int32_t ___b3, const RuntimeMethod* method) { Edge_t65F291A222EA5D33E62D23059BCE2874AB93A424 V_0; memset((&V_0), 0, sizeof(V_0)); { int32_t L_0 = ___a2; int32_t L_1 = ___b3; if ((((int32_t)L_0) == ((int32_t)L_1))) { goto IL_0039; } } { Comparison_1_t32F3C4F35231CD50E34D29CCA49E78C670A0CF17 * L_2 = ___comparer1; EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20* L_3 = ___keys0; int32_t L_4 = ___a2; NullCheck(L_3); int32_t L_5 = L_4; Edge_t65F291A222EA5D33E62D23059BCE2874AB93A424 L_6 = (L_3)->GetAt(static_cast<il2cpp_array_size_t>(L_5)); EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20* L_7 = ___keys0; int32_t L_8 = ___b3; NullCheck(L_7); int32_t L_9 = L_8; Edge_t65F291A222EA5D33E62D23059BCE2874AB93A424 L_10 = (L_7)->GetAt(static_cast<il2cpp_array_size_t>(L_9)); NullCheck((Comparison_1_t32F3C4F35231CD50E34D29CCA49E78C670A0CF17 *)L_2); int32_t L_11; L_11 = (( int32_t (*) (Comparison_1_t32F3C4F35231CD50E34D29CCA49E78C670A0CF17 *, Edge_t65F291A222EA5D33E62D23059BCE2874AB93A424 , Edge_t65F291A222EA5D33E62D23059BCE2874AB93A424 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t32F3C4F35231CD50E34D29CCA49E78C670A0CF17 *)L_2, (Edge_t65F291A222EA5D33E62D23059BCE2874AB93A424 )L_6, (Edge_t65F291A222EA5D33E62D23059BCE2874AB93A424 )L_10, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_11) <= ((int32_t)0))) { goto IL_0039; } } { EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20* L_12 = ___keys0; int32_t L_13 = ___a2; NullCheck(L_12); int32_t L_14 = L_13; Edge_t65F291A222EA5D33E62D23059BCE2874AB93A424 L_15 = (L_12)->GetAt(static_cast<il2cpp_array_size_t>(L_14)); V_0 = (Edge_t65F291A222EA5D33E62D23059BCE2874AB93A424 )L_15; EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20* L_16 = ___keys0; int32_t L_17 = ___a2; EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20* L_18 = ___keys0; int32_t L_19 = ___b3; NullCheck(L_18); int32_t L_20 = L_19; Edge_t65F291A222EA5D33E62D23059BCE2874AB93A424 L_21 = (L_18)->GetAt(static_cast<il2cpp_array_size_t>(L_20)); NullCheck(L_16); (L_16)->SetAt(static_cast<il2cpp_array_size_t>(L_17), (Edge_t65F291A222EA5D33E62D23059BCE2874AB93A424 )L_21); EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20* L_22 = ___keys0; int32_t L_23 = ___b3; Edge_t65F291A222EA5D33E62D23059BCE2874AB93A424 L_24 = V_0; NullCheck(L_22); (L_22)->SetAt(static_cast<il2cpp_array_size_t>(L_23), (Edge_t65F291A222EA5D33E62D23059BCE2874AB93A424 )L_24); } IL_0039: { return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<Microsoft.MixedReality.Toolkit.Boundary.Edge>::Swap(T[],System.Int32,System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Swap_mAA3E756B061A3AF4E1BFF3DFBBAB715DE934A27B_gshared (EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20* ___a0, int32_t ___i1, int32_t ___j2, const RuntimeMethod* method) { Edge_t65F291A222EA5D33E62D23059BCE2874AB93A424 V_0; memset((&V_0), 0, sizeof(V_0)); { int32_t L_0 = ___i1; int32_t L_1 = ___j2; if ((((int32_t)L_0) == ((int32_t)L_1))) { goto IL_0022; } } { EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20* L_2 = ___a0; int32_t L_3 = ___i1; NullCheck(L_2); int32_t L_4 = L_3; Edge_t65F291A222EA5D33E62D23059BCE2874AB93A424 L_5 = (L_2)->GetAt(static_cast<il2cpp_array_size_t>(L_4)); V_0 = (Edge_t65F291A222EA5D33E62D23059BCE2874AB93A424 )L_5; EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20* L_6 = ___a0; int32_t L_7 = ___i1; EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20* L_8 = ___a0; int32_t L_9 = ___j2; NullCheck(L_8); int32_t L_10 = L_9; Edge_t65F291A222EA5D33E62D23059BCE2874AB93A424 L_11 = (L_8)->GetAt(static_cast<il2cpp_array_size_t>(L_10)); NullCheck(L_6); (L_6)->SetAt(static_cast<il2cpp_array_size_t>(L_7), (Edge_t65F291A222EA5D33E62D23059BCE2874AB93A424 )L_11); EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20* L_12 = ___a0; int32_t L_13 = ___j2; Edge_t65F291A222EA5D33E62D23059BCE2874AB93A424 L_14 = V_0; NullCheck(L_12); (L_12)->SetAt(static_cast<il2cpp_array_size_t>(L_13), (Edge_t65F291A222EA5D33E62D23059BCE2874AB93A424 )L_14); } IL_0022: { return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<Microsoft.MixedReality.Toolkit.Boundary.Edge>::IntrospectiveSort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_IntrospectiveSort_m0AD66FFD2712982482419274314934C695EE605A_gshared (EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20* ___keys0, int32_t ___left1, int32_t ___length2, Comparison_1_t32F3C4F35231CD50E34D29CCA49E78C670A0CF17 * ___comparer3, const RuntimeMethod* method) { { int32_t L_0 = ___length2; if ((((int32_t)L_0) >= ((int32_t)2))) { goto IL_0005; } } { return; } IL_0005: { EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20* L_1 = ___keys0; int32_t L_2 = ___left1; int32_t L_3 = ___length2; int32_t L_4 = ___left1; EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20* L_5 = ___keys0; NullCheck(L_5); int32_t L_6; L_6 = IntrospectiveSortUtilities_FloorLog2_m05ECB6CAC7A23087D9EC2C2A4DDCFE12272C3872((int32_t)((int32_t)((int32_t)(((RuntimeArray*)L_5)->max_length))), /*hidden argument*/NULL); Comparison_1_t32F3C4F35231CD50E34D29CCA49E78C670A0CF17 * L_7 = ___comparer3; (( void (*) (EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20*, int32_t, int32_t, int32_t, Comparison_1_t32F3C4F35231CD50E34D29CCA49E78C670A0CF17 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)->methodPointer)((EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20*)L_1, (int32_t)L_2, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)L_4)), (int32_t)1)), (int32_t)((int32_t)il2cpp_codegen_multiply((int32_t)2, (int32_t)L_6)), (Comparison_1_t32F3C4F35231CD50E34D29CCA49E78C670A0CF17 *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)); return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<Microsoft.MixedReality.Toolkit.Boundary.Edge>::IntroSort(T[],System.Int32,System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_IntroSort_mCBCD46D35AFF5ED8B1D29B5ED9BA16A73CD5C40B_gshared (EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20* ___keys0, int32_t ___lo1, int32_t ___hi2, int32_t ___depthLimit3, Comparison_1_t32F3C4F35231CD50E34D29CCA49E78C670A0CF17 * ___comparer4, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; { goto IL_0086; } IL_0005: { int32_t L_0 = ___hi2; int32_t L_1 = ___lo1; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_0, (int32_t)L_1)), (int32_t)1)); int32_t L_2 = V_0; if ((((int32_t)L_2) > ((int32_t)((int32_t)16)))) { goto IL_0056; } } { int32_t L_3 = V_0; if ((!(((uint32_t)L_3) == ((uint32_t)1)))) { goto IL_0015; } } { return; } IL_0015: { int32_t L_4 = V_0; if ((!(((uint32_t)L_4) == ((uint32_t)2)))) { goto IL_0024; } } { EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20* L_5 = ___keys0; Comparison_1_t32F3C4F35231CD50E34D29CCA49E78C670A0CF17 * L_6 = ___comparer4; int32_t L_7 = ___lo1; int32_t L_8 = ___hi2; (( void (*) (EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20*, Comparison_1_t32F3C4F35231CD50E34D29CCA49E78C670A0CF17 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20*)L_5, (Comparison_1_t32F3C4F35231CD50E34D29CCA49E78C670A0CF17 *)L_6, (int32_t)L_7, (int32_t)L_8, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); return; } IL_0024: { int32_t L_9 = V_0; if ((!(((uint32_t)L_9) == ((uint32_t)3)))) { goto IL_004b; } } { EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20* L_10 = ___keys0; Comparison_1_t32F3C4F35231CD50E34D29CCA49E78C670A0CF17 * L_11 = ___comparer4; int32_t L_12 = ___lo1; int32_t L_13 = ___hi2; (( void (*) (EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20*, Comparison_1_t32F3C4F35231CD50E34D29CCA49E78C670A0CF17 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20*)L_10, (Comparison_1_t32F3C4F35231CD50E34D29CCA49E78C670A0CF17 *)L_11, (int32_t)L_12, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_13, (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20* L_14 = ___keys0; Comparison_1_t32F3C4F35231CD50E34D29CCA49E78C670A0CF17 * L_15 = ___comparer4; int32_t L_16 = ___lo1; int32_t L_17 = ___hi2; (( void (*) (EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20*, Comparison_1_t32F3C4F35231CD50E34D29CCA49E78C670A0CF17 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20*)L_14, (Comparison_1_t32F3C4F35231CD50E34D29CCA49E78C670A0CF17 *)L_15, (int32_t)L_16, (int32_t)L_17, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20* L_18 = ___keys0; Comparison_1_t32F3C4F35231CD50E34D29CCA49E78C670A0CF17 * L_19 = ___comparer4; int32_t L_20 = ___hi2; int32_t L_21 = ___hi2; (( void (*) (EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20*, Comparison_1_t32F3C4F35231CD50E34D29CCA49E78C670A0CF17 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20*)L_18, (Comparison_1_t32F3C4F35231CD50E34D29CCA49E78C670A0CF17 *)L_19, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_20, (int32_t)1)), (int32_t)L_21, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); return; } IL_004b: { EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20* L_22 = ___keys0; int32_t L_23 = ___lo1; int32_t L_24 = ___hi2; Comparison_1_t32F3C4F35231CD50E34D29CCA49E78C670A0CF17 * L_25 = ___comparer4; (( void (*) (EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20*, int32_t, int32_t, Comparison_1_t32F3C4F35231CD50E34D29CCA49E78C670A0CF17 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 12)->methodPointer)((EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20*)L_22, (int32_t)L_23, (int32_t)L_24, (Comparison_1_t32F3C4F35231CD50E34D29CCA49E78C670A0CF17 *)L_25, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 12)); return; } IL_0056: { int32_t L_26 = ___depthLimit3; if (L_26) { goto IL_0064; } } { EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20* L_27 = ___keys0; int32_t L_28 = ___lo1; int32_t L_29 = ___hi2; Comparison_1_t32F3C4F35231CD50E34D29CCA49E78C670A0CF17 * L_30 = ___comparer4; (( void (*) (EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20*, int32_t, int32_t, Comparison_1_t32F3C4F35231CD50E34D29CCA49E78C670A0CF17 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 13)->methodPointer)((EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20*)L_27, (int32_t)L_28, (int32_t)L_29, (Comparison_1_t32F3C4F35231CD50E34D29CCA49E78C670A0CF17 *)L_30, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 13)); return; } IL_0064: { int32_t L_31 = ___depthLimit3; ___depthLimit3 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_31, (int32_t)1)); EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20* L_32 = ___keys0; int32_t L_33 = ___lo1; int32_t L_34 = ___hi2; Comparison_1_t32F3C4F35231CD50E34D29CCA49E78C670A0CF17 * L_35 = ___comparer4; int32_t L_36; L_36 = (( int32_t (*) (EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20*, int32_t, int32_t, Comparison_1_t32F3C4F35231CD50E34D29CCA49E78C670A0CF17 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 14)->methodPointer)((EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20*)L_32, (int32_t)L_33, (int32_t)L_34, (Comparison_1_t32F3C4F35231CD50E34D29CCA49E78C670A0CF17 *)L_35, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 14)); V_1 = (int32_t)L_36; EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20* L_37 = ___keys0; int32_t L_38 = V_1; int32_t L_39 = ___hi2; int32_t L_40 = ___depthLimit3; Comparison_1_t32F3C4F35231CD50E34D29CCA49E78C670A0CF17 * L_41 = ___comparer4; (( void (*) (EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20*, int32_t, int32_t, int32_t, Comparison_1_t32F3C4F35231CD50E34D29CCA49E78C670A0CF17 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)->methodPointer)((EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20*)L_37, (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_38, (int32_t)1)), (int32_t)L_39, (int32_t)L_40, (Comparison_1_t32F3C4F35231CD50E34D29CCA49E78C670A0CF17 *)L_41, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)); int32_t L_42 = V_1; ___hi2 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_42, (int32_t)1)); } IL_0086: { int32_t L_43 = ___hi2; int32_t L_44 = ___lo1; if ((((int32_t)L_43) > ((int32_t)L_44))) { goto IL_0005; } } { return; } } // System.Int32 System.Collections.Generic.ArraySortHelper`1<Microsoft.MixedReality.Toolkit.Boundary.Edge>::PickPivotAndPartition(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t ArraySortHelper_1_PickPivotAndPartition_m5873F38A7DFA8E21C4C9048B5958F2E4CF7ED07A_gshared (EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20* ___keys0, int32_t ___lo1, int32_t ___hi2, Comparison_1_t32F3C4F35231CD50E34D29CCA49E78C670A0CF17 * ___comparer3, const RuntimeMethod* method) { int32_t V_0 = 0; Edge_t65F291A222EA5D33E62D23059BCE2874AB93A424 V_1; memset((&V_1), 0, sizeof(V_1)); int32_t V_2 = 0; int32_t V_3 = 0; { int32_t L_0 = ___lo1; int32_t L_1 = ___hi2; int32_t L_2 = ___lo1; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_0, (int32_t)((int32_t)((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_1, (int32_t)L_2))/(int32_t)2)))); EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20* L_3 = ___keys0; Comparison_1_t32F3C4F35231CD50E34D29CCA49E78C670A0CF17 * L_4 = ___comparer3; int32_t L_5 = ___lo1; int32_t L_6 = V_0; (( void (*) (EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20*, Comparison_1_t32F3C4F35231CD50E34D29CCA49E78C670A0CF17 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20*)L_3, (Comparison_1_t32F3C4F35231CD50E34D29CCA49E78C670A0CF17 *)L_4, (int32_t)L_5, (int32_t)L_6, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20* L_7 = ___keys0; Comparison_1_t32F3C4F35231CD50E34D29CCA49E78C670A0CF17 * L_8 = ___comparer3; int32_t L_9 = ___lo1; int32_t L_10 = ___hi2; (( void (*) (EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20*, Comparison_1_t32F3C4F35231CD50E34D29CCA49E78C670A0CF17 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20*)L_7, (Comparison_1_t32F3C4F35231CD50E34D29CCA49E78C670A0CF17 *)L_8, (int32_t)L_9, (int32_t)L_10, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20* L_11 = ___keys0; Comparison_1_t32F3C4F35231CD50E34D29CCA49E78C670A0CF17 * L_12 = ___comparer3; int32_t L_13 = V_0; int32_t L_14 = ___hi2; (( void (*) (EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20*, Comparison_1_t32F3C4F35231CD50E34D29CCA49E78C670A0CF17 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20*)L_11, (Comparison_1_t32F3C4F35231CD50E34D29CCA49E78C670A0CF17 *)L_12, (int32_t)L_13, (int32_t)L_14, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20* L_15 = ___keys0; int32_t L_16 = V_0; NullCheck(L_15); int32_t L_17 = L_16; Edge_t65F291A222EA5D33E62D23059BCE2874AB93A424 L_18 = (L_15)->GetAt(static_cast<il2cpp_array_size_t>(L_17)); V_1 = (Edge_t65F291A222EA5D33E62D23059BCE2874AB93A424 )L_18; EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20* L_19 = ___keys0; int32_t L_20 = V_0; int32_t L_21 = ___hi2; (( void (*) (EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20*)L_19, (int32_t)L_20, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_21, (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); int32_t L_22 = ___lo1; V_2 = (int32_t)L_22; int32_t L_23 = ___hi2; V_3 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_23, (int32_t)1)); goto IL_0073; } IL_003d: { Comparison_1_t32F3C4F35231CD50E34D29CCA49E78C670A0CF17 * L_24 = ___comparer3; EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20* L_25 = ___keys0; int32_t L_26 = V_2; int32_t L_27 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_26, (int32_t)1)); V_2 = (int32_t)L_27; NullCheck(L_25); int32_t L_28 = L_27; Edge_t65F291A222EA5D33E62D23059BCE2874AB93A424 L_29 = (L_25)->GetAt(static_cast<il2cpp_array_size_t>(L_28)); Edge_t65F291A222EA5D33E62D23059BCE2874AB93A424 L_30 = V_1; NullCheck((Comparison_1_t32F3C4F35231CD50E34D29CCA49E78C670A0CF17 *)L_24); int32_t L_31; L_31 = (( int32_t (*) (Comparison_1_t32F3C4F35231CD50E34D29CCA49E78C670A0CF17 *, Edge_t65F291A222EA5D33E62D23059BCE2874AB93A424 , Edge_t65F291A222EA5D33E62D23059BCE2874AB93A424 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t32F3C4F35231CD50E34D29CCA49E78C670A0CF17 *)L_24, (Edge_t65F291A222EA5D33E62D23059BCE2874AB93A424 )L_29, (Edge_t65F291A222EA5D33E62D23059BCE2874AB93A424 )L_30, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_31) < ((int32_t)0))) { goto IL_003d; } } IL_0052: { Comparison_1_t32F3C4F35231CD50E34D29CCA49E78C670A0CF17 * L_32 = ___comparer3; Edge_t65F291A222EA5D33E62D23059BCE2874AB93A424 L_33 = V_1; EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20* L_34 = ___keys0; int32_t L_35 = V_3; int32_t L_36 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_35, (int32_t)1)); V_3 = (int32_t)L_36; NullCheck(L_34); int32_t L_37 = L_36; Edge_t65F291A222EA5D33E62D23059BCE2874AB93A424 L_38 = (L_34)->GetAt(static_cast<il2cpp_array_size_t>(L_37)); NullCheck((Comparison_1_t32F3C4F35231CD50E34D29CCA49E78C670A0CF17 *)L_32); int32_t L_39; L_39 = (( int32_t (*) (Comparison_1_t32F3C4F35231CD50E34D29CCA49E78C670A0CF17 *, Edge_t65F291A222EA5D33E62D23059BCE2874AB93A424 , Edge_t65F291A222EA5D33E62D23059BCE2874AB93A424 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t32F3C4F35231CD50E34D29CCA49E78C670A0CF17 *)L_32, (Edge_t65F291A222EA5D33E62D23059BCE2874AB93A424 )L_33, (Edge_t65F291A222EA5D33E62D23059BCE2874AB93A424 )L_38, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_39) < ((int32_t)0))) { goto IL_0052; } } { int32_t L_40 = V_2; int32_t L_41 = V_3; if ((((int32_t)L_40) >= ((int32_t)L_41))) { goto IL_0077; } } { EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20* L_42 = ___keys0; int32_t L_43 = V_2; int32_t L_44 = V_3; (( void (*) (EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20*)L_42, (int32_t)L_43, (int32_t)L_44, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); } IL_0073: { int32_t L_45 = V_2; int32_t L_46 = V_3; if ((((int32_t)L_45) < ((int32_t)L_46))) { goto IL_003d; } } IL_0077: { EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20* L_47 = ___keys0; int32_t L_48 = V_2; int32_t L_49 = ___hi2; (( void (*) (EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20*)L_47, (int32_t)L_48, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_49, (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); int32_t L_50 = V_2; return (int32_t)L_50; } } // System.Void System.Collections.Generic.ArraySortHelper`1<Microsoft.MixedReality.Toolkit.Boundary.Edge>::Heapsort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Heapsort_m5F701C327E7348AAEB30DC8590C0AC3994BF5C88_gshared (EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20* ___keys0, int32_t ___lo1, int32_t ___hi2, Comparison_1_t32F3C4F35231CD50E34D29CCA49E78C670A0CF17 * ___comparer3, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; int32_t V_2 = 0; { int32_t L_0 = ___hi2; int32_t L_1 = ___lo1; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_0, (int32_t)L_1)), (int32_t)1)); int32_t L_2 = V_0; V_1 = (int32_t)((int32_t)((int32_t)L_2/(int32_t)2)); goto IL_001a; } IL_000c: { EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20* L_3 = ___keys0; int32_t L_4 = V_1; int32_t L_5 = V_0; int32_t L_6 = ___lo1; Comparison_1_t32F3C4F35231CD50E34D29CCA49E78C670A0CF17 * L_7 = ___comparer3; (( void (*) (EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20*, int32_t, int32_t, int32_t, Comparison_1_t32F3C4F35231CD50E34D29CCA49E78C670A0CF17 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)->methodPointer)((EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20*)L_3, (int32_t)L_4, (int32_t)L_5, (int32_t)L_6, (Comparison_1_t32F3C4F35231CD50E34D29CCA49E78C670A0CF17 *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)); int32_t L_8 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_8, (int32_t)1)); } IL_001a: { int32_t L_9 = V_1; if ((((int32_t)L_9) >= ((int32_t)1))) { goto IL_000c; } } { int32_t L_10 = V_0; V_2 = (int32_t)L_10; goto IL_003e; } IL_0022: { EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20* L_11 = ___keys0; int32_t L_12 = ___lo1; int32_t L_13 = ___lo1; int32_t L_14 = V_2; (( void (*) (EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20*)L_11, (int32_t)L_12, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_13, (int32_t)L_14)), (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20* L_15 = ___keys0; int32_t L_16 = V_2; int32_t L_17 = ___lo1; Comparison_1_t32F3C4F35231CD50E34D29CCA49E78C670A0CF17 * L_18 = ___comparer3; (( void (*) (EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20*, int32_t, int32_t, int32_t, Comparison_1_t32F3C4F35231CD50E34D29CCA49E78C670A0CF17 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)->methodPointer)((EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20*)L_15, (int32_t)1, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_16, (int32_t)1)), (int32_t)L_17, (Comparison_1_t32F3C4F35231CD50E34D29CCA49E78C670A0CF17 *)L_18, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)); int32_t L_19 = V_2; V_2 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_19, (int32_t)1)); } IL_003e: { int32_t L_20 = V_2; if ((((int32_t)L_20) > ((int32_t)1))) { goto IL_0022; } } { return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<Microsoft.MixedReality.Toolkit.Boundary.Edge>::DownHeap(T[],System.Int32,System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_DownHeap_m56969D7BCDDF7A942E692A8B469B50F36BECEDE6_gshared (EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20* ___keys0, int32_t ___i1, int32_t ___n2, int32_t ___lo3, Comparison_1_t32F3C4F35231CD50E34D29CCA49E78C670A0CF17 * ___comparer4, const RuntimeMethod* method) { Edge_t65F291A222EA5D33E62D23059BCE2874AB93A424 V_0; memset((&V_0), 0, sizeof(V_0)); int32_t V_1 = 0; { EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20* L_0 = ___keys0; int32_t L_1 = ___lo3; int32_t L_2 = ___i1; NullCheck(L_0); int32_t L_3 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_1, (int32_t)L_2)), (int32_t)1)); Edge_t65F291A222EA5D33E62D23059BCE2874AB93A424 L_4 = (L_0)->GetAt(static_cast<il2cpp_array_size_t>(L_3)); V_0 = (Edge_t65F291A222EA5D33E62D23059BCE2874AB93A424 )L_4; goto IL_0067; } IL_000e: { int32_t L_5 = ___i1; V_1 = (int32_t)((int32_t)il2cpp_codegen_multiply((int32_t)2, (int32_t)L_5)); int32_t L_6 = V_1; int32_t L_7 = ___n2; if ((((int32_t)L_6) >= ((int32_t)L_7))) { goto IL_0038; } } { Comparison_1_t32F3C4F35231CD50E34D29CCA49E78C670A0CF17 * L_8 = ___comparer4; EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20* L_9 = ___keys0; int32_t L_10 = ___lo3; int32_t L_11 = V_1; NullCheck(L_9); int32_t L_12 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_10, (int32_t)L_11)), (int32_t)1)); Edge_t65F291A222EA5D33E62D23059BCE2874AB93A424 L_13 = (L_9)->GetAt(static_cast<il2cpp_array_size_t>(L_12)); EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20* L_14 = ___keys0; int32_t L_15 = ___lo3; int32_t L_16 = V_1; NullCheck(L_14); int32_t L_17 = ((int32_t)il2cpp_codegen_add((int32_t)L_15, (int32_t)L_16)); Edge_t65F291A222EA5D33E62D23059BCE2874AB93A424 L_18 = (L_14)->GetAt(static_cast<il2cpp_array_size_t>(L_17)); NullCheck((Comparison_1_t32F3C4F35231CD50E34D29CCA49E78C670A0CF17 *)L_8); int32_t L_19; L_19 = (( int32_t (*) (Comparison_1_t32F3C4F35231CD50E34D29CCA49E78C670A0CF17 *, Edge_t65F291A222EA5D33E62D23059BCE2874AB93A424 , Edge_t65F291A222EA5D33E62D23059BCE2874AB93A424 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t32F3C4F35231CD50E34D29CCA49E78C670A0CF17 *)L_8, (Edge_t65F291A222EA5D33E62D23059BCE2874AB93A424 )L_13, (Edge_t65F291A222EA5D33E62D23059BCE2874AB93A424 )L_18, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_19) >= ((int32_t)0))) { goto IL_0038; } } { int32_t L_20 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_20, (int32_t)1)); } IL_0038: { Comparison_1_t32F3C4F35231CD50E34D29CCA49E78C670A0CF17 * L_21 = ___comparer4; Edge_t65F291A222EA5D33E62D23059BCE2874AB93A424 L_22 = V_0; EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20* L_23 = ___keys0; int32_t L_24 = ___lo3; int32_t L_25 = V_1; NullCheck(L_23); int32_t L_26 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_24, (int32_t)L_25)), (int32_t)1)); Edge_t65F291A222EA5D33E62D23059BCE2874AB93A424 L_27 = (L_23)->GetAt(static_cast<il2cpp_array_size_t>(L_26)); NullCheck((Comparison_1_t32F3C4F35231CD50E34D29CCA49E78C670A0CF17 *)L_21); int32_t L_28; L_28 = (( int32_t (*) (Comparison_1_t32F3C4F35231CD50E34D29CCA49E78C670A0CF17 *, Edge_t65F291A222EA5D33E62D23059BCE2874AB93A424 , Edge_t65F291A222EA5D33E62D23059BCE2874AB93A424 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t32F3C4F35231CD50E34D29CCA49E78C670A0CF17 *)L_21, (Edge_t65F291A222EA5D33E62D23059BCE2874AB93A424 )L_22, (Edge_t65F291A222EA5D33E62D23059BCE2874AB93A424 )L_27, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_28) >= ((int32_t)0))) { goto IL_006d; } } { EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20* L_29 = ___keys0; int32_t L_30 = ___lo3; int32_t L_31 = ___i1; EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20* L_32 = ___keys0; int32_t L_33 = ___lo3; int32_t L_34 = V_1; NullCheck(L_32); int32_t L_35 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_33, (int32_t)L_34)), (int32_t)1)); Edge_t65F291A222EA5D33E62D23059BCE2874AB93A424 L_36 = (L_32)->GetAt(static_cast<il2cpp_array_size_t>(L_35)); NullCheck(L_29); (L_29)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_30, (int32_t)L_31)), (int32_t)1))), (Edge_t65F291A222EA5D33E62D23059BCE2874AB93A424 )L_36); int32_t L_37 = V_1; ___i1 = (int32_t)L_37; } IL_0067: { int32_t L_38 = ___i1; int32_t L_39 = ___n2; if ((((int32_t)L_38) <= ((int32_t)((int32_t)((int32_t)L_39/(int32_t)2))))) { goto IL_000e; } } IL_006d: { EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20* L_40 = ___keys0; int32_t L_41 = ___lo3; int32_t L_42 = ___i1; Edge_t65F291A222EA5D33E62D23059BCE2874AB93A424 L_43 = V_0; NullCheck(L_40); (L_40)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_41, (int32_t)L_42)), (int32_t)1))), (Edge_t65F291A222EA5D33E62D23059BCE2874AB93A424 )L_43); return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<Microsoft.MixedReality.Toolkit.Boundary.Edge>::InsertionSort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_InsertionSort_m4080B0B58889B4BB48AD3B6B31F583EA4A0EC115_gshared (EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20* ___keys0, int32_t ___lo1, int32_t ___hi2, Comparison_1_t32F3C4F35231CD50E34D29CCA49E78C670A0CF17 * ___comparer3, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; Edge_t65F291A222EA5D33E62D23059BCE2874AB93A424 V_2; memset((&V_2), 0, sizeof(V_2)); { int32_t L_0 = ___lo1; V_0 = (int32_t)L_0; goto IL_0049; } IL_0004: { int32_t L_1 = V_0; V_1 = (int32_t)L_1; EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20* L_2 = ___keys0; int32_t L_3 = V_0; NullCheck(L_2); int32_t L_4 = ((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)1)); Edge_t65F291A222EA5D33E62D23059BCE2874AB93A424 L_5 = (L_2)->GetAt(static_cast<il2cpp_array_size_t>(L_4)); V_2 = (Edge_t65F291A222EA5D33E62D23059BCE2874AB93A424 )L_5; goto IL_0026; } IL_0012: { EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20* L_6 = ___keys0; int32_t L_7 = V_1; EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20* L_8 = ___keys0; int32_t L_9 = V_1; NullCheck(L_8); int32_t L_10 = L_9; Edge_t65F291A222EA5D33E62D23059BCE2874AB93A424 L_11 = (L_8)->GetAt(static_cast<il2cpp_array_size_t>(L_10)); NullCheck(L_6); (L_6)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add((int32_t)L_7, (int32_t)1))), (Edge_t65F291A222EA5D33E62D23059BCE2874AB93A424 )L_11); int32_t L_12 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_12, (int32_t)1)); } IL_0026: { int32_t L_13 = V_1; int32_t L_14 = ___lo1; if ((((int32_t)L_13) < ((int32_t)L_14))) { goto IL_003b; } } { Comparison_1_t32F3C4F35231CD50E34D29CCA49E78C670A0CF17 * L_15 = ___comparer3; Edge_t65F291A222EA5D33E62D23059BCE2874AB93A424 L_16 = V_2; EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20* L_17 = ___keys0; int32_t L_18 = V_1; NullCheck(L_17); int32_t L_19 = L_18; Edge_t65F291A222EA5D33E62D23059BCE2874AB93A424 L_20 = (L_17)->GetAt(static_cast<il2cpp_array_size_t>(L_19)); NullCheck((Comparison_1_t32F3C4F35231CD50E34D29CCA49E78C670A0CF17 *)L_15); int32_t L_21; L_21 = (( int32_t (*) (Comparison_1_t32F3C4F35231CD50E34D29CCA49E78C670A0CF17 *, Edge_t65F291A222EA5D33E62D23059BCE2874AB93A424 , Edge_t65F291A222EA5D33E62D23059BCE2874AB93A424 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t32F3C4F35231CD50E34D29CCA49E78C670A0CF17 *)L_15, (Edge_t65F291A222EA5D33E62D23059BCE2874AB93A424 )L_16, (Edge_t65F291A222EA5D33E62D23059BCE2874AB93A424 )L_20, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_21) < ((int32_t)0))) { goto IL_0012; } } IL_003b: { EdgeU5BU5D_tBD5688DA75ED7305A72173618BF2973CDA34BB20* L_22 = ___keys0; int32_t L_23 = V_1; Edge_t65F291A222EA5D33E62D23059BCE2874AB93A424 L_24 = V_2; NullCheck(L_22); (L_22)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add((int32_t)L_23, (int32_t)1))), (Edge_t65F291A222EA5D33E62D23059BCE2874AB93A424 )L_24); int32_t L_25 = V_0; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_25, (int32_t)1)); } IL_0049: { int32_t L_26 = V_0; int32_t L_27 = ___hi2; if ((((int32_t)L_26) < ((int32_t)L_27))) { goto IL_0004; } } { return; } } #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Void System.Collections.Generic.ArraySortHelper`1<System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken>::Sort(T[],System.Int32,System.Int32,System.Collections.Generic.IComparer`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Sort_m839A64FB640DF1A3FFC43FB0D4466B222D84A5CC_gshared (EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B* ___keys0, int32_t ___index1, int32_t ___length2, RuntimeObject* ___comparer3, const RuntimeMethod* method) { Exception_t * V_0 = NULL; il2cpp::utils::ExceptionSupportStack<RuntimeObject*, 1> __active_exceptions; il2cpp::utils::ExceptionSupportStack<int32_t, 2> __leave_targets; IL_0000: try { // begin try (depth: 1) { RuntimeObject* L_0 = ___comparer3; if (L_0) { goto IL_000a; } } IL_0003: { Comparer_1_tACFA0E90774BE88B1013E2F15D08F249EF776CB2 * L_1; L_1 = (( Comparer_1_tACFA0E90774BE88B1013E2F15D08F249EF776CB2 * (*) (const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)->methodPointer)(/*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)); ___comparer3 = (RuntimeObject*)L_1; } IL_000a: { EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B* L_2 = ___keys0; int32_t L_3 = ___index1; int32_t L_4 = ___length2; RuntimeObject* L_5 = ___comparer3; RuntimeObject* L_6 = (RuntimeObject*)L_5; Comparison_1_t808B3C7A1EC3855CB188E50BBE0384CF600AB0D6 * L_7 = (Comparison_1_t808B3C7A1EC3855CB188E50BBE0384CF600AB0D6 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 4)); (( void (*) (Comparison_1_t808B3C7A1EC3855CB188E50BBE0384CF600AB0D6 *, RuntimeObject *, intptr_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 5)->methodPointer)(L_7, (RuntimeObject *)L_6, (intptr_t)((intptr_t)GetInterfaceMethodInfo(L_6, 0, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 3))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 5)); (( void (*) (EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B*, int32_t, int32_t, Comparison_1_t808B3C7A1EC3855CB188E50BBE0384CF600AB0D6 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)->methodPointer)((EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B*)L_2, (int32_t)L_3, (int32_t)L_4, (Comparison_1_t808B3C7A1EC3855CB188E50BBE0384CF600AB0D6 *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)); goto IL_0037; } } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&IndexOutOfRangeException_tDC9EF7A0346CE39E54DA1083F07BE6DFC3CE2EDD_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_0021; } if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&Exception_t_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_002a; } throw e; } CATCH_0021: { // begin catch(System.IndexOutOfRangeException) RuntimeObject* L_8 = ___comparer3; IntrospectiveSortUtilities_ThrowOrIgnoreBadComparer_mE23A8103696FA67F874E7DA86625BB3921DB801F((RuntimeObject *)L_8, /*hidden argument*/NULL); IL2CPP_POP_ACTIVE_EXCEPTION(); goto IL_0037; } // end catch (depth: 1) CATCH_002a: { // begin catch(System.Exception) V_0 = (Exception_t *)((Exception_t *)IL2CPP_GET_ACTIVE_EXCEPTION(Exception_t *)); Exception_t * L_9 = V_0; InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB * L_10 = (InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB *)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB_il2cpp_TypeInfo_var))); InvalidOperationException__ctor_m4A65916B1316FBF45ECDF1FF7FAC9E3CA30C112C(L_10, (String_t*)((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral6EDB6C049ED9617FA335A262A29BF30B15221AEA)), (Exception_t *)L_9, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_10, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArraySortHelper_1_Sort_m839A64FB640DF1A3FFC43FB0D4466B222D84A5CC_RuntimeMethod_var))); } // end catch (depth: 1) IL_0037: { return; } } // System.Int32 System.Collections.Generic.ArraySortHelper`1<System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken>::BinarySearch(T[],System.Int32,System.Int32,T,System.Collections.Generic.IComparer`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t ArraySortHelper_1_BinarySearch_mFDE487F6BCB415A3B8D1ED9AFDEE6E2B61ED0B88_gshared (EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B* ___array0, int32_t ___index1, int32_t ___length2, EventRegistrationToken_t5460ED02F1A6B74B604DFD634E8D5429857E9830 ___value3, RuntimeObject* ___comparer4, const RuntimeMethod* method) { int32_t V_0 = 0; Exception_t * V_1 = NULL; il2cpp::utils::ExceptionSupportStack<RuntimeObject*, 1> __active_exceptions; il2cpp::utils::ExceptionSupportStack<int32_t, 1> __leave_targets; IL_0000: try { // begin try (depth: 1) { RuntimeObject* L_0 = ___comparer4; if (L_0) { goto IL_000b; } } IL_0004: { Comparer_1_tACFA0E90774BE88B1013E2F15D08F249EF776CB2 * L_1; L_1 = (( Comparer_1_tACFA0E90774BE88B1013E2F15D08F249EF776CB2 * (*) (const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)->methodPointer)(/*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)); ___comparer4 = (RuntimeObject*)L_1; } IL_000b: { EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B* L_2 = ___array0; int32_t L_3 = ___index1; int32_t L_4 = ___length2; EventRegistrationToken_t5460ED02F1A6B74B604DFD634E8D5429857E9830 L_5 = ___value3; RuntimeObject* L_6 = ___comparer4; int32_t L_7; L_7 = (( int32_t (*) (EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B*, int32_t, int32_t, EventRegistrationToken_t5460ED02F1A6B74B604DFD634E8D5429857E9830 , RuntimeObject*, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 8)->methodPointer)((EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B*)L_2, (int32_t)L_3, (int32_t)L_4, (EventRegistrationToken_t5460ED02F1A6B74B604DFD634E8D5429857E9830 )L_5, (RuntimeObject*)L_6, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 8)); V_0 = (int32_t)L_7; goto IL_0026; } } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&Exception_t_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_0019; } throw e; } CATCH_0019: { // begin catch(System.Exception) V_1 = (Exception_t *)((Exception_t *)IL2CPP_GET_ACTIVE_EXCEPTION(Exception_t *)); Exception_t * L_8 = V_1; InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB * L_9 = (InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB *)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB_il2cpp_TypeInfo_var))); InvalidOperationException__ctor_m4A65916B1316FBF45ECDF1FF7FAC9E3CA30C112C(L_9, (String_t*)((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral6EDB6C049ED9617FA335A262A29BF30B15221AEA)), (Exception_t *)L_8, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_9, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArraySortHelper_1_BinarySearch_mFDE487F6BCB415A3B8D1ED9AFDEE6E2B61ED0B88_RuntimeMethod_var))); } // end catch (depth: 1) IL_0026: { int32_t L_10 = V_0; return (int32_t)L_10; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken>::Sort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Sort_mC1D0C5EC108B813C4F0862C9524CB4E3CA3FD758_gshared (EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B* ___keys0, int32_t ___index1, int32_t ___length2, Comparison_1_t808B3C7A1EC3855CB188E50BBE0384CF600AB0D6 * ___comparer3, const RuntimeMethod* method) { Exception_t * V_0 = NULL; il2cpp::utils::ExceptionSupportStack<RuntimeObject*, 1> __active_exceptions; il2cpp::utils::ExceptionSupportStack<int32_t, 2> __leave_targets; IL_0000: try { // begin try (depth: 1) EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B* L_0 = ___keys0; int32_t L_1 = ___index1; int32_t L_2 = ___length2; Comparison_1_t808B3C7A1EC3855CB188E50BBE0384CF600AB0D6 * L_3 = ___comparer3; (( void (*) (EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B*, int32_t, int32_t, Comparison_1_t808B3C7A1EC3855CB188E50BBE0384CF600AB0D6 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)->methodPointer)((EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B*)L_0, (int32_t)L_1, (int32_t)L_2, (Comparison_1_t808B3C7A1EC3855CB188E50BBE0384CF600AB0D6 *)L_3, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)); goto IL_0021; } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&IndexOutOfRangeException_tDC9EF7A0346CE39E54DA1083F07BE6DFC3CE2EDD_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_000b; } if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&Exception_t_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_0014; } throw e; } CATCH_000b: { // begin catch(System.IndexOutOfRangeException) Comparison_1_t808B3C7A1EC3855CB188E50BBE0384CF600AB0D6 * L_4 = ___comparer3; IntrospectiveSortUtilities_ThrowOrIgnoreBadComparer_mE23A8103696FA67F874E7DA86625BB3921DB801F((RuntimeObject *)L_4, /*hidden argument*/NULL); IL2CPP_POP_ACTIVE_EXCEPTION(); goto IL_0021; } // end catch (depth: 1) CATCH_0014: { // begin catch(System.Exception) V_0 = (Exception_t *)((Exception_t *)IL2CPP_GET_ACTIVE_EXCEPTION(Exception_t *)); Exception_t * L_5 = V_0; InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB * L_6 = (InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB *)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB_il2cpp_TypeInfo_var))); InvalidOperationException__ctor_m4A65916B1316FBF45ECDF1FF7FAC9E3CA30C112C(L_6, (String_t*)((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral6EDB6C049ED9617FA335A262A29BF30B15221AEA)), (Exception_t *)L_5, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_6, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArraySortHelper_1_Sort_mC1D0C5EC108B813C4F0862C9524CB4E3CA3FD758_RuntimeMethod_var))); } // end catch (depth: 1) IL_0021: { return; } } // System.Int32 System.Collections.Generic.ArraySortHelper`1<System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken>::InternalBinarySearch(T[],System.Int32,System.Int32,T,System.Collections.Generic.IComparer`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t ArraySortHelper_1_InternalBinarySearch_m9D0C592EB17D22BB152A74931452D8A49BE6AEDF_gshared (EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B* ___array0, int32_t ___index1, int32_t ___length2, EventRegistrationToken_t5460ED02F1A6B74B604DFD634E8D5429857E9830 ___value3, RuntimeObject* ___comparer4, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; int32_t V_2 = 0; int32_t V_3 = 0; { int32_t L_0 = ___index1; V_0 = (int32_t)L_0; int32_t L_1 = ___index1; int32_t L_2 = ___length2; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_1, (int32_t)L_2)), (int32_t)1)); goto IL_0035; } IL_000a: { int32_t L_3 = V_0; int32_t L_4 = V_1; int32_t L_5 = V_0; V_2 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)((int32_t)((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_4, (int32_t)L_5))>>(int32_t)1)))); RuntimeObject* L_6 = ___comparer4; EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B* L_7 = ___array0; int32_t L_8 = V_2; NullCheck(L_7); int32_t L_9 = L_8; EventRegistrationToken_t5460ED02F1A6B74B604DFD634E8D5429857E9830 L_10 = (L_7)->GetAt(static_cast<il2cpp_array_size_t>(L_9)); EventRegistrationToken_t5460ED02F1A6B74B604DFD634E8D5429857E9830 L_11 = ___value3; NullCheck((RuntimeObject*)L_6); int32_t L_12; L_12 = InterfaceFuncInvoker2< int32_t, EventRegistrationToken_t5460ED02F1A6B74B604DFD634E8D5429857E9830 , EventRegistrationToken_t5460ED02F1A6B74B604DFD634E8D5429857E9830 >::Invoke(0 /* System.Int32 System.Collections.Generic.IComparer`1<System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken>::Compare(T,T) */, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 3), (RuntimeObject*)L_6, (EventRegistrationToken_t5460ED02F1A6B74B604DFD634E8D5429857E9830 )L_10, (EventRegistrationToken_t5460ED02F1A6B74B604DFD634E8D5429857E9830 )L_11); V_3 = (int32_t)L_12; int32_t L_13 = V_3; if (L_13) { goto IL_0027; } } { int32_t L_14 = V_2; return (int32_t)L_14; } IL_0027: { int32_t L_15 = V_3; if ((((int32_t)L_15) >= ((int32_t)0))) { goto IL_0031; } } { int32_t L_16 = V_2; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_16, (int32_t)1)); goto IL_0035; } IL_0031: { int32_t L_17 = V_2; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_17, (int32_t)1)); } IL_0035: { int32_t L_18 = V_0; int32_t L_19 = V_1; if ((((int32_t)L_18) <= ((int32_t)L_19))) { goto IL_000a; } } { int32_t L_20 = V_0; return (int32_t)((~L_20)); } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken>::SwapIfGreater(T[],System.Comparison`1<T>,System.Int32,System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_SwapIfGreater_m1557487424DE3C34B6931531CD339949DDDCDF7D_gshared (EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B* ___keys0, Comparison_1_t808B3C7A1EC3855CB188E50BBE0384CF600AB0D6 * ___comparer1, int32_t ___a2, int32_t ___b3, const RuntimeMethod* method) { EventRegistrationToken_t5460ED02F1A6B74B604DFD634E8D5429857E9830 V_0; memset((&V_0), 0, sizeof(V_0)); { int32_t L_0 = ___a2; int32_t L_1 = ___b3; if ((((int32_t)L_0) == ((int32_t)L_1))) { goto IL_0039; } } { Comparison_1_t808B3C7A1EC3855CB188E50BBE0384CF600AB0D6 * L_2 = ___comparer1; EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B* L_3 = ___keys0; int32_t L_4 = ___a2; NullCheck(L_3); int32_t L_5 = L_4; EventRegistrationToken_t5460ED02F1A6B74B604DFD634E8D5429857E9830 L_6 = (L_3)->GetAt(static_cast<il2cpp_array_size_t>(L_5)); EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B* L_7 = ___keys0; int32_t L_8 = ___b3; NullCheck(L_7); int32_t L_9 = L_8; EventRegistrationToken_t5460ED02F1A6B74B604DFD634E8D5429857E9830 L_10 = (L_7)->GetAt(static_cast<il2cpp_array_size_t>(L_9)); NullCheck((Comparison_1_t808B3C7A1EC3855CB188E50BBE0384CF600AB0D6 *)L_2); int32_t L_11; L_11 = (( int32_t (*) (Comparison_1_t808B3C7A1EC3855CB188E50BBE0384CF600AB0D6 *, EventRegistrationToken_t5460ED02F1A6B74B604DFD634E8D5429857E9830 , EventRegistrationToken_t5460ED02F1A6B74B604DFD634E8D5429857E9830 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t808B3C7A1EC3855CB188E50BBE0384CF600AB0D6 *)L_2, (EventRegistrationToken_t5460ED02F1A6B74B604DFD634E8D5429857E9830 )L_6, (EventRegistrationToken_t5460ED02F1A6B74B604DFD634E8D5429857E9830 )L_10, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_11) <= ((int32_t)0))) { goto IL_0039; } } { EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B* L_12 = ___keys0; int32_t L_13 = ___a2; NullCheck(L_12); int32_t L_14 = L_13; EventRegistrationToken_t5460ED02F1A6B74B604DFD634E8D5429857E9830 L_15 = (L_12)->GetAt(static_cast<il2cpp_array_size_t>(L_14)); V_0 = (EventRegistrationToken_t5460ED02F1A6B74B604DFD634E8D5429857E9830 )L_15; EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B* L_16 = ___keys0; int32_t L_17 = ___a2; EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B* L_18 = ___keys0; int32_t L_19 = ___b3; NullCheck(L_18); int32_t L_20 = L_19; EventRegistrationToken_t5460ED02F1A6B74B604DFD634E8D5429857E9830 L_21 = (L_18)->GetAt(static_cast<il2cpp_array_size_t>(L_20)); NullCheck(L_16); (L_16)->SetAt(static_cast<il2cpp_array_size_t>(L_17), (EventRegistrationToken_t5460ED02F1A6B74B604DFD634E8D5429857E9830 )L_21); EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B* L_22 = ___keys0; int32_t L_23 = ___b3; EventRegistrationToken_t5460ED02F1A6B74B604DFD634E8D5429857E9830 L_24 = V_0; NullCheck(L_22); (L_22)->SetAt(static_cast<il2cpp_array_size_t>(L_23), (EventRegistrationToken_t5460ED02F1A6B74B604DFD634E8D5429857E9830 )L_24); } IL_0039: { return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken>::Swap(T[],System.Int32,System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Swap_m977A67EBE9B16A3E5A396803521F5EA4A512A35E_gshared (EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B* ___a0, int32_t ___i1, int32_t ___j2, const RuntimeMethod* method) { EventRegistrationToken_t5460ED02F1A6B74B604DFD634E8D5429857E9830 V_0; memset((&V_0), 0, sizeof(V_0)); { int32_t L_0 = ___i1; int32_t L_1 = ___j2; if ((((int32_t)L_0) == ((int32_t)L_1))) { goto IL_0022; } } { EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B* L_2 = ___a0; int32_t L_3 = ___i1; NullCheck(L_2); int32_t L_4 = L_3; EventRegistrationToken_t5460ED02F1A6B74B604DFD634E8D5429857E9830 L_5 = (L_2)->GetAt(static_cast<il2cpp_array_size_t>(L_4)); V_0 = (EventRegistrationToken_t5460ED02F1A6B74B604DFD634E8D5429857E9830 )L_5; EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B* L_6 = ___a0; int32_t L_7 = ___i1; EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B* L_8 = ___a0; int32_t L_9 = ___j2; NullCheck(L_8); int32_t L_10 = L_9; EventRegistrationToken_t5460ED02F1A6B74B604DFD634E8D5429857E9830 L_11 = (L_8)->GetAt(static_cast<il2cpp_array_size_t>(L_10)); NullCheck(L_6); (L_6)->SetAt(static_cast<il2cpp_array_size_t>(L_7), (EventRegistrationToken_t5460ED02F1A6B74B604DFD634E8D5429857E9830 )L_11); EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B* L_12 = ___a0; int32_t L_13 = ___j2; EventRegistrationToken_t5460ED02F1A6B74B604DFD634E8D5429857E9830 L_14 = V_0; NullCheck(L_12); (L_12)->SetAt(static_cast<il2cpp_array_size_t>(L_13), (EventRegistrationToken_t5460ED02F1A6B74B604DFD634E8D5429857E9830 )L_14); } IL_0022: { return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken>::IntrospectiveSort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_IntrospectiveSort_mCE2C95F4D299FDEF66B425452D38595B722788C6_gshared (EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B* ___keys0, int32_t ___left1, int32_t ___length2, Comparison_1_t808B3C7A1EC3855CB188E50BBE0384CF600AB0D6 * ___comparer3, const RuntimeMethod* method) { { int32_t L_0 = ___length2; if ((((int32_t)L_0) >= ((int32_t)2))) { goto IL_0005; } } { return; } IL_0005: { EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B* L_1 = ___keys0; int32_t L_2 = ___left1; int32_t L_3 = ___length2; int32_t L_4 = ___left1; EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B* L_5 = ___keys0; NullCheck(L_5); int32_t L_6; L_6 = IntrospectiveSortUtilities_FloorLog2_m05ECB6CAC7A23087D9EC2C2A4DDCFE12272C3872((int32_t)((int32_t)((int32_t)(((RuntimeArray*)L_5)->max_length))), /*hidden argument*/NULL); Comparison_1_t808B3C7A1EC3855CB188E50BBE0384CF600AB0D6 * L_7 = ___comparer3; (( void (*) (EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B*, int32_t, int32_t, int32_t, Comparison_1_t808B3C7A1EC3855CB188E50BBE0384CF600AB0D6 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)->methodPointer)((EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B*)L_1, (int32_t)L_2, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)L_4)), (int32_t)1)), (int32_t)((int32_t)il2cpp_codegen_multiply((int32_t)2, (int32_t)L_6)), (Comparison_1_t808B3C7A1EC3855CB188E50BBE0384CF600AB0D6 *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)); return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken>::IntroSort(T[],System.Int32,System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_IntroSort_mD7CDA04CCEDE828FC66D82AF5DD528F2D067A5BB_gshared (EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B* ___keys0, int32_t ___lo1, int32_t ___hi2, int32_t ___depthLimit3, Comparison_1_t808B3C7A1EC3855CB188E50BBE0384CF600AB0D6 * ___comparer4, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; { goto IL_0086; } IL_0005: { int32_t L_0 = ___hi2; int32_t L_1 = ___lo1; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_0, (int32_t)L_1)), (int32_t)1)); int32_t L_2 = V_0; if ((((int32_t)L_2) > ((int32_t)((int32_t)16)))) { goto IL_0056; } } { int32_t L_3 = V_0; if ((!(((uint32_t)L_3) == ((uint32_t)1)))) { goto IL_0015; } } { return; } IL_0015: { int32_t L_4 = V_0; if ((!(((uint32_t)L_4) == ((uint32_t)2)))) { goto IL_0024; } } { EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B* L_5 = ___keys0; Comparison_1_t808B3C7A1EC3855CB188E50BBE0384CF600AB0D6 * L_6 = ___comparer4; int32_t L_7 = ___lo1; int32_t L_8 = ___hi2; (( void (*) (EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B*, Comparison_1_t808B3C7A1EC3855CB188E50BBE0384CF600AB0D6 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B*)L_5, (Comparison_1_t808B3C7A1EC3855CB188E50BBE0384CF600AB0D6 *)L_6, (int32_t)L_7, (int32_t)L_8, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); return; } IL_0024: { int32_t L_9 = V_0; if ((!(((uint32_t)L_9) == ((uint32_t)3)))) { goto IL_004b; } } { EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B* L_10 = ___keys0; Comparison_1_t808B3C7A1EC3855CB188E50BBE0384CF600AB0D6 * L_11 = ___comparer4; int32_t L_12 = ___lo1; int32_t L_13 = ___hi2; (( void (*) (EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B*, Comparison_1_t808B3C7A1EC3855CB188E50BBE0384CF600AB0D6 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B*)L_10, (Comparison_1_t808B3C7A1EC3855CB188E50BBE0384CF600AB0D6 *)L_11, (int32_t)L_12, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_13, (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B* L_14 = ___keys0; Comparison_1_t808B3C7A1EC3855CB188E50BBE0384CF600AB0D6 * L_15 = ___comparer4; int32_t L_16 = ___lo1; int32_t L_17 = ___hi2; (( void (*) (EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B*, Comparison_1_t808B3C7A1EC3855CB188E50BBE0384CF600AB0D6 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B*)L_14, (Comparison_1_t808B3C7A1EC3855CB188E50BBE0384CF600AB0D6 *)L_15, (int32_t)L_16, (int32_t)L_17, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B* L_18 = ___keys0; Comparison_1_t808B3C7A1EC3855CB188E50BBE0384CF600AB0D6 * L_19 = ___comparer4; int32_t L_20 = ___hi2; int32_t L_21 = ___hi2; (( void (*) (EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B*, Comparison_1_t808B3C7A1EC3855CB188E50BBE0384CF600AB0D6 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B*)L_18, (Comparison_1_t808B3C7A1EC3855CB188E50BBE0384CF600AB0D6 *)L_19, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_20, (int32_t)1)), (int32_t)L_21, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); return; } IL_004b: { EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B* L_22 = ___keys0; int32_t L_23 = ___lo1; int32_t L_24 = ___hi2; Comparison_1_t808B3C7A1EC3855CB188E50BBE0384CF600AB0D6 * L_25 = ___comparer4; (( void (*) (EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B*, int32_t, int32_t, Comparison_1_t808B3C7A1EC3855CB188E50BBE0384CF600AB0D6 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 12)->methodPointer)((EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B*)L_22, (int32_t)L_23, (int32_t)L_24, (Comparison_1_t808B3C7A1EC3855CB188E50BBE0384CF600AB0D6 *)L_25, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 12)); return; } IL_0056: { int32_t L_26 = ___depthLimit3; if (L_26) { goto IL_0064; } } { EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B* L_27 = ___keys0; int32_t L_28 = ___lo1; int32_t L_29 = ___hi2; Comparison_1_t808B3C7A1EC3855CB188E50BBE0384CF600AB0D6 * L_30 = ___comparer4; (( void (*) (EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B*, int32_t, int32_t, Comparison_1_t808B3C7A1EC3855CB188E50BBE0384CF600AB0D6 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 13)->methodPointer)((EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B*)L_27, (int32_t)L_28, (int32_t)L_29, (Comparison_1_t808B3C7A1EC3855CB188E50BBE0384CF600AB0D6 *)L_30, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 13)); return; } IL_0064: { int32_t L_31 = ___depthLimit3; ___depthLimit3 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_31, (int32_t)1)); EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B* L_32 = ___keys0; int32_t L_33 = ___lo1; int32_t L_34 = ___hi2; Comparison_1_t808B3C7A1EC3855CB188E50BBE0384CF600AB0D6 * L_35 = ___comparer4; int32_t L_36; L_36 = (( int32_t (*) (EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B*, int32_t, int32_t, Comparison_1_t808B3C7A1EC3855CB188E50BBE0384CF600AB0D6 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 14)->methodPointer)((EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B*)L_32, (int32_t)L_33, (int32_t)L_34, (Comparison_1_t808B3C7A1EC3855CB188E50BBE0384CF600AB0D6 *)L_35, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 14)); V_1 = (int32_t)L_36; EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B* L_37 = ___keys0; int32_t L_38 = V_1; int32_t L_39 = ___hi2; int32_t L_40 = ___depthLimit3; Comparison_1_t808B3C7A1EC3855CB188E50BBE0384CF600AB0D6 * L_41 = ___comparer4; (( void (*) (EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B*, int32_t, int32_t, int32_t, Comparison_1_t808B3C7A1EC3855CB188E50BBE0384CF600AB0D6 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)->methodPointer)((EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B*)L_37, (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_38, (int32_t)1)), (int32_t)L_39, (int32_t)L_40, (Comparison_1_t808B3C7A1EC3855CB188E50BBE0384CF600AB0D6 *)L_41, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)); int32_t L_42 = V_1; ___hi2 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_42, (int32_t)1)); } IL_0086: { int32_t L_43 = ___hi2; int32_t L_44 = ___lo1; if ((((int32_t)L_43) > ((int32_t)L_44))) { goto IL_0005; } } { return; } } // System.Int32 System.Collections.Generic.ArraySortHelper`1<System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken>::PickPivotAndPartition(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t ArraySortHelper_1_PickPivotAndPartition_mFF54E141014F156A0E85E9F10904AE729BAD3058_gshared (EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B* ___keys0, int32_t ___lo1, int32_t ___hi2, Comparison_1_t808B3C7A1EC3855CB188E50BBE0384CF600AB0D6 * ___comparer3, const RuntimeMethod* method) { int32_t V_0 = 0; EventRegistrationToken_t5460ED02F1A6B74B604DFD634E8D5429857E9830 V_1; memset((&V_1), 0, sizeof(V_1)); int32_t V_2 = 0; int32_t V_3 = 0; { int32_t L_0 = ___lo1; int32_t L_1 = ___hi2; int32_t L_2 = ___lo1; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_0, (int32_t)((int32_t)((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_1, (int32_t)L_2))/(int32_t)2)))); EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B* L_3 = ___keys0; Comparison_1_t808B3C7A1EC3855CB188E50BBE0384CF600AB0D6 * L_4 = ___comparer3; int32_t L_5 = ___lo1; int32_t L_6 = V_0; (( void (*) (EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B*, Comparison_1_t808B3C7A1EC3855CB188E50BBE0384CF600AB0D6 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B*)L_3, (Comparison_1_t808B3C7A1EC3855CB188E50BBE0384CF600AB0D6 *)L_4, (int32_t)L_5, (int32_t)L_6, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B* L_7 = ___keys0; Comparison_1_t808B3C7A1EC3855CB188E50BBE0384CF600AB0D6 * L_8 = ___comparer3; int32_t L_9 = ___lo1; int32_t L_10 = ___hi2; (( void (*) (EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B*, Comparison_1_t808B3C7A1EC3855CB188E50BBE0384CF600AB0D6 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B*)L_7, (Comparison_1_t808B3C7A1EC3855CB188E50BBE0384CF600AB0D6 *)L_8, (int32_t)L_9, (int32_t)L_10, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B* L_11 = ___keys0; Comparison_1_t808B3C7A1EC3855CB188E50BBE0384CF600AB0D6 * L_12 = ___comparer3; int32_t L_13 = V_0; int32_t L_14 = ___hi2; (( void (*) (EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B*, Comparison_1_t808B3C7A1EC3855CB188E50BBE0384CF600AB0D6 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B*)L_11, (Comparison_1_t808B3C7A1EC3855CB188E50BBE0384CF600AB0D6 *)L_12, (int32_t)L_13, (int32_t)L_14, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B* L_15 = ___keys0; int32_t L_16 = V_0; NullCheck(L_15); int32_t L_17 = L_16; EventRegistrationToken_t5460ED02F1A6B74B604DFD634E8D5429857E9830 L_18 = (L_15)->GetAt(static_cast<il2cpp_array_size_t>(L_17)); V_1 = (EventRegistrationToken_t5460ED02F1A6B74B604DFD634E8D5429857E9830 )L_18; EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B* L_19 = ___keys0; int32_t L_20 = V_0; int32_t L_21 = ___hi2; (( void (*) (EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B*)L_19, (int32_t)L_20, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_21, (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); int32_t L_22 = ___lo1; V_2 = (int32_t)L_22; int32_t L_23 = ___hi2; V_3 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_23, (int32_t)1)); goto IL_0073; } IL_003d: { Comparison_1_t808B3C7A1EC3855CB188E50BBE0384CF600AB0D6 * L_24 = ___comparer3; EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B* L_25 = ___keys0; int32_t L_26 = V_2; int32_t L_27 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_26, (int32_t)1)); V_2 = (int32_t)L_27; NullCheck(L_25); int32_t L_28 = L_27; EventRegistrationToken_t5460ED02F1A6B74B604DFD634E8D5429857E9830 L_29 = (L_25)->GetAt(static_cast<il2cpp_array_size_t>(L_28)); EventRegistrationToken_t5460ED02F1A6B74B604DFD634E8D5429857E9830 L_30 = V_1; NullCheck((Comparison_1_t808B3C7A1EC3855CB188E50BBE0384CF600AB0D6 *)L_24); int32_t L_31; L_31 = (( int32_t (*) (Comparison_1_t808B3C7A1EC3855CB188E50BBE0384CF600AB0D6 *, EventRegistrationToken_t5460ED02F1A6B74B604DFD634E8D5429857E9830 , EventRegistrationToken_t5460ED02F1A6B74B604DFD634E8D5429857E9830 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t808B3C7A1EC3855CB188E50BBE0384CF600AB0D6 *)L_24, (EventRegistrationToken_t5460ED02F1A6B74B604DFD634E8D5429857E9830 )L_29, (EventRegistrationToken_t5460ED02F1A6B74B604DFD634E8D5429857E9830 )L_30, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_31) < ((int32_t)0))) { goto IL_003d; } } IL_0052: { Comparison_1_t808B3C7A1EC3855CB188E50BBE0384CF600AB0D6 * L_32 = ___comparer3; EventRegistrationToken_t5460ED02F1A6B74B604DFD634E8D5429857E9830 L_33 = V_1; EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B* L_34 = ___keys0; int32_t L_35 = V_3; int32_t L_36 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_35, (int32_t)1)); V_3 = (int32_t)L_36; NullCheck(L_34); int32_t L_37 = L_36; EventRegistrationToken_t5460ED02F1A6B74B604DFD634E8D5429857E9830 L_38 = (L_34)->GetAt(static_cast<il2cpp_array_size_t>(L_37)); NullCheck((Comparison_1_t808B3C7A1EC3855CB188E50BBE0384CF600AB0D6 *)L_32); int32_t L_39; L_39 = (( int32_t (*) (Comparison_1_t808B3C7A1EC3855CB188E50BBE0384CF600AB0D6 *, EventRegistrationToken_t5460ED02F1A6B74B604DFD634E8D5429857E9830 , EventRegistrationToken_t5460ED02F1A6B74B604DFD634E8D5429857E9830 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t808B3C7A1EC3855CB188E50BBE0384CF600AB0D6 *)L_32, (EventRegistrationToken_t5460ED02F1A6B74B604DFD634E8D5429857E9830 )L_33, (EventRegistrationToken_t5460ED02F1A6B74B604DFD634E8D5429857E9830 )L_38, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_39) < ((int32_t)0))) { goto IL_0052; } } { int32_t L_40 = V_2; int32_t L_41 = V_3; if ((((int32_t)L_40) >= ((int32_t)L_41))) { goto IL_0077; } } { EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B* L_42 = ___keys0; int32_t L_43 = V_2; int32_t L_44 = V_3; (( void (*) (EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B*)L_42, (int32_t)L_43, (int32_t)L_44, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); } IL_0073: { int32_t L_45 = V_2; int32_t L_46 = V_3; if ((((int32_t)L_45) < ((int32_t)L_46))) { goto IL_003d; } } IL_0077: { EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B* L_47 = ___keys0; int32_t L_48 = V_2; int32_t L_49 = ___hi2; (( void (*) (EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B*)L_47, (int32_t)L_48, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_49, (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); int32_t L_50 = V_2; return (int32_t)L_50; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken>::Heapsort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Heapsort_m0B44DFDB5923DDCA4F57ACD802157CA55BE61314_gshared (EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B* ___keys0, int32_t ___lo1, int32_t ___hi2, Comparison_1_t808B3C7A1EC3855CB188E50BBE0384CF600AB0D6 * ___comparer3, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; int32_t V_2 = 0; { int32_t L_0 = ___hi2; int32_t L_1 = ___lo1; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_0, (int32_t)L_1)), (int32_t)1)); int32_t L_2 = V_0; V_1 = (int32_t)((int32_t)((int32_t)L_2/(int32_t)2)); goto IL_001a; } IL_000c: { EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B* L_3 = ___keys0; int32_t L_4 = V_1; int32_t L_5 = V_0; int32_t L_6 = ___lo1; Comparison_1_t808B3C7A1EC3855CB188E50BBE0384CF600AB0D6 * L_7 = ___comparer3; (( void (*) (EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B*, int32_t, int32_t, int32_t, Comparison_1_t808B3C7A1EC3855CB188E50BBE0384CF600AB0D6 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)->methodPointer)((EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B*)L_3, (int32_t)L_4, (int32_t)L_5, (int32_t)L_6, (Comparison_1_t808B3C7A1EC3855CB188E50BBE0384CF600AB0D6 *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)); int32_t L_8 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_8, (int32_t)1)); } IL_001a: { int32_t L_9 = V_1; if ((((int32_t)L_9) >= ((int32_t)1))) { goto IL_000c; } } { int32_t L_10 = V_0; V_2 = (int32_t)L_10; goto IL_003e; } IL_0022: { EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B* L_11 = ___keys0; int32_t L_12 = ___lo1; int32_t L_13 = ___lo1; int32_t L_14 = V_2; (( void (*) (EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B*)L_11, (int32_t)L_12, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_13, (int32_t)L_14)), (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B* L_15 = ___keys0; int32_t L_16 = V_2; int32_t L_17 = ___lo1; Comparison_1_t808B3C7A1EC3855CB188E50BBE0384CF600AB0D6 * L_18 = ___comparer3; (( void (*) (EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B*, int32_t, int32_t, int32_t, Comparison_1_t808B3C7A1EC3855CB188E50BBE0384CF600AB0D6 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)->methodPointer)((EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B*)L_15, (int32_t)1, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_16, (int32_t)1)), (int32_t)L_17, (Comparison_1_t808B3C7A1EC3855CB188E50BBE0384CF600AB0D6 *)L_18, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)); int32_t L_19 = V_2; V_2 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_19, (int32_t)1)); } IL_003e: { int32_t L_20 = V_2; if ((((int32_t)L_20) > ((int32_t)1))) { goto IL_0022; } } { return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken>::DownHeap(T[],System.Int32,System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_DownHeap_m209AEFB68824E2039556AB057FE9CEAA1FBE0B62_gshared (EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B* ___keys0, int32_t ___i1, int32_t ___n2, int32_t ___lo3, Comparison_1_t808B3C7A1EC3855CB188E50BBE0384CF600AB0D6 * ___comparer4, const RuntimeMethod* method) { EventRegistrationToken_t5460ED02F1A6B74B604DFD634E8D5429857E9830 V_0; memset((&V_0), 0, sizeof(V_0)); int32_t V_1 = 0; { EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B* L_0 = ___keys0; int32_t L_1 = ___lo3; int32_t L_2 = ___i1; NullCheck(L_0); int32_t L_3 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_1, (int32_t)L_2)), (int32_t)1)); EventRegistrationToken_t5460ED02F1A6B74B604DFD634E8D5429857E9830 L_4 = (L_0)->GetAt(static_cast<il2cpp_array_size_t>(L_3)); V_0 = (EventRegistrationToken_t5460ED02F1A6B74B604DFD634E8D5429857E9830 )L_4; goto IL_0067; } IL_000e: { int32_t L_5 = ___i1; V_1 = (int32_t)((int32_t)il2cpp_codegen_multiply((int32_t)2, (int32_t)L_5)); int32_t L_6 = V_1; int32_t L_7 = ___n2; if ((((int32_t)L_6) >= ((int32_t)L_7))) { goto IL_0038; } } { Comparison_1_t808B3C7A1EC3855CB188E50BBE0384CF600AB0D6 * L_8 = ___comparer4; EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B* L_9 = ___keys0; int32_t L_10 = ___lo3; int32_t L_11 = V_1; NullCheck(L_9); int32_t L_12 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_10, (int32_t)L_11)), (int32_t)1)); EventRegistrationToken_t5460ED02F1A6B74B604DFD634E8D5429857E9830 L_13 = (L_9)->GetAt(static_cast<il2cpp_array_size_t>(L_12)); EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B* L_14 = ___keys0; int32_t L_15 = ___lo3; int32_t L_16 = V_1; NullCheck(L_14); int32_t L_17 = ((int32_t)il2cpp_codegen_add((int32_t)L_15, (int32_t)L_16)); EventRegistrationToken_t5460ED02F1A6B74B604DFD634E8D5429857E9830 L_18 = (L_14)->GetAt(static_cast<il2cpp_array_size_t>(L_17)); NullCheck((Comparison_1_t808B3C7A1EC3855CB188E50BBE0384CF600AB0D6 *)L_8); int32_t L_19; L_19 = (( int32_t (*) (Comparison_1_t808B3C7A1EC3855CB188E50BBE0384CF600AB0D6 *, EventRegistrationToken_t5460ED02F1A6B74B604DFD634E8D5429857E9830 , EventRegistrationToken_t5460ED02F1A6B74B604DFD634E8D5429857E9830 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t808B3C7A1EC3855CB188E50BBE0384CF600AB0D6 *)L_8, (EventRegistrationToken_t5460ED02F1A6B74B604DFD634E8D5429857E9830 )L_13, (EventRegistrationToken_t5460ED02F1A6B74B604DFD634E8D5429857E9830 )L_18, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_19) >= ((int32_t)0))) { goto IL_0038; } } { int32_t L_20 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_20, (int32_t)1)); } IL_0038: { Comparison_1_t808B3C7A1EC3855CB188E50BBE0384CF600AB0D6 * L_21 = ___comparer4; EventRegistrationToken_t5460ED02F1A6B74B604DFD634E8D5429857E9830 L_22 = V_0; EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B* L_23 = ___keys0; int32_t L_24 = ___lo3; int32_t L_25 = V_1; NullCheck(L_23); int32_t L_26 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_24, (int32_t)L_25)), (int32_t)1)); EventRegistrationToken_t5460ED02F1A6B74B604DFD634E8D5429857E9830 L_27 = (L_23)->GetAt(static_cast<il2cpp_array_size_t>(L_26)); NullCheck((Comparison_1_t808B3C7A1EC3855CB188E50BBE0384CF600AB0D6 *)L_21); int32_t L_28; L_28 = (( int32_t (*) (Comparison_1_t808B3C7A1EC3855CB188E50BBE0384CF600AB0D6 *, EventRegistrationToken_t5460ED02F1A6B74B604DFD634E8D5429857E9830 , EventRegistrationToken_t5460ED02F1A6B74B604DFD634E8D5429857E9830 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t808B3C7A1EC3855CB188E50BBE0384CF600AB0D6 *)L_21, (EventRegistrationToken_t5460ED02F1A6B74B604DFD634E8D5429857E9830 )L_22, (EventRegistrationToken_t5460ED02F1A6B74B604DFD634E8D5429857E9830 )L_27, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_28) >= ((int32_t)0))) { goto IL_006d; } } { EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B* L_29 = ___keys0; int32_t L_30 = ___lo3; int32_t L_31 = ___i1; EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B* L_32 = ___keys0; int32_t L_33 = ___lo3; int32_t L_34 = V_1; NullCheck(L_32); int32_t L_35 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_33, (int32_t)L_34)), (int32_t)1)); EventRegistrationToken_t5460ED02F1A6B74B604DFD634E8D5429857E9830 L_36 = (L_32)->GetAt(static_cast<il2cpp_array_size_t>(L_35)); NullCheck(L_29); (L_29)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_30, (int32_t)L_31)), (int32_t)1))), (EventRegistrationToken_t5460ED02F1A6B74B604DFD634E8D5429857E9830 )L_36); int32_t L_37 = V_1; ___i1 = (int32_t)L_37; } IL_0067: { int32_t L_38 = ___i1; int32_t L_39 = ___n2; if ((((int32_t)L_38) <= ((int32_t)((int32_t)((int32_t)L_39/(int32_t)2))))) { goto IL_000e; } } IL_006d: { EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B* L_40 = ___keys0; int32_t L_41 = ___lo3; int32_t L_42 = ___i1; EventRegistrationToken_t5460ED02F1A6B74B604DFD634E8D5429857E9830 L_43 = V_0; NullCheck(L_40); (L_40)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_41, (int32_t)L_42)), (int32_t)1))), (EventRegistrationToken_t5460ED02F1A6B74B604DFD634E8D5429857E9830 )L_43); return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken>::InsertionSort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_InsertionSort_m5DA4D7ACB88EEB7C5A1FEB4DBDC871CF03445CEF_gshared (EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B* ___keys0, int32_t ___lo1, int32_t ___hi2, Comparison_1_t808B3C7A1EC3855CB188E50BBE0384CF600AB0D6 * ___comparer3, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; EventRegistrationToken_t5460ED02F1A6B74B604DFD634E8D5429857E9830 V_2; memset((&V_2), 0, sizeof(V_2)); { int32_t L_0 = ___lo1; V_0 = (int32_t)L_0; goto IL_0049; } IL_0004: { int32_t L_1 = V_0; V_1 = (int32_t)L_1; EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B* L_2 = ___keys0; int32_t L_3 = V_0; NullCheck(L_2); int32_t L_4 = ((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)1)); EventRegistrationToken_t5460ED02F1A6B74B604DFD634E8D5429857E9830 L_5 = (L_2)->GetAt(static_cast<il2cpp_array_size_t>(L_4)); V_2 = (EventRegistrationToken_t5460ED02F1A6B74B604DFD634E8D5429857E9830 )L_5; goto IL_0026; } IL_0012: { EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B* L_6 = ___keys0; int32_t L_7 = V_1; EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B* L_8 = ___keys0; int32_t L_9 = V_1; NullCheck(L_8); int32_t L_10 = L_9; EventRegistrationToken_t5460ED02F1A6B74B604DFD634E8D5429857E9830 L_11 = (L_8)->GetAt(static_cast<il2cpp_array_size_t>(L_10)); NullCheck(L_6); (L_6)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add((int32_t)L_7, (int32_t)1))), (EventRegistrationToken_t5460ED02F1A6B74B604DFD634E8D5429857E9830 )L_11); int32_t L_12 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_12, (int32_t)1)); } IL_0026: { int32_t L_13 = V_1; int32_t L_14 = ___lo1; if ((((int32_t)L_13) < ((int32_t)L_14))) { goto IL_003b; } } { Comparison_1_t808B3C7A1EC3855CB188E50BBE0384CF600AB0D6 * L_15 = ___comparer3; EventRegistrationToken_t5460ED02F1A6B74B604DFD634E8D5429857E9830 L_16 = V_2; EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B* L_17 = ___keys0; int32_t L_18 = V_1; NullCheck(L_17); int32_t L_19 = L_18; EventRegistrationToken_t5460ED02F1A6B74B604DFD634E8D5429857E9830 L_20 = (L_17)->GetAt(static_cast<il2cpp_array_size_t>(L_19)); NullCheck((Comparison_1_t808B3C7A1EC3855CB188E50BBE0384CF600AB0D6 *)L_15); int32_t L_21; L_21 = (( int32_t (*) (Comparison_1_t808B3C7A1EC3855CB188E50BBE0384CF600AB0D6 *, EventRegistrationToken_t5460ED02F1A6B74B604DFD634E8D5429857E9830 , EventRegistrationToken_t5460ED02F1A6B74B604DFD634E8D5429857E9830 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t808B3C7A1EC3855CB188E50BBE0384CF600AB0D6 *)L_15, (EventRegistrationToken_t5460ED02F1A6B74B604DFD634E8D5429857E9830 )L_16, (EventRegistrationToken_t5460ED02F1A6B74B604DFD634E8D5429857E9830 )L_20, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_21) < ((int32_t)0))) { goto IL_0012; } } IL_003b: { EventRegistrationTokenU5BU5D_t6E3683D73C481E44E93CCFF2D67137E40F06322B* L_22 = ___keys0; int32_t L_23 = V_1; EventRegistrationToken_t5460ED02F1A6B74B604DFD634E8D5429857E9830 L_24 = V_2; NullCheck(L_22); (L_22)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add((int32_t)L_23, (int32_t)1))), (EventRegistrationToken_t5460ED02F1A6B74B604DFD634E8D5429857E9830 )L_24); int32_t L_25 = V_0; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_25, (int32_t)1)); } IL_0049: { int32_t L_26 = V_0; int32_t L_27 = ___hi2; if ((((int32_t)L_26) < ((int32_t)L_27))) { goto IL_0004; } } { return; } } #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Void System.Collections.Generic.ArraySortHelper`1<UnityEngine.TextCore.GlyphRect>::Sort(T[],System.Int32,System.Int32,System.Collections.Generic.IComparer`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Sort_m748379CF763CF3CF47323FB3ACEF73DC8517DCEA_gshared (GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA* ___keys0, int32_t ___index1, int32_t ___length2, RuntimeObject* ___comparer3, const RuntimeMethod* method) { Exception_t * V_0 = NULL; il2cpp::utils::ExceptionSupportStack<RuntimeObject*, 1> __active_exceptions; il2cpp::utils::ExceptionSupportStack<int32_t, 2> __leave_targets; IL_0000: try { // begin try (depth: 1) { RuntimeObject* L_0 = ___comparer3; if (L_0) { goto IL_000a; } } IL_0003: { Comparer_1_tB8DDBF2B4A19D6771A9A5BDF885B7C84D18B0314 * L_1; L_1 = (( Comparer_1_tB8DDBF2B4A19D6771A9A5BDF885B7C84D18B0314 * (*) (const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)->methodPointer)(/*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)); ___comparer3 = (RuntimeObject*)L_1; } IL_000a: { GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA* L_2 = ___keys0; int32_t L_3 = ___index1; int32_t L_4 = ___length2; RuntimeObject* L_5 = ___comparer3; RuntimeObject* L_6 = (RuntimeObject*)L_5; Comparison_1_t32BE1C0C30DA507C0C8E9C6A556BC25DDBE292FE * L_7 = (Comparison_1_t32BE1C0C30DA507C0C8E9C6A556BC25DDBE292FE *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 4)); (( void (*) (Comparison_1_t32BE1C0C30DA507C0C8E9C6A556BC25DDBE292FE *, RuntimeObject *, intptr_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 5)->methodPointer)(L_7, (RuntimeObject *)L_6, (intptr_t)((intptr_t)GetInterfaceMethodInfo(L_6, 0, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 3))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 5)); (( void (*) (GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA*, int32_t, int32_t, Comparison_1_t32BE1C0C30DA507C0C8E9C6A556BC25DDBE292FE *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)->methodPointer)((GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA*)L_2, (int32_t)L_3, (int32_t)L_4, (Comparison_1_t32BE1C0C30DA507C0C8E9C6A556BC25DDBE292FE *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)); goto IL_0037; } } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&IndexOutOfRangeException_tDC9EF7A0346CE39E54DA1083F07BE6DFC3CE2EDD_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_0021; } if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&Exception_t_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_002a; } throw e; } CATCH_0021: { // begin catch(System.IndexOutOfRangeException) RuntimeObject* L_8 = ___comparer3; IntrospectiveSortUtilities_ThrowOrIgnoreBadComparer_mE23A8103696FA67F874E7DA86625BB3921DB801F((RuntimeObject *)L_8, /*hidden argument*/NULL); IL2CPP_POP_ACTIVE_EXCEPTION(); goto IL_0037; } // end catch (depth: 1) CATCH_002a: { // begin catch(System.Exception) V_0 = (Exception_t *)((Exception_t *)IL2CPP_GET_ACTIVE_EXCEPTION(Exception_t *)); Exception_t * L_9 = V_0; InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB * L_10 = (InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB *)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB_il2cpp_TypeInfo_var))); InvalidOperationException__ctor_m4A65916B1316FBF45ECDF1FF7FAC9E3CA30C112C(L_10, (String_t*)((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral6EDB6C049ED9617FA335A262A29BF30B15221AEA)), (Exception_t *)L_9, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_10, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArraySortHelper_1_Sort_m748379CF763CF3CF47323FB3ACEF73DC8517DCEA_RuntimeMethod_var))); } // end catch (depth: 1) IL_0037: { return; } } // System.Int32 System.Collections.Generic.ArraySortHelper`1<UnityEngine.TextCore.GlyphRect>::BinarySearch(T[],System.Int32,System.Int32,T,System.Collections.Generic.IComparer`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t ArraySortHelper_1_BinarySearch_mDF0B5BAFE420CE6C7022CE6A95583C23EB0430CC_gshared (GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA* ___array0, int32_t ___index1, int32_t ___length2, GlyphRect_t4F6A791326A28C2CEC6B13B0BD50A4F78280289D ___value3, RuntimeObject* ___comparer4, const RuntimeMethod* method) { int32_t V_0 = 0; Exception_t * V_1 = NULL; il2cpp::utils::ExceptionSupportStack<RuntimeObject*, 1> __active_exceptions; il2cpp::utils::ExceptionSupportStack<int32_t, 1> __leave_targets; IL_0000: try { // begin try (depth: 1) { RuntimeObject* L_0 = ___comparer4; if (L_0) { goto IL_000b; } } IL_0004: { Comparer_1_tB8DDBF2B4A19D6771A9A5BDF885B7C84D18B0314 * L_1; L_1 = (( Comparer_1_tB8DDBF2B4A19D6771A9A5BDF885B7C84D18B0314 * (*) (const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)->methodPointer)(/*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)); ___comparer4 = (RuntimeObject*)L_1; } IL_000b: { GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA* L_2 = ___array0; int32_t L_3 = ___index1; int32_t L_4 = ___length2; GlyphRect_t4F6A791326A28C2CEC6B13B0BD50A4F78280289D L_5 = ___value3; RuntimeObject* L_6 = ___comparer4; int32_t L_7; L_7 = (( int32_t (*) (GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA*, int32_t, int32_t, GlyphRect_t4F6A791326A28C2CEC6B13B0BD50A4F78280289D , RuntimeObject*, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 8)->methodPointer)((GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA*)L_2, (int32_t)L_3, (int32_t)L_4, (GlyphRect_t4F6A791326A28C2CEC6B13B0BD50A4F78280289D )L_5, (RuntimeObject*)L_6, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 8)); V_0 = (int32_t)L_7; goto IL_0026; } } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&Exception_t_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_0019; } throw e; } CATCH_0019: { // begin catch(System.Exception) V_1 = (Exception_t *)((Exception_t *)IL2CPP_GET_ACTIVE_EXCEPTION(Exception_t *)); Exception_t * L_8 = V_1; InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB * L_9 = (InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB *)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB_il2cpp_TypeInfo_var))); InvalidOperationException__ctor_m4A65916B1316FBF45ECDF1FF7FAC9E3CA30C112C(L_9, (String_t*)((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral6EDB6C049ED9617FA335A262A29BF30B15221AEA)), (Exception_t *)L_8, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_9, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArraySortHelper_1_BinarySearch_mDF0B5BAFE420CE6C7022CE6A95583C23EB0430CC_RuntimeMethod_var))); } // end catch (depth: 1) IL_0026: { int32_t L_10 = V_0; return (int32_t)L_10; } } // System.Void System.Collections.Generic.ArraySortHelper`1<UnityEngine.TextCore.GlyphRect>::Sort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Sort_mDE253E2F839D7247C269BE1526535593A2EA7788_gshared (GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA* ___keys0, int32_t ___index1, int32_t ___length2, Comparison_1_t32BE1C0C30DA507C0C8E9C6A556BC25DDBE292FE * ___comparer3, const RuntimeMethod* method) { Exception_t * V_0 = NULL; il2cpp::utils::ExceptionSupportStack<RuntimeObject*, 1> __active_exceptions; il2cpp::utils::ExceptionSupportStack<int32_t, 2> __leave_targets; IL_0000: try { // begin try (depth: 1) GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA* L_0 = ___keys0; int32_t L_1 = ___index1; int32_t L_2 = ___length2; Comparison_1_t32BE1C0C30DA507C0C8E9C6A556BC25DDBE292FE * L_3 = ___comparer3; (( void (*) (GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA*, int32_t, int32_t, Comparison_1_t32BE1C0C30DA507C0C8E9C6A556BC25DDBE292FE *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)->methodPointer)((GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA*)L_0, (int32_t)L_1, (int32_t)L_2, (Comparison_1_t32BE1C0C30DA507C0C8E9C6A556BC25DDBE292FE *)L_3, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)); goto IL_0021; } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&IndexOutOfRangeException_tDC9EF7A0346CE39E54DA1083F07BE6DFC3CE2EDD_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_000b; } if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&Exception_t_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_0014; } throw e; } CATCH_000b: { // begin catch(System.IndexOutOfRangeException) Comparison_1_t32BE1C0C30DA507C0C8E9C6A556BC25DDBE292FE * L_4 = ___comparer3; IntrospectiveSortUtilities_ThrowOrIgnoreBadComparer_mE23A8103696FA67F874E7DA86625BB3921DB801F((RuntimeObject *)L_4, /*hidden argument*/NULL); IL2CPP_POP_ACTIVE_EXCEPTION(); goto IL_0021; } // end catch (depth: 1) CATCH_0014: { // begin catch(System.Exception) V_0 = (Exception_t *)((Exception_t *)IL2CPP_GET_ACTIVE_EXCEPTION(Exception_t *)); Exception_t * L_5 = V_0; InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB * L_6 = (InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB *)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB_il2cpp_TypeInfo_var))); InvalidOperationException__ctor_m4A65916B1316FBF45ECDF1FF7FAC9E3CA30C112C(L_6, (String_t*)((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral6EDB6C049ED9617FA335A262A29BF30B15221AEA)), (Exception_t *)L_5, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_6, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArraySortHelper_1_Sort_mDE253E2F839D7247C269BE1526535593A2EA7788_RuntimeMethod_var))); } // end catch (depth: 1) IL_0021: { return; } } // System.Int32 System.Collections.Generic.ArraySortHelper`1<UnityEngine.TextCore.GlyphRect>::InternalBinarySearch(T[],System.Int32,System.Int32,T,System.Collections.Generic.IComparer`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t ArraySortHelper_1_InternalBinarySearch_m87AD5BF67EE47131BEB55CEC9C73BDFC57393FAD_gshared (GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA* ___array0, int32_t ___index1, int32_t ___length2, GlyphRect_t4F6A791326A28C2CEC6B13B0BD50A4F78280289D ___value3, RuntimeObject* ___comparer4, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; int32_t V_2 = 0; int32_t V_3 = 0; { int32_t L_0 = ___index1; V_0 = (int32_t)L_0; int32_t L_1 = ___index1; int32_t L_2 = ___length2; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_1, (int32_t)L_2)), (int32_t)1)); goto IL_0035; } IL_000a: { int32_t L_3 = V_0; int32_t L_4 = V_1; int32_t L_5 = V_0; V_2 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)((int32_t)((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_4, (int32_t)L_5))>>(int32_t)1)))); RuntimeObject* L_6 = ___comparer4; GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA* L_7 = ___array0; int32_t L_8 = V_2; NullCheck(L_7); int32_t L_9 = L_8; GlyphRect_t4F6A791326A28C2CEC6B13B0BD50A4F78280289D L_10 = (L_7)->GetAt(static_cast<il2cpp_array_size_t>(L_9)); GlyphRect_t4F6A791326A28C2CEC6B13B0BD50A4F78280289D L_11 = ___value3; NullCheck((RuntimeObject*)L_6); int32_t L_12; L_12 = InterfaceFuncInvoker2< int32_t, GlyphRect_t4F6A791326A28C2CEC6B13B0BD50A4F78280289D , GlyphRect_t4F6A791326A28C2CEC6B13B0BD50A4F78280289D >::Invoke(0 /* System.Int32 System.Collections.Generic.IComparer`1<UnityEngine.TextCore.GlyphRect>::Compare(T,T) */, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 3), (RuntimeObject*)L_6, (GlyphRect_t4F6A791326A28C2CEC6B13B0BD50A4F78280289D )L_10, (GlyphRect_t4F6A791326A28C2CEC6B13B0BD50A4F78280289D )L_11); V_3 = (int32_t)L_12; int32_t L_13 = V_3; if (L_13) { goto IL_0027; } } { int32_t L_14 = V_2; return (int32_t)L_14; } IL_0027: { int32_t L_15 = V_3; if ((((int32_t)L_15) >= ((int32_t)0))) { goto IL_0031; } } { int32_t L_16 = V_2; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_16, (int32_t)1)); goto IL_0035; } IL_0031: { int32_t L_17 = V_2; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_17, (int32_t)1)); } IL_0035: { int32_t L_18 = V_0; int32_t L_19 = V_1; if ((((int32_t)L_18) <= ((int32_t)L_19))) { goto IL_000a; } } { int32_t L_20 = V_0; return (int32_t)((~L_20)); } } // System.Void System.Collections.Generic.ArraySortHelper`1<UnityEngine.TextCore.GlyphRect>::SwapIfGreater(T[],System.Comparison`1<T>,System.Int32,System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_SwapIfGreater_m04AE91EAD1430CE82383B5C1EE1BB8378259406F_gshared (GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA* ___keys0, Comparison_1_t32BE1C0C30DA507C0C8E9C6A556BC25DDBE292FE * ___comparer1, int32_t ___a2, int32_t ___b3, const RuntimeMethod* method) { GlyphRect_t4F6A791326A28C2CEC6B13B0BD50A4F78280289D V_0; memset((&V_0), 0, sizeof(V_0)); { int32_t L_0 = ___a2; int32_t L_1 = ___b3; if ((((int32_t)L_0) == ((int32_t)L_1))) { goto IL_0039; } } { Comparison_1_t32BE1C0C30DA507C0C8E9C6A556BC25DDBE292FE * L_2 = ___comparer1; GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA* L_3 = ___keys0; int32_t L_4 = ___a2; NullCheck(L_3); int32_t L_5 = L_4; GlyphRect_t4F6A791326A28C2CEC6B13B0BD50A4F78280289D L_6 = (L_3)->GetAt(static_cast<il2cpp_array_size_t>(L_5)); GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA* L_7 = ___keys0; int32_t L_8 = ___b3; NullCheck(L_7); int32_t L_9 = L_8; GlyphRect_t4F6A791326A28C2CEC6B13B0BD50A4F78280289D L_10 = (L_7)->GetAt(static_cast<il2cpp_array_size_t>(L_9)); NullCheck((Comparison_1_t32BE1C0C30DA507C0C8E9C6A556BC25DDBE292FE *)L_2); int32_t L_11; L_11 = (( int32_t (*) (Comparison_1_t32BE1C0C30DA507C0C8E9C6A556BC25DDBE292FE *, GlyphRect_t4F6A791326A28C2CEC6B13B0BD50A4F78280289D , GlyphRect_t4F6A791326A28C2CEC6B13B0BD50A4F78280289D , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t32BE1C0C30DA507C0C8E9C6A556BC25DDBE292FE *)L_2, (GlyphRect_t4F6A791326A28C2CEC6B13B0BD50A4F78280289D )L_6, (GlyphRect_t4F6A791326A28C2CEC6B13B0BD50A4F78280289D )L_10, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_11) <= ((int32_t)0))) { goto IL_0039; } } { GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA* L_12 = ___keys0; int32_t L_13 = ___a2; NullCheck(L_12); int32_t L_14 = L_13; GlyphRect_t4F6A791326A28C2CEC6B13B0BD50A4F78280289D L_15 = (L_12)->GetAt(static_cast<il2cpp_array_size_t>(L_14)); V_0 = (GlyphRect_t4F6A791326A28C2CEC6B13B0BD50A4F78280289D )L_15; GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA* L_16 = ___keys0; int32_t L_17 = ___a2; GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA* L_18 = ___keys0; int32_t L_19 = ___b3; NullCheck(L_18); int32_t L_20 = L_19; GlyphRect_t4F6A791326A28C2CEC6B13B0BD50A4F78280289D L_21 = (L_18)->GetAt(static_cast<il2cpp_array_size_t>(L_20)); NullCheck(L_16); (L_16)->SetAt(static_cast<il2cpp_array_size_t>(L_17), (GlyphRect_t4F6A791326A28C2CEC6B13B0BD50A4F78280289D )L_21); GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA* L_22 = ___keys0; int32_t L_23 = ___b3; GlyphRect_t4F6A791326A28C2CEC6B13B0BD50A4F78280289D L_24 = V_0; NullCheck(L_22); (L_22)->SetAt(static_cast<il2cpp_array_size_t>(L_23), (GlyphRect_t4F6A791326A28C2CEC6B13B0BD50A4F78280289D )L_24); } IL_0039: { return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<UnityEngine.TextCore.GlyphRect>::Swap(T[],System.Int32,System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Swap_m1CF36241695CD6961DBCF23441656B035E708609_gshared (GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA* ___a0, int32_t ___i1, int32_t ___j2, const RuntimeMethod* method) { GlyphRect_t4F6A791326A28C2CEC6B13B0BD50A4F78280289D V_0; memset((&V_0), 0, sizeof(V_0)); { int32_t L_0 = ___i1; int32_t L_1 = ___j2; if ((((int32_t)L_0) == ((int32_t)L_1))) { goto IL_0022; } } { GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA* L_2 = ___a0; int32_t L_3 = ___i1; NullCheck(L_2); int32_t L_4 = L_3; GlyphRect_t4F6A791326A28C2CEC6B13B0BD50A4F78280289D L_5 = (L_2)->GetAt(static_cast<il2cpp_array_size_t>(L_4)); V_0 = (GlyphRect_t4F6A791326A28C2CEC6B13B0BD50A4F78280289D )L_5; GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA* L_6 = ___a0; int32_t L_7 = ___i1; GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA* L_8 = ___a0; int32_t L_9 = ___j2; NullCheck(L_8); int32_t L_10 = L_9; GlyphRect_t4F6A791326A28C2CEC6B13B0BD50A4F78280289D L_11 = (L_8)->GetAt(static_cast<il2cpp_array_size_t>(L_10)); NullCheck(L_6); (L_6)->SetAt(static_cast<il2cpp_array_size_t>(L_7), (GlyphRect_t4F6A791326A28C2CEC6B13B0BD50A4F78280289D )L_11); GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA* L_12 = ___a0; int32_t L_13 = ___j2; GlyphRect_t4F6A791326A28C2CEC6B13B0BD50A4F78280289D L_14 = V_0; NullCheck(L_12); (L_12)->SetAt(static_cast<il2cpp_array_size_t>(L_13), (GlyphRect_t4F6A791326A28C2CEC6B13B0BD50A4F78280289D )L_14); } IL_0022: { return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<UnityEngine.TextCore.GlyphRect>::IntrospectiveSort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_IntrospectiveSort_mCEB6BAC14BE7F714D57CF08C90D2450C34D337A2_gshared (GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA* ___keys0, int32_t ___left1, int32_t ___length2, Comparison_1_t32BE1C0C30DA507C0C8E9C6A556BC25DDBE292FE * ___comparer3, const RuntimeMethod* method) { { int32_t L_0 = ___length2; if ((((int32_t)L_0) >= ((int32_t)2))) { goto IL_0005; } } { return; } IL_0005: { GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA* L_1 = ___keys0; int32_t L_2 = ___left1; int32_t L_3 = ___length2; int32_t L_4 = ___left1; GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA* L_5 = ___keys0; NullCheck(L_5); int32_t L_6; L_6 = IntrospectiveSortUtilities_FloorLog2_m05ECB6CAC7A23087D9EC2C2A4DDCFE12272C3872((int32_t)((int32_t)((int32_t)(((RuntimeArray*)L_5)->max_length))), /*hidden argument*/NULL); Comparison_1_t32BE1C0C30DA507C0C8E9C6A556BC25DDBE292FE * L_7 = ___comparer3; (( void (*) (GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA*, int32_t, int32_t, int32_t, Comparison_1_t32BE1C0C30DA507C0C8E9C6A556BC25DDBE292FE *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)->methodPointer)((GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA*)L_1, (int32_t)L_2, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)L_4)), (int32_t)1)), (int32_t)((int32_t)il2cpp_codegen_multiply((int32_t)2, (int32_t)L_6)), (Comparison_1_t32BE1C0C30DA507C0C8E9C6A556BC25DDBE292FE *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)); return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<UnityEngine.TextCore.GlyphRect>::IntroSort(T[],System.Int32,System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_IntroSort_m5A8F2AF9518A425739B1DEAEBCFAC2FC65FD29D8_gshared (GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA* ___keys0, int32_t ___lo1, int32_t ___hi2, int32_t ___depthLimit3, Comparison_1_t32BE1C0C30DA507C0C8E9C6A556BC25DDBE292FE * ___comparer4, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; { goto IL_0086; } IL_0005: { int32_t L_0 = ___hi2; int32_t L_1 = ___lo1; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_0, (int32_t)L_1)), (int32_t)1)); int32_t L_2 = V_0; if ((((int32_t)L_2) > ((int32_t)((int32_t)16)))) { goto IL_0056; } } { int32_t L_3 = V_0; if ((!(((uint32_t)L_3) == ((uint32_t)1)))) { goto IL_0015; } } { return; } IL_0015: { int32_t L_4 = V_0; if ((!(((uint32_t)L_4) == ((uint32_t)2)))) { goto IL_0024; } } { GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA* L_5 = ___keys0; Comparison_1_t32BE1C0C30DA507C0C8E9C6A556BC25DDBE292FE * L_6 = ___comparer4; int32_t L_7 = ___lo1; int32_t L_8 = ___hi2; (( void (*) (GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA*, Comparison_1_t32BE1C0C30DA507C0C8E9C6A556BC25DDBE292FE *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA*)L_5, (Comparison_1_t32BE1C0C30DA507C0C8E9C6A556BC25DDBE292FE *)L_6, (int32_t)L_7, (int32_t)L_8, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); return; } IL_0024: { int32_t L_9 = V_0; if ((!(((uint32_t)L_9) == ((uint32_t)3)))) { goto IL_004b; } } { GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA* L_10 = ___keys0; Comparison_1_t32BE1C0C30DA507C0C8E9C6A556BC25DDBE292FE * L_11 = ___comparer4; int32_t L_12 = ___lo1; int32_t L_13 = ___hi2; (( void (*) (GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA*, Comparison_1_t32BE1C0C30DA507C0C8E9C6A556BC25DDBE292FE *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA*)L_10, (Comparison_1_t32BE1C0C30DA507C0C8E9C6A556BC25DDBE292FE *)L_11, (int32_t)L_12, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_13, (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA* L_14 = ___keys0; Comparison_1_t32BE1C0C30DA507C0C8E9C6A556BC25DDBE292FE * L_15 = ___comparer4; int32_t L_16 = ___lo1; int32_t L_17 = ___hi2; (( void (*) (GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA*, Comparison_1_t32BE1C0C30DA507C0C8E9C6A556BC25DDBE292FE *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA*)L_14, (Comparison_1_t32BE1C0C30DA507C0C8E9C6A556BC25DDBE292FE *)L_15, (int32_t)L_16, (int32_t)L_17, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA* L_18 = ___keys0; Comparison_1_t32BE1C0C30DA507C0C8E9C6A556BC25DDBE292FE * L_19 = ___comparer4; int32_t L_20 = ___hi2; int32_t L_21 = ___hi2; (( void (*) (GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA*, Comparison_1_t32BE1C0C30DA507C0C8E9C6A556BC25DDBE292FE *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA*)L_18, (Comparison_1_t32BE1C0C30DA507C0C8E9C6A556BC25DDBE292FE *)L_19, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_20, (int32_t)1)), (int32_t)L_21, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); return; } IL_004b: { GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA* L_22 = ___keys0; int32_t L_23 = ___lo1; int32_t L_24 = ___hi2; Comparison_1_t32BE1C0C30DA507C0C8E9C6A556BC25DDBE292FE * L_25 = ___comparer4; (( void (*) (GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA*, int32_t, int32_t, Comparison_1_t32BE1C0C30DA507C0C8E9C6A556BC25DDBE292FE *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 12)->methodPointer)((GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA*)L_22, (int32_t)L_23, (int32_t)L_24, (Comparison_1_t32BE1C0C30DA507C0C8E9C6A556BC25DDBE292FE *)L_25, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 12)); return; } IL_0056: { int32_t L_26 = ___depthLimit3; if (L_26) { goto IL_0064; } } { GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA* L_27 = ___keys0; int32_t L_28 = ___lo1; int32_t L_29 = ___hi2; Comparison_1_t32BE1C0C30DA507C0C8E9C6A556BC25DDBE292FE * L_30 = ___comparer4; (( void (*) (GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA*, int32_t, int32_t, Comparison_1_t32BE1C0C30DA507C0C8E9C6A556BC25DDBE292FE *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 13)->methodPointer)((GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA*)L_27, (int32_t)L_28, (int32_t)L_29, (Comparison_1_t32BE1C0C30DA507C0C8E9C6A556BC25DDBE292FE *)L_30, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 13)); return; } IL_0064: { int32_t L_31 = ___depthLimit3; ___depthLimit3 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_31, (int32_t)1)); GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA* L_32 = ___keys0; int32_t L_33 = ___lo1; int32_t L_34 = ___hi2; Comparison_1_t32BE1C0C30DA507C0C8E9C6A556BC25DDBE292FE * L_35 = ___comparer4; int32_t L_36; L_36 = (( int32_t (*) (GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA*, int32_t, int32_t, Comparison_1_t32BE1C0C30DA507C0C8E9C6A556BC25DDBE292FE *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 14)->methodPointer)((GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA*)L_32, (int32_t)L_33, (int32_t)L_34, (Comparison_1_t32BE1C0C30DA507C0C8E9C6A556BC25DDBE292FE *)L_35, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 14)); V_1 = (int32_t)L_36; GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA* L_37 = ___keys0; int32_t L_38 = V_1; int32_t L_39 = ___hi2; int32_t L_40 = ___depthLimit3; Comparison_1_t32BE1C0C30DA507C0C8E9C6A556BC25DDBE292FE * L_41 = ___comparer4; (( void (*) (GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA*, int32_t, int32_t, int32_t, Comparison_1_t32BE1C0C30DA507C0C8E9C6A556BC25DDBE292FE *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)->methodPointer)((GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA*)L_37, (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_38, (int32_t)1)), (int32_t)L_39, (int32_t)L_40, (Comparison_1_t32BE1C0C30DA507C0C8E9C6A556BC25DDBE292FE *)L_41, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)); int32_t L_42 = V_1; ___hi2 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_42, (int32_t)1)); } IL_0086: { int32_t L_43 = ___hi2; int32_t L_44 = ___lo1; if ((((int32_t)L_43) > ((int32_t)L_44))) { goto IL_0005; } } { return; } } // System.Int32 System.Collections.Generic.ArraySortHelper`1<UnityEngine.TextCore.GlyphRect>::PickPivotAndPartition(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t ArraySortHelper_1_PickPivotAndPartition_m30FADED48B7360757BBDE42381D4F5692C888742_gshared (GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA* ___keys0, int32_t ___lo1, int32_t ___hi2, Comparison_1_t32BE1C0C30DA507C0C8E9C6A556BC25DDBE292FE * ___comparer3, const RuntimeMethod* method) { int32_t V_0 = 0; GlyphRect_t4F6A791326A28C2CEC6B13B0BD50A4F78280289D V_1; memset((&V_1), 0, sizeof(V_1)); int32_t V_2 = 0; int32_t V_3 = 0; { int32_t L_0 = ___lo1; int32_t L_1 = ___hi2; int32_t L_2 = ___lo1; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_0, (int32_t)((int32_t)((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_1, (int32_t)L_2))/(int32_t)2)))); GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA* L_3 = ___keys0; Comparison_1_t32BE1C0C30DA507C0C8E9C6A556BC25DDBE292FE * L_4 = ___comparer3; int32_t L_5 = ___lo1; int32_t L_6 = V_0; (( void (*) (GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA*, Comparison_1_t32BE1C0C30DA507C0C8E9C6A556BC25DDBE292FE *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA*)L_3, (Comparison_1_t32BE1C0C30DA507C0C8E9C6A556BC25DDBE292FE *)L_4, (int32_t)L_5, (int32_t)L_6, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA* L_7 = ___keys0; Comparison_1_t32BE1C0C30DA507C0C8E9C6A556BC25DDBE292FE * L_8 = ___comparer3; int32_t L_9 = ___lo1; int32_t L_10 = ___hi2; (( void (*) (GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA*, Comparison_1_t32BE1C0C30DA507C0C8E9C6A556BC25DDBE292FE *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA*)L_7, (Comparison_1_t32BE1C0C30DA507C0C8E9C6A556BC25DDBE292FE *)L_8, (int32_t)L_9, (int32_t)L_10, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA* L_11 = ___keys0; Comparison_1_t32BE1C0C30DA507C0C8E9C6A556BC25DDBE292FE * L_12 = ___comparer3; int32_t L_13 = V_0; int32_t L_14 = ___hi2; (( void (*) (GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA*, Comparison_1_t32BE1C0C30DA507C0C8E9C6A556BC25DDBE292FE *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA*)L_11, (Comparison_1_t32BE1C0C30DA507C0C8E9C6A556BC25DDBE292FE *)L_12, (int32_t)L_13, (int32_t)L_14, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA* L_15 = ___keys0; int32_t L_16 = V_0; NullCheck(L_15); int32_t L_17 = L_16; GlyphRect_t4F6A791326A28C2CEC6B13B0BD50A4F78280289D L_18 = (L_15)->GetAt(static_cast<il2cpp_array_size_t>(L_17)); V_1 = (GlyphRect_t4F6A791326A28C2CEC6B13B0BD50A4F78280289D )L_18; GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA* L_19 = ___keys0; int32_t L_20 = V_0; int32_t L_21 = ___hi2; (( void (*) (GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA*)L_19, (int32_t)L_20, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_21, (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); int32_t L_22 = ___lo1; V_2 = (int32_t)L_22; int32_t L_23 = ___hi2; V_3 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_23, (int32_t)1)); goto IL_0073; } IL_003d: { Comparison_1_t32BE1C0C30DA507C0C8E9C6A556BC25DDBE292FE * L_24 = ___comparer3; GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA* L_25 = ___keys0; int32_t L_26 = V_2; int32_t L_27 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_26, (int32_t)1)); V_2 = (int32_t)L_27; NullCheck(L_25); int32_t L_28 = L_27; GlyphRect_t4F6A791326A28C2CEC6B13B0BD50A4F78280289D L_29 = (L_25)->GetAt(static_cast<il2cpp_array_size_t>(L_28)); GlyphRect_t4F6A791326A28C2CEC6B13B0BD50A4F78280289D L_30 = V_1; NullCheck((Comparison_1_t32BE1C0C30DA507C0C8E9C6A556BC25DDBE292FE *)L_24); int32_t L_31; L_31 = (( int32_t (*) (Comparison_1_t32BE1C0C30DA507C0C8E9C6A556BC25DDBE292FE *, GlyphRect_t4F6A791326A28C2CEC6B13B0BD50A4F78280289D , GlyphRect_t4F6A791326A28C2CEC6B13B0BD50A4F78280289D , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t32BE1C0C30DA507C0C8E9C6A556BC25DDBE292FE *)L_24, (GlyphRect_t4F6A791326A28C2CEC6B13B0BD50A4F78280289D )L_29, (GlyphRect_t4F6A791326A28C2CEC6B13B0BD50A4F78280289D )L_30, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_31) < ((int32_t)0))) { goto IL_003d; } } IL_0052: { Comparison_1_t32BE1C0C30DA507C0C8E9C6A556BC25DDBE292FE * L_32 = ___comparer3; GlyphRect_t4F6A791326A28C2CEC6B13B0BD50A4F78280289D L_33 = V_1; GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA* L_34 = ___keys0; int32_t L_35 = V_3; int32_t L_36 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_35, (int32_t)1)); V_3 = (int32_t)L_36; NullCheck(L_34); int32_t L_37 = L_36; GlyphRect_t4F6A791326A28C2CEC6B13B0BD50A4F78280289D L_38 = (L_34)->GetAt(static_cast<il2cpp_array_size_t>(L_37)); NullCheck((Comparison_1_t32BE1C0C30DA507C0C8E9C6A556BC25DDBE292FE *)L_32); int32_t L_39; L_39 = (( int32_t (*) (Comparison_1_t32BE1C0C30DA507C0C8E9C6A556BC25DDBE292FE *, GlyphRect_t4F6A791326A28C2CEC6B13B0BD50A4F78280289D , GlyphRect_t4F6A791326A28C2CEC6B13B0BD50A4F78280289D , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t32BE1C0C30DA507C0C8E9C6A556BC25DDBE292FE *)L_32, (GlyphRect_t4F6A791326A28C2CEC6B13B0BD50A4F78280289D )L_33, (GlyphRect_t4F6A791326A28C2CEC6B13B0BD50A4F78280289D )L_38, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_39) < ((int32_t)0))) { goto IL_0052; } } { int32_t L_40 = V_2; int32_t L_41 = V_3; if ((((int32_t)L_40) >= ((int32_t)L_41))) { goto IL_0077; } } { GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA* L_42 = ___keys0; int32_t L_43 = V_2; int32_t L_44 = V_3; (( void (*) (GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA*)L_42, (int32_t)L_43, (int32_t)L_44, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); } IL_0073: { int32_t L_45 = V_2; int32_t L_46 = V_3; if ((((int32_t)L_45) < ((int32_t)L_46))) { goto IL_003d; } } IL_0077: { GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA* L_47 = ___keys0; int32_t L_48 = V_2; int32_t L_49 = ___hi2; (( void (*) (GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA*)L_47, (int32_t)L_48, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_49, (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); int32_t L_50 = V_2; return (int32_t)L_50; } } // System.Void System.Collections.Generic.ArraySortHelper`1<UnityEngine.TextCore.GlyphRect>::Heapsort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Heapsort_mDD9DB94EE5CE5F57CC09D88287E90184DCBCFFBE_gshared (GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA* ___keys0, int32_t ___lo1, int32_t ___hi2, Comparison_1_t32BE1C0C30DA507C0C8E9C6A556BC25DDBE292FE * ___comparer3, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; int32_t V_2 = 0; { int32_t L_0 = ___hi2; int32_t L_1 = ___lo1; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_0, (int32_t)L_1)), (int32_t)1)); int32_t L_2 = V_0; V_1 = (int32_t)((int32_t)((int32_t)L_2/(int32_t)2)); goto IL_001a; } IL_000c: { GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA* L_3 = ___keys0; int32_t L_4 = V_1; int32_t L_5 = V_0; int32_t L_6 = ___lo1; Comparison_1_t32BE1C0C30DA507C0C8E9C6A556BC25DDBE292FE * L_7 = ___comparer3; (( void (*) (GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA*, int32_t, int32_t, int32_t, Comparison_1_t32BE1C0C30DA507C0C8E9C6A556BC25DDBE292FE *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)->methodPointer)((GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA*)L_3, (int32_t)L_4, (int32_t)L_5, (int32_t)L_6, (Comparison_1_t32BE1C0C30DA507C0C8E9C6A556BC25DDBE292FE *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)); int32_t L_8 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_8, (int32_t)1)); } IL_001a: { int32_t L_9 = V_1; if ((((int32_t)L_9) >= ((int32_t)1))) { goto IL_000c; } } { int32_t L_10 = V_0; V_2 = (int32_t)L_10; goto IL_003e; } IL_0022: { GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA* L_11 = ___keys0; int32_t L_12 = ___lo1; int32_t L_13 = ___lo1; int32_t L_14 = V_2; (( void (*) (GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA*)L_11, (int32_t)L_12, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_13, (int32_t)L_14)), (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA* L_15 = ___keys0; int32_t L_16 = V_2; int32_t L_17 = ___lo1; Comparison_1_t32BE1C0C30DA507C0C8E9C6A556BC25DDBE292FE * L_18 = ___comparer3; (( void (*) (GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA*, int32_t, int32_t, int32_t, Comparison_1_t32BE1C0C30DA507C0C8E9C6A556BC25DDBE292FE *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)->methodPointer)((GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA*)L_15, (int32_t)1, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_16, (int32_t)1)), (int32_t)L_17, (Comparison_1_t32BE1C0C30DA507C0C8E9C6A556BC25DDBE292FE *)L_18, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)); int32_t L_19 = V_2; V_2 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_19, (int32_t)1)); } IL_003e: { int32_t L_20 = V_2; if ((((int32_t)L_20) > ((int32_t)1))) { goto IL_0022; } } { return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<UnityEngine.TextCore.GlyphRect>::DownHeap(T[],System.Int32,System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_DownHeap_m843CA8406B8145559BF7EB92AEE0F111E33653C2_gshared (GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA* ___keys0, int32_t ___i1, int32_t ___n2, int32_t ___lo3, Comparison_1_t32BE1C0C30DA507C0C8E9C6A556BC25DDBE292FE * ___comparer4, const RuntimeMethod* method) { GlyphRect_t4F6A791326A28C2CEC6B13B0BD50A4F78280289D V_0; memset((&V_0), 0, sizeof(V_0)); int32_t V_1 = 0; { GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA* L_0 = ___keys0; int32_t L_1 = ___lo3; int32_t L_2 = ___i1; NullCheck(L_0); int32_t L_3 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_1, (int32_t)L_2)), (int32_t)1)); GlyphRect_t4F6A791326A28C2CEC6B13B0BD50A4F78280289D L_4 = (L_0)->GetAt(static_cast<il2cpp_array_size_t>(L_3)); V_0 = (GlyphRect_t4F6A791326A28C2CEC6B13B0BD50A4F78280289D )L_4; goto IL_0067; } IL_000e: { int32_t L_5 = ___i1; V_1 = (int32_t)((int32_t)il2cpp_codegen_multiply((int32_t)2, (int32_t)L_5)); int32_t L_6 = V_1; int32_t L_7 = ___n2; if ((((int32_t)L_6) >= ((int32_t)L_7))) { goto IL_0038; } } { Comparison_1_t32BE1C0C30DA507C0C8E9C6A556BC25DDBE292FE * L_8 = ___comparer4; GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA* L_9 = ___keys0; int32_t L_10 = ___lo3; int32_t L_11 = V_1; NullCheck(L_9); int32_t L_12 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_10, (int32_t)L_11)), (int32_t)1)); GlyphRect_t4F6A791326A28C2CEC6B13B0BD50A4F78280289D L_13 = (L_9)->GetAt(static_cast<il2cpp_array_size_t>(L_12)); GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA* L_14 = ___keys0; int32_t L_15 = ___lo3; int32_t L_16 = V_1; NullCheck(L_14); int32_t L_17 = ((int32_t)il2cpp_codegen_add((int32_t)L_15, (int32_t)L_16)); GlyphRect_t4F6A791326A28C2CEC6B13B0BD50A4F78280289D L_18 = (L_14)->GetAt(static_cast<il2cpp_array_size_t>(L_17)); NullCheck((Comparison_1_t32BE1C0C30DA507C0C8E9C6A556BC25DDBE292FE *)L_8); int32_t L_19; L_19 = (( int32_t (*) (Comparison_1_t32BE1C0C30DA507C0C8E9C6A556BC25DDBE292FE *, GlyphRect_t4F6A791326A28C2CEC6B13B0BD50A4F78280289D , GlyphRect_t4F6A791326A28C2CEC6B13B0BD50A4F78280289D , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t32BE1C0C30DA507C0C8E9C6A556BC25DDBE292FE *)L_8, (GlyphRect_t4F6A791326A28C2CEC6B13B0BD50A4F78280289D )L_13, (GlyphRect_t4F6A791326A28C2CEC6B13B0BD50A4F78280289D )L_18, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_19) >= ((int32_t)0))) { goto IL_0038; } } { int32_t L_20 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_20, (int32_t)1)); } IL_0038: { Comparison_1_t32BE1C0C30DA507C0C8E9C6A556BC25DDBE292FE * L_21 = ___comparer4; GlyphRect_t4F6A791326A28C2CEC6B13B0BD50A4F78280289D L_22 = V_0; GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA* L_23 = ___keys0; int32_t L_24 = ___lo3; int32_t L_25 = V_1; NullCheck(L_23); int32_t L_26 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_24, (int32_t)L_25)), (int32_t)1)); GlyphRect_t4F6A791326A28C2CEC6B13B0BD50A4F78280289D L_27 = (L_23)->GetAt(static_cast<il2cpp_array_size_t>(L_26)); NullCheck((Comparison_1_t32BE1C0C30DA507C0C8E9C6A556BC25DDBE292FE *)L_21); int32_t L_28; L_28 = (( int32_t (*) (Comparison_1_t32BE1C0C30DA507C0C8E9C6A556BC25DDBE292FE *, GlyphRect_t4F6A791326A28C2CEC6B13B0BD50A4F78280289D , GlyphRect_t4F6A791326A28C2CEC6B13B0BD50A4F78280289D , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t32BE1C0C30DA507C0C8E9C6A556BC25DDBE292FE *)L_21, (GlyphRect_t4F6A791326A28C2CEC6B13B0BD50A4F78280289D )L_22, (GlyphRect_t4F6A791326A28C2CEC6B13B0BD50A4F78280289D )L_27, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_28) >= ((int32_t)0))) { goto IL_006d; } } { GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA* L_29 = ___keys0; int32_t L_30 = ___lo3; int32_t L_31 = ___i1; GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA* L_32 = ___keys0; int32_t L_33 = ___lo3; int32_t L_34 = V_1; NullCheck(L_32); int32_t L_35 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_33, (int32_t)L_34)), (int32_t)1)); GlyphRect_t4F6A791326A28C2CEC6B13B0BD50A4F78280289D L_36 = (L_32)->GetAt(static_cast<il2cpp_array_size_t>(L_35)); NullCheck(L_29); (L_29)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_30, (int32_t)L_31)), (int32_t)1))), (GlyphRect_t4F6A791326A28C2CEC6B13B0BD50A4F78280289D )L_36); int32_t L_37 = V_1; ___i1 = (int32_t)L_37; } IL_0067: { int32_t L_38 = ___i1; int32_t L_39 = ___n2; if ((((int32_t)L_38) <= ((int32_t)((int32_t)((int32_t)L_39/(int32_t)2))))) { goto IL_000e; } } IL_006d: { GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA* L_40 = ___keys0; int32_t L_41 = ___lo3; int32_t L_42 = ___i1; GlyphRect_t4F6A791326A28C2CEC6B13B0BD50A4F78280289D L_43 = V_0; NullCheck(L_40); (L_40)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_41, (int32_t)L_42)), (int32_t)1))), (GlyphRect_t4F6A791326A28C2CEC6B13B0BD50A4F78280289D )L_43); return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<UnityEngine.TextCore.GlyphRect>::InsertionSort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_InsertionSort_mA3200CF0FC238302B4F3AB3BCE411A16F037E3A1_gshared (GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA* ___keys0, int32_t ___lo1, int32_t ___hi2, Comparison_1_t32BE1C0C30DA507C0C8E9C6A556BC25DDBE292FE * ___comparer3, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; GlyphRect_t4F6A791326A28C2CEC6B13B0BD50A4F78280289D V_2; memset((&V_2), 0, sizeof(V_2)); { int32_t L_0 = ___lo1; V_0 = (int32_t)L_0; goto IL_0049; } IL_0004: { int32_t L_1 = V_0; V_1 = (int32_t)L_1; GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA* L_2 = ___keys0; int32_t L_3 = V_0; NullCheck(L_2); int32_t L_4 = ((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)1)); GlyphRect_t4F6A791326A28C2CEC6B13B0BD50A4F78280289D L_5 = (L_2)->GetAt(static_cast<il2cpp_array_size_t>(L_4)); V_2 = (GlyphRect_t4F6A791326A28C2CEC6B13B0BD50A4F78280289D )L_5; goto IL_0026; } IL_0012: { GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA* L_6 = ___keys0; int32_t L_7 = V_1; GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA* L_8 = ___keys0; int32_t L_9 = V_1; NullCheck(L_8); int32_t L_10 = L_9; GlyphRect_t4F6A791326A28C2CEC6B13B0BD50A4F78280289D L_11 = (L_8)->GetAt(static_cast<il2cpp_array_size_t>(L_10)); NullCheck(L_6); (L_6)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add((int32_t)L_7, (int32_t)1))), (GlyphRect_t4F6A791326A28C2CEC6B13B0BD50A4F78280289D )L_11); int32_t L_12 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_12, (int32_t)1)); } IL_0026: { int32_t L_13 = V_1; int32_t L_14 = ___lo1; if ((((int32_t)L_13) < ((int32_t)L_14))) { goto IL_003b; } } { Comparison_1_t32BE1C0C30DA507C0C8E9C6A556BC25DDBE292FE * L_15 = ___comparer3; GlyphRect_t4F6A791326A28C2CEC6B13B0BD50A4F78280289D L_16 = V_2; GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA* L_17 = ___keys0; int32_t L_18 = V_1; NullCheck(L_17); int32_t L_19 = L_18; GlyphRect_t4F6A791326A28C2CEC6B13B0BD50A4F78280289D L_20 = (L_17)->GetAt(static_cast<il2cpp_array_size_t>(L_19)); NullCheck((Comparison_1_t32BE1C0C30DA507C0C8E9C6A556BC25DDBE292FE *)L_15); int32_t L_21; L_21 = (( int32_t (*) (Comparison_1_t32BE1C0C30DA507C0C8E9C6A556BC25DDBE292FE *, GlyphRect_t4F6A791326A28C2CEC6B13B0BD50A4F78280289D , GlyphRect_t4F6A791326A28C2CEC6B13B0BD50A4F78280289D , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t32BE1C0C30DA507C0C8E9C6A556BC25DDBE292FE *)L_15, (GlyphRect_t4F6A791326A28C2CEC6B13B0BD50A4F78280289D )L_16, (GlyphRect_t4F6A791326A28C2CEC6B13B0BD50A4F78280289D )L_20, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_21) < ((int32_t)0))) { goto IL_0012; } } IL_003b: { GlyphRectU5BU5D_tD5D74BCDBD33C0E1CF2D67D5419C526C807D3BDA* L_22 = ___keys0; int32_t L_23 = V_1; GlyphRect_t4F6A791326A28C2CEC6B13B0BD50A4F78280289D L_24 = V_2; NullCheck(L_22); (L_22)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add((int32_t)L_23, (int32_t)1))), (GlyphRect_t4F6A791326A28C2CEC6B13B0BD50A4F78280289D )L_24); int32_t L_25 = V_0; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_25, (int32_t)1)); } IL_0049: { int32_t L_26 = V_0; int32_t L_27 = ___hi2; if ((((int32_t)L_26) < ((int32_t)L_27))) { goto IL_0004; } } { return; } } #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Void System.Collections.Generic.ArraySortHelper`1<System.Guid>::Sort(T[],System.Int32,System.Int32,System.Collections.Generic.IComparer`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Sort_m99CA229AF8838230CC3ECE8890C1AF9947A81295_gshared (GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8* ___keys0, int32_t ___index1, int32_t ___length2, RuntimeObject* ___comparer3, const RuntimeMethod* method) { Exception_t * V_0 = NULL; il2cpp::utils::ExceptionSupportStack<RuntimeObject*, 1> __active_exceptions; il2cpp::utils::ExceptionSupportStack<int32_t, 2> __leave_targets; IL_0000: try { // begin try (depth: 1) { RuntimeObject* L_0 = ___comparer3; if (L_0) { goto IL_000a; } } IL_0003: { Comparer_1_t2EB7657A4870B636EBF36EC87C0E9BEAD4EB994E * L_1; L_1 = (( Comparer_1_t2EB7657A4870B636EBF36EC87C0E9BEAD4EB994E * (*) (const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)->methodPointer)(/*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)); ___comparer3 = (RuntimeObject*)L_1; } IL_000a: { GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8* L_2 = ___keys0; int32_t L_3 = ___index1; int32_t L_4 = ___length2; RuntimeObject* L_5 = ___comparer3; RuntimeObject* L_6 = (RuntimeObject*)L_5; Comparison_1_t8F5B6FDF6F80F8F406E8649C7010FA9193CD7AC5 * L_7 = (Comparison_1_t8F5B6FDF6F80F8F406E8649C7010FA9193CD7AC5 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 4)); (( void (*) (Comparison_1_t8F5B6FDF6F80F8F406E8649C7010FA9193CD7AC5 *, RuntimeObject *, intptr_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 5)->methodPointer)(L_7, (RuntimeObject *)L_6, (intptr_t)((intptr_t)GetInterfaceMethodInfo(L_6, 0, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 3))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 5)); (( void (*) (GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8*, int32_t, int32_t, Comparison_1_t8F5B6FDF6F80F8F406E8649C7010FA9193CD7AC5 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)->methodPointer)((GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8*)L_2, (int32_t)L_3, (int32_t)L_4, (Comparison_1_t8F5B6FDF6F80F8F406E8649C7010FA9193CD7AC5 *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)); goto IL_0037; } } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&IndexOutOfRangeException_tDC9EF7A0346CE39E54DA1083F07BE6DFC3CE2EDD_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_0021; } if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&Exception_t_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_002a; } throw e; } CATCH_0021: { // begin catch(System.IndexOutOfRangeException) RuntimeObject* L_8 = ___comparer3; IntrospectiveSortUtilities_ThrowOrIgnoreBadComparer_mE23A8103696FA67F874E7DA86625BB3921DB801F((RuntimeObject *)L_8, /*hidden argument*/NULL); IL2CPP_POP_ACTIVE_EXCEPTION(); goto IL_0037; } // end catch (depth: 1) CATCH_002a: { // begin catch(System.Exception) V_0 = (Exception_t *)((Exception_t *)IL2CPP_GET_ACTIVE_EXCEPTION(Exception_t *)); Exception_t * L_9 = V_0; InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB * L_10 = (InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB *)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB_il2cpp_TypeInfo_var))); InvalidOperationException__ctor_m4A65916B1316FBF45ECDF1FF7FAC9E3CA30C112C(L_10, (String_t*)((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral6EDB6C049ED9617FA335A262A29BF30B15221AEA)), (Exception_t *)L_9, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_10, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArraySortHelper_1_Sort_m99CA229AF8838230CC3ECE8890C1AF9947A81295_RuntimeMethod_var))); } // end catch (depth: 1) IL_0037: { return; } } // System.Int32 System.Collections.Generic.ArraySortHelper`1<System.Guid>::BinarySearch(T[],System.Int32,System.Int32,T,System.Collections.Generic.IComparer`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t ArraySortHelper_1_BinarySearch_m5EC0BFFEEA20A7D18A0B43526120E4BA25969B5E_gshared (GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8* ___array0, int32_t ___index1, int32_t ___length2, Guid_t ___value3, RuntimeObject* ___comparer4, const RuntimeMethod* method) { int32_t V_0 = 0; Exception_t * V_1 = NULL; il2cpp::utils::ExceptionSupportStack<RuntimeObject*, 1> __active_exceptions; il2cpp::utils::ExceptionSupportStack<int32_t, 1> __leave_targets; IL_0000: try { // begin try (depth: 1) { RuntimeObject* L_0 = ___comparer4; if (L_0) { goto IL_000b; } } IL_0004: { Comparer_1_t2EB7657A4870B636EBF36EC87C0E9BEAD4EB994E * L_1; L_1 = (( Comparer_1_t2EB7657A4870B636EBF36EC87C0E9BEAD4EB994E * (*) (const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)->methodPointer)(/*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)); ___comparer4 = (RuntimeObject*)L_1; } IL_000b: { GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8* L_2 = ___array0; int32_t L_3 = ___index1; int32_t L_4 = ___length2; Guid_t L_5 = ___value3; RuntimeObject* L_6 = ___comparer4; int32_t L_7; L_7 = (( int32_t (*) (GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8*, int32_t, int32_t, Guid_t , RuntimeObject*, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 8)->methodPointer)((GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8*)L_2, (int32_t)L_3, (int32_t)L_4, (Guid_t )L_5, (RuntimeObject*)L_6, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 8)); V_0 = (int32_t)L_7; goto IL_0026; } } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&Exception_t_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_0019; } throw e; } CATCH_0019: { // begin catch(System.Exception) V_1 = (Exception_t *)((Exception_t *)IL2CPP_GET_ACTIVE_EXCEPTION(Exception_t *)); Exception_t * L_8 = V_1; InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB * L_9 = (InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB *)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB_il2cpp_TypeInfo_var))); InvalidOperationException__ctor_m4A65916B1316FBF45ECDF1FF7FAC9E3CA30C112C(L_9, (String_t*)((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral6EDB6C049ED9617FA335A262A29BF30B15221AEA)), (Exception_t *)L_8, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_9, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArraySortHelper_1_BinarySearch_m5EC0BFFEEA20A7D18A0B43526120E4BA25969B5E_RuntimeMethod_var))); } // end catch (depth: 1) IL_0026: { int32_t L_10 = V_0; return (int32_t)L_10; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Guid>::Sort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Sort_mCE73124DF0AFFB7869F21FE0219F6287C2D15C87_gshared (GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8* ___keys0, int32_t ___index1, int32_t ___length2, Comparison_1_t8F5B6FDF6F80F8F406E8649C7010FA9193CD7AC5 * ___comparer3, const RuntimeMethod* method) { Exception_t * V_0 = NULL; il2cpp::utils::ExceptionSupportStack<RuntimeObject*, 1> __active_exceptions; il2cpp::utils::ExceptionSupportStack<int32_t, 2> __leave_targets; IL_0000: try { // begin try (depth: 1) GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8* L_0 = ___keys0; int32_t L_1 = ___index1; int32_t L_2 = ___length2; Comparison_1_t8F5B6FDF6F80F8F406E8649C7010FA9193CD7AC5 * L_3 = ___comparer3; (( void (*) (GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8*, int32_t, int32_t, Comparison_1_t8F5B6FDF6F80F8F406E8649C7010FA9193CD7AC5 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)->methodPointer)((GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8*)L_0, (int32_t)L_1, (int32_t)L_2, (Comparison_1_t8F5B6FDF6F80F8F406E8649C7010FA9193CD7AC5 *)L_3, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)); goto IL_0021; } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&IndexOutOfRangeException_tDC9EF7A0346CE39E54DA1083F07BE6DFC3CE2EDD_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_000b; } if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&Exception_t_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_0014; } throw e; } CATCH_000b: { // begin catch(System.IndexOutOfRangeException) Comparison_1_t8F5B6FDF6F80F8F406E8649C7010FA9193CD7AC5 * L_4 = ___comparer3; IntrospectiveSortUtilities_ThrowOrIgnoreBadComparer_mE23A8103696FA67F874E7DA86625BB3921DB801F((RuntimeObject *)L_4, /*hidden argument*/NULL); IL2CPP_POP_ACTIVE_EXCEPTION(); goto IL_0021; } // end catch (depth: 1) CATCH_0014: { // begin catch(System.Exception) V_0 = (Exception_t *)((Exception_t *)IL2CPP_GET_ACTIVE_EXCEPTION(Exception_t *)); Exception_t * L_5 = V_0; InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB * L_6 = (InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB *)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB_il2cpp_TypeInfo_var))); InvalidOperationException__ctor_m4A65916B1316FBF45ECDF1FF7FAC9E3CA30C112C(L_6, (String_t*)((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral6EDB6C049ED9617FA335A262A29BF30B15221AEA)), (Exception_t *)L_5, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_6, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArraySortHelper_1_Sort_mCE73124DF0AFFB7869F21FE0219F6287C2D15C87_RuntimeMethod_var))); } // end catch (depth: 1) IL_0021: { return; } } // System.Int32 System.Collections.Generic.ArraySortHelper`1<System.Guid>::InternalBinarySearch(T[],System.Int32,System.Int32,T,System.Collections.Generic.IComparer`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t ArraySortHelper_1_InternalBinarySearch_mA51AB1795A8E08312BD164413736E5E1F773F65C_gshared (GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8* ___array0, int32_t ___index1, int32_t ___length2, Guid_t ___value3, RuntimeObject* ___comparer4, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; int32_t V_2 = 0; int32_t V_3 = 0; { int32_t L_0 = ___index1; V_0 = (int32_t)L_0; int32_t L_1 = ___index1; int32_t L_2 = ___length2; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_1, (int32_t)L_2)), (int32_t)1)); goto IL_0035; } IL_000a: { int32_t L_3 = V_0; int32_t L_4 = V_1; int32_t L_5 = V_0; V_2 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)((int32_t)((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_4, (int32_t)L_5))>>(int32_t)1)))); RuntimeObject* L_6 = ___comparer4; GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8* L_7 = ___array0; int32_t L_8 = V_2; NullCheck(L_7); int32_t L_9 = L_8; Guid_t L_10 = (L_7)->GetAt(static_cast<il2cpp_array_size_t>(L_9)); Guid_t L_11 = ___value3; NullCheck((RuntimeObject*)L_6); int32_t L_12; L_12 = InterfaceFuncInvoker2< int32_t, Guid_t , Guid_t >::Invoke(0 /* System.Int32 System.Collections.Generic.IComparer`1<System.Guid>::Compare(T,T) */, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 3), (RuntimeObject*)L_6, (Guid_t )L_10, (Guid_t )L_11); V_3 = (int32_t)L_12; int32_t L_13 = V_3; if (L_13) { goto IL_0027; } } { int32_t L_14 = V_2; return (int32_t)L_14; } IL_0027: { int32_t L_15 = V_3; if ((((int32_t)L_15) >= ((int32_t)0))) { goto IL_0031; } } { int32_t L_16 = V_2; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_16, (int32_t)1)); goto IL_0035; } IL_0031: { int32_t L_17 = V_2; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_17, (int32_t)1)); } IL_0035: { int32_t L_18 = V_0; int32_t L_19 = V_1; if ((((int32_t)L_18) <= ((int32_t)L_19))) { goto IL_000a; } } { int32_t L_20 = V_0; return (int32_t)((~L_20)); } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Guid>::SwapIfGreater(T[],System.Comparison`1<T>,System.Int32,System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_SwapIfGreater_m7DBDC9CBA5B68C1503961CC512FF50CC32A9F1D1_gshared (GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8* ___keys0, Comparison_1_t8F5B6FDF6F80F8F406E8649C7010FA9193CD7AC5 * ___comparer1, int32_t ___a2, int32_t ___b3, const RuntimeMethod* method) { Guid_t V_0; memset((&V_0), 0, sizeof(V_0)); { int32_t L_0 = ___a2; int32_t L_1 = ___b3; if ((((int32_t)L_0) == ((int32_t)L_1))) { goto IL_0039; } } { Comparison_1_t8F5B6FDF6F80F8F406E8649C7010FA9193CD7AC5 * L_2 = ___comparer1; GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8* L_3 = ___keys0; int32_t L_4 = ___a2; NullCheck(L_3); int32_t L_5 = L_4; Guid_t L_6 = (L_3)->GetAt(static_cast<il2cpp_array_size_t>(L_5)); GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8* L_7 = ___keys0; int32_t L_8 = ___b3; NullCheck(L_7); int32_t L_9 = L_8; Guid_t L_10 = (L_7)->GetAt(static_cast<il2cpp_array_size_t>(L_9)); NullCheck((Comparison_1_t8F5B6FDF6F80F8F406E8649C7010FA9193CD7AC5 *)L_2); int32_t L_11; L_11 = (( int32_t (*) (Comparison_1_t8F5B6FDF6F80F8F406E8649C7010FA9193CD7AC5 *, Guid_t , Guid_t , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t8F5B6FDF6F80F8F406E8649C7010FA9193CD7AC5 *)L_2, (Guid_t )L_6, (Guid_t )L_10, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_11) <= ((int32_t)0))) { goto IL_0039; } } { GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8* L_12 = ___keys0; int32_t L_13 = ___a2; NullCheck(L_12); int32_t L_14 = L_13; Guid_t L_15 = (L_12)->GetAt(static_cast<il2cpp_array_size_t>(L_14)); V_0 = (Guid_t )L_15; GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8* L_16 = ___keys0; int32_t L_17 = ___a2; GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8* L_18 = ___keys0; int32_t L_19 = ___b3; NullCheck(L_18); int32_t L_20 = L_19; Guid_t L_21 = (L_18)->GetAt(static_cast<il2cpp_array_size_t>(L_20)); NullCheck(L_16); (L_16)->SetAt(static_cast<il2cpp_array_size_t>(L_17), (Guid_t )L_21); GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8* L_22 = ___keys0; int32_t L_23 = ___b3; Guid_t L_24 = V_0; NullCheck(L_22); (L_22)->SetAt(static_cast<il2cpp_array_size_t>(L_23), (Guid_t )L_24); } IL_0039: { return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Guid>::Swap(T[],System.Int32,System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Swap_mDE3A554D1A6CF48AFE1C5009815AA56F70E7F2E9_gshared (GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8* ___a0, int32_t ___i1, int32_t ___j2, const RuntimeMethod* method) { Guid_t V_0; memset((&V_0), 0, sizeof(V_0)); { int32_t L_0 = ___i1; int32_t L_1 = ___j2; if ((((int32_t)L_0) == ((int32_t)L_1))) { goto IL_0022; } } { GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8* L_2 = ___a0; int32_t L_3 = ___i1; NullCheck(L_2); int32_t L_4 = L_3; Guid_t L_5 = (L_2)->GetAt(static_cast<il2cpp_array_size_t>(L_4)); V_0 = (Guid_t )L_5; GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8* L_6 = ___a0; int32_t L_7 = ___i1; GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8* L_8 = ___a0; int32_t L_9 = ___j2; NullCheck(L_8); int32_t L_10 = L_9; Guid_t L_11 = (L_8)->GetAt(static_cast<il2cpp_array_size_t>(L_10)); NullCheck(L_6); (L_6)->SetAt(static_cast<il2cpp_array_size_t>(L_7), (Guid_t )L_11); GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8* L_12 = ___a0; int32_t L_13 = ___j2; Guid_t L_14 = V_0; NullCheck(L_12); (L_12)->SetAt(static_cast<il2cpp_array_size_t>(L_13), (Guid_t )L_14); } IL_0022: { return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Guid>::IntrospectiveSort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_IntrospectiveSort_m20754C2292BAB1A6810FF79979834987870C3D91_gshared (GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8* ___keys0, int32_t ___left1, int32_t ___length2, Comparison_1_t8F5B6FDF6F80F8F406E8649C7010FA9193CD7AC5 * ___comparer3, const RuntimeMethod* method) { { int32_t L_0 = ___length2; if ((((int32_t)L_0) >= ((int32_t)2))) { goto IL_0005; } } { return; } IL_0005: { GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8* L_1 = ___keys0; int32_t L_2 = ___left1; int32_t L_3 = ___length2; int32_t L_4 = ___left1; GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8* L_5 = ___keys0; NullCheck(L_5); int32_t L_6; L_6 = IntrospectiveSortUtilities_FloorLog2_m05ECB6CAC7A23087D9EC2C2A4DDCFE12272C3872((int32_t)((int32_t)((int32_t)(((RuntimeArray*)L_5)->max_length))), /*hidden argument*/NULL); Comparison_1_t8F5B6FDF6F80F8F406E8649C7010FA9193CD7AC5 * L_7 = ___comparer3; (( void (*) (GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8*, int32_t, int32_t, int32_t, Comparison_1_t8F5B6FDF6F80F8F406E8649C7010FA9193CD7AC5 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)->methodPointer)((GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8*)L_1, (int32_t)L_2, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)L_4)), (int32_t)1)), (int32_t)((int32_t)il2cpp_codegen_multiply((int32_t)2, (int32_t)L_6)), (Comparison_1_t8F5B6FDF6F80F8F406E8649C7010FA9193CD7AC5 *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)); return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Guid>::IntroSort(T[],System.Int32,System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_IntroSort_m79FEFAB267AE23F95E2435E9DB6D53C3B487CD5A_gshared (GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8* ___keys0, int32_t ___lo1, int32_t ___hi2, int32_t ___depthLimit3, Comparison_1_t8F5B6FDF6F80F8F406E8649C7010FA9193CD7AC5 * ___comparer4, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; { goto IL_0086; } IL_0005: { int32_t L_0 = ___hi2; int32_t L_1 = ___lo1; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_0, (int32_t)L_1)), (int32_t)1)); int32_t L_2 = V_0; if ((((int32_t)L_2) > ((int32_t)((int32_t)16)))) { goto IL_0056; } } { int32_t L_3 = V_0; if ((!(((uint32_t)L_3) == ((uint32_t)1)))) { goto IL_0015; } } { return; } IL_0015: { int32_t L_4 = V_0; if ((!(((uint32_t)L_4) == ((uint32_t)2)))) { goto IL_0024; } } { GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8* L_5 = ___keys0; Comparison_1_t8F5B6FDF6F80F8F406E8649C7010FA9193CD7AC5 * L_6 = ___comparer4; int32_t L_7 = ___lo1; int32_t L_8 = ___hi2; (( void (*) (GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8*, Comparison_1_t8F5B6FDF6F80F8F406E8649C7010FA9193CD7AC5 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8*)L_5, (Comparison_1_t8F5B6FDF6F80F8F406E8649C7010FA9193CD7AC5 *)L_6, (int32_t)L_7, (int32_t)L_8, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); return; } IL_0024: { int32_t L_9 = V_0; if ((!(((uint32_t)L_9) == ((uint32_t)3)))) { goto IL_004b; } } { GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8* L_10 = ___keys0; Comparison_1_t8F5B6FDF6F80F8F406E8649C7010FA9193CD7AC5 * L_11 = ___comparer4; int32_t L_12 = ___lo1; int32_t L_13 = ___hi2; (( void (*) (GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8*, Comparison_1_t8F5B6FDF6F80F8F406E8649C7010FA9193CD7AC5 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8*)L_10, (Comparison_1_t8F5B6FDF6F80F8F406E8649C7010FA9193CD7AC5 *)L_11, (int32_t)L_12, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_13, (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8* L_14 = ___keys0; Comparison_1_t8F5B6FDF6F80F8F406E8649C7010FA9193CD7AC5 * L_15 = ___comparer4; int32_t L_16 = ___lo1; int32_t L_17 = ___hi2; (( void (*) (GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8*, Comparison_1_t8F5B6FDF6F80F8F406E8649C7010FA9193CD7AC5 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8*)L_14, (Comparison_1_t8F5B6FDF6F80F8F406E8649C7010FA9193CD7AC5 *)L_15, (int32_t)L_16, (int32_t)L_17, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8* L_18 = ___keys0; Comparison_1_t8F5B6FDF6F80F8F406E8649C7010FA9193CD7AC5 * L_19 = ___comparer4; int32_t L_20 = ___hi2; int32_t L_21 = ___hi2; (( void (*) (GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8*, Comparison_1_t8F5B6FDF6F80F8F406E8649C7010FA9193CD7AC5 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8*)L_18, (Comparison_1_t8F5B6FDF6F80F8F406E8649C7010FA9193CD7AC5 *)L_19, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_20, (int32_t)1)), (int32_t)L_21, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); return; } IL_004b: { GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8* L_22 = ___keys0; int32_t L_23 = ___lo1; int32_t L_24 = ___hi2; Comparison_1_t8F5B6FDF6F80F8F406E8649C7010FA9193CD7AC5 * L_25 = ___comparer4; (( void (*) (GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8*, int32_t, int32_t, Comparison_1_t8F5B6FDF6F80F8F406E8649C7010FA9193CD7AC5 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 12)->methodPointer)((GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8*)L_22, (int32_t)L_23, (int32_t)L_24, (Comparison_1_t8F5B6FDF6F80F8F406E8649C7010FA9193CD7AC5 *)L_25, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 12)); return; } IL_0056: { int32_t L_26 = ___depthLimit3; if (L_26) { goto IL_0064; } } { GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8* L_27 = ___keys0; int32_t L_28 = ___lo1; int32_t L_29 = ___hi2; Comparison_1_t8F5B6FDF6F80F8F406E8649C7010FA9193CD7AC5 * L_30 = ___comparer4; (( void (*) (GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8*, int32_t, int32_t, Comparison_1_t8F5B6FDF6F80F8F406E8649C7010FA9193CD7AC5 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 13)->methodPointer)((GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8*)L_27, (int32_t)L_28, (int32_t)L_29, (Comparison_1_t8F5B6FDF6F80F8F406E8649C7010FA9193CD7AC5 *)L_30, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 13)); return; } IL_0064: { int32_t L_31 = ___depthLimit3; ___depthLimit3 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_31, (int32_t)1)); GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8* L_32 = ___keys0; int32_t L_33 = ___lo1; int32_t L_34 = ___hi2; Comparison_1_t8F5B6FDF6F80F8F406E8649C7010FA9193CD7AC5 * L_35 = ___comparer4; int32_t L_36; L_36 = (( int32_t (*) (GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8*, int32_t, int32_t, Comparison_1_t8F5B6FDF6F80F8F406E8649C7010FA9193CD7AC5 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 14)->methodPointer)((GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8*)L_32, (int32_t)L_33, (int32_t)L_34, (Comparison_1_t8F5B6FDF6F80F8F406E8649C7010FA9193CD7AC5 *)L_35, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 14)); V_1 = (int32_t)L_36; GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8* L_37 = ___keys0; int32_t L_38 = V_1; int32_t L_39 = ___hi2; int32_t L_40 = ___depthLimit3; Comparison_1_t8F5B6FDF6F80F8F406E8649C7010FA9193CD7AC5 * L_41 = ___comparer4; (( void (*) (GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8*, int32_t, int32_t, int32_t, Comparison_1_t8F5B6FDF6F80F8F406E8649C7010FA9193CD7AC5 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)->methodPointer)((GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8*)L_37, (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_38, (int32_t)1)), (int32_t)L_39, (int32_t)L_40, (Comparison_1_t8F5B6FDF6F80F8F406E8649C7010FA9193CD7AC5 *)L_41, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)); int32_t L_42 = V_1; ___hi2 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_42, (int32_t)1)); } IL_0086: { int32_t L_43 = ___hi2; int32_t L_44 = ___lo1; if ((((int32_t)L_43) > ((int32_t)L_44))) { goto IL_0005; } } { return; } } // System.Int32 System.Collections.Generic.ArraySortHelper`1<System.Guid>::PickPivotAndPartition(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t ArraySortHelper_1_PickPivotAndPartition_mDFFBE05938BCF59AA001A36EE7DC66932C634F64_gshared (GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8* ___keys0, int32_t ___lo1, int32_t ___hi2, Comparison_1_t8F5B6FDF6F80F8F406E8649C7010FA9193CD7AC5 * ___comparer3, const RuntimeMethod* method) { int32_t V_0 = 0; Guid_t V_1; memset((&V_1), 0, sizeof(V_1)); int32_t V_2 = 0; int32_t V_3 = 0; { int32_t L_0 = ___lo1; int32_t L_1 = ___hi2; int32_t L_2 = ___lo1; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_0, (int32_t)((int32_t)((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_1, (int32_t)L_2))/(int32_t)2)))); GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8* L_3 = ___keys0; Comparison_1_t8F5B6FDF6F80F8F406E8649C7010FA9193CD7AC5 * L_4 = ___comparer3; int32_t L_5 = ___lo1; int32_t L_6 = V_0; (( void (*) (GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8*, Comparison_1_t8F5B6FDF6F80F8F406E8649C7010FA9193CD7AC5 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8*)L_3, (Comparison_1_t8F5B6FDF6F80F8F406E8649C7010FA9193CD7AC5 *)L_4, (int32_t)L_5, (int32_t)L_6, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8* L_7 = ___keys0; Comparison_1_t8F5B6FDF6F80F8F406E8649C7010FA9193CD7AC5 * L_8 = ___comparer3; int32_t L_9 = ___lo1; int32_t L_10 = ___hi2; (( void (*) (GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8*, Comparison_1_t8F5B6FDF6F80F8F406E8649C7010FA9193CD7AC5 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8*)L_7, (Comparison_1_t8F5B6FDF6F80F8F406E8649C7010FA9193CD7AC5 *)L_8, (int32_t)L_9, (int32_t)L_10, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8* L_11 = ___keys0; Comparison_1_t8F5B6FDF6F80F8F406E8649C7010FA9193CD7AC5 * L_12 = ___comparer3; int32_t L_13 = V_0; int32_t L_14 = ___hi2; (( void (*) (GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8*, Comparison_1_t8F5B6FDF6F80F8F406E8649C7010FA9193CD7AC5 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8*)L_11, (Comparison_1_t8F5B6FDF6F80F8F406E8649C7010FA9193CD7AC5 *)L_12, (int32_t)L_13, (int32_t)L_14, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8* L_15 = ___keys0; int32_t L_16 = V_0; NullCheck(L_15); int32_t L_17 = L_16; Guid_t L_18 = (L_15)->GetAt(static_cast<il2cpp_array_size_t>(L_17)); V_1 = (Guid_t )L_18; GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8* L_19 = ___keys0; int32_t L_20 = V_0; int32_t L_21 = ___hi2; (( void (*) (GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8*)L_19, (int32_t)L_20, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_21, (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); int32_t L_22 = ___lo1; V_2 = (int32_t)L_22; int32_t L_23 = ___hi2; V_3 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_23, (int32_t)1)); goto IL_0073; } IL_003d: { Comparison_1_t8F5B6FDF6F80F8F406E8649C7010FA9193CD7AC5 * L_24 = ___comparer3; GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8* L_25 = ___keys0; int32_t L_26 = V_2; int32_t L_27 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_26, (int32_t)1)); V_2 = (int32_t)L_27; NullCheck(L_25); int32_t L_28 = L_27; Guid_t L_29 = (L_25)->GetAt(static_cast<il2cpp_array_size_t>(L_28)); Guid_t L_30 = V_1; NullCheck((Comparison_1_t8F5B6FDF6F80F8F406E8649C7010FA9193CD7AC5 *)L_24); int32_t L_31; L_31 = (( int32_t (*) (Comparison_1_t8F5B6FDF6F80F8F406E8649C7010FA9193CD7AC5 *, Guid_t , Guid_t , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t8F5B6FDF6F80F8F406E8649C7010FA9193CD7AC5 *)L_24, (Guid_t )L_29, (Guid_t )L_30, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_31) < ((int32_t)0))) { goto IL_003d; } } IL_0052: { Comparison_1_t8F5B6FDF6F80F8F406E8649C7010FA9193CD7AC5 * L_32 = ___comparer3; Guid_t L_33 = V_1; GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8* L_34 = ___keys0; int32_t L_35 = V_3; int32_t L_36 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_35, (int32_t)1)); V_3 = (int32_t)L_36; NullCheck(L_34); int32_t L_37 = L_36; Guid_t L_38 = (L_34)->GetAt(static_cast<il2cpp_array_size_t>(L_37)); NullCheck((Comparison_1_t8F5B6FDF6F80F8F406E8649C7010FA9193CD7AC5 *)L_32); int32_t L_39; L_39 = (( int32_t (*) (Comparison_1_t8F5B6FDF6F80F8F406E8649C7010FA9193CD7AC5 *, Guid_t , Guid_t , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t8F5B6FDF6F80F8F406E8649C7010FA9193CD7AC5 *)L_32, (Guid_t )L_33, (Guid_t )L_38, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_39) < ((int32_t)0))) { goto IL_0052; } } { int32_t L_40 = V_2; int32_t L_41 = V_3; if ((((int32_t)L_40) >= ((int32_t)L_41))) { goto IL_0077; } } { GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8* L_42 = ___keys0; int32_t L_43 = V_2; int32_t L_44 = V_3; (( void (*) (GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8*)L_42, (int32_t)L_43, (int32_t)L_44, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); } IL_0073: { int32_t L_45 = V_2; int32_t L_46 = V_3; if ((((int32_t)L_45) < ((int32_t)L_46))) { goto IL_003d; } } IL_0077: { GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8* L_47 = ___keys0; int32_t L_48 = V_2; int32_t L_49 = ___hi2; (( void (*) (GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8*)L_47, (int32_t)L_48, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_49, (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); int32_t L_50 = V_2; return (int32_t)L_50; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Guid>::Heapsort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Heapsort_mA52B74564B7065763FDF0DA0DC5FB0BA05C81307_gshared (GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8* ___keys0, int32_t ___lo1, int32_t ___hi2, Comparison_1_t8F5B6FDF6F80F8F406E8649C7010FA9193CD7AC5 * ___comparer3, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; int32_t V_2 = 0; { int32_t L_0 = ___hi2; int32_t L_1 = ___lo1; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_0, (int32_t)L_1)), (int32_t)1)); int32_t L_2 = V_0; V_1 = (int32_t)((int32_t)((int32_t)L_2/(int32_t)2)); goto IL_001a; } IL_000c: { GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8* L_3 = ___keys0; int32_t L_4 = V_1; int32_t L_5 = V_0; int32_t L_6 = ___lo1; Comparison_1_t8F5B6FDF6F80F8F406E8649C7010FA9193CD7AC5 * L_7 = ___comparer3; (( void (*) (GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8*, int32_t, int32_t, int32_t, Comparison_1_t8F5B6FDF6F80F8F406E8649C7010FA9193CD7AC5 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)->methodPointer)((GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8*)L_3, (int32_t)L_4, (int32_t)L_5, (int32_t)L_6, (Comparison_1_t8F5B6FDF6F80F8F406E8649C7010FA9193CD7AC5 *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)); int32_t L_8 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_8, (int32_t)1)); } IL_001a: { int32_t L_9 = V_1; if ((((int32_t)L_9) >= ((int32_t)1))) { goto IL_000c; } } { int32_t L_10 = V_0; V_2 = (int32_t)L_10; goto IL_003e; } IL_0022: { GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8* L_11 = ___keys0; int32_t L_12 = ___lo1; int32_t L_13 = ___lo1; int32_t L_14 = V_2; (( void (*) (GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8*)L_11, (int32_t)L_12, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_13, (int32_t)L_14)), (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8* L_15 = ___keys0; int32_t L_16 = V_2; int32_t L_17 = ___lo1; Comparison_1_t8F5B6FDF6F80F8F406E8649C7010FA9193CD7AC5 * L_18 = ___comparer3; (( void (*) (GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8*, int32_t, int32_t, int32_t, Comparison_1_t8F5B6FDF6F80F8F406E8649C7010FA9193CD7AC5 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)->methodPointer)((GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8*)L_15, (int32_t)1, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_16, (int32_t)1)), (int32_t)L_17, (Comparison_1_t8F5B6FDF6F80F8F406E8649C7010FA9193CD7AC5 *)L_18, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)); int32_t L_19 = V_2; V_2 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_19, (int32_t)1)); } IL_003e: { int32_t L_20 = V_2; if ((((int32_t)L_20) > ((int32_t)1))) { goto IL_0022; } } { return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Guid>::DownHeap(T[],System.Int32,System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_DownHeap_m16139DD6AF8D4F60CABC01B4567604824EBB4FF3_gshared (GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8* ___keys0, int32_t ___i1, int32_t ___n2, int32_t ___lo3, Comparison_1_t8F5B6FDF6F80F8F406E8649C7010FA9193CD7AC5 * ___comparer4, const RuntimeMethod* method) { Guid_t V_0; memset((&V_0), 0, sizeof(V_0)); int32_t V_1 = 0; { GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8* L_0 = ___keys0; int32_t L_1 = ___lo3; int32_t L_2 = ___i1; NullCheck(L_0); int32_t L_3 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_1, (int32_t)L_2)), (int32_t)1)); Guid_t L_4 = (L_0)->GetAt(static_cast<il2cpp_array_size_t>(L_3)); V_0 = (Guid_t )L_4; goto IL_0067; } IL_000e: { int32_t L_5 = ___i1; V_1 = (int32_t)((int32_t)il2cpp_codegen_multiply((int32_t)2, (int32_t)L_5)); int32_t L_6 = V_1; int32_t L_7 = ___n2; if ((((int32_t)L_6) >= ((int32_t)L_7))) { goto IL_0038; } } { Comparison_1_t8F5B6FDF6F80F8F406E8649C7010FA9193CD7AC5 * L_8 = ___comparer4; GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8* L_9 = ___keys0; int32_t L_10 = ___lo3; int32_t L_11 = V_1; NullCheck(L_9); int32_t L_12 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_10, (int32_t)L_11)), (int32_t)1)); Guid_t L_13 = (L_9)->GetAt(static_cast<il2cpp_array_size_t>(L_12)); GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8* L_14 = ___keys0; int32_t L_15 = ___lo3; int32_t L_16 = V_1; NullCheck(L_14); int32_t L_17 = ((int32_t)il2cpp_codegen_add((int32_t)L_15, (int32_t)L_16)); Guid_t L_18 = (L_14)->GetAt(static_cast<il2cpp_array_size_t>(L_17)); NullCheck((Comparison_1_t8F5B6FDF6F80F8F406E8649C7010FA9193CD7AC5 *)L_8); int32_t L_19; L_19 = (( int32_t (*) (Comparison_1_t8F5B6FDF6F80F8F406E8649C7010FA9193CD7AC5 *, Guid_t , Guid_t , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t8F5B6FDF6F80F8F406E8649C7010FA9193CD7AC5 *)L_8, (Guid_t )L_13, (Guid_t )L_18, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_19) >= ((int32_t)0))) { goto IL_0038; } } { int32_t L_20 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_20, (int32_t)1)); } IL_0038: { Comparison_1_t8F5B6FDF6F80F8F406E8649C7010FA9193CD7AC5 * L_21 = ___comparer4; Guid_t L_22 = V_0; GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8* L_23 = ___keys0; int32_t L_24 = ___lo3; int32_t L_25 = V_1; NullCheck(L_23); int32_t L_26 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_24, (int32_t)L_25)), (int32_t)1)); Guid_t L_27 = (L_23)->GetAt(static_cast<il2cpp_array_size_t>(L_26)); NullCheck((Comparison_1_t8F5B6FDF6F80F8F406E8649C7010FA9193CD7AC5 *)L_21); int32_t L_28; L_28 = (( int32_t (*) (Comparison_1_t8F5B6FDF6F80F8F406E8649C7010FA9193CD7AC5 *, Guid_t , Guid_t , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t8F5B6FDF6F80F8F406E8649C7010FA9193CD7AC5 *)L_21, (Guid_t )L_22, (Guid_t )L_27, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_28) >= ((int32_t)0))) { goto IL_006d; } } { GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8* L_29 = ___keys0; int32_t L_30 = ___lo3; int32_t L_31 = ___i1; GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8* L_32 = ___keys0; int32_t L_33 = ___lo3; int32_t L_34 = V_1; NullCheck(L_32); int32_t L_35 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_33, (int32_t)L_34)), (int32_t)1)); Guid_t L_36 = (L_32)->GetAt(static_cast<il2cpp_array_size_t>(L_35)); NullCheck(L_29); (L_29)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_30, (int32_t)L_31)), (int32_t)1))), (Guid_t )L_36); int32_t L_37 = V_1; ___i1 = (int32_t)L_37; } IL_0067: { int32_t L_38 = ___i1; int32_t L_39 = ___n2; if ((((int32_t)L_38) <= ((int32_t)((int32_t)((int32_t)L_39/(int32_t)2))))) { goto IL_000e; } } IL_006d: { GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8* L_40 = ___keys0; int32_t L_41 = ___lo3; int32_t L_42 = ___i1; Guid_t L_43 = V_0; NullCheck(L_40); (L_40)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_41, (int32_t)L_42)), (int32_t)1))), (Guid_t )L_43); return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Guid>::InsertionSort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_InsertionSort_m149142D46784584AA717C66F687E1222A1912B87_gshared (GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8* ___keys0, int32_t ___lo1, int32_t ___hi2, Comparison_1_t8F5B6FDF6F80F8F406E8649C7010FA9193CD7AC5 * ___comparer3, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; Guid_t V_2; memset((&V_2), 0, sizeof(V_2)); { int32_t L_0 = ___lo1; V_0 = (int32_t)L_0; goto IL_0049; } IL_0004: { int32_t L_1 = V_0; V_1 = (int32_t)L_1; GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8* L_2 = ___keys0; int32_t L_3 = V_0; NullCheck(L_2); int32_t L_4 = ((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)1)); Guid_t L_5 = (L_2)->GetAt(static_cast<il2cpp_array_size_t>(L_4)); V_2 = (Guid_t )L_5; goto IL_0026; } IL_0012: { GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8* L_6 = ___keys0; int32_t L_7 = V_1; GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8* L_8 = ___keys0; int32_t L_9 = V_1; NullCheck(L_8); int32_t L_10 = L_9; Guid_t L_11 = (L_8)->GetAt(static_cast<il2cpp_array_size_t>(L_10)); NullCheck(L_6); (L_6)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add((int32_t)L_7, (int32_t)1))), (Guid_t )L_11); int32_t L_12 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_12, (int32_t)1)); } IL_0026: { int32_t L_13 = V_1; int32_t L_14 = ___lo1; if ((((int32_t)L_13) < ((int32_t)L_14))) { goto IL_003b; } } { Comparison_1_t8F5B6FDF6F80F8F406E8649C7010FA9193CD7AC5 * L_15 = ___comparer3; Guid_t L_16 = V_2; GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8* L_17 = ___keys0; int32_t L_18 = V_1; NullCheck(L_17); int32_t L_19 = L_18; Guid_t L_20 = (L_17)->GetAt(static_cast<il2cpp_array_size_t>(L_19)); NullCheck((Comparison_1_t8F5B6FDF6F80F8F406E8649C7010FA9193CD7AC5 *)L_15); int32_t L_21; L_21 = (( int32_t (*) (Comparison_1_t8F5B6FDF6F80F8F406E8649C7010FA9193CD7AC5 *, Guid_t , Guid_t , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t8F5B6FDF6F80F8F406E8649C7010FA9193CD7AC5 *)L_15, (Guid_t )L_16, (Guid_t )L_20, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_21) < ((int32_t)0))) { goto IL_0012; } } IL_003b: { GuidU5BU5D_t6DCED1B9FC5592C43FAA73D81705104BD18151B8* L_22 = ___keys0; int32_t L_23 = V_1; Guid_t L_24 = V_2; NullCheck(L_22); (L_22)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add((int32_t)L_23, (int32_t)1))), (Guid_t )L_24); int32_t L_25 = V_0; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_25, (int32_t)1)); } IL_0049: { int32_t L_26 = V_0; int32_t L_27 = ___hi2; if ((((int32_t)L_26) < ((int32_t)L_27))) { goto IL_0004; } } { return; } } #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Void System.Collections.Generic.ArraySortHelper`1<UnityEngine.InputSystem.InputBinding>::Sort(T[],System.Int32,System.Int32,System.Collections.Generic.IComparer`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Sort_mFD815C31F65B4078990CEECB5B2E17C8BDF76F94_gshared (InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E* ___keys0, int32_t ___index1, int32_t ___length2, RuntimeObject* ___comparer3, const RuntimeMethod* method) { Exception_t * V_0 = NULL; il2cpp::utils::ExceptionSupportStack<RuntimeObject*, 1> __active_exceptions; il2cpp::utils::ExceptionSupportStack<int32_t, 2> __leave_targets; IL_0000: try { // begin try (depth: 1) { RuntimeObject* L_0 = ___comparer3; if (L_0) { goto IL_000a; } } IL_0003: { Comparer_1_tF1626F8A8AF35E99CD061E07752CF281AED1B317 * L_1; L_1 = (( Comparer_1_tF1626F8A8AF35E99CD061E07752CF281AED1B317 * (*) (const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)->methodPointer)(/*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)); ___comparer3 = (RuntimeObject*)L_1; } IL_000a: { InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E* L_2 = ___keys0; int32_t L_3 = ___index1; int32_t L_4 = ___length2; RuntimeObject* L_5 = ___comparer3; RuntimeObject* L_6 = (RuntimeObject*)L_5; Comparison_1_t4F5C215788C9C09FAFB5C10F437A7769956F32A0 * L_7 = (Comparison_1_t4F5C215788C9C09FAFB5C10F437A7769956F32A0 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 4)); (( void (*) (Comparison_1_t4F5C215788C9C09FAFB5C10F437A7769956F32A0 *, RuntimeObject *, intptr_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 5)->methodPointer)(L_7, (RuntimeObject *)L_6, (intptr_t)((intptr_t)GetInterfaceMethodInfo(L_6, 0, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 3))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 5)); (( void (*) (InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E*, int32_t, int32_t, Comparison_1_t4F5C215788C9C09FAFB5C10F437A7769956F32A0 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)->methodPointer)((InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E*)L_2, (int32_t)L_3, (int32_t)L_4, (Comparison_1_t4F5C215788C9C09FAFB5C10F437A7769956F32A0 *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)); goto IL_0037; } } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&IndexOutOfRangeException_tDC9EF7A0346CE39E54DA1083F07BE6DFC3CE2EDD_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_0021; } if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&Exception_t_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_002a; } throw e; } CATCH_0021: { // begin catch(System.IndexOutOfRangeException) RuntimeObject* L_8 = ___comparer3; IntrospectiveSortUtilities_ThrowOrIgnoreBadComparer_mE23A8103696FA67F874E7DA86625BB3921DB801F((RuntimeObject *)L_8, /*hidden argument*/NULL); IL2CPP_POP_ACTIVE_EXCEPTION(); goto IL_0037; } // end catch (depth: 1) CATCH_002a: { // begin catch(System.Exception) V_0 = (Exception_t *)((Exception_t *)IL2CPP_GET_ACTIVE_EXCEPTION(Exception_t *)); Exception_t * L_9 = V_0; InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB * L_10 = (InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB *)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB_il2cpp_TypeInfo_var))); InvalidOperationException__ctor_m4A65916B1316FBF45ECDF1FF7FAC9E3CA30C112C(L_10, (String_t*)((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral6EDB6C049ED9617FA335A262A29BF30B15221AEA)), (Exception_t *)L_9, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_10, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArraySortHelper_1_Sort_mFD815C31F65B4078990CEECB5B2E17C8BDF76F94_RuntimeMethod_var))); } // end catch (depth: 1) IL_0037: { return; } } // System.Int32 System.Collections.Generic.ArraySortHelper`1<UnityEngine.InputSystem.InputBinding>::BinarySearch(T[],System.Int32,System.Int32,T,System.Collections.Generic.IComparer`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t ArraySortHelper_1_BinarySearch_m2B9931C4861353C5DCD07C66AD7DE538F1671A05_gshared (InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E* ___array0, int32_t ___index1, int32_t ___length2, InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD ___value3, RuntimeObject* ___comparer4, const RuntimeMethod* method) { int32_t V_0 = 0; Exception_t * V_1 = NULL; il2cpp::utils::ExceptionSupportStack<RuntimeObject*, 1> __active_exceptions; il2cpp::utils::ExceptionSupportStack<int32_t, 1> __leave_targets; IL_0000: try { // begin try (depth: 1) { RuntimeObject* L_0 = ___comparer4; if (L_0) { goto IL_000b; } } IL_0004: { Comparer_1_tF1626F8A8AF35E99CD061E07752CF281AED1B317 * L_1; L_1 = (( Comparer_1_tF1626F8A8AF35E99CD061E07752CF281AED1B317 * (*) (const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)->methodPointer)(/*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)); ___comparer4 = (RuntimeObject*)L_1; } IL_000b: { InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E* L_2 = ___array0; int32_t L_3 = ___index1; int32_t L_4 = ___length2; InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD L_5 = ___value3; RuntimeObject* L_6 = ___comparer4; int32_t L_7; L_7 = (( int32_t (*) (InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E*, int32_t, int32_t, InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD , RuntimeObject*, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 8)->methodPointer)((InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E*)L_2, (int32_t)L_3, (int32_t)L_4, (InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD )L_5, (RuntimeObject*)L_6, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 8)); V_0 = (int32_t)L_7; goto IL_0026; } } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&Exception_t_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_0019; } throw e; } CATCH_0019: { // begin catch(System.Exception) V_1 = (Exception_t *)((Exception_t *)IL2CPP_GET_ACTIVE_EXCEPTION(Exception_t *)); Exception_t * L_8 = V_1; InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB * L_9 = (InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB *)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB_il2cpp_TypeInfo_var))); InvalidOperationException__ctor_m4A65916B1316FBF45ECDF1FF7FAC9E3CA30C112C(L_9, (String_t*)((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral6EDB6C049ED9617FA335A262A29BF30B15221AEA)), (Exception_t *)L_8, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_9, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArraySortHelper_1_BinarySearch_m2B9931C4861353C5DCD07C66AD7DE538F1671A05_RuntimeMethod_var))); } // end catch (depth: 1) IL_0026: { int32_t L_10 = V_0; return (int32_t)L_10; } } // System.Void System.Collections.Generic.ArraySortHelper`1<UnityEngine.InputSystem.InputBinding>::Sort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Sort_mC586C6EF7616FD576A351912A07F8755737E0BDD_gshared (InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E* ___keys0, int32_t ___index1, int32_t ___length2, Comparison_1_t4F5C215788C9C09FAFB5C10F437A7769956F32A0 * ___comparer3, const RuntimeMethod* method) { Exception_t * V_0 = NULL; il2cpp::utils::ExceptionSupportStack<RuntimeObject*, 1> __active_exceptions; il2cpp::utils::ExceptionSupportStack<int32_t, 2> __leave_targets; IL_0000: try { // begin try (depth: 1) InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E* L_0 = ___keys0; int32_t L_1 = ___index1; int32_t L_2 = ___length2; Comparison_1_t4F5C215788C9C09FAFB5C10F437A7769956F32A0 * L_3 = ___comparer3; (( void (*) (InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E*, int32_t, int32_t, Comparison_1_t4F5C215788C9C09FAFB5C10F437A7769956F32A0 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)->methodPointer)((InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E*)L_0, (int32_t)L_1, (int32_t)L_2, (Comparison_1_t4F5C215788C9C09FAFB5C10F437A7769956F32A0 *)L_3, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)); goto IL_0021; } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&IndexOutOfRangeException_tDC9EF7A0346CE39E54DA1083F07BE6DFC3CE2EDD_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_000b; } if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&Exception_t_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_0014; } throw e; } CATCH_000b: { // begin catch(System.IndexOutOfRangeException) Comparison_1_t4F5C215788C9C09FAFB5C10F437A7769956F32A0 * L_4 = ___comparer3; IntrospectiveSortUtilities_ThrowOrIgnoreBadComparer_mE23A8103696FA67F874E7DA86625BB3921DB801F((RuntimeObject *)L_4, /*hidden argument*/NULL); IL2CPP_POP_ACTIVE_EXCEPTION(); goto IL_0021; } // end catch (depth: 1) CATCH_0014: { // begin catch(System.Exception) V_0 = (Exception_t *)((Exception_t *)IL2CPP_GET_ACTIVE_EXCEPTION(Exception_t *)); Exception_t * L_5 = V_0; InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB * L_6 = (InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB *)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB_il2cpp_TypeInfo_var))); InvalidOperationException__ctor_m4A65916B1316FBF45ECDF1FF7FAC9E3CA30C112C(L_6, (String_t*)((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral6EDB6C049ED9617FA335A262A29BF30B15221AEA)), (Exception_t *)L_5, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_6, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArraySortHelper_1_Sort_mC586C6EF7616FD576A351912A07F8755737E0BDD_RuntimeMethod_var))); } // end catch (depth: 1) IL_0021: { return; } } // System.Int32 System.Collections.Generic.ArraySortHelper`1<UnityEngine.InputSystem.InputBinding>::InternalBinarySearch(T[],System.Int32,System.Int32,T,System.Collections.Generic.IComparer`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t ArraySortHelper_1_InternalBinarySearch_mA741437344D5FCE1661DB7D5757D969110460B31_gshared (InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E* ___array0, int32_t ___index1, int32_t ___length2, InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD ___value3, RuntimeObject* ___comparer4, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; int32_t V_2 = 0; int32_t V_3 = 0; { int32_t L_0 = ___index1; V_0 = (int32_t)L_0; int32_t L_1 = ___index1; int32_t L_2 = ___length2; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_1, (int32_t)L_2)), (int32_t)1)); goto IL_0035; } IL_000a: { int32_t L_3 = V_0; int32_t L_4 = V_1; int32_t L_5 = V_0; V_2 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)((int32_t)((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_4, (int32_t)L_5))>>(int32_t)1)))); RuntimeObject* L_6 = ___comparer4; InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E* L_7 = ___array0; int32_t L_8 = V_2; NullCheck(L_7); int32_t L_9 = L_8; InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD L_10 = (L_7)->GetAt(static_cast<il2cpp_array_size_t>(L_9)); InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD L_11 = ___value3; NullCheck((RuntimeObject*)L_6); int32_t L_12; L_12 = InterfaceFuncInvoker2< int32_t, InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD , InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD >::Invoke(0 /* System.Int32 System.Collections.Generic.IComparer`1<UnityEngine.InputSystem.InputBinding>::Compare(T,T) */, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 3), (RuntimeObject*)L_6, (InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD )L_10, (InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD )L_11); V_3 = (int32_t)L_12; int32_t L_13 = V_3; if (L_13) { goto IL_0027; } } { int32_t L_14 = V_2; return (int32_t)L_14; } IL_0027: { int32_t L_15 = V_3; if ((((int32_t)L_15) >= ((int32_t)0))) { goto IL_0031; } } { int32_t L_16 = V_2; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_16, (int32_t)1)); goto IL_0035; } IL_0031: { int32_t L_17 = V_2; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_17, (int32_t)1)); } IL_0035: { int32_t L_18 = V_0; int32_t L_19 = V_1; if ((((int32_t)L_18) <= ((int32_t)L_19))) { goto IL_000a; } } { int32_t L_20 = V_0; return (int32_t)((~L_20)); } } // System.Void System.Collections.Generic.ArraySortHelper`1<UnityEngine.InputSystem.InputBinding>::SwapIfGreater(T[],System.Comparison`1<T>,System.Int32,System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_SwapIfGreater_m553386B5A7A68850249A271BAE4578B655FEBBD0_gshared (InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E* ___keys0, Comparison_1_t4F5C215788C9C09FAFB5C10F437A7769956F32A0 * ___comparer1, int32_t ___a2, int32_t ___b3, const RuntimeMethod* method) { InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD V_0; memset((&V_0), 0, sizeof(V_0)); { int32_t L_0 = ___a2; int32_t L_1 = ___b3; if ((((int32_t)L_0) == ((int32_t)L_1))) { goto IL_0039; } } { Comparison_1_t4F5C215788C9C09FAFB5C10F437A7769956F32A0 * L_2 = ___comparer1; InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E* L_3 = ___keys0; int32_t L_4 = ___a2; NullCheck(L_3); int32_t L_5 = L_4; InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD L_6 = (L_3)->GetAt(static_cast<il2cpp_array_size_t>(L_5)); InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E* L_7 = ___keys0; int32_t L_8 = ___b3; NullCheck(L_7); int32_t L_9 = L_8; InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD L_10 = (L_7)->GetAt(static_cast<il2cpp_array_size_t>(L_9)); NullCheck((Comparison_1_t4F5C215788C9C09FAFB5C10F437A7769956F32A0 *)L_2); int32_t L_11; L_11 = (( int32_t (*) (Comparison_1_t4F5C215788C9C09FAFB5C10F437A7769956F32A0 *, InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD , InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t4F5C215788C9C09FAFB5C10F437A7769956F32A0 *)L_2, (InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD )L_6, (InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD )L_10, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_11) <= ((int32_t)0))) { goto IL_0039; } } { InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E* L_12 = ___keys0; int32_t L_13 = ___a2; NullCheck(L_12); int32_t L_14 = L_13; InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD L_15 = (L_12)->GetAt(static_cast<il2cpp_array_size_t>(L_14)); V_0 = (InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD )L_15; InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E* L_16 = ___keys0; int32_t L_17 = ___a2; InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E* L_18 = ___keys0; int32_t L_19 = ___b3; NullCheck(L_18); int32_t L_20 = L_19; InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD L_21 = (L_18)->GetAt(static_cast<il2cpp_array_size_t>(L_20)); NullCheck(L_16); (L_16)->SetAt(static_cast<il2cpp_array_size_t>(L_17), (InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD )L_21); InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E* L_22 = ___keys0; int32_t L_23 = ___b3; InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD L_24 = V_0; NullCheck(L_22); (L_22)->SetAt(static_cast<il2cpp_array_size_t>(L_23), (InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD )L_24); } IL_0039: { return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<UnityEngine.InputSystem.InputBinding>::Swap(T[],System.Int32,System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Swap_m8F7EC97A66A456C0C9F1F7DC3936E9B45D650F61_gshared (InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E* ___a0, int32_t ___i1, int32_t ___j2, const RuntimeMethod* method) { InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD V_0; memset((&V_0), 0, sizeof(V_0)); { int32_t L_0 = ___i1; int32_t L_1 = ___j2; if ((((int32_t)L_0) == ((int32_t)L_1))) { goto IL_0022; } } { InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E* L_2 = ___a0; int32_t L_3 = ___i1; NullCheck(L_2); int32_t L_4 = L_3; InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD L_5 = (L_2)->GetAt(static_cast<il2cpp_array_size_t>(L_4)); V_0 = (InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD )L_5; InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E* L_6 = ___a0; int32_t L_7 = ___i1; InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E* L_8 = ___a0; int32_t L_9 = ___j2; NullCheck(L_8); int32_t L_10 = L_9; InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD L_11 = (L_8)->GetAt(static_cast<il2cpp_array_size_t>(L_10)); NullCheck(L_6); (L_6)->SetAt(static_cast<il2cpp_array_size_t>(L_7), (InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD )L_11); InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E* L_12 = ___a0; int32_t L_13 = ___j2; InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD L_14 = V_0; NullCheck(L_12); (L_12)->SetAt(static_cast<il2cpp_array_size_t>(L_13), (InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD )L_14); } IL_0022: { return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<UnityEngine.InputSystem.InputBinding>::IntrospectiveSort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_IntrospectiveSort_m8BFCA5DEA6314D1802D1321DD2807AE8ECBFF717_gshared (InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E* ___keys0, int32_t ___left1, int32_t ___length2, Comparison_1_t4F5C215788C9C09FAFB5C10F437A7769956F32A0 * ___comparer3, const RuntimeMethod* method) { { int32_t L_0 = ___length2; if ((((int32_t)L_0) >= ((int32_t)2))) { goto IL_0005; } } { return; } IL_0005: { InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E* L_1 = ___keys0; int32_t L_2 = ___left1; int32_t L_3 = ___length2; int32_t L_4 = ___left1; InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E* L_5 = ___keys0; NullCheck(L_5); int32_t L_6; L_6 = IntrospectiveSortUtilities_FloorLog2_m05ECB6CAC7A23087D9EC2C2A4DDCFE12272C3872((int32_t)((int32_t)((int32_t)(((RuntimeArray*)L_5)->max_length))), /*hidden argument*/NULL); Comparison_1_t4F5C215788C9C09FAFB5C10F437A7769956F32A0 * L_7 = ___comparer3; (( void (*) (InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E*, int32_t, int32_t, int32_t, Comparison_1_t4F5C215788C9C09FAFB5C10F437A7769956F32A0 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)->methodPointer)((InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E*)L_1, (int32_t)L_2, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)L_4)), (int32_t)1)), (int32_t)((int32_t)il2cpp_codegen_multiply((int32_t)2, (int32_t)L_6)), (Comparison_1_t4F5C215788C9C09FAFB5C10F437A7769956F32A0 *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)); return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<UnityEngine.InputSystem.InputBinding>::IntroSort(T[],System.Int32,System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_IntroSort_m1914C808E5B794027C674A236369AAD4C883CA87_gshared (InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E* ___keys0, int32_t ___lo1, int32_t ___hi2, int32_t ___depthLimit3, Comparison_1_t4F5C215788C9C09FAFB5C10F437A7769956F32A0 * ___comparer4, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; { goto IL_0086; } IL_0005: { int32_t L_0 = ___hi2; int32_t L_1 = ___lo1; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_0, (int32_t)L_1)), (int32_t)1)); int32_t L_2 = V_0; if ((((int32_t)L_2) > ((int32_t)((int32_t)16)))) { goto IL_0056; } } { int32_t L_3 = V_0; if ((!(((uint32_t)L_3) == ((uint32_t)1)))) { goto IL_0015; } } { return; } IL_0015: { int32_t L_4 = V_0; if ((!(((uint32_t)L_4) == ((uint32_t)2)))) { goto IL_0024; } } { InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E* L_5 = ___keys0; Comparison_1_t4F5C215788C9C09FAFB5C10F437A7769956F32A0 * L_6 = ___comparer4; int32_t L_7 = ___lo1; int32_t L_8 = ___hi2; (( void (*) (InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E*, Comparison_1_t4F5C215788C9C09FAFB5C10F437A7769956F32A0 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E*)L_5, (Comparison_1_t4F5C215788C9C09FAFB5C10F437A7769956F32A0 *)L_6, (int32_t)L_7, (int32_t)L_8, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); return; } IL_0024: { int32_t L_9 = V_0; if ((!(((uint32_t)L_9) == ((uint32_t)3)))) { goto IL_004b; } } { InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E* L_10 = ___keys0; Comparison_1_t4F5C215788C9C09FAFB5C10F437A7769956F32A0 * L_11 = ___comparer4; int32_t L_12 = ___lo1; int32_t L_13 = ___hi2; (( void (*) (InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E*, Comparison_1_t4F5C215788C9C09FAFB5C10F437A7769956F32A0 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E*)L_10, (Comparison_1_t4F5C215788C9C09FAFB5C10F437A7769956F32A0 *)L_11, (int32_t)L_12, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_13, (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E* L_14 = ___keys0; Comparison_1_t4F5C215788C9C09FAFB5C10F437A7769956F32A0 * L_15 = ___comparer4; int32_t L_16 = ___lo1; int32_t L_17 = ___hi2; (( void (*) (InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E*, Comparison_1_t4F5C215788C9C09FAFB5C10F437A7769956F32A0 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E*)L_14, (Comparison_1_t4F5C215788C9C09FAFB5C10F437A7769956F32A0 *)L_15, (int32_t)L_16, (int32_t)L_17, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E* L_18 = ___keys0; Comparison_1_t4F5C215788C9C09FAFB5C10F437A7769956F32A0 * L_19 = ___comparer4; int32_t L_20 = ___hi2; int32_t L_21 = ___hi2; (( void (*) (InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E*, Comparison_1_t4F5C215788C9C09FAFB5C10F437A7769956F32A0 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E*)L_18, (Comparison_1_t4F5C215788C9C09FAFB5C10F437A7769956F32A0 *)L_19, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_20, (int32_t)1)), (int32_t)L_21, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); return; } IL_004b: { InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E* L_22 = ___keys0; int32_t L_23 = ___lo1; int32_t L_24 = ___hi2; Comparison_1_t4F5C215788C9C09FAFB5C10F437A7769956F32A0 * L_25 = ___comparer4; (( void (*) (InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E*, int32_t, int32_t, Comparison_1_t4F5C215788C9C09FAFB5C10F437A7769956F32A0 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 12)->methodPointer)((InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E*)L_22, (int32_t)L_23, (int32_t)L_24, (Comparison_1_t4F5C215788C9C09FAFB5C10F437A7769956F32A0 *)L_25, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 12)); return; } IL_0056: { int32_t L_26 = ___depthLimit3; if (L_26) { goto IL_0064; } } { InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E* L_27 = ___keys0; int32_t L_28 = ___lo1; int32_t L_29 = ___hi2; Comparison_1_t4F5C215788C9C09FAFB5C10F437A7769956F32A0 * L_30 = ___comparer4; (( void (*) (InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E*, int32_t, int32_t, Comparison_1_t4F5C215788C9C09FAFB5C10F437A7769956F32A0 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 13)->methodPointer)((InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E*)L_27, (int32_t)L_28, (int32_t)L_29, (Comparison_1_t4F5C215788C9C09FAFB5C10F437A7769956F32A0 *)L_30, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 13)); return; } IL_0064: { int32_t L_31 = ___depthLimit3; ___depthLimit3 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_31, (int32_t)1)); InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E* L_32 = ___keys0; int32_t L_33 = ___lo1; int32_t L_34 = ___hi2; Comparison_1_t4F5C215788C9C09FAFB5C10F437A7769956F32A0 * L_35 = ___comparer4; int32_t L_36; L_36 = (( int32_t (*) (InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E*, int32_t, int32_t, Comparison_1_t4F5C215788C9C09FAFB5C10F437A7769956F32A0 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 14)->methodPointer)((InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E*)L_32, (int32_t)L_33, (int32_t)L_34, (Comparison_1_t4F5C215788C9C09FAFB5C10F437A7769956F32A0 *)L_35, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 14)); V_1 = (int32_t)L_36; InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E* L_37 = ___keys0; int32_t L_38 = V_1; int32_t L_39 = ___hi2; int32_t L_40 = ___depthLimit3; Comparison_1_t4F5C215788C9C09FAFB5C10F437A7769956F32A0 * L_41 = ___comparer4; (( void (*) (InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E*, int32_t, int32_t, int32_t, Comparison_1_t4F5C215788C9C09FAFB5C10F437A7769956F32A0 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)->methodPointer)((InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E*)L_37, (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_38, (int32_t)1)), (int32_t)L_39, (int32_t)L_40, (Comparison_1_t4F5C215788C9C09FAFB5C10F437A7769956F32A0 *)L_41, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)); int32_t L_42 = V_1; ___hi2 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_42, (int32_t)1)); } IL_0086: { int32_t L_43 = ___hi2; int32_t L_44 = ___lo1; if ((((int32_t)L_43) > ((int32_t)L_44))) { goto IL_0005; } } { return; } } // System.Int32 System.Collections.Generic.ArraySortHelper`1<UnityEngine.InputSystem.InputBinding>::PickPivotAndPartition(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t ArraySortHelper_1_PickPivotAndPartition_mA7AD957238FD99E1E5D251C0975531A0E8DB6B3A_gshared (InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E* ___keys0, int32_t ___lo1, int32_t ___hi2, Comparison_1_t4F5C215788C9C09FAFB5C10F437A7769956F32A0 * ___comparer3, const RuntimeMethod* method) { int32_t V_0 = 0; InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD V_1; memset((&V_1), 0, sizeof(V_1)); int32_t V_2 = 0; int32_t V_3 = 0; { int32_t L_0 = ___lo1; int32_t L_1 = ___hi2; int32_t L_2 = ___lo1; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_0, (int32_t)((int32_t)((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_1, (int32_t)L_2))/(int32_t)2)))); InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E* L_3 = ___keys0; Comparison_1_t4F5C215788C9C09FAFB5C10F437A7769956F32A0 * L_4 = ___comparer3; int32_t L_5 = ___lo1; int32_t L_6 = V_0; (( void (*) (InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E*, Comparison_1_t4F5C215788C9C09FAFB5C10F437A7769956F32A0 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E*)L_3, (Comparison_1_t4F5C215788C9C09FAFB5C10F437A7769956F32A0 *)L_4, (int32_t)L_5, (int32_t)L_6, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E* L_7 = ___keys0; Comparison_1_t4F5C215788C9C09FAFB5C10F437A7769956F32A0 * L_8 = ___comparer3; int32_t L_9 = ___lo1; int32_t L_10 = ___hi2; (( void (*) (InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E*, Comparison_1_t4F5C215788C9C09FAFB5C10F437A7769956F32A0 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E*)L_7, (Comparison_1_t4F5C215788C9C09FAFB5C10F437A7769956F32A0 *)L_8, (int32_t)L_9, (int32_t)L_10, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E* L_11 = ___keys0; Comparison_1_t4F5C215788C9C09FAFB5C10F437A7769956F32A0 * L_12 = ___comparer3; int32_t L_13 = V_0; int32_t L_14 = ___hi2; (( void (*) (InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E*, Comparison_1_t4F5C215788C9C09FAFB5C10F437A7769956F32A0 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E*)L_11, (Comparison_1_t4F5C215788C9C09FAFB5C10F437A7769956F32A0 *)L_12, (int32_t)L_13, (int32_t)L_14, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E* L_15 = ___keys0; int32_t L_16 = V_0; NullCheck(L_15); int32_t L_17 = L_16; InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD L_18 = (L_15)->GetAt(static_cast<il2cpp_array_size_t>(L_17)); V_1 = (InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD )L_18; InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E* L_19 = ___keys0; int32_t L_20 = V_0; int32_t L_21 = ___hi2; (( void (*) (InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E*)L_19, (int32_t)L_20, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_21, (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); int32_t L_22 = ___lo1; V_2 = (int32_t)L_22; int32_t L_23 = ___hi2; V_3 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_23, (int32_t)1)); goto IL_0073; } IL_003d: { Comparison_1_t4F5C215788C9C09FAFB5C10F437A7769956F32A0 * L_24 = ___comparer3; InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E* L_25 = ___keys0; int32_t L_26 = V_2; int32_t L_27 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_26, (int32_t)1)); V_2 = (int32_t)L_27; NullCheck(L_25); int32_t L_28 = L_27; InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD L_29 = (L_25)->GetAt(static_cast<il2cpp_array_size_t>(L_28)); InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD L_30 = V_1; NullCheck((Comparison_1_t4F5C215788C9C09FAFB5C10F437A7769956F32A0 *)L_24); int32_t L_31; L_31 = (( int32_t (*) (Comparison_1_t4F5C215788C9C09FAFB5C10F437A7769956F32A0 *, InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD , InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t4F5C215788C9C09FAFB5C10F437A7769956F32A0 *)L_24, (InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD )L_29, (InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD )L_30, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_31) < ((int32_t)0))) { goto IL_003d; } } IL_0052: { Comparison_1_t4F5C215788C9C09FAFB5C10F437A7769956F32A0 * L_32 = ___comparer3; InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD L_33 = V_1; InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E* L_34 = ___keys0; int32_t L_35 = V_3; int32_t L_36 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_35, (int32_t)1)); V_3 = (int32_t)L_36; NullCheck(L_34); int32_t L_37 = L_36; InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD L_38 = (L_34)->GetAt(static_cast<il2cpp_array_size_t>(L_37)); NullCheck((Comparison_1_t4F5C215788C9C09FAFB5C10F437A7769956F32A0 *)L_32); int32_t L_39; L_39 = (( int32_t (*) (Comparison_1_t4F5C215788C9C09FAFB5C10F437A7769956F32A0 *, InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD , InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t4F5C215788C9C09FAFB5C10F437A7769956F32A0 *)L_32, (InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD )L_33, (InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD )L_38, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_39) < ((int32_t)0))) { goto IL_0052; } } { int32_t L_40 = V_2; int32_t L_41 = V_3; if ((((int32_t)L_40) >= ((int32_t)L_41))) { goto IL_0077; } } { InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E* L_42 = ___keys0; int32_t L_43 = V_2; int32_t L_44 = V_3; (( void (*) (InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E*)L_42, (int32_t)L_43, (int32_t)L_44, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); } IL_0073: { int32_t L_45 = V_2; int32_t L_46 = V_3; if ((((int32_t)L_45) < ((int32_t)L_46))) { goto IL_003d; } } IL_0077: { InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E* L_47 = ___keys0; int32_t L_48 = V_2; int32_t L_49 = ___hi2; (( void (*) (InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E*)L_47, (int32_t)L_48, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_49, (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); int32_t L_50 = V_2; return (int32_t)L_50; } } // System.Void System.Collections.Generic.ArraySortHelper`1<UnityEngine.InputSystem.InputBinding>::Heapsort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Heapsort_m1C7677CCE1DB071AD30459C004C8CE912774A7C5_gshared (InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E* ___keys0, int32_t ___lo1, int32_t ___hi2, Comparison_1_t4F5C215788C9C09FAFB5C10F437A7769956F32A0 * ___comparer3, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; int32_t V_2 = 0; { int32_t L_0 = ___hi2; int32_t L_1 = ___lo1; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_0, (int32_t)L_1)), (int32_t)1)); int32_t L_2 = V_0; V_1 = (int32_t)((int32_t)((int32_t)L_2/(int32_t)2)); goto IL_001a; } IL_000c: { InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E* L_3 = ___keys0; int32_t L_4 = V_1; int32_t L_5 = V_0; int32_t L_6 = ___lo1; Comparison_1_t4F5C215788C9C09FAFB5C10F437A7769956F32A0 * L_7 = ___comparer3; (( void (*) (InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E*, int32_t, int32_t, int32_t, Comparison_1_t4F5C215788C9C09FAFB5C10F437A7769956F32A0 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)->methodPointer)((InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E*)L_3, (int32_t)L_4, (int32_t)L_5, (int32_t)L_6, (Comparison_1_t4F5C215788C9C09FAFB5C10F437A7769956F32A0 *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)); int32_t L_8 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_8, (int32_t)1)); } IL_001a: { int32_t L_9 = V_1; if ((((int32_t)L_9) >= ((int32_t)1))) { goto IL_000c; } } { int32_t L_10 = V_0; V_2 = (int32_t)L_10; goto IL_003e; } IL_0022: { InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E* L_11 = ___keys0; int32_t L_12 = ___lo1; int32_t L_13 = ___lo1; int32_t L_14 = V_2; (( void (*) (InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E*)L_11, (int32_t)L_12, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_13, (int32_t)L_14)), (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E* L_15 = ___keys0; int32_t L_16 = V_2; int32_t L_17 = ___lo1; Comparison_1_t4F5C215788C9C09FAFB5C10F437A7769956F32A0 * L_18 = ___comparer3; (( void (*) (InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E*, int32_t, int32_t, int32_t, Comparison_1_t4F5C215788C9C09FAFB5C10F437A7769956F32A0 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)->methodPointer)((InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E*)L_15, (int32_t)1, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_16, (int32_t)1)), (int32_t)L_17, (Comparison_1_t4F5C215788C9C09FAFB5C10F437A7769956F32A0 *)L_18, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)); int32_t L_19 = V_2; V_2 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_19, (int32_t)1)); } IL_003e: { int32_t L_20 = V_2; if ((((int32_t)L_20) > ((int32_t)1))) { goto IL_0022; } } { return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<UnityEngine.InputSystem.InputBinding>::DownHeap(T[],System.Int32,System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_DownHeap_m4558FB5576176678E354C3D699818C6AF246DDEC_gshared (InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E* ___keys0, int32_t ___i1, int32_t ___n2, int32_t ___lo3, Comparison_1_t4F5C215788C9C09FAFB5C10F437A7769956F32A0 * ___comparer4, const RuntimeMethod* method) { InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD V_0; memset((&V_0), 0, sizeof(V_0)); int32_t V_1 = 0; { InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E* L_0 = ___keys0; int32_t L_1 = ___lo3; int32_t L_2 = ___i1; NullCheck(L_0); int32_t L_3 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_1, (int32_t)L_2)), (int32_t)1)); InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD L_4 = (L_0)->GetAt(static_cast<il2cpp_array_size_t>(L_3)); V_0 = (InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD )L_4; goto IL_0067; } IL_000e: { int32_t L_5 = ___i1; V_1 = (int32_t)((int32_t)il2cpp_codegen_multiply((int32_t)2, (int32_t)L_5)); int32_t L_6 = V_1; int32_t L_7 = ___n2; if ((((int32_t)L_6) >= ((int32_t)L_7))) { goto IL_0038; } } { Comparison_1_t4F5C215788C9C09FAFB5C10F437A7769956F32A0 * L_8 = ___comparer4; InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E* L_9 = ___keys0; int32_t L_10 = ___lo3; int32_t L_11 = V_1; NullCheck(L_9); int32_t L_12 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_10, (int32_t)L_11)), (int32_t)1)); InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD L_13 = (L_9)->GetAt(static_cast<il2cpp_array_size_t>(L_12)); InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E* L_14 = ___keys0; int32_t L_15 = ___lo3; int32_t L_16 = V_1; NullCheck(L_14); int32_t L_17 = ((int32_t)il2cpp_codegen_add((int32_t)L_15, (int32_t)L_16)); InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD L_18 = (L_14)->GetAt(static_cast<il2cpp_array_size_t>(L_17)); NullCheck((Comparison_1_t4F5C215788C9C09FAFB5C10F437A7769956F32A0 *)L_8); int32_t L_19; L_19 = (( int32_t (*) (Comparison_1_t4F5C215788C9C09FAFB5C10F437A7769956F32A0 *, InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD , InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t4F5C215788C9C09FAFB5C10F437A7769956F32A0 *)L_8, (InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD )L_13, (InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD )L_18, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_19) >= ((int32_t)0))) { goto IL_0038; } } { int32_t L_20 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_20, (int32_t)1)); } IL_0038: { Comparison_1_t4F5C215788C9C09FAFB5C10F437A7769956F32A0 * L_21 = ___comparer4; InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD L_22 = V_0; InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E* L_23 = ___keys0; int32_t L_24 = ___lo3; int32_t L_25 = V_1; NullCheck(L_23); int32_t L_26 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_24, (int32_t)L_25)), (int32_t)1)); InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD L_27 = (L_23)->GetAt(static_cast<il2cpp_array_size_t>(L_26)); NullCheck((Comparison_1_t4F5C215788C9C09FAFB5C10F437A7769956F32A0 *)L_21); int32_t L_28; L_28 = (( int32_t (*) (Comparison_1_t4F5C215788C9C09FAFB5C10F437A7769956F32A0 *, InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD , InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t4F5C215788C9C09FAFB5C10F437A7769956F32A0 *)L_21, (InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD )L_22, (InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD )L_27, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_28) >= ((int32_t)0))) { goto IL_006d; } } { InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E* L_29 = ___keys0; int32_t L_30 = ___lo3; int32_t L_31 = ___i1; InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E* L_32 = ___keys0; int32_t L_33 = ___lo3; int32_t L_34 = V_1; NullCheck(L_32); int32_t L_35 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_33, (int32_t)L_34)), (int32_t)1)); InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD L_36 = (L_32)->GetAt(static_cast<il2cpp_array_size_t>(L_35)); NullCheck(L_29); (L_29)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_30, (int32_t)L_31)), (int32_t)1))), (InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD )L_36); int32_t L_37 = V_1; ___i1 = (int32_t)L_37; } IL_0067: { int32_t L_38 = ___i1; int32_t L_39 = ___n2; if ((((int32_t)L_38) <= ((int32_t)((int32_t)((int32_t)L_39/(int32_t)2))))) { goto IL_000e; } } IL_006d: { InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E* L_40 = ___keys0; int32_t L_41 = ___lo3; int32_t L_42 = ___i1; InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD L_43 = V_0; NullCheck(L_40); (L_40)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_41, (int32_t)L_42)), (int32_t)1))), (InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD )L_43); return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<UnityEngine.InputSystem.InputBinding>::InsertionSort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_InsertionSort_m68A5157C3606B990DD82DDE844F1FF679849B627_gshared (InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E* ___keys0, int32_t ___lo1, int32_t ___hi2, Comparison_1_t4F5C215788C9C09FAFB5C10F437A7769956F32A0 * ___comparer3, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD V_2; memset((&V_2), 0, sizeof(V_2)); { int32_t L_0 = ___lo1; V_0 = (int32_t)L_0; goto IL_0049; } IL_0004: { int32_t L_1 = V_0; V_1 = (int32_t)L_1; InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E* L_2 = ___keys0; int32_t L_3 = V_0; NullCheck(L_2); int32_t L_4 = ((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)1)); InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD L_5 = (L_2)->GetAt(static_cast<il2cpp_array_size_t>(L_4)); V_2 = (InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD )L_5; goto IL_0026; } IL_0012: { InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E* L_6 = ___keys0; int32_t L_7 = V_1; InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E* L_8 = ___keys0; int32_t L_9 = V_1; NullCheck(L_8); int32_t L_10 = L_9; InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD L_11 = (L_8)->GetAt(static_cast<il2cpp_array_size_t>(L_10)); NullCheck(L_6); (L_6)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add((int32_t)L_7, (int32_t)1))), (InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD )L_11); int32_t L_12 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_12, (int32_t)1)); } IL_0026: { int32_t L_13 = V_1; int32_t L_14 = ___lo1; if ((((int32_t)L_13) < ((int32_t)L_14))) { goto IL_003b; } } { Comparison_1_t4F5C215788C9C09FAFB5C10F437A7769956F32A0 * L_15 = ___comparer3; InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD L_16 = V_2; InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E* L_17 = ___keys0; int32_t L_18 = V_1; NullCheck(L_17); int32_t L_19 = L_18; InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD L_20 = (L_17)->GetAt(static_cast<il2cpp_array_size_t>(L_19)); NullCheck((Comparison_1_t4F5C215788C9C09FAFB5C10F437A7769956F32A0 *)L_15); int32_t L_21; L_21 = (( int32_t (*) (Comparison_1_t4F5C215788C9C09FAFB5C10F437A7769956F32A0 *, InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD , InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t4F5C215788C9C09FAFB5C10F437A7769956F32A0 *)L_15, (InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD )L_16, (InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD )L_20, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_21) < ((int32_t)0))) { goto IL_0012; } } IL_003b: { InputBindingU5BU5D_t3CCBD5F5A51F370BFD0A373A770C8720F2A6115E* L_22 = ___keys0; int32_t L_23 = V_1; InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD L_24 = V_2; NullCheck(L_22); (L_22)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add((int32_t)L_23, (int32_t)1))), (InputBinding_t18B68FF9E7C08763BFC653E20E79B63389CF80CD )L_24); int32_t L_25 = V_0; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_25, (int32_t)1)); } IL_0049: { int32_t L_26 = V_0; int32_t L_27 = ___hi2; if ((((int32_t)L_26) < ((int32_t)L_27))) { goto IL_0004; } } { return; } } #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Void System.Collections.Generic.ArraySortHelper`1<UnityEngine.XR.InputDevice>::Sort(T[],System.Int32,System.Int32,System.Collections.Generic.IComparer`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Sort_m057896199A9A64BFB19A9F9DB2A72593A7D73863_gshared (InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE* ___keys0, int32_t ___index1, int32_t ___length2, RuntimeObject* ___comparer3, const RuntimeMethod* method) { Exception_t * V_0 = NULL; il2cpp::utils::ExceptionSupportStack<RuntimeObject*, 1> __active_exceptions; il2cpp::utils::ExceptionSupportStack<int32_t, 2> __leave_targets; IL_0000: try { // begin try (depth: 1) { RuntimeObject* L_0 = ___comparer3; if (L_0) { goto IL_000a; } } IL_0003: { Comparer_1_t439973A713201373270F785C17070796654B147F * L_1; L_1 = (( Comparer_1_t439973A713201373270F785C17070796654B147F * (*) (const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)->methodPointer)(/*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)); ___comparer3 = (RuntimeObject*)L_1; } IL_000a: { InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE* L_2 = ___keys0; int32_t L_3 = ___index1; int32_t L_4 = ___length2; RuntimeObject* L_5 = ___comparer3; RuntimeObject* L_6 = (RuntimeObject*)L_5; Comparison_1_t370A7EC51138A7AEA3BF6A503F35F7D093D6CAF1 * L_7 = (Comparison_1_t370A7EC51138A7AEA3BF6A503F35F7D093D6CAF1 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 4)); (( void (*) (Comparison_1_t370A7EC51138A7AEA3BF6A503F35F7D093D6CAF1 *, RuntimeObject *, intptr_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 5)->methodPointer)(L_7, (RuntimeObject *)L_6, (intptr_t)((intptr_t)GetInterfaceMethodInfo(L_6, 0, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 3))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 5)); (( void (*) (InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE*, int32_t, int32_t, Comparison_1_t370A7EC51138A7AEA3BF6A503F35F7D093D6CAF1 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)->methodPointer)((InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE*)L_2, (int32_t)L_3, (int32_t)L_4, (Comparison_1_t370A7EC51138A7AEA3BF6A503F35F7D093D6CAF1 *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)); goto IL_0037; } } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&IndexOutOfRangeException_tDC9EF7A0346CE39E54DA1083F07BE6DFC3CE2EDD_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_0021; } if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&Exception_t_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_002a; } throw e; } CATCH_0021: { // begin catch(System.IndexOutOfRangeException) RuntimeObject* L_8 = ___comparer3; IntrospectiveSortUtilities_ThrowOrIgnoreBadComparer_mE23A8103696FA67F874E7DA86625BB3921DB801F((RuntimeObject *)L_8, /*hidden argument*/NULL); IL2CPP_POP_ACTIVE_EXCEPTION(); goto IL_0037; } // end catch (depth: 1) CATCH_002a: { // begin catch(System.Exception) V_0 = (Exception_t *)((Exception_t *)IL2CPP_GET_ACTIVE_EXCEPTION(Exception_t *)); Exception_t * L_9 = V_0; InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB * L_10 = (InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB *)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB_il2cpp_TypeInfo_var))); InvalidOperationException__ctor_m4A65916B1316FBF45ECDF1FF7FAC9E3CA30C112C(L_10, (String_t*)((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral6EDB6C049ED9617FA335A262A29BF30B15221AEA)), (Exception_t *)L_9, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_10, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArraySortHelper_1_Sort_m057896199A9A64BFB19A9F9DB2A72593A7D73863_RuntimeMethod_var))); } // end catch (depth: 1) IL_0037: { return; } } // System.Int32 System.Collections.Generic.ArraySortHelper`1<UnityEngine.XR.InputDevice>::BinarySearch(T[],System.Int32,System.Int32,T,System.Collections.Generic.IComparer`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t ArraySortHelper_1_BinarySearch_mAC181B11BE7A303734AFCB62537A7D6C7AD88AE7_gshared (InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE* ___array0, int32_t ___index1, int32_t ___length2, InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E ___value3, RuntimeObject* ___comparer4, const RuntimeMethod* method) { int32_t V_0 = 0; Exception_t * V_1 = NULL; il2cpp::utils::ExceptionSupportStack<RuntimeObject*, 1> __active_exceptions; il2cpp::utils::ExceptionSupportStack<int32_t, 1> __leave_targets; IL_0000: try { // begin try (depth: 1) { RuntimeObject* L_0 = ___comparer4; if (L_0) { goto IL_000b; } } IL_0004: { Comparer_1_t439973A713201373270F785C17070796654B147F * L_1; L_1 = (( Comparer_1_t439973A713201373270F785C17070796654B147F * (*) (const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)->methodPointer)(/*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)); ___comparer4 = (RuntimeObject*)L_1; } IL_000b: { InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE* L_2 = ___array0; int32_t L_3 = ___index1; int32_t L_4 = ___length2; InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E L_5 = ___value3; RuntimeObject* L_6 = ___comparer4; int32_t L_7; L_7 = (( int32_t (*) (InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE*, int32_t, int32_t, InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E , RuntimeObject*, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 8)->methodPointer)((InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE*)L_2, (int32_t)L_3, (int32_t)L_4, (InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E )L_5, (RuntimeObject*)L_6, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 8)); V_0 = (int32_t)L_7; goto IL_0026; } } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&Exception_t_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_0019; } throw e; } CATCH_0019: { // begin catch(System.Exception) V_1 = (Exception_t *)((Exception_t *)IL2CPP_GET_ACTIVE_EXCEPTION(Exception_t *)); Exception_t * L_8 = V_1; InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB * L_9 = (InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB *)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB_il2cpp_TypeInfo_var))); InvalidOperationException__ctor_m4A65916B1316FBF45ECDF1FF7FAC9E3CA30C112C(L_9, (String_t*)((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral6EDB6C049ED9617FA335A262A29BF30B15221AEA)), (Exception_t *)L_8, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_9, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArraySortHelper_1_BinarySearch_mAC181B11BE7A303734AFCB62537A7D6C7AD88AE7_RuntimeMethod_var))); } // end catch (depth: 1) IL_0026: { int32_t L_10 = V_0; return (int32_t)L_10; } } // System.Void System.Collections.Generic.ArraySortHelper`1<UnityEngine.XR.InputDevice>::Sort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Sort_m8F2BCC34802F8D6610A7B8F4F1FFF966B4EAD741_gshared (InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE* ___keys0, int32_t ___index1, int32_t ___length2, Comparison_1_t370A7EC51138A7AEA3BF6A503F35F7D093D6CAF1 * ___comparer3, const RuntimeMethod* method) { Exception_t * V_0 = NULL; il2cpp::utils::ExceptionSupportStack<RuntimeObject*, 1> __active_exceptions; il2cpp::utils::ExceptionSupportStack<int32_t, 2> __leave_targets; IL_0000: try { // begin try (depth: 1) InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE* L_0 = ___keys0; int32_t L_1 = ___index1; int32_t L_2 = ___length2; Comparison_1_t370A7EC51138A7AEA3BF6A503F35F7D093D6CAF1 * L_3 = ___comparer3; (( void (*) (InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE*, int32_t, int32_t, Comparison_1_t370A7EC51138A7AEA3BF6A503F35F7D093D6CAF1 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)->methodPointer)((InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE*)L_0, (int32_t)L_1, (int32_t)L_2, (Comparison_1_t370A7EC51138A7AEA3BF6A503F35F7D093D6CAF1 *)L_3, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)); goto IL_0021; } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&IndexOutOfRangeException_tDC9EF7A0346CE39E54DA1083F07BE6DFC3CE2EDD_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_000b; } if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&Exception_t_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_0014; } throw e; } CATCH_000b: { // begin catch(System.IndexOutOfRangeException) Comparison_1_t370A7EC51138A7AEA3BF6A503F35F7D093D6CAF1 * L_4 = ___comparer3; IntrospectiveSortUtilities_ThrowOrIgnoreBadComparer_mE23A8103696FA67F874E7DA86625BB3921DB801F((RuntimeObject *)L_4, /*hidden argument*/NULL); IL2CPP_POP_ACTIVE_EXCEPTION(); goto IL_0021; } // end catch (depth: 1) CATCH_0014: { // begin catch(System.Exception) V_0 = (Exception_t *)((Exception_t *)IL2CPP_GET_ACTIVE_EXCEPTION(Exception_t *)); Exception_t * L_5 = V_0; InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB * L_6 = (InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB *)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB_il2cpp_TypeInfo_var))); InvalidOperationException__ctor_m4A65916B1316FBF45ECDF1FF7FAC9E3CA30C112C(L_6, (String_t*)((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral6EDB6C049ED9617FA335A262A29BF30B15221AEA)), (Exception_t *)L_5, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_6, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArraySortHelper_1_Sort_m8F2BCC34802F8D6610A7B8F4F1FFF966B4EAD741_RuntimeMethod_var))); } // end catch (depth: 1) IL_0021: { return; } } // System.Int32 System.Collections.Generic.ArraySortHelper`1<UnityEngine.XR.InputDevice>::InternalBinarySearch(T[],System.Int32,System.Int32,T,System.Collections.Generic.IComparer`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t ArraySortHelper_1_InternalBinarySearch_m150EB09445F9D009CD203F2D85002868B3D42F6E_gshared (InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE* ___array0, int32_t ___index1, int32_t ___length2, InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E ___value3, RuntimeObject* ___comparer4, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; int32_t V_2 = 0; int32_t V_3 = 0; { int32_t L_0 = ___index1; V_0 = (int32_t)L_0; int32_t L_1 = ___index1; int32_t L_2 = ___length2; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_1, (int32_t)L_2)), (int32_t)1)); goto IL_0035; } IL_000a: { int32_t L_3 = V_0; int32_t L_4 = V_1; int32_t L_5 = V_0; V_2 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)((int32_t)((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_4, (int32_t)L_5))>>(int32_t)1)))); RuntimeObject* L_6 = ___comparer4; InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE* L_7 = ___array0; int32_t L_8 = V_2; NullCheck(L_7); int32_t L_9 = L_8; InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E L_10 = (L_7)->GetAt(static_cast<il2cpp_array_size_t>(L_9)); InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E L_11 = ___value3; NullCheck((RuntimeObject*)L_6); int32_t L_12; L_12 = InterfaceFuncInvoker2< int32_t, InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E , InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E >::Invoke(0 /* System.Int32 System.Collections.Generic.IComparer`1<UnityEngine.XR.InputDevice>::Compare(T,T) */, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 3), (RuntimeObject*)L_6, (InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E )L_10, (InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E )L_11); V_3 = (int32_t)L_12; int32_t L_13 = V_3; if (L_13) { goto IL_0027; } } { int32_t L_14 = V_2; return (int32_t)L_14; } IL_0027: { int32_t L_15 = V_3; if ((((int32_t)L_15) >= ((int32_t)0))) { goto IL_0031; } } { int32_t L_16 = V_2; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_16, (int32_t)1)); goto IL_0035; } IL_0031: { int32_t L_17 = V_2; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_17, (int32_t)1)); } IL_0035: { int32_t L_18 = V_0; int32_t L_19 = V_1; if ((((int32_t)L_18) <= ((int32_t)L_19))) { goto IL_000a; } } { int32_t L_20 = V_0; return (int32_t)((~L_20)); } } // System.Void System.Collections.Generic.ArraySortHelper`1<UnityEngine.XR.InputDevice>::SwapIfGreater(T[],System.Comparison`1<T>,System.Int32,System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_SwapIfGreater_m81BDF13A07161D6CF60E81E95934FF6F36EE1E2C_gshared (InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE* ___keys0, Comparison_1_t370A7EC51138A7AEA3BF6A503F35F7D093D6CAF1 * ___comparer1, int32_t ___a2, int32_t ___b3, const RuntimeMethod* method) { InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E V_0; memset((&V_0), 0, sizeof(V_0)); { int32_t L_0 = ___a2; int32_t L_1 = ___b3; if ((((int32_t)L_0) == ((int32_t)L_1))) { goto IL_0039; } } { Comparison_1_t370A7EC51138A7AEA3BF6A503F35F7D093D6CAF1 * L_2 = ___comparer1; InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE* L_3 = ___keys0; int32_t L_4 = ___a2; NullCheck(L_3); int32_t L_5 = L_4; InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E L_6 = (L_3)->GetAt(static_cast<il2cpp_array_size_t>(L_5)); InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE* L_7 = ___keys0; int32_t L_8 = ___b3; NullCheck(L_7); int32_t L_9 = L_8; InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E L_10 = (L_7)->GetAt(static_cast<il2cpp_array_size_t>(L_9)); NullCheck((Comparison_1_t370A7EC51138A7AEA3BF6A503F35F7D093D6CAF1 *)L_2); int32_t L_11; L_11 = (( int32_t (*) (Comparison_1_t370A7EC51138A7AEA3BF6A503F35F7D093D6CAF1 *, InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E , InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t370A7EC51138A7AEA3BF6A503F35F7D093D6CAF1 *)L_2, (InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E )L_6, (InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E )L_10, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_11) <= ((int32_t)0))) { goto IL_0039; } } { InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE* L_12 = ___keys0; int32_t L_13 = ___a2; NullCheck(L_12); int32_t L_14 = L_13; InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E L_15 = (L_12)->GetAt(static_cast<il2cpp_array_size_t>(L_14)); V_0 = (InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E )L_15; InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE* L_16 = ___keys0; int32_t L_17 = ___a2; InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE* L_18 = ___keys0; int32_t L_19 = ___b3; NullCheck(L_18); int32_t L_20 = L_19; InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E L_21 = (L_18)->GetAt(static_cast<il2cpp_array_size_t>(L_20)); NullCheck(L_16); (L_16)->SetAt(static_cast<il2cpp_array_size_t>(L_17), (InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E )L_21); InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE* L_22 = ___keys0; int32_t L_23 = ___b3; InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E L_24 = V_0; NullCheck(L_22); (L_22)->SetAt(static_cast<il2cpp_array_size_t>(L_23), (InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E )L_24); } IL_0039: { return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<UnityEngine.XR.InputDevice>::Swap(T[],System.Int32,System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Swap_mB5B4746ED91338FF94C5A93E3E7881EBAF7563F5_gshared (InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE* ___a0, int32_t ___i1, int32_t ___j2, const RuntimeMethod* method) { InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E V_0; memset((&V_0), 0, sizeof(V_0)); { int32_t L_0 = ___i1; int32_t L_1 = ___j2; if ((((int32_t)L_0) == ((int32_t)L_1))) { goto IL_0022; } } { InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE* L_2 = ___a0; int32_t L_3 = ___i1; NullCheck(L_2); int32_t L_4 = L_3; InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E L_5 = (L_2)->GetAt(static_cast<il2cpp_array_size_t>(L_4)); V_0 = (InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E )L_5; InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE* L_6 = ___a0; int32_t L_7 = ___i1; InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE* L_8 = ___a0; int32_t L_9 = ___j2; NullCheck(L_8); int32_t L_10 = L_9; InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E L_11 = (L_8)->GetAt(static_cast<il2cpp_array_size_t>(L_10)); NullCheck(L_6); (L_6)->SetAt(static_cast<il2cpp_array_size_t>(L_7), (InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E )L_11); InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE* L_12 = ___a0; int32_t L_13 = ___j2; InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E L_14 = V_0; NullCheck(L_12); (L_12)->SetAt(static_cast<il2cpp_array_size_t>(L_13), (InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E )L_14); } IL_0022: { return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<UnityEngine.XR.InputDevice>::IntrospectiveSort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_IntrospectiveSort_m27F524F5099ADB88E07E6D8D59A0C5D887C5C7E0_gshared (InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE* ___keys0, int32_t ___left1, int32_t ___length2, Comparison_1_t370A7EC51138A7AEA3BF6A503F35F7D093D6CAF1 * ___comparer3, const RuntimeMethod* method) { { int32_t L_0 = ___length2; if ((((int32_t)L_0) >= ((int32_t)2))) { goto IL_0005; } } { return; } IL_0005: { InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE* L_1 = ___keys0; int32_t L_2 = ___left1; int32_t L_3 = ___length2; int32_t L_4 = ___left1; InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE* L_5 = ___keys0; NullCheck(L_5); int32_t L_6; L_6 = IntrospectiveSortUtilities_FloorLog2_m05ECB6CAC7A23087D9EC2C2A4DDCFE12272C3872((int32_t)((int32_t)((int32_t)(((RuntimeArray*)L_5)->max_length))), /*hidden argument*/NULL); Comparison_1_t370A7EC51138A7AEA3BF6A503F35F7D093D6CAF1 * L_7 = ___comparer3; (( void (*) (InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE*, int32_t, int32_t, int32_t, Comparison_1_t370A7EC51138A7AEA3BF6A503F35F7D093D6CAF1 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)->methodPointer)((InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE*)L_1, (int32_t)L_2, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)L_4)), (int32_t)1)), (int32_t)((int32_t)il2cpp_codegen_multiply((int32_t)2, (int32_t)L_6)), (Comparison_1_t370A7EC51138A7AEA3BF6A503F35F7D093D6CAF1 *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)); return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<UnityEngine.XR.InputDevice>::IntroSort(T[],System.Int32,System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_IntroSort_m6305DC8F21AA2592540CC9FE88BDC5828E2ABF1C_gshared (InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE* ___keys0, int32_t ___lo1, int32_t ___hi2, int32_t ___depthLimit3, Comparison_1_t370A7EC51138A7AEA3BF6A503F35F7D093D6CAF1 * ___comparer4, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; { goto IL_0086; } IL_0005: { int32_t L_0 = ___hi2; int32_t L_1 = ___lo1; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_0, (int32_t)L_1)), (int32_t)1)); int32_t L_2 = V_0; if ((((int32_t)L_2) > ((int32_t)((int32_t)16)))) { goto IL_0056; } } { int32_t L_3 = V_0; if ((!(((uint32_t)L_3) == ((uint32_t)1)))) { goto IL_0015; } } { return; } IL_0015: { int32_t L_4 = V_0; if ((!(((uint32_t)L_4) == ((uint32_t)2)))) { goto IL_0024; } } { InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE* L_5 = ___keys0; Comparison_1_t370A7EC51138A7AEA3BF6A503F35F7D093D6CAF1 * L_6 = ___comparer4; int32_t L_7 = ___lo1; int32_t L_8 = ___hi2; (( void (*) (InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE*, Comparison_1_t370A7EC51138A7AEA3BF6A503F35F7D093D6CAF1 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE*)L_5, (Comparison_1_t370A7EC51138A7AEA3BF6A503F35F7D093D6CAF1 *)L_6, (int32_t)L_7, (int32_t)L_8, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); return; } IL_0024: { int32_t L_9 = V_0; if ((!(((uint32_t)L_9) == ((uint32_t)3)))) { goto IL_004b; } } { InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE* L_10 = ___keys0; Comparison_1_t370A7EC51138A7AEA3BF6A503F35F7D093D6CAF1 * L_11 = ___comparer4; int32_t L_12 = ___lo1; int32_t L_13 = ___hi2; (( void (*) (InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE*, Comparison_1_t370A7EC51138A7AEA3BF6A503F35F7D093D6CAF1 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE*)L_10, (Comparison_1_t370A7EC51138A7AEA3BF6A503F35F7D093D6CAF1 *)L_11, (int32_t)L_12, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_13, (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE* L_14 = ___keys0; Comparison_1_t370A7EC51138A7AEA3BF6A503F35F7D093D6CAF1 * L_15 = ___comparer4; int32_t L_16 = ___lo1; int32_t L_17 = ___hi2; (( void (*) (InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE*, Comparison_1_t370A7EC51138A7AEA3BF6A503F35F7D093D6CAF1 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE*)L_14, (Comparison_1_t370A7EC51138A7AEA3BF6A503F35F7D093D6CAF1 *)L_15, (int32_t)L_16, (int32_t)L_17, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE* L_18 = ___keys0; Comparison_1_t370A7EC51138A7AEA3BF6A503F35F7D093D6CAF1 * L_19 = ___comparer4; int32_t L_20 = ___hi2; int32_t L_21 = ___hi2; (( void (*) (InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE*, Comparison_1_t370A7EC51138A7AEA3BF6A503F35F7D093D6CAF1 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE*)L_18, (Comparison_1_t370A7EC51138A7AEA3BF6A503F35F7D093D6CAF1 *)L_19, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_20, (int32_t)1)), (int32_t)L_21, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); return; } IL_004b: { InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE* L_22 = ___keys0; int32_t L_23 = ___lo1; int32_t L_24 = ___hi2; Comparison_1_t370A7EC51138A7AEA3BF6A503F35F7D093D6CAF1 * L_25 = ___comparer4; (( void (*) (InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE*, int32_t, int32_t, Comparison_1_t370A7EC51138A7AEA3BF6A503F35F7D093D6CAF1 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 12)->methodPointer)((InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE*)L_22, (int32_t)L_23, (int32_t)L_24, (Comparison_1_t370A7EC51138A7AEA3BF6A503F35F7D093D6CAF1 *)L_25, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 12)); return; } IL_0056: { int32_t L_26 = ___depthLimit3; if (L_26) { goto IL_0064; } } { InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE* L_27 = ___keys0; int32_t L_28 = ___lo1; int32_t L_29 = ___hi2; Comparison_1_t370A7EC51138A7AEA3BF6A503F35F7D093D6CAF1 * L_30 = ___comparer4; (( void (*) (InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE*, int32_t, int32_t, Comparison_1_t370A7EC51138A7AEA3BF6A503F35F7D093D6CAF1 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 13)->methodPointer)((InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE*)L_27, (int32_t)L_28, (int32_t)L_29, (Comparison_1_t370A7EC51138A7AEA3BF6A503F35F7D093D6CAF1 *)L_30, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 13)); return; } IL_0064: { int32_t L_31 = ___depthLimit3; ___depthLimit3 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_31, (int32_t)1)); InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE* L_32 = ___keys0; int32_t L_33 = ___lo1; int32_t L_34 = ___hi2; Comparison_1_t370A7EC51138A7AEA3BF6A503F35F7D093D6CAF1 * L_35 = ___comparer4; int32_t L_36; L_36 = (( int32_t (*) (InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE*, int32_t, int32_t, Comparison_1_t370A7EC51138A7AEA3BF6A503F35F7D093D6CAF1 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 14)->methodPointer)((InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE*)L_32, (int32_t)L_33, (int32_t)L_34, (Comparison_1_t370A7EC51138A7AEA3BF6A503F35F7D093D6CAF1 *)L_35, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 14)); V_1 = (int32_t)L_36; InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE* L_37 = ___keys0; int32_t L_38 = V_1; int32_t L_39 = ___hi2; int32_t L_40 = ___depthLimit3; Comparison_1_t370A7EC51138A7AEA3BF6A503F35F7D093D6CAF1 * L_41 = ___comparer4; (( void (*) (InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE*, int32_t, int32_t, int32_t, Comparison_1_t370A7EC51138A7AEA3BF6A503F35F7D093D6CAF1 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)->methodPointer)((InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE*)L_37, (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_38, (int32_t)1)), (int32_t)L_39, (int32_t)L_40, (Comparison_1_t370A7EC51138A7AEA3BF6A503F35F7D093D6CAF1 *)L_41, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)); int32_t L_42 = V_1; ___hi2 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_42, (int32_t)1)); } IL_0086: { int32_t L_43 = ___hi2; int32_t L_44 = ___lo1; if ((((int32_t)L_43) > ((int32_t)L_44))) { goto IL_0005; } } { return; } } // System.Int32 System.Collections.Generic.ArraySortHelper`1<UnityEngine.XR.InputDevice>::PickPivotAndPartition(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t ArraySortHelper_1_PickPivotAndPartition_m78992857AC080605D9F27D29824953BB80655BAC_gshared (InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE* ___keys0, int32_t ___lo1, int32_t ___hi2, Comparison_1_t370A7EC51138A7AEA3BF6A503F35F7D093D6CAF1 * ___comparer3, const RuntimeMethod* method) { int32_t V_0 = 0; InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E V_1; memset((&V_1), 0, sizeof(V_1)); int32_t V_2 = 0; int32_t V_3 = 0; { int32_t L_0 = ___lo1; int32_t L_1 = ___hi2; int32_t L_2 = ___lo1; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_0, (int32_t)((int32_t)((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_1, (int32_t)L_2))/(int32_t)2)))); InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE* L_3 = ___keys0; Comparison_1_t370A7EC51138A7AEA3BF6A503F35F7D093D6CAF1 * L_4 = ___comparer3; int32_t L_5 = ___lo1; int32_t L_6 = V_0; (( void (*) (InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE*, Comparison_1_t370A7EC51138A7AEA3BF6A503F35F7D093D6CAF1 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE*)L_3, (Comparison_1_t370A7EC51138A7AEA3BF6A503F35F7D093D6CAF1 *)L_4, (int32_t)L_5, (int32_t)L_6, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE* L_7 = ___keys0; Comparison_1_t370A7EC51138A7AEA3BF6A503F35F7D093D6CAF1 * L_8 = ___comparer3; int32_t L_9 = ___lo1; int32_t L_10 = ___hi2; (( void (*) (InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE*, Comparison_1_t370A7EC51138A7AEA3BF6A503F35F7D093D6CAF1 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE*)L_7, (Comparison_1_t370A7EC51138A7AEA3BF6A503F35F7D093D6CAF1 *)L_8, (int32_t)L_9, (int32_t)L_10, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE* L_11 = ___keys0; Comparison_1_t370A7EC51138A7AEA3BF6A503F35F7D093D6CAF1 * L_12 = ___comparer3; int32_t L_13 = V_0; int32_t L_14 = ___hi2; (( void (*) (InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE*, Comparison_1_t370A7EC51138A7AEA3BF6A503F35F7D093D6CAF1 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE*)L_11, (Comparison_1_t370A7EC51138A7AEA3BF6A503F35F7D093D6CAF1 *)L_12, (int32_t)L_13, (int32_t)L_14, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE* L_15 = ___keys0; int32_t L_16 = V_0; NullCheck(L_15); int32_t L_17 = L_16; InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E L_18 = (L_15)->GetAt(static_cast<il2cpp_array_size_t>(L_17)); V_1 = (InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E )L_18; InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE* L_19 = ___keys0; int32_t L_20 = V_0; int32_t L_21 = ___hi2; (( void (*) (InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE*)L_19, (int32_t)L_20, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_21, (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); int32_t L_22 = ___lo1; V_2 = (int32_t)L_22; int32_t L_23 = ___hi2; V_3 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_23, (int32_t)1)); goto IL_0073; } IL_003d: { Comparison_1_t370A7EC51138A7AEA3BF6A503F35F7D093D6CAF1 * L_24 = ___comparer3; InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE* L_25 = ___keys0; int32_t L_26 = V_2; int32_t L_27 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_26, (int32_t)1)); V_2 = (int32_t)L_27; NullCheck(L_25); int32_t L_28 = L_27; InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E L_29 = (L_25)->GetAt(static_cast<il2cpp_array_size_t>(L_28)); InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E L_30 = V_1; NullCheck((Comparison_1_t370A7EC51138A7AEA3BF6A503F35F7D093D6CAF1 *)L_24); int32_t L_31; L_31 = (( int32_t (*) (Comparison_1_t370A7EC51138A7AEA3BF6A503F35F7D093D6CAF1 *, InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E , InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t370A7EC51138A7AEA3BF6A503F35F7D093D6CAF1 *)L_24, (InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E )L_29, (InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E )L_30, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_31) < ((int32_t)0))) { goto IL_003d; } } IL_0052: { Comparison_1_t370A7EC51138A7AEA3BF6A503F35F7D093D6CAF1 * L_32 = ___comparer3; InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E L_33 = V_1; InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE* L_34 = ___keys0; int32_t L_35 = V_3; int32_t L_36 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_35, (int32_t)1)); V_3 = (int32_t)L_36; NullCheck(L_34); int32_t L_37 = L_36; InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E L_38 = (L_34)->GetAt(static_cast<il2cpp_array_size_t>(L_37)); NullCheck((Comparison_1_t370A7EC51138A7AEA3BF6A503F35F7D093D6CAF1 *)L_32); int32_t L_39; L_39 = (( int32_t (*) (Comparison_1_t370A7EC51138A7AEA3BF6A503F35F7D093D6CAF1 *, InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E , InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t370A7EC51138A7AEA3BF6A503F35F7D093D6CAF1 *)L_32, (InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E )L_33, (InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E )L_38, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_39) < ((int32_t)0))) { goto IL_0052; } } { int32_t L_40 = V_2; int32_t L_41 = V_3; if ((((int32_t)L_40) >= ((int32_t)L_41))) { goto IL_0077; } } { InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE* L_42 = ___keys0; int32_t L_43 = V_2; int32_t L_44 = V_3; (( void (*) (InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE*)L_42, (int32_t)L_43, (int32_t)L_44, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); } IL_0073: { int32_t L_45 = V_2; int32_t L_46 = V_3; if ((((int32_t)L_45) < ((int32_t)L_46))) { goto IL_003d; } } IL_0077: { InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE* L_47 = ___keys0; int32_t L_48 = V_2; int32_t L_49 = ___hi2; (( void (*) (InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE*)L_47, (int32_t)L_48, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_49, (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); int32_t L_50 = V_2; return (int32_t)L_50; } } // System.Void System.Collections.Generic.ArraySortHelper`1<UnityEngine.XR.InputDevice>::Heapsort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Heapsort_m9EA7CD30FDF4258E012AF4D4C7A8A2057ED3EE15_gshared (InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE* ___keys0, int32_t ___lo1, int32_t ___hi2, Comparison_1_t370A7EC51138A7AEA3BF6A503F35F7D093D6CAF1 * ___comparer3, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; int32_t V_2 = 0; { int32_t L_0 = ___hi2; int32_t L_1 = ___lo1; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_0, (int32_t)L_1)), (int32_t)1)); int32_t L_2 = V_0; V_1 = (int32_t)((int32_t)((int32_t)L_2/(int32_t)2)); goto IL_001a; } IL_000c: { InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE* L_3 = ___keys0; int32_t L_4 = V_1; int32_t L_5 = V_0; int32_t L_6 = ___lo1; Comparison_1_t370A7EC51138A7AEA3BF6A503F35F7D093D6CAF1 * L_7 = ___comparer3; (( void (*) (InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE*, int32_t, int32_t, int32_t, Comparison_1_t370A7EC51138A7AEA3BF6A503F35F7D093D6CAF1 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)->methodPointer)((InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE*)L_3, (int32_t)L_4, (int32_t)L_5, (int32_t)L_6, (Comparison_1_t370A7EC51138A7AEA3BF6A503F35F7D093D6CAF1 *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)); int32_t L_8 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_8, (int32_t)1)); } IL_001a: { int32_t L_9 = V_1; if ((((int32_t)L_9) >= ((int32_t)1))) { goto IL_000c; } } { int32_t L_10 = V_0; V_2 = (int32_t)L_10; goto IL_003e; } IL_0022: { InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE* L_11 = ___keys0; int32_t L_12 = ___lo1; int32_t L_13 = ___lo1; int32_t L_14 = V_2; (( void (*) (InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE*)L_11, (int32_t)L_12, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_13, (int32_t)L_14)), (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE* L_15 = ___keys0; int32_t L_16 = V_2; int32_t L_17 = ___lo1; Comparison_1_t370A7EC51138A7AEA3BF6A503F35F7D093D6CAF1 * L_18 = ___comparer3; (( void (*) (InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE*, int32_t, int32_t, int32_t, Comparison_1_t370A7EC51138A7AEA3BF6A503F35F7D093D6CAF1 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)->methodPointer)((InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE*)L_15, (int32_t)1, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_16, (int32_t)1)), (int32_t)L_17, (Comparison_1_t370A7EC51138A7AEA3BF6A503F35F7D093D6CAF1 *)L_18, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)); int32_t L_19 = V_2; V_2 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_19, (int32_t)1)); } IL_003e: { int32_t L_20 = V_2; if ((((int32_t)L_20) > ((int32_t)1))) { goto IL_0022; } } { return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<UnityEngine.XR.InputDevice>::DownHeap(T[],System.Int32,System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_DownHeap_m0E26649F79CCEF7360D9BD6DC54EB669454CB185_gshared (InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE* ___keys0, int32_t ___i1, int32_t ___n2, int32_t ___lo3, Comparison_1_t370A7EC51138A7AEA3BF6A503F35F7D093D6CAF1 * ___comparer4, const RuntimeMethod* method) { InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E V_0; memset((&V_0), 0, sizeof(V_0)); int32_t V_1 = 0; { InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE* L_0 = ___keys0; int32_t L_1 = ___lo3; int32_t L_2 = ___i1; NullCheck(L_0); int32_t L_3 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_1, (int32_t)L_2)), (int32_t)1)); InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E L_4 = (L_0)->GetAt(static_cast<il2cpp_array_size_t>(L_3)); V_0 = (InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E )L_4; goto IL_0067; } IL_000e: { int32_t L_5 = ___i1; V_1 = (int32_t)((int32_t)il2cpp_codegen_multiply((int32_t)2, (int32_t)L_5)); int32_t L_6 = V_1; int32_t L_7 = ___n2; if ((((int32_t)L_6) >= ((int32_t)L_7))) { goto IL_0038; } } { Comparison_1_t370A7EC51138A7AEA3BF6A503F35F7D093D6CAF1 * L_8 = ___comparer4; InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE* L_9 = ___keys0; int32_t L_10 = ___lo3; int32_t L_11 = V_1; NullCheck(L_9); int32_t L_12 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_10, (int32_t)L_11)), (int32_t)1)); InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E L_13 = (L_9)->GetAt(static_cast<il2cpp_array_size_t>(L_12)); InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE* L_14 = ___keys0; int32_t L_15 = ___lo3; int32_t L_16 = V_1; NullCheck(L_14); int32_t L_17 = ((int32_t)il2cpp_codegen_add((int32_t)L_15, (int32_t)L_16)); InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E L_18 = (L_14)->GetAt(static_cast<il2cpp_array_size_t>(L_17)); NullCheck((Comparison_1_t370A7EC51138A7AEA3BF6A503F35F7D093D6CAF1 *)L_8); int32_t L_19; L_19 = (( int32_t (*) (Comparison_1_t370A7EC51138A7AEA3BF6A503F35F7D093D6CAF1 *, InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E , InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t370A7EC51138A7AEA3BF6A503F35F7D093D6CAF1 *)L_8, (InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E )L_13, (InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E )L_18, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_19) >= ((int32_t)0))) { goto IL_0038; } } { int32_t L_20 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_20, (int32_t)1)); } IL_0038: { Comparison_1_t370A7EC51138A7AEA3BF6A503F35F7D093D6CAF1 * L_21 = ___comparer4; InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E L_22 = V_0; InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE* L_23 = ___keys0; int32_t L_24 = ___lo3; int32_t L_25 = V_1; NullCheck(L_23); int32_t L_26 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_24, (int32_t)L_25)), (int32_t)1)); InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E L_27 = (L_23)->GetAt(static_cast<il2cpp_array_size_t>(L_26)); NullCheck((Comparison_1_t370A7EC51138A7AEA3BF6A503F35F7D093D6CAF1 *)L_21); int32_t L_28; L_28 = (( int32_t (*) (Comparison_1_t370A7EC51138A7AEA3BF6A503F35F7D093D6CAF1 *, InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E , InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t370A7EC51138A7AEA3BF6A503F35F7D093D6CAF1 *)L_21, (InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E )L_22, (InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E )L_27, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_28) >= ((int32_t)0))) { goto IL_006d; } } { InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE* L_29 = ___keys0; int32_t L_30 = ___lo3; int32_t L_31 = ___i1; InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE* L_32 = ___keys0; int32_t L_33 = ___lo3; int32_t L_34 = V_1; NullCheck(L_32); int32_t L_35 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_33, (int32_t)L_34)), (int32_t)1)); InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E L_36 = (L_32)->GetAt(static_cast<il2cpp_array_size_t>(L_35)); NullCheck(L_29); (L_29)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_30, (int32_t)L_31)), (int32_t)1))), (InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E )L_36); int32_t L_37 = V_1; ___i1 = (int32_t)L_37; } IL_0067: { int32_t L_38 = ___i1; int32_t L_39 = ___n2; if ((((int32_t)L_38) <= ((int32_t)((int32_t)((int32_t)L_39/(int32_t)2))))) { goto IL_000e; } } IL_006d: { InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE* L_40 = ___keys0; int32_t L_41 = ___lo3; int32_t L_42 = ___i1; InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E L_43 = V_0; NullCheck(L_40); (L_40)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_41, (int32_t)L_42)), (int32_t)1))), (InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E )L_43); return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<UnityEngine.XR.InputDevice>::InsertionSort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_InsertionSort_mBBA2E3C8E17C9BBDB59C47D16D437DAF88BC3F1A_gshared (InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE* ___keys0, int32_t ___lo1, int32_t ___hi2, Comparison_1_t370A7EC51138A7AEA3BF6A503F35F7D093D6CAF1 * ___comparer3, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E V_2; memset((&V_2), 0, sizeof(V_2)); { int32_t L_0 = ___lo1; V_0 = (int32_t)L_0; goto IL_0049; } IL_0004: { int32_t L_1 = V_0; V_1 = (int32_t)L_1; InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE* L_2 = ___keys0; int32_t L_3 = V_0; NullCheck(L_2); int32_t L_4 = ((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)1)); InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E L_5 = (L_2)->GetAt(static_cast<il2cpp_array_size_t>(L_4)); V_2 = (InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E )L_5; goto IL_0026; } IL_0012: { InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE* L_6 = ___keys0; int32_t L_7 = V_1; InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE* L_8 = ___keys0; int32_t L_9 = V_1; NullCheck(L_8); int32_t L_10 = L_9; InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E L_11 = (L_8)->GetAt(static_cast<il2cpp_array_size_t>(L_10)); NullCheck(L_6); (L_6)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add((int32_t)L_7, (int32_t)1))), (InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E )L_11); int32_t L_12 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_12, (int32_t)1)); } IL_0026: { int32_t L_13 = V_1; int32_t L_14 = ___lo1; if ((((int32_t)L_13) < ((int32_t)L_14))) { goto IL_003b; } } { Comparison_1_t370A7EC51138A7AEA3BF6A503F35F7D093D6CAF1 * L_15 = ___comparer3; InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E L_16 = V_2; InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE* L_17 = ___keys0; int32_t L_18 = V_1; NullCheck(L_17); int32_t L_19 = L_18; InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E L_20 = (L_17)->GetAt(static_cast<il2cpp_array_size_t>(L_19)); NullCheck((Comparison_1_t370A7EC51138A7AEA3BF6A503F35F7D093D6CAF1 *)L_15); int32_t L_21; L_21 = (( int32_t (*) (Comparison_1_t370A7EC51138A7AEA3BF6A503F35F7D093D6CAF1 *, InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E , InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t370A7EC51138A7AEA3BF6A503F35F7D093D6CAF1 *)L_15, (InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E )L_16, (InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E )L_20, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_21) < ((int32_t)0))) { goto IL_0012; } } IL_003b: { InputDeviceU5BU5D_t1D4B7FC58B0B757E4DFEC85259EF3FDE297ECACE* L_22 = ___keys0; int32_t L_23 = V_1; InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E L_24 = V_2; NullCheck(L_22); (L_22)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add((int32_t)L_23, (int32_t)1))), (InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E )L_24); int32_t L_25 = V_0; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_25, (int32_t)1)); } IL_0049: { int32_t L_26 = V_0; int32_t L_27 = ___hi2; if ((((int32_t)L_26) < ((int32_t)L_27))) { goto IL_0004; } } { return; } } #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Void System.Collections.Generic.ArraySortHelper`1<UnityEngine.InputSystem.Layouts.InputDeviceDescription>::Sort(T[],System.Int32,System.Int32,System.Collections.Generic.IComparer`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Sort_mE5E37257261D63D4896707B66298DE13970DCB8B_gshared (InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3* ___keys0, int32_t ___index1, int32_t ___length2, RuntimeObject* ___comparer3, const RuntimeMethod* method) { Exception_t * V_0 = NULL; il2cpp::utils::ExceptionSupportStack<RuntimeObject*, 1> __active_exceptions; il2cpp::utils::ExceptionSupportStack<int32_t, 2> __leave_targets; IL_0000: try { // begin try (depth: 1) { RuntimeObject* L_0 = ___comparer3; if (L_0) { goto IL_000a; } } IL_0003: { Comparer_1_t59395996F8DE7B254E2AA6B94A083A3EEEE35F95 * L_1; L_1 = (( Comparer_1_t59395996F8DE7B254E2AA6B94A083A3EEEE35F95 * (*) (const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)->methodPointer)(/*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)); ___comparer3 = (RuntimeObject*)L_1; } IL_000a: { InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3* L_2 = ___keys0; int32_t L_3 = ___index1; int32_t L_4 = ___length2; RuntimeObject* L_5 = ___comparer3; RuntimeObject* L_6 = (RuntimeObject*)L_5; Comparison_1_tC442DCC0ACA3EDEF66ACEF4439730285E1662137 * L_7 = (Comparison_1_tC442DCC0ACA3EDEF66ACEF4439730285E1662137 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 4)); (( void (*) (Comparison_1_tC442DCC0ACA3EDEF66ACEF4439730285E1662137 *, RuntimeObject *, intptr_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 5)->methodPointer)(L_7, (RuntimeObject *)L_6, (intptr_t)((intptr_t)GetInterfaceMethodInfo(L_6, 0, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 3))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 5)); (( void (*) (InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3*, int32_t, int32_t, Comparison_1_tC442DCC0ACA3EDEF66ACEF4439730285E1662137 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)->methodPointer)((InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3*)L_2, (int32_t)L_3, (int32_t)L_4, (Comparison_1_tC442DCC0ACA3EDEF66ACEF4439730285E1662137 *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)); goto IL_0037; } } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&IndexOutOfRangeException_tDC9EF7A0346CE39E54DA1083F07BE6DFC3CE2EDD_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_0021; } if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&Exception_t_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_002a; } throw e; } CATCH_0021: { // begin catch(System.IndexOutOfRangeException) RuntimeObject* L_8 = ___comparer3; IntrospectiveSortUtilities_ThrowOrIgnoreBadComparer_mE23A8103696FA67F874E7DA86625BB3921DB801F((RuntimeObject *)L_8, /*hidden argument*/NULL); IL2CPP_POP_ACTIVE_EXCEPTION(); goto IL_0037; } // end catch (depth: 1) CATCH_002a: { // begin catch(System.Exception) V_0 = (Exception_t *)((Exception_t *)IL2CPP_GET_ACTIVE_EXCEPTION(Exception_t *)); Exception_t * L_9 = V_0; InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB * L_10 = (InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB *)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB_il2cpp_TypeInfo_var))); InvalidOperationException__ctor_m4A65916B1316FBF45ECDF1FF7FAC9E3CA30C112C(L_10, (String_t*)((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral6EDB6C049ED9617FA335A262A29BF30B15221AEA)), (Exception_t *)L_9, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_10, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArraySortHelper_1_Sort_mE5E37257261D63D4896707B66298DE13970DCB8B_RuntimeMethod_var))); } // end catch (depth: 1) IL_0037: { return; } } // System.Int32 System.Collections.Generic.ArraySortHelper`1<UnityEngine.InputSystem.Layouts.InputDeviceDescription>::BinarySearch(T[],System.Int32,System.Int32,T,System.Collections.Generic.IComparer`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t ArraySortHelper_1_BinarySearch_m6DEF11605783432CC52651DF346D81AF420ED0A2_gshared (InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3* ___array0, int32_t ___index1, int32_t ___length2, InputDeviceDescription_tDCF3D4C660B97F28D8AB46D82C0BA8EA727E48C3 ___value3, RuntimeObject* ___comparer4, const RuntimeMethod* method) { int32_t V_0 = 0; Exception_t * V_1 = NULL; il2cpp::utils::ExceptionSupportStack<RuntimeObject*, 1> __active_exceptions; il2cpp::utils::ExceptionSupportStack<int32_t, 1> __leave_targets; IL_0000: try { // begin try (depth: 1) { RuntimeObject* L_0 = ___comparer4; if (L_0) { goto IL_000b; } } IL_0004: { Comparer_1_t59395996F8DE7B254E2AA6B94A083A3EEEE35F95 * L_1; L_1 = (( Comparer_1_t59395996F8DE7B254E2AA6B94A083A3EEEE35F95 * (*) (const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)->methodPointer)(/*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)); ___comparer4 = (RuntimeObject*)L_1; } IL_000b: { InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3* L_2 = ___array0; int32_t L_3 = ___index1; int32_t L_4 = ___length2; InputDeviceDescription_tDCF3D4C660B97F28D8AB46D82C0BA8EA727E48C3 L_5 = ___value3; RuntimeObject* L_6 = ___comparer4; int32_t L_7; L_7 = (( int32_t (*) (InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3*, int32_t, int32_t, InputDeviceDescription_tDCF3D4C660B97F28D8AB46D82C0BA8EA727E48C3 , RuntimeObject*, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 8)->methodPointer)((InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3*)L_2, (int32_t)L_3, (int32_t)L_4, (InputDeviceDescription_tDCF3D4C660B97F28D8AB46D82C0BA8EA727E48C3 )L_5, (RuntimeObject*)L_6, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 8)); V_0 = (int32_t)L_7; goto IL_0026; } } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&Exception_t_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_0019; } throw e; } CATCH_0019: { // begin catch(System.Exception) V_1 = (Exception_t *)((Exception_t *)IL2CPP_GET_ACTIVE_EXCEPTION(Exception_t *)); Exception_t * L_8 = V_1; InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB * L_9 = (InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB *)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB_il2cpp_TypeInfo_var))); InvalidOperationException__ctor_m4A65916B1316FBF45ECDF1FF7FAC9E3CA30C112C(L_9, (String_t*)((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral6EDB6C049ED9617FA335A262A29BF30B15221AEA)), (Exception_t *)L_8, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_9, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArraySortHelper_1_BinarySearch_m6DEF11605783432CC52651DF346D81AF420ED0A2_RuntimeMethod_var))); } // end catch (depth: 1) IL_0026: { int32_t L_10 = V_0; return (int32_t)L_10; } } // System.Void System.Collections.Generic.ArraySortHelper`1<UnityEngine.InputSystem.Layouts.InputDeviceDescription>::Sort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Sort_m0397BDD177A27E91BA149FE75287E35D3620E34C_gshared (InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3* ___keys0, int32_t ___index1, int32_t ___length2, Comparison_1_tC442DCC0ACA3EDEF66ACEF4439730285E1662137 * ___comparer3, const RuntimeMethod* method) { Exception_t * V_0 = NULL; il2cpp::utils::ExceptionSupportStack<RuntimeObject*, 1> __active_exceptions; il2cpp::utils::ExceptionSupportStack<int32_t, 2> __leave_targets; IL_0000: try { // begin try (depth: 1) InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3* L_0 = ___keys0; int32_t L_1 = ___index1; int32_t L_2 = ___length2; Comparison_1_tC442DCC0ACA3EDEF66ACEF4439730285E1662137 * L_3 = ___comparer3; (( void (*) (InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3*, int32_t, int32_t, Comparison_1_tC442DCC0ACA3EDEF66ACEF4439730285E1662137 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)->methodPointer)((InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3*)L_0, (int32_t)L_1, (int32_t)L_2, (Comparison_1_tC442DCC0ACA3EDEF66ACEF4439730285E1662137 *)L_3, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)); goto IL_0021; } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&IndexOutOfRangeException_tDC9EF7A0346CE39E54DA1083F07BE6DFC3CE2EDD_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_000b; } if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&Exception_t_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_0014; } throw e; } CATCH_000b: { // begin catch(System.IndexOutOfRangeException) Comparison_1_tC442DCC0ACA3EDEF66ACEF4439730285E1662137 * L_4 = ___comparer3; IntrospectiveSortUtilities_ThrowOrIgnoreBadComparer_mE23A8103696FA67F874E7DA86625BB3921DB801F((RuntimeObject *)L_4, /*hidden argument*/NULL); IL2CPP_POP_ACTIVE_EXCEPTION(); goto IL_0021; } // end catch (depth: 1) CATCH_0014: { // begin catch(System.Exception) V_0 = (Exception_t *)((Exception_t *)IL2CPP_GET_ACTIVE_EXCEPTION(Exception_t *)); Exception_t * L_5 = V_0; InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB * L_6 = (InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB *)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB_il2cpp_TypeInfo_var))); InvalidOperationException__ctor_m4A65916B1316FBF45ECDF1FF7FAC9E3CA30C112C(L_6, (String_t*)((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral6EDB6C049ED9617FA335A262A29BF30B15221AEA)), (Exception_t *)L_5, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_6, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArraySortHelper_1_Sort_m0397BDD177A27E91BA149FE75287E35D3620E34C_RuntimeMethod_var))); } // end catch (depth: 1) IL_0021: { return; } } // System.Int32 System.Collections.Generic.ArraySortHelper`1<UnityEngine.InputSystem.Layouts.InputDeviceDescription>::InternalBinarySearch(T[],System.Int32,System.Int32,T,System.Collections.Generic.IComparer`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t ArraySortHelper_1_InternalBinarySearch_m43D5C6AD2061123989BD2B1EDAB967944446BD2B_gshared (InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3* ___array0, int32_t ___index1, int32_t ___length2, InputDeviceDescription_tDCF3D4C660B97F28D8AB46D82C0BA8EA727E48C3 ___value3, RuntimeObject* ___comparer4, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; int32_t V_2 = 0; int32_t V_3 = 0; { int32_t L_0 = ___index1; V_0 = (int32_t)L_0; int32_t L_1 = ___index1; int32_t L_2 = ___length2; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_1, (int32_t)L_2)), (int32_t)1)); goto IL_0035; } IL_000a: { int32_t L_3 = V_0; int32_t L_4 = V_1; int32_t L_5 = V_0; V_2 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)((int32_t)((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_4, (int32_t)L_5))>>(int32_t)1)))); RuntimeObject* L_6 = ___comparer4; InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3* L_7 = ___array0; int32_t L_8 = V_2; NullCheck(L_7); int32_t L_9 = L_8; InputDeviceDescription_tDCF3D4C660B97F28D8AB46D82C0BA8EA727E48C3 L_10 = (L_7)->GetAt(static_cast<il2cpp_array_size_t>(L_9)); InputDeviceDescription_tDCF3D4C660B97F28D8AB46D82C0BA8EA727E48C3 L_11 = ___value3; NullCheck((RuntimeObject*)L_6); int32_t L_12; L_12 = InterfaceFuncInvoker2< int32_t, InputDeviceDescription_tDCF3D4C660B97F28D8AB46D82C0BA8EA727E48C3 , InputDeviceDescription_tDCF3D4C660B97F28D8AB46D82C0BA8EA727E48C3 >::Invoke(0 /* System.Int32 System.Collections.Generic.IComparer`1<UnityEngine.InputSystem.Layouts.InputDeviceDescription>::Compare(T,T) */, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 3), (RuntimeObject*)L_6, (InputDeviceDescription_tDCF3D4C660B97F28D8AB46D82C0BA8EA727E48C3 )L_10, (InputDeviceDescription_tDCF3D4C660B97F28D8AB46D82C0BA8EA727E48C3 )L_11); V_3 = (int32_t)L_12; int32_t L_13 = V_3; if (L_13) { goto IL_0027; } } { int32_t L_14 = V_2; return (int32_t)L_14; } IL_0027: { int32_t L_15 = V_3; if ((((int32_t)L_15) >= ((int32_t)0))) { goto IL_0031; } } { int32_t L_16 = V_2; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_16, (int32_t)1)); goto IL_0035; } IL_0031: { int32_t L_17 = V_2; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_17, (int32_t)1)); } IL_0035: { int32_t L_18 = V_0; int32_t L_19 = V_1; if ((((int32_t)L_18) <= ((int32_t)L_19))) { goto IL_000a; } } { int32_t L_20 = V_0; return (int32_t)((~L_20)); } } // System.Void System.Collections.Generic.ArraySortHelper`1<UnityEngine.InputSystem.Layouts.InputDeviceDescription>::SwapIfGreater(T[],System.Comparison`1<T>,System.Int32,System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_SwapIfGreater_m5A6794B93D0709701D498E6CDB9E92DF9FDA2A91_gshared (InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3* ___keys0, Comparison_1_tC442DCC0ACA3EDEF66ACEF4439730285E1662137 * ___comparer1, int32_t ___a2, int32_t ___b3, const RuntimeMethod* method) { InputDeviceDescription_tDCF3D4C660B97F28D8AB46D82C0BA8EA727E48C3 V_0; memset((&V_0), 0, sizeof(V_0)); { int32_t L_0 = ___a2; int32_t L_1 = ___b3; if ((((int32_t)L_0) == ((int32_t)L_1))) { goto IL_0039; } } { Comparison_1_tC442DCC0ACA3EDEF66ACEF4439730285E1662137 * L_2 = ___comparer1; InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3* L_3 = ___keys0; int32_t L_4 = ___a2; NullCheck(L_3); int32_t L_5 = L_4; InputDeviceDescription_tDCF3D4C660B97F28D8AB46D82C0BA8EA727E48C3 L_6 = (L_3)->GetAt(static_cast<il2cpp_array_size_t>(L_5)); InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3* L_7 = ___keys0; int32_t L_8 = ___b3; NullCheck(L_7); int32_t L_9 = L_8; InputDeviceDescription_tDCF3D4C660B97F28D8AB46D82C0BA8EA727E48C3 L_10 = (L_7)->GetAt(static_cast<il2cpp_array_size_t>(L_9)); NullCheck((Comparison_1_tC442DCC0ACA3EDEF66ACEF4439730285E1662137 *)L_2); int32_t L_11; L_11 = (( int32_t (*) (Comparison_1_tC442DCC0ACA3EDEF66ACEF4439730285E1662137 *, InputDeviceDescription_tDCF3D4C660B97F28D8AB46D82C0BA8EA727E48C3 , InputDeviceDescription_tDCF3D4C660B97F28D8AB46D82C0BA8EA727E48C3 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_tC442DCC0ACA3EDEF66ACEF4439730285E1662137 *)L_2, (InputDeviceDescription_tDCF3D4C660B97F28D8AB46D82C0BA8EA727E48C3 )L_6, (InputDeviceDescription_tDCF3D4C660B97F28D8AB46D82C0BA8EA727E48C3 )L_10, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_11) <= ((int32_t)0))) { goto IL_0039; } } { InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3* L_12 = ___keys0; int32_t L_13 = ___a2; NullCheck(L_12); int32_t L_14 = L_13; InputDeviceDescription_tDCF3D4C660B97F28D8AB46D82C0BA8EA727E48C3 L_15 = (L_12)->GetAt(static_cast<il2cpp_array_size_t>(L_14)); V_0 = (InputDeviceDescription_tDCF3D4C660B97F28D8AB46D82C0BA8EA727E48C3 )L_15; InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3* L_16 = ___keys0; int32_t L_17 = ___a2; InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3* L_18 = ___keys0; int32_t L_19 = ___b3; NullCheck(L_18); int32_t L_20 = L_19; InputDeviceDescription_tDCF3D4C660B97F28D8AB46D82C0BA8EA727E48C3 L_21 = (L_18)->GetAt(static_cast<il2cpp_array_size_t>(L_20)); NullCheck(L_16); (L_16)->SetAt(static_cast<il2cpp_array_size_t>(L_17), (InputDeviceDescription_tDCF3D4C660B97F28D8AB46D82C0BA8EA727E48C3 )L_21); InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3* L_22 = ___keys0; int32_t L_23 = ___b3; InputDeviceDescription_tDCF3D4C660B97F28D8AB46D82C0BA8EA727E48C3 L_24 = V_0; NullCheck(L_22); (L_22)->SetAt(static_cast<il2cpp_array_size_t>(L_23), (InputDeviceDescription_tDCF3D4C660B97F28D8AB46D82C0BA8EA727E48C3 )L_24); } IL_0039: { return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<UnityEngine.InputSystem.Layouts.InputDeviceDescription>::Swap(T[],System.Int32,System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Swap_mA02521B064FD119CE6E025960D87AED2432F9347_gshared (InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3* ___a0, int32_t ___i1, int32_t ___j2, const RuntimeMethod* method) { InputDeviceDescription_tDCF3D4C660B97F28D8AB46D82C0BA8EA727E48C3 V_0; memset((&V_0), 0, sizeof(V_0)); { int32_t L_0 = ___i1; int32_t L_1 = ___j2; if ((((int32_t)L_0) == ((int32_t)L_1))) { goto IL_0022; } } { InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3* L_2 = ___a0; int32_t L_3 = ___i1; NullCheck(L_2); int32_t L_4 = L_3; InputDeviceDescription_tDCF3D4C660B97F28D8AB46D82C0BA8EA727E48C3 L_5 = (L_2)->GetAt(static_cast<il2cpp_array_size_t>(L_4)); V_0 = (InputDeviceDescription_tDCF3D4C660B97F28D8AB46D82C0BA8EA727E48C3 )L_5; InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3* L_6 = ___a0; int32_t L_7 = ___i1; InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3* L_8 = ___a0; int32_t L_9 = ___j2; NullCheck(L_8); int32_t L_10 = L_9; InputDeviceDescription_tDCF3D4C660B97F28D8AB46D82C0BA8EA727E48C3 L_11 = (L_8)->GetAt(static_cast<il2cpp_array_size_t>(L_10)); NullCheck(L_6); (L_6)->SetAt(static_cast<il2cpp_array_size_t>(L_7), (InputDeviceDescription_tDCF3D4C660B97F28D8AB46D82C0BA8EA727E48C3 )L_11); InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3* L_12 = ___a0; int32_t L_13 = ___j2; InputDeviceDescription_tDCF3D4C660B97F28D8AB46D82C0BA8EA727E48C3 L_14 = V_0; NullCheck(L_12); (L_12)->SetAt(static_cast<il2cpp_array_size_t>(L_13), (InputDeviceDescription_tDCF3D4C660B97F28D8AB46D82C0BA8EA727E48C3 )L_14); } IL_0022: { return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<UnityEngine.InputSystem.Layouts.InputDeviceDescription>::IntrospectiveSort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_IntrospectiveSort_m953DBE5CA5138CBA77DE547A1CC8BF155914AB8A_gshared (InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3* ___keys0, int32_t ___left1, int32_t ___length2, Comparison_1_tC442DCC0ACA3EDEF66ACEF4439730285E1662137 * ___comparer3, const RuntimeMethod* method) { { int32_t L_0 = ___length2; if ((((int32_t)L_0) >= ((int32_t)2))) { goto IL_0005; } } { return; } IL_0005: { InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3* L_1 = ___keys0; int32_t L_2 = ___left1; int32_t L_3 = ___length2; int32_t L_4 = ___left1; InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3* L_5 = ___keys0; NullCheck(L_5); int32_t L_6; L_6 = IntrospectiveSortUtilities_FloorLog2_m05ECB6CAC7A23087D9EC2C2A4DDCFE12272C3872((int32_t)((int32_t)((int32_t)(((RuntimeArray*)L_5)->max_length))), /*hidden argument*/NULL); Comparison_1_tC442DCC0ACA3EDEF66ACEF4439730285E1662137 * L_7 = ___comparer3; (( void (*) (InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3*, int32_t, int32_t, int32_t, Comparison_1_tC442DCC0ACA3EDEF66ACEF4439730285E1662137 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)->methodPointer)((InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3*)L_1, (int32_t)L_2, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)L_4)), (int32_t)1)), (int32_t)((int32_t)il2cpp_codegen_multiply((int32_t)2, (int32_t)L_6)), (Comparison_1_tC442DCC0ACA3EDEF66ACEF4439730285E1662137 *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)); return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<UnityEngine.InputSystem.Layouts.InputDeviceDescription>::IntroSort(T[],System.Int32,System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_IntroSort_m417CD99C1F153BA86D9F24FD3B39D439CCEEA570_gshared (InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3* ___keys0, int32_t ___lo1, int32_t ___hi2, int32_t ___depthLimit3, Comparison_1_tC442DCC0ACA3EDEF66ACEF4439730285E1662137 * ___comparer4, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; { goto IL_0086; } IL_0005: { int32_t L_0 = ___hi2; int32_t L_1 = ___lo1; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_0, (int32_t)L_1)), (int32_t)1)); int32_t L_2 = V_0; if ((((int32_t)L_2) > ((int32_t)((int32_t)16)))) { goto IL_0056; } } { int32_t L_3 = V_0; if ((!(((uint32_t)L_3) == ((uint32_t)1)))) { goto IL_0015; } } { return; } IL_0015: { int32_t L_4 = V_0; if ((!(((uint32_t)L_4) == ((uint32_t)2)))) { goto IL_0024; } } { InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3* L_5 = ___keys0; Comparison_1_tC442DCC0ACA3EDEF66ACEF4439730285E1662137 * L_6 = ___comparer4; int32_t L_7 = ___lo1; int32_t L_8 = ___hi2; (( void (*) (InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3*, Comparison_1_tC442DCC0ACA3EDEF66ACEF4439730285E1662137 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3*)L_5, (Comparison_1_tC442DCC0ACA3EDEF66ACEF4439730285E1662137 *)L_6, (int32_t)L_7, (int32_t)L_8, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); return; } IL_0024: { int32_t L_9 = V_0; if ((!(((uint32_t)L_9) == ((uint32_t)3)))) { goto IL_004b; } } { InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3* L_10 = ___keys0; Comparison_1_tC442DCC0ACA3EDEF66ACEF4439730285E1662137 * L_11 = ___comparer4; int32_t L_12 = ___lo1; int32_t L_13 = ___hi2; (( void (*) (InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3*, Comparison_1_tC442DCC0ACA3EDEF66ACEF4439730285E1662137 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3*)L_10, (Comparison_1_tC442DCC0ACA3EDEF66ACEF4439730285E1662137 *)L_11, (int32_t)L_12, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_13, (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3* L_14 = ___keys0; Comparison_1_tC442DCC0ACA3EDEF66ACEF4439730285E1662137 * L_15 = ___comparer4; int32_t L_16 = ___lo1; int32_t L_17 = ___hi2; (( void (*) (InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3*, Comparison_1_tC442DCC0ACA3EDEF66ACEF4439730285E1662137 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3*)L_14, (Comparison_1_tC442DCC0ACA3EDEF66ACEF4439730285E1662137 *)L_15, (int32_t)L_16, (int32_t)L_17, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3* L_18 = ___keys0; Comparison_1_tC442DCC0ACA3EDEF66ACEF4439730285E1662137 * L_19 = ___comparer4; int32_t L_20 = ___hi2; int32_t L_21 = ___hi2; (( void (*) (InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3*, Comparison_1_tC442DCC0ACA3EDEF66ACEF4439730285E1662137 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3*)L_18, (Comparison_1_tC442DCC0ACA3EDEF66ACEF4439730285E1662137 *)L_19, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_20, (int32_t)1)), (int32_t)L_21, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); return; } IL_004b: { InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3* L_22 = ___keys0; int32_t L_23 = ___lo1; int32_t L_24 = ___hi2; Comparison_1_tC442DCC0ACA3EDEF66ACEF4439730285E1662137 * L_25 = ___comparer4; (( void (*) (InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3*, int32_t, int32_t, Comparison_1_tC442DCC0ACA3EDEF66ACEF4439730285E1662137 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 12)->methodPointer)((InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3*)L_22, (int32_t)L_23, (int32_t)L_24, (Comparison_1_tC442DCC0ACA3EDEF66ACEF4439730285E1662137 *)L_25, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 12)); return; } IL_0056: { int32_t L_26 = ___depthLimit3; if (L_26) { goto IL_0064; } } { InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3* L_27 = ___keys0; int32_t L_28 = ___lo1; int32_t L_29 = ___hi2; Comparison_1_tC442DCC0ACA3EDEF66ACEF4439730285E1662137 * L_30 = ___comparer4; (( void (*) (InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3*, int32_t, int32_t, Comparison_1_tC442DCC0ACA3EDEF66ACEF4439730285E1662137 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 13)->methodPointer)((InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3*)L_27, (int32_t)L_28, (int32_t)L_29, (Comparison_1_tC442DCC0ACA3EDEF66ACEF4439730285E1662137 *)L_30, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 13)); return; } IL_0064: { int32_t L_31 = ___depthLimit3; ___depthLimit3 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_31, (int32_t)1)); InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3* L_32 = ___keys0; int32_t L_33 = ___lo1; int32_t L_34 = ___hi2; Comparison_1_tC442DCC0ACA3EDEF66ACEF4439730285E1662137 * L_35 = ___comparer4; int32_t L_36; L_36 = (( int32_t (*) (InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3*, int32_t, int32_t, Comparison_1_tC442DCC0ACA3EDEF66ACEF4439730285E1662137 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 14)->methodPointer)((InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3*)L_32, (int32_t)L_33, (int32_t)L_34, (Comparison_1_tC442DCC0ACA3EDEF66ACEF4439730285E1662137 *)L_35, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 14)); V_1 = (int32_t)L_36; InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3* L_37 = ___keys0; int32_t L_38 = V_1; int32_t L_39 = ___hi2; int32_t L_40 = ___depthLimit3; Comparison_1_tC442DCC0ACA3EDEF66ACEF4439730285E1662137 * L_41 = ___comparer4; (( void (*) (InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3*, int32_t, int32_t, int32_t, Comparison_1_tC442DCC0ACA3EDEF66ACEF4439730285E1662137 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)->methodPointer)((InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3*)L_37, (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_38, (int32_t)1)), (int32_t)L_39, (int32_t)L_40, (Comparison_1_tC442DCC0ACA3EDEF66ACEF4439730285E1662137 *)L_41, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)); int32_t L_42 = V_1; ___hi2 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_42, (int32_t)1)); } IL_0086: { int32_t L_43 = ___hi2; int32_t L_44 = ___lo1; if ((((int32_t)L_43) > ((int32_t)L_44))) { goto IL_0005; } } { return; } } // System.Int32 System.Collections.Generic.ArraySortHelper`1<UnityEngine.InputSystem.Layouts.InputDeviceDescription>::PickPivotAndPartition(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t ArraySortHelper_1_PickPivotAndPartition_mC7AF093CF4186A98FD4F27CFDD70EF9455162F98_gshared (InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3* ___keys0, int32_t ___lo1, int32_t ___hi2, Comparison_1_tC442DCC0ACA3EDEF66ACEF4439730285E1662137 * ___comparer3, const RuntimeMethod* method) { int32_t V_0 = 0; InputDeviceDescription_tDCF3D4C660B97F28D8AB46D82C0BA8EA727E48C3 V_1; memset((&V_1), 0, sizeof(V_1)); int32_t V_2 = 0; int32_t V_3 = 0; { int32_t L_0 = ___lo1; int32_t L_1 = ___hi2; int32_t L_2 = ___lo1; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_0, (int32_t)((int32_t)((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_1, (int32_t)L_2))/(int32_t)2)))); InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3* L_3 = ___keys0; Comparison_1_tC442DCC0ACA3EDEF66ACEF4439730285E1662137 * L_4 = ___comparer3; int32_t L_5 = ___lo1; int32_t L_6 = V_0; (( void (*) (InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3*, Comparison_1_tC442DCC0ACA3EDEF66ACEF4439730285E1662137 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3*)L_3, (Comparison_1_tC442DCC0ACA3EDEF66ACEF4439730285E1662137 *)L_4, (int32_t)L_5, (int32_t)L_6, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3* L_7 = ___keys0; Comparison_1_tC442DCC0ACA3EDEF66ACEF4439730285E1662137 * L_8 = ___comparer3; int32_t L_9 = ___lo1; int32_t L_10 = ___hi2; (( void (*) (InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3*, Comparison_1_tC442DCC0ACA3EDEF66ACEF4439730285E1662137 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3*)L_7, (Comparison_1_tC442DCC0ACA3EDEF66ACEF4439730285E1662137 *)L_8, (int32_t)L_9, (int32_t)L_10, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3* L_11 = ___keys0; Comparison_1_tC442DCC0ACA3EDEF66ACEF4439730285E1662137 * L_12 = ___comparer3; int32_t L_13 = V_0; int32_t L_14 = ___hi2; (( void (*) (InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3*, Comparison_1_tC442DCC0ACA3EDEF66ACEF4439730285E1662137 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3*)L_11, (Comparison_1_tC442DCC0ACA3EDEF66ACEF4439730285E1662137 *)L_12, (int32_t)L_13, (int32_t)L_14, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3* L_15 = ___keys0; int32_t L_16 = V_0; NullCheck(L_15); int32_t L_17 = L_16; InputDeviceDescription_tDCF3D4C660B97F28D8AB46D82C0BA8EA727E48C3 L_18 = (L_15)->GetAt(static_cast<il2cpp_array_size_t>(L_17)); V_1 = (InputDeviceDescription_tDCF3D4C660B97F28D8AB46D82C0BA8EA727E48C3 )L_18; InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3* L_19 = ___keys0; int32_t L_20 = V_0; int32_t L_21 = ___hi2; (( void (*) (InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3*)L_19, (int32_t)L_20, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_21, (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); int32_t L_22 = ___lo1; V_2 = (int32_t)L_22; int32_t L_23 = ___hi2; V_3 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_23, (int32_t)1)); goto IL_0073; } IL_003d: { Comparison_1_tC442DCC0ACA3EDEF66ACEF4439730285E1662137 * L_24 = ___comparer3; InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3* L_25 = ___keys0; int32_t L_26 = V_2; int32_t L_27 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_26, (int32_t)1)); V_2 = (int32_t)L_27; NullCheck(L_25); int32_t L_28 = L_27; InputDeviceDescription_tDCF3D4C660B97F28D8AB46D82C0BA8EA727E48C3 L_29 = (L_25)->GetAt(static_cast<il2cpp_array_size_t>(L_28)); InputDeviceDescription_tDCF3D4C660B97F28D8AB46D82C0BA8EA727E48C3 L_30 = V_1; NullCheck((Comparison_1_tC442DCC0ACA3EDEF66ACEF4439730285E1662137 *)L_24); int32_t L_31; L_31 = (( int32_t (*) (Comparison_1_tC442DCC0ACA3EDEF66ACEF4439730285E1662137 *, InputDeviceDescription_tDCF3D4C660B97F28D8AB46D82C0BA8EA727E48C3 , InputDeviceDescription_tDCF3D4C660B97F28D8AB46D82C0BA8EA727E48C3 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_tC442DCC0ACA3EDEF66ACEF4439730285E1662137 *)L_24, (InputDeviceDescription_tDCF3D4C660B97F28D8AB46D82C0BA8EA727E48C3 )L_29, (InputDeviceDescription_tDCF3D4C660B97F28D8AB46D82C0BA8EA727E48C3 )L_30, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_31) < ((int32_t)0))) { goto IL_003d; } } IL_0052: { Comparison_1_tC442DCC0ACA3EDEF66ACEF4439730285E1662137 * L_32 = ___comparer3; InputDeviceDescription_tDCF3D4C660B97F28D8AB46D82C0BA8EA727E48C3 L_33 = V_1; InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3* L_34 = ___keys0; int32_t L_35 = V_3; int32_t L_36 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_35, (int32_t)1)); V_3 = (int32_t)L_36; NullCheck(L_34); int32_t L_37 = L_36; InputDeviceDescription_tDCF3D4C660B97F28D8AB46D82C0BA8EA727E48C3 L_38 = (L_34)->GetAt(static_cast<il2cpp_array_size_t>(L_37)); NullCheck((Comparison_1_tC442DCC0ACA3EDEF66ACEF4439730285E1662137 *)L_32); int32_t L_39; L_39 = (( int32_t (*) (Comparison_1_tC442DCC0ACA3EDEF66ACEF4439730285E1662137 *, InputDeviceDescription_tDCF3D4C660B97F28D8AB46D82C0BA8EA727E48C3 , InputDeviceDescription_tDCF3D4C660B97F28D8AB46D82C0BA8EA727E48C3 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_tC442DCC0ACA3EDEF66ACEF4439730285E1662137 *)L_32, (InputDeviceDescription_tDCF3D4C660B97F28D8AB46D82C0BA8EA727E48C3 )L_33, (InputDeviceDescription_tDCF3D4C660B97F28D8AB46D82C0BA8EA727E48C3 )L_38, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_39) < ((int32_t)0))) { goto IL_0052; } } { int32_t L_40 = V_2; int32_t L_41 = V_3; if ((((int32_t)L_40) >= ((int32_t)L_41))) { goto IL_0077; } } { InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3* L_42 = ___keys0; int32_t L_43 = V_2; int32_t L_44 = V_3; (( void (*) (InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3*)L_42, (int32_t)L_43, (int32_t)L_44, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); } IL_0073: { int32_t L_45 = V_2; int32_t L_46 = V_3; if ((((int32_t)L_45) < ((int32_t)L_46))) { goto IL_003d; } } IL_0077: { InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3* L_47 = ___keys0; int32_t L_48 = V_2; int32_t L_49 = ___hi2; (( void (*) (InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3*)L_47, (int32_t)L_48, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_49, (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); int32_t L_50 = V_2; return (int32_t)L_50; } } // System.Void System.Collections.Generic.ArraySortHelper`1<UnityEngine.InputSystem.Layouts.InputDeviceDescription>::Heapsort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Heapsort_mE2E18B817DC3C8AA4ED57D173666D91EAC222859_gshared (InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3* ___keys0, int32_t ___lo1, int32_t ___hi2, Comparison_1_tC442DCC0ACA3EDEF66ACEF4439730285E1662137 * ___comparer3, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; int32_t V_2 = 0; { int32_t L_0 = ___hi2; int32_t L_1 = ___lo1; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_0, (int32_t)L_1)), (int32_t)1)); int32_t L_2 = V_0; V_1 = (int32_t)((int32_t)((int32_t)L_2/(int32_t)2)); goto IL_001a; } IL_000c: { InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3* L_3 = ___keys0; int32_t L_4 = V_1; int32_t L_5 = V_0; int32_t L_6 = ___lo1; Comparison_1_tC442DCC0ACA3EDEF66ACEF4439730285E1662137 * L_7 = ___comparer3; (( void (*) (InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3*, int32_t, int32_t, int32_t, Comparison_1_tC442DCC0ACA3EDEF66ACEF4439730285E1662137 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)->methodPointer)((InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3*)L_3, (int32_t)L_4, (int32_t)L_5, (int32_t)L_6, (Comparison_1_tC442DCC0ACA3EDEF66ACEF4439730285E1662137 *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)); int32_t L_8 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_8, (int32_t)1)); } IL_001a: { int32_t L_9 = V_1; if ((((int32_t)L_9) >= ((int32_t)1))) { goto IL_000c; } } { int32_t L_10 = V_0; V_2 = (int32_t)L_10; goto IL_003e; } IL_0022: { InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3* L_11 = ___keys0; int32_t L_12 = ___lo1; int32_t L_13 = ___lo1; int32_t L_14 = V_2; (( void (*) (InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3*)L_11, (int32_t)L_12, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_13, (int32_t)L_14)), (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3* L_15 = ___keys0; int32_t L_16 = V_2; int32_t L_17 = ___lo1; Comparison_1_tC442DCC0ACA3EDEF66ACEF4439730285E1662137 * L_18 = ___comparer3; (( void (*) (InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3*, int32_t, int32_t, int32_t, Comparison_1_tC442DCC0ACA3EDEF66ACEF4439730285E1662137 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)->methodPointer)((InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3*)L_15, (int32_t)1, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_16, (int32_t)1)), (int32_t)L_17, (Comparison_1_tC442DCC0ACA3EDEF66ACEF4439730285E1662137 *)L_18, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)); int32_t L_19 = V_2; V_2 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_19, (int32_t)1)); } IL_003e: { int32_t L_20 = V_2; if ((((int32_t)L_20) > ((int32_t)1))) { goto IL_0022; } } { return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<UnityEngine.InputSystem.Layouts.InputDeviceDescription>::DownHeap(T[],System.Int32,System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_DownHeap_m9A14256E5CAC97FD7868510AC0CD4C6D275178FE_gshared (InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3* ___keys0, int32_t ___i1, int32_t ___n2, int32_t ___lo3, Comparison_1_tC442DCC0ACA3EDEF66ACEF4439730285E1662137 * ___comparer4, const RuntimeMethod* method) { InputDeviceDescription_tDCF3D4C660B97F28D8AB46D82C0BA8EA727E48C3 V_0; memset((&V_0), 0, sizeof(V_0)); int32_t V_1 = 0; { InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3* L_0 = ___keys0; int32_t L_1 = ___lo3; int32_t L_2 = ___i1; NullCheck(L_0); int32_t L_3 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_1, (int32_t)L_2)), (int32_t)1)); InputDeviceDescription_tDCF3D4C660B97F28D8AB46D82C0BA8EA727E48C3 L_4 = (L_0)->GetAt(static_cast<il2cpp_array_size_t>(L_3)); V_0 = (InputDeviceDescription_tDCF3D4C660B97F28D8AB46D82C0BA8EA727E48C3 )L_4; goto IL_0067; } IL_000e: { int32_t L_5 = ___i1; V_1 = (int32_t)((int32_t)il2cpp_codegen_multiply((int32_t)2, (int32_t)L_5)); int32_t L_6 = V_1; int32_t L_7 = ___n2; if ((((int32_t)L_6) >= ((int32_t)L_7))) { goto IL_0038; } } { Comparison_1_tC442DCC0ACA3EDEF66ACEF4439730285E1662137 * L_8 = ___comparer4; InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3* L_9 = ___keys0; int32_t L_10 = ___lo3; int32_t L_11 = V_1; NullCheck(L_9); int32_t L_12 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_10, (int32_t)L_11)), (int32_t)1)); InputDeviceDescription_tDCF3D4C660B97F28D8AB46D82C0BA8EA727E48C3 L_13 = (L_9)->GetAt(static_cast<il2cpp_array_size_t>(L_12)); InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3* L_14 = ___keys0; int32_t L_15 = ___lo3; int32_t L_16 = V_1; NullCheck(L_14); int32_t L_17 = ((int32_t)il2cpp_codegen_add((int32_t)L_15, (int32_t)L_16)); InputDeviceDescription_tDCF3D4C660B97F28D8AB46D82C0BA8EA727E48C3 L_18 = (L_14)->GetAt(static_cast<il2cpp_array_size_t>(L_17)); NullCheck((Comparison_1_tC442DCC0ACA3EDEF66ACEF4439730285E1662137 *)L_8); int32_t L_19; L_19 = (( int32_t (*) (Comparison_1_tC442DCC0ACA3EDEF66ACEF4439730285E1662137 *, InputDeviceDescription_tDCF3D4C660B97F28D8AB46D82C0BA8EA727E48C3 , InputDeviceDescription_tDCF3D4C660B97F28D8AB46D82C0BA8EA727E48C3 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_tC442DCC0ACA3EDEF66ACEF4439730285E1662137 *)L_8, (InputDeviceDescription_tDCF3D4C660B97F28D8AB46D82C0BA8EA727E48C3 )L_13, (InputDeviceDescription_tDCF3D4C660B97F28D8AB46D82C0BA8EA727E48C3 )L_18, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_19) >= ((int32_t)0))) { goto IL_0038; } } { int32_t L_20 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_20, (int32_t)1)); } IL_0038: { Comparison_1_tC442DCC0ACA3EDEF66ACEF4439730285E1662137 * L_21 = ___comparer4; InputDeviceDescription_tDCF3D4C660B97F28D8AB46D82C0BA8EA727E48C3 L_22 = V_0; InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3* L_23 = ___keys0; int32_t L_24 = ___lo3; int32_t L_25 = V_1; NullCheck(L_23); int32_t L_26 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_24, (int32_t)L_25)), (int32_t)1)); InputDeviceDescription_tDCF3D4C660B97F28D8AB46D82C0BA8EA727E48C3 L_27 = (L_23)->GetAt(static_cast<il2cpp_array_size_t>(L_26)); NullCheck((Comparison_1_tC442DCC0ACA3EDEF66ACEF4439730285E1662137 *)L_21); int32_t L_28; L_28 = (( int32_t (*) (Comparison_1_tC442DCC0ACA3EDEF66ACEF4439730285E1662137 *, InputDeviceDescription_tDCF3D4C660B97F28D8AB46D82C0BA8EA727E48C3 , InputDeviceDescription_tDCF3D4C660B97F28D8AB46D82C0BA8EA727E48C3 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_tC442DCC0ACA3EDEF66ACEF4439730285E1662137 *)L_21, (InputDeviceDescription_tDCF3D4C660B97F28D8AB46D82C0BA8EA727E48C3 )L_22, (InputDeviceDescription_tDCF3D4C660B97F28D8AB46D82C0BA8EA727E48C3 )L_27, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_28) >= ((int32_t)0))) { goto IL_006d; } } { InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3* L_29 = ___keys0; int32_t L_30 = ___lo3; int32_t L_31 = ___i1; InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3* L_32 = ___keys0; int32_t L_33 = ___lo3; int32_t L_34 = V_1; NullCheck(L_32); int32_t L_35 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_33, (int32_t)L_34)), (int32_t)1)); InputDeviceDescription_tDCF3D4C660B97F28D8AB46D82C0BA8EA727E48C3 L_36 = (L_32)->GetAt(static_cast<il2cpp_array_size_t>(L_35)); NullCheck(L_29); (L_29)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_30, (int32_t)L_31)), (int32_t)1))), (InputDeviceDescription_tDCF3D4C660B97F28D8AB46D82C0BA8EA727E48C3 )L_36); int32_t L_37 = V_1; ___i1 = (int32_t)L_37; } IL_0067: { int32_t L_38 = ___i1; int32_t L_39 = ___n2; if ((((int32_t)L_38) <= ((int32_t)((int32_t)((int32_t)L_39/(int32_t)2))))) { goto IL_000e; } } IL_006d: { InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3* L_40 = ___keys0; int32_t L_41 = ___lo3; int32_t L_42 = ___i1; InputDeviceDescription_tDCF3D4C660B97F28D8AB46D82C0BA8EA727E48C3 L_43 = V_0; NullCheck(L_40); (L_40)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_41, (int32_t)L_42)), (int32_t)1))), (InputDeviceDescription_tDCF3D4C660B97F28D8AB46D82C0BA8EA727E48C3 )L_43); return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<UnityEngine.InputSystem.Layouts.InputDeviceDescription>::InsertionSort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_InsertionSort_mACE97302B6B83CF732DA4FEF651D1949A3DAE0DE_gshared (InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3* ___keys0, int32_t ___lo1, int32_t ___hi2, Comparison_1_tC442DCC0ACA3EDEF66ACEF4439730285E1662137 * ___comparer3, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; InputDeviceDescription_tDCF3D4C660B97F28D8AB46D82C0BA8EA727E48C3 V_2; memset((&V_2), 0, sizeof(V_2)); { int32_t L_0 = ___lo1; V_0 = (int32_t)L_0; goto IL_0049; } IL_0004: { int32_t L_1 = V_0; V_1 = (int32_t)L_1; InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3* L_2 = ___keys0; int32_t L_3 = V_0; NullCheck(L_2); int32_t L_4 = ((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)1)); InputDeviceDescription_tDCF3D4C660B97F28D8AB46D82C0BA8EA727E48C3 L_5 = (L_2)->GetAt(static_cast<il2cpp_array_size_t>(L_4)); V_2 = (InputDeviceDescription_tDCF3D4C660B97F28D8AB46D82C0BA8EA727E48C3 )L_5; goto IL_0026; } IL_0012: { InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3* L_6 = ___keys0; int32_t L_7 = V_1; InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3* L_8 = ___keys0; int32_t L_9 = V_1; NullCheck(L_8); int32_t L_10 = L_9; InputDeviceDescription_tDCF3D4C660B97F28D8AB46D82C0BA8EA727E48C3 L_11 = (L_8)->GetAt(static_cast<il2cpp_array_size_t>(L_10)); NullCheck(L_6); (L_6)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add((int32_t)L_7, (int32_t)1))), (InputDeviceDescription_tDCF3D4C660B97F28D8AB46D82C0BA8EA727E48C3 )L_11); int32_t L_12 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_12, (int32_t)1)); } IL_0026: { int32_t L_13 = V_1; int32_t L_14 = ___lo1; if ((((int32_t)L_13) < ((int32_t)L_14))) { goto IL_003b; } } { Comparison_1_tC442DCC0ACA3EDEF66ACEF4439730285E1662137 * L_15 = ___comparer3; InputDeviceDescription_tDCF3D4C660B97F28D8AB46D82C0BA8EA727E48C3 L_16 = V_2; InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3* L_17 = ___keys0; int32_t L_18 = V_1; NullCheck(L_17); int32_t L_19 = L_18; InputDeviceDescription_tDCF3D4C660B97F28D8AB46D82C0BA8EA727E48C3 L_20 = (L_17)->GetAt(static_cast<il2cpp_array_size_t>(L_19)); NullCheck((Comparison_1_tC442DCC0ACA3EDEF66ACEF4439730285E1662137 *)L_15); int32_t L_21; L_21 = (( int32_t (*) (Comparison_1_tC442DCC0ACA3EDEF66ACEF4439730285E1662137 *, InputDeviceDescription_tDCF3D4C660B97F28D8AB46D82C0BA8EA727E48C3 , InputDeviceDescription_tDCF3D4C660B97F28D8AB46D82C0BA8EA727E48C3 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_tC442DCC0ACA3EDEF66ACEF4439730285E1662137 *)L_15, (InputDeviceDescription_tDCF3D4C660B97F28D8AB46D82C0BA8EA727E48C3 )L_16, (InputDeviceDescription_tDCF3D4C660B97F28D8AB46D82C0BA8EA727E48C3 )L_20, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_21) < ((int32_t)0))) { goto IL_0012; } } IL_003b: { InputDeviceDescriptionU5BU5D_t0B0052A6A82E11704693B019B883DB21010905C3* L_22 = ___keys0; int32_t L_23 = V_1; InputDeviceDescription_tDCF3D4C660B97F28D8AB46D82C0BA8EA727E48C3 L_24 = V_2; NullCheck(L_22); (L_22)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add((int32_t)L_23, (int32_t)1))), (InputDeviceDescription_tDCF3D4C660B97F28D8AB46D82C0BA8EA727E48C3 )L_24); int32_t L_25 = V_0; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_25, (int32_t)1)); } IL_0049: { int32_t L_26 = V_0; int32_t L_27 = ___hi2; if ((((int32_t)L_26) < ((int32_t)L_27))) { goto IL_0004; } } { return; } } #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Void System.Collections.Generic.ArraySortHelper`1<UnityEngine.InputSystem.LowLevel.InputEventPtr>::Sort(T[],System.Int32,System.Int32,System.Collections.Generic.IComparer`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Sort_m86EA125CA96BD319C956605357A79F77FCF444D2_gshared (InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A* ___keys0, int32_t ___index1, int32_t ___length2, RuntimeObject* ___comparer3, const RuntimeMethod* method) { Exception_t * V_0 = NULL; il2cpp::utils::ExceptionSupportStack<RuntimeObject*, 1> __active_exceptions; il2cpp::utils::ExceptionSupportStack<int32_t, 2> __leave_targets; IL_0000: try { // begin try (depth: 1) { RuntimeObject* L_0 = ___comparer3; if (L_0) { goto IL_000a; } } IL_0003: { Comparer_1_tCD0C98BC45CDCF14015618213D400E9F35574EBA * L_1; L_1 = (( Comparer_1_tCD0C98BC45CDCF14015618213D400E9F35574EBA * (*) (const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)->methodPointer)(/*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)); ___comparer3 = (RuntimeObject*)L_1; } IL_000a: { InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A* L_2 = ___keys0; int32_t L_3 = ___index1; int32_t L_4 = ___length2; RuntimeObject* L_5 = ___comparer3; RuntimeObject* L_6 = (RuntimeObject*)L_5; Comparison_1_t9B89F606416E5AC3B5A40CA3B9554DC9DDFFEA50 * L_7 = (Comparison_1_t9B89F606416E5AC3B5A40CA3B9554DC9DDFFEA50 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 4)); (( void (*) (Comparison_1_t9B89F606416E5AC3B5A40CA3B9554DC9DDFFEA50 *, RuntimeObject *, intptr_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 5)->methodPointer)(L_7, (RuntimeObject *)L_6, (intptr_t)((intptr_t)GetInterfaceMethodInfo(L_6, 0, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 3))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 5)); (( void (*) (InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A*, int32_t, int32_t, Comparison_1_t9B89F606416E5AC3B5A40CA3B9554DC9DDFFEA50 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)->methodPointer)((InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A*)L_2, (int32_t)L_3, (int32_t)L_4, (Comparison_1_t9B89F606416E5AC3B5A40CA3B9554DC9DDFFEA50 *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)); goto IL_0037; } } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&IndexOutOfRangeException_tDC9EF7A0346CE39E54DA1083F07BE6DFC3CE2EDD_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_0021; } if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&Exception_t_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_002a; } throw e; } CATCH_0021: { // begin catch(System.IndexOutOfRangeException) RuntimeObject* L_8 = ___comparer3; IntrospectiveSortUtilities_ThrowOrIgnoreBadComparer_mE23A8103696FA67F874E7DA86625BB3921DB801F((RuntimeObject *)L_8, /*hidden argument*/NULL); IL2CPP_POP_ACTIVE_EXCEPTION(); goto IL_0037; } // end catch (depth: 1) CATCH_002a: { // begin catch(System.Exception) V_0 = (Exception_t *)((Exception_t *)IL2CPP_GET_ACTIVE_EXCEPTION(Exception_t *)); Exception_t * L_9 = V_0; InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB * L_10 = (InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB *)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB_il2cpp_TypeInfo_var))); InvalidOperationException__ctor_m4A65916B1316FBF45ECDF1FF7FAC9E3CA30C112C(L_10, (String_t*)((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral6EDB6C049ED9617FA335A262A29BF30B15221AEA)), (Exception_t *)L_9, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_10, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArraySortHelper_1_Sort_m86EA125CA96BD319C956605357A79F77FCF444D2_RuntimeMethod_var))); } // end catch (depth: 1) IL_0037: { return; } } // System.Int32 System.Collections.Generic.ArraySortHelper`1<UnityEngine.InputSystem.LowLevel.InputEventPtr>::BinarySearch(T[],System.Int32,System.Int32,T,System.Collections.Generic.IComparer`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t ArraySortHelper_1_BinarySearch_mA1B314CD65077DFAC7EF6C3C22C0AA90DCE59AF6_gshared (InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A* ___array0, int32_t ___index1, int32_t ___length2, InputEventPtr_tC7799829CE3FDCA9E191C7BC946ABE0DB17B377D ___value3, RuntimeObject* ___comparer4, const RuntimeMethod* method) { int32_t V_0 = 0; Exception_t * V_1 = NULL; il2cpp::utils::ExceptionSupportStack<RuntimeObject*, 1> __active_exceptions; il2cpp::utils::ExceptionSupportStack<int32_t, 1> __leave_targets; IL_0000: try { // begin try (depth: 1) { RuntimeObject* L_0 = ___comparer4; if (L_0) { goto IL_000b; } } IL_0004: { Comparer_1_tCD0C98BC45CDCF14015618213D400E9F35574EBA * L_1; L_1 = (( Comparer_1_tCD0C98BC45CDCF14015618213D400E9F35574EBA * (*) (const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)->methodPointer)(/*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)); ___comparer4 = (RuntimeObject*)L_1; } IL_000b: { InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A* L_2 = ___array0; int32_t L_3 = ___index1; int32_t L_4 = ___length2; InputEventPtr_tC7799829CE3FDCA9E191C7BC946ABE0DB17B377D L_5 = ___value3; RuntimeObject* L_6 = ___comparer4; int32_t L_7; L_7 = (( int32_t (*) (InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A*, int32_t, int32_t, InputEventPtr_tC7799829CE3FDCA9E191C7BC946ABE0DB17B377D , RuntimeObject*, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 8)->methodPointer)((InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A*)L_2, (int32_t)L_3, (int32_t)L_4, (InputEventPtr_tC7799829CE3FDCA9E191C7BC946ABE0DB17B377D )L_5, (RuntimeObject*)L_6, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 8)); V_0 = (int32_t)L_7; goto IL_0026; } } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&Exception_t_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_0019; } throw e; } CATCH_0019: { // begin catch(System.Exception) V_1 = (Exception_t *)((Exception_t *)IL2CPP_GET_ACTIVE_EXCEPTION(Exception_t *)); Exception_t * L_8 = V_1; InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB * L_9 = (InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB *)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB_il2cpp_TypeInfo_var))); InvalidOperationException__ctor_m4A65916B1316FBF45ECDF1FF7FAC9E3CA30C112C(L_9, (String_t*)((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral6EDB6C049ED9617FA335A262A29BF30B15221AEA)), (Exception_t *)L_8, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_9, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArraySortHelper_1_BinarySearch_mA1B314CD65077DFAC7EF6C3C22C0AA90DCE59AF6_RuntimeMethod_var))); } // end catch (depth: 1) IL_0026: { int32_t L_10 = V_0; return (int32_t)L_10; } } // System.Void System.Collections.Generic.ArraySortHelper`1<UnityEngine.InputSystem.LowLevel.InputEventPtr>::Sort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Sort_mA706ACFB43D2D40E51A98799CE904520B02A4631_gshared (InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A* ___keys0, int32_t ___index1, int32_t ___length2, Comparison_1_t9B89F606416E5AC3B5A40CA3B9554DC9DDFFEA50 * ___comparer3, const RuntimeMethod* method) { Exception_t * V_0 = NULL; il2cpp::utils::ExceptionSupportStack<RuntimeObject*, 1> __active_exceptions; il2cpp::utils::ExceptionSupportStack<int32_t, 2> __leave_targets; IL_0000: try { // begin try (depth: 1) InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A* L_0 = ___keys0; int32_t L_1 = ___index1; int32_t L_2 = ___length2; Comparison_1_t9B89F606416E5AC3B5A40CA3B9554DC9DDFFEA50 * L_3 = ___comparer3; (( void (*) (InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A*, int32_t, int32_t, Comparison_1_t9B89F606416E5AC3B5A40CA3B9554DC9DDFFEA50 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)->methodPointer)((InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A*)L_0, (int32_t)L_1, (int32_t)L_2, (Comparison_1_t9B89F606416E5AC3B5A40CA3B9554DC9DDFFEA50 *)L_3, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)); goto IL_0021; } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&IndexOutOfRangeException_tDC9EF7A0346CE39E54DA1083F07BE6DFC3CE2EDD_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_000b; } if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&Exception_t_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_0014; } throw e; } CATCH_000b: { // begin catch(System.IndexOutOfRangeException) Comparison_1_t9B89F606416E5AC3B5A40CA3B9554DC9DDFFEA50 * L_4 = ___comparer3; IntrospectiveSortUtilities_ThrowOrIgnoreBadComparer_mE23A8103696FA67F874E7DA86625BB3921DB801F((RuntimeObject *)L_4, /*hidden argument*/NULL); IL2CPP_POP_ACTIVE_EXCEPTION(); goto IL_0021; } // end catch (depth: 1) CATCH_0014: { // begin catch(System.Exception) V_0 = (Exception_t *)((Exception_t *)IL2CPP_GET_ACTIVE_EXCEPTION(Exception_t *)); Exception_t * L_5 = V_0; InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB * L_6 = (InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB *)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB_il2cpp_TypeInfo_var))); InvalidOperationException__ctor_m4A65916B1316FBF45ECDF1FF7FAC9E3CA30C112C(L_6, (String_t*)((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral6EDB6C049ED9617FA335A262A29BF30B15221AEA)), (Exception_t *)L_5, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_6, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArraySortHelper_1_Sort_mA706ACFB43D2D40E51A98799CE904520B02A4631_RuntimeMethod_var))); } // end catch (depth: 1) IL_0021: { return; } } // System.Int32 System.Collections.Generic.ArraySortHelper`1<UnityEngine.InputSystem.LowLevel.InputEventPtr>::InternalBinarySearch(T[],System.Int32,System.Int32,T,System.Collections.Generic.IComparer`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t ArraySortHelper_1_InternalBinarySearch_mD95E3282073D550723CAA99D4261E762687FEFB3_gshared (InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A* ___array0, int32_t ___index1, int32_t ___length2, InputEventPtr_tC7799829CE3FDCA9E191C7BC946ABE0DB17B377D ___value3, RuntimeObject* ___comparer4, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; int32_t V_2 = 0; int32_t V_3 = 0; { int32_t L_0 = ___index1; V_0 = (int32_t)L_0; int32_t L_1 = ___index1; int32_t L_2 = ___length2; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_1, (int32_t)L_2)), (int32_t)1)); goto IL_0035; } IL_000a: { int32_t L_3 = V_0; int32_t L_4 = V_1; int32_t L_5 = V_0; V_2 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)((int32_t)((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_4, (int32_t)L_5))>>(int32_t)1)))); RuntimeObject* L_6 = ___comparer4; InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A* L_7 = ___array0; int32_t L_8 = V_2; NullCheck(L_7); int32_t L_9 = L_8; InputEventPtr_tC7799829CE3FDCA9E191C7BC946ABE0DB17B377D L_10 = (L_7)->GetAt(static_cast<il2cpp_array_size_t>(L_9)); InputEventPtr_tC7799829CE3FDCA9E191C7BC946ABE0DB17B377D L_11 = ___value3; NullCheck((RuntimeObject*)L_6); int32_t L_12; L_12 = InterfaceFuncInvoker2< int32_t, InputEventPtr_tC7799829CE3FDCA9E191C7BC946ABE0DB17B377D , InputEventPtr_tC7799829CE3FDCA9E191C7BC946ABE0DB17B377D >::Invoke(0 /* System.Int32 System.Collections.Generic.IComparer`1<UnityEngine.InputSystem.LowLevel.InputEventPtr>::Compare(T,T) */, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 3), (RuntimeObject*)L_6, (InputEventPtr_tC7799829CE3FDCA9E191C7BC946ABE0DB17B377D )L_10, (InputEventPtr_tC7799829CE3FDCA9E191C7BC946ABE0DB17B377D )L_11); V_3 = (int32_t)L_12; int32_t L_13 = V_3; if (L_13) { goto IL_0027; } } { int32_t L_14 = V_2; return (int32_t)L_14; } IL_0027: { int32_t L_15 = V_3; if ((((int32_t)L_15) >= ((int32_t)0))) { goto IL_0031; } } { int32_t L_16 = V_2; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_16, (int32_t)1)); goto IL_0035; } IL_0031: { int32_t L_17 = V_2; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_17, (int32_t)1)); } IL_0035: { int32_t L_18 = V_0; int32_t L_19 = V_1; if ((((int32_t)L_18) <= ((int32_t)L_19))) { goto IL_000a; } } { int32_t L_20 = V_0; return (int32_t)((~L_20)); } } // System.Void System.Collections.Generic.ArraySortHelper`1<UnityEngine.InputSystem.LowLevel.InputEventPtr>::SwapIfGreater(T[],System.Comparison`1<T>,System.Int32,System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_SwapIfGreater_m8A2ADE1C7C16998C157D384CDE925AB4DBAF284F_gshared (InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A* ___keys0, Comparison_1_t9B89F606416E5AC3B5A40CA3B9554DC9DDFFEA50 * ___comparer1, int32_t ___a2, int32_t ___b3, const RuntimeMethod* method) { InputEventPtr_tC7799829CE3FDCA9E191C7BC946ABE0DB17B377D V_0; memset((&V_0), 0, sizeof(V_0)); { int32_t L_0 = ___a2; int32_t L_1 = ___b3; if ((((int32_t)L_0) == ((int32_t)L_1))) { goto IL_0039; } } { Comparison_1_t9B89F606416E5AC3B5A40CA3B9554DC9DDFFEA50 * L_2 = ___comparer1; InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A* L_3 = ___keys0; int32_t L_4 = ___a2; NullCheck(L_3); int32_t L_5 = L_4; InputEventPtr_tC7799829CE3FDCA9E191C7BC946ABE0DB17B377D L_6 = (L_3)->GetAt(static_cast<il2cpp_array_size_t>(L_5)); InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A* L_7 = ___keys0; int32_t L_8 = ___b3; NullCheck(L_7); int32_t L_9 = L_8; InputEventPtr_tC7799829CE3FDCA9E191C7BC946ABE0DB17B377D L_10 = (L_7)->GetAt(static_cast<il2cpp_array_size_t>(L_9)); NullCheck((Comparison_1_t9B89F606416E5AC3B5A40CA3B9554DC9DDFFEA50 *)L_2); int32_t L_11; L_11 = (( int32_t (*) (Comparison_1_t9B89F606416E5AC3B5A40CA3B9554DC9DDFFEA50 *, InputEventPtr_tC7799829CE3FDCA9E191C7BC946ABE0DB17B377D , InputEventPtr_tC7799829CE3FDCA9E191C7BC946ABE0DB17B377D , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t9B89F606416E5AC3B5A40CA3B9554DC9DDFFEA50 *)L_2, (InputEventPtr_tC7799829CE3FDCA9E191C7BC946ABE0DB17B377D )L_6, (InputEventPtr_tC7799829CE3FDCA9E191C7BC946ABE0DB17B377D )L_10, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_11) <= ((int32_t)0))) { goto IL_0039; } } { InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A* L_12 = ___keys0; int32_t L_13 = ___a2; NullCheck(L_12); int32_t L_14 = L_13; InputEventPtr_tC7799829CE3FDCA9E191C7BC946ABE0DB17B377D L_15 = (L_12)->GetAt(static_cast<il2cpp_array_size_t>(L_14)); V_0 = (InputEventPtr_tC7799829CE3FDCA9E191C7BC946ABE0DB17B377D )L_15; InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A* L_16 = ___keys0; int32_t L_17 = ___a2; InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A* L_18 = ___keys0; int32_t L_19 = ___b3; NullCheck(L_18); int32_t L_20 = L_19; InputEventPtr_tC7799829CE3FDCA9E191C7BC946ABE0DB17B377D L_21 = (L_18)->GetAt(static_cast<il2cpp_array_size_t>(L_20)); NullCheck(L_16); (L_16)->SetAt(static_cast<il2cpp_array_size_t>(L_17), (InputEventPtr_tC7799829CE3FDCA9E191C7BC946ABE0DB17B377D )L_21); InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A* L_22 = ___keys0; int32_t L_23 = ___b3; InputEventPtr_tC7799829CE3FDCA9E191C7BC946ABE0DB17B377D L_24 = V_0; NullCheck(L_22); (L_22)->SetAt(static_cast<il2cpp_array_size_t>(L_23), (InputEventPtr_tC7799829CE3FDCA9E191C7BC946ABE0DB17B377D )L_24); } IL_0039: { return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<UnityEngine.InputSystem.LowLevel.InputEventPtr>::Swap(T[],System.Int32,System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Swap_m81B2A0DE5459CE79ECC5A7C3B0F056EC76729EFC_gshared (InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A* ___a0, int32_t ___i1, int32_t ___j2, const RuntimeMethod* method) { InputEventPtr_tC7799829CE3FDCA9E191C7BC946ABE0DB17B377D V_0; memset((&V_0), 0, sizeof(V_0)); { int32_t L_0 = ___i1; int32_t L_1 = ___j2; if ((((int32_t)L_0) == ((int32_t)L_1))) { goto IL_0022; } } { InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A* L_2 = ___a0; int32_t L_3 = ___i1; NullCheck(L_2); int32_t L_4 = L_3; InputEventPtr_tC7799829CE3FDCA9E191C7BC946ABE0DB17B377D L_5 = (L_2)->GetAt(static_cast<il2cpp_array_size_t>(L_4)); V_0 = (InputEventPtr_tC7799829CE3FDCA9E191C7BC946ABE0DB17B377D )L_5; InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A* L_6 = ___a0; int32_t L_7 = ___i1; InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A* L_8 = ___a0; int32_t L_9 = ___j2; NullCheck(L_8); int32_t L_10 = L_9; InputEventPtr_tC7799829CE3FDCA9E191C7BC946ABE0DB17B377D L_11 = (L_8)->GetAt(static_cast<il2cpp_array_size_t>(L_10)); NullCheck(L_6); (L_6)->SetAt(static_cast<il2cpp_array_size_t>(L_7), (InputEventPtr_tC7799829CE3FDCA9E191C7BC946ABE0DB17B377D )L_11); InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A* L_12 = ___a0; int32_t L_13 = ___j2; InputEventPtr_tC7799829CE3FDCA9E191C7BC946ABE0DB17B377D L_14 = V_0; NullCheck(L_12); (L_12)->SetAt(static_cast<il2cpp_array_size_t>(L_13), (InputEventPtr_tC7799829CE3FDCA9E191C7BC946ABE0DB17B377D )L_14); } IL_0022: { return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<UnityEngine.InputSystem.LowLevel.InputEventPtr>::IntrospectiveSort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_IntrospectiveSort_m0FE9E9D31833B0AC29DDFD0DE414445A2D5A400C_gshared (InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A* ___keys0, int32_t ___left1, int32_t ___length2, Comparison_1_t9B89F606416E5AC3B5A40CA3B9554DC9DDFFEA50 * ___comparer3, const RuntimeMethod* method) { { int32_t L_0 = ___length2; if ((((int32_t)L_0) >= ((int32_t)2))) { goto IL_0005; } } { return; } IL_0005: { InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A* L_1 = ___keys0; int32_t L_2 = ___left1; int32_t L_3 = ___length2; int32_t L_4 = ___left1; InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A* L_5 = ___keys0; NullCheck(L_5); int32_t L_6; L_6 = IntrospectiveSortUtilities_FloorLog2_m05ECB6CAC7A23087D9EC2C2A4DDCFE12272C3872((int32_t)((int32_t)((int32_t)(((RuntimeArray*)L_5)->max_length))), /*hidden argument*/NULL); Comparison_1_t9B89F606416E5AC3B5A40CA3B9554DC9DDFFEA50 * L_7 = ___comparer3; (( void (*) (InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A*, int32_t, int32_t, int32_t, Comparison_1_t9B89F606416E5AC3B5A40CA3B9554DC9DDFFEA50 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)->methodPointer)((InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A*)L_1, (int32_t)L_2, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)L_4)), (int32_t)1)), (int32_t)((int32_t)il2cpp_codegen_multiply((int32_t)2, (int32_t)L_6)), (Comparison_1_t9B89F606416E5AC3B5A40CA3B9554DC9DDFFEA50 *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)); return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<UnityEngine.InputSystem.LowLevel.InputEventPtr>::IntroSort(T[],System.Int32,System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_IntroSort_m140A0EED5889BB1FA03D6745ABD6C3FAF93C1263_gshared (InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A* ___keys0, int32_t ___lo1, int32_t ___hi2, int32_t ___depthLimit3, Comparison_1_t9B89F606416E5AC3B5A40CA3B9554DC9DDFFEA50 * ___comparer4, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; { goto IL_0086; } IL_0005: { int32_t L_0 = ___hi2; int32_t L_1 = ___lo1; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_0, (int32_t)L_1)), (int32_t)1)); int32_t L_2 = V_0; if ((((int32_t)L_2) > ((int32_t)((int32_t)16)))) { goto IL_0056; } } { int32_t L_3 = V_0; if ((!(((uint32_t)L_3) == ((uint32_t)1)))) { goto IL_0015; } } { return; } IL_0015: { int32_t L_4 = V_0; if ((!(((uint32_t)L_4) == ((uint32_t)2)))) { goto IL_0024; } } { InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A* L_5 = ___keys0; Comparison_1_t9B89F606416E5AC3B5A40CA3B9554DC9DDFFEA50 * L_6 = ___comparer4; int32_t L_7 = ___lo1; int32_t L_8 = ___hi2; (( void (*) (InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A*, Comparison_1_t9B89F606416E5AC3B5A40CA3B9554DC9DDFFEA50 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A*)L_5, (Comparison_1_t9B89F606416E5AC3B5A40CA3B9554DC9DDFFEA50 *)L_6, (int32_t)L_7, (int32_t)L_8, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); return; } IL_0024: { int32_t L_9 = V_0; if ((!(((uint32_t)L_9) == ((uint32_t)3)))) { goto IL_004b; } } { InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A* L_10 = ___keys0; Comparison_1_t9B89F606416E5AC3B5A40CA3B9554DC9DDFFEA50 * L_11 = ___comparer4; int32_t L_12 = ___lo1; int32_t L_13 = ___hi2; (( void (*) (InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A*, Comparison_1_t9B89F606416E5AC3B5A40CA3B9554DC9DDFFEA50 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A*)L_10, (Comparison_1_t9B89F606416E5AC3B5A40CA3B9554DC9DDFFEA50 *)L_11, (int32_t)L_12, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_13, (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A* L_14 = ___keys0; Comparison_1_t9B89F606416E5AC3B5A40CA3B9554DC9DDFFEA50 * L_15 = ___comparer4; int32_t L_16 = ___lo1; int32_t L_17 = ___hi2; (( void (*) (InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A*, Comparison_1_t9B89F606416E5AC3B5A40CA3B9554DC9DDFFEA50 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A*)L_14, (Comparison_1_t9B89F606416E5AC3B5A40CA3B9554DC9DDFFEA50 *)L_15, (int32_t)L_16, (int32_t)L_17, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A* L_18 = ___keys0; Comparison_1_t9B89F606416E5AC3B5A40CA3B9554DC9DDFFEA50 * L_19 = ___comparer4; int32_t L_20 = ___hi2; int32_t L_21 = ___hi2; (( void (*) (InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A*, Comparison_1_t9B89F606416E5AC3B5A40CA3B9554DC9DDFFEA50 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A*)L_18, (Comparison_1_t9B89F606416E5AC3B5A40CA3B9554DC9DDFFEA50 *)L_19, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_20, (int32_t)1)), (int32_t)L_21, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); return; } IL_004b: { InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A* L_22 = ___keys0; int32_t L_23 = ___lo1; int32_t L_24 = ___hi2; Comparison_1_t9B89F606416E5AC3B5A40CA3B9554DC9DDFFEA50 * L_25 = ___comparer4; (( void (*) (InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A*, int32_t, int32_t, Comparison_1_t9B89F606416E5AC3B5A40CA3B9554DC9DDFFEA50 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 12)->methodPointer)((InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A*)L_22, (int32_t)L_23, (int32_t)L_24, (Comparison_1_t9B89F606416E5AC3B5A40CA3B9554DC9DDFFEA50 *)L_25, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 12)); return; } IL_0056: { int32_t L_26 = ___depthLimit3; if (L_26) { goto IL_0064; } } { InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A* L_27 = ___keys0; int32_t L_28 = ___lo1; int32_t L_29 = ___hi2; Comparison_1_t9B89F606416E5AC3B5A40CA3B9554DC9DDFFEA50 * L_30 = ___comparer4; (( void (*) (InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A*, int32_t, int32_t, Comparison_1_t9B89F606416E5AC3B5A40CA3B9554DC9DDFFEA50 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 13)->methodPointer)((InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A*)L_27, (int32_t)L_28, (int32_t)L_29, (Comparison_1_t9B89F606416E5AC3B5A40CA3B9554DC9DDFFEA50 *)L_30, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 13)); return; } IL_0064: { int32_t L_31 = ___depthLimit3; ___depthLimit3 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_31, (int32_t)1)); InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A* L_32 = ___keys0; int32_t L_33 = ___lo1; int32_t L_34 = ___hi2; Comparison_1_t9B89F606416E5AC3B5A40CA3B9554DC9DDFFEA50 * L_35 = ___comparer4; int32_t L_36; L_36 = (( int32_t (*) (InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A*, int32_t, int32_t, Comparison_1_t9B89F606416E5AC3B5A40CA3B9554DC9DDFFEA50 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 14)->methodPointer)((InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A*)L_32, (int32_t)L_33, (int32_t)L_34, (Comparison_1_t9B89F606416E5AC3B5A40CA3B9554DC9DDFFEA50 *)L_35, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 14)); V_1 = (int32_t)L_36; InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A* L_37 = ___keys0; int32_t L_38 = V_1; int32_t L_39 = ___hi2; int32_t L_40 = ___depthLimit3; Comparison_1_t9B89F606416E5AC3B5A40CA3B9554DC9DDFFEA50 * L_41 = ___comparer4; (( void (*) (InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A*, int32_t, int32_t, int32_t, Comparison_1_t9B89F606416E5AC3B5A40CA3B9554DC9DDFFEA50 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)->methodPointer)((InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A*)L_37, (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_38, (int32_t)1)), (int32_t)L_39, (int32_t)L_40, (Comparison_1_t9B89F606416E5AC3B5A40CA3B9554DC9DDFFEA50 *)L_41, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)); int32_t L_42 = V_1; ___hi2 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_42, (int32_t)1)); } IL_0086: { int32_t L_43 = ___hi2; int32_t L_44 = ___lo1; if ((((int32_t)L_43) > ((int32_t)L_44))) { goto IL_0005; } } { return; } } // System.Int32 System.Collections.Generic.ArraySortHelper`1<UnityEngine.InputSystem.LowLevel.InputEventPtr>::PickPivotAndPartition(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t ArraySortHelper_1_PickPivotAndPartition_m7EA0203F7E51B67175FCC66EE0B4B68672C04823_gshared (InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A* ___keys0, int32_t ___lo1, int32_t ___hi2, Comparison_1_t9B89F606416E5AC3B5A40CA3B9554DC9DDFFEA50 * ___comparer3, const RuntimeMethod* method) { int32_t V_0 = 0; InputEventPtr_tC7799829CE3FDCA9E191C7BC946ABE0DB17B377D V_1; memset((&V_1), 0, sizeof(V_1)); int32_t V_2 = 0; int32_t V_3 = 0; { int32_t L_0 = ___lo1; int32_t L_1 = ___hi2; int32_t L_2 = ___lo1; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_0, (int32_t)((int32_t)((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_1, (int32_t)L_2))/(int32_t)2)))); InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A* L_3 = ___keys0; Comparison_1_t9B89F606416E5AC3B5A40CA3B9554DC9DDFFEA50 * L_4 = ___comparer3; int32_t L_5 = ___lo1; int32_t L_6 = V_0; (( void (*) (InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A*, Comparison_1_t9B89F606416E5AC3B5A40CA3B9554DC9DDFFEA50 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A*)L_3, (Comparison_1_t9B89F606416E5AC3B5A40CA3B9554DC9DDFFEA50 *)L_4, (int32_t)L_5, (int32_t)L_6, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A* L_7 = ___keys0; Comparison_1_t9B89F606416E5AC3B5A40CA3B9554DC9DDFFEA50 * L_8 = ___comparer3; int32_t L_9 = ___lo1; int32_t L_10 = ___hi2; (( void (*) (InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A*, Comparison_1_t9B89F606416E5AC3B5A40CA3B9554DC9DDFFEA50 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A*)L_7, (Comparison_1_t9B89F606416E5AC3B5A40CA3B9554DC9DDFFEA50 *)L_8, (int32_t)L_9, (int32_t)L_10, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A* L_11 = ___keys0; Comparison_1_t9B89F606416E5AC3B5A40CA3B9554DC9DDFFEA50 * L_12 = ___comparer3; int32_t L_13 = V_0; int32_t L_14 = ___hi2; (( void (*) (InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A*, Comparison_1_t9B89F606416E5AC3B5A40CA3B9554DC9DDFFEA50 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A*)L_11, (Comparison_1_t9B89F606416E5AC3B5A40CA3B9554DC9DDFFEA50 *)L_12, (int32_t)L_13, (int32_t)L_14, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A* L_15 = ___keys0; int32_t L_16 = V_0; NullCheck(L_15); int32_t L_17 = L_16; InputEventPtr_tC7799829CE3FDCA9E191C7BC946ABE0DB17B377D L_18 = (L_15)->GetAt(static_cast<il2cpp_array_size_t>(L_17)); V_1 = (InputEventPtr_tC7799829CE3FDCA9E191C7BC946ABE0DB17B377D )L_18; InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A* L_19 = ___keys0; int32_t L_20 = V_0; int32_t L_21 = ___hi2; (( void (*) (InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A*)L_19, (int32_t)L_20, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_21, (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); int32_t L_22 = ___lo1; V_2 = (int32_t)L_22; int32_t L_23 = ___hi2; V_3 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_23, (int32_t)1)); goto IL_0073; } IL_003d: { Comparison_1_t9B89F606416E5AC3B5A40CA3B9554DC9DDFFEA50 * L_24 = ___comparer3; InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A* L_25 = ___keys0; int32_t L_26 = V_2; int32_t L_27 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_26, (int32_t)1)); V_2 = (int32_t)L_27; NullCheck(L_25); int32_t L_28 = L_27; InputEventPtr_tC7799829CE3FDCA9E191C7BC946ABE0DB17B377D L_29 = (L_25)->GetAt(static_cast<il2cpp_array_size_t>(L_28)); InputEventPtr_tC7799829CE3FDCA9E191C7BC946ABE0DB17B377D L_30 = V_1; NullCheck((Comparison_1_t9B89F606416E5AC3B5A40CA3B9554DC9DDFFEA50 *)L_24); int32_t L_31; L_31 = (( int32_t (*) (Comparison_1_t9B89F606416E5AC3B5A40CA3B9554DC9DDFFEA50 *, InputEventPtr_tC7799829CE3FDCA9E191C7BC946ABE0DB17B377D , InputEventPtr_tC7799829CE3FDCA9E191C7BC946ABE0DB17B377D , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t9B89F606416E5AC3B5A40CA3B9554DC9DDFFEA50 *)L_24, (InputEventPtr_tC7799829CE3FDCA9E191C7BC946ABE0DB17B377D )L_29, (InputEventPtr_tC7799829CE3FDCA9E191C7BC946ABE0DB17B377D )L_30, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_31) < ((int32_t)0))) { goto IL_003d; } } IL_0052: { Comparison_1_t9B89F606416E5AC3B5A40CA3B9554DC9DDFFEA50 * L_32 = ___comparer3; InputEventPtr_tC7799829CE3FDCA9E191C7BC946ABE0DB17B377D L_33 = V_1; InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A* L_34 = ___keys0; int32_t L_35 = V_3; int32_t L_36 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_35, (int32_t)1)); V_3 = (int32_t)L_36; NullCheck(L_34); int32_t L_37 = L_36; InputEventPtr_tC7799829CE3FDCA9E191C7BC946ABE0DB17B377D L_38 = (L_34)->GetAt(static_cast<il2cpp_array_size_t>(L_37)); NullCheck((Comparison_1_t9B89F606416E5AC3B5A40CA3B9554DC9DDFFEA50 *)L_32); int32_t L_39; L_39 = (( int32_t (*) (Comparison_1_t9B89F606416E5AC3B5A40CA3B9554DC9DDFFEA50 *, InputEventPtr_tC7799829CE3FDCA9E191C7BC946ABE0DB17B377D , InputEventPtr_tC7799829CE3FDCA9E191C7BC946ABE0DB17B377D , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t9B89F606416E5AC3B5A40CA3B9554DC9DDFFEA50 *)L_32, (InputEventPtr_tC7799829CE3FDCA9E191C7BC946ABE0DB17B377D )L_33, (InputEventPtr_tC7799829CE3FDCA9E191C7BC946ABE0DB17B377D )L_38, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_39) < ((int32_t)0))) { goto IL_0052; } } { int32_t L_40 = V_2; int32_t L_41 = V_3; if ((((int32_t)L_40) >= ((int32_t)L_41))) { goto IL_0077; } } { InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A* L_42 = ___keys0; int32_t L_43 = V_2; int32_t L_44 = V_3; (( void (*) (InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A*)L_42, (int32_t)L_43, (int32_t)L_44, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); } IL_0073: { int32_t L_45 = V_2; int32_t L_46 = V_3; if ((((int32_t)L_45) < ((int32_t)L_46))) { goto IL_003d; } } IL_0077: { InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A* L_47 = ___keys0; int32_t L_48 = V_2; int32_t L_49 = ___hi2; (( void (*) (InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A*)L_47, (int32_t)L_48, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_49, (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); int32_t L_50 = V_2; return (int32_t)L_50; } } // System.Void System.Collections.Generic.ArraySortHelper`1<UnityEngine.InputSystem.LowLevel.InputEventPtr>::Heapsort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Heapsort_m7342142D900771D18B7E8E3AE87B36E678E642B1_gshared (InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A* ___keys0, int32_t ___lo1, int32_t ___hi2, Comparison_1_t9B89F606416E5AC3B5A40CA3B9554DC9DDFFEA50 * ___comparer3, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; int32_t V_2 = 0; { int32_t L_0 = ___hi2; int32_t L_1 = ___lo1; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_0, (int32_t)L_1)), (int32_t)1)); int32_t L_2 = V_0; V_1 = (int32_t)((int32_t)((int32_t)L_2/(int32_t)2)); goto IL_001a; } IL_000c: { InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A* L_3 = ___keys0; int32_t L_4 = V_1; int32_t L_5 = V_0; int32_t L_6 = ___lo1; Comparison_1_t9B89F606416E5AC3B5A40CA3B9554DC9DDFFEA50 * L_7 = ___comparer3; (( void (*) (InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A*, int32_t, int32_t, int32_t, Comparison_1_t9B89F606416E5AC3B5A40CA3B9554DC9DDFFEA50 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)->methodPointer)((InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A*)L_3, (int32_t)L_4, (int32_t)L_5, (int32_t)L_6, (Comparison_1_t9B89F606416E5AC3B5A40CA3B9554DC9DDFFEA50 *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)); int32_t L_8 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_8, (int32_t)1)); } IL_001a: { int32_t L_9 = V_1; if ((((int32_t)L_9) >= ((int32_t)1))) { goto IL_000c; } } { int32_t L_10 = V_0; V_2 = (int32_t)L_10; goto IL_003e; } IL_0022: { InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A* L_11 = ___keys0; int32_t L_12 = ___lo1; int32_t L_13 = ___lo1; int32_t L_14 = V_2; (( void (*) (InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A*)L_11, (int32_t)L_12, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_13, (int32_t)L_14)), (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A* L_15 = ___keys0; int32_t L_16 = V_2; int32_t L_17 = ___lo1; Comparison_1_t9B89F606416E5AC3B5A40CA3B9554DC9DDFFEA50 * L_18 = ___comparer3; (( void (*) (InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A*, int32_t, int32_t, int32_t, Comparison_1_t9B89F606416E5AC3B5A40CA3B9554DC9DDFFEA50 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)->methodPointer)((InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A*)L_15, (int32_t)1, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_16, (int32_t)1)), (int32_t)L_17, (Comparison_1_t9B89F606416E5AC3B5A40CA3B9554DC9DDFFEA50 *)L_18, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)); int32_t L_19 = V_2; V_2 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_19, (int32_t)1)); } IL_003e: { int32_t L_20 = V_2; if ((((int32_t)L_20) > ((int32_t)1))) { goto IL_0022; } } { return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<UnityEngine.InputSystem.LowLevel.InputEventPtr>::DownHeap(T[],System.Int32,System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_DownHeap_m3F24A1388305A12BAC47B6B7BE5A8D29174E2881_gshared (InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A* ___keys0, int32_t ___i1, int32_t ___n2, int32_t ___lo3, Comparison_1_t9B89F606416E5AC3B5A40CA3B9554DC9DDFFEA50 * ___comparer4, const RuntimeMethod* method) { InputEventPtr_tC7799829CE3FDCA9E191C7BC946ABE0DB17B377D V_0; memset((&V_0), 0, sizeof(V_0)); int32_t V_1 = 0; { InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A* L_0 = ___keys0; int32_t L_1 = ___lo3; int32_t L_2 = ___i1; NullCheck(L_0); int32_t L_3 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_1, (int32_t)L_2)), (int32_t)1)); InputEventPtr_tC7799829CE3FDCA9E191C7BC946ABE0DB17B377D L_4 = (L_0)->GetAt(static_cast<il2cpp_array_size_t>(L_3)); V_0 = (InputEventPtr_tC7799829CE3FDCA9E191C7BC946ABE0DB17B377D )L_4; goto IL_0067; } IL_000e: { int32_t L_5 = ___i1; V_1 = (int32_t)((int32_t)il2cpp_codegen_multiply((int32_t)2, (int32_t)L_5)); int32_t L_6 = V_1; int32_t L_7 = ___n2; if ((((int32_t)L_6) >= ((int32_t)L_7))) { goto IL_0038; } } { Comparison_1_t9B89F606416E5AC3B5A40CA3B9554DC9DDFFEA50 * L_8 = ___comparer4; InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A* L_9 = ___keys0; int32_t L_10 = ___lo3; int32_t L_11 = V_1; NullCheck(L_9); int32_t L_12 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_10, (int32_t)L_11)), (int32_t)1)); InputEventPtr_tC7799829CE3FDCA9E191C7BC946ABE0DB17B377D L_13 = (L_9)->GetAt(static_cast<il2cpp_array_size_t>(L_12)); InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A* L_14 = ___keys0; int32_t L_15 = ___lo3; int32_t L_16 = V_1; NullCheck(L_14); int32_t L_17 = ((int32_t)il2cpp_codegen_add((int32_t)L_15, (int32_t)L_16)); InputEventPtr_tC7799829CE3FDCA9E191C7BC946ABE0DB17B377D L_18 = (L_14)->GetAt(static_cast<il2cpp_array_size_t>(L_17)); NullCheck((Comparison_1_t9B89F606416E5AC3B5A40CA3B9554DC9DDFFEA50 *)L_8); int32_t L_19; L_19 = (( int32_t (*) (Comparison_1_t9B89F606416E5AC3B5A40CA3B9554DC9DDFFEA50 *, InputEventPtr_tC7799829CE3FDCA9E191C7BC946ABE0DB17B377D , InputEventPtr_tC7799829CE3FDCA9E191C7BC946ABE0DB17B377D , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t9B89F606416E5AC3B5A40CA3B9554DC9DDFFEA50 *)L_8, (InputEventPtr_tC7799829CE3FDCA9E191C7BC946ABE0DB17B377D )L_13, (InputEventPtr_tC7799829CE3FDCA9E191C7BC946ABE0DB17B377D )L_18, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_19) >= ((int32_t)0))) { goto IL_0038; } } { int32_t L_20 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_20, (int32_t)1)); } IL_0038: { Comparison_1_t9B89F606416E5AC3B5A40CA3B9554DC9DDFFEA50 * L_21 = ___comparer4; InputEventPtr_tC7799829CE3FDCA9E191C7BC946ABE0DB17B377D L_22 = V_0; InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A* L_23 = ___keys0; int32_t L_24 = ___lo3; int32_t L_25 = V_1; NullCheck(L_23); int32_t L_26 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_24, (int32_t)L_25)), (int32_t)1)); InputEventPtr_tC7799829CE3FDCA9E191C7BC946ABE0DB17B377D L_27 = (L_23)->GetAt(static_cast<il2cpp_array_size_t>(L_26)); NullCheck((Comparison_1_t9B89F606416E5AC3B5A40CA3B9554DC9DDFFEA50 *)L_21); int32_t L_28; L_28 = (( int32_t (*) (Comparison_1_t9B89F606416E5AC3B5A40CA3B9554DC9DDFFEA50 *, InputEventPtr_tC7799829CE3FDCA9E191C7BC946ABE0DB17B377D , InputEventPtr_tC7799829CE3FDCA9E191C7BC946ABE0DB17B377D , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t9B89F606416E5AC3B5A40CA3B9554DC9DDFFEA50 *)L_21, (InputEventPtr_tC7799829CE3FDCA9E191C7BC946ABE0DB17B377D )L_22, (InputEventPtr_tC7799829CE3FDCA9E191C7BC946ABE0DB17B377D )L_27, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_28) >= ((int32_t)0))) { goto IL_006d; } } { InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A* L_29 = ___keys0; int32_t L_30 = ___lo3; int32_t L_31 = ___i1; InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A* L_32 = ___keys0; int32_t L_33 = ___lo3; int32_t L_34 = V_1; NullCheck(L_32); int32_t L_35 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_33, (int32_t)L_34)), (int32_t)1)); InputEventPtr_tC7799829CE3FDCA9E191C7BC946ABE0DB17B377D L_36 = (L_32)->GetAt(static_cast<il2cpp_array_size_t>(L_35)); NullCheck(L_29); (L_29)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_30, (int32_t)L_31)), (int32_t)1))), (InputEventPtr_tC7799829CE3FDCA9E191C7BC946ABE0DB17B377D )L_36); int32_t L_37 = V_1; ___i1 = (int32_t)L_37; } IL_0067: { int32_t L_38 = ___i1; int32_t L_39 = ___n2; if ((((int32_t)L_38) <= ((int32_t)((int32_t)((int32_t)L_39/(int32_t)2))))) { goto IL_000e; } } IL_006d: { InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A* L_40 = ___keys0; int32_t L_41 = ___lo3; int32_t L_42 = ___i1; InputEventPtr_tC7799829CE3FDCA9E191C7BC946ABE0DB17B377D L_43 = V_0; NullCheck(L_40); (L_40)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_41, (int32_t)L_42)), (int32_t)1))), (InputEventPtr_tC7799829CE3FDCA9E191C7BC946ABE0DB17B377D )L_43); return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<UnityEngine.InputSystem.LowLevel.InputEventPtr>::InsertionSort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_InsertionSort_m69A0A3EFAB6F35D82ECE3B2CE70C879EF4DE898E_gshared (InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A* ___keys0, int32_t ___lo1, int32_t ___hi2, Comparison_1_t9B89F606416E5AC3B5A40CA3B9554DC9DDFFEA50 * ___comparer3, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; InputEventPtr_tC7799829CE3FDCA9E191C7BC946ABE0DB17B377D V_2; memset((&V_2), 0, sizeof(V_2)); { int32_t L_0 = ___lo1; V_0 = (int32_t)L_0; goto IL_0049; } IL_0004: { int32_t L_1 = V_0; V_1 = (int32_t)L_1; InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A* L_2 = ___keys0; int32_t L_3 = V_0; NullCheck(L_2); int32_t L_4 = ((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)1)); InputEventPtr_tC7799829CE3FDCA9E191C7BC946ABE0DB17B377D L_5 = (L_2)->GetAt(static_cast<il2cpp_array_size_t>(L_4)); V_2 = (InputEventPtr_tC7799829CE3FDCA9E191C7BC946ABE0DB17B377D )L_5; goto IL_0026; } IL_0012: { InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A* L_6 = ___keys0; int32_t L_7 = V_1; InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A* L_8 = ___keys0; int32_t L_9 = V_1; NullCheck(L_8); int32_t L_10 = L_9; InputEventPtr_tC7799829CE3FDCA9E191C7BC946ABE0DB17B377D L_11 = (L_8)->GetAt(static_cast<il2cpp_array_size_t>(L_10)); NullCheck(L_6); (L_6)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add((int32_t)L_7, (int32_t)1))), (InputEventPtr_tC7799829CE3FDCA9E191C7BC946ABE0DB17B377D )L_11); int32_t L_12 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_12, (int32_t)1)); } IL_0026: { int32_t L_13 = V_1; int32_t L_14 = ___lo1; if ((((int32_t)L_13) < ((int32_t)L_14))) { goto IL_003b; } } { Comparison_1_t9B89F606416E5AC3B5A40CA3B9554DC9DDFFEA50 * L_15 = ___comparer3; InputEventPtr_tC7799829CE3FDCA9E191C7BC946ABE0DB17B377D L_16 = V_2; InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A* L_17 = ___keys0; int32_t L_18 = V_1; NullCheck(L_17); int32_t L_19 = L_18; InputEventPtr_tC7799829CE3FDCA9E191C7BC946ABE0DB17B377D L_20 = (L_17)->GetAt(static_cast<il2cpp_array_size_t>(L_19)); NullCheck((Comparison_1_t9B89F606416E5AC3B5A40CA3B9554DC9DDFFEA50 *)L_15); int32_t L_21; L_21 = (( int32_t (*) (Comparison_1_t9B89F606416E5AC3B5A40CA3B9554DC9DDFFEA50 *, InputEventPtr_tC7799829CE3FDCA9E191C7BC946ABE0DB17B377D , InputEventPtr_tC7799829CE3FDCA9E191C7BC946ABE0DB17B377D , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t9B89F606416E5AC3B5A40CA3B9554DC9DDFFEA50 *)L_15, (InputEventPtr_tC7799829CE3FDCA9E191C7BC946ABE0DB17B377D )L_16, (InputEventPtr_tC7799829CE3FDCA9E191C7BC946ABE0DB17B377D )L_20, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_21) < ((int32_t)0))) { goto IL_0012; } } IL_003b: { InputEventPtrU5BU5D_t4F4ADE6ADA0701944495B5373B4D9139E6F3348A* L_22 = ___keys0; int32_t L_23 = V_1; InputEventPtr_tC7799829CE3FDCA9E191C7BC946ABE0DB17B377D L_24 = V_2; NullCheck(L_22); (L_22)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add((int32_t)L_23, (int32_t)1))), (InputEventPtr_tC7799829CE3FDCA9E191C7BC946ABE0DB17B377D )L_24); int32_t L_25 = V_0; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_25, (int32_t)1)); } IL_0049: { int32_t L_26 = V_0; int32_t L_27 = ___hi2; if ((((int32_t)L_26) < ((int32_t)L_27))) { goto IL_0004; } } { return; } } #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Void System.Collections.Generic.ArraySortHelper`1<Microsoft.MixedReality.Toolkit.Utilities.Editor.InspectorPropertySetting>::Sort(T[],System.Int32,System.Int32,System.Collections.Generic.IComparer`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Sort_m0E9AB1CF4E6457CE70BEF1C58E8B404D4AE800EF_gshared (InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD* ___keys0, int32_t ___index1, int32_t ___length2, RuntimeObject* ___comparer3, const RuntimeMethod* method) { Exception_t * V_0 = NULL; il2cpp::utils::ExceptionSupportStack<RuntimeObject*, 1> __active_exceptions; il2cpp::utils::ExceptionSupportStack<int32_t, 2> __leave_targets; IL_0000: try { // begin try (depth: 1) { RuntimeObject* L_0 = ___comparer3; if (L_0) { goto IL_000a; } } IL_0003: { Comparer_1_t19025AE1ADBF92A6B621A3BDE0D34F51E39505BB * L_1; L_1 = (( Comparer_1_t19025AE1ADBF92A6B621A3BDE0D34F51E39505BB * (*) (const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)->methodPointer)(/*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)); ___comparer3 = (RuntimeObject*)L_1; } IL_000a: { InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD* L_2 = ___keys0; int32_t L_3 = ___index1; int32_t L_4 = ___length2; RuntimeObject* L_5 = ___comparer3; RuntimeObject* L_6 = (RuntimeObject*)L_5; Comparison_1_tD096E002D2CC9ACAC9904324E4B869286880C0D1 * L_7 = (Comparison_1_tD096E002D2CC9ACAC9904324E4B869286880C0D1 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 4)); (( void (*) (Comparison_1_tD096E002D2CC9ACAC9904324E4B869286880C0D1 *, RuntimeObject *, intptr_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 5)->methodPointer)(L_7, (RuntimeObject *)L_6, (intptr_t)((intptr_t)GetInterfaceMethodInfo(L_6, 0, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 3))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 5)); (( void (*) (InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD*, int32_t, int32_t, Comparison_1_tD096E002D2CC9ACAC9904324E4B869286880C0D1 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)->methodPointer)((InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD*)L_2, (int32_t)L_3, (int32_t)L_4, (Comparison_1_tD096E002D2CC9ACAC9904324E4B869286880C0D1 *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)); goto IL_0037; } } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&IndexOutOfRangeException_tDC9EF7A0346CE39E54DA1083F07BE6DFC3CE2EDD_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_0021; } if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&Exception_t_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_002a; } throw e; } CATCH_0021: { // begin catch(System.IndexOutOfRangeException) RuntimeObject* L_8 = ___comparer3; IntrospectiveSortUtilities_ThrowOrIgnoreBadComparer_mE23A8103696FA67F874E7DA86625BB3921DB801F((RuntimeObject *)L_8, /*hidden argument*/NULL); IL2CPP_POP_ACTIVE_EXCEPTION(); goto IL_0037; } // end catch (depth: 1) CATCH_002a: { // begin catch(System.Exception) V_0 = (Exception_t *)((Exception_t *)IL2CPP_GET_ACTIVE_EXCEPTION(Exception_t *)); Exception_t * L_9 = V_0; InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB * L_10 = (InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB *)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB_il2cpp_TypeInfo_var))); InvalidOperationException__ctor_m4A65916B1316FBF45ECDF1FF7FAC9E3CA30C112C(L_10, (String_t*)((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral6EDB6C049ED9617FA335A262A29BF30B15221AEA)), (Exception_t *)L_9, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_10, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArraySortHelper_1_Sort_m0E9AB1CF4E6457CE70BEF1C58E8B404D4AE800EF_RuntimeMethod_var))); } // end catch (depth: 1) IL_0037: { return; } } // System.Int32 System.Collections.Generic.ArraySortHelper`1<Microsoft.MixedReality.Toolkit.Utilities.Editor.InspectorPropertySetting>::BinarySearch(T[],System.Int32,System.Int32,T,System.Collections.Generic.IComparer`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t ArraySortHelper_1_BinarySearch_m0CBCA58213435C59E810B54B0A1E228049819CB6_gshared (InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD* ___array0, int32_t ___index1, int32_t ___length2, InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9 ___value3, RuntimeObject* ___comparer4, const RuntimeMethod* method) { int32_t V_0 = 0; Exception_t * V_1 = NULL; il2cpp::utils::ExceptionSupportStack<RuntimeObject*, 1> __active_exceptions; il2cpp::utils::ExceptionSupportStack<int32_t, 1> __leave_targets; IL_0000: try { // begin try (depth: 1) { RuntimeObject* L_0 = ___comparer4; if (L_0) { goto IL_000b; } } IL_0004: { Comparer_1_t19025AE1ADBF92A6B621A3BDE0D34F51E39505BB * L_1; L_1 = (( Comparer_1_t19025AE1ADBF92A6B621A3BDE0D34F51E39505BB * (*) (const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)->methodPointer)(/*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)); ___comparer4 = (RuntimeObject*)L_1; } IL_000b: { InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD* L_2 = ___array0; int32_t L_3 = ___index1; int32_t L_4 = ___length2; InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9 L_5 = ___value3; RuntimeObject* L_6 = ___comparer4; int32_t L_7; L_7 = (( int32_t (*) (InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD*, int32_t, int32_t, InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9 , RuntimeObject*, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 8)->methodPointer)((InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD*)L_2, (int32_t)L_3, (int32_t)L_4, (InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9 )L_5, (RuntimeObject*)L_6, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 8)); V_0 = (int32_t)L_7; goto IL_0026; } } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&Exception_t_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_0019; } throw e; } CATCH_0019: { // begin catch(System.Exception) V_1 = (Exception_t *)((Exception_t *)IL2CPP_GET_ACTIVE_EXCEPTION(Exception_t *)); Exception_t * L_8 = V_1; InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB * L_9 = (InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB *)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB_il2cpp_TypeInfo_var))); InvalidOperationException__ctor_m4A65916B1316FBF45ECDF1FF7FAC9E3CA30C112C(L_9, (String_t*)((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral6EDB6C049ED9617FA335A262A29BF30B15221AEA)), (Exception_t *)L_8, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_9, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArraySortHelper_1_BinarySearch_m0CBCA58213435C59E810B54B0A1E228049819CB6_RuntimeMethod_var))); } // end catch (depth: 1) IL_0026: { int32_t L_10 = V_0; return (int32_t)L_10; } } // System.Void System.Collections.Generic.ArraySortHelper`1<Microsoft.MixedReality.Toolkit.Utilities.Editor.InspectorPropertySetting>::Sort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Sort_m759BF1A8DDA94D0BD296B5E7FDF94A3B70C0D5A0_gshared (InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD* ___keys0, int32_t ___index1, int32_t ___length2, Comparison_1_tD096E002D2CC9ACAC9904324E4B869286880C0D1 * ___comparer3, const RuntimeMethod* method) { Exception_t * V_0 = NULL; il2cpp::utils::ExceptionSupportStack<RuntimeObject*, 1> __active_exceptions; il2cpp::utils::ExceptionSupportStack<int32_t, 2> __leave_targets; IL_0000: try { // begin try (depth: 1) InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD* L_0 = ___keys0; int32_t L_1 = ___index1; int32_t L_2 = ___length2; Comparison_1_tD096E002D2CC9ACAC9904324E4B869286880C0D1 * L_3 = ___comparer3; (( void (*) (InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD*, int32_t, int32_t, Comparison_1_tD096E002D2CC9ACAC9904324E4B869286880C0D1 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)->methodPointer)((InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD*)L_0, (int32_t)L_1, (int32_t)L_2, (Comparison_1_tD096E002D2CC9ACAC9904324E4B869286880C0D1 *)L_3, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)); goto IL_0021; } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&IndexOutOfRangeException_tDC9EF7A0346CE39E54DA1083F07BE6DFC3CE2EDD_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_000b; } if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&Exception_t_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_0014; } throw e; } CATCH_000b: { // begin catch(System.IndexOutOfRangeException) Comparison_1_tD096E002D2CC9ACAC9904324E4B869286880C0D1 * L_4 = ___comparer3; IntrospectiveSortUtilities_ThrowOrIgnoreBadComparer_mE23A8103696FA67F874E7DA86625BB3921DB801F((RuntimeObject *)L_4, /*hidden argument*/NULL); IL2CPP_POP_ACTIVE_EXCEPTION(); goto IL_0021; } // end catch (depth: 1) CATCH_0014: { // begin catch(System.Exception) V_0 = (Exception_t *)((Exception_t *)IL2CPP_GET_ACTIVE_EXCEPTION(Exception_t *)); Exception_t * L_5 = V_0; InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB * L_6 = (InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB *)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB_il2cpp_TypeInfo_var))); InvalidOperationException__ctor_m4A65916B1316FBF45ECDF1FF7FAC9E3CA30C112C(L_6, (String_t*)((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral6EDB6C049ED9617FA335A262A29BF30B15221AEA)), (Exception_t *)L_5, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_6, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArraySortHelper_1_Sort_m759BF1A8DDA94D0BD296B5E7FDF94A3B70C0D5A0_RuntimeMethod_var))); } // end catch (depth: 1) IL_0021: { return; } } // System.Int32 System.Collections.Generic.ArraySortHelper`1<Microsoft.MixedReality.Toolkit.Utilities.Editor.InspectorPropertySetting>::InternalBinarySearch(T[],System.Int32,System.Int32,T,System.Collections.Generic.IComparer`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t ArraySortHelper_1_InternalBinarySearch_m3D125BC54FD45CFCDE7C14CBBA0DB1AF7D871741_gshared (InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD* ___array0, int32_t ___index1, int32_t ___length2, InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9 ___value3, RuntimeObject* ___comparer4, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; int32_t V_2 = 0; int32_t V_3 = 0; { int32_t L_0 = ___index1; V_0 = (int32_t)L_0; int32_t L_1 = ___index1; int32_t L_2 = ___length2; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_1, (int32_t)L_2)), (int32_t)1)); goto IL_0035; } IL_000a: { int32_t L_3 = V_0; int32_t L_4 = V_1; int32_t L_5 = V_0; V_2 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)((int32_t)((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_4, (int32_t)L_5))>>(int32_t)1)))); RuntimeObject* L_6 = ___comparer4; InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD* L_7 = ___array0; int32_t L_8 = V_2; NullCheck(L_7); int32_t L_9 = L_8; InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9 L_10 = (L_7)->GetAt(static_cast<il2cpp_array_size_t>(L_9)); InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9 L_11 = ___value3; NullCheck((RuntimeObject*)L_6); int32_t L_12; L_12 = InterfaceFuncInvoker2< int32_t, InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9 , InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9 >::Invoke(0 /* System.Int32 System.Collections.Generic.IComparer`1<Microsoft.MixedReality.Toolkit.Utilities.Editor.InspectorPropertySetting>::Compare(T,T) */, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 3), (RuntimeObject*)L_6, (InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9 )L_10, (InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9 )L_11); V_3 = (int32_t)L_12; int32_t L_13 = V_3; if (L_13) { goto IL_0027; } } { int32_t L_14 = V_2; return (int32_t)L_14; } IL_0027: { int32_t L_15 = V_3; if ((((int32_t)L_15) >= ((int32_t)0))) { goto IL_0031; } } { int32_t L_16 = V_2; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_16, (int32_t)1)); goto IL_0035; } IL_0031: { int32_t L_17 = V_2; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_17, (int32_t)1)); } IL_0035: { int32_t L_18 = V_0; int32_t L_19 = V_1; if ((((int32_t)L_18) <= ((int32_t)L_19))) { goto IL_000a; } } { int32_t L_20 = V_0; return (int32_t)((~L_20)); } } // System.Void System.Collections.Generic.ArraySortHelper`1<Microsoft.MixedReality.Toolkit.Utilities.Editor.InspectorPropertySetting>::SwapIfGreater(T[],System.Comparison`1<T>,System.Int32,System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_SwapIfGreater_m95855BBECF1EFE0F91C4396C17AA16E214738DF3_gshared (InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD* ___keys0, Comparison_1_tD096E002D2CC9ACAC9904324E4B869286880C0D1 * ___comparer1, int32_t ___a2, int32_t ___b3, const RuntimeMethod* method) { InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9 V_0; memset((&V_0), 0, sizeof(V_0)); { int32_t L_0 = ___a2; int32_t L_1 = ___b3; if ((((int32_t)L_0) == ((int32_t)L_1))) { goto IL_0039; } } { Comparison_1_tD096E002D2CC9ACAC9904324E4B869286880C0D1 * L_2 = ___comparer1; InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD* L_3 = ___keys0; int32_t L_4 = ___a2; NullCheck(L_3); int32_t L_5 = L_4; InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9 L_6 = (L_3)->GetAt(static_cast<il2cpp_array_size_t>(L_5)); InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD* L_7 = ___keys0; int32_t L_8 = ___b3; NullCheck(L_7); int32_t L_9 = L_8; InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9 L_10 = (L_7)->GetAt(static_cast<il2cpp_array_size_t>(L_9)); NullCheck((Comparison_1_tD096E002D2CC9ACAC9904324E4B869286880C0D1 *)L_2); int32_t L_11; L_11 = (( int32_t (*) (Comparison_1_tD096E002D2CC9ACAC9904324E4B869286880C0D1 *, InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9 , InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_tD096E002D2CC9ACAC9904324E4B869286880C0D1 *)L_2, (InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9 )L_6, (InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9 )L_10, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_11) <= ((int32_t)0))) { goto IL_0039; } } { InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD* L_12 = ___keys0; int32_t L_13 = ___a2; NullCheck(L_12); int32_t L_14 = L_13; InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9 L_15 = (L_12)->GetAt(static_cast<il2cpp_array_size_t>(L_14)); V_0 = (InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9 )L_15; InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD* L_16 = ___keys0; int32_t L_17 = ___a2; InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD* L_18 = ___keys0; int32_t L_19 = ___b3; NullCheck(L_18); int32_t L_20 = L_19; InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9 L_21 = (L_18)->GetAt(static_cast<il2cpp_array_size_t>(L_20)); NullCheck(L_16); (L_16)->SetAt(static_cast<il2cpp_array_size_t>(L_17), (InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9 )L_21); InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD* L_22 = ___keys0; int32_t L_23 = ___b3; InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9 L_24 = V_0; NullCheck(L_22); (L_22)->SetAt(static_cast<il2cpp_array_size_t>(L_23), (InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9 )L_24); } IL_0039: { return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<Microsoft.MixedReality.Toolkit.Utilities.Editor.InspectorPropertySetting>::Swap(T[],System.Int32,System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Swap_m1D9C7B271110B58142DF6211AB789C208E55D117_gshared (InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD* ___a0, int32_t ___i1, int32_t ___j2, const RuntimeMethod* method) { InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9 V_0; memset((&V_0), 0, sizeof(V_0)); { int32_t L_0 = ___i1; int32_t L_1 = ___j2; if ((((int32_t)L_0) == ((int32_t)L_1))) { goto IL_0022; } } { InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD* L_2 = ___a0; int32_t L_3 = ___i1; NullCheck(L_2); int32_t L_4 = L_3; InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9 L_5 = (L_2)->GetAt(static_cast<il2cpp_array_size_t>(L_4)); V_0 = (InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9 )L_5; InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD* L_6 = ___a0; int32_t L_7 = ___i1; InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD* L_8 = ___a0; int32_t L_9 = ___j2; NullCheck(L_8); int32_t L_10 = L_9; InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9 L_11 = (L_8)->GetAt(static_cast<il2cpp_array_size_t>(L_10)); NullCheck(L_6); (L_6)->SetAt(static_cast<il2cpp_array_size_t>(L_7), (InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9 )L_11); InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD* L_12 = ___a0; int32_t L_13 = ___j2; InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9 L_14 = V_0; NullCheck(L_12); (L_12)->SetAt(static_cast<il2cpp_array_size_t>(L_13), (InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9 )L_14); } IL_0022: { return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<Microsoft.MixedReality.Toolkit.Utilities.Editor.InspectorPropertySetting>::IntrospectiveSort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_IntrospectiveSort_m7CB0DD94560FAD8555CF0F189700AAAB4F9EB998_gshared (InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD* ___keys0, int32_t ___left1, int32_t ___length2, Comparison_1_tD096E002D2CC9ACAC9904324E4B869286880C0D1 * ___comparer3, const RuntimeMethod* method) { { int32_t L_0 = ___length2; if ((((int32_t)L_0) >= ((int32_t)2))) { goto IL_0005; } } { return; } IL_0005: { InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD* L_1 = ___keys0; int32_t L_2 = ___left1; int32_t L_3 = ___length2; int32_t L_4 = ___left1; InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD* L_5 = ___keys0; NullCheck(L_5); int32_t L_6; L_6 = IntrospectiveSortUtilities_FloorLog2_m05ECB6CAC7A23087D9EC2C2A4DDCFE12272C3872((int32_t)((int32_t)((int32_t)(((RuntimeArray*)L_5)->max_length))), /*hidden argument*/NULL); Comparison_1_tD096E002D2CC9ACAC9904324E4B869286880C0D1 * L_7 = ___comparer3; (( void (*) (InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD*, int32_t, int32_t, int32_t, Comparison_1_tD096E002D2CC9ACAC9904324E4B869286880C0D1 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)->methodPointer)((InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD*)L_1, (int32_t)L_2, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)L_4)), (int32_t)1)), (int32_t)((int32_t)il2cpp_codegen_multiply((int32_t)2, (int32_t)L_6)), (Comparison_1_tD096E002D2CC9ACAC9904324E4B869286880C0D1 *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)); return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<Microsoft.MixedReality.Toolkit.Utilities.Editor.InspectorPropertySetting>::IntroSort(T[],System.Int32,System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_IntroSort_mD9554D0DD3D24FDB66E6009A1F1AB3B4820E828D_gshared (InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD* ___keys0, int32_t ___lo1, int32_t ___hi2, int32_t ___depthLimit3, Comparison_1_tD096E002D2CC9ACAC9904324E4B869286880C0D1 * ___comparer4, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; { goto IL_0086; } IL_0005: { int32_t L_0 = ___hi2; int32_t L_1 = ___lo1; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_0, (int32_t)L_1)), (int32_t)1)); int32_t L_2 = V_0; if ((((int32_t)L_2) > ((int32_t)((int32_t)16)))) { goto IL_0056; } } { int32_t L_3 = V_0; if ((!(((uint32_t)L_3) == ((uint32_t)1)))) { goto IL_0015; } } { return; } IL_0015: { int32_t L_4 = V_0; if ((!(((uint32_t)L_4) == ((uint32_t)2)))) { goto IL_0024; } } { InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD* L_5 = ___keys0; Comparison_1_tD096E002D2CC9ACAC9904324E4B869286880C0D1 * L_6 = ___comparer4; int32_t L_7 = ___lo1; int32_t L_8 = ___hi2; (( void (*) (InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD*, Comparison_1_tD096E002D2CC9ACAC9904324E4B869286880C0D1 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD*)L_5, (Comparison_1_tD096E002D2CC9ACAC9904324E4B869286880C0D1 *)L_6, (int32_t)L_7, (int32_t)L_8, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); return; } IL_0024: { int32_t L_9 = V_0; if ((!(((uint32_t)L_9) == ((uint32_t)3)))) { goto IL_004b; } } { InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD* L_10 = ___keys0; Comparison_1_tD096E002D2CC9ACAC9904324E4B869286880C0D1 * L_11 = ___comparer4; int32_t L_12 = ___lo1; int32_t L_13 = ___hi2; (( void (*) (InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD*, Comparison_1_tD096E002D2CC9ACAC9904324E4B869286880C0D1 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD*)L_10, (Comparison_1_tD096E002D2CC9ACAC9904324E4B869286880C0D1 *)L_11, (int32_t)L_12, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_13, (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD* L_14 = ___keys0; Comparison_1_tD096E002D2CC9ACAC9904324E4B869286880C0D1 * L_15 = ___comparer4; int32_t L_16 = ___lo1; int32_t L_17 = ___hi2; (( void (*) (InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD*, Comparison_1_tD096E002D2CC9ACAC9904324E4B869286880C0D1 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD*)L_14, (Comparison_1_tD096E002D2CC9ACAC9904324E4B869286880C0D1 *)L_15, (int32_t)L_16, (int32_t)L_17, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD* L_18 = ___keys0; Comparison_1_tD096E002D2CC9ACAC9904324E4B869286880C0D1 * L_19 = ___comparer4; int32_t L_20 = ___hi2; int32_t L_21 = ___hi2; (( void (*) (InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD*, Comparison_1_tD096E002D2CC9ACAC9904324E4B869286880C0D1 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD*)L_18, (Comparison_1_tD096E002D2CC9ACAC9904324E4B869286880C0D1 *)L_19, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_20, (int32_t)1)), (int32_t)L_21, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); return; } IL_004b: { InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD* L_22 = ___keys0; int32_t L_23 = ___lo1; int32_t L_24 = ___hi2; Comparison_1_tD096E002D2CC9ACAC9904324E4B869286880C0D1 * L_25 = ___comparer4; (( void (*) (InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD*, int32_t, int32_t, Comparison_1_tD096E002D2CC9ACAC9904324E4B869286880C0D1 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 12)->methodPointer)((InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD*)L_22, (int32_t)L_23, (int32_t)L_24, (Comparison_1_tD096E002D2CC9ACAC9904324E4B869286880C0D1 *)L_25, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 12)); return; } IL_0056: { int32_t L_26 = ___depthLimit3; if (L_26) { goto IL_0064; } } { InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD* L_27 = ___keys0; int32_t L_28 = ___lo1; int32_t L_29 = ___hi2; Comparison_1_tD096E002D2CC9ACAC9904324E4B869286880C0D1 * L_30 = ___comparer4; (( void (*) (InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD*, int32_t, int32_t, Comparison_1_tD096E002D2CC9ACAC9904324E4B869286880C0D1 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 13)->methodPointer)((InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD*)L_27, (int32_t)L_28, (int32_t)L_29, (Comparison_1_tD096E002D2CC9ACAC9904324E4B869286880C0D1 *)L_30, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 13)); return; } IL_0064: { int32_t L_31 = ___depthLimit3; ___depthLimit3 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_31, (int32_t)1)); InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD* L_32 = ___keys0; int32_t L_33 = ___lo1; int32_t L_34 = ___hi2; Comparison_1_tD096E002D2CC9ACAC9904324E4B869286880C0D1 * L_35 = ___comparer4; int32_t L_36; L_36 = (( int32_t (*) (InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD*, int32_t, int32_t, Comparison_1_tD096E002D2CC9ACAC9904324E4B869286880C0D1 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 14)->methodPointer)((InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD*)L_32, (int32_t)L_33, (int32_t)L_34, (Comparison_1_tD096E002D2CC9ACAC9904324E4B869286880C0D1 *)L_35, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 14)); V_1 = (int32_t)L_36; InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD* L_37 = ___keys0; int32_t L_38 = V_1; int32_t L_39 = ___hi2; int32_t L_40 = ___depthLimit3; Comparison_1_tD096E002D2CC9ACAC9904324E4B869286880C0D1 * L_41 = ___comparer4; (( void (*) (InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD*, int32_t, int32_t, int32_t, Comparison_1_tD096E002D2CC9ACAC9904324E4B869286880C0D1 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)->methodPointer)((InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD*)L_37, (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_38, (int32_t)1)), (int32_t)L_39, (int32_t)L_40, (Comparison_1_tD096E002D2CC9ACAC9904324E4B869286880C0D1 *)L_41, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)); int32_t L_42 = V_1; ___hi2 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_42, (int32_t)1)); } IL_0086: { int32_t L_43 = ___hi2; int32_t L_44 = ___lo1; if ((((int32_t)L_43) > ((int32_t)L_44))) { goto IL_0005; } } { return; } } // System.Int32 System.Collections.Generic.ArraySortHelper`1<Microsoft.MixedReality.Toolkit.Utilities.Editor.InspectorPropertySetting>::PickPivotAndPartition(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t ArraySortHelper_1_PickPivotAndPartition_m2B4EACD175280C9085EB7A035E2BF83DC652CF67_gshared (InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD* ___keys0, int32_t ___lo1, int32_t ___hi2, Comparison_1_tD096E002D2CC9ACAC9904324E4B869286880C0D1 * ___comparer3, const RuntimeMethod* method) { int32_t V_0 = 0; InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9 V_1; memset((&V_1), 0, sizeof(V_1)); int32_t V_2 = 0; int32_t V_3 = 0; { int32_t L_0 = ___lo1; int32_t L_1 = ___hi2; int32_t L_2 = ___lo1; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_0, (int32_t)((int32_t)((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_1, (int32_t)L_2))/(int32_t)2)))); InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD* L_3 = ___keys0; Comparison_1_tD096E002D2CC9ACAC9904324E4B869286880C0D1 * L_4 = ___comparer3; int32_t L_5 = ___lo1; int32_t L_6 = V_0; (( void (*) (InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD*, Comparison_1_tD096E002D2CC9ACAC9904324E4B869286880C0D1 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD*)L_3, (Comparison_1_tD096E002D2CC9ACAC9904324E4B869286880C0D1 *)L_4, (int32_t)L_5, (int32_t)L_6, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD* L_7 = ___keys0; Comparison_1_tD096E002D2CC9ACAC9904324E4B869286880C0D1 * L_8 = ___comparer3; int32_t L_9 = ___lo1; int32_t L_10 = ___hi2; (( void (*) (InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD*, Comparison_1_tD096E002D2CC9ACAC9904324E4B869286880C0D1 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD*)L_7, (Comparison_1_tD096E002D2CC9ACAC9904324E4B869286880C0D1 *)L_8, (int32_t)L_9, (int32_t)L_10, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD* L_11 = ___keys0; Comparison_1_tD096E002D2CC9ACAC9904324E4B869286880C0D1 * L_12 = ___comparer3; int32_t L_13 = V_0; int32_t L_14 = ___hi2; (( void (*) (InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD*, Comparison_1_tD096E002D2CC9ACAC9904324E4B869286880C0D1 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD*)L_11, (Comparison_1_tD096E002D2CC9ACAC9904324E4B869286880C0D1 *)L_12, (int32_t)L_13, (int32_t)L_14, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD* L_15 = ___keys0; int32_t L_16 = V_0; NullCheck(L_15); int32_t L_17 = L_16; InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9 L_18 = (L_15)->GetAt(static_cast<il2cpp_array_size_t>(L_17)); V_1 = (InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9 )L_18; InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD* L_19 = ___keys0; int32_t L_20 = V_0; int32_t L_21 = ___hi2; (( void (*) (InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD*)L_19, (int32_t)L_20, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_21, (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); int32_t L_22 = ___lo1; V_2 = (int32_t)L_22; int32_t L_23 = ___hi2; V_3 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_23, (int32_t)1)); goto IL_0073; } IL_003d: { Comparison_1_tD096E002D2CC9ACAC9904324E4B869286880C0D1 * L_24 = ___comparer3; InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD* L_25 = ___keys0; int32_t L_26 = V_2; int32_t L_27 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_26, (int32_t)1)); V_2 = (int32_t)L_27; NullCheck(L_25); int32_t L_28 = L_27; InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9 L_29 = (L_25)->GetAt(static_cast<il2cpp_array_size_t>(L_28)); InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9 L_30 = V_1; NullCheck((Comparison_1_tD096E002D2CC9ACAC9904324E4B869286880C0D1 *)L_24); int32_t L_31; L_31 = (( int32_t (*) (Comparison_1_tD096E002D2CC9ACAC9904324E4B869286880C0D1 *, InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9 , InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_tD096E002D2CC9ACAC9904324E4B869286880C0D1 *)L_24, (InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9 )L_29, (InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9 )L_30, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_31) < ((int32_t)0))) { goto IL_003d; } } IL_0052: { Comparison_1_tD096E002D2CC9ACAC9904324E4B869286880C0D1 * L_32 = ___comparer3; InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9 L_33 = V_1; InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD* L_34 = ___keys0; int32_t L_35 = V_3; int32_t L_36 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_35, (int32_t)1)); V_3 = (int32_t)L_36; NullCheck(L_34); int32_t L_37 = L_36; InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9 L_38 = (L_34)->GetAt(static_cast<il2cpp_array_size_t>(L_37)); NullCheck((Comparison_1_tD096E002D2CC9ACAC9904324E4B869286880C0D1 *)L_32); int32_t L_39; L_39 = (( int32_t (*) (Comparison_1_tD096E002D2CC9ACAC9904324E4B869286880C0D1 *, InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9 , InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_tD096E002D2CC9ACAC9904324E4B869286880C0D1 *)L_32, (InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9 )L_33, (InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9 )L_38, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_39) < ((int32_t)0))) { goto IL_0052; } } { int32_t L_40 = V_2; int32_t L_41 = V_3; if ((((int32_t)L_40) >= ((int32_t)L_41))) { goto IL_0077; } } { InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD* L_42 = ___keys0; int32_t L_43 = V_2; int32_t L_44 = V_3; (( void (*) (InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD*)L_42, (int32_t)L_43, (int32_t)L_44, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); } IL_0073: { int32_t L_45 = V_2; int32_t L_46 = V_3; if ((((int32_t)L_45) < ((int32_t)L_46))) { goto IL_003d; } } IL_0077: { InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD* L_47 = ___keys0; int32_t L_48 = V_2; int32_t L_49 = ___hi2; (( void (*) (InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD*)L_47, (int32_t)L_48, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_49, (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); int32_t L_50 = V_2; return (int32_t)L_50; } } // System.Void System.Collections.Generic.ArraySortHelper`1<Microsoft.MixedReality.Toolkit.Utilities.Editor.InspectorPropertySetting>::Heapsort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Heapsort_mF1375BCE9B0FCC77F3EFA6A1AD4059211A1A2D61_gshared (InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD* ___keys0, int32_t ___lo1, int32_t ___hi2, Comparison_1_tD096E002D2CC9ACAC9904324E4B869286880C0D1 * ___comparer3, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; int32_t V_2 = 0; { int32_t L_0 = ___hi2; int32_t L_1 = ___lo1; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_0, (int32_t)L_1)), (int32_t)1)); int32_t L_2 = V_0; V_1 = (int32_t)((int32_t)((int32_t)L_2/(int32_t)2)); goto IL_001a; } IL_000c: { InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD* L_3 = ___keys0; int32_t L_4 = V_1; int32_t L_5 = V_0; int32_t L_6 = ___lo1; Comparison_1_tD096E002D2CC9ACAC9904324E4B869286880C0D1 * L_7 = ___comparer3; (( void (*) (InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD*, int32_t, int32_t, int32_t, Comparison_1_tD096E002D2CC9ACAC9904324E4B869286880C0D1 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)->methodPointer)((InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD*)L_3, (int32_t)L_4, (int32_t)L_5, (int32_t)L_6, (Comparison_1_tD096E002D2CC9ACAC9904324E4B869286880C0D1 *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)); int32_t L_8 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_8, (int32_t)1)); } IL_001a: { int32_t L_9 = V_1; if ((((int32_t)L_9) >= ((int32_t)1))) { goto IL_000c; } } { int32_t L_10 = V_0; V_2 = (int32_t)L_10; goto IL_003e; } IL_0022: { InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD* L_11 = ___keys0; int32_t L_12 = ___lo1; int32_t L_13 = ___lo1; int32_t L_14 = V_2; (( void (*) (InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD*)L_11, (int32_t)L_12, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_13, (int32_t)L_14)), (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD* L_15 = ___keys0; int32_t L_16 = V_2; int32_t L_17 = ___lo1; Comparison_1_tD096E002D2CC9ACAC9904324E4B869286880C0D1 * L_18 = ___comparer3; (( void (*) (InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD*, int32_t, int32_t, int32_t, Comparison_1_tD096E002D2CC9ACAC9904324E4B869286880C0D1 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)->methodPointer)((InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD*)L_15, (int32_t)1, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_16, (int32_t)1)), (int32_t)L_17, (Comparison_1_tD096E002D2CC9ACAC9904324E4B869286880C0D1 *)L_18, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)); int32_t L_19 = V_2; V_2 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_19, (int32_t)1)); } IL_003e: { int32_t L_20 = V_2; if ((((int32_t)L_20) > ((int32_t)1))) { goto IL_0022; } } { return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<Microsoft.MixedReality.Toolkit.Utilities.Editor.InspectorPropertySetting>::DownHeap(T[],System.Int32,System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_DownHeap_m739BDD6616DB7CA21B7390F818A4DF0195BB9F57_gshared (InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD* ___keys0, int32_t ___i1, int32_t ___n2, int32_t ___lo3, Comparison_1_tD096E002D2CC9ACAC9904324E4B869286880C0D1 * ___comparer4, const RuntimeMethod* method) { InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9 V_0; memset((&V_0), 0, sizeof(V_0)); int32_t V_1 = 0; { InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD* L_0 = ___keys0; int32_t L_1 = ___lo3; int32_t L_2 = ___i1; NullCheck(L_0); int32_t L_3 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_1, (int32_t)L_2)), (int32_t)1)); InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9 L_4 = (L_0)->GetAt(static_cast<il2cpp_array_size_t>(L_3)); V_0 = (InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9 )L_4; goto IL_0067; } IL_000e: { int32_t L_5 = ___i1; V_1 = (int32_t)((int32_t)il2cpp_codegen_multiply((int32_t)2, (int32_t)L_5)); int32_t L_6 = V_1; int32_t L_7 = ___n2; if ((((int32_t)L_6) >= ((int32_t)L_7))) { goto IL_0038; } } { Comparison_1_tD096E002D2CC9ACAC9904324E4B869286880C0D1 * L_8 = ___comparer4; InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD* L_9 = ___keys0; int32_t L_10 = ___lo3; int32_t L_11 = V_1; NullCheck(L_9); int32_t L_12 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_10, (int32_t)L_11)), (int32_t)1)); InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9 L_13 = (L_9)->GetAt(static_cast<il2cpp_array_size_t>(L_12)); InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD* L_14 = ___keys0; int32_t L_15 = ___lo3; int32_t L_16 = V_1; NullCheck(L_14); int32_t L_17 = ((int32_t)il2cpp_codegen_add((int32_t)L_15, (int32_t)L_16)); InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9 L_18 = (L_14)->GetAt(static_cast<il2cpp_array_size_t>(L_17)); NullCheck((Comparison_1_tD096E002D2CC9ACAC9904324E4B869286880C0D1 *)L_8); int32_t L_19; L_19 = (( int32_t (*) (Comparison_1_tD096E002D2CC9ACAC9904324E4B869286880C0D1 *, InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9 , InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_tD096E002D2CC9ACAC9904324E4B869286880C0D1 *)L_8, (InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9 )L_13, (InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9 )L_18, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_19) >= ((int32_t)0))) { goto IL_0038; } } { int32_t L_20 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_20, (int32_t)1)); } IL_0038: { Comparison_1_tD096E002D2CC9ACAC9904324E4B869286880C0D1 * L_21 = ___comparer4; InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9 L_22 = V_0; InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD* L_23 = ___keys0; int32_t L_24 = ___lo3; int32_t L_25 = V_1; NullCheck(L_23); int32_t L_26 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_24, (int32_t)L_25)), (int32_t)1)); InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9 L_27 = (L_23)->GetAt(static_cast<il2cpp_array_size_t>(L_26)); NullCheck((Comparison_1_tD096E002D2CC9ACAC9904324E4B869286880C0D1 *)L_21); int32_t L_28; L_28 = (( int32_t (*) (Comparison_1_tD096E002D2CC9ACAC9904324E4B869286880C0D1 *, InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9 , InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_tD096E002D2CC9ACAC9904324E4B869286880C0D1 *)L_21, (InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9 )L_22, (InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9 )L_27, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_28) >= ((int32_t)0))) { goto IL_006d; } } { InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD* L_29 = ___keys0; int32_t L_30 = ___lo3; int32_t L_31 = ___i1; InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD* L_32 = ___keys0; int32_t L_33 = ___lo3; int32_t L_34 = V_1; NullCheck(L_32); int32_t L_35 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_33, (int32_t)L_34)), (int32_t)1)); InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9 L_36 = (L_32)->GetAt(static_cast<il2cpp_array_size_t>(L_35)); NullCheck(L_29); (L_29)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_30, (int32_t)L_31)), (int32_t)1))), (InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9 )L_36); int32_t L_37 = V_1; ___i1 = (int32_t)L_37; } IL_0067: { int32_t L_38 = ___i1; int32_t L_39 = ___n2; if ((((int32_t)L_38) <= ((int32_t)((int32_t)((int32_t)L_39/(int32_t)2))))) { goto IL_000e; } } IL_006d: { InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD* L_40 = ___keys0; int32_t L_41 = ___lo3; int32_t L_42 = ___i1; InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9 L_43 = V_0; NullCheck(L_40); (L_40)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_41, (int32_t)L_42)), (int32_t)1))), (InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9 )L_43); return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<Microsoft.MixedReality.Toolkit.Utilities.Editor.InspectorPropertySetting>::InsertionSort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_InsertionSort_m43BC1CDF6BB7E99543BDF4ED4B6EF1CDAC2E8EE1_gshared (InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD* ___keys0, int32_t ___lo1, int32_t ___hi2, Comparison_1_tD096E002D2CC9ACAC9904324E4B869286880C0D1 * ___comparer3, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9 V_2; memset((&V_2), 0, sizeof(V_2)); { int32_t L_0 = ___lo1; V_0 = (int32_t)L_0; goto IL_0049; } IL_0004: { int32_t L_1 = V_0; V_1 = (int32_t)L_1; InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD* L_2 = ___keys0; int32_t L_3 = V_0; NullCheck(L_2); int32_t L_4 = ((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)1)); InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9 L_5 = (L_2)->GetAt(static_cast<il2cpp_array_size_t>(L_4)); V_2 = (InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9 )L_5; goto IL_0026; } IL_0012: { InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD* L_6 = ___keys0; int32_t L_7 = V_1; InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD* L_8 = ___keys0; int32_t L_9 = V_1; NullCheck(L_8); int32_t L_10 = L_9; InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9 L_11 = (L_8)->GetAt(static_cast<il2cpp_array_size_t>(L_10)); NullCheck(L_6); (L_6)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add((int32_t)L_7, (int32_t)1))), (InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9 )L_11); int32_t L_12 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_12, (int32_t)1)); } IL_0026: { int32_t L_13 = V_1; int32_t L_14 = ___lo1; if ((((int32_t)L_13) < ((int32_t)L_14))) { goto IL_003b; } } { Comparison_1_tD096E002D2CC9ACAC9904324E4B869286880C0D1 * L_15 = ___comparer3; InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9 L_16 = V_2; InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD* L_17 = ___keys0; int32_t L_18 = V_1; NullCheck(L_17); int32_t L_19 = L_18; InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9 L_20 = (L_17)->GetAt(static_cast<il2cpp_array_size_t>(L_19)); NullCheck((Comparison_1_tD096E002D2CC9ACAC9904324E4B869286880C0D1 *)L_15); int32_t L_21; L_21 = (( int32_t (*) (Comparison_1_tD096E002D2CC9ACAC9904324E4B869286880C0D1 *, InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9 , InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_tD096E002D2CC9ACAC9904324E4B869286880C0D1 *)L_15, (InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9 )L_16, (InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9 )L_20, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_21) < ((int32_t)0))) { goto IL_0012; } } IL_003b: { InspectorPropertySettingU5BU5D_t7ED8B301419E94340FCDDB1F69BBE0575D43A6AD* L_22 = ___keys0; int32_t L_23 = V_1; InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9 L_24 = V_2; NullCheck(L_22); (L_22)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add((int32_t)L_23, (int32_t)1))), (InspectorPropertySetting_t41D033C112806A1A5CF3F227EFCB8F9A6755C5F9 )L_24); int32_t L_25 = V_0; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_25, (int32_t)1)); } IL_0049: { int32_t L_26 = V_0; int32_t L_27 = ___hi2; if ((((int32_t)L_26) < ((int32_t)L_27))) { goto IL_0004; } } { return; } } #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Void System.Collections.Generic.ArraySortHelper`1<System.Int16>::Sort(T[],System.Int32,System.Int32,System.Collections.Generic.IComparer`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Sort_m042552CEF22A3579AC64030D39F3D193956EDC96_gshared (Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD* ___keys0, int32_t ___index1, int32_t ___length2, RuntimeObject* ___comparer3, const RuntimeMethod* method) { Exception_t * V_0 = NULL; il2cpp::utils::ExceptionSupportStack<RuntimeObject*, 1> __active_exceptions; il2cpp::utils::ExceptionSupportStack<int32_t, 2> __leave_targets; IL_0000: try { // begin try (depth: 1) { RuntimeObject* L_0 = ___comparer3; if (L_0) { goto IL_000a; } } IL_0003: { Comparer_1_t0B4899E6018F9D85829D592D6DFB60E2180C6D7D * L_1; L_1 = (( Comparer_1_t0B4899E6018F9D85829D592D6DFB60E2180C6D7D * (*) (const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)->methodPointer)(/*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)); ___comparer3 = (RuntimeObject*)L_1; } IL_000a: { Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD* L_2 = ___keys0; int32_t L_3 = ___index1; int32_t L_4 = ___length2; RuntimeObject* L_5 = ___comparer3; RuntimeObject* L_6 = (RuntimeObject*)L_5; Comparison_1_tB6FC1D7EE4276EE69F8CCDADF94587957DF15C97 * L_7 = (Comparison_1_tB6FC1D7EE4276EE69F8CCDADF94587957DF15C97 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 4)); (( void (*) (Comparison_1_tB6FC1D7EE4276EE69F8CCDADF94587957DF15C97 *, RuntimeObject *, intptr_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 5)->methodPointer)(L_7, (RuntimeObject *)L_6, (intptr_t)((intptr_t)GetInterfaceMethodInfo(L_6, 0, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 3))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 5)); (( void (*) (Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD*, int32_t, int32_t, Comparison_1_tB6FC1D7EE4276EE69F8CCDADF94587957DF15C97 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)->methodPointer)((Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD*)L_2, (int32_t)L_3, (int32_t)L_4, (Comparison_1_tB6FC1D7EE4276EE69F8CCDADF94587957DF15C97 *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)); goto IL_0037; } } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&IndexOutOfRangeException_tDC9EF7A0346CE39E54DA1083F07BE6DFC3CE2EDD_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_0021; } if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&Exception_t_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_002a; } throw e; } CATCH_0021: { // begin catch(System.IndexOutOfRangeException) RuntimeObject* L_8 = ___comparer3; IntrospectiveSortUtilities_ThrowOrIgnoreBadComparer_mE23A8103696FA67F874E7DA86625BB3921DB801F((RuntimeObject *)L_8, /*hidden argument*/NULL); IL2CPP_POP_ACTIVE_EXCEPTION(); goto IL_0037; } // end catch (depth: 1) CATCH_002a: { // begin catch(System.Exception) V_0 = (Exception_t *)((Exception_t *)IL2CPP_GET_ACTIVE_EXCEPTION(Exception_t *)); Exception_t * L_9 = V_0; InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB * L_10 = (InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB *)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB_il2cpp_TypeInfo_var))); InvalidOperationException__ctor_m4A65916B1316FBF45ECDF1FF7FAC9E3CA30C112C(L_10, (String_t*)((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral6EDB6C049ED9617FA335A262A29BF30B15221AEA)), (Exception_t *)L_9, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_10, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArraySortHelper_1_Sort_m042552CEF22A3579AC64030D39F3D193956EDC96_RuntimeMethod_var))); } // end catch (depth: 1) IL_0037: { return; } } // System.Int32 System.Collections.Generic.ArraySortHelper`1<System.Int16>::BinarySearch(T[],System.Int32,System.Int32,T,System.Collections.Generic.IComparer`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t ArraySortHelper_1_BinarySearch_m2A8AE45AE6EF0E6AED9130F19B10FFAD9119F7BB_gshared (Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD* ___array0, int32_t ___index1, int32_t ___length2, int16_t ___value3, RuntimeObject* ___comparer4, const RuntimeMethod* method) { int32_t V_0 = 0; Exception_t * V_1 = NULL; il2cpp::utils::ExceptionSupportStack<RuntimeObject*, 1> __active_exceptions; il2cpp::utils::ExceptionSupportStack<int32_t, 1> __leave_targets; IL_0000: try { // begin try (depth: 1) { RuntimeObject* L_0 = ___comparer4; if (L_0) { goto IL_000b; } } IL_0004: { Comparer_1_t0B4899E6018F9D85829D592D6DFB60E2180C6D7D * L_1; L_1 = (( Comparer_1_t0B4899E6018F9D85829D592D6DFB60E2180C6D7D * (*) (const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)->methodPointer)(/*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)); ___comparer4 = (RuntimeObject*)L_1; } IL_000b: { Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD* L_2 = ___array0; int32_t L_3 = ___index1; int32_t L_4 = ___length2; int16_t L_5 = ___value3; RuntimeObject* L_6 = ___comparer4; int32_t L_7; L_7 = (( int32_t (*) (Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD*, int32_t, int32_t, int16_t, RuntimeObject*, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 8)->methodPointer)((Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD*)L_2, (int32_t)L_3, (int32_t)L_4, (int16_t)L_5, (RuntimeObject*)L_6, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 8)); V_0 = (int32_t)L_7; goto IL_0026; } } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&Exception_t_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_0019; } throw e; } CATCH_0019: { // begin catch(System.Exception) V_1 = (Exception_t *)((Exception_t *)IL2CPP_GET_ACTIVE_EXCEPTION(Exception_t *)); Exception_t * L_8 = V_1; InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB * L_9 = (InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB *)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB_il2cpp_TypeInfo_var))); InvalidOperationException__ctor_m4A65916B1316FBF45ECDF1FF7FAC9E3CA30C112C(L_9, (String_t*)((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral6EDB6C049ED9617FA335A262A29BF30B15221AEA)), (Exception_t *)L_8, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_9, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArraySortHelper_1_BinarySearch_m2A8AE45AE6EF0E6AED9130F19B10FFAD9119F7BB_RuntimeMethod_var))); } // end catch (depth: 1) IL_0026: { int32_t L_10 = V_0; return (int32_t)L_10; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Int16>::Sort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Sort_m72FE72C3B3D373D080F7B64B6F666706B6741791_gshared (Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD* ___keys0, int32_t ___index1, int32_t ___length2, Comparison_1_tB6FC1D7EE4276EE69F8CCDADF94587957DF15C97 * ___comparer3, const RuntimeMethod* method) { Exception_t * V_0 = NULL; il2cpp::utils::ExceptionSupportStack<RuntimeObject*, 1> __active_exceptions; il2cpp::utils::ExceptionSupportStack<int32_t, 2> __leave_targets; IL_0000: try { // begin try (depth: 1) Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD* L_0 = ___keys0; int32_t L_1 = ___index1; int32_t L_2 = ___length2; Comparison_1_tB6FC1D7EE4276EE69F8CCDADF94587957DF15C97 * L_3 = ___comparer3; (( void (*) (Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD*, int32_t, int32_t, Comparison_1_tB6FC1D7EE4276EE69F8CCDADF94587957DF15C97 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)->methodPointer)((Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD*)L_0, (int32_t)L_1, (int32_t)L_2, (Comparison_1_tB6FC1D7EE4276EE69F8CCDADF94587957DF15C97 *)L_3, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)); goto IL_0021; } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&IndexOutOfRangeException_tDC9EF7A0346CE39E54DA1083F07BE6DFC3CE2EDD_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_000b; } if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&Exception_t_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_0014; } throw e; } CATCH_000b: { // begin catch(System.IndexOutOfRangeException) Comparison_1_tB6FC1D7EE4276EE69F8CCDADF94587957DF15C97 * L_4 = ___comparer3; IntrospectiveSortUtilities_ThrowOrIgnoreBadComparer_mE23A8103696FA67F874E7DA86625BB3921DB801F((RuntimeObject *)L_4, /*hidden argument*/NULL); IL2CPP_POP_ACTIVE_EXCEPTION(); goto IL_0021; } // end catch (depth: 1) CATCH_0014: { // begin catch(System.Exception) V_0 = (Exception_t *)((Exception_t *)IL2CPP_GET_ACTIVE_EXCEPTION(Exception_t *)); Exception_t * L_5 = V_0; InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB * L_6 = (InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB *)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB_il2cpp_TypeInfo_var))); InvalidOperationException__ctor_m4A65916B1316FBF45ECDF1FF7FAC9E3CA30C112C(L_6, (String_t*)((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral6EDB6C049ED9617FA335A262A29BF30B15221AEA)), (Exception_t *)L_5, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_6, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArraySortHelper_1_Sort_m72FE72C3B3D373D080F7B64B6F666706B6741791_RuntimeMethod_var))); } // end catch (depth: 1) IL_0021: { return; } } // System.Int32 System.Collections.Generic.ArraySortHelper`1<System.Int16>::InternalBinarySearch(T[],System.Int32,System.Int32,T,System.Collections.Generic.IComparer`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t ArraySortHelper_1_InternalBinarySearch_mEFF55D7F9AF8BFDEB215D91B7DA343FBFE808423_gshared (Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD* ___array0, int32_t ___index1, int32_t ___length2, int16_t ___value3, RuntimeObject* ___comparer4, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; int32_t V_2 = 0; int32_t V_3 = 0; { int32_t L_0 = ___index1; V_0 = (int32_t)L_0; int32_t L_1 = ___index1; int32_t L_2 = ___length2; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_1, (int32_t)L_2)), (int32_t)1)); goto IL_0035; } IL_000a: { int32_t L_3 = V_0; int32_t L_4 = V_1; int32_t L_5 = V_0; V_2 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)((int32_t)((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_4, (int32_t)L_5))>>(int32_t)1)))); RuntimeObject* L_6 = ___comparer4; Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD* L_7 = ___array0; int32_t L_8 = V_2; NullCheck(L_7); int32_t L_9 = L_8; int16_t L_10 = (L_7)->GetAt(static_cast<il2cpp_array_size_t>(L_9)); int16_t L_11 = ___value3; NullCheck((RuntimeObject*)L_6); int32_t L_12; L_12 = InterfaceFuncInvoker2< int32_t, int16_t, int16_t >::Invoke(0 /* System.Int32 System.Collections.Generic.IComparer`1<System.Int16>::Compare(T,T) */, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 3), (RuntimeObject*)L_6, (int16_t)L_10, (int16_t)L_11); V_3 = (int32_t)L_12; int32_t L_13 = V_3; if (L_13) { goto IL_0027; } } { int32_t L_14 = V_2; return (int32_t)L_14; } IL_0027: { int32_t L_15 = V_3; if ((((int32_t)L_15) >= ((int32_t)0))) { goto IL_0031; } } { int32_t L_16 = V_2; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_16, (int32_t)1)); goto IL_0035; } IL_0031: { int32_t L_17 = V_2; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_17, (int32_t)1)); } IL_0035: { int32_t L_18 = V_0; int32_t L_19 = V_1; if ((((int32_t)L_18) <= ((int32_t)L_19))) { goto IL_000a; } } { int32_t L_20 = V_0; return (int32_t)((~L_20)); } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Int16>::SwapIfGreater(T[],System.Comparison`1<T>,System.Int32,System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_SwapIfGreater_m3693E4D07860A69CE00EEAA1298E48E00E761710_gshared (Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD* ___keys0, Comparison_1_tB6FC1D7EE4276EE69F8CCDADF94587957DF15C97 * ___comparer1, int32_t ___a2, int32_t ___b3, const RuntimeMethod* method) { int16_t V_0 = 0; { int32_t L_0 = ___a2; int32_t L_1 = ___b3; if ((((int32_t)L_0) == ((int32_t)L_1))) { goto IL_0039; } } { Comparison_1_tB6FC1D7EE4276EE69F8CCDADF94587957DF15C97 * L_2 = ___comparer1; Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD* L_3 = ___keys0; int32_t L_4 = ___a2; NullCheck(L_3); int32_t L_5 = L_4; int16_t L_6 = (L_3)->GetAt(static_cast<il2cpp_array_size_t>(L_5)); Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD* L_7 = ___keys0; int32_t L_8 = ___b3; NullCheck(L_7); int32_t L_9 = L_8; int16_t L_10 = (L_7)->GetAt(static_cast<il2cpp_array_size_t>(L_9)); NullCheck((Comparison_1_tB6FC1D7EE4276EE69F8CCDADF94587957DF15C97 *)L_2); int32_t L_11; L_11 = (( int32_t (*) (Comparison_1_tB6FC1D7EE4276EE69F8CCDADF94587957DF15C97 *, int16_t, int16_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_tB6FC1D7EE4276EE69F8CCDADF94587957DF15C97 *)L_2, (int16_t)L_6, (int16_t)L_10, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_11) <= ((int32_t)0))) { goto IL_0039; } } { Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD* L_12 = ___keys0; int32_t L_13 = ___a2; NullCheck(L_12); int32_t L_14 = L_13; int16_t L_15 = (L_12)->GetAt(static_cast<il2cpp_array_size_t>(L_14)); V_0 = (int16_t)L_15; Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD* L_16 = ___keys0; int32_t L_17 = ___a2; Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD* L_18 = ___keys0; int32_t L_19 = ___b3; NullCheck(L_18); int32_t L_20 = L_19; int16_t L_21 = (L_18)->GetAt(static_cast<il2cpp_array_size_t>(L_20)); NullCheck(L_16); (L_16)->SetAt(static_cast<il2cpp_array_size_t>(L_17), (int16_t)L_21); Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD* L_22 = ___keys0; int32_t L_23 = ___b3; int16_t L_24 = V_0; NullCheck(L_22); (L_22)->SetAt(static_cast<il2cpp_array_size_t>(L_23), (int16_t)L_24); } IL_0039: { return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Int16>::Swap(T[],System.Int32,System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Swap_mB0107D90072A95BAF06F50131BC0D260B0FFB219_gshared (Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD* ___a0, int32_t ___i1, int32_t ___j2, const RuntimeMethod* method) { int16_t V_0 = 0; { int32_t L_0 = ___i1; int32_t L_1 = ___j2; if ((((int32_t)L_0) == ((int32_t)L_1))) { goto IL_0022; } } { Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD* L_2 = ___a0; int32_t L_3 = ___i1; NullCheck(L_2); int32_t L_4 = L_3; int16_t L_5 = (L_2)->GetAt(static_cast<il2cpp_array_size_t>(L_4)); V_0 = (int16_t)L_5; Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD* L_6 = ___a0; int32_t L_7 = ___i1; Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD* L_8 = ___a0; int32_t L_9 = ___j2; NullCheck(L_8); int32_t L_10 = L_9; int16_t L_11 = (L_8)->GetAt(static_cast<il2cpp_array_size_t>(L_10)); NullCheck(L_6); (L_6)->SetAt(static_cast<il2cpp_array_size_t>(L_7), (int16_t)L_11); Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD* L_12 = ___a0; int32_t L_13 = ___j2; int16_t L_14 = V_0; NullCheck(L_12); (L_12)->SetAt(static_cast<il2cpp_array_size_t>(L_13), (int16_t)L_14); } IL_0022: { return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Int16>::IntrospectiveSort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_IntrospectiveSort_m397CFA90E9F13EDD1206022E65A68F4CCEE28116_gshared (Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD* ___keys0, int32_t ___left1, int32_t ___length2, Comparison_1_tB6FC1D7EE4276EE69F8CCDADF94587957DF15C97 * ___comparer3, const RuntimeMethod* method) { { int32_t L_0 = ___length2; if ((((int32_t)L_0) >= ((int32_t)2))) { goto IL_0005; } } { return; } IL_0005: { Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD* L_1 = ___keys0; int32_t L_2 = ___left1; int32_t L_3 = ___length2; int32_t L_4 = ___left1; Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD* L_5 = ___keys0; NullCheck(L_5); int32_t L_6; L_6 = IntrospectiveSortUtilities_FloorLog2_m05ECB6CAC7A23087D9EC2C2A4DDCFE12272C3872((int32_t)((int32_t)((int32_t)(((RuntimeArray*)L_5)->max_length))), /*hidden argument*/NULL); Comparison_1_tB6FC1D7EE4276EE69F8CCDADF94587957DF15C97 * L_7 = ___comparer3; (( void (*) (Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD*, int32_t, int32_t, int32_t, Comparison_1_tB6FC1D7EE4276EE69F8CCDADF94587957DF15C97 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)->methodPointer)((Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD*)L_1, (int32_t)L_2, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)L_4)), (int32_t)1)), (int32_t)((int32_t)il2cpp_codegen_multiply((int32_t)2, (int32_t)L_6)), (Comparison_1_tB6FC1D7EE4276EE69F8CCDADF94587957DF15C97 *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)); return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Int16>::IntroSort(T[],System.Int32,System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_IntroSort_mCCBCECE43338D5E9FE2403C3B1DB8A53220C299F_gshared (Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD* ___keys0, int32_t ___lo1, int32_t ___hi2, int32_t ___depthLimit3, Comparison_1_tB6FC1D7EE4276EE69F8CCDADF94587957DF15C97 * ___comparer4, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; { goto IL_0086; } IL_0005: { int32_t L_0 = ___hi2; int32_t L_1 = ___lo1; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_0, (int32_t)L_1)), (int32_t)1)); int32_t L_2 = V_0; if ((((int32_t)L_2) > ((int32_t)((int32_t)16)))) { goto IL_0056; } } { int32_t L_3 = V_0; if ((!(((uint32_t)L_3) == ((uint32_t)1)))) { goto IL_0015; } } { return; } IL_0015: { int32_t L_4 = V_0; if ((!(((uint32_t)L_4) == ((uint32_t)2)))) { goto IL_0024; } } { Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD* L_5 = ___keys0; Comparison_1_tB6FC1D7EE4276EE69F8CCDADF94587957DF15C97 * L_6 = ___comparer4; int32_t L_7 = ___lo1; int32_t L_8 = ___hi2; (( void (*) (Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD*, Comparison_1_tB6FC1D7EE4276EE69F8CCDADF94587957DF15C97 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD*)L_5, (Comparison_1_tB6FC1D7EE4276EE69F8CCDADF94587957DF15C97 *)L_6, (int32_t)L_7, (int32_t)L_8, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); return; } IL_0024: { int32_t L_9 = V_0; if ((!(((uint32_t)L_9) == ((uint32_t)3)))) { goto IL_004b; } } { Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD* L_10 = ___keys0; Comparison_1_tB6FC1D7EE4276EE69F8CCDADF94587957DF15C97 * L_11 = ___comparer4; int32_t L_12 = ___lo1; int32_t L_13 = ___hi2; (( void (*) (Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD*, Comparison_1_tB6FC1D7EE4276EE69F8CCDADF94587957DF15C97 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD*)L_10, (Comparison_1_tB6FC1D7EE4276EE69F8CCDADF94587957DF15C97 *)L_11, (int32_t)L_12, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_13, (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD* L_14 = ___keys0; Comparison_1_tB6FC1D7EE4276EE69F8CCDADF94587957DF15C97 * L_15 = ___comparer4; int32_t L_16 = ___lo1; int32_t L_17 = ___hi2; (( void (*) (Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD*, Comparison_1_tB6FC1D7EE4276EE69F8CCDADF94587957DF15C97 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD*)L_14, (Comparison_1_tB6FC1D7EE4276EE69F8CCDADF94587957DF15C97 *)L_15, (int32_t)L_16, (int32_t)L_17, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD* L_18 = ___keys0; Comparison_1_tB6FC1D7EE4276EE69F8CCDADF94587957DF15C97 * L_19 = ___comparer4; int32_t L_20 = ___hi2; int32_t L_21 = ___hi2; (( void (*) (Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD*, Comparison_1_tB6FC1D7EE4276EE69F8CCDADF94587957DF15C97 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD*)L_18, (Comparison_1_tB6FC1D7EE4276EE69F8CCDADF94587957DF15C97 *)L_19, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_20, (int32_t)1)), (int32_t)L_21, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); return; } IL_004b: { Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD* L_22 = ___keys0; int32_t L_23 = ___lo1; int32_t L_24 = ___hi2; Comparison_1_tB6FC1D7EE4276EE69F8CCDADF94587957DF15C97 * L_25 = ___comparer4; (( void (*) (Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD*, int32_t, int32_t, Comparison_1_tB6FC1D7EE4276EE69F8CCDADF94587957DF15C97 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 12)->methodPointer)((Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD*)L_22, (int32_t)L_23, (int32_t)L_24, (Comparison_1_tB6FC1D7EE4276EE69F8CCDADF94587957DF15C97 *)L_25, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 12)); return; } IL_0056: { int32_t L_26 = ___depthLimit3; if (L_26) { goto IL_0064; } } { Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD* L_27 = ___keys0; int32_t L_28 = ___lo1; int32_t L_29 = ___hi2; Comparison_1_tB6FC1D7EE4276EE69F8CCDADF94587957DF15C97 * L_30 = ___comparer4; (( void (*) (Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD*, int32_t, int32_t, Comparison_1_tB6FC1D7EE4276EE69F8CCDADF94587957DF15C97 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 13)->methodPointer)((Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD*)L_27, (int32_t)L_28, (int32_t)L_29, (Comparison_1_tB6FC1D7EE4276EE69F8CCDADF94587957DF15C97 *)L_30, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 13)); return; } IL_0064: { int32_t L_31 = ___depthLimit3; ___depthLimit3 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_31, (int32_t)1)); Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD* L_32 = ___keys0; int32_t L_33 = ___lo1; int32_t L_34 = ___hi2; Comparison_1_tB6FC1D7EE4276EE69F8CCDADF94587957DF15C97 * L_35 = ___comparer4; int32_t L_36; L_36 = (( int32_t (*) (Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD*, int32_t, int32_t, Comparison_1_tB6FC1D7EE4276EE69F8CCDADF94587957DF15C97 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 14)->methodPointer)((Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD*)L_32, (int32_t)L_33, (int32_t)L_34, (Comparison_1_tB6FC1D7EE4276EE69F8CCDADF94587957DF15C97 *)L_35, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 14)); V_1 = (int32_t)L_36; Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD* L_37 = ___keys0; int32_t L_38 = V_1; int32_t L_39 = ___hi2; int32_t L_40 = ___depthLimit3; Comparison_1_tB6FC1D7EE4276EE69F8CCDADF94587957DF15C97 * L_41 = ___comparer4; (( void (*) (Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD*, int32_t, int32_t, int32_t, Comparison_1_tB6FC1D7EE4276EE69F8CCDADF94587957DF15C97 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)->methodPointer)((Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD*)L_37, (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_38, (int32_t)1)), (int32_t)L_39, (int32_t)L_40, (Comparison_1_tB6FC1D7EE4276EE69F8CCDADF94587957DF15C97 *)L_41, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)); int32_t L_42 = V_1; ___hi2 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_42, (int32_t)1)); } IL_0086: { int32_t L_43 = ___hi2; int32_t L_44 = ___lo1; if ((((int32_t)L_43) > ((int32_t)L_44))) { goto IL_0005; } } { return; } } // System.Int32 System.Collections.Generic.ArraySortHelper`1<System.Int16>::PickPivotAndPartition(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t ArraySortHelper_1_PickPivotAndPartition_m8FF57DA0112747FDC536E19EB4721E7FD1039A2E_gshared (Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD* ___keys0, int32_t ___lo1, int32_t ___hi2, Comparison_1_tB6FC1D7EE4276EE69F8CCDADF94587957DF15C97 * ___comparer3, const RuntimeMethod* method) { int32_t V_0 = 0; int16_t V_1 = 0; int32_t V_2 = 0; int32_t V_3 = 0; { int32_t L_0 = ___lo1; int32_t L_1 = ___hi2; int32_t L_2 = ___lo1; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_0, (int32_t)((int32_t)((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_1, (int32_t)L_2))/(int32_t)2)))); Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD* L_3 = ___keys0; Comparison_1_tB6FC1D7EE4276EE69F8CCDADF94587957DF15C97 * L_4 = ___comparer3; int32_t L_5 = ___lo1; int32_t L_6 = V_0; (( void (*) (Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD*, Comparison_1_tB6FC1D7EE4276EE69F8CCDADF94587957DF15C97 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD*)L_3, (Comparison_1_tB6FC1D7EE4276EE69F8CCDADF94587957DF15C97 *)L_4, (int32_t)L_5, (int32_t)L_6, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD* L_7 = ___keys0; Comparison_1_tB6FC1D7EE4276EE69F8CCDADF94587957DF15C97 * L_8 = ___comparer3; int32_t L_9 = ___lo1; int32_t L_10 = ___hi2; (( void (*) (Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD*, Comparison_1_tB6FC1D7EE4276EE69F8CCDADF94587957DF15C97 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD*)L_7, (Comparison_1_tB6FC1D7EE4276EE69F8CCDADF94587957DF15C97 *)L_8, (int32_t)L_9, (int32_t)L_10, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD* L_11 = ___keys0; Comparison_1_tB6FC1D7EE4276EE69F8CCDADF94587957DF15C97 * L_12 = ___comparer3; int32_t L_13 = V_0; int32_t L_14 = ___hi2; (( void (*) (Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD*, Comparison_1_tB6FC1D7EE4276EE69F8CCDADF94587957DF15C97 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD*)L_11, (Comparison_1_tB6FC1D7EE4276EE69F8CCDADF94587957DF15C97 *)L_12, (int32_t)L_13, (int32_t)L_14, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD* L_15 = ___keys0; int32_t L_16 = V_0; NullCheck(L_15); int32_t L_17 = L_16; int16_t L_18 = (L_15)->GetAt(static_cast<il2cpp_array_size_t>(L_17)); V_1 = (int16_t)L_18; Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD* L_19 = ___keys0; int32_t L_20 = V_0; int32_t L_21 = ___hi2; (( void (*) (Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD*)L_19, (int32_t)L_20, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_21, (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); int32_t L_22 = ___lo1; V_2 = (int32_t)L_22; int32_t L_23 = ___hi2; V_3 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_23, (int32_t)1)); goto IL_0073; } IL_003d: { Comparison_1_tB6FC1D7EE4276EE69F8CCDADF94587957DF15C97 * L_24 = ___comparer3; Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD* L_25 = ___keys0; int32_t L_26 = V_2; int32_t L_27 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_26, (int32_t)1)); V_2 = (int32_t)L_27; NullCheck(L_25); int32_t L_28 = L_27; int16_t L_29 = (L_25)->GetAt(static_cast<il2cpp_array_size_t>(L_28)); int16_t L_30 = V_1; NullCheck((Comparison_1_tB6FC1D7EE4276EE69F8CCDADF94587957DF15C97 *)L_24); int32_t L_31; L_31 = (( int32_t (*) (Comparison_1_tB6FC1D7EE4276EE69F8CCDADF94587957DF15C97 *, int16_t, int16_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_tB6FC1D7EE4276EE69F8CCDADF94587957DF15C97 *)L_24, (int16_t)L_29, (int16_t)L_30, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_31) < ((int32_t)0))) { goto IL_003d; } } IL_0052: { Comparison_1_tB6FC1D7EE4276EE69F8CCDADF94587957DF15C97 * L_32 = ___comparer3; int16_t L_33 = V_1; Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD* L_34 = ___keys0; int32_t L_35 = V_3; int32_t L_36 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_35, (int32_t)1)); V_3 = (int32_t)L_36; NullCheck(L_34); int32_t L_37 = L_36; int16_t L_38 = (L_34)->GetAt(static_cast<il2cpp_array_size_t>(L_37)); NullCheck((Comparison_1_tB6FC1D7EE4276EE69F8CCDADF94587957DF15C97 *)L_32); int32_t L_39; L_39 = (( int32_t (*) (Comparison_1_tB6FC1D7EE4276EE69F8CCDADF94587957DF15C97 *, int16_t, int16_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_tB6FC1D7EE4276EE69F8CCDADF94587957DF15C97 *)L_32, (int16_t)L_33, (int16_t)L_38, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_39) < ((int32_t)0))) { goto IL_0052; } } { int32_t L_40 = V_2; int32_t L_41 = V_3; if ((((int32_t)L_40) >= ((int32_t)L_41))) { goto IL_0077; } } { Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD* L_42 = ___keys0; int32_t L_43 = V_2; int32_t L_44 = V_3; (( void (*) (Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD*)L_42, (int32_t)L_43, (int32_t)L_44, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); } IL_0073: { int32_t L_45 = V_2; int32_t L_46 = V_3; if ((((int32_t)L_45) < ((int32_t)L_46))) { goto IL_003d; } } IL_0077: { Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD* L_47 = ___keys0; int32_t L_48 = V_2; int32_t L_49 = ___hi2; (( void (*) (Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD*)L_47, (int32_t)L_48, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_49, (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); int32_t L_50 = V_2; return (int32_t)L_50; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Int16>::Heapsort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Heapsort_mB9C72EBA86C8AA911032EE1FF497321DFC8BA6C8_gshared (Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD* ___keys0, int32_t ___lo1, int32_t ___hi2, Comparison_1_tB6FC1D7EE4276EE69F8CCDADF94587957DF15C97 * ___comparer3, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; int32_t V_2 = 0; { int32_t L_0 = ___hi2; int32_t L_1 = ___lo1; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_0, (int32_t)L_1)), (int32_t)1)); int32_t L_2 = V_0; V_1 = (int32_t)((int32_t)((int32_t)L_2/(int32_t)2)); goto IL_001a; } IL_000c: { Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD* L_3 = ___keys0; int32_t L_4 = V_1; int32_t L_5 = V_0; int32_t L_6 = ___lo1; Comparison_1_tB6FC1D7EE4276EE69F8CCDADF94587957DF15C97 * L_7 = ___comparer3; (( void (*) (Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD*, int32_t, int32_t, int32_t, Comparison_1_tB6FC1D7EE4276EE69F8CCDADF94587957DF15C97 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)->methodPointer)((Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD*)L_3, (int32_t)L_4, (int32_t)L_5, (int32_t)L_6, (Comparison_1_tB6FC1D7EE4276EE69F8CCDADF94587957DF15C97 *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)); int32_t L_8 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_8, (int32_t)1)); } IL_001a: { int32_t L_9 = V_1; if ((((int32_t)L_9) >= ((int32_t)1))) { goto IL_000c; } } { int32_t L_10 = V_0; V_2 = (int32_t)L_10; goto IL_003e; } IL_0022: { Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD* L_11 = ___keys0; int32_t L_12 = ___lo1; int32_t L_13 = ___lo1; int32_t L_14 = V_2; (( void (*) (Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD*)L_11, (int32_t)L_12, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_13, (int32_t)L_14)), (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD* L_15 = ___keys0; int32_t L_16 = V_2; int32_t L_17 = ___lo1; Comparison_1_tB6FC1D7EE4276EE69F8CCDADF94587957DF15C97 * L_18 = ___comparer3; (( void (*) (Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD*, int32_t, int32_t, int32_t, Comparison_1_tB6FC1D7EE4276EE69F8CCDADF94587957DF15C97 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)->methodPointer)((Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD*)L_15, (int32_t)1, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_16, (int32_t)1)), (int32_t)L_17, (Comparison_1_tB6FC1D7EE4276EE69F8CCDADF94587957DF15C97 *)L_18, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)); int32_t L_19 = V_2; V_2 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_19, (int32_t)1)); } IL_003e: { int32_t L_20 = V_2; if ((((int32_t)L_20) > ((int32_t)1))) { goto IL_0022; } } { return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Int16>::DownHeap(T[],System.Int32,System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_DownHeap_m04B741B5BAEA937617EC04F4AD0A8D27A52C67C2_gshared (Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD* ___keys0, int32_t ___i1, int32_t ___n2, int32_t ___lo3, Comparison_1_tB6FC1D7EE4276EE69F8CCDADF94587957DF15C97 * ___comparer4, const RuntimeMethod* method) { int16_t V_0 = 0; int32_t V_1 = 0; { Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD* L_0 = ___keys0; int32_t L_1 = ___lo3; int32_t L_2 = ___i1; NullCheck(L_0); int32_t L_3 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_1, (int32_t)L_2)), (int32_t)1)); int16_t L_4 = (L_0)->GetAt(static_cast<il2cpp_array_size_t>(L_3)); V_0 = (int16_t)L_4; goto IL_0067; } IL_000e: { int32_t L_5 = ___i1; V_1 = (int32_t)((int32_t)il2cpp_codegen_multiply((int32_t)2, (int32_t)L_5)); int32_t L_6 = V_1; int32_t L_7 = ___n2; if ((((int32_t)L_6) >= ((int32_t)L_7))) { goto IL_0038; } } { Comparison_1_tB6FC1D7EE4276EE69F8CCDADF94587957DF15C97 * L_8 = ___comparer4; Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD* L_9 = ___keys0; int32_t L_10 = ___lo3; int32_t L_11 = V_1; NullCheck(L_9); int32_t L_12 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_10, (int32_t)L_11)), (int32_t)1)); int16_t L_13 = (L_9)->GetAt(static_cast<il2cpp_array_size_t>(L_12)); Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD* L_14 = ___keys0; int32_t L_15 = ___lo3; int32_t L_16 = V_1; NullCheck(L_14); int32_t L_17 = ((int32_t)il2cpp_codegen_add((int32_t)L_15, (int32_t)L_16)); int16_t L_18 = (L_14)->GetAt(static_cast<il2cpp_array_size_t>(L_17)); NullCheck((Comparison_1_tB6FC1D7EE4276EE69F8CCDADF94587957DF15C97 *)L_8); int32_t L_19; L_19 = (( int32_t (*) (Comparison_1_tB6FC1D7EE4276EE69F8CCDADF94587957DF15C97 *, int16_t, int16_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_tB6FC1D7EE4276EE69F8CCDADF94587957DF15C97 *)L_8, (int16_t)L_13, (int16_t)L_18, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_19) >= ((int32_t)0))) { goto IL_0038; } } { int32_t L_20 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_20, (int32_t)1)); } IL_0038: { Comparison_1_tB6FC1D7EE4276EE69F8CCDADF94587957DF15C97 * L_21 = ___comparer4; int16_t L_22 = V_0; Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD* L_23 = ___keys0; int32_t L_24 = ___lo3; int32_t L_25 = V_1; NullCheck(L_23); int32_t L_26 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_24, (int32_t)L_25)), (int32_t)1)); int16_t L_27 = (L_23)->GetAt(static_cast<il2cpp_array_size_t>(L_26)); NullCheck((Comparison_1_tB6FC1D7EE4276EE69F8CCDADF94587957DF15C97 *)L_21); int32_t L_28; L_28 = (( int32_t (*) (Comparison_1_tB6FC1D7EE4276EE69F8CCDADF94587957DF15C97 *, int16_t, int16_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_tB6FC1D7EE4276EE69F8CCDADF94587957DF15C97 *)L_21, (int16_t)L_22, (int16_t)L_27, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_28) >= ((int32_t)0))) { goto IL_006d; } } { Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD* L_29 = ___keys0; int32_t L_30 = ___lo3; int32_t L_31 = ___i1; Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD* L_32 = ___keys0; int32_t L_33 = ___lo3; int32_t L_34 = V_1; NullCheck(L_32); int32_t L_35 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_33, (int32_t)L_34)), (int32_t)1)); int16_t L_36 = (L_32)->GetAt(static_cast<il2cpp_array_size_t>(L_35)); NullCheck(L_29); (L_29)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_30, (int32_t)L_31)), (int32_t)1))), (int16_t)L_36); int32_t L_37 = V_1; ___i1 = (int32_t)L_37; } IL_0067: { int32_t L_38 = ___i1; int32_t L_39 = ___n2; if ((((int32_t)L_38) <= ((int32_t)((int32_t)((int32_t)L_39/(int32_t)2))))) { goto IL_000e; } } IL_006d: { Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD* L_40 = ___keys0; int32_t L_41 = ___lo3; int32_t L_42 = ___i1; int16_t L_43 = V_0; NullCheck(L_40); (L_40)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_41, (int32_t)L_42)), (int32_t)1))), (int16_t)L_43); return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Int16>::InsertionSort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_InsertionSort_mDEC42D285425571AEC16C3F9F9E0FED8F4F4D41E_gshared (Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD* ___keys0, int32_t ___lo1, int32_t ___hi2, Comparison_1_tB6FC1D7EE4276EE69F8CCDADF94587957DF15C97 * ___comparer3, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; int16_t V_2 = 0; { int32_t L_0 = ___lo1; V_0 = (int32_t)L_0; goto IL_0049; } IL_0004: { int32_t L_1 = V_0; V_1 = (int32_t)L_1; Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD* L_2 = ___keys0; int32_t L_3 = V_0; NullCheck(L_2); int32_t L_4 = ((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)1)); int16_t L_5 = (L_2)->GetAt(static_cast<il2cpp_array_size_t>(L_4)); V_2 = (int16_t)L_5; goto IL_0026; } IL_0012: { Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD* L_6 = ___keys0; int32_t L_7 = V_1; Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD* L_8 = ___keys0; int32_t L_9 = V_1; NullCheck(L_8); int32_t L_10 = L_9; int16_t L_11 = (L_8)->GetAt(static_cast<il2cpp_array_size_t>(L_10)); NullCheck(L_6); (L_6)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add((int32_t)L_7, (int32_t)1))), (int16_t)L_11); int32_t L_12 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_12, (int32_t)1)); } IL_0026: { int32_t L_13 = V_1; int32_t L_14 = ___lo1; if ((((int32_t)L_13) < ((int32_t)L_14))) { goto IL_003b; } } { Comparison_1_tB6FC1D7EE4276EE69F8CCDADF94587957DF15C97 * L_15 = ___comparer3; int16_t L_16 = V_2; Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD* L_17 = ___keys0; int32_t L_18 = V_1; NullCheck(L_17); int32_t L_19 = L_18; int16_t L_20 = (L_17)->GetAt(static_cast<il2cpp_array_size_t>(L_19)); NullCheck((Comparison_1_tB6FC1D7EE4276EE69F8CCDADF94587957DF15C97 *)L_15); int32_t L_21; L_21 = (( int32_t (*) (Comparison_1_tB6FC1D7EE4276EE69F8CCDADF94587957DF15C97 *, int16_t, int16_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_tB6FC1D7EE4276EE69F8CCDADF94587957DF15C97 *)L_15, (int16_t)L_16, (int16_t)L_20, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_21) < ((int32_t)0))) { goto IL_0012; } } IL_003b: { Int16U5BU5D_tD134F1E6F746D4C09C987436805256C210C2FFCD* L_22 = ___keys0; int32_t L_23 = V_1; int16_t L_24 = V_2; NullCheck(L_22); (L_22)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add((int32_t)L_23, (int32_t)1))), (int16_t)L_24); int32_t L_25 = V_0; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_25, (int32_t)1)); } IL_0049: { int32_t L_26 = V_0; int32_t L_27 = ___hi2; if ((((int32_t)L_26) < ((int32_t)L_27))) { goto IL_0004; } } { return; } } #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Void System.Collections.Generic.ArraySortHelper`1<System.Int32>::Sort(T[],System.Int32,System.Int32,System.Collections.Generic.IComparer`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Sort_m7FEC5C7FCB1B50E8A0F7CD5525A836CF02101786_gshared (Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* ___keys0, int32_t ___index1, int32_t ___length2, RuntimeObject* ___comparer3, const RuntimeMethod* method) { Exception_t * V_0 = NULL; il2cpp::utils::ExceptionSupportStack<RuntimeObject*, 1> __active_exceptions; il2cpp::utils::ExceptionSupportStack<int32_t, 2> __leave_targets; IL_0000: try { // begin try (depth: 1) { RuntimeObject* L_0 = ___comparer3; if (L_0) { goto IL_000a; } } IL_0003: { Comparer_1_t3E3093220DB5D33A829C91C1DFDBDE2F42ECEDC7 * L_1; L_1 = (( Comparer_1_t3E3093220DB5D33A829C91C1DFDBDE2F42ECEDC7 * (*) (const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)->methodPointer)(/*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)); ___comparer3 = (RuntimeObject*)L_1; } IL_000a: { Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* L_2 = ___keys0; int32_t L_3 = ___index1; int32_t L_4 = ___length2; RuntimeObject* L_5 = ___comparer3; RuntimeObject* L_6 = (RuntimeObject*)L_5; Comparison_1_t3430355DCDD0AF453788265DC88E9288D19C4E9C * L_7 = (Comparison_1_t3430355DCDD0AF453788265DC88E9288D19C4E9C *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 4)); (( void (*) (Comparison_1_t3430355DCDD0AF453788265DC88E9288D19C4E9C *, RuntimeObject *, intptr_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 5)->methodPointer)(L_7, (RuntimeObject *)L_6, (intptr_t)((intptr_t)GetInterfaceMethodInfo(L_6, 0, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 3))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 5)); (( void (*) (Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32*, int32_t, int32_t, Comparison_1_t3430355DCDD0AF453788265DC88E9288D19C4E9C *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)->methodPointer)((Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32*)L_2, (int32_t)L_3, (int32_t)L_4, (Comparison_1_t3430355DCDD0AF453788265DC88E9288D19C4E9C *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)); goto IL_0037; } } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&IndexOutOfRangeException_tDC9EF7A0346CE39E54DA1083F07BE6DFC3CE2EDD_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_0021; } if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&Exception_t_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_002a; } throw e; } CATCH_0021: { // begin catch(System.IndexOutOfRangeException) RuntimeObject* L_8 = ___comparer3; IntrospectiveSortUtilities_ThrowOrIgnoreBadComparer_mE23A8103696FA67F874E7DA86625BB3921DB801F((RuntimeObject *)L_8, /*hidden argument*/NULL); IL2CPP_POP_ACTIVE_EXCEPTION(); goto IL_0037; } // end catch (depth: 1) CATCH_002a: { // begin catch(System.Exception) V_0 = (Exception_t *)((Exception_t *)IL2CPP_GET_ACTIVE_EXCEPTION(Exception_t *)); Exception_t * L_9 = V_0; InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB * L_10 = (InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB *)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB_il2cpp_TypeInfo_var))); InvalidOperationException__ctor_m4A65916B1316FBF45ECDF1FF7FAC9E3CA30C112C(L_10, (String_t*)((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral6EDB6C049ED9617FA335A262A29BF30B15221AEA)), (Exception_t *)L_9, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_10, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArraySortHelper_1_Sort_m7FEC5C7FCB1B50E8A0F7CD5525A836CF02101786_RuntimeMethod_var))); } // end catch (depth: 1) IL_0037: { return; } } // System.Int32 System.Collections.Generic.ArraySortHelper`1<System.Int32>::BinarySearch(T[],System.Int32,System.Int32,T,System.Collections.Generic.IComparer`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t ArraySortHelper_1_BinarySearch_mA222E2C7BABAFC988BA725B9A91834503E09BEDB_gshared (Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* ___array0, int32_t ___index1, int32_t ___length2, int32_t ___value3, RuntimeObject* ___comparer4, const RuntimeMethod* method) { int32_t V_0 = 0; Exception_t * V_1 = NULL; il2cpp::utils::ExceptionSupportStack<RuntimeObject*, 1> __active_exceptions; il2cpp::utils::ExceptionSupportStack<int32_t, 1> __leave_targets; IL_0000: try { // begin try (depth: 1) { RuntimeObject* L_0 = ___comparer4; if (L_0) { goto IL_000b; } } IL_0004: { Comparer_1_t3E3093220DB5D33A829C91C1DFDBDE2F42ECEDC7 * L_1; L_1 = (( Comparer_1_t3E3093220DB5D33A829C91C1DFDBDE2F42ECEDC7 * (*) (const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)->methodPointer)(/*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)); ___comparer4 = (RuntimeObject*)L_1; } IL_000b: { Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* L_2 = ___array0; int32_t L_3 = ___index1; int32_t L_4 = ___length2; int32_t L_5 = ___value3; RuntimeObject* L_6 = ___comparer4; int32_t L_7; L_7 = (( int32_t (*) (Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32*, int32_t, int32_t, int32_t, RuntimeObject*, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 8)->methodPointer)((Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32*)L_2, (int32_t)L_3, (int32_t)L_4, (int32_t)L_5, (RuntimeObject*)L_6, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 8)); V_0 = (int32_t)L_7; goto IL_0026; } } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&Exception_t_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_0019; } throw e; } CATCH_0019: { // begin catch(System.Exception) V_1 = (Exception_t *)((Exception_t *)IL2CPP_GET_ACTIVE_EXCEPTION(Exception_t *)); Exception_t * L_8 = V_1; InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB * L_9 = (InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB *)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB_il2cpp_TypeInfo_var))); InvalidOperationException__ctor_m4A65916B1316FBF45ECDF1FF7FAC9E3CA30C112C(L_9, (String_t*)((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral6EDB6C049ED9617FA335A262A29BF30B15221AEA)), (Exception_t *)L_8, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_9, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArraySortHelper_1_BinarySearch_mA222E2C7BABAFC988BA725B9A91834503E09BEDB_RuntimeMethod_var))); } // end catch (depth: 1) IL_0026: { int32_t L_10 = V_0; return (int32_t)L_10; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Int32>::Sort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Sort_m74F2A1DD9584E09E156F1E5A8FECC0DD107424BB_gshared (Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* ___keys0, int32_t ___index1, int32_t ___length2, Comparison_1_t3430355DCDD0AF453788265DC88E9288D19C4E9C * ___comparer3, const RuntimeMethod* method) { Exception_t * V_0 = NULL; il2cpp::utils::ExceptionSupportStack<RuntimeObject*, 1> __active_exceptions; il2cpp::utils::ExceptionSupportStack<int32_t, 2> __leave_targets; IL_0000: try { // begin try (depth: 1) Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* L_0 = ___keys0; int32_t L_1 = ___index1; int32_t L_2 = ___length2; Comparison_1_t3430355DCDD0AF453788265DC88E9288D19C4E9C * L_3 = ___comparer3; (( void (*) (Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32*, int32_t, int32_t, Comparison_1_t3430355DCDD0AF453788265DC88E9288D19C4E9C *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)->methodPointer)((Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32*)L_0, (int32_t)L_1, (int32_t)L_2, (Comparison_1_t3430355DCDD0AF453788265DC88E9288D19C4E9C *)L_3, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)); goto IL_0021; } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&IndexOutOfRangeException_tDC9EF7A0346CE39E54DA1083F07BE6DFC3CE2EDD_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_000b; } if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&Exception_t_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_0014; } throw e; } CATCH_000b: { // begin catch(System.IndexOutOfRangeException) Comparison_1_t3430355DCDD0AF453788265DC88E9288D19C4E9C * L_4 = ___comparer3; IntrospectiveSortUtilities_ThrowOrIgnoreBadComparer_mE23A8103696FA67F874E7DA86625BB3921DB801F((RuntimeObject *)L_4, /*hidden argument*/NULL); IL2CPP_POP_ACTIVE_EXCEPTION(); goto IL_0021; } // end catch (depth: 1) CATCH_0014: { // begin catch(System.Exception) V_0 = (Exception_t *)((Exception_t *)IL2CPP_GET_ACTIVE_EXCEPTION(Exception_t *)); Exception_t * L_5 = V_0; InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB * L_6 = (InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB *)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB_il2cpp_TypeInfo_var))); InvalidOperationException__ctor_m4A65916B1316FBF45ECDF1FF7FAC9E3CA30C112C(L_6, (String_t*)((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral6EDB6C049ED9617FA335A262A29BF30B15221AEA)), (Exception_t *)L_5, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_6, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArraySortHelper_1_Sort_m74F2A1DD9584E09E156F1E5A8FECC0DD107424BB_RuntimeMethod_var))); } // end catch (depth: 1) IL_0021: { return; } } // System.Int32 System.Collections.Generic.ArraySortHelper`1<System.Int32>::InternalBinarySearch(T[],System.Int32,System.Int32,T,System.Collections.Generic.IComparer`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t ArraySortHelper_1_InternalBinarySearch_m77BEF71E805F14CFF14D2863BAE790EFE0A6DE9E_gshared (Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* ___array0, int32_t ___index1, int32_t ___length2, int32_t ___value3, RuntimeObject* ___comparer4, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; int32_t V_2 = 0; int32_t V_3 = 0; { int32_t L_0 = ___index1; V_0 = (int32_t)L_0; int32_t L_1 = ___index1; int32_t L_2 = ___length2; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_1, (int32_t)L_2)), (int32_t)1)); goto IL_0035; } IL_000a: { int32_t L_3 = V_0; int32_t L_4 = V_1; int32_t L_5 = V_0; V_2 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)((int32_t)((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_4, (int32_t)L_5))>>(int32_t)1)))); RuntimeObject* L_6 = ___comparer4; Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* L_7 = ___array0; int32_t L_8 = V_2; NullCheck(L_7); int32_t L_9 = L_8; int32_t L_10 = (L_7)->GetAt(static_cast<il2cpp_array_size_t>(L_9)); int32_t L_11 = ___value3; NullCheck((RuntimeObject*)L_6); int32_t L_12; L_12 = InterfaceFuncInvoker2< int32_t, int32_t, int32_t >::Invoke(0 /* System.Int32 System.Collections.Generic.IComparer`1<System.Int32>::Compare(T,T) */, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 3), (RuntimeObject*)L_6, (int32_t)L_10, (int32_t)L_11); V_3 = (int32_t)L_12; int32_t L_13 = V_3; if (L_13) { goto IL_0027; } } { int32_t L_14 = V_2; return (int32_t)L_14; } IL_0027: { int32_t L_15 = V_3; if ((((int32_t)L_15) >= ((int32_t)0))) { goto IL_0031; } } { int32_t L_16 = V_2; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_16, (int32_t)1)); goto IL_0035; } IL_0031: { int32_t L_17 = V_2; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_17, (int32_t)1)); } IL_0035: { int32_t L_18 = V_0; int32_t L_19 = V_1; if ((((int32_t)L_18) <= ((int32_t)L_19))) { goto IL_000a; } } { int32_t L_20 = V_0; return (int32_t)((~L_20)); } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Int32>::SwapIfGreater(T[],System.Comparison`1<T>,System.Int32,System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_SwapIfGreater_mA6008D742435CD8A7C80CAAB35C0C48D5EDCA72B_gshared (Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* ___keys0, Comparison_1_t3430355DCDD0AF453788265DC88E9288D19C4E9C * ___comparer1, int32_t ___a2, int32_t ___b3, const RuntimeMethod* method) { int32_t V_0 = 0; { int32_t L_0 = ___a2; int32_t L_1 = ___b3; if ((((int32_t)L_0) == ((int32_t)L_1))) { goto IL_0039; } } { Comparison_1_t3430355DCDD0AF453788265DC88E9288D19C4E9C * L_2 = ___comparer1; Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* L_3 = ___keys0; int32_t L_4 = ___a2; NullCheck(L_3); int32_t L_5 = L_4; int32_t L_6 = (L_3)->GetAt(static_cast<il2cpp_array_size_t>(L_5)); Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* L_7 = ___keys0; int32_t L_8 = ___b3; NullCheck(L_7); int32_t L_9 = L_8; int32_t L_10 = (L_7)->GetAt(static_cast<il2cpp_array_size_t>(L_9)); NullCheck((Comparison_1_t3430355DCDD0AF453788265DC88E9288D19C4E9C *)L_2); int32_t L_11; L_11 = (( int32_t (*) (Comparison_1_t3430355DCDD0AF453788265DC88E9288D19C4E9C *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t3430355DCDD0AF453788265DC88E9288D19C4E9C *)L_2, (int32_t)L_6, (int32_t)L_10, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_11) <= ((int32_t)0))) { goto IL_0039; } } { Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* L_12 = ___keys0; int32_t L_13 = ___a2; NullCheck(L_12); int32_t L_14 = L_13; int32_t L_15 = (L_12)->GetAt(static_cast<il2cpp_array_size_t>(L_14)); V_0 = (int32_t)L_15; Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* L_16 = ___keys0; int32_t L_17 = ___a2; Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* L_18 = ___keys0; int32_t L_19 = ___b3; NullCheck(L_18); int32_t L_20 = L_19; int32_t L_21 = (L_18)->GetAt(static_cast<il2cpp_array_size_t>(L_20)); NullCheck(L_16); (L_16)->SetAt(static_cast<il2cpp_array_size_t>(L_17), (int32_t)L_21); Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* L_22 = ___keys0; int32_t L_23 = ___b3; int32_t L_24 = V_0; NullCheck(L_22); (L_22)->SetAt(static_cast<il2cpp_array_size_t>(L_23), (int32_t)L_24); } IL_0039: { return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Int32>::Swap(T[],System.Int32,System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Swap_mC2EA625498445B5E118A591F91859F7A166F44C5_gshared (Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* ___a0, int32_t ___i1, int32_t ___j2, const RuntimeMethod* method) { int32_t V_0 = 0; { int32_t L_0 = ___i1; int32_t L_1 = ___j2; if ((((int32_t)L_0) == ((int32_t)L_1))) { goto IL_0022; } } { Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* L_2 = ___a0; int32_t L_3 = ___i1; NullCheck(L_2); int32_t L_4 = L_3; int32_t L_5 = (L_2)->GetAt(static_cast<il2cpp_array_size_t>(L_4)); V_0 = (int32_t)L_5; Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* L_6 = ___a0; int32_t L_7 = ___i1; Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* L_8 = ___a0; int32_t L_9 = ___j2; NullCheck(L_8); int32_t L_10 = L_9; int32_t L_11 = (L_8)->GetAt(static_cast<il2cpp_array_size_t>(L_10)); NullCheck(L_6); (L_6)->SetAt(static_cast<il2cpp_array_size_t>(L_7), (int32_t)L_11); Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* L_12 = ___a0; int32_t L_13 = ___j2; int32_t L_14 = V_0; NullCheck(L_12); (L_12)->SetAt(static_cast<il2cpp_array_size_t>(L_13), (int32_t)L_14); } IL_0022: { return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Int32>::IntrospectiveSort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_IntrospectiveSort_mD2939B1BAFA1CB27E78F02E138AF314611B720C4_gshared (Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* ___keys0, int32_t ___left1, int32_t ___length2, Comparison_1_t3430355DCDD0AF453788265DC88E9288D19C4E9C * ___comparer3, const RuntimeMethod* method) { { int32_t L_0 = ___length2; if ((((int32_t)L_0) >= ((int32_t)2))) { goto IL_0005; } } { return; } IL_0005: { Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* L_1 = ___keys0; int32_t L_2 = ___left1; int32_t L_3 = ___length2; int32_t L_4 = ___left1; Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* L_5 = ___keys0; NullCheck(L_5); int32_t L_6; L_6 = IntrospectiveSortUtilities_FloorLog2_m05ECB6CAC7A23087D9EC2C2A4DDCFE12272C3872((int32_t)((int32_t)((int32_t)(((RuntimeArray*)L_5)->max_length))), /*hidden argument*/NULL); Comparison_1_t3430355DCDD0AF453788265DC88E9288D19C4E9C * L_7 = ___comparer3; (( void (*) (Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32*, int32_t, int32_t, int32_t, Comparison_1_t3430355DCDD0AF453788265DC88E9288D19C4E9C *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)->methodPointer)((Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32*)L_1, (int32_t)L_2, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)L_4)), (int32_t)1)), (int32_t)((int32_t)il2cpp_codegen_multiply((int32_t)2, (int32_t)L_6)), (Comparison_1_t3430355DCDD0AF453788265DC88E9288D19C4E9C *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)); return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Int32>::IntroSort(T[],System.Int32,System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_IntroSort_m6130A6C6C5B28ED28F8335B457FCEB365D46C1FB_gshared (Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* ___keys0, int32_t ___lo1, int32_t ___hi2, int32_t ___depthLimit3, Comparison_1_t3430355DCDD0AF453788265DC88E9288D19C4E9C * ___comparer4, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; { goto IL_0086; } IL_0005: { int32_t L_0 = ___hi2; int32_t L_1 = ___lo1; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_0, (int32_t)L_1)), (int32_t)1)); int32_t L_2 = V_0; if ((((int32_t)L_2) > ((int32_t)((int32_t)16)))) { goto IL_0056; } } { int32_t L_3 = V_0; if ((!(((uint32_t)L_3) == ((uint32_t)1)))) { goto IL_0015; } } { return; } IL_0015: { int32_t L_4 = V_0; if ((!(((uint32_t)L_4) == ((uint32_t)2)))) { goto IL_0024; } } { Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* L_5 = ___keys0; Comparison_1_t3430355DCDD0AF453788265DC88E9288D19C4E9C * L_6 = ___comparer4; int32_t L_7 = ___lo1; int32_t L_8 = ___hi2; (( void (*) (Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32*, Comparison_1_t3430355DCDD0AF453788265DC88E9288D19C4E9C *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32*)L_5, (Comparison_1_t3430355DCDD0AF453788265DC88E9288D19C4E9C *)L_6, (int32_t)L_7, (int32_t)L_8, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); return; } IL_0024: { int32_t L_9 = V_0; if ((!(((uint32_t)L_9) == ((uint32_t)3)))) { goto IL_004b; } } { Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* L_10 = ___keys0; Comparison_1_t3430355DCDD0AF453788265DC88E9288D19C4E9C * L_11 = ___comparer4; int32_t L_12 = ___lo1; int32_t L_13 = ___hi2; (( void (*) (Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32*, Comparison_1_t3430355DCDD0AF453788265DC88E9288D19C4E9C *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32*)L_10, (Comparison_1_t3430355DCDD0AF453788265DC88E9288D19C4E9C *)L_11, (int32_t)L_12, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_13, (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* L_14 = ___keys0; Comparison_1_t3430355DCDD0AF453788265DC88E9288D19C4E9C * L_15 = ___comparer4; int32_t L_16 = ___lo1; int32_t L_17 = ___hi2; (( void (*) (Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32*, Comparison_1_t3430355DCDD0AF453788265DC88E9288D19C4E9C *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32*)L_14, (Comparison_1_t3430355DCDD0AF453788265DC88E9288D19C4E9C *)L_15, (int32_t)L_16, (int32_t)L_17, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* L_18 = ___keys0; Comparison_1_t3430355DCDD0AF453788265DC88E9288D19C4E9C * L_19 = ___comparer4; int32_t L_20 = ___hi2; int32_t L_21 = ___hi2; (( void (*) (Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32*, Comparison_1_t3430355DCDD0AF453788265DC88E9288D19C4E9C *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32*)L_18, (Comparison_1_t3430355DCDD0AF453788265DC88E9288D19C4E9C *)L_19, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_20, (int32_t)1)), (int32_t)L_21, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); return; } IL_004b: { Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* L_22 = ___keys0; int32_t L_23 = ___lo1; int32_t L_24 = ___hi2; Comparison_1_t3430355DCDD0AF453788265DC88E9288D19C4E9C * L_25 = ___comparer4; (( void (*) (Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32*, int32_t, int32_t, Comparison_1_t3430355DCDD0AF453788265DC88E9288D19C4E9C *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 12)->methodPointer)((Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32*)L_22, (int32_t)L_23, (int32_t)L_24, (Comparison_1_t3430355DCDD0AF453788265DC88E9288D19C4E9C *)L_25, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 12)); return; } IL_0056: { int32_t L_26 = ___depthLimit3; if (L_26) { goto IL_0064; } } { Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* L_27 = ___keys0; int32_t L_28 = ___lo1; int32_t L_29 = ___hi2; Comparison_1_t3430355DCDD0AF453788265DC88E9288D19C4E9C * L_30 = ___comparer4; (( void (*) (Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32*, int32_t, int32_t, Comparison_1_t3430355DCDD0AF453788265DC88E9288D19C4E9C *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 13)->methodPointer)((Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32*)L_27, (int32_t)L_28, (int32_t)L_29, (Comparison_1_t3430355DCDD0AF453788265DC88E9288D19C4E9C *)L_30, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 13)); return; } IL_0064: { int32_t L_31 = ___depthLimit3; ___depthLimit3 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_31, (int32_t)1)); Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* L_32 = ___keys0; int32_t L_33 = ___lo1; int32_t L_34 = ___hi2; Comparison_1_t3430355DCDD0AF453788265DC88E9288D19C4E9C * L_35 = ___comparer4; int32_t L_36; L_36 = (( int32_t (*) (Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32*, int32_t, int32_t, Comparison_1_t3430355DCDD0AF453788265DC88E9288D19C4E9C *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 14)->methodPointer)((Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32*)L_32, (int32_t)L_33, (int32_t)L_34, (Comparison_1_t3430355DCDD0AF453788265DC88E9288D19C4E9C *)L_35, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 14)); V_1 = (int32_t)L_36; Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* L_37 = ___keys0; int32_t L_38 = V_1; int32_t L_39 = ___hi2; int32_t L_40 = ___depthLimit3; Comparison_1_t3430355DCDD0AF453788265DC88E9288D19C4E9C * L_41 = ___comparer4; (( void (*) (Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32*, int32_t, int32_t, int32_t, Comparison_1_t3430355DCDD0AF453788265DC88E9288D19C4E9C *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)->methodPointer)((Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32*)L_37, (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_38, (int32_t)1)), (int32_t)L_39, (int32_t)L_40, (Comparison_1_t3430355DCDD0AF453788265DC88E9288D19C4E9C *)L_41, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)); int32_t L_42 = V_1; ___hi2 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_42, (int32_t)1)); } IL_0086: { int32_t L_43 = ___hi2; int32_t L_44 = ___lo1; if ((((int32_t)L_43) > ((int32_t)L_44))) { goto IL_0005; } } { return; } } // System.Int32 System.Collections.Generic.ArraySortHelper`1<System.Int32>::PickPivotAndPartition(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t ArraySortHelper_1_PickPivotAndPartition_m6965384DE24F7B454C59233E1367F58E1AE7A2DB_gshared (Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* ___keys0, int32_t ___lo1, int32_t ___hi2, Comparison_1_t3430355DCDD0AF453788265DC88E9288D19C4E9C * ___comparer3, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; int32_t V_2 = 0; int32_t V_3 = 0; { int32_t L_0 = ___lo1; int32_t L_1 = ___hi2; int32_t L_2 = ___lo1; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_0, (int32_t)((int32_t)((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_1, (int32_t)L_2))/(int32_t)2)))); Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* L_3 = ___keys0; Comparison_1_t3430355DCDD0AF453788265DC88E9288D19C4E9C * L_4 = ___comparer3; int32_t L_5 = ___lo1; int32_t L_6 = V_0; (( void (*) (Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32*, Comparison_1_t3430355DCDD0AF453788265DC88E9288D19C4E9C *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32*)L_3, (Comparison_1_t3430355DCDD0AF453788265DC88E9288D19C4E9C *)L_4, (int32_t)L_5, (int32_t)L_6, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* L_7 = ___keys0; Comparison_1_t3430355DCDD0AF453788265DC88E9288D19C4E9C * L_8 = ___comparer3; int32_t L_9 = ___lo1; int32_t L_10 = ___hi2; (( void (*) (Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32*, Comparison_1_t3430355DCDD0AF453788265DC88E9288D19C4E9C *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32*)L_7, (Comparison_1_t3430355DCDD0AF453788265DC88E9288D19C4E9C *)L_8, (int32_t)L_9, (int32_t)L_10, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* L_11 = ___keys0; Comparison_1_t3430355DCDD0AF453788265DC88E9288D19C4E9C * L_12 = ___comparer3; int32_t L_13 = V_0; int32_t L_14 = ___hi2; (( void (*) (Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32*, Comparison_1_t3430355DCDD0AF453788265DC88E9288D19C4E9C *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32*)L_11, (Comparison_1_t3430355DCDD0AF453788265DC88E9288D19C4E9C *)L_12, (int32_t)L_13, (int32_t)L_14, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* L_15 = ___keys0; int32_t L_16 = V_0; NullCheck(L_15); int32_t L_17 = L_16; int32_t L_18 = (L_15)->GetAt(static_cast<il2cpp_array_size_t>(L_17)); V_1 = (int32_t)L_18; Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* L_19 = ___keys0; int32_t L_20 = V_0; int32_t L_21 = ___hi2; (( void (*) (Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32*)L_19, (int32_t)L_20, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_21, (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); int32_t L_22 = ___lo1; V_2 = (int32_t)L_22; int32_t L_23 = ___hi2; V_3 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_23, (int32_t)1)); goto IL_0073; } IL_003d: { Comparison_1_t3430355DCDD0AF453788265DC88E9288D19C4E9C * L_24 = ___comparer3; Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* L_25 = ___keys0; int32_t L_26 = V_2; int32_t L_27 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_26, (int32_t)1)); V_2 = (int32_t)L_27; NullCheck(L_25); int32_t L_28 = L_27; int32_t L_29 = (L_25)->GetAt(static_cast<il2cpp_array_size_t>(L_28)); int32_t L_30 = V_1; NullCheck((Comparison_1_t3430355DCDD0AF453788265DC88E9288D19C4E9C *)L_24); int32_t L_31; L_31 = (( int32_t (*) (Comparison_1_t3430355DCDD0AF453788265DC88E9288D19C4E9C *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t3430355DCDD0AF453788265DC88E9288D19C4E9C *)L_24, (int32_t)L_29, (int32_t)L_30, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_31) < ((int32_t)0))) { goto IL_003d; } } IL_0052: { Comparison_1_t3430355DCDD0AF453788265DC88E9288D19C4E9C * L_32 = ___comparer3; int32_t L_33 = V_1; Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* L_34 = ___keys0; int32_t L_35 = V_3; int32_t L_36 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_35, (int32_t)1)); V_3 = (int32_t)L_36; NullCheck(L_34); int32_t L_37 = L_36; int32_t L_38 = (L_34)->GetAt(static_cast<il2cpp_array_size_t>(L_37)); NullCheck((Comparison_1_t3430355DCDD0AF453788265DC88E9288D19C4E9C *)L_32); int32_t L_39; L_39 = (( int32_t (*) (Comparison_1_t3430355DCDD0AF453788265DC88E9288D19C4E9C *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t3430355DCDD0AF453788265DC88E9288D19C4E9C *)L_32, (int32_t)L_33, (int32_t)L_38, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_39) < ((int32_t)0))) { goto IL_0052; } } { int32_t L_40 = V_2; int32_t L_41 = V_3; if ((((int32_t)L_40) >= ((int32_t)L_41))) { goto IL_0077; } } { Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* L_42 = ___keys0; int32_t L_43 = V_2; int32_t L_44 = V_3; (( void (*) (Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32*)L_42, (int32_t)L_43, (int32_t)L_44, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); } IL_0073: { int32_t L_45 = V_2; int32_t L_46 = V_3; if ((((int32_t)L_45) < ((int32_t)L_46))) { goto IL_003d; } } IL_0077: { Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* L_47 = ___keys0; int32_t L_48 = V_2; int32_t L_49 = ___hi2; (( void (*) (Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32*)L_47, (int32_t)L_48, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_49, (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); int32_t L_50 = V_2; return (int32_t)L_50; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Int32>::Heapsort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Heapsort_m60A8232D8681EA0573A1F42CB104548D86A7E624_gshared (Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* ___keys0, int32_t ___lo1, int32_t ___hi2, Comparison_1_t3430355DCDD0AF453788265DC88E9288D19C4E9C * ___comparer3, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; int32_t V_2 = 0; { int32_t L_0 = ___hi2; int32_t L_1 = ___lo1; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_0, (int32_t)L_1)), (int32_t)1)); int32_t L_2 = V_0; V_1 = (int32_t)((int32_t)((int32_t)L_2/(int32_t)2)); goto IL_001a; } IL_000c: { Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* L_3 = ___keys0; int32_t L_4 = V_1; int32_t L_5 = V_0; int32_t L_6 = ___lo1; Comparison_1_t3430355DCDD0AF453788265DC88E9288D19C4E9C * L_7 = ___comparer3; (( void (*) (Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32*, int32_t, int32_t, int32_t, Comparison_1_t3430355DCDD0AF453788265DC88E9288D19C4E9C *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)->methodPointer)((Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32*)L_3, (int32_t)L_4, (int32_t)L_5, (int32_t)L_6, (Comparison_1_t3430355DCDD0AF453788265DC88E9288D19C4E9C *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)); int32_t L_8 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_8, (int32_t)1)); } IL_001a: { int32_t L_9 = V_1; if ((((int32_t)L_9) >= ((int32_t)1))) { goto IL_000c; } } { int32_t L_10 = V_0; V_2 = (int32_t)L_10; goto IL_003e; } IL_0022: { Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* L_11 = ___keys0; int32_t L_12 = ___lo1; int32_t L_13 = ___lo1; int32_t L_14 = V_2; (( void (*) (Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32*)L_11, (int32_t)L_12, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_13, (int32_t)L_14)), (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* L_15 = ___keys0; int32_t L_16 = V_2; int32_t L_17 = ___lo1; Comparison_1_t3430355DCDD0AF453788265DC88E9288D19C4E9C * L_18 = ___comparer3; (( void (*) (Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32*, int32_t, int32_t, int32_t, Comparison_1_t3430355DCDD0AF453788265DC88E9288D19C4E9C *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)->methodPointer)((Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32*)L_15, (int32_t)1, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_16, (int32_t)1)), (int32_t)L_17, (Comparison_1_t3430355DCDD0AF453788265DC88E9288D19C4E9C *)L_18, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)); int32_t L_19 = V_2; V_2 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_19, (int32_t)1)); } IL_003e: { int32_t L_20 = V_2; if ((((int32_t)L_20) > ((int32_t)1))) { goto IL_0022; } } { return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Int32>::DownHeap(T[],System.Int32,System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_DownHeap_m70C4B014AC6ACD30A8E730D235B04D296DB75C01_gshared (Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* ___keys0, int32_t ___i1, int32_t ___n2, int32_t ___lo3, Comparison_1_t3430355DCDD0AF453788265DC88E9288D19C4E9C * ___comparer4, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; { Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* L_0 = ___keys0; int32_t L_1 = ___lo3; int32_t L_2 = ___i1; NullCheck(L_0); int32_t L_3 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_1, (int32_t)L_2)), (int32_t)1)); int32_t L_4 = (L_0)->GetAt(static_cast<il2cpp_array_size_t>(L_3)); V_0 = (int32_t)L_4; goto IL_0067; } IL_000e: { int32_t L_5 = ___i1; V_1 = (int32_t)((int32_t)il2cpp_codegen_multiply((int32_t)2, (int32_t)L_5)); int32_t L_6 = V_1; int32_t L_7 = ___n2; if ((((int32_t)L_6) >= ((int32_t)L_7))) { goto IL_0038; } } { Comparison_1_t3430355DCDD0AF453788265DC88E9288D19C4E9C * L_8 = ___comparer4; Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* L_9 = ___keys0; int32_t L_10 = ___lo3; int32_t L_11 = V_1; NullCheck(L_9); int32_t L_12 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_10, (int32_t)L_11)), (int32_t)1)); int32_t L_13 = (L_9)->GetAt(static_cast<il2cpp_array_size_t>(L_12)); Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* L_14 = ___keys0; int32_t L_15 = ___lo3; int32_t L_16 = V_1; NullCheck(L_14); int32_t L_17 = ((int32_t)il2cpp_codegen_add((int32_t)L_15, (int32_t)L_16)); int32_t L_18 = (L_14)->GetAt(static_cast<il2cpp_array_size_t>(L_17)); NullCheck((Comparison_1_t3430355DCDD0AF453788265DC88E9288D19C4E9C *)L_8); int32_t L_19; L_19 = (( int32_t (*) (Comparison_1_t3430355DCDD0AF453788265DC88E9288D19C4E9C *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t3430355DCDD0AF453788265DC88E9288D19C4E9C *)L_8, (int32_t)L_13, (int32_t)L_18, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_19) >= ((int32_t)0))) { goto IL_0038; } } { int32_t L_20 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_20, (int32_t)1)); } IL_0038: { Comparison_1_t3430355DCDD0AF453788265DC88E9288D19C4E9C * L_21 = ___comparer4; int32_t L_22 = V_0; Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* L_23 = ___keys0; int32_t L_24 = ___lo3; int32_t L_25 = V_1; NullCheck(L_23); int32_t L_26 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_24, (int32_t)L_25)), (int32_t)1)); int32_t L_27 = (L_23)->GetAt(static_cast<il2cpp_array_size_t>(L_26)); NullCheck((Comparison_1_t3430355DCDD0AF453788265DC88E9288D19C4E9C *)L_21); int32_t L_28; L_28 = (( int32_t (*) (Comparison_1_t3430355DCDD0AF453788265DC88E9288D19C4E9C *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t3430355DCDD0AF453788265DC88E9288D19C4E9C *)L_21, (int32_t)L_22, (int32_t)L_27, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_28) >= ((int32_t)0))) { goto IL_006d; } } { Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* L_29 = ___keys0; int32_t L_30 = ___lo3; int32_t L_31 = ___i1; Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* L_32 = ___keys0; int32_t L_33 = ___lo3; int32_t L_34 = V_1; NullCheck(L_32); int32_t L_35 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_33, (int32_t)L_34)), (int32_t)1)); int32_t L_36 = (L_32)->GetAt(static_cast<il2cpp_array_size_t>(L_35)); NullCheck(L_29); (L_29)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_30, (int32_t)L_31)), (int32_t)1))), (int32_t)L_36); int32_t L_37 = V_1; ___i1 = (int32_t)L_37; } IL_0067: { int32_t L_38 = ___i1; int32_t L_39 = ___n2; if ((((int32_t)L_38) <= ((int32_t)((int32_t)((int32_t)L_39/(int32_t)2))))) { goto IL_000e; } } IL_006d: { Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* L_40 = ___keys0; int32_t L_41 = ___lo3; int32_t L_42 = ___i1; int32_t L_43 = V_0; NullCheck(L_40); (L_40)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_41, (int32_t)L_42)), (int32_t)1))), (int32_t)L_43); return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Int32>::InsertionSort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_InsertionSort_m32406810384C958E52353065B75B38ECE5117462_gshared (Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* ___keys0, int32_t ___lo1, int32_t ___hi2, Comparison_1_t3430355DCDD0AF453788265DC88E9288D19C4E9C * ___comparer3, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; int32_t V_2 = 0; { int32_t L_0 = ___lo1; V_0 = (int32_t)L_0; goto IL_0049; } IL_0004: { int32_t L_1 = V_0; V_1 = (int32_t)L_1; Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* L_2 = ___keys0; int32_t L_3 = V_0; NullCheck(L_2); int32_t L_4 = ((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)1)); int32_t L_5 = (L_2)->GetAt(static_cast<il2cpp_array_size_t>(L_4)); V_2 = (int32_t)L_5; goto IL_0026; } IL_0012: { Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* L_6 = ___keys0; int32_t L_7 = V_1; Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* L_8 = ___keys0; int32_t L_9 = V_1; NullCheck(L_8); int32_t L_10 = L_9; int32_t L_11 = (L_8)->GetAt(static_cast<il2cpp_array_size_t>(L_10)); NullCheck(L_6); (L_6)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add((int32_t)L_7, (int32_t)1))), (int32_t)L_11); int32_t L_12 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_12, (int32_t)1)); } IL_0026: { int32_t L_13 = V_1; int32_t L_14 = ___lo1; if ((((int32_t)L_13) < ((int32_t)L_14))) { goto IL_003b; } } { Comparison_1_t3430355DCDD0AF453788265DC88E9288D19C4E9C * L_15 = ___comparer3; int32_t L_16 = V_2; Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* L_17 = ___keys0; int32_t L_18 = V_1; NullCheck(L_17); int32_t L_19 = L_18; int32_t L_20 = (L_17)->GetAt(static_cast<il2cpp_array_size_t>(L_19)); NullCheck((Comparison_1_t3430355DCDD0AF453788265DC88E9288D19C4E9C *)L_15); int32_t L_21; L_21 = (( int32_t (*) (Comparison_1_t3430355DCDD0AF453788265DC88E9288D19C4E9C *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t3430355DCDD0AF453788265DC88E9288D19C4E9C *)L_15, (int32_t)L_16, (int32_t)L_20, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_21) < ((int32_t)0))) { goto IL_0012; } } IL_003b: { Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* L_22 = ___keys0; int32_t L_23 = V_1; int32_t L_24 = V_2; NullCheck(L_22); (L_22)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add((int32_t)L_23, (int32_t)1))), (int32_t)L_24); int32_t L_25 = V_0; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_25, (int32_t)1)); } IL_0049: { int32_t L_26 = V_0; int32_t L_27 = ___hi2; if ((((int32_t)L_26) < ((int32_t)L_27))) { goto IL_0004; } } { return; } } #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Void System.Collections.Generic.ArraySortHelper`1<System.Int32Enum>::Sort(T[],System.Int32,System.Int32,System.Collections.Generic.IComparer`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Sort_m2B6E839A0DF8E68C2128E45DD0473C6DF0E8D628_gshared (Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD* ___keys0, int32_t ___index1, int32_t ___length2, RuntimeObject* ___comparer3, const RuntimeMethod* method) { Exception_t * V_0 = NULL; il2cpp::utils::ExceptionSupportStack<RuntimeObject*, 1> __active_exceptions; il2cpp::utils::ExceptionSupportStack<int32_t, 2> __leave_targets; IL_0000: try { // begin try (depth: 1) { RuntimeObject* L_0 = ___comparer3; if (L_0) { goto IL_000a; } } IL_0003: { Comparer_1_t0D4A8BA5B0F975F811F185B35E597041D0D23BD4 * L_1; L_1 = (( Comparer_1_t0D4A8BA5B0F975F811F185B35E597041D0D23BD4 * (*) (const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)->methodPointer)(/*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)); ___comparer3 = (RuntimeObject*)L_1; } IL_000a: { Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD* L_2 = ___keys0; int32_t L_3 = ___index1; int32_t L_4 = ___length2; RuntimeObject* L_5 = ___comparer3; RuntimeObject* L_6 = (RuntimeObject*)L_5; Comparison_1_t0507E43E406490DCD6586BD5626BDFF91A5A6440 * L_7 = (Comparison_1_t0507E43E406490DCD6586BD5626BDFF91A5A6440 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 4)); (( void (*) (Comparison_1_t0507E43E406490DCD6586BD5626BDFF91A5A6440 *, RuntimeObject *, intptr_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 5)->methodPointer)(L_7, (RuntimeObject *)L_6, (intptr_t)((intptr_t)GetInterfaceMethodInfo(L_6, 0, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 3))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 5)); (( void (*) (Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD*, int32_t, int32_t, Comparison_1_t0507E43E406490DCD6586BD5626BDFF91A5A6440 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)->methodPointer)((Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD*)L_2, (int32_t)L_3, (int32_t)L_4, (Comparison_1_t0507E43E406490DCD6586BD5626BDFF91A5A6440 *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)); goto IL_0037; } } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&IndexOutOfRangeException_tDC9EF7A0346CE39E54DA1083F07BE6DFC3CE2EDD_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_0021; } if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&Exception_t_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_002a; } throw e; } CATCH_0021: { // begin catch(System.IndexOutOfRangeException) RuntimeObject* L_8 = ___comparer3; IntrospectiveSortUtilities_ThrowOrIgnoreBadComparer_mE23A8103696FA67F874E7DA86625BB3921DB801F((RuntimeObject *)L_8, /*hidden argument*/NULL); IL2CPP_POP_ACTIVE_EXCEPTION(); goto IL_0037; } // end catch (depth: 1) CATCH_002a: { // begin catch(System.Exception) V_0 = (Exception_t *)((Exception_t *)IL2CPP_GET_ACTIVE_EXCEPTION(Exception_t *)); Exception_t * L_9 = V_0; InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB * L_10 = (InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB *)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB_il2cpp_TypeInfo_var))); InvalidOperationException__ctor_m4A65916B1316FBF45ECDF1FF7FAC9E3CA30C112C(L_10, (String_t*)((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral6EDB6C049ED9617FA335A262A29BF30B15221AEA)), (Exception_t *)L_9, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_10, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArraySortHelper_1_Sort_m2B6E839A0DF8E68C2128E45DD0473C6DF0E8D628_RuntimeMethod_var))); } // end catch (depth: 1) IL_0037: { return; } } // System.Int32 System.Collections.Generic.ArraySortHelper`1<System.Int32Enum>::BinarySearch(T[],System.Int32,System.Int32,T,System.Collections.Generic.IComparer`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t ArraySortHelper_1_BinarySearch_m476190BE3123EC47C92A6BDB8A5C6FFFD1E239B8_gshared (Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD* ___array0, int32_t ___index1, int32_t ___length2, int32_t ___value3, RuntimeObject* ___comparer4, const RuntimeMethod* method) { int32_t V_0 = 0; Exception_t * V_1 = NULL; il2cpp::utils::ExceptionSupportStack<RuntimeObject*, 1> __active_exceptions; il2cpp::utils::ExceptionSupportStack<int32_t, 1> __leave_targets; IL_0000: try { // begin try (depth: 1) { RuntimeObject* L_0 = ___comparer4; if (L_0) { goto IL_000b; } } IL_0004: { Comparer_1_t0D4A8BA5B0F975F811F185B35E597041D0D23BD4 * L_1; L_1 = (( Comparer_1_t0D4A8BA5B0F975F811F185B35E597041D0D23BD4 * (*) (const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)->methodPointer)(/*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)); ___comparer4 = (RuntimeObject*)L_1; } IL_000b: { Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD* L_2 = ___array0; int32_t L_3 = ___index1; int32_t L_4 = ___length2; int32_t L_5 = ___value3; RuntimeObject* L_6 = ___comparer4; int32_t L_7; L_7 = (( int32_t (*) (Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD*, int32_t, int32_t, int32_t, RuntimeObject*, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 8)->methodPointer)((Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD*)L_2, (int32_t)L_3, (int32_t)L_4, (int32_t)L_5, (RuntimeObject*)L_6, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 8)); V_0 = (int32_t)L_7; goto IL_0026; } } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&Exception_t_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_0019; } throw e; } CATCH_0019: { // begin catch(System.Exception) V_1 = (Exception_t *)((Exception_t *)IL2CPP_GET_ACTIVE_EXCEPTION(Exception_t *)); Exception_t * L_8 = V_1; InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB * L_9 = (InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB *)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB_il2cpp_TypeInfo_var))); InvalidOperationException__ctor_m4A65916B1316FBF45ECDF1FF7FAC9E3CA30C112C(L_9, (String_t*)((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral6EDB6C049ED9617FA335A262A29BF30B15221AEA)), (Exception_t *)L_8, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_9, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArraySortHelper_1_BinarySearch_m476190BE3123EC47C92A6BDB8A5C6FFFD1E239B8_RuntimeMethod_var))); } // end catch (depth: 1) IL_0026: { int32_t L_10 = V_0; return (int32_t)L_10; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Int32Enum>::Sort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Sort_m7AC392CCEC1D6F4510DD2267241AC15965A6FE6F_gshared (Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD* ___keys0, int32_t ___index1, int32_t ___length2, Comparison_1_t0507E43E406490DCD6586BD5626BDFF91A5A6440 * ___comparer3, const RuntimeMethod* method) { Exception_t * V_0 = NULL; il2cpp::utils::ExceptionSupportStack<RuntimeObject*, 1> __active_exceptions; il2cpp::utils::ExceptionSupportStack<int32_t, 2> __leave_targets; IL_0000: try { // begin try (depth: 1) Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD* L_0 = ___keys0; int32_t L_1 = ___index1; int32_t L_2 = ___length2; Comparison_1_t0507E43E406490DCD6586BD5626BDFF91A5A6440 * L_3 = ___comparer3; (( void (*) (Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD*, int32_t, int32_t, Comparison_1_t0507E43E406490DCD6586BD5626BDFF91A5A6440 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)->methodPointer)((Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD*)L_0, (int32_t)L_1, (int32_t)L_2, (Comparison_1_t0507E43E406490DCD6586BD5626BDFF91A5A6440 *)L_3, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)); goto IL_0021; } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&IndexOutOfRangeException_tDC9EF7A0346CE39E54DA1083F07BE6DFC3CE2EDD_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_000b; } if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&Exception_t_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_0014; } throw e; } CATCH_000b: { // begin catch(System.IndexOutOfRangeException) Comparison_1_t0507E43E406490DCD6586BD5626BDFF91A5A6440 * L_4 = ___comparer3; IntrospectiveSortUtilities_ThrowOrIgnoreBadComparer_mE23A8103696FA67F874E7DA86625BB3921DB801F((RuntimeObject *)L_4, /*hidden argument*/NULL); IL2CPP_POP_ACTIVE_EXCEPTION(); goto IL_0021; } // end catch (depth: 1) CATCH_0014: { // begin catch(System.Exception) V_0 = (Exception_t *)((Exception_t *)IL2CPP_GET_ACTIVE_EXCEPTION(Exception_t *)); Exception_t * L_5 = V_0; InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB * L_6 = (InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB *)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB_il2cpp_TypeInfo_var))); InvalidOperationException__ctor_m4A65916B1316FBF45ECDF1FF7FAC9E3CA30C112C(L_6, (String_t*)((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral6EDB6C049ED9617FA335A262A29BF30B15221AEA)), (Exception_t *)L_5, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_6, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArraySortHelper_1_Sort_m7AC392CCEC1D6F4510DD2267241AC15965A6FE6F_RuntimeMethod_var))); } // end catch (depth: 1) IL_0021: { return; } } // System.Int32 System.Collections.Generic.ArraySortHelper`1<System.Int32Enum>::InternalBinarySearch(T[],System.Int32,System.Int32,T,System.Collections.Generic.IComparer`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t ArraySortHelper_1_InternalBinarySearch_mE842C6AD10C4AB639888C0D03D2D91FC7A41C4FB_gshared (Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD* ___array0, int32_t ___index1, int32_t ___length2, int32_t ___value3, RuntimeObject* ___comparer4, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; int32_t V_2 = 0; int32_t V_3 = 0; { int32_t L_0 = ___index1; V_0 = (int32_t)L_0; int32_t L_1 = ___index1; int32_t L_2 = ___length2; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_1, (int32_t)L_2)), (int32_t)1)); goto IL_0035; } IL_000a: { int32_t L_3 = V_0; int32_t L_4 = V_1; int32_t L_5 = V_0; V_2 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)((int32_t)((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_4, (int32_t)L_5))>>(int32_t)1)))); RuntimeObject* L_6 = ___comparer4; Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD* L_7 = ___array0; int32_t L_8 = V_2; NullCheck(L_7); int32_t L_9 = L_8; int32_t L_10 = (L_7)->GetAt(static_cast<il2cpp_array_size_t>(L_9)); int32_t L_11 = ___value3; NullCheck((RuntimeObject*)L_6); int32_t L_12; L_12 = InterfaceFuncInvoker2< int32_t, int32_t, int32_t >::Invoke(0 /* System.Int32 System.Collections.Generic.IComparer`1<System.Int32Enum>::Compare(T,T) */, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 3), (RuntimeObject*)L_6, (int32_t)L_10, (int32_t)L_11); V_3 = (int32_t)L_12; int32_t L_13 = V_3; if (L_13) { goto IL_0027; } } { int32_t L_14 = V_2; return (int32_t)L_14; } IL_0027: { int32_t L_15 = V_3; if ((((int32_t)L_15) >= ((int32_t)0))) { goto IL_0031; } } { int32_t L_16 = V_2; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_16, (int32_t)1)); goto IL_0035; } IL_0031: { int32_t L_17 = V_2; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_17, (int32_t)1)); } IL_0035: { int32_t L_18 = V_0; int32_t L_19 = V_1; if ((((int32_t)L_18) <= ((int32_t)L_19))) { goto IL_000a; } } { int32_t L_20 = V_0; return (int32_t)((~L_20)); } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Int32Enum>::SwapIfGreater(T[],System.Comparison`1<T>,System.Int32,System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_SwapIfGreater_m2E3F265F178A2949C1119A3EFDBFFD67051A94CD_gshared (Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD* ___keys0, Comparison_1_t0507E43E406490DCD6586BD5626BDFF91A5A6440 * ___comparer1, int32_t ___a2, int32_t ___b3, const RuntimeMethod* method) { int32_t V_0 = 0; { int32_t L_0 = ___a2; int32_t L_1 = ___b3; if ((((int32_t)L_0) == ((int32_t)L_1))) { goto IL_0039; } } { Comparison_1_t0507E43E406490DCD6586BD5626BDFF91A5A6440 * L_2 = ___comparer1; Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD* L_3 = ___keys0; int32_t L_4 = ___a2; NullCheck(L_3); int32_t L_5 = L_4; int32_t L_6 = (L_3)->GetAt(static_cast<il2cpp_array_size_t>(L_5)); Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD* L_7 = ___keys0; int32_t L_8 = ___b3; NullCheck(L_7); int32_t L_9 = L_8; int32_t L_10 = (L_7)->GetAt(static_cast<il2cpp_array_size_t>(L_9)); NullCheck((Comparison_1_t0507E43E406490DCD6586BD5626BDFF91A5A6440 *)L_2); int32_t L_11; L_11 = (( int32_t (*) (Comparison_1_t0507E43E406490DCD6586BD5626BDFF91A5A6440 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t0507E43E406490DCD6586BD5626BDFF91A5A6440 *)L_2, (int32_t)L_6, (int32_t)L_10, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_11) <= ((int32_t)0))) { goto IL_0039; } } { Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD* L_12 = ___keys0; int32_t L_13 = ___a2; NullCheck(L_12); int32_t L_14 = L_13; int32_t L_15 = (L_12)->GetAt(static_cast<il2cpp_array_size_t>(L_14)); V_0 = (int32_t)L_15; Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD* L_16 = ___keys0; int32_t L_17 = ___a2; Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD* L_18 = ___keys0; int32_t L_19 = ___b3; NullCheck(L_18); int32_t L_20 = L_19; int32_t L_21 = (L_18)->GetAt(static_cast<il2cpp_array_size_t>(L_20)); NullCheck(L_16); (L_16)->SetAt(static_cast<il2cpp_array_size_t>(L_17), (int32_t)L_21); Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD* L_22 = ___keys0; int32_t L_23 = ___b3; int32_t L_24 = V_0; NullCheck(L_22); (L_22)->SetAt(static_cast<il2cpp_array_size_t>(L_23), (int32_t)L_24); } IL_0039: { return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Int32Enum>::Swap(T[],System.Int32,System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Swap_m3251254BE19FADD978F0394D13BEAE3B5E03950D_gshared (Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD* ___a0, int32_t ___i1, int32_t ___j2, const RuntimeMethod* method) { int32_t V_0 = 0; { int32_t L_0 = ___i1; int32_t L_1 = ___j2; if ((((int32_t)L_0) == ((int32_t)L_1))) { goto IL_0022; } } { Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD* L_2 = ___a0; int32_t L_3 = ___i1; NullCheck(L_2); int32_t L_4 = L_3; int32_t L_5 = (L_2)->GetAt(static_cast<il2cpp_array_size_t>(L_4)); V_0 = (int32_t)L_5; Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD* L_6 = ___a0; int32_t L_7 = ___i1; Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD* L_8 = ___a0; int32_t L_9 = ___j2; NullCheck(L_8); int32_t L_10 = L_9; int32_t L_11 = (L_8)->GetAt(static_cast<il2cpp_array_size_t>(L_10)); NullCheck(L_6); (L_6)->SetAt(static_cast<il2cpp_array_size_t>(L_7), (int32_t)L_11); Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD* L_12 = ___a0; int32_t L_13 = ___j2; int32_t L_14 = V_0; NullCheck(L_12); (L_12)->SetAt(static_cast<il2cpp_array_size_t>(L_13), (int32_t)L_14); } IL_0022: { return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Int32Enum>::IntrospectiveSort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_IntrospectiveSort_m917FBC2D33B522612492035FBE215385988EB029_gshared (Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD* ___keys0, int32_t ___left1, int32_t ___length2, Comparison_1_t0507E43E406490DCD6586BD5626BDFF91A5A6440 * ___comparer3, const RuntimeMethod* method) { { int32_t L_0 = ___length2; if ((((int32_t)L_0) >= ((int32_t)2))) { goto IL_0005; } } { return; } IL_0005: { Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD* L_1 = ___keys0; int32_t L_2 = ___left1; int32_t L_3 = ___length2; int32_t L_4 = ___left1; Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD* L_5 = ___keys0; NullCheck(L_5); int32_t L_6; L_6 = IntrospectiveSortUtilities_FloorLog2_m05ECB6CAC7A23087D9EC2C2A4DDCFE12272C3872((int32_t)((int32_t)((int32_t)(((RuntimeArray*)L_5)->max_length))), /*hidden argument*/NULL); Comparison_1_t0507E43E406490DCD6586BD5626BDFF91A5A6440 * L_7 = ___comparer3; (( void (*) (Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD*, int32_t, int32_t, int32_t, Comparison_1_t0507E43E406490DCD6586BD5626BDFF91A5A6440 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)->methodPointer)((Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD*)L_1, (int32_t)L_2, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)L_4)), (int32_t)1)), (int32_t)((int32_t)il2cpp_codegen_multiply((int32_t)2, (int32_t)L_6)), (Comparison_1_t0507E43E406490DCD6586BD5626BDFF91A5A6440 *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)); return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Int32Enum>::IntroSort(T[],System.Int32,System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_IntroSort_mDE7626DC343D6CCFB9E7C70131024955BCA674AB_gshared (Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD* ___keys0, int32_t ___lo1, int32_t ___hi2, int32_t ___depthLimit3, Comparison_1_t0507E43E406490DCD6586BD5626BDFF91A5A6440 * ___comparer4, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; { goto IL_0086; } IL_0005: { int32_t L_0 = ___hi2; int32_t L_1 = ___lo1; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_0, (int32_t)L_1)), (int32_t)1)); int32_t L_2 = V_0; if ((((int32_t)L_2) > ((int32_t)((int32_t)16)))) { goto IL_0056; } } { int32_t L_3 = V_0; if ((!(((uint32_t)L_3) == ((uint32_t)1)))) { goto IL_0015; } } { return; } IL_0015: { int32_t L_4 = V_0; if ((!(((uint32_t)L_4) == ((uint32_t)2)))) { goto IL_0024; } } { Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD* L_5 = ___keys0; Comparison_1_t0507E43E406490DCD6586BD5626BDFF91A5A6440 * L_6 = ___comparer4; int32_t L_7 = ___lo1; int32_t L_8 = ___hi2; (( void (*) (Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD*, Comparison_1_t0507E43E406490DCD6586BD5626BDFF91A5A6440 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD*)L_5, (Comparison_1_t0507E43E406490DCD6586BD5626BDFF91A5A6440 *)L_6, (int32_t)L_7, (int32_t)L_8, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); return; } IL_0024: { int32_t L_9 = V_0; if ((!(((uint32_t)L_9) == ((uint32_t)3)))) { goto IL_004b; } } { Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD* L_10 = ___keys0; Comparison_1_t0507E43E406490DCD6586BD5626BDFF91A5A6440 * L_11 = ___comparer4; int32_t L_12 = ___lo1; int32_t L_13 = ___hi2; (( void (*) (Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD*, Comparison_1_t0507E43E406490DCD6586BD5626BDFF91A5A6440 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD*)L_10, (Comparison_1_t0507E43E406490DCD6586BD5626BDFF91A5A6440 *)L_11, (int32_t)L_12, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_13, (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD* L_14 = ___keys0; Comparison_1_t0507E43E406490DCD6586BD5626BDFF91A5A6440 * L_15 = ___comparer4; int32_t L_16 = ___lo1; int32_t L_17 = ___hi2; (( void (*) (Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD*, Comparison_1_t0507E43E406490DCD6586BD5626BDFF91A5A6440 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD*)L_14, (Comparison_1_t0507E43E406490DCD6586BD5626BDFF91A5A6440 *)L_15, (int32_t)L_16, (int32_t)L_17, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD* L_18 = ___keys0; Comparison_1_t0507E43E406490DCD6586BD5626BDFF91A5A6440 * L_19 = ___comparer4; int32_t L_20 = ___hi2; int32_t L_21 = ___hi2; (( void (*) (Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD*, Comparison_1_t0507E43E406490DCD6586BD5626BDFF91A5A6440 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD*)L_18, (Comparison_1_t0507E43E406490DCD6586BD5626BDFF91A5A6440 *)L_19, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_20, (int32_t)1)), (int32_t)L_21, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); return; } IL_004b: { Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD* L_22 = ___keys0; int32_t L_23 = ___lo1; int32_t L_24 = ___hi2; Comparison_1_t0507E43E406490DCD6586BD5626BDFF91A5A6440 * L_25 = ___comparer4; (( void (*) (Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD*, int32_t, int32_t, Comparison_1_t0507E43E406490DCD6586BD5626BDFF91A5A6440 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 12)->methodPointer)((Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD*)L_22, (int32_t)L_23, (int32_t)L_24, (Comparison_1_t0507E43E406490DCD6586BD5626BDFF91A5A6440 *)L_25, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 12)); return; } IL_0056: { int32_t L_26 = ___depthLimit3; if (L_26) { goto IL_0064; } } { Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD* L_27 = ___keys0; int32_t L_28 = ___lo1; int32_t L_29 = ___hi2; Comparison_1_t0507E43E406490DCD6586BD5626BDFF91A5A6440 * L_30 = ___comparer4; (( void (*) (Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD*, int32_t, int32_t, Comparison_1_t0507E43E406490DCD6586BD5626BDFF91A5A6440 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 13)->methodPointer)((Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD*)L_27, (int32_t)L_28, (int32_t)L_29, (Comparison_1_t0507E43E406490DCD6586BD5626BDFF91A5A6440 *)L_30, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 13)); return; } IL_0064: { int32_t L_31 = ___depthLimit3; ___depthLimit3 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_31, (int32_t)1)); Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD* L_32 = ___keys0; int32_t L_33 = ___lo1; int32_t L_34 = ___hi2; Comparison_1_t0507E43E406490DCD6586BD5626BDFF91A5A6440 * L_35 = ___comparer4; int32_t L_36; L_36 = (( int32_t (*) (Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD*, int32_t, int32_t, Comparison_1_t0507E43E406490DCD6586BD5626BDFF91A5A6440 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 14)->methodPointer)((Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD*)L_32, (int32_t)L_33, (int32_t)L_34, (Comparison_1_t0507E43E406490DCD6586BD5626BDFF91A5A6440 *)L_35, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 14)); V_1 = (int32_t)L_36; Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD* L_37 = ___keys0; int32_t L_38 = V_1; int32_t L_39 = ___hi2; int32_t L_40 = ___depthLimit3; Comparison_1_t0507E43E406490DCD6586BD5626BDFF91A5A6440 * L_41 = ___comparer4; (( void (*) (Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD*, int32_t, int32_t, int32_t, Comparison_1_t0507E43E406490DCD6586BD5626BDFF91A5A6440 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)->methodPointer)((Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD*)L_37, (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_38, (int32_t)1)), (int32_t)L_39, (int32_t)L_40, (Comparison_1_t0507E43E406490DCD6586BD5626BDFF91A5A6440 *)L_41, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)); int32_t L_42 = V_1; ___hi2 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_42, (int32_t)1)); } IL_0086: { int32_t L_43 = ___hi2; int32_t L_44 = ___lo1; if ((((int32_t)L_43) > ((int32_t)L_44))) { goto IL_0005; } } { return; } } // System.Int32 System.Collections.Generic.ArraySortHelper`1<System.Int32Enum>::PickPivotAndPartition(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t ArraySortHelper_1_PickPivotAndPartition_m6D500D03F57B64D9BD5B45D81D6E39D0B37441DA_gshared (Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD* ___keys0, int32_t ___lo1, int32_t ___hi2, Comparison_1_t0507E43E406490DCD6586BD5626BDFF91A5A6440 * ___comparer3, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; int32_t V_2 = 0; int32_t V_3 = 0; { int32_t L_0 = ___lo1; int32_t L_1 = ___hi2; int32_t L_2 = ___lo1; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_0, (int32_t)((int32_t)((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_1, (int32_t)L_2))/(int32_t)2)))); Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD* L_3 = ___keys0; Comparison_1_t0507E43E406490DCD6586BD5626BDFF91A5A6440 * L_4 = ___comparer3; int32_t L_5 = ___lo1; int32_t L_6 = V_0; (( void (*) (Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD*, Comparison_1_t0507E43E406490DCD6586BD5626BDFF91A5A6440 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD*)L_3, (Comparison_1_t0507E43E406490DCD6586BD5626BDFF91A5A6440 *)L_4, (int32_t)L_5, (int32_t)L_6, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD* L_7 = ___keys0; Comparison_1_t0507E43E406490DCD6586BD5626BDFF91A5A6440 * L_8 = ___comparer3; int32_t L_9 = ___lo1; int32_t L_10 = ___hi2; (( void (*) (Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD*, Comparison_1_t0507E43E406490DCD6586BD5626BDFF91A5A6440 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD*)L_7, (Comparison_1_t0507E43E406490DCD6586BD5626BDFF91A5A6440 *)L_8, (int32_t)L_9, (int32_t)L_10, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD* L_11 = ___keys0; Comparison_1_t0507E43E406490DCD6586BD5626BDFF91A5A6440 * L_12 = ___comparer3; int32_t L_13 = V_0; int32_t L_14 = ___hi2; (( void (*) (Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD*, Comparison_1_t0507E43E406490DCD6586BD5626BDFF91A5A6440 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD*)L_11, (Comparison_1_t0507E43E406490DCD6586BD5626BDFF91A5A6440 *)L_12, (int32_t)L_13, (int32_t)L_14, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD* L_15 = ___keys0; int32_t L_16 = V_0; NullCheck(L_15); int32_t L_17 = L_16; int32_t L_18 = (L_15)->GetAt(static_cast<il2cpp_array_size_t>(L_17)); V_1 = (int32_t)L_18; Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD* L_19 = ___keys0; int32_t L_20 = V_0; int32_t L_21 = ___hi2; (( void (*) (Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD*)L_19, (int32_t)L_20, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_21, (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); int32_t L_22 = ___lo1; V_2 = (int32_t)L_22; int32_t L_23 = ___hi2; V_3 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_23, (int32_t)1)); goto IL_0073; } IL_003d: { Comparison_1_t0507E43E406490DCD6586BD5626BDFF91A5A6440 * L_24 = ___comparer3; Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD* L_25 = ___keys0; int32_t L_26 = V_2; int32_t L_27 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_26, (int32_t)1)); V_2 = (int32_t)L_27; NullCheck(L_25); int32_t L_28 = L_27; int32_t L_29 = (L_25)->GetAt(static_cast<il2cpp_array_size_t>(L_28)); int32_t L_30 = V_1; NullCheck((Comparison_1_t0507E43E406490DCD6586BD5626BDFF91A5A6440 *)L_24); int32_t L_31; L_31 = (( int32_t (*) (Comparison_1_t0507E43E406490DCD6586BD5626BDFF91A5A6440 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t0507E43E406490DCD6586BD5626BDFF91A5A6440 *)L_24, (int32_t)L_29, (int32_t)L_30, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_31) < ((int32_t)0))) { goto IL_003d; } } IL_0052: { Comparison_1_t0507E43E406490DCD6586BD5626BDFF91A5A6440 * L_32 = ___comparer3; int32_t L_33 = V_1; Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD* L_34 = ___keys0; int32_t L_35 = V_3; int32_t L_36 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_35, (int32_t)1)); V_3 = (int32_t)L_36; NullCheck(L_34); int32_t L_37 = L_36; int32_t L_38 = (L_34)->GetAt(static_cast<il2cpp_array_size_t>(L_37)); NullCheck((Comparison_1_t0507E43E406490DCD6586BD5626BDFF91A5A6440 *)L_32); int32_t L_39; L_39 = (( int32_t (*) (Comparison_1_t0507E43E406490DCD6586BD5626BDFF91A5A6440 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t0507E43E406490DCD6586BD5626BDFF91A5A6440 *)L_32, (int32_t)L_33, (int32_t)L_38, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_39) < ((int32_t)0))) { goto IL_0052; } } { int32_t L_40 = V_2; int32_t L_41 = V_3; if ((((int32_t)L_40) >= ((int32_t)L_41))) { goto IL_0077; } } { Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD* L_42 = ___keys0; int32_t L_43 = V_2; int32_t L_44 = V_3; (( void (*) (Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD*)L_42, (int32_t)L_43, (int32_t)L_44, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); } IL_0073: { int32_t L_45 = V_2; int32_t L_46 = V_3; if ((((int32_t)L_45) < ((int32_t)L_46))) { goto IL_003d; } } IL_0077: { Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD* L_47 = ___keys0; int32_t L_48 = V_2; int32_t L_49 = ___hi2; (( void (*) (Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD*)L_47, (int32_t)L_48, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_49, (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); int32_t L_50 = V_2; return (int32_t)L_50; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Int32Enum>::Heapsort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Heapsort_m91E16DC3C91051EAF9651AA37EB9D63856DE4732_gshared (Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD* ___keys0, int32_t ___lo1, int32_t ___hi2, Comparison_1_t0507E43E406490DCD6586BD5626BDFF91A5A6440 * ___comparer3, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; int32_t V_2 = 0; { int32_t L_0 = ___hi2; int32_t L_1 = ___lo1; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_0, (int32_t)L_1)), (int32_t)1)); int32_t L_2 = V_0; V_1 = (int32_t)((int32_t)((int32_t)L_2/(int32_t)2)); goto IL_001a; } IL_000c: { Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD* L_3 = ___keys0; int32_t L_4 = V_1; int32_t L_5 = V_0; int32_t L_6 = ___lo1; Comparison_1_t0507E43E406490DCD6586BD5626BDFF91A5A6440 * L_7 = ___comparer3; (( void (*) (Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD*, int32_t, int32_t, int32_t, Comparison_1_t0507E43E406490DCD6586BD5626BDFF91A5A6440 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)->methodPointer)((Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD*)L_3, (int32_t)L_4, (int32_t)L_5, (int32_t)L_6, (Comparison_1_t0507E43E406490DCD6586BD5626BDFF91A5A6440 *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)); int32_t L_8 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_8, (int32_t)1)); } IL_001a: { int32_t L_9 = V_1; if ((((int32_t)L_9) >= ((int32_t)1))) { goto IL_000c; } } { int32_t L_10 = V_0; V_2 = (int32_t)L_10; goto IL_003e; } IL_0022: { Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD* L_11 = ___keys0; int32_t L_12 = ___lo1; int32_t L_13 = ___lo1; int32_t L_14 = V_2; (( void (*) (Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD*)L_11, (int32_t)L_12, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_13, (int32_t)L_14)), (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD* L_15 = ___keys0; int32_t L_16 = V_2; int32_t L_17 = ___lo1; Comparison_1_t0507E43E406490DCD6586BD5626BDFF91A5A6440 * L_18 = ___comparer3; (( void (*) (Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD*, int32_t, int32_t, int32_t, Comparison_1_t0507E43E406490DCD6586BD5626BDFF91A5A6440 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)->methodPointer)((Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD*)L_15, (int32_t)1, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_16, (int32_t)1)), (int32_t)L_17, (Comparison_1_t0507E43E406490DCD6586BD5626BDFF91A5A6440 *)L_18, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)); int32_t L_19 = V_2; V_2 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_19, (int32_t)1)); } IL_003e: { int32_t L_20 = V_2; if ((((int32_t)L_20) > ((int32_t)1))) { goto IL_0022; } } { return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Int32Enum>::DownHeap(T[],System.Int32,System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_DownHeap_m52FB115C3925A89EA6F4E9CD5B5D5F37299F2206_gshared (Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD* ___keys0, int32_t ___i1, int32_t ___n2, int32_t ___lo3, Comparison_1_t0507E43E406490DCD6586BD5626BDFF91A5A6440 * ___comparer4, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; { Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD* L_0 = ___keys0; int32_t L_1 = ___lo3; int32_t L_2 = ___i1; NullCheck(L_0); int32_t L_3 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_1, (int32_t)L_2)), (int32_t)1)); int32_t L_4 = (L_0)->GetAt(static_cast<il2cpp_array_size_t>(L_3)); V_0 = (int32_t)L_4; goto IL_0067; } IL_000e: { int32_t L_5 = ___i1; V_1 = (int32_t)((int32_t)il2cpp_codegen_multiply((int32_t)2, (int32_t)L_5)); int32_t L_6 = V_1; int32_t L_7 = ___n2; if ((((int32_t)L_6) >= ((int32_t)L_7))) { goto IL_0038; } } { Comparison_1_t0507E43E406490DCD6586BD5626BDFF91A5A6440 * L_8 = ___comparer4; Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD* L_9 = ___keys0; int32_t L_10 = ___lo3; int32_t L_11 = V_1; NullCheck(L_9); int32_t L_12 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_10, (int32_t)L_11)), (int32_t)1)); int32_t L_13 = (L_9)->GetAt(static_cast<il2cpp_array_size_t>(L_12)); Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD* L_14 = ___keys0; int32_t L_15 = ___lo3; int32_t L_16 = V_1; NullCheck(L_14); int32_t L_17 = ((int32_t)il2cpp_codegen_add((int32_t)L_15, (int32_t)L_16)); int32_t L_18 = (L_14)->GetAt(static_cast<il2cpp_array_size_t>(L_17)); NullCheck((Comparison_1_t0507E43E406490DCD6586BD5626BDFF91A5A6440 *)L_8); int32_t L_19; L_19 = (( int32_t (*) (Comparison_1_t0507E43E406490DCD6586BD5626BDFF91A5A6440 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t0507E43E406490DCD6586BD5626BDFF91A5A6440 *)L_8, (int32_t)L_13, (int32_t)L_18, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_19) >= ((int32_t)0))) { goto IL_0038; } } { int32_t L_20 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_20, (int32_t)1)); } IL_0038: { Comparison_1_t0507E43E406490DCD6586BD5626BDFF91A5A6440 * L_21 = ___comparer4; int32_t L_22 = V_0; Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD* L_23 = ___keys0; int32_t L_24 = ___lo3; int32_t L_25 = V_1; NullCheck(L_23); int32_t L_26 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_24, (int32_t)L_25)), (int32_t)1)); int32_t L_27 = (L_23)->GetAt(static_cast<il2cpp_array_size_t>(L_26)); NullCheck((Comparison_1_t0507E43E406490DCD6586BD5626BDFF91A5A6440 *)L_21); int32_t L_28; L_28 = (( int32_t (*) (Comparison_1_t0507E43E406490DCD6586BD5626BDFF91A5A6440 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t0507E43E406490DCD6586BD5626BDFF91A5A6440 *)L_21, (int32_t)L_22, (int32_t)L_27, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_28) >= ((int32_t)0))) { goto IL_006d; } } { Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD* L_29 = ___keys0; int32_t L_30 = ___lo3; int32_t L_31 = ___i1; Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD* L_32 = ___keys0; int32_t L_33 = ___lo3; int32_t L_34 = V_1; NullCheck(L_32); int32_t L_35 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_33, (int32_t)L_34)), (int32_t)1)); int32_t L_36 = (L_32)->GetAt(static_cast<il2cpp_array_size_t>(L_35)); NullCheck(L_29); (L_29)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_30, (int32_t)L_31)), (int32_t)1))), (int32_t)L_36); int32_t L_37 = V_1; ___i1 = (int32_t)L_37; } IL_0067: { int32_t L_38 = ___i1; int32_t L_39 = ___n2; if ((((int32_t)L_38) <= ((int32_t)((int32_t)((int32_t)L_39/(int32_t)2))))) { goto IL_000e; } } IL_006d: { Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD* L_40 = ___keys0; int32_t L_41 = ___lo3; int32_t L_42 = ___i1; int32_t L_43 = V_0; NullCheck(L_40); (L_40)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_41, (int32_t)L_42)), (int32_t)1))), (int32_t)L_43); return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Int32Enum>::InsertionSort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_InsertionSort_m5BB84073AEC15B7D026788835ACC61CA85741D99_gshared (Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD* ___keys0, int32_t ___lo1, int32_t ___hi2, Comparison_1_t0507E43E406490DCD6586BD5626BDFF91A5A6440 * ___comparer3, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; int32_t V_2 = 0; { int32_t L_0 = ___lo1; V_0 = (int32_t)L_0; goto IL_0049; } IL_0004: { int32_t L_1 = V_0; V_1 = (int32_t)L_1; Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD* L_2 = ___keys0; int32_t L_3 = V_0; NullCheck(L_2); int32_t L_4 = ((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)1)); int32_t L_5 = (L_2)->GetAt(static_cast<il2cpp_array_size_t>(L_4)); V_2 = (int32_t)L_5; goto IL_0026; } IL_0012: { Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD* L_6 = ___keys0; int32_t L_7 = V_1; Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD* L_8 = ___keys0; int32_t L_9 = V_1; NullCheck(L_8); int32_t L_10 = L_9; int32_t L_11 = (L_8)->GetAt(static_cast<il2cpp_array_size_t>(L_10)); NullCheck(L_6); (L_6)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add((int32_t)L_7, (int32_t)1))), (int32_t)L_11); int32_t L_12 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_12, (int32_t)1)); } IL_0026: { int32_t L_13 = V_1; int32_t L_14 = ___lo1; if ((((int32_t)L_13) < ((int32_t)L_14))) { goto IL_003b; } } { Comparison_1_t0507E43E406490DCD6586BD5626BDFF91A5A6440 * L_15 = ___comparer3; int32_t L_16 = V_2; Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD* L_17 = ___keys0; int32_t L_18 = V_1; NullCheck(L_17); int32_t L_19 = L_18; int32_t L_20 = (L_17)->GetAt(static_cast<il2cpp_array_size_t>(L_19)); NullCheck((Comparison_1_t0507E43E406490DCD6586BD5626BDFF91A5A6440 *)L_15); int32_t L_21; L_21 = (( int32_t (*) (Comparison_1_t0507E43E406490DCD6586BD5626BDFF91A5A6440 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t0507E43E406490DCD6586BD5626BDFF91A5A6440 *)L_15, (int32_t)L_16, (int32_t)L_20, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_21) < ((int32_t)0))) { goto IL_0012; } } IL_003b: { Int32EnumU5BU5D_t9327F857579EE00EB201E1913599094BF837D3CD* L_22 = ___keys0; int32_t L_23 = V_1; int32_t L_24 = V_2; NullCheck(L_22); (L_22)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add((int32_t)L_23, (int32_t)1))), (int32_t)L_24); int32_t L_25 = V_0; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_25, (int32_t)1)); } IL_0049: { int32_t L_26 = V_0; int32_t L_27 = ___hi2; if ((((int32_t)L_26) < ((int32_t)L_27))) { goto IL_0004; } } { return; } } #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Void System.Collections.Generic.ArraySortHelper`1<System.Int64>::Sort(T[],System.Int32,System.Int32,System.Collections.Generic.IComparer`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Sort_m1661777B0A95F6D806C6D93CF53873B85FADF73C_gshared (Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6* ___keys0, int32_t ___index1, int32_t ___length2, RuntimeObject* ___comparer3, const RuntimeMethod* method) { Exception_t * V_0 = NULL; il2cpp::utils::ExceptionSupportStack<RuntimeObject*, 1> __active_exceptions; il2cpp::utils::ExceptionSupportStack<int32_t, 2> __leave_targets; IL_0000: try { // begin try (depth: 1) { RuntimeObject* L_0 = ___comparer3; if (L_0) { goto IL_000a; } } IL_0003: { Comparer_1_tE62D0C5B2FD73EBC01ABA133568B5DE8B200A220 * L_1; L_1 = (( Comparer_1_tE62D0C5B2FD73EBC01ABA133568B5DE8B200A220 * (*) (const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)->methodPointer)(/*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)); ___comparer3 = (RuntimeObject*)L_1; } IL_000a: { Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6* L_2 = ___keys0; int32_t L_3 = ___index1; int32_t L_4 = ___length2; RuntimeObject* L_5 = ___comparer3; RuntimeObject* L_6 = (RuntimeObject*)L_5; Comparison_1_tD92B78AEB5AD82F2DCADCC9A5D0C2BE72D2969DF * L_7 = (Comparison_1_tD92B78AEB5AD82F2DCADCC9A5D0C2BE72D2969DF *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 4)); (( void (*) (Comparison_1_tD92B78AEB5AD82F2DCADCC9A5D0C2BE72D2969DF *, RuntimeObject *, intptr_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 5)->methodPointer)(L_7, (RuntimeObject *)L_6, (intptr_t)((intptr_t)GetInterfaceMethodInfo(L_6, 0, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 3))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 5)); (( void (*) (Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6*, int32_t, int32_t, Comparison_1_tD92B78AEB5AD82F2DCADCC9A5D0C2BE72D2969DF *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)->methodPointer)((Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6*)L_2, (int32_t)L_3, (int32_t)L_4, (Comparison_1_tD92B78AEB5AD82F2DCADCC9A5D0C2BE72D2969DF *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)); goto IL_0037; } } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&IndexOutOfRangeException_tDC9EF7A0346CE39E54DA1083F07BE6DFC3CE2EDD_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_0021; } if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&Exception_t_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_002a; } throw e; } CATCH_0021: { // begin catch(System.IndexOutOfRangeException) RuntimeObject* L_8 = ___comparer3; IntrospectiveSortUtilities_ThrowOrIgnoreBadComparer_mE23A8103696FA67F874E7DA86625BB3921DB801F((RuntimeObject *)L_8, /*hidden argument*/NULL); IL2CPP_POP_ACTIVE_EXCEPTION(); goto IL_0037; } // end catch (depth: 1) CATCH_002a: { // begin catch(System.Exception) V_0 = (Exception_t *)((Exception_t *)IL2CPP_GET_ACTIVE_EXCEPTION(Exception_t *)); Exception_t * L_9 = V_0; InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB * L_10 = (InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB *)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB_il2cpp_TypeInfo_var))); InvalidOperationException__ctor_m4A65916B1316FBF45ECDF1FF7FAC9E3CA30C112C(L_10, (String_t*)((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral6EDB6C049ED9617FA335A262A29BF30B15221AEA)), (Exception_t *)L_9, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_10, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArraySortHelper_1_Sort_m1661777B0A95F6D806C6D93CF53873B85FADF73C_RuntimeMethod_var))); } // end catch (depth: 1) IL_0037: { return; } } // System.Int32 System.Collections.Generic.ArraySortHelper`1<System.Int64>::BinarySearch(T[],System.Int32,System.Int32,T,System.Collections.Generic.IComparer`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t ArraySortHelper_1_BinarySearch_m7B30792BF8838F8DA38719516627D6F4C9174F14_gshared (Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6* ___array0, int32_t ___index1, int32_t ___length2, int64_t ___value3, RuntimeObject* ___comparer4, const RuntimeMethod* method) { int32_t V_0 = 0; Exception_t * V_1 = NULL; il2cpp::utils::ExceptionSupportStack<RuntimeObject*, 1> __active_exceptions; il2cpp::utils::ExceptionSupportStack<int32_t, 1> __leave_targets; IL_0000: try { // begin try (depth: 1) { RuntimeObject* L_0 = ___comparer4; if (L_0) { goto IL_000b; } } IL_0004: { Comparer_1_tE62D0C5B2FD73EBC01ABA133568B5DE8B200A220 * L_1; L_1 = (( Comparer_1_tE62D0C5B2FD73EBC01ABA133568B5DE8B200A220 * (*) (const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)->methodPointer)(/*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)); ___comparer4 = (RuntimeObject*)L_1; } IL_000b: { Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6* L_2 = ___array0; int32_t L_3 = ___index1; int32_t L_4 = ___length2; int64_t L_5 = ___value3; RuntimeObject* L_6 = ___comparer4; int32_t L_7; L_7 = (( int32_t (*) (Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6*, int32_t, int32_t, int64_t, RuntimeObject*, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 8)->methodPointer)((Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6*)L_2, (int32_t)L_3, (int32_t)L_4, (int64_t)L_5, (RuntimeObject*)L_6, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 8)); V_0 = (int32_t)L_7; goto IL_0026; } } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&Exception_t_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_0019; } throw e; } CATCH_0019: { // begin catch(System.Exception) V_1 = (Exception_t *)((Exception_t *)IL2CPP_GET_ACTIVE_EXCEPTION(Exception_t *)); Exception_t * L_8 = V_1; InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB * L_9 = (InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB *)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB_il2cpp_TypeInfo_var))); InvalidOperationException__ctor_m4A65916B1316FBF45ECDF1FF7FAC9E3CA30C112C(L_9, (String_t*)((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral6EDB6C049ED9617FA335A262A29BF30B15221AEA)), (Exception_t *)L_8, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_9, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArraySortHelper_1_BinarySearch_m7B30792BF8838F8DA38719516627D6F4C9174F14_RuntimeMethod_var))); } // end catch (depth: 1) IL_0026: { int32_t L_10 = V_0; return (int32_t)L_10; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Int64>::Sort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Sort_m49E965FFD901DD6161E7384F663FF333FB9E4A81_gshared (Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6* ___keys0, int32_t ___index1, int32_t ___length2, Comparison_1_tD92B78AEB5AD82F2DCADCC9A5D0C2BE72D2969DF * ___comparer3, const RuntimeMethod* method) { Exception_t * V_0 = NULL; il2cpp::utils::ExceptionSupportStack<RuntimeObject*, 1> __active_exceptions; il2cpp::utils::ExceptionSupportStack<int32_t, 2> __leave_targets; IL_0000: try { // begin try (depth: 1) Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6* L_0 = ___keys0; int32_t L_1 = ___index1; int32_t L_2 = ___length2; Comparison_1_tD92B78AEB5AD82F2DCADCC9A5D0C2BE72D2969DF * L_3 = ___comparer3; (( void (*) (Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6*, int32_t, int32_t, Comparison_1_tD92B78AEB5AD82F2DCADCC9A5D0C2BE72D2969DF *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)->methodPointer)((Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6*)L_0, (int32_t)L_1, (int32_t)L_2, (Comparison_1_tD92B78AEB5AD82F2DCADCC9A5D0C2BE72D2969DF *)L_3, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)); goto IL_0021; } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&IndexOutOfRangeException_tDC9EF7A0346CE39E54DA1083F07BE6DFC3CE2EDD_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_000b; } if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&Exception_t_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_0014; } throw e; } CATCH_000b: { // begin catch(System.IndexOutOfRangeException) Comparison_1_tD92B78AEB5AD82F2DCADCC9A5D0C2BE72D2969DF * L_4 = ___comparer3; IntrospectiveSortUtilities_ThrowOrIgnoreBadComparer_mE23A8103696FA67F874E7DA86625BB3921DB801F((RuntimeObject *)L_4, /*hidden argument*/NULL); IL2CPP_POP_ACTIVE_EXCEPTION(); goto IL_0021; } // end catch (depth: 1) CATCH_0014: { // begin catch(System.Exception) V_0 = (Exception_t *)((Exception_t *)IL2CPP_GET_ACTIVE_EXCEPTION(Exception_t *)); Exception_t * L_5 = V_0; InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB * L_6 = (InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB *)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB_il2cpp_TypeInfo_var))); InvalidOperationException__ctor_m4A65916B1316FBF45ECDF1FF7FAC9E3CA30C112C(L_6, (String_t*)((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral6EDB6C049ED9617FA335A262A29BF30B15221AEA)), (Exception_t *)L_5, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_6, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArraySortHelper_1_Sort_m49E965FFD901DD6161E7384F663FF333FB9E4A81_RuntimeMethod_var))); } // end catch (depth: 1) IL_0021: { return; } } // System.Int32 System.Collections.Generic.ArraySortHelper`1<System.Int64>::InternalBinarySearch(T[],System.Int32,System.Int32,T,System.Collections.Generic.IComparer`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t ArraySortHelper_1_InternalBinarySearch_m3245D8ECD99A3AC235A5E05B92A083155766BD83_gshared (Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6* ___array0, int32_t ___index1, int32_t ___length2, int64_t ___value3, RuntimeObject* ___comparer4, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; int32_t V_2 = 0; int32_t V_3 = 0; { int32_t L_0 = ___index1; V_0 = (int32_t)L_0; int32_t L_1 = ___index1; int32_t L_2 = ___length2; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_1, (int32_t)L_2)), (int32_t)1)); goto IL_0035; } IL_000a: { int32_t L_3 = V_0; int32_t L_4 = V_1; int32_t L_5 = V_0; V_2 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)((int32_t)((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_4, (int32_t)L_5))>>(int32_t)1)))); RuntimeObject* L_6 = ___comparer4; Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6* L_7 = ___array0; int32_t L_8 = V_2; NullCheck(L_7); int32_t L_9 = L_8; int64_t L_10 = (L_7)->GetAt(static_cast<il2cpp_array_size_t>(L_9)); int64_t L_11 = ___value3; NullCheck((RuntimeObject*)L_6); int32_t L_12; L_12 = InterfaceFuncInvoker2< int32_t, int64_t, int64_t >::Invoke(0 /* System.Int32 System.Collections.Generic.IComparer`1<System.Int64>::Compare(T,T) */, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 3), (RuntimeObject*)L_6, (int64_t)L_10, (int64_t)L_11); V_3 = (int32_t)L_12; int32_t L_13 = V_3; if (L_13) { goto IL_0027; } } { int32_t L_14 = V_2; return (int32_t)L_14; } IL_0027: { int32_t L_15 = V_3; if ((((int32_t)L_15) >= ((int32_t)0))) { goto IL_0031; } } { int32_t L_16 = V_2; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_16, (int32_t)1)); goto IL_0035; } IL_0031: { int32_t L_17 = V_2; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_17, (int32_t)1)); } IL_0035: { int32_t L_18 = V_0; int32_t L_19 = V_1; if ((((int32_t)L_18) <= ((int32_t)L_19))) { goto IL_000a; } } { int32_t L_20 = V_0; return (int32_t)((~L_20)); } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Int64>::SwapIfGreater(T[],System.Comparison`1<T>,System.Int32,System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_SwapIfGreater_m59B7BA5B0503B2761344EDA27FCE28ADFBF8EB11_gshared (Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6* ___keys0, Comparison_1_tD92B78AEB5AD82F2DCADCC9A5D0C2BE72D2969DF * ___comparer1, int32_t ___a2, int32_t ___b3, const RuntimeMethod* method) { int64_t V_0 = 0; { int32_t L_0 = ___a2; int32_t L_1 = ___b3; if ((((int32_t)L_0) == ((int32_t)L_1))) { goto IL_0039; } } { Comparison_1_tD92B78AEB5AD82F2DCADCC9A5D0C2BE72D2969DF * L_2 = ___comparer1; Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6* L_3 = ___keys0; int32_t L_4 = ___a2; NullCheck(L_3); int32_t L_5 = L_4; int64_t L_6 = (L_3)->GetAt(static_cast<il2cpp_array_size_t>(L_5)); Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6* L_7 = ___keys0; int32_t L_8 = ___b3; NullCheck(L_7); int32_t L_9 = L_8; int64_t L_10 = (L_7)->GetAt(static_cast<il2cpp_array_size_t>(L_9)); NullCheck((Comparison_1_tD92B78AEB5AD82F2DCADCC9A5D0C2BE72D2969DF *)L_2); int32_t L_11; L_11 = (( int32_t (*) (Comparison_1_tD92B78AEB5AD82F2DCADCC9A5D0C2BE72D2969DF *, int64_t, int64_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_tD92B78AEB5AD82F2DCADCC9A5D0C2BE72D2969DF *)L_2, (int64_t)L_6, (int64_t)L_10, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_11) <= ((int32_t)0))) { goto IL_0039; } } { Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6* L_12 = ___keys0; int32_t L_13 = ___a2; NullCheck(L_12); int32_t L_14 = L_13; int64_t L_15 = (L_12)->GetAt(static_cast<il2cpp_array_size_t>(L_14)); V_0 = (int64_t)L_15; Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6* L_16 = ___keys0; int32_t L_17 = ___a2; Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6* L_18 = ___keys0; int32_t L_19 = ___b3; NullCheck(L_18); int32_t L_20 = L_19; int64_t L_21 = (L_18)->GetAt(static_cast<il2cpp_array_size_t>(L_20)); NullCheck(L_16); (L_16)->SetAt(static_cast<il2cpp_array_size_t>(L_17), (int64_t)L_21); Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6* L_22 = ___keys0; int32_t L_23 = ___b3; int64_t L_24 = V_0; NullCheck(L_22); (L_22)->SetAt(static_cast<il2cpp_array_size_t>(L_23), (int64_t)L_24); } IL_0039: { return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Int64>::Swap(T[],System.Int32,System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Swap_mA7C1AC66F4246203F97760E6AEBAB7A0954961E7_gshared (Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6* ___a0, int32_t ___i1, int32_t ___j2, const RuntimeMethod* method) { int64_t V_0 = 0; { int32_t L_0 = ___i1; int32_t L_1 = ___j2; if ((((int32_t)L_0) == ((int32_t)L_1))) { goto IL_0022; } } { Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6* L_2 = ___a0; int32_t L_3 = ___i1; NullCheck(L_2); int32_t L_4 = L_3; int64_t L_5 = (L_2)->GetAt(static_cast<il2cpp_array_size_t>(L_4)); V_0 = (int64_t)L_5; Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6* L_6 = ___a0; int32_t L_7 = ___i1; Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6* L_8 = ___a0; int32_t L_9 = ___j2; NullCheck(L_8); int32_t L_10 = L_9; int64_t L_11 = (L_8)->GetAt(static_cast<il2cpp_array_size_t>(L_10)); NullCheck(L_6); (L_6)->SetAt(static_cast<il2cpp_array_size_t>(L_7), (int64_t)L_11); Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6* L_12 = ___a0; int32_t L_13 = ___j2; int64_t L_14 = V_0; NullCheck(L_12); (L_12)->SetAt(static_cast<il2cpp_array_size_t>(L_13), (int64_t)L_14); } IL_0022: { return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Int64>::IntrospectiveSort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_IntrospectiveSort_m7AAB153155BFC3FD4D9FA41BCB012BC0C1A1855E_gshared (Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6* ___keys0, int32_t ___left1, int32_t ___length2, Comparison_1_tD92B78AEB5AD82F2DCADCC9A5D0C2BE72D2969DF * ___comparer3, const RuntimeMethod* method) { { int32_t L_0 = ___length2; if ((((int32_t)L_0) >= ((int32_t)2))) { goto IL_0005; } } { return; } IL_0005: { Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6* L_1 = ___keys0; int32_t L_2 = ___left1; int32_t L_3 = ___length2; int32_t L_4 = ___left1; Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6* L_5 = ___keys0; NullCheck(L_5); int32_t L_6; L_6 = IntrospectiveSortUtilities_FloorLog2_m05ECB6CAC7A23087D9EC2C2A4DDCFE12272C3872((int32_t)((int32_t)((int32_t)(((RuntimeArray*)L_5)->max_length))), /*hidden argument*/NULL); Comparison_1_tD92B78AEB5AD82F2DCADCC9A5D0C2BE72D2969DF * L_7 = ___comparer3; (( void (*) (Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6*, int32_t, int32_t, int32_t, Comparison_1_tD92B78AEB5AD82F2DCADCC9A5D0C2BE72D2969DF *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)->methodPointer)((Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6*)L_1, (int32_t)L_2, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)L_4)), (int32_t)1)), (int32_t)((int32_t)il2cpp_codegen_multiply((int32_t)2, (int32_t)L_6)), (Comparison_1_tD92B78AEB5AD82F2DCADCC9A5D0C2BE72D2969DF *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)); return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Int64>::IntroSort(T[],System.Int32,System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_IntroSort_m1FE49A0E5F1AEF603B2B7D075F59DAC09E52F48D_gshared (Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6* ___keys0, int32_t ___lo1, int32_t ___hi2, int32_t ___depthLimit3, Comparison_1_tD92B78AEB5AD82F2DCADCC9A5D0C2BE72D2969DF * ___comparer4, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; { goto IL_0086; } IL_0005: { int32_t L_0 = ___hi2; int32_t L_1 = ___lo1; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_0, (int32_t)L_1)), (int32_t)1)); int32_t L_2 = V_0; if ((((int32_t)L_2) > ((int32_t)((int32_t)16)))) { goto IL_0056; } } { int32_t L_3 = V_0; if ((!(((uint32_t)L_3) == ((uint32_t)1)))) { goto IL_0015; } } { return; } IL_0015: { int32_t L_4 = V_0; if ((!(((uint32_t)L_4) == ((uint32_t)2)))) { goto IL_0024; } } { Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6* L_5 = ___keys0; Comparison_1_tD92B78AEB5AD82F2DCADCC9A5D0C2BE72D2969DF * L_6 = ___comparer4; int32_t L_7 = ___lo1; int32_t L_8 = ___hi2; (( void (*) (Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6*, Comparison_1_tD92B78AEB5AD82F2DCADCC9A5D0C2BE72D2969DF *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6*)L_5, (Comparison_1_tD92B78AEB5AD82F2DCADCC9A5D0C2BE72D2969DF *)L_6, (int32_t)L_7, (int32_t)L_8, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); return; } IL_0024: { int32_t L_9 = V_0; if ((!(((uint32_t)L_9) == ((uint32_t)3)))) { goto IL_004b; } } { Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6* L_10 = ___keys0; Comparison_1_tD92B78AEB5AD82F2DCADCC9A5D0C2BE72D2969DF * L_11 = ___comparer4; int32_t L_12 = ___lo1; int32_t L_13 = ___hi2; (( void (*) (Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6*, Comparison_1_tD92B78AEB5AD82F2DCADCC9A5D0C2BE72D2969DF *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6*)L_10, (Comparison_1_tD92B78AEB5AD82F2DCADCC9A5D0C2BE72D2969DF *)L_11, (int32_t)L_12, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_13, (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6* L_14 = ___keys0; Comparison_1_tD92B78AEB5AD82F2DCADCC9A5D0C2BE72D2969DF * L_15 = ___comparer4; int32_t L_16 = ___lo1; int32_t L_17 = ___hi2; (( void (*) (Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6*, Comparison_1_tD92B78AEB5AD82F2DCADCC9A5D0C2BE72D2969DF *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6*)L_14, (Comparison_1_tD92B78AEB5AD82F2DCADCC9A5D0C2BE72D2969DF *)L_15, (int32_t)L_16, (int32_t)L_17, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6* L_18 = ___keys0; Comparison_1_tD92B78AEB5AD82F2DCADCC9A5D0C2BE72D2969DF * L_19 = ___comparer4; int32_t L_20 = ___hi2; int32_t L_21 = ___hi2; (( void (*) (Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6*, Comparison_1_tD92B78AEB5AD82F2DCADCC9A5D0C2BE72D2969DF *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6*)L_18, (Comparison_1_tD92B78AEB5AD82F2DCADCC9A5D0C2BE72D2969DF *)L_19, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_20, (int32_t)1)), (int32_t)L_21, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); return; } IL_004b: { Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6* L_22 = ___keys0; int32_t L_23 = ___lo1; int32_t L_24 = ___hi2; Comparison_1_tD92B78AEB5AD82F2DCADCC9A5D0C2BE72D2969DF * L_25 = ___comparer4; (( void (*) (Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6*, int32_t, int32_t, Comparison_1_tD92B78AEB5AD82F2DCADCC9A5D0C2BE72D2969DF *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 12)->methodPointer)((Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6*)L_22, (int32_t)L_23, (int32_t)L_24, (Comparison_1_tD92B78AEB5AD82F2DCADCC9A5D0C2BE72D2969DF *)L_25, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 12)); return; } IL_0056: { int32_t L_26 = ___depthLimit3; if (L_26) { goto IL_0064; } } { Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6* L_27 = ___keys0; int32_t L_28 = ___lo1; int32_t L_29 = ___hi2; Comparison_1_tD92B78AEB5AD82F2DCADCC9A5D0C2BE72D2969DF * L_30 = ___comparer4; (( void (*) (Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6*, int32_t, int32_t, Comparison_1_tD92B78AEB5AD82F2DCADCC9A5D0C2BE72D2969DF *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 13)->methodPointer)((Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6*)L_27, (int32_t)L_28, (int32_t)L_29, (Comparison_1_tD92B78AEB5AD82F2DCADCC9A5D0C2BE72D2969DF *)L_30, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 13)); return; } IL_0064: { int32_t L_31 = ___depthLimit3; ___depthLimit3 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_31, (int32_t)1)); Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6* L_32 = ___keys0; int32_t L_33 = ___lo1; int32_t L_34 = ___hi2; Comparison_1_tD92B78AEB5AD82F2DCADCC9A5D0C2BE72D2969DF * L_35 = ___comparer4; int32_t L_36; L_36 = (( int32_t (*) (Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6*, int32_t, int32_t, Comparison_1_tD92B78AEB5AD82F2DCADCC9A5D0C2BE72D2969DF *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 14)->methodPointer)((Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6*)L_32, (int32_t)L_33, (int32_t)L_34, (Comparison_1_tD92B78AEB5AD82F2DCADCC9A5D0C2BE72D2969DF *)L_35, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 14)); V_1 = (int32_t)L_36; Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6* L_37 = ___keys0; int32_t L_38 = V_1; int32_t L_39 = ___hi2; int32_t L_40 = ___depthLimit3; Comparison_1_tD92B78AEB5AD82F2DCADCC9A5D0C2BE72D2969DF * L_41 = ___comparer4; (( void (*) (Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6*, int32_t, int32_t, int32_t, Comparison_1_tD92B78AEB5AD82F2DCADCC9A5D0C2BE72D2969DF *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)->methodPointer)((Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6*)L_37, (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_38, (int32_t)1)), (int32_t)L_39, (int32_t)L_40, (Comparison_1_tD92B78AEB5AD82F2DCADCC9A5D0C2BE72D2969DF *)L_41, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)); int32_t L_42 = V_1; ___hi2 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_42, (int32_t)1)); } IL_0086: { int32_t L_43 = ___hi2; int32_t L_44 = ___lo1; if ((((int32_t)L_43) > ((int32_t)L_44))) { goto IL_0005; } } { return; } } // System.Int32 System.Collections.Generic.ArraySortHelper`1<System.Int64>::PickPivotAndPartition(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t ArraySortHelper_1_PickPivotAndPartition_m3A92D995B343C6A98A53A1A0A511C1816C1C7A49_gshared (Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6* ___keys0, int32_t ___lo1, int32_t ___hi2, Comparison_1_tD92B78AEB5AD82F2DCADCC9A5D0C2BE72D2969DF * ___comparer3, const RuntimeMethod* method) { int32_t V_0 = 0; int64_t V_1 = 0; int32_t V_2 = 0; int32_t V_3 = 0; { int32_t L_0 = ___lo1; int32_t L_1 = ___hi2; int32_t L_2 = ___lo1; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_0, (int32_t)((int32_t)((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_1, (int32_t)L_2))/(int32_t)2)))); Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6* L_3 = ___keys0; Comparison_1_tD92B78AEB5AD82F2DCADCC9A5D0C2BE72D2969DF * L_4 = ___comparer3; int32_t L_5 = ___lo1; int32_t L_6 = V_0; (( void (*) (Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6*, Comparison_1_tD92B78AEB5AD82F2DCADCC9A5D0C2BE72D2969DF *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6*)L_3, (Comparison_1_tD92B78AEB5AD82F2DCADCC9A5D0C2BE72D2969DF *)L_4, (int32_t)L_5, (int32_t)L_6, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6* L_7 = ___keys0; Comparison_1_tD92B78AEB5AD82F2DCADCC9A5D0C2BE72D2969DF * L_8 = ___comparer3; int32_t L_9 = ___lo1; int32_t L_10 = ___hi2; (( void (*) (Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6*, Comparison_1_tD92B78AEB5AD82F2DCADCC9A5D0C2BE72D2969DF *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6*)L_7, (Comparison_1_tD92B78AEB5AD82F2DCADCC9A5D0C2BE72D2969DF *)L_8, (int32_t)L_9, (int32_t)L_10, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6* L_11 = ___keys0; Comparison_1_tD92B78AEB5AD82F2DCADCC9A5D0C2BE72D2969DF * L_12 = ___comparer3; int32_t L_13 = V_0; int32_t L_14 = ___hi2; (( void (*) (Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6*, Comparison_1_tD92B78AEB5AD82F2DCADCC9A5D0C2BE72D2969DF *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6*)L_11, (Comparison_1_tD92B78AEB5AD82F2DCADCC9A5D0C2BE72D2969DF *)L_12, (int32_t)L_13, (int32_t)L_14, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6* L_15 = ___keys0; int32_t L_16 = V_0; NullCheck(L_15); int32_t L_17 = L_16; int64_t L_18 = (L_15)->GetAt(static_cast<il2cpp_array_size_t>(L_17)); V_1 = (int64_t)L_18; Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6* L_19 = ___keys0; int32_t L_20 = V_0; int32_t L_21 = ___hi2; (( void (*) (Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6*)L_19, (int32_t)L_20, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_21, (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); int32_t L_22 = ___lo1; V_2 = (int32_t)L_22; int32_t L_23 = ___hi2; V_3 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_23, (int32_t)1)); goto IL_0073; } IL_003d: { Comparison_1_tD92B78AEB5AD82F2DCADCC9A5D0C2BE72D2969DF * L_24 = ___comparer3; Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6* L_25 = ___keys0; int32_t L_26 = V_2; int32_t L_27 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_26, (int32_t)1)); V_2 = (int32_t)L_27; NullCheck(L_25); int32_t L_28 = L_27; int64_t L_29 = (L_25)->GetAt(static_cast<il2cpp_array_size_t>(L_28)); int64_t L_30 = V_1; NullCheck((Comparison_1_tD92B78AEB5AD82F2DCADCC9A5D0C2BE72D2969DF *)L_24); int32_t L_31; L_31 = (( int32_t (*) (Comparison_1_tD92B78AEB5AD82F2DCADCC9A5D0C2BE72D2969DF *, int64_t, int64_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_tD92B78AEB5AD82F2DCADCC9A5D0C2BE72D2969DF *)L_24, (int64_t)L_29, (int64_t)L_30, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_31) < ((int32_t)0))) { goto IL_003d; } } IL_0052: { Comparison_1_tD92B78AEB5AD82F2DCADCC9A5D0C2BE72D2969DF * L_32 = ___comparer3; int64_t L_33 = V_1; Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6* L_34 = ___keys0; int32_t L_35 = V_3; int32_t L_36 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_35, (int32_t)1)); V_3 = (int32_t)L_36; NullCheck(L_34); int32_t L_37 = L_36; int64_t L_38 = (L_34)->GetAt(static_cast<il2cpp_array_size_t>(L_37)); NullCheck((Comparison_1_tD92B78AEB5AD82F2DCADCC9A5D0C2BE72D2969DF *)L_32); int32_t L_39; L_39 = (( int32_t (*) (Comparison_1_tD92B78AEB5AD82F2DCADCC9A5D0C2BE72D2969DF *, int64_t, int64_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_tD92B78AEB5AD82F2DCADCC9A5D0C2BE72D2969DF *)L_32, (int64_t)L_33, (int64_t)L_38, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_39) < ((int32_t)0))) { goto IL_0052; } } { int32_t L_40 = V_2; int32_t L_41 = V_3; if ((((int32_t)L_40) >= ((int32_t)L_41))) { goto IL_0077; } } { Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6* L_42 = ___keys0; int32_t L_43 = V_2; int32_t L_44 = V_3; (( void (*) (Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6*)L_42, (int32_t)L_43, (int32_t)L_44, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); } IL_0073: { int32_t L_45 = V_2; int32_t L_46 = V_3; if ((((int32_t)L_45) < ((int32_t)L_46))) { goto IL_003d; } } IL_0077: { Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6* L_47 = ___keys0; int32_t L_48 = V_2; int32_t L_49 = ___hi2; (( void (*) (Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6*)L_47, (int32_t)L_48, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_49, (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); int32_t L_50 = V_2; return (int32_t)L_50; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Int64>::Heapsort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Heapsort_m7520E30263B538AF82ED7817E2BE9D10A1936D50_gshared (Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6* ___keys0, int32_t ___lo1, int32_t ___hi2, Comparison_1_tD92B78AEB5AD82F2DCADCC9A5D0C2BE72D2969DF * ___comparer3, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; int32_t V_2 = 0; { int32_t L_0 = ___hi2; int32_t L_1 = ___lo1; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_0, (int32_t)L_1)), (int32_t)1)); int32_t L_2 = V_0; V_1 = (int32_t)((int32_t)((int32_t)L_2/(int32_t)2)); goto IL_001a; } IL_000c: { Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6* L_3 = ___keys0; int32_t L_4 = V_1; int32_t L_5 = V_0; int32_t L_6 = ___lo1; Comparison_1_tD92B78AEB5AD82F2DCADCC9A5D0C2BE72D2969DF * L_7 = ___comparer3; (( void (*) (Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6*, int32_t, int32_t, int32_t, Comparison_1_tD92B78AEB5AD82F2DCADCC9A5D0C2BE72D2969DF *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)->methodPointer)((Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6*)L_3, (int32_t)L_4, (int32_t)L_5, (int32_t)L_6, (Comparison_1_tD92B78AEB5AD82F2DCADCC9A5D0C2BE72D2969DF *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)); int32_t L_8 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_8, (int32_t)1)); } IL_001a: { int32_t L_9 = V_1; if ((((int32_t)L_9) >= ((int32_t)1))) { goto IL_000c; } } { int32_t L_10 = V_0; V_2 = (int32_t)L_10; goto IL_003e; } IL_0022: { Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6* L_11 = ___keys0; int32_t L_12 = ___lo1; int32_t L_13 = ___lo1; int32_t L_14 = V_2; (( void (*) (Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6*)L_11, (int32_t)L_12, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_13, (int32_t)L_14)), (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6* L_15 = ___keys0; int32_t L_16 = V_2; int32_t L_17 = ___lo1; Comparison_1_tD92B78AEB5AD82F2DCADCC9A5D0C2BE72D2969DF * L_18 = ___comparer3; (( void (*) (Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6*, int32_t, int32_t, int32_t, Comparison_1_tD92B78AEB5AD82F2DCADCC9A5D0C2BE72D2969DF *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)->methodPointer)((Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6*)L_15, (int32_t)1, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_16, (int32_t)1)), (int32_t)L_17, (Comparison_1_tD92B78AEB5AD82F2DCADCC9A5D0C2BE72D2969DF *)L_18, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)); int32_t L_19 = V_2; V_2 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_19, (int32_t)1)); } IL_003e: { int32_t L_20 = V_2; if ((((int32_t)L_20) > ((int32_t)1))) { goto IL_0022; } } { return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Int64>::DownHeap(T[],System.Int32,System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_DownHeap_m0D244A1F63A5E5A1B3D93B32D54087DD2A3286E2_gshared (Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6* ___keys0, int32_t ___i1, int32_t ___n2, int32_t ___lo3, Comparison_1_tD92B78AEB5AD82F2DCADCC9A5D0C2BE72D2969DF * ___comparer4, const RuntimeMethod* method) { int64_t V_0 = 0; int32_t V_1 = 0; { Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6* L_0 = ___keys0; int32_t L_1 = ___lo3; int32_t L_2 = ___i1; NullCheck(L_0); int32_t L_3 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_1, (int32_t)L_2)), (int32_t)1)); int64_t L_4 = (L_0)->GetAt(static_cast<il2cpp_array_size_t>(L_3)); V_0 = (int64_t)L_4; goto IL_0067; } IL_000e: { int32_t L_5 = ___i1; V_1 = (int32_t)((int32_t)il2cpp_codegen_multiply((int32_t)2, (int32_t)L_5)); int32_t L_6 = V_1; int32_t L_7 = ___n2; if ((((int32_t)L_6) >= ((int32_t)L_7))) { goto IL_0038; } } { Comparison_1_tD92B78AEB5AD82F2DCADCC9A5D0C2BE72D2969DF * L_8 = ___comparer4; Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6* L_9 = ___keys0; int32_t L_10 = ___lo3; int32_t L_11 = V_1; NullCheck(L_9); int32_t L_12 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_10, (int32_t)L_11)), (int32_t)1)); int64_t L_13 = (L_9)->GetAt(static_cast<il2cpp_array_size_t>(L_12)); Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6* L_14 = ___keys0; int32_t L_15 = ___lo3; int32_t L_16 = V_1; NullCheck(L_14); int32_t L_17 = ((int32_t)il2cpp_codegen_add((int32_t)L_15, (int32_t)L_16)); int64_t L_18 = (L_14)->GetAt(static_cast<il2cpp_array_size_t>(L_17)); NullCheck((Comparison_1_tD92B78AEB5AD82F2DCADCC9A5D0C2BE72D2969DF *)L_8); int32_t L_19; L_19 = (( int32_t (*) (Comparison_1_tD92B78AEB5AD82F2DCADCC9A5D0C2BE72D2969DF *, int64_t, int64_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_tD92B78AEB5AD82F2DCADCC9A5D0C2BE72D2969DF *)L_8, (int64_t)L_13, (int64_t)L_18, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_19) >= ((int32_t)0))) { goto IL_0038; } } { int32_t L_20 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_20, (int32_t)1)); } IL_0038: { Comparison_1_tD92B78AEB5AD82F2DCADCC9A5D0C2BE72D2969DF * L_21 = ___comparer4; int64_t L_22 = V_0; Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6* L_23 = ___keys0; int32_t L_24 = ___lo3; int32_t L_25 = V_1; NullCheck(L_23); int32_t L_26 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_24, (int32_t)L_25)), (int32_t)1)); int64_t L_27 = (L_23)->GetAt(static_cast<il2cpp_array_size_t>(L_26)); NullCheck((Comparison_1_tD92B78AEB5AD82F2DCADCC9A5D0C2BE72D2969DF *)L_21); int32_t L_28; L_28 = (( int32_t (*) (Comparison_1_tD92B78AEB5AD82F2DCADCC9A5D0C2BE72D2969DF *, int64_t, int64_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_tD92B78AEB5AD82F2DCADCC9A5D0C2BE72D2969DF *)L_21, (int64_t)L_22, (int64_t)L_27, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_28) >= ((int32_t)0))) { goto IL_006d; } } { Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6* L_29 = ___keys0; int32_t L_30 = ___lo3; int32_t L_31 = ___i1; Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6* L_32 = ___keys0; int32_t L_33 = ___lo3; int32_t L_34 = V_1; NullCheck(L_32); int32_t L_35 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_33, (int32_t)L_34)), (int32_t)1)); int64_t L_36 = (L_32)->GetAt(static_cast<il2cpp_array_size_t>(L_35)); NullCheck(L_29); (L_29)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_30, (int32_t)L_31)), (int32_t)1))), (int64_t)L_36); int32_t L_37 = V_1; ___i1 = (int32_t)L_37; } IL_0067: { int32_t L_38 = ___i1; int32_t L_39 = ___n2; if ((((int32_t)L_38) <= ((int32_t)((int32_t)((int32_t)L_39/(int32_t)2))))) { goto IL_000e; } } IL_006d: { Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6* L_40 = ___keys0; int32_t L_41 = ___lo3; int32_t L_42 = ___i1; int64_t L_43 = V_0; NullCheck(L_40); (L_40)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_41, (int32_t)L_42)), (int32_t)1))), (int64_t)L_43); return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Int64>::InsertionSort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_InsertionSort_m3AD2D6DFC97EC117C565EE3D86E5020A30417F41_gshared (Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6* ___keys0, int32_t ___lo1, int32_t ___hi2, Comparison_1_tD92B78AEB5AD82F2DCADCC9A5D0C2BE72D2969DF * ___comparer3, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; int64_t V_2 = 0; { int32_t L_0 = ___lo1; V_0 = (int32_t)L_0; goto IL_0049; } IL_0004: { int32_t L_1 = V_0; V_1 = (int32_t)L_1; Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6* L_2 = ___keys0; int32_t L_3 = V_0; NullCheck(L_2); int32_t L_4 = ((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)1)); int64_t L_5 = (L_2)->GetAt(static_cast<il2cpp_array_size_t>(L_4)); V_2 = (int64_t)L_5; goto IL_0026; } IL_0012: { Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6* L_6 = ___keys0; int32_t L_7 = V_1; Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6* L_8 = ___keys0; int32_t L_9 = V_1; NullCheck(L_8); int32_t L_10 = L_9; int64_t L_11 = (L_8)->GetAt(static_cast<il2cpp_array_size_t>(L_10)); NullCheck(L_6); (L_6)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add((int32_t)L_7, (int32_t)1))), (int64_t)L_11); int32_t L_12 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_12, (int32_t)1)); } IL_0026: { int32_t L_13 = V_1; int32_t L_14 = ___lo1; if ((((int32_t)L_13) < ((int32_t)L_14))) { goto IL_003b; } } { Comparison_1_tD92B78AEB5AD82F2DCADCC9A5D0C2BE72D2969DF * L_15 = ___comparer3; int64_t L_16 = V_2; Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6* L_17 = ___keys0; int32_t L_18 = V_1; NullCheck(L_17); int32_t L_19 = L_18; int64_t L_20 = (L_17)->GetAt(static_cast<il2cpp_array_size_t>(L_19)); NullCheck((Comparison_1_tD92B78AEB5AD82F2DCADCC9A5D0C2BE72D2969DF *)L_15); int32_t L_21; L_21 = (( int32_t (*) (Comparison_1_tD92B78AEB5AD82F2DCADCC9A5D0C2BE72D2969DF *, int64_t, int64_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_tD92B78AEB5AD82F2DCADCC9A5D0C2BE72D2969DF *)L_15, (int64_t)L_16, (int64_t)L_20, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_21) < ((int32_t)0))) { goto IL_0012; } } IL_003b: { Int64U5BU5D_tCA61E42872C63A4286B24EEE6E0650143B43DCE6* L_22 = ___keys0; int32_t L_23 = V_1; int64_t L_24 = V_2; NullCheck(L_22); (L_22)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add((int32_t)L_23, (int32_t)1))), (int64_t)L_24); int32_t L_25 = V_0; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_25, (int32_t)1)); } IL_0049: { int32_t L_26 = V_0; int32_t L_27 = ___hi2; if ((((int32_t)L_26) < ((int32_t)L_27))) { goto IL_0004; } } { return; } } #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Void System.Collections.Generic.ArraySortHelper`1<UnityEngine.InputSystem.Utilities.InternedString>::Sort(T[],System.Int32,System.Int32,System.Collections.Generic.IComparer`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Sort_mCF25294EEB3CDDDE8719287B7AAD2E3642D90C25_gshared (InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648* ___keys0, int32_t ___index1, int32_t ___length2, RuntimeObject* ___comparer3, const RuntimeMethod* method) { Exception_t * V_0 = NULL; il2cpp::utils::ExceptionSupportStack<RuntimeObject*, 1> __active_exceptions; il2cpp::utils::ExceptionSupportStack<int32_t, 2> __leave_targets; IL_0000: try { // begin try (depth: 1) { RuntimeObject* L_0 = ___comparer3; if (L_0) { goto IL_000a; } } IL_0003: { Comparer_1_tA3EEEEBFB986DD2BD0A34C300A52DDE5010A950A * L_1; L_1 = (( Comparer_1_tA3EEEEBFB986DD2BD0A34C300A52DDE5010A950A * (*) (const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)->methodPointer)(/*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)); ___comparer3 = (RuntimeObject*)L_1; } IL_000a: { InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648* L_2 = ___keys0; int32_t L_3 = ___index1; int32_t L_4 = ___length2; RuntimeObject* L_5 = ___comparer3; RuntimeObject* L_6 = (RuntimeObject*)L_5; Comparison_1_t1983F36BDC7F5FA1724FDF6EB03F8980528557E6 * L_7 = (Comparison_1_t1983F36BDC7F5FA1724FDF6EB03F8980528557E6 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 4)); (( void (*) (Comparison_1_t1983F36BDC7F5FA1724FDF6EB03F8980528557E6 *, RuntimeObject *, intptr_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 5)->methodPointer)(L_7, (RuntimeObject *)L_6, (intptr_t)((intptr_t)GetInterfaceMethodInfo(L_6, 0, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 3))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 5)); (( void (*) (InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648*, int32_t, int32_t, Comparison_1_t1983F36BDC7F5FA1724FDF6EB03F8980528557E6 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)->methodPointer)((InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648*)L_2, (int32_t)L_3, (int32_t)L_4, (Comparison_1_t1983F36BDC7F5FA1724FDF6EB03F8980528557E6 *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)); goto IL_0037; } } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&IndexOutOfRangeException_tDC9EF7A0346CE39E54DA1083F07BE6DFC3CE2EDD_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_0021; } if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&Exception_t_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_002a; } throw e; } CATCH_0021: { // begin catch(System.IndexOutOfRangeException) RuntimeObject* L_8 = ___comparer3; IntrospectiveSortUtilities_ThrowOrIgnoreBadComparer_mE23A8103696FA67F874E7DA86625BB3921DB801F((RuntimeObject *)L_8, /*hidden argument*/NULL); IL2CPP_POP_ACTIVE_EXCEPTION(); goto IL_0037; } // end catch (depth: 1) CATCH_002a: { // begin catch(System.Exception) V_0 = (Exception_t *)((Exception_t *)IL2CPP_GET_ACTIVE_EXCEPTION(Exception_t *)); Exception_t * L_9 = V_0; InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB * L_10 = (InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB *)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB_il2cpp_TypeInfo_var))); InvalidOperationException__ctor_m4A65916B1316FBF45ECDF1FF7FAC9E3CA30C112C(L_10, (String_t*)((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral6EDB6C049ED9617FA335A262A29BF30B15221AEA)), (Exception_t *)L_9, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_10, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArraySortHelper_1_Sort_mCF25294EEB3CDDDE8719287B7AAD2E3642D90C25_RuntimeMethod_var))); } // end catch (depth: 1) IL_0037: { return; } } // System.Int32 System.Collections.Generic.ArraySortHelper`1<UnityEngine.InputSystem.Utilities.InternedString>::BinarySearch(T[],System.Int32,System.Int32,T,System.Collections.Generic.IComparer`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t ArraySortHelper_1_BinarySearch_mE8CE8A395BCC565E18194834D7B7E3E284910758_gshared (InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648* ___array0, int32_t ___index1, int32_t ___length2, InternedString_tD1138602E8B7EA0F5B4851812B13C7E0551E25C8 ___value3, RuntimeObject* ___comparer4, const RuntimeMethod* method) { int32_t V_0 = 0; Exception_t * V_1 = NULL; il2cpp::utils::ExceptionSupportStack<RuntimeObject*, 1> __active_exceptions; il2cpp::utils::ExceptionSupportStack<int32_t, 1> __leave_targets; IL_0000: try { // begin try (depth: 1) { RuntimeObject* L_0 = ___comparer4; if (L_0) { goto IL_000b; } } IL_0004: { Comparer_1_tA3EEEEBFB986DD2BD0A34C300A52DDE5010A950A * L_1; L_1 = (( Comparer_1_tA3EEEEBFB986DD2BD0A34C300A52DDE5010A950A * (*) (const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)->methodPointer)(/*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)); ___comparer4 = (RuntimeObject*)L_1; } IL_000b: { InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648* L_2 = ___array0; int32_t L_3 = ___index1; int32_t L_4 = ___length2; InternedString_tD1138602E8B7EA0F5B4851812B13C7E0551E25C8 L_5 = ___value3; RuntimeObject* L_6 = ___comparer4; int32_t L_7; L_7 = (( int32_t (*) (InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648*, int32_t, int32_t, InternedString_tD1138602E8B7EA0F5B4851812B13C7E0551E25C8 , RuntimeObject*, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 8)->methodPointer)((InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648*)L_2, (int32_t)L_3, (int32_t)L_4, (InternedString_tD1138602E8B7EA0F5B4851812B13C7E0551E25C8 )L_5, (RuntimeObject*)L_6, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 8)); V_0 = (int32_t)L_7; goto IL_0026; } } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&Exception_t_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_0019; } throw e; } CATCH_0019: { // begin catch(System.Exception) V_1 = (Exception_t *)((Exception_t *)IL2CPP_GET_ACTIVE_EXCEPTION(Exception_t *)); Exception_t * L_8 = V_1; InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB * L_9 = (InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB *)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB_il2cpp_TypeInfo_var))); InvalidOperationException__ctor_m4A65916B1316FBF45ECDF1FF7FAC9E3CA30C112C(L_9, (String_t*)((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral6EDB6C049ED9617FA335A262A29BF30B15221AEA)), (Exception_t *)L_8, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_9, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArraySortHelper_1_BinarySearch_mE8CE8A395BCC565E18194834D7B7E3E284910758_RuntimeMethod_var))); } // end catch (depth: 1) IL_0026: { int32_t L_10 = V_0; return (int32_t)L_10; } } // System.Void System.Collections.Generic.ArraySortHelper`1<UnityEngine.InputSystem.Utilities.InternedString>::Sort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Sort_m447B746232511D03C7945AB4A88CBB8107290816_gshared (InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648* ___keys0, int32_t ___index1, int32_t ___length2, Comparison_1_t1983F36BDC7F5FA1724FDF6EB03F8980528557E6 * ___comparer3, const RuntimeMethod* method) { Exception_t * V_0 = NULL; il2cpp::utils::ExceptionSupportStack<RuntimeObject*, 1> __active_exceptions; il2cpp::utils::ExceptionSupportStack<int32_t, 2> __leave_targets; IL_0000: try { // begin try (depth: 1) InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648* L_0 = ___keys0; int32_t L_1 = ___index1; int32_t L_2 = ___length2; Comparison_1_t1983F36BDC7F5FA1724FDF6EB03F8980528557E6 * L_3 = ___comparer3; (( void (*) (InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648*, int32_t, int32_t, Comparison_1_t1983F36BDC7F5FA1724FDF6EB03F8980528557E6 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)->methodPointer)((InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648*)L_0, (int32_t)L_1, (int32_t)L_2, (Comparison_1_t1983F36BDC7F5FA1724FDF6EB03F8980528557E6 *)L_3, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)); goto IL_0021; } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&IndexOutOfRangeException_tDC9EF7A0346CE39E54DA1083F07BE6DFC3CE2EDD_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_000b; } if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&Exception_t_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_0014; } throw e; } CATCH_000b: { // begin catch(System.IndexOutOfRangeException) Comparison_1_t1983F36BDC7F5FA1724FDF6EB03F8980528557E6 * L_4 = ___comparer3; IntrospectiveSortUtilities_ThrowOrIgnoreBadComparer_mE23A8103696FA67F874E7DA86625BB3921DB801F((RuntimeObject *)L_4, /*hidden argument*/NULL); IL2CPP_POP_ACTIVE_EXCEPTION(); goto IL_0021; } // end catch (depth: 1) CATCH_0014: { // begin catch(System.Exception) V_0 = (Exception_t *)((Exception_t *)IL2CPP_GET_ACTIVE_EXCEPTION(Exception_t *)); Exception_t * L_5 = V_0; InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB * L_6 = (InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB *)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB_il2cpp_TypeInfo_var))); InvalidOperationException__ctor_m4A65916B1316FBF45ECDF1FF7FAC9E3CA30C112C(L_6, (String_t*)((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral6EDB6C049ED9617FA335A262A29BF30B15221AEA)), (Exception_t *)L_5, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_6, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArraySortHelper_1_Sort_m447B746232511D03C7945AB4A88CBB8107290816_RuntimeMethod_var))); } // end catch (depth: 1) IL_0021: { return; } } // System.Int32 System.Collections.Generic.ArraySortHelper`1<UnityEngine.InputSystem.Utilities.InternedString>::InternalBinarySearch(T[],System.Int32,System.Int32,T,System.Collections.Generic.IComparer`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t ArraySortHelper_1_InternalBinarySearch_m98A0F3E0AD800B9E6FA1A3C2F4E39708742599C4_gshared (InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648* ___array0, int32_t ___index1, int32_t ___length2, InternedString_tD1138602E8B7EA0F5B4851812B13C7E0551E25C8 ___value3, RuntimeObject* ___comparer4, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; int32_t V_2 = 0; int32_t V_3 = 0; { int32_t L_0 = ___index1; V_0 = (int32_t)L_0; int32_t L_1 = ___index1; int32_t L_2 = ___length2; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_1, (int32_t)L_2)), (int32_t)1)); goto IL_0035; } IL_000a: { int32_t L_3 = V_0; int32_t L_4 = V_1; int32_t L_5 = V_0; V_2 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)((int32_t)((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_4, (int32_t)L_5))>>(int32_t)1)))); RuntimeObject* L_6 = ___comparer4; InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648* L_7 = ___array0; int32_t L_8 = V_2; NullCheck(L_7); int32_t L_9 = L_8; InternedString_tD1138602E8B7EA0F5B4851812B13C7E0551E25C8 L_10 = (L_7)->GetAt(static_cast<il2cpp_array_size_t>(L_9)); InternedString_tD1138602E8B7EA0F5B4851812B13C7E0551E25C8 L_11 = ___value3; NullCheck((RuntimeObject*)L_6); int32_t L_12; L_12 = InterfaceFuncInvoker2< int32_t, InternedString_tD1138602E8B7EA0F5B4851812B13C7E0551E25C8 , InternedString_tD1138602E8B7EA0F5B4851812B13C7E0551E25C8 >::Invoke(0 /* System.Int32 System.Collections.Generic.IComparer`1<UnityEngine.InputSystem.Utilities.InternedString>::Compare(T,T) */, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 3), (RuntimeObject*)L_6, (InternedString_tD1138602E8B7EA0F5B4851812B13C7E0551E25C8 )L_10, (InternedString_tD1138602E8B7EA0F5B4851812B13C7E0551E25C8 )L_11); V_3 = (int32_t)L_12; int32_t L_13 = V_3; if (L_13) { goto IL_0027; } } { int32_t L_14 = V_2; return (int32_t)L_14; } IL_0027: { int32_t L_15 = V_3; if ((((int32_t)L_15) >= ((int32_t)0))) { goto IL_0031; } } { int32_t L_16 = V_2; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_16, (int32_t)1)); goto IL_0035; } IL_0031: { int32_t L_17 = V_2; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_17, (int32_t)1)); } IL_0035: { int32_t L_18 = V_0; int32_t L_19 = V_1; if ((((int32_t)L_18) <= ((int32_t)L_19))) { goto IL_000a; } } { int32_t L_20 = V_0; return (int32_t)((~L_20)); } } // System.Void System.Collections.Generic.ArraySortHelper`1<UnityEngine.InputSystem.Utilities.InternedString>::SwapIfGreater(T[],System.Comparison`1<T>,System.Int32,System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_SwapIfGreater_m9763F41F9D77036F71DC91A07CACB3385ED81B6E_gshared (InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648* ___keys0, Comparison_1_t1983F36BDC7F5FA1724FDF6EB03F8980528557E6 * ___comparer1, int32_t ___a2, int32_t ___b3, const RuntimeMethod* method) { InternedString_tD1138602E8B7EA0F5B4851812B13C7E0551E25C8 V_0; memset((&V_0), 0, sizeof(V_0)); { int32_t L_0 = ___a2; int32_t L_1 = ___b3; if ((((int32_t)L_0) == ((int32_t)L_1))) { goto IL_0039; } } { Comparison_1_t1983F36BDC7F5FA1724FDF6EB03F8980528557E6 * L_2 = ___comparer1; InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648* L_3 = ___keys0; int32_t L_4 = ___a2; NullCheck(L_3); int32_t L_5 = L_4; InternedString_tD1138602E8B7EA0F5B4851812B13C7E0551E25C8 L_6 = (L_3)->GetAt(static_cast<il2cpp_array_size_t>(L_5)); InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648* L_7 = ___keys0; int32_t L_8 = ___b3; NullCheck(L_7); int32_t L_9 = L_8; InternedString_tD1138602E8B7EA0F5B4851812B13C7E0551E25C8 L_10 = (L_7)->GetAt(static_cast<il2cpp_array_size_t>(L_9)); NullCheck((Comparison_1_t1983F36BDC7F5FA1724FDF6EB03F8980528557E6 *)L_2); int32_t L_11; L_11 = (( int32_t (*) (Comparison_1_t1983F36BDC7F5FA1724FDF6EB03F8980528557E6 *, InternedString_tD1138602E8B7EA0F5B4851812B13C7E0551E25C8 , InternedString_tD1138602E8B7EA0F5B4851812B13C7E0551E25C8 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t1983F36BDC7F5FA1724FDF6EB03F8980528557E6 *)L_2, (InternedString_tD1138602E8B7EA0F5B4851812B13C7E0551E25C8 )L_6, (InternedString_tD1138602E8B7EA0F5B4851812B13C7E0551E25C8 )L_10, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_11) <= ((int32_t)0))) { goto IL_0039; } } { InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648* L_12 = ___keys0; int32_t L_13 = ___a2; NullCheck(L_12); int32_t L_14 = L_13; InternedString_tD1138602E8B7EA0F5B4851812B13C7E0551E25C8 L_15 = (L_12)->GetAt(static_cast<il2cpp_array_size_t>(L_14)); V_0 = (InternedString_tD1138602E8B7EA0F5B4851812B13C7E0551E25C8 )L_15; InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648* L_16 = ___keys0; int32_t L_17 = ___a2; InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648* L_18 = ___keys0; int32_t L_19 = ___b3; NullCheck(L_18); int32_t L_20 = L_19; InternedString_tD1138602E8B7EA0F5B4851812B13C7E0551E25C8 L_21 = (L_18)->GetAt(static_cast<il2cpp_array_size_t>(L_20)); NullCheck(L_16); (L_16)->SetAt(static_cast<il2cpp_array_size_t>(L_17), (InternedString_tD1138602E8B7EA0F5B4851812B13C7E0551E25C8 )L_21); InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648* L_22 = ___keys0; int32_t L_23 = ___b3; InternedString_tD1138602E8B7EA0F5B4851812B13C7E0551E25C8 L_24 = V_0; NullCheck(L_22); (L_22)->SetAt(static_cast<il2cpp_array_size_t>(L_23), (InternedString_tD1138602E8B7EA0F5B4851812B13C7E0551E25C8 )L_24); } IL_0039: { return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<UnityEngine.InputSystem.Utilities.InternedString>::Swap(T[],System.Int32,System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Swap_mBDA60F30815C93DD625D284414D6B452B718BB4C_gshared (InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648* ___a0, int32_t ___i1, int32_t ___j2, const RuntimeMethod* method) { InternedString_tD1138602E8B7EA0F5B4851812B13C7E0551E25C8 V_0; memset((&V_0), 0, sizeof(V_0)); { int32_t L_0 = ___i1; int32_t L_1 = ___j2; if ((((int32_t)L_0) == ((int32_t)L_1))) { goto IL_0022; } } { InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648* L_2 = ___a0; int32_t L_3 = ___i1; NullCheck(L_2); int32_t L_4 = L_3; InternedString_tD1138602E8B7EA0F5B4851812B13C7E0551E25C8 L_5 = (L_2)->GetAt(static_cast<il2cpp_array_size_t>(L_4)); V_0 = (InternedString_tD1138602E8B7EA0F5B4851812B13C7E0551E25C8 )L_5; InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648* L_6 = ___a0; int32_t L_7 = ___i1; InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648* L_8 = ___a0; int32_t L_9 = ___j2; NullCheck(L_8); int32_t L_10 = L_9; InternedString_tD1138602E8B7EA0F5B4851812B13C7E0551E25C8 L_11 = (L_8)->GetAt(static_cast<il2cpp_array_size_t>(L_10)); NullCheck(L_6); (L_6)->SetAt(static_cast<il2cpp_array_size_t>(L_7), (InternedString_tD1138602E8B7EA0F5B4851812B13C7E0551E25C8 )L_11); InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648* L_12 = ___a0; int32_t L_13 = ___j2; InternedString_tD1138602E8B7EA0F5B4851812B13C7E0551E25C8 L_14 = V_0; NullCheck(L_12); (L_12)->SetAt(static_cast<il2cpp_array_size_t>(L_13), (InternedString_tD1138602E8B7EA0F5B4851812B13C7E0551E25C8 )L_14); } IL_0022: { return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<UnityEngine.InputSystem.Utilities.InternedString>::IntrospectiveSort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_IntrospectiveSort_m51067A39A918F18F543F720908561D4040D50EBB_gshared (InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648* ___keys0, int32_t ___left1, int32_t ___length2, Comparison_1_t1983F36BDC7F5FA1724FDF6EB03F8980528557E6 * ___comparer3, const RuntimeMethod* method) { { int32_t L_0 = ___length2; if ((((int32_t)L_0) >= ((int32_t)2))) { goto IL_0005; } } { return; } IL_0005: { InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648* L_1 = ___keys0; int32_t L_2 = ___left1; int32_t L_3 = ___length2; int32_t L_4 = ___left1; InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648* L_5 = ___keys0; NullCheck(L_5); int32_t L_6; L_6 = IntrospectiveSortUtilities_FloorLog2_m05ECB6CAC7A23087D9EC2C2A4DDCFE12272C3872((int32_t)((int32_t)((int32_t)(((RuntimeArray*)L_5)->max_length))), /*hidden argument*/NULL); Comparison_1_t1983F36BDC7F5FA1724FDF6EB03F8980528557E6 * L_7 = ___comparer3; (( void (*) (InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648*, int32_t, int32_t, int32_t, Comparison_1_t1983F36BDC7F5FA1724FDF6EB03F8980528557E6 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)->methodPointer)((InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648*)L_1, (int32_t)L_2, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)L_4)), (int32_t)1)), (int32_t)((int32_t)il2cpp_codegen_multiply((int32_t)2, (int32_t)L_6)), (Comparison_1_t1983F36BDC7F5FA1724FDF6EB03F8980528557E6 *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)); return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<UnityEngine.InputSystem.Utilities.InternedString>::IntroSort(T[],System.Int32,System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_IntroSort_m56F73B75BE56FF708884113B9543F193F87508CC_gshared (InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648* ___keys0, int32_t ___lo1, int32_t ___hi2, int32_t ___depthLimit3, Comparison_1_t1983F36BDC7F5FA1724FDF6EB03F8980528557E6 * ___comparer4, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; { goto IL_0086; } IL_0005: { int32_t L_0 = ___hi2; int32_t L_1 = ___lo1; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_0, (int32_t)L_1)), (int32_t)1)); int32_t L_2 = V_0; if ((((int32_t)L_2) > ((int32_t)((int32_t)16)))) { goto IL_0056; } } { int32_t L_3 = V_0; if ((!(((uint32_t)L_3) == ((uint32_t)1)))) { goto IL_0015; } } { return; } IL_0015: { int32_t L_4 = V_0; if ((!(((uint32_t)L_4) == ((uint32_t)2)))) { goto IL_0024; } } { InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648* L_5 = ___keys0; Comparison_1_t1983F36BDC7F5FA1724FDF6EB03F8980528557E6 * L_6 = ___comparer4; int32_t L_7 = ___lo1; int32_t L_8 = ___hi2; (( void (*) (InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648*, Comparison_1_t1983F36BDC7F5FA1724FDF6EB03F8980528557E6 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648*)L_5, (Comparison_1_t1983F36BDC7F5FA1724FDF6EB03F8980528557E6 *)L_6, (int32_t)L_7, (int32_t)L_8, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); return; } IL_0024: { int32_t L_9 = V_0; if ((!(((uint32_t)L_9) == ((uint32_t)3)))) { goto IL_004b; } } { InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648* L_10 = ___keys0; Comparison_1_t1983F36BDC7F5FA1724FDF6EB03F8980528557E6 * L_11 = ___comparer4; int32_t L_12 = ___lo1; int32_t L_13 = ___hi2; (( void (*) (InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648*, Comparison_1_t1983F36BDC7F5FA1724FDF6EB03F8980528557E6 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648*)L_10, (Comparison_1_t1983F36BDC7F5FA1724FDF6EB03F8980528557E6 *)L_11, (int32_t)L_12, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_13, (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648* L_14 = ___keys0; Comparison_1_t1983F36BDC7F5FA1724FDF6EB03F8980528557E6 * L_15 = ___comparer4; int32_t L_16 = ___lo1; int32_t L_17 = ___hi2; (( void (*) (InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648*, Comparison_1_t1983F36BDC7F5FA1724FDF6EB03F8980528557E6 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648*)L_14, (Comparison_1_t1983F36BDC7F5FA1724FDF6EB03F8980528557E6 *)L_15, (int32_t)L_16, (int32_t)L_17, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648* L_18 = ___keys0; Comparison_1_t1983F36BDC7F5FA1724FDF6EB03F8980528557E6 * L_19 = ___comparer4; int32_t L_20 = ___hi2; int32_t L_21 = ___hi2; (( void (*) (InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648*, Comparison_1_t1983F36BDC7F5FA1724FDF6EB03F8980528557E6 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648*)L_18, (Comparison_1_t1983F36BDC7F5FA1724FDF6EB03F8980528557E6 *)L_19, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_20, (int32_t)1)), (int32_t)L_21, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); return; } IL_004b: { InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648* L_22 = ___keys0; int32_t L_23 = ___lo1; int32_t L_24 = ___hi2; Comparison_1_t1983F36BDC7F5FA1724FDF6EB03F8980528557E6 * L_25 = ___comparer4; (( void (*) (InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648*, int32_t, int32_t, Comparison_1_t1983F36BDC7F5FA1724FDF6EB03F8980528557E6 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 12)->methodPointer)((InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648*)L_22, (int32_t)L_23, (int32_t)L_24, (Comparison_1_t1983F36BDC7F5FA1724FDF6EB03F8980528557E6 *)L_25, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 12)); return; } IL_0056: { int32_t L_26 = ___depthLimit3; if (L_26) { goto IL_0064; } } { InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648* L_27 = ___keys0; int32_t L_28 = ___lo1; int32_t L_29 = ___hi2; Comparison_1_t1983F36BDC7F5FA1724FDF6EB03F8980528557E6 * L_30 = ___comparer4; (( void (*) (InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648*, int32_t, int32_t, Comparison_1_t1983F36BDC7F5FA1724FDF6EB03F8980528557E6 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 13)->methodPointer)((InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648*)L_27, (int32_t)L_28, (int32_t)L_29, (Comparison_1_t1983F36BDC7F5FA1724FDF6EB03F8980528557E6 *)L_30, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 13)); return; } IL_0064: { int32_t L_31 = ___depthLimit3; ___depthLimit3 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_31, (int32_t)1)); InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648* L_32 = ___keys0; int32_t L_33 = ___lo1; int32_t L_34 = ___hi2; Comparison_1_t1983F36BDC7F5FA1724FDF6EB03F8980528557E6 * L_35 = ___comparer4; int32_t L_36; L_36 = (( int32_t (*) (InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648*, int32_t, int32_t, Comparison_1_t1983F36BDC7F5FA1724FDF6EB03F8980528557E6 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 14)->methodPointer)((InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648*)L_32, (int32_t)L_33, (int32_t)L_34, (Comparison_1_t1983F36BDC7F5FA1724FDF6EB03F8980528557E6 *)L_35, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 14)); V_1 = (int32_t)L_36; InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648* L_37 = ___keys0; int32_t L_38 = V_1; int32_t L_39 = ___hi2; int32_t L_40 = ___depthLimit3; Comparison_1_t1983F36BDC7F5FA1724FDF6EB03F8980528557E6 * L_41 = ___comparer4; (( void (*) (InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648*, int32_t, int32_t, int32_t, Comparison_1_t1983F36BDC7F5FA1724FDF6EB03F8980528557E6 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)->methodPointer)((InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648*)L_37, (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_38, (int32_t)1)), (int32_t)L_39, (int32_t)L_40, (Comparison_1_t1983F36BDC7F5FA1724FDF6EB03F8980528557E6 *)L_41, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)); int32_t L_42 = V_1; ___hi2 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_42, (int32_t)1)); } IL_0086: { int32_t L_43 = ___hi2; int32_t L_44 = ___lo1; if ((((int32_t)L_43) > ((int32_t)L_44))) { goto IL_0005; } } { return; } } // System.Int32 System.Collections.Generic.ArraySortHelper`1<UnityEngine.InputSystem.Utilities.InternedString>::PickPivotAndPartition(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t ArraySortHelper_1_PickPivotAndPartition_m2BBB2F6C9FAC8FE27FF56F8083596A4F63F8AFFE_gshared (InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648* ___keys0, int32_t ___lo1, int32_t ___hi2, Comparison_1_t1983F36BDC7F5FA1724FDF6EB03F8980528557E6 * ___comparer3, const RuntimeMethod* method) { int32_t V_0 = 0; InternedString_tD1138602E8B7EA0F5B4851812B13C7E0551E25C8 V_1; memset((&V_1), 0, sizeof(V_1)); int32_t V_2 = 0; int32_t V_3 = 0; { int32_t L_0 = ___lo1; int32_t L_1 = ___hi2; int32_t L_2 = ___lo1; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_0, (int32_t)((int32_t)((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_1, (int32_t)L_2))/(int32_t)2)))); InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648* L_3 = ___keys0; Comparison_1_t1983F36BDC7F5FA1724FDF6EB03F8980528557E6 * L_4 = ___comparer3; int32_t L_5 = ___lo1; int32_t L_6 = V_0; (( void (*) (InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648*, Comparison_1_t1983F36BDC7F5FA1724FDF6EB03F8980528557E6 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648*)L_3, (Comparison_1_t1983F36BDC7F5FA1724FDF6EB03F8980528557E6 *)L_4, (int32_t)L_5, (int32_t)L_6, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648* L_7 = ___keys0; Comparison_1_t1983F36BDC7F5FA1724FDF6EB03F8980528557E6 * L_8 = ___comparer3; int32_t L_9 = ___lo1; int32_t L_10 = ___hi2; (( void (*) (InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648*, Comparison_1_t1983F36BDC7F5FA1724FDF6EB03F8980528557E6 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648*)L_7, (Comparison_1_t1983F36BDC7F5FA1724FDF6EB03F8980528557E6 *)L_8, (int32_t)L_9, (int32_t)L_10, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648* L_11 = ___keys0; Comparison_1_t1983F36BDC7F5FA1724FDF6EB03F8980528557E6 * L_12 = ___comparer3; int32_t L_13 = V_0; int32_t L_14 = ___hi2; (( void (*) (InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648*, Comparison_1_t1983F36BDC7F5FA1724FDF6EB03F8980528557E6 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648*)L_11, (Comparison_1_t1983F36BDC7F5FA1724FDF6EB03F8980528557E6 *)L_12, (int32_t)L_13, (int32_t)L_14, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648* L_15 = ___keys0; int32_t L_16 = V_0; NullCheck(L_15); int32_t L_17 = L_16; InternedString_tD1138602E8B7EA0F5B4851812B13C7E0551E25C8 L_18 = (L_15)->GetAt(static_cast<il2cpp_array_size_t>(L_17)); V_1 = (InternedString_tD1138602E8B7EA0F5B4851812B13C7E0551E25C8 )L_18; InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648* L_19 = ___keys0; int32_t L_20 = V_0; int32_t L_21 = ___hi2; (( void (*) (InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648*)L_19, (int32_t)L_20, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_21, (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); int32_t L_22 = ___lo1; V_2 = (int32_t)L_22; int32_t L_23 = ___hi2; V_3 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_23, (int32_t)1)); goto IL_0073; } IL_003d: { Comparison_1_t1983F36BDC7F5FA1724FDF6EB03F8980528557E6 * L_24 = ___comparer3; InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648* L_25 = ___keys0; int32_t L_26 = V_2; int32_t L_27 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_26, (int32_t)1)); V_2 = (int32_t)L_27; NullCheck(L_25); int32_t L_28 = L_27; InternedString_tD1138602E8B7EA0F5B4851812B13C7E0551E25C8 L_29 = (L_25)->GetAt(static_cast<il2cpp_array_size_t>(L_28)); InternedString_tD1138602E8B7EA0F5B4851812B13C7E0551E25C8 L_30 = V_1; NullCheck((Comparison_1_t1983F36BDC7F5FA1724FDF6EB03F8980528557E6 *)L_24); int32_t L_31; L_31 = (( int32_t (*) (Comparison_1_t1983F36BDC7F5FA1724FDF6EB03F8980528557E6 *, InternedString_tD1138602E8B7EA0F5B4851812B13C7E0551E25C8 , InternedString_tD1138602E8B7EA0F5B4851812B13C7E0551E25C8 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t1983F36BDC7F5FA1724FDF6EB03F8980528557E6 *)L_24, (InternedString_tD1138602E8B7EA0F5B4851812B13C7E0551E25C8 )L_29, (InternedString_tD1138602E8B7EA0F5B4851812B13C7E0551E25C8 )L_30, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_31) < ((int32_t)0))) { goto IL_003d; } } IL_0052: { Comparison_1_t1983F36BDC7F5FA1724FDF6EB03F8980528557E6 * L_32 = ___comparer3; InternedString_tD1138602E8B7EA0F5B4851812B13C7E0551E25C8 L_33 = V_1; InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648* L_34 = ___keys0; int32_t L_35 = V_3; int32_t L_36 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_35, (int32_t)1)); V_3 = (int32_t)L_36; NullCheck(L_34); int32_t L_37 = L_36; InternedString_tD1138602E8B7EA0F5B4851812B13C7E0551E25C8 L_38 = (L_34)->GetAt(static_cast<il2cpp_array_size_t>(L_37)); NullCheck((Comparison_1_t1983F36BDC7F5FA1724FDF6EB03F8980528557E6 *)L_32); int32_t L_39; L_39 = (( int32_t (*) (Comparison_1_t1983F36BDC7F5FA1724FDF6EB03F8980528557E6 *, InternedString_tD1138602E8B7EA0F5B4851812B13C7E0551E25C8 , InternedString_tD1138602E8B7EA0F5B4851812B13C7E0551E25C8 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t1983F36BDC7F5FA1724FDF6EB03F8980528557E6 *)L_32, (InternedString_tD1138602E8B7EA0F5B4851812B13C7E0551E25C8 )L_33, (InternedString_tD1138602E8B7EA0F5B4851812B13C7E0551E25C8 )L_38, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_39) < ((int32_t)0))) { goto IL_0052; } } { int32_t L_40 = V_2; int32_t L_41 = V_3; if ((((int32_t)L_40) >= ((int32_t)L_41))) { goto IL_0077; } } { InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648* L_42 = ___keys0; int32_t L_43 = V_2; int32_t L_44 = V_3; (( void (*) (InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648*)L_42, (int32_t)L_43, (int32_t)L_44, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); } IL_0073: { int32_t L_45 = V_2; int32_t L_46 = V_3; if ((((int32_t)L_45) < ((int32_t)L_46))) { goto IL_003d; } } IL_0077: { InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648* L_47 = ___keys0; int32_t L_48 = V_2; int32_t L_49 = ___hi2; (( void (*) (InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648*)L_47, (int32_t)L_48, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_49, (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); int32_t L_50 = V_2; return (int32_t)L_50; } } // System.Void System.Collections.Generic.ArraySortHelper`1<UnityEngine.InputSystem.Utilities.InternedString>::Heapsort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Heapsort_m839624BDCAAC2813FC8117C85EBD227B2B877DA5_gshared (InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648* ___keys0, int32_t ___lo1, int32_t ___hi2, Comparison_1_t1983F36BDC7F5FA1724FDF6EB03F8980528557E6 * ___comparer3, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; int32_t V_2 = 0; { int32_t L_0 = ___hi2; int32_t L_1 = ___lo1; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_0, (int32_t)L_1)), (int32_t)1)); int32_t L_2 = V_0; V_1 = (int32_t)((int32_t)((int32_t)L_2/(int32_t)2)); goto IL_001a; } IL_000c: { InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648* L_3 = ___keys0; int32_t L_4 = V_1; int32_t L_5 = V_0; int32_t L_6 = ___lo1; Comparison_1_t1983F36BDC7F5FA1724FDF6EB03F8980528557E6 * L_7 = ___comparer3; (( void (*) (InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648*, int32_t, int32_t, int32_t, Comparison_1_t1983F36BDC7F5FA1724FDF6EB03F8980528557E6 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)->methodPointer)((InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648*)L_3, (int32_t)L_4, (int32_t)L_5, (int32_t)L_6, (Comparison_1_t1983F36BDC7F5FA1724FDF6EB03F8980528557E6 *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)); int32_t L_8 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_8, (int32_t)1)); } IL_001a: { int32_t L_9 = V_1; if ((((int32_t)L_9) >= ((int32_t)1))) { goto IL_000c; } } { int32_t L_10 = V_0; V_2 = (int32_t)L_10; goto IL_003e; } IL_0022: { InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648* L_11 = ___keys0; int32_t L_12 = ___lo1; int32_t L_13 = ___lo1; int32_t L_14 = V_2; (( void (*) (InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648*)L_11, (int32_t)L_12, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_13, (int32_t)L_14)), (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648* L_15 = ___keys0; int32_t L_16 = V_2; int32_t L_17 = ___lo1; Comparison_1_t1983F36BDC7F5FA1724FDF6EB03F8980528557E6 * L_18 = ___comparer3; (( void (*) (InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648*, int32_t, int32_t, int32_t, Comparison_1_t1983F36BDC7F5FA1724FDF6EB03F8980528557E6 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)->methodPointer)((InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648*)L_15, (int32_t)1, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_16, (int32_t)1)), (int32_t)L_17, (Comparison_1_t1983F36BDC7F5FA1724FDF6EB03F8980528557E6 *)L_18, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)); int32_t L_19 = V_2; V_2 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_19, (int32_t)1)); } IL_003e: { int32_t L_20 = V_2; if ((((int32_t)L_20) > ((int32_t)1))) { goto IL_0022; } } { return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<UnityEngine.InputSystem.Utilities.InternedString>::DownHeap(T[],System.Int32,System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_DownHeap_m19D1F3E53C68D946E87F32B2688CFF4752FC881F_gshared (InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648* ___keys0, int32_t ___i1, int32_t ___n2, int32_t ___lo3, Comparison_1_t1983F36BDC7F5FA1724FDF6EB03F8980528557E6 * ___comparer4, const RuntimeMethod* method) { InternedString_tD1138602E8B7EA0F5B4851812B13C7E0551E25C8 V_0; memset((&V_0), 0, sizeof(V_0)); int32_t V_1 = 0; { InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648* L_0 = ___keys0; int32_t L_1 = ___lo3; int32_t L_2 = ___i1; NullCheck(L_0); int32_t L_3 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_1, (int32_t)L_2)), (int32_t)1)); InternedString_tD1138602E8B7EA0F5B4851812B13C7E0551E25C8 L_4 = (L_0)->GetAt(static_cast<il2cpp_array_size_t>(L_3)); V_0 = (InternedString_tD1138602E8B7EA0F5B4851812B13C7E0551E25C8 )L_4; goto IL_0067; } IL_000e: { int32_t L_5 = ___i1; V_1 = (int32_t)((int32_t)il2cpp_codegen_multiply((int32_t)2, (int32_t)L_5)); int32_t L_6 = V_1; int32_t L_7 = ___n2; if ((((int32_t)L_6) >= ((int32_t)L_7))) { goto IL_0038; } } { Comparison_1_t1983F36BDC7F5FA1724FDF6EB03F8980528557E6 * L_8 = ___comparer4; InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648* L_9 = ___keys0; int32_t L_10 = ___lo3; int32_t L_11 = V_1; NullCheck(L_9); int32_t L_12 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_10, (int32_t)L_11)), (int32_t)1)); InternedString_tD1138602E8B7EA0F5B4851812B13C7E0551E25C8 L_13 = (L_9)->GetAt(static_cast<il2cpp_array_size_t>(L_12)); InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648* L_14 = ___keys0; int32_t L_15 = ___lo3; int32_t L_16 = V_1; NullCheck(L_14); int32_t L_17 = ((int32_t)il2cpp_codegen_add((int32_t)L_15, (int32_t)L_16)); InternedString_tD1138602E8B7EA0F5B4851812B13C7E0551E25C8 L_18 = (L_14)->GetAt(static_cast<il2cpp_array_size_t>(L_17)); NullCheck((Comparison_1_t1983F36BDC7F5FA1724FDF6EB03F8980528557E6 *)L_8); int32_t L_19; L_19 = (( int32_t (*) (Comparison_1_t1983F36BDC7F5FA1724FDF6EB03F8980528557E6 *, InternedString_tD1138602E8B7EA0F5B4851812B13C7E0551E25C8 , InternedString_tD1138602E8B7EA0F5B4851812B13C7E0551E25C8 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t1983F36BDC7F5FA1724FDF6EB03F8980528557E6 *)L_8, (InternedString_tD1138602E8B7EA0F5B4851812B13C7E0551E25C8 )L_13, (InternedString_tD1138602E8B7EA0F5B4851812B13C7E0551E25C8 )L_18, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_19) >= ((int32_t)0))) { goto IL_0038; } } { int32_t L_20 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_20, (int32_t)1)); } IL_0038: { Comparison_1_t1983F36BDC7F5FA1724FDF6EB03F8980528557E6 * L_21 = ___comparer4; InternedString_tD1138602E8B7EA0F5B4851812B13C7E0551E25C8 L_22 = V_0; InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648* L_23 = ___keys0; int32_t L_24 = ___lo3; int32_t L_25 = V_1; NullCheck(L_23); int32_t L_26 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_24, (int32_t)L_25)), (int32_t)1)); InternedString_tD1138602E8B7EA0F5B4851812B13C7E0551E25C8 L_27 = (L_23)->GetAt(static_cast<il2cpp_array_size_t>(L_26)); NullCheck((Comparison_1_t1983F36BDC7F5FA1724FDF6EB03F8980528557E6 *)L_21); int32_t L_28; L_28 = (( int32_t (*) (Comparison_1_t1983F36BDC7F5FA1724FDF6EB03F8980528557E6 *, InternedString_tD1138602E8B7EA0F5B4851812B13C7E0551E25C8 , InternedString_tD1138602E8B7EA0F5B4851812B13C7E0551E25C8 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t1983F36BDC7F5FA1724FDF6EB03F8980528557E6 *)L_21, (InternedString_tD1138602E8B7EA0F5B4851812B13C7E0551E25C8 )L_22, (InternedString_tD1138602E8B7EA0F5B4851812B13C7E0551E25C8 )L_27, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_28) >= ((int32_t)0))) { goto IL_006d; } } { InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648* L_29 = ___keys0; int32_t L_30 = ___lo3; int32_t L_31 = ___i1; InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648* L_32 = ___keys0; int32_t L_33 = ___lo3; int32_t L_34 = V_1; NullCheck(L_32); int32_t L_35 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_33, (int32_t)L_34)), (int32_t)1)); InternedString_tD1138602E8B7EA0F5B4851812B13C7E0551E25C8 L_36 = (L_32)->GetAt(static_cast<il2cpp_array_size_t>(L_35)); NullCheck(L_29); (L_29)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_30, (int32_t)L_31)), (int32_t)1))), (InternedString_tD1138602E8B7EA0F5B4851812B13C7E0551E25C8 )L_36); int32_t L_37 = V_1; ___i1 = (int32_t)L_37; } IL_0067: { int32_t L_38 = ___i1; int32_t L_39 = ___n2; if ((((int32_t)L_38) <= ((int32_t)((int32_t)((int32_t)L_39/(int32_t)2))))) { goto IL_000e; } } IL_006d: { InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648* L_40 = ___keys0; int32_t L_41 = ___lo3; int32_t L_42 = ___i1; InternedString_tD1138602E8B7EA0F5B4851812B13C7E0551E25C8 L_43 = V_0; NullCheck(L_40); (L_40)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_41, (int32_t)L_42)), (int32_t)1))), (InternedString_tD1138602E8B7EA0F5B4851812B13C7E0551E25C8 )L_43); return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<UnityEngine.InputSystem.Utilities.InternedString>::InsertionSort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_InsertionSort_mAD3A6D34BE42921FB7CA676C76E1144DCB386F18_gshared (InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648* ___keys0, int32_t ___lo1, int32_t ___hi2, Comparison_1_t1983F36BDC7F5FA1724FDF6EB03F8980528557E6 * ___comparer3, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; InternedString_tD1138602E8B7EA0F5B4851812B13C7E0551E25C8 V_2; memset((&V_2), 0, sizeof(V_2)); { int32_t L_0 = ___lo1; V_0 = (int32_t)L_0; goto IL_0049; } IL_0004: { int32_t L_1 = V_0; V_1 = (int32_t)L_1; InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648* L_2 = ___keys0; int32_t L_3 = V_0; NullCheck(L_2); int32_t L_4 = ((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)1)); InternedString_tD1138602E8B7EA0F5B4851812B13C7E0551E25C8 L_5 = (L_2)->GetAt(static_cast<il2cpp_array_size_t>(L_4)); V_2 = (InternedString_tD1138602E8B7EA0F5B4851812B13C7E0551E25C8 )L_5; goto IL_0026; } IL_0012: { InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648* L_6 = ___keys0; int32_t L_7 = V_1; InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648* L_8 = ___keys0; int32_t L_9 = V_1; NullCheck(L_8); int32_t L_10 = L_9; InternedString_tD1138602E8B7EA0F5B4851812B13C7E0551E25C8 L_11 = (L_8)->GetAt(static_cast<il2cpp_array_size_t>(L_10)); NullCheck(L_6); (L_6)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add((int32_t)L_7, (int32_t)1))), (InternedString_tD1138602E8B7EA0F5B4851812B13C7E0551E25C8 )L_11); int32_t L_12 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_12, (int32_t)1)); } IL_0026: { int32_t L_13 = V_1; int32_t L_14 = ___lo1; if ((((int32_t)L_13) < ((int32_t)L_14))) { goto IL_003b; } } { Comparison_1_t1983F36BDC7F5FA1724FDF6EB03F8980528557E6 * L_15 = ___comparer3; InternedString_tD1138602E8B7EA0F5B4851812B13C7E0551E25C8 L_16 = V_2; InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648* L_17 = ___keys0; int32_t L_18 = V_1; NullCheck(L_17); int32_t L_19 = L_18; InternedString_tD1138602E8B7EA0F5B4851812B13C7E0551E25C8 L_20 = (L_17)->GetAt(static_cast<il2cpp_array_size_t>(L_19)); NullCheck((Comparison_1_t1983F36BDC7F5FA1724FDF6EB03F8980528557E6 *)L_15); int32_t L_21; L_21 = (( int32_t (*) (Comparison_1_t1983F36BDC7F5FA1724FDF6EB03F8980528557E6 *, InternedString_tD1138602E8B7EA0F5B4851812B13C7E0551E25C8 , InternedString_tD1138602E8B7EA0F5B4851812B13C7E0551E25C8 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t1983F36BDC7F5FA1724FDF6EB03F8980528557E6 *)L_15, (InternedString_tD1138602E8B7EA0F5B4851812B13C7E0551E25C8 )L_16, (InternedString_tD1138602E8B7EA0F5B4851812B13C7E0551E25C8 )L_20, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_21) < ((int32_t)0))) { goto IL_0012; } } IL_003b: { InternedStringU5BU5D_t1B3BD9ED90129E67B58E1681B1944E72F8E0E648* L_22 = ___keys0; int32_t L_23 = V_1; InternedString_tD1138602E8B7EA0F5B4851812B13C7E0551E25C8 L_24 = V_2; NullCheck(L_22); (L_22)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add((int32_t)L_23, (int32_t)1))), (InternedString_tD1138602E8B7EA0F5B4851812B13C7E0551E25C8 )L_24); int32_t L_25 = V_0; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_25, (int32_t)1)); } IL_0049: { int32_t L_26 = V_0; int32_t L_27 = ___hi2; if ((((int32_t)L_26) < ((int32_t)L_27))) { goto IL_0004; } } { return; } } #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Void System.Collections.Generic.ArraySortHelper`1<System.Linq.Expressions.Interpreter.InterpretedFrameInfo>::Sort(T[],System.Int32,System.Int32,System.Collections.Generic.IComparer`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Sort_m26FEF1D5CA711C9113952BBE8C9971E42B8856A6_gshared (InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283* ___keys0, int32_t ___index1, int32_t ___length2, RuntimeObject* ___comparer3, const RuntimeMethod* method) { Exception_t * V_0 = NULL; il2cpp::utils::ExceptionSupportStack<RuntimeObject*, 1> __active_exceptions; il2cpp::utils::ExceptionSupportStack<int32_t, 2> __leave_targets; IL_0000: try { // begin try (depth: 1) { RuntimeObject* L_0 = ___comparer3; if (L_0) { goto IL_000a; } } IL_0003: { Comparer_1_t263EB54CA1238067D867DA25B24F5354423883A1 * L_1; L_1 = (( Comparer_1_t263EB54CA1238067D867DA25B24F5354423883A1 * (*) (const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)->methodPointer)(/*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)); ___comparer3 = (RuntimeObject*)L_1; } IL_000a: { InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283* L_2 = ___keys0; int32_t L_3 = ___index1; int32_t L_4 = ___length2; RuntimeObject* L_5 = ___comparer3; RuntimeObject* L_6 = (RuntimeObject*)L_5; Comparison_1_t42880657979A7A068EDB75370336E9CAC5E0F734 * L_7 = (Comparison_1_t42880657979A7A068EDB75370336E9CAC5E0F734 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 4)); (( void (*) (Comparison_1_t42880657979A7A068EDB75370336E9CAC5E0F734 *, RuntimeObject *, intptr_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 5)->methodPointer)(L_7, (RuntimeObject *)L_6, (intptr_t)((intptr_t)GetInterfaceMethodInfo(L_6, 0, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 3))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 5)); (( void (*) (InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283*, int32_t, int32_t, Comparison_1_t42880657979A7A068EDB75370336E9CAC5E0F734 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)->methodPointer)((InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283*)L_2, (int32_t)L_3, (int32_t)L_4, (Comparison_1_t42880657979A7A068EDB75370336E9CAC5E0F734 *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)); goto IL_0037; } } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&IndexOutOfRangeException_tDC9EF7A0346CE39E54DA1083F07BE6DFC3CE2EDD_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_0021; } if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&Exception_t_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_002a; } throw e; } CATCH_0021: { // begin catch(System.IndexOutOfRangeException) RuntimeObject* L_8 = ___comparer3; IntrospectiveSortUtilities_ThrowOrIgnoreBadComparer_mE23A8103696FA67F874E7DA86625BB3921DB801F((RuntimeObject *)L_8, /*hidden argument*/NULL); IL2CPP_POP_ACTIVE_EXCEPTION(); goto IL_0037; } // end catch (depth: 1) CATCH_002a: { // begin catch(System.Exception) V_0 = (Exception_t *)((Exception_t *)IL2CPP_GET_ACTIVE_EXCEPTION(Exception_t *)); Exception_t * L_9 = V_0; InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB * L_10 = (InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB *)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB_il2cpp_TypeInfo_var))); InvalidOperationException__ctor_m4A65916B1316FBF45ECDF1FF7FAC9E3CA30C112C(L_10, (String_t*)((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral6EDB6C049ED9617FA335A262A29BF30B15221AEA)), (Exception_t *)L_9, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_10, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArraySortHelper_1_Sort_m26FEF1D5CA711C9113952BBE8C9971E42B8856A6_RuntimeMethod_var))); } // end catch (depth: 1) IL_0037: { return; } } // System.Int32 System.Collections.Generic.ArraySortHelper`1<System.Linq.Expressions.Interpreter.InterpretedFrameInfo>::BinarySearch(T[],System.Int32,System.Int32,T,System.Collections.Generic.IComparer`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t ArraySortHelper_1_BinarySearch_mFE7E63524DB8EEDEABBCBBDB7AA3B9DCDBF78052_gshared (InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283* ___array0, int32_t ___index1, int32_t ___length2, InterpretedFrameInfo_tC2C153C83030E30AC9BEC762C0B549D6340A1DF7 ___value3, RuntimeObject* ___comparer4, const RuntimeMethod* method) { int32_t V_0 = 0; Exception_t * V_1 = NULL; il2cpp::utils::ExceptionSupportStack<RuntimeObject*, 1> __active_exceptions; il2cpp::utils::ExceptionSupportStack<int32_t, 1> __leave_targets; IL_0000: try { // begin try (depth: 1) { RuntimeObject* L_0 = ___comparer4; if (L_0) { goto IL_000b; } } IL_0004: { Comparer_1_t263EB54CA1238067D867DA25B24F5354423883A1 * L_1; L_1 = (( Comparer_1_t263EB54CA1238067D867DA25B24F5354423883A1 * (*) (const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)->methodPointer)(/*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 0)); ___comparer4 = (RuntimeObject*)L_1; } IL_000b: { InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283* L_2 = ___array0; int32_t L_3 = ___index1; int32_t L_4 = ___length2; InterpretedFrameInfo_tC2C153C83030E30AC9BEC762C0B549D6340A1DF7 L_5 = ___value3; RuntimeObject* L_6 = ___comparer4; int32_t L_7; L_7 = (( int32_t (*) (InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283*, int32_t, int32_t, InterpretedFrameInfo_tC2C153C83030E30AC9BEC762C0B549D6340A1DF7 , RuntimeObject*, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 8)->methodPointer)((InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283*)L_2, (int32_t)L_3, (int32_t)L_4, (InterpretedFrameInfo_tC2C153C83030E30AC9BEC762C0B549D6340A1DF7 )L_5, (RuntimeObject*)L_6, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 8)); V_0 = (int32_t)L_7; goto IL_0026; } } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&Exception_t_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_0019; } throw e; } CATCH_0019: { // begin catch(System.Exception) V_1 = (Exception_t *)((Exception_t *)IL2CPP_GET_ACTIVE_EXCEPTION(Exception_t *)); Exception_t * L_8 = V_1; InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB * L_9 = (InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB *)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB_il2cpp_TypeInfo_var))); InvalidOperationException__ctor_m4A65916B1316FBF45ECDF1FF7FAC9E3CA30C112C(L_9, (String_t*)((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral6EDB6C049ED9617FA335A262A29BF30B15221AEA)), (Exception_t *)L_8, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_9, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArraySortHelper_1_BinarySearch_mFE7E63524DB8EEDEABBCBBDB7AA3B9DCDBF78052_RuntimeMethod_var))); } // end catch (depth: 1) IL_0026: { int32_t L_10 = V_0; return (int32_t)L_10; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Linq.Expressions.Interpreter.InterpretedFrameInfo>::Sort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Sort_m473BD482C625357381F628E80068F2752563CEEE_gshared (InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283* ___keys0, int32_t ___index1, int32_t ___length2, Comparison_1_t42880657979A7A068EDB75370336E9CAC5E0F734 * ___comparer3, const RuntimeMethod* method) { Exception_t * V_0 = NULL; il2cpp::utils::ExceptionSupportStack<RuntimeObject*, 1> __active_exceptions; il2cpp::utils::ExceptionSupportStack<int32_t, 2> __leave_targets; IL_0000: try { // begin try (depth: 1) InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283* L_0 = ___keys0; int32_t L_1 = ___index1; int32_t L_2 = ___length2; Comparison_1_t42880657979A7A068EDB75370336E9CAC5E0F734 * L_3 = ___comparer3; (( void (*) (InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283*, int32_t, int32_t, Comparison_1_t42880657979A7A068EDB75370336E9CAC5E0F734 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)->methodPointer)((InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283*)L_0, (int32_t)L_1, (int32_t)L_2, (Comparison_1_t42880657979A7A068EDB75370336E9CAC5E0F734 *)L_3, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 6)); goto IL_0021; } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&IndexOutOfRangeException_tDC9EF7A0346CE39E54DA1083F07BE6DFC3CE2EDD_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_000b; } if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&Exception_t_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex))) { IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex); goto CATCH_0014; } throw e; } CATCH_000b: { // begin catch(System.IndexOutOfRangeException) Comparison_1_t42880657979A7A068EDB75370336E9CAC5E0F734 * L_4 = ___comparer3; IntrospectiveSortUtilities_ThrowOrIgnoreBadComparer_mE23A8103696FA67F874E7DA86625BB3921DB801F((RuntimeObject *)L_4, /*hidden argument*/NULL); IL2CPP_POP_ACTIVE_EXCEPTION(); goto IL_0021; } // end catch (depth: 1) CATCH_0014: { // begin catch(System.Exception) V_0 = (Exception_t *)((Exception_t *)IL2CPP_GET_ACTIVE_EXCEPTION(Exception_t *)); Exception_t * L_5 = V_0; InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB * L_6 = (InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB *)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&InvalidOperationException_t10D3EE59AD28EC641ACEE05BCA4271A527E5ECAB_il2cpp_TypeInfo_var))); InvalidOperationException__ctor_m4A65916B1316FBF45ECDF1FF7FAC9E3CA30C112C(L_6, (String_t*)((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral6EDB6C049ED9617FA335A262A29BF30B15221AEA)), (Exception_t *)L_5, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_6, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArraySortHelper_1_Sort_m473BD482C625357381F628E80068F2752563CEEE_RuntimeMethod_var))); } // end catch (depth: 1) IL_0021: { return; } } // System.Int32 System.Collections.Generic.ArraySortHelper`1<System.Linq.Expressions.Interpreter.InterpretedFrameInfo>::InternalBinarySearch(T[],System.Int32,System.Int32,T,System.Collections.Generic.IComparer`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t ArraySortHelper_1_InternalBinarySearch_m02DFD54F24C4CD68816568A71632121F8EF5C066_gshared (InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283* ___array0, int32_t ___index1, int32_t ___length2, InterpretedFrameInfo_tC2C153C83030E30AC9BEC762C0B549D6340A1DF7 ___value3, RuntimeObject* ___comparer4, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; int32_t V_2 = 0; int32_t V_3 = 0; { int32_t L_0 = ___index1; V_0 = (int32_t)L_0; int32_t L_1 = ___index1; int32_t L_2 = ___length2; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_1, (int32_t)L_2)), (int32_t)1)); goto IL_0035; } IL_000a: { int32_t L_3 = V_0; int32_t L_4 = V_1; int32_t L_5 = V_0; V_2 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)((int32_t)((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_4, (int32_t)L_5))>>(int32_t)1)))); RuntimeObject* L_6 = ___comparer4; InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283* L_7 = ___array0; int32_t L_8 = V_2; NullCheck(L_7); int32_t L_9 = L_8; InterpretedFrameInfo_tC2C153C83030E30AC9BEC762C0B549D6340A1DF7 L_10 = (L_7)->GetAt(static_cast<il2cpp_array_size_t>(L_9)); InterpretedFrameInfo_tC2C153C83030E30AC9BEC762C0B549D6340A1DF7 L_11 = ___value3; NullCheck((RuntimeObject*)L_6); int32_t L_12; L_12 = InterfaceFuncInvoker2< int32_t, InterpretedFrameInfo_tC2C153C83030E30AC9BEC762C0B549D6340A1DF7 , InterpretedFrameInfo_tC2C153C83030E30AC9BEC762C0B549D6340A1DF7 >::Invoke(0 /* System.Int32 System.Collections.Generic.IComparer`1<System.Linq.Expressions.Interpreter.InterpretedFrameInfo>::Compare(T,T) */, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->klass)->rgctx_data, 3), (RuntimeObject*)L_6, (InterpretedFrameInfo_tC2C153C83030E30AC9BEC762C0B549D6340A1DF7 )L_10, (InterpretedFrameInfo_tC2C153C83030E30AC9BEC762C0B549D6340A1DF7 )L_11); V_3 = (int32_t)L_12; int32_t L_13 = V_3; if (L_13) { goto IL_0027; } } { int32_t L_14 = V_2; return (int32_t)L_14; } IL_0027: { int32_t L_15 = V_3; if ((((int32_t)L_15) >= ((int32_t)0))) { goto IL_0031; } } { int32_t L_16 = V_2; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_16, (int32_t)1)); goto IL_0035; } IL_0031: { int32_t L_17 = V_2; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_17, (int32_t)1)); } IL_0035: { int32_t L_18 = V_0; int32_t L_19 = V_1; if ((((int32_t)L_18) <= ((int32_t)L_19))) { goto IL_000a; } } { int32_t L_20 = V_0; return (int32_t)((~L_20)); } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Linq.Expressions.Interpreter.InterpretedFrameInfo>::SwapIfGreater(T[],System.Comparison`1<T>,System.Int32,System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_SwapIfGreater_m829E0CD766A7B478306E189F0A0E44B928C5955A_gshared (InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283* ___keys0, Comparison_1_t42880657979A7A068EDB75370336E9CAC5E0F734 * ___comparer1, int32_t ___a2, int32_t ___b3, const RuntimeMethod* method) { InterpretedFrameInfo_tC2C153C83030E30AC9BEC762C0B549D6340A1DF7 V_0; memset((&V_0), 0, sizeof(V_0)); { int32_t L_0 = ___a2; int32_t L_1 = ___b3; if ((((int32_t)L_0) == ((int32_t)L_1))) { goto IL_0039; } } { Comparison_1_t42880657979A7A068EDB75370336E9CAC5E0F734 * L_2 = ___comparer1; InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283* L_3 = ___keys0; int32_t L_4 = ___a2; NullCheck(L_3); int32_t L_5 = L_4; InterpretedFrameInfo_tC2C153C83030E30AC9BEC762C0B549D6340A1DF7 L_6 = (L_3)->GetAt(static_cast<il2cpp_array_size_t>(L_5)); InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283* L_7 = ___keys0; int32_t L_8 = ___b3; NullCheck(L_7); int32_t L_9 = L_8; InterpretedFrameInfo_tC2C153C83030E30AC9BEC762C0B549D6340A1DF7 L_10 = (L_7)->GetAt(static_cast<il2cpp_array_size_t>(L_9)); NullCheck((Comparison_1_t42880657979A7A068EDB75370336E9CAC5E0F734 *)L_2); int32_t L_11; L_11 = (( int32_t (*) (Comparison_1_t42880657979A7A068EDB75370336E9CAC5E0F734 *, InterpretedFrameInfo_tC2C153C83030E30AC9BEC762C0B549D6340A1DF7 , InterpretedFrameInfo_tC2C153C83030E30AC9BEC762C0B549D6340A1DF7 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t42880657979A7A068EDB75370336E9CAC5E0F734 *)L_2, (InterpretedFrameInfo_tC2C153C83030E30AC9BEC762C0B549D6340A1DF7 )L_6, (InterpretedFrameInfo_tC2C153C83030E30AC9BEC762C0B549D6340A1DF7 )L_10, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_11) <= ((int32_t)0))) { goto IL_0039; } } { InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283* L_12 = ___keys0; int32_t L_13 = ___a2; NullCheck(L_12); int32_t L_14 = L_13; InterpretedFrameInfo_tC2C153C83030E30AC9BEC762C0B549D6340A1DF7 L_15 = (L_12)->GetAt(static_cast<il2cpp_array_size_t>(L_14)); V_0 = (InterpretedFrameInfo_tC2C153C83030E30AC9BEC762C0B549D6340A1DF7 )L_15; InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283* L_16 = ___keys0; int32_t L_17 = ___a2; InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283* L_18 = ___keys0; int32_t L_19 = ___b3; NullCheck(L_18); int32_t L_20 = L_19; InterpretedFrameInfo_tC2C153C83030E30AC9BEC762C0B549D6340A1DF7 L_21 = (L_18)->GetAt(static_cast<il2cpp_array_size_t>(L_20)); NullCheck(L_16); (L_16)->SetAt(static_cast<il2cpp_array_size_t>(L_17), (InterpretedFrameInfo_tC2C153C83030E30AC9BEC762C0B549D6340A1DF7 )L_21); InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283* L_22 = ___keys0; int32_t L_23 = ___b3; InterpretedFrameInfo_tC2C153C83030E30AC9BEC762C0B549D6340A1DF7 L_24 = V_0; NullCheck(L_22); (L_22)->SetAt(static_cast<il2cpp_array_size_t>(L_23), (InterpretedFrameInfo_tC2C153C83030E30AC9BEC762C0B549D6340A1DF7 )L_24); } IL_0039: { return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Linq.Expressions.Interpreter.InterpretedFrameInfo>::Swap(T[],System.Int32,System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Swap_mCF17AFA04C6F475FB0328BEA211717631449507B_gshared (InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283* ___a0, int32_t ___i1, int32_t ___j2, const RuntimeMethod* method) { InterpretedFrameInfo_tC2C153C83030E30AC9BEC762C0B549D6340A1DF7 V_0; memset((&V_0), 0, sizeof(V_0)); { int32_t L_0 = ___i1; int32_t L_1 = ___j2; if ((((int32_t)L_0) == ((int32_t)L_1))) { goto IL_0022; } } { InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283* L_2 = ___a0; int32_t L_3 = ___i1; NullCheck(L_2); int32_t L_4 = L_3; InterpretedFrameInfo_tC2C153C83030E30AC9BEC762C0B549D6340A1DF7 L_5 = (L_2)->GetAt(static_cast<il2cpp_array_size_t>(L_4)); V_0 = (InterpretedFrameInfo_tC2C153C83030E30AC9BEC762C0B549D6340A1DF7 )L_5; InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283* L_6 = ___a0; int32_t L_7 = ___i1; InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283* L_8 = ___a0; int32_t L_9 = ___j2; NullCheck(L_8); int32_t L_10 = L_9; InterpretedFrameInfo_tC2C153C83030E30AC9BEC762C0B549D6340A1DF7 L_11 = (L_8)->GetAt(static_cast<il2cpp_array_size_t>(L_10)); NullCheck(L_6); (L_6)->SetAt(static_cast<il2cpp_array_size_t>(L_7), (InterpretedFrameInfo_tC2C153C83030E30AC9BEC762C0B549D6340A1DF7 )L_11); InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283* L_12 = ___a0; int32_t L_13 = ___j2; InterpretedFrameInfo_tC2C153C83030E30AC9BEC762C0B549D6340A1DF7 L_14 = V_0; NullCheck(L_12); (L_12)->SetAt(static_cast<il2cpp_array_size_t>(L_13), (InterpretedFrameInfo_tC2C153C83030E30AC9BEC762C0B549D6340A1DF7 )L_14); } IL_0022: { return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Linq.Expressions.Interpreter.InterpretedFrameInfo>::IntrospectiveSort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_IntrospectiveSort_m45C4279A14E4DAA61C06B987CD51A17FF9A745DC_gshared (InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283* ___keys0, int32_t ___left1, int32_t ___length2, Comparison_1_t42880657979A7A068EDB75370336E9CAC5E0F734 * ___comparer3, const RuntimeMethod* method) { { int32_t L_0 = ___length2; if ((((int32_t)L_0) >= ((int32_t)2))) { goto IL_0005; } } { return; } IL_0005: { InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283* L_1 = ___keys0; int32_t L_2 = ___left1; int32_t L_3 = ___length2; int32_t L_4 = ___left1; InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283* L_5 = ___keys0; NullCheck(L_5); int32_t L_6; L_6 = IntrospectiveSortUtilities_FloorLog2_m05ECB6CAC7A23087D9EC2C2A4DDCFE12272C3872((int32_t)((int32_t)((int32_t)(((RuntimeArray*)L_5)->max_length))), /*hidden argument*/NULL); Comparison_1_t42880657979A7A068EDB75370336E9CAC5E0F734 * L_7 = ___comparer3; (( void (*) (InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283*, int32_t, int32_t, int32_t, Comparison_1_t42880657979A7A068EDB75370336E9CAC5E0F734 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)->methodPointer)((InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283*)L_1, (int32_t)L_2, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)L_4)), (int32_t)1)), (int32_t)((int32_t)il2cpp_codegen_multiply((int32_t)2, (int32_t)L_6)), (Comparison_1_t42880657979A7A068EDB75370336E9CAC5E0F734 *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)); return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Linq.Expressions.Interpreter.InterpretedFrameInfo>::IntroSort(T[],System.Int32,System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_IntroSort_m79B2673DCCFD1C538EE30AEFBF9CEABAF598A340_gshared (InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283* ___keys0, int32_t ___lo1, int32_t ___hi2, int32_t ___depthLimit3, Comparison_1_t42880657979A7A068EDB75370336E9CAC5E0F734 * ___comparer4, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; { goto IL_0086; } IL_0005: { int32_t L_0 = ___hi2; int32_t L_1 = ___lo1; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_0, (int32_t)L_1)), (int32_t)1)); int32_t L_2 = V_0; if ((((int32_t)L_2) > ((int32_t)((int32_t)16)))) { goto IL_0056; } } { int32_t L_3 = V_0; if ((!(((uint32_t)L_3) == ((uint32_t)1)))) { goto IL_0015; } } { return; } IL_0015: { int32_t L_4 = V_0; if ((!(((uint32_t)L_4) == ((uint32_t)2)))) { goto IL_0024; } } { InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283* L_5 = ___keys0; Comparison_1_t42880657979A7A068EDB75370336E9CAC5E0F734 * L_6 = ___comparer4; int32_t L_7 = ___lo1; int32_t L_8 = ___hi2; (( void (*) (InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283*, Comparison_1_t42880657979A7A068EDB75370336E9CAC5E0F734 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283*)L_5, (Comparison_1_t42880657979A7A068EDB75370336E9CAC5E0F734 *)L_6, (int32_t)L_7, (int32_t)L_8, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); return; } IL_0024: { int32_t L_9 = V_0; if ((!(((uint32_t)L_9) == ((uint32_t)3)))) { goto IL_004b; } } { InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283* L_10 = ___keys0; Comparison_1_t42880657979A7A068EDB75370336E9CAC5E0F734 * L_11 = ___comparer4; int32_t L_12 = ___lo1; int32_t L_13 = ___hi2; (( void (*) (InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283*, Comparison_1_t42880657979A7A068EDB75370336E9CAC5E0F734 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283*)L_10, (Comparison_1_t42880657979A7A068EDB75370336E9CAC5E0F734 *)L_11, (int32_t)L_12, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_13, (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283* L_14 = ___keys0; Comparison_1_t42880657979A7A068EDB75370336E9CAC5E0F734 * L_15 = ___comparer4; int32_t L_16 = ___lo1; int32_t L_17 = ___hi2; (( void (*) (InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283*, Comparison_1_t42880657979A7A068EDB75370336E9CAC5E0F734 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283*)L_14, (Comparison_1_t42880657979A7A068EDB75370336E9CAC5E0F734 *)L_15, (int32_t)L_16, (int32_t)L_17, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283* L_18 = ___keys0; Comparison_1_t42880657979A7A068EDB75370336E9CAC5E0F734 * L_19 = ___comparer4; int32_t L_20 = ___hi2; int32_t L_21 = ___hi2; (( void (*) (InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283*, Comparison_1_t42880657979A7A068EDB75370336E9CAC5E0F734 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283*)L_18, (Comparison_1_t42880657979A7A068EDB75370336E9CAC5E0F734 *)L_19, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_20, (int32_t)1)), (int32_t)L_21, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); return; } IL_004b: { InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283* L_22 = ___keys0; int32_t L_23 = ___lo1; int32_t L_24 = ___hi2; Comparison_1_t42880657979A7A068EDB75370336E9CAC5E0F734 * L_25 = ___comparer4; (( void (*) (InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283*, int32_t, int32_t, Comparison_1_t42880657979A7A068EDB75370336E9CAC5E0F734 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 12)->methodPointer)((InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283*)L_22, (int32_t)L_23, (int32_t)L_24, (Comparison_1_t42880657979A7A068EDB75370336E9CAC5E0F734 *)L_25, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 12)); return; } IL_0056: { int32_t L_26 = ___depthLimit3; if (L_26) { goto IL_0064; } } { InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283* L_27 = ___keys0; int32_t L_28 = ___lo1; int32_t L_29 = ___hi2; Comparison_1_t42880657979A7A068EDB75370336E9CAC5E0F734 * L_30 = ___comparer4; (( void (*) (InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283*, int32_t, int32_t, Comparison_1_t42880657979A7A068EDB75370336E9CAC5E0F734 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 13)->methodPointer)((InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283*)L_27, (int32_t)L_28, (int32_t)L_29, (Comparison_1_t42880657979A7A068EDB75370336E9CAC5E0F734 *)L_30, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 13)); return; } IL_0064: { int32_t L_31 = ___depthLimit3; ___depthLimit3 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_31, (int32_t)1)); InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283* L_32 = ___keys0; int32_t L_33 = ___lo1; int32_t L_34 = ___hi2; Comparison_1_t42880657979A7A068EDB75370336E9CAC5E0F734 * L_35 = ___comparer4; int32_t L_36; L_36 = (( int32_t (*) (InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283*, int32_t, int32_t, Comparison_1_t42880657979A7A068EDB75370336E9CAC5E0F734 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 14)->methodPointer)((InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283*)L_32, (int32_t)L_33, (int32_t)L_34, (Comparison_1_t42880657979A7A068EDB75370336E9CAC5E0F734 *)L_35, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 14)); V_1 = (int32_t)L_36; InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283* L_37 = ___keys0; int32_t L_38 = V_1; int32_t L_39 = ___hi2; int32_t L_40 = ___depthLimit3; Comparison_1_t42880657979A7A068EDB75370336E9CAC5E0F734 * L_41 = ___comparer4; (( void (*) (InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283*, int32_t, int32_t, int32_t, Comparison_1_t42880657979A7A068EDB75370336E9CAC5E0F734 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)->methodPointer)((InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283*)L_37, (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_38, (int32_t)1)), (int32_t)L_39, (int32_t)L_40, (Comparison_1_t42880657979A7A068EDB75370336E9CAC5E0F734 *)L_41, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 10)); int32_t L_42 = V_1; ___hi2 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_42, (int32_t)1)); } IL_0086: { int32_t L_43 = ___hi2; int32_t L_44 = ___lo1; if ((((int32_t)L_43) > ((int32_t)L_44))) { goto IL_0005; } } { return; } } // System.Int32 System.Collections.Generic.ArraySortHelper`1<System.Linq.Expressions.Interpreter.InterpretedFrameInfo>::PickPivotAndPartition(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t ArraySortHelper_1_PickPivotAndPartition_m95AE08C90BE3157CFC493DEBA6FA1A570451BDC9_gshared (InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283* ___keys0, int32_t ___lo1, int32_t ___hi2, Comparison_1_t42880657979A7A068EDB75370336E9CAC5E0F734 * ___comparer3, const RuntimeMethod* method) { int32_t V_0 = 0; InterpretedFrameInfo_tC2C153C83030E30AC9BEC762C0B549D6340A1DF7 V_1; memset((&V_1), 0, sizeof(V_1)); int32_t V_2 = 0; int32_t V_3 = 0; { int32_t L_0 = ___lo1; int32_t L_1 = ___hi2; int32_t L_2 = ___lo1; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_0, (int32_t)((int32_t)((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_1, (int32_t)L_2))/(int32_t)2)))); InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283* L_3 = ___keys0; Comparison_1_t42880657979A7A068EDB75370336E9CAC5E0F734 * L_4 = ___comparer3; int32_t L_5 = ___lo1; int32_t L_6 = V_0; (( void (*) (InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283*, Comparison_1_t42880657979A7A068EDB75370336E9CAC5E0F734 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283*)L_3, (Comparison_1_t42880657979A7A068EDB75370336E9CAC5E0F734 *)L_4, (int32_t)L_5, (int32_t)L_6, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283* L_7 = ___keys0; Comparison_1_t42880657979A7A068EDB75370336E9CAC5E0F734 * L_8 = ___comparer3; int32_t L_9 = ___lo1; int32_t L_10 = ___hi2; (( void (*) (InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283*, Comparison_1_t42880657979A7A068EDB75370336E9CAC5E0F734 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283*)L_7, (Comparison_1_t42880657979A7A068EDB75370336E9CAC5E0F734 *)L_8, (int32_t)L_9, (int32_t)L_10, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283* L_11 = ___keys0; Comparison_1_t42880657979A7A068EDB75370336E9CAC5E0F734 * L_12 = ___comparer3; int32_t L_13 = V_0; int32_t L_14 = ___hi2; (( void (*) (InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283*, Comparison_1_t42880657979A7A068EDB75370336E9CAC5E0F734 *, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)->methodPointer)((InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283*)L_11, (Comparison_1_t42880657979A7A068EDB75370336E9CAC5E0F734 *)L_12, (int32_t)L_13, (int32_t)L_14, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 11)); InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283* L_15 = ___keys0; int32_t L_16 = V_0; NullCheck(L_15); int32_t L_17 = L_16; InterpretedFrameInfo_tC2C153C83030E30AC9BEC762C0B549D6340A1DF7 L_18 = (L_15)->GetAt(static_cast<il2cpp_array_size_t>(L_17)); V_1 = (InterpretedFrameInfo_tC2C153C83030E30AC9BEC762C0B549D6340A1DF7 )L_18; InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283* L_19 = ___keys0; int32_t L_20 = V_0; int32_t L_21 = ___hi2; (( void (*) (InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283*)L_19, (int32_t)L_20, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_21, (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); int32_t L_22 = ___lo1; V_2 = (int32_t)L_22; int32_t L_23 = ___hi2; V_3 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_23, (int32_t)1)); goto IL_0073; } IL_003d: { Comparison_1_t42880657979A7A068EDB75370336E9CAC5E0F734 * L_24 = ___comparer3; InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283* L_25 = ___keys0; int32_t L_26 = V_2; int32_t L_27 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_26, (int32_t)1)); V_2 = (int32_t)L_27; NullCheck(L_25); int32_t L_28 = L_27; InterpretedFrameInfo_tC2C153C83030E30AC9BEC762C0B549D6340A1DF7 L_29 = (L_25)->GetAt(static_cast<il2cpp_array_size_t>(L_28)); InterpretedFrameInfo_tC2C153C83030E30AC9BEC762C0B549D6340A1DF7 L_30 = V_1; NullCheck((Comparison_1_t42880657979A7A068EDB75370336E9CAC5E0F734 *)L_24); int32_t L_31; L_31 = (( int32_t (*) (Comparison_1_t42880657979A7A068EDB75370336E9CAC5E0F734 *, InterpretedFrameInfo_tC2C153C83030E30AC9BEC762C0B549D6340A1DF7 , InterpretedFrameInfo_tC2C153C83030E30AC9BEC762C0B549D6340A1DF7 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t42880657979A7A068EDB75370336E9CAC5E0F734 *)L_24, (InterpretedFrameInfo_tC2C153C83030E30AC9BEC762C0B549D6340A1DF7 )L_29, (InterpretedFrameInfo_tC2C153C83030E30AC9BEC762C0B549D6340A1DF7 )L_30, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_31) < ((int32_t)0))) { goto IL_003d; } } IL_0052: { Comparison_1_t42880657979A7A068EDB75370336E9CAC5E0F734 * L_32 = ___comparer3; InterpretedFrameInfo_tC2C153C83030E30AC9BEC762C0B549D6340A1DF7 L_33 = V_1; InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283* L_34 = ___keys0; int32_t L_35 = V_3; int32_t L_36 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_35, (int32_t)1)); V_3 = (int32_t)L_36; NullCheck(L_34); int32_t L_37 = L_36; InterpretedFrameInfo_tC2C153C83030E30AC9BEC762C0B549D6340A1DF7 L_38 = (L_34)->GetAt(static_cast<il2cpp_array_size_t>(L_37)); NullCheck((Comparison_1_t42880657979A7A068EDB75370336E9CAC5E0F734 *)L_32); int32_t L_39; L_39 = (( int32_t (*) (Comparison_1_t42880657979A7A068EDB75370336E9CAC5E0F734 *, InterpretedFrameInfo_tC2C153C83030E30AC9BEC762C0B549D6340A1DF7 , InterpretedFrameInfo_tC2C153C83030E30AC9BEC762C0B549D6340A1DF7 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t42880657979A7A068EDB75370336E9CAC5E0F734 *)L_32, (InterpretedFrameInfo_tC2C153C83030E30AC9BEC762C0B549D6340A1DF7 )L_33, (InterpretedFrameInfo_tC2C153C83030E30AC9BEC762C0B549D6340A1DF7 )L_38, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_39) < ((int32_t)0))) { goto IL_0052; } } { int32_t L_40 = V_2; int32_t L_41 = V_3; if ((((int32_t)L_40) >= ((int32_t)L_41))) { goto IL_0077; } } { InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283* L_42 = ___keys0; int32_t L_43 = V_2; int32_t L_44 = V_3; (( void (*) (InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283*)L_42, (int32_t)L_43, (int32_t)L_44, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); } IL_0073: { int32_t L_45 = V_2; int32_t L_46 = V_3; if ((((int32_t)L_45) < ((int32_t)L_46))) { goto IL_003d; } } IL_0077: { InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283* L_47 = ___keys0; int32_t L_48 = V_2; int32_t L_49 = ___hi2; (( void (*) (InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283*)L_47, (int32_t)L_48, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_49, (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); int32_t L_50 = V_2; return (int32_t)L_50; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Linq.Expressions.Interpreter.InterpretedFrameInfo>::Heapsort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_Heapsort_mB639EE311F804F5CCDAB4A800D94E56A10D2B6BC_gshared (InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283* ___keys0, int32_t ___lo1, int32_t ___hi2, Comparison_1_t42880657979A7A068EDB75370336E9CAC5E0F734 * ___comparer3, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; int32_t V_2 = 0; { int32_t L_0 = ___hi2; int32_t L_1 = ___lo1; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_0, (int32_t)L_1)), (int32_t)1)); int32_t L_2 = V_0; V_1 = (int32_t)((int32_t)((int32_t)L_2/(int32_t)2)); goto IL_001a; } IL_000c: { InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283* L_3 = ___keys0; int32_t L_4 = V_1; int32_t L_5 = V_0; int32_t L_6 = ___lo1; Comparison_1_t42880657979A7A068EDB75370336E9CAC5E0F734 * L_7 = ___comparer3; (( void (*) (InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283*, int32_t, int32_t, int32_t, Comparison_1_t42880657979A7A068EDB75370336E9CAC5E0F734 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)->methodPointer)((InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283*)L_3, (int32_t)L_4, (int32_t)L_5, (int32_t)L_6, (Comparison_1_t42880657979A7A068EDB75370336E9CAC5E0F734 *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)); int32_t L_8 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_8, (int32_t)1)); } IL_001a: { int32_t L_9 = V_1; if ((((int32_t)L_9) >= ((int32_t)1))) { goto IL_000c; } } { int32_t L_10 = V_0; V_2 = (int32_t)L_10; goto IL_003e; } IL_0022: { InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283* L_11 = ___keys0; int32_t L_12 = ___lo1; int32_t L_13 = ___lo1; int32_t L_14 = V_2; (( void (*) (InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283*, int32_t, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)->methodPointer)((InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283*)L_11, (int32_t)L_12, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_13, (int32_t)L_14)), (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 15)); InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283* L_15 = ___keys0; int32_t L_16 = V_2; int32_t L_17 = ___lo1; Comparison_1_t42880657979A7A068EDB75370336E9CAC5E0F734 * L_18 = ___comparer3; (( void (*) (InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283*, int32_t, int32_t, int32_t, Comparison_1_t42880657979A7A068EDB75370336E9CAC5E0F734 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)->methodPointer)((InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283*)L_15, (int32_t)1, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_16, (int32_t)1)), (int32_t)L_17, (Comparison_1_t42880657979A7A068EDB75370336E9CAC5E0F734 *)L_18, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 16)); int32_t L_19 = V_2; V_2 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_19, (int32_t)1)); } IL_003e: { int32_t L_20 = V_2; if ((((int32_t)L_20) > ((int32_t)1))) { goto IL_0022; } } { return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Linq.Expressions.Interpreter.InterpretedFrameInfo>::DownHeap(T[],System.Int32,System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_DownHeap_mC66D51EF5AEC7EA0A9948D615F2701BD29B215BC_gshared (InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283* ___keys0, int32_t ___i1, int32_t ___n2, int32_t ___lo3, Comparison_1_t42880657979A7A068EDB75370336E9CAC5E0F734 * ___comparer4, const RuntimeMethod* method) { InterpretedFrameInfo_tC2C153C83030E30AC9BEC762C0B549D6340A1DF7 V_0; memset((&V_0), 0, sizeof(V_0)); int32_t V_1 = 0; { InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283* L_0 = ___keys0; int32_t L_1 = ___lo3; int32_t L_2 = ___i1; NullCheck(L_0); int32_t L_3 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_1, (int32_t)L_2)), (int32_t)1)); InterpretedFrameInfo_tC2C153C83030E30AC9BEC762C0B549D6340A1DF7 L_4 = (L_0)->GetAt(static_cast<il2cpp_array_size_t>(L_3)); V_0 = (InterpretedFrameInfo_tC2C153C83030E30AC9BEC762C0B549D6340A1DF7 )L_4; goto IL_0067; } IL_000e: { int32_t L_5 = ___i1; V_1 = (int32_t)((int32_t)il2cpp_codegen_multiply((int32_t)2, (int32_t)L_5)); int32_t L_6 = V_1; int32_t L_7 = ___n2; if ((((int32_t)L_6) >= ((int32_t)L_7))) { goto IL_0038; } } { Comparison_1_t42880657979A7A068EDB75370336E9CAC5E0F734 * L_8 = ___comparer4; InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283* L_9 = ___keys0; int32_t L_10 = ___lo3; int32_t L_11 = V_1; NullCheck(L_9); int32_t L_12 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_10, (int32_t)L_11)), (int32_t)1)); InterpretedFrameInfo_tC2C153C83030E30AC9BEC762C0B549D6340A1DF7 L_13 = (L_9)->GetAt(static_cast<il2cpp_array_size_t>(L_12)); InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283* L_14 = ___keys0; int32_t L_15 = ___lo3; int32_t L_16 = V_1; NullCheck(L_14); int32_t L_17 = ((int32_t)il2cpp_codegen_add((int32_t)L_15, (int32_t)L_16)); InterpretedFrameInfo_tC2C153C83030E30AC9BEC762C0B549D6340A1DF7 L_18 = (L_14)->GetAt(static_cast<il2cpp_array_size_t>(L_17)); NullCheck((Comparison_1_t42880657979A7A068EDB75370336E9CAC5E0F734 *)L_8); int32_t L_19; L_19 = (( int32_t (*) (Comparison_1_t42880657979A7A068EDB75370336E9CAC5E0F734 *, InterpretedFrameInfo_tC2C153C83030E30AC9BEC762C0B549D6340A1DF7 , InterpretedFrameInfo_tC2C153C83030E30AC9BEC762C0B549D6340A1DF7 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t42880657979A7A068EDB75370336E9CAC5E0F734 *)L_8, (InterpretedFrameInfo_tC2C153C83030E30AC9BEC762C0B549D6340A1DF7 )L_13, (InterpretedFrameInfo_tC2C153C83030E30AC9BEC762C0B549D6340A1DF7 )L_18, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_19) >= ((int32_t)0))) { goto IL_0038; } } { int32_t L_20 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_20, (int32_t)1)); } IL_0038: { Comparison_1_t42880657979A7A068EDB75370336E9CAC5E0F734 * L_21 = ___comparer4; InterpretedFrameInfo_tC2C153C83030E30AC9BEC762C0B549D6340A1DF7 L_22 = V_0; InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283* L_23 = ___keys0; int32_t L_24 = ___lo3; int32_t L_25 = V_1; NullCheck(L_23); int32_t L_26 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_24, (int32_t)L_25)), (int32_t)1)); InterpretedFrameInfo_tC2C153C83030E30AC9BEC762C0B549D6340A1DF7 L_27 = (L_23)->GetAt(static_cast<il2cpp_array_size_t>(L_26)); NullCheck((Comparison_1_t42880657979A7A068EDB75370336E9CAC5E0F734 *)L_21); int32_t L_28; L_28 = (( int32_t (*) (Comparison_1_t42880657979A7A068EDB75370336E9CAC5E0F734 *, InterpretedFrameInfo_tC2C153C83030E30AC9BEC762C0B549D6340A1DF7 , InterpretedFrameInfo_tC2C153C83030E30AC9BEC762C0B549D6340A1DF7 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t42880657979A7A068EDB75370336E9CAC5E0F734 *)L_21, (InterpretedFrameInfo_tC2C153C83030E30AC9BEC762C0B549D6340A1DF7 )L_22, (InterpretedFrameInfo_tC2C153C83030E30AC9BEC762C0B549D6340A1DF7 )L_27, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_28) >= ((int32_t)0))) { goto IL_006d; } } { InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283* L_29 = ___keys0; int32_t L_30 = ___lo3; int32_t L_31 = ___i1; InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283* L_32 = ___keys0; int32_t L_33 = ___lo3; int32_t L_34 = V_1; NullCheck(L_32); int32_t L_35 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_33, (int32_t)L_34)), (int32_t)1)); InterpretedFrameInfo_tC2C153C83030E30AC9BEC762C0B549D6340A1DF7 L_36 = (L_32)->GetAt(static_cast<il2cpp_array_size_t>(L_35)); NullCheck(L_29); (L_29)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_30, (int32_t)L_31)), (int32_t)1))), (InterpretedFrameInfo_tC2C153C83030E30AC9BEC762C0B549D6340A1DF7 )L_36); int32_t L_37 = V_1; ___i1 = (int32_t)L_37; } IL_0067: { int32_t L_38 = ___i1; int32_t L_39 = ___n2; if ((((int32_t)L_38) <= ((int32_t)((int32_t)((int32_t)L_39/(int32_t)2))))) { goto IL_000e; } } IL_006d: { InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283* L_40 = ___keys0; int32_t L_41 = ___lo3; int32_t L_42 = ___i1; InterpretedFrameInfo_tC2C153C83030E30AC9BEC762C0B549D6340A1DF7 L_43 = V_0; NullCheck(L_40); (L_40)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_41, (int32_t)L_42)), (int32_t)1))), (InterpretedFrameInfo_tC2C153C83030E30AC9BEC762C0B549D6340A1DF7 )L_43); return; } } // System.Void System.Collections.Generic.ArraySortHelper`1<System.Linq.Expressions.Interpreter.InterpretedFrameInfo>::InsertionSort(T[],System.Int32,System.Int32,System.Comparison`1<T>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArraySortHelper_1_InsertionSort_m7B49B0ADF880AFFB2BEF0B1E868EB9CE04C7AB4D_gshared (InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283* ___keys0, int32_t ___lo1, int32_t ___hi2, Comparison_1_t42880657979A7A068EDB75370336E9CAC5E0F734 * ___comparer3, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; InterpretedFrameInfo_tC2C153C83030E30AC9BEC762C0B549D6340A1DF7 V_2; memset((&V_2), 0, sizeof(V_2)); { int32_t L_0 = ___lo1; V_0 = (int32_t)L_0; goto IL_0049; } IL_0004: { int32_t L_1 = V_0; V_1 = (int32_t)L_1; InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283* L_2 = ___keys0; int32_t L_3 = V_0; NullCheck(L_2); int32_t L_4 = ((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)1)); InterpretedFrameInfo_tC2C153C83030E30AC9BEC762C0B549D6340A1DF7 L_5 = (L_2)->GetAt(static_cast<il2cpp_array_size_t>(L_4)); V_2 = (InterpretedFrameInfo_tC2C153C83030E30AC9BEC762C0B549D6340A1DF7 )L_5; goto IL_0026; } IL_0012: { InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283* L_6 = ___keys0; int32_t L_7 = V_1; InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283* L_8 = ___keys0; int32_t L_9 = V_1; NullCheck(L_8); int32_t L_10 = L_9; InterpretedFrameInfo_tC2C153C83030E30AC9BEC762C0B549D6340A1DF7 L_11 = (L_8)->GetAt(static_cast<il2cpp_array_size_t>(L_10)); NullCheck(L_6); (L_6)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add((int32_t)L_7, (int32_t)1))), (InterpretedFrameInfo_tC2C153C83030E30AC9BEC762C0B549D6340A1DF7 )L_11); int32_t L_12 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_12, (int32_t)1)); } IL_0026: { int32_t L_13 = V_1; int32_t L_14 = ___lo1; if ((((int32_t)L_13) < ((int32_t)L_14))) { goto IL_003b; } } { Comparison_1_t42880657979A7A068EDB75370336E9CAC5E0F734 * L_15 = ___comparer3; InterpretedFrameInfo_tC2C153C83030E30AC9BEC762C0B549D6340A1DF7 L_16 = V_2; InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283* L_17 = ___keys0; int32_t L_18 = V_1; NullCheck(L_17); int32_t L_19 = L_18; InterpretedFrameInfo_tC2C153C83030E30AC9BEC762C0B549D6340A1DF7 L_20 = (L_17)->GetAt(static_cast<il2cpp_array_size_t>(L_19)); NullCheck((Comparison_1_t42880657979A7A068EDB75370336E9CAC5E0F734 *)L_15); int32_t L_21; L_21 = (( int32_t (*) (Comparison_1_t42880657979A7A068EDB75370336E9CAC5E0F734 *, InterpretedFrameInfo_tC2C153C83030E30AC9BEC762C0B549D6340A1DF7 , InterpretedFrameInfo_tC2C153C83030E30AC9BEC762C0B549D6340A1DF7 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)->methodPointer)((Comparison_1_t42880657979A7A068EDB75370336E9CAC5E0F734 *)L_15, (InterpretedFrameInfo_tC2C153C83030E30AC9BEC762C0B549D6340A1DF7 )L_16, (InterpretedFrameInfo_tC2C153C83030E30AC9BEC762C0B549D6340A1DF7 )L_20, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->klass)->rgctx_data, 9)); if ((((int32_t)L_21) < ((int32_t)0))) { goto IL_0012; } } IL_003b: { InterpretedFrameInfoU5BU5D_tFA6FBE1C8684475BB4DC1E02532B6DE5C3845283* L_22 = ___keys0; int32_t L_23 = V_1; InterpretedFrameInfo_tC2C153C83030E30AC9BEC762C0B549D6340A1DF7 L_24 = V_2; NullCheck(L_22); (L_22)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add((int32_t)L_23, (int32_t)1))), (InterpretedFrameInfo_tC2C153C83030E30AC9BEC762C0B549D6340A1DF7 )L_24); int32_t L_25 = V_0; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_25, (int32_t)1)); } IL_0049: { int32_t L_26 = V_0; int32_t L_27 = ___hi2; if ((((int32_t)L_26) < ((int32_t)L_27))) { goto IL_0004; } } { return; } } #ifdef __clang__ #pragma clang diagnostic pop #endif
[ "46924427+Crazyhenry123@users.noreply.github.com" ]
46924427+Crazyhenry123@users.noreply.github.com
4271cfdeed5b0d2ab09462bb4fd58d4716edfcda
0a978878d605315b845f4444ce67f4ccd96f6031
/toolbox/io/Buffer.cpp
21ab223572a9cd80dca37b0b6f2ab2b5322af40a
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
mmitkevich/toolbox-cpp
ec74414e7a09d32445c05b11b5a4fceb33af99fb
59e26154acbd990de9658bf229ebdbf7f89fc0c8
refs/heads/master
2021-12-15T00:54:40.384983
2021-12-07T13:29:50
2021-12-07T13:29:50
229,230,244
0
0
Apache-2.0
2019-12-20T09:09:59
2019-12-20T09:09:58
null
UTF-8
C++
false
false
2,269
cpp
// The Reactive C++ Toolbox. // Copyright (C) 2013-2019 Swirly Cloud Limited // Copyright (C) 2020 Reactive Markets Limited // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. #include "Buffer.hpp" namespace toolbox { inline namespace io { void Buffer::consume(std::size_t count) noexcept { enum { ShrinkThreshold = 1024 }; if (count == 0) { return; } rpos_ += count; // Shrink if the block of unused bytes at the front of the buffer satisfies the following // requirements: 1) greater than or equal to ShrinkThreshold, 1) greater than or equal to half // the total buffer size. if (rpos_ >= ShrinkThreshold && rpos_ >= (buf_.size() >> 1)) { // Then move unread portion to front. const auto n = size(); if (n > 0) { // Move data to front. std::memmove(buf_.data(), rptr(), n); } rpos_ = 0; wpos_ = n; } } MutableBuffer Buffer::prepare(std::size_t size) { auto avail = available(); if (size > avail) { // More buffer space required. const auto diff = size - avail; buf_.resize(buf_.size() + diff); avail = size; } return {wptr(), avail}; } ConstBuffer advance(ConstBuffer buf, std::size_t n) noexcept { const auto* const data = buffer_cast<const char*>(buf); const std::size_t size = buffer_size(buf); const auto offset = std::min(n, size); return {data + offset, size - offset}; } MutableBuffer advance(MutableBuffer buf, std::size_t n) noexcept { auto* const data = buffer_cast<char*>(buf); const std::size_t size = buffer_size(buf); const auto offset = std::min(n, size); return {data + offset, size - offset}; } } // namespace io } // namespace toolbox
[ "mark.aylett@reactivemarkets.com" ]
mark.aylett@reactivemarkets.com
aa7b03672b8cf16f43a2a14a95dcd42a0ffd8ccb
0aa621625fd0e80ab91974df6d2781d7dcf5bb86
/cpp_cmake/vanilla_app/test.cpp
cbfaa45018115dce56d55e92f85d34c6b21e61ee
[]
no_license
evanmoran/vanilla
a4cb6f5b669854946040f8558866e2dbe88bd774
cc46395fff6080ce5bf5542e9dd703a7593798fa
refs/heads/master
2023-02-06T23:52:14.617413
2023-01-30T19:55:48
2023-01-30T19:55:48
8,758,346
0
0
null
null
null
null
UTF-8
C++
false
false
290
cpp
#define CATCH_CONFIG_MAIN #include <catch2/catch.hpp> #include "f.hpp" #include "vanilla_lib/vanilla_lib.hpp" TEST_CASE( "root vanilla_lib::f exists", "[vanilla_lib]" ) { REQUIRE( vanilla_lib::f() == 42 ); } TEST_CASE( "root f exists", "[vanilla_app]" ) { REQUIRE( f() == 24 ); }
[ "evan@nianticlabs.com" ]
evan@nianticlabs.com
5b93278403cbcd385353c60434b33b2f769a7ebb
413a1d85f164ab38ef876452ac3c363f9df058c4
/wiki_app/venv/lib/python3.5/site-packages/lucene-8.1.1-py3.5-linux-x86_64.egg/lucene/include/org/apache/lucene/codecs/compressing/CompressingStoredFieldsIndexWriter.h
236c7d3571b862b56a6580e579ccfa7372ecaa4f
[]
no_license
prateek68/Wikipedia-Online-Content-Comparison
18d53e3456e2d7aa6eb67629c2ea1c79b7d8be4d
77d54b99881558b3195190740ba1be7f8328392b
refs/heads/master
2020-12-26T11:58:18.903011
2020-02-02T09:55:37
2020-02-02T09:55:37
237,495,848
1
2
null
null
null
null
UTF-8
C++
false
false
1,995
h
#ifndef org_apache_lucene_codecs_compressing_CompressingStoredFieldsIndexWriter_H #define org_apache_lucene_codecs_compressing_CompressingStoredFieldsIndexWriter_H #include "java/lang/Object.h" namespace java { namespace io { class Closeable; class IOException; } namespace lang { class Class; } } template<class T> class JArray; namespace org { namespace apache { namespace lucene { namespace codecs { namespace compressing { class CompressingStoredFieldsIndexWriter : public ::java::lang::Object { public: enum { mid_close_8e1955e8a9db094a, max_mid }; static ::java::lang::Class *class$; static jmethodID *mids$; static bool live$; static jclass initializeClass(bool); explicit CompressingStoredFieldsIndexWriter(jobject obj) : ::java::lang::Object(obj) { if (obj != NULL && mids$ == NULL) env->getClass(initializeClass); } CompressingStoredFieldsIndexWriter(const CompressingStoredFieldsIndexWriter& obj) : ::java::lang::Object(obj) {} void close() const; }; } } } } } #include <Python.h> namespace org { namespace apache { namespace lucene { namespace codecs { namespace compressing { extern PyType_Def PY_TYPE_DEF(CompressingStoredFieldsIndexWriter); extern PyTypeObject *PY_TYPE(CompressingStoredFieldsIndexWriter); class t_CompressingStoredFieldsIndexWriter { public: PyObject_HEAD CompressingStoredFieldsIndexWriter object; static PyObject *wrap_Object(const CompressingStoredFieldsIndexWriter&); static PyObject *wrap_jobject(const jobject&); static void install(PyObject *module); static void initialize(PyObject *module); }; } } } } } #endif
[ "prateek16068@iiitd.ac.in" ]
prateek16068@iiitd.ac.in
1d74b71ba89b323ea425a95bc4f0b604bce48a01
ccdf74d25d28732bbbb4865d414b76e117ed3ae2
/corokafka/corokafka_producer_manager.cpp
620cea24769865a87c6df19cd292b7765eb1b614
[ "Apache-2.0" ]
permissive
accelerated/corokafka
3b51410b4a108a085a0ccfd1e0f04feeabfbacd0
a96e983b8c21323eb175b4a70ef8f60d94618bde
refs/heads/master
2021-06-22T20:39:07.724270
2020-04-21T19:08:13
2020-04-21T19:08:13
214,740,359
0
0
Apache-2.0
2019-10-13T01:13:01
2019-10-13T01:13:01
null
UTF-8
C++
false
false
2,495
cpp
/* ** Copyright 2019 Bloomberg Finance L.P. ** ** Licensed under the Apache License, Version 2.0 (the "License"); ** you may not use this file except in compliance with the License. ** You may obtain a copy of the License at ** ** http://www.apache.org/licenses/LICENSE-2.0 ** ** Unless required by applicable law or agreed to in writing, software ** distributed under the License is distributed on an "AS IS" BASIS, ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ** See the License for the specific language governing permissions and ** limitations under the License. */ #include <corokafka/impl/corokafka_producer_manager_impl.h> #include <corokafka/corokafka_producer_manager.h> #include <memory> namespace Bloomberg { namespace corokafka { ProducerManager::ProducerManager(quantum::Dispatcher& dispatcher, const ConnectorConfiguration& connectorConfiguration, const ConfigMap& config, std::atomic_bool& interrupt) : _impl(std::make_unique<ProducerManagerImpl>(dispatcher, connectorConfiguration, config, interrupt)) { } ProducerManager::ProducerManager(quantum::Dispatcher& dispatcher, const ConnectorConfiguration& connectorConfiguration, ConfigMap&& config, std::atomic_bool& interrupt) : _impl(std::make_unique<ProducerManagerImpl>(dispatcher, connectorConfiguration, std::move(config), interrupt)) { } ProducerMetadata ProducerManager::getMetadata(const std::string& topic) { return _impl->getMetadata(topic); } const ProducerConfiguration& ProducerManager::getConfiguration(const std::string& topic) const { return _impl->getConfiguration(topic); } std::vector<std::string> ProducerManager::getTopics() const { return _impl->getTopics(); } void ProducerManager::resetQueueFullTrigger(const std::string& topic) { return _impl->resetQueueFullTrigger(topic); } bool ProducerManager::waitForAcks(const std::string& topic) { return _impl->waitForAcks(topic); } bool ProducerManager::waitForAcks(const std::string& topic, std::chrono::milliseconds timeout) { return _impl->waitForAcks(topic, timeout); } void ProducerManager::shutdown() { _impl->shutdown(); } void ProducerManager::poll() { _impl->poll(); } void ProducerManager::pollEnd() { _impl->pollEnd(); } } }
[ "adamian@bloomberg.net" ]
adamian@bloomberg.net
a09f9fd5be3dec8cefac436b1c1c4c8aab76b83f
594855ca5b64696332206a44fe5e92a72d7a0a17
/3d/landscap.cpp
3b7cca3564eddf75ced2c1d4d0c7dccb526d95dc
[]
no_license
dnichyparuk/bob-flight-sim
2669e272507cc179512929c1bad9f911f9dd7d44
5e70a2d0b452bd2f6b1392c292d82bf757bb05e9
refs/heads/master
2021-05-17T00:38:34.429823
2014-10-15T14:27:15
2014-10-15T14:27:15
null
0
0
null
null
null
null
UHC
C++
false
false
443,046
cpp
/* Battle of Britain Copyright (C) 2000, 2001 Empire Interactive (Europe) Ltd, 677 High Road, North Finchley, London N12 0DA Please see the document licence.doc for the full licence agreement 2. LICENCE 2.1 Subject to the provisions of this Agreement we now grant to you the following rights in respect of the Source Code: 2.1.1 the non-exclusive right to Exploit the Source Code and Executable Code on any medium; and 2.1.2 the non-exclusive right to create and distribute Derivative Works. 2.2 Subject to the provisions of this Agreement we now grant you the following rights in respect of the Object Code: 2.2.1 the non-exclusive right to Exploit the Object Code on the same terms and conditions set out in clause 3, provided that any distribution is done so on the terms of this Agreement and is accompanied by the Source Code and Executable Code (as applicable). 3. GENERAL OBLIGATIONS 3.1 In consideration of the licence granted in clause 2.1 you now agree: 3.1.1 that when you distribute the Source Code or Executable Code or any Derivative Works to Recipients you will also include the terms of this Agreement; 3.1.2 that when you make the Source Code, Executable Code or any Derivative Works ("Materials") available to download, you will ensure that Recipients must accept the terms of this Agreement before being allowed to download such Materials; 3.1.3 that by Exploiting the Source Code or Executable Code you may not impose any further restrictions on a Recipient's subsequent Exploitation of the Source Code or Executable Code other than those contained in the terms and conditions of this Agreement; 3.1.4 not (and not to allow any third party) to profit or make any charge for the Source Code, or Executable Code, any Exploitation of the Source Code or Executable Code, or for any Derivative Works; 3.1.5 not to place any restrictions on the operability of the Source Code; 3.1.6 to attach prominent notices to any Derivative Works stating that you have changed the Source Code or Executable Code and to include the details anddate of such change; and 3.1.7 not to Exploit the Source Code or Executable Code otherwise than as expressly permitted by this Agreement. questions about this file may be asked at bob@rowansoftware.com a better place to ask is http://www.simhq.com/ or even :- http://www.simhq.com/cgi-bin/boards/cgi-bin/forumdisplay.cgi?action=topics&forum=Battle+of+Britain&number=40&DaysPrune=20&LastLogin= */ //------------------------------------------------------------------------------ //Filename landscap.cpp //System //Author Paul. //Date Mon 6 Nov 1995 //Description //------------------------------------------------------------------------------ //#define _NO_UNDERGROUND_FILL //#define _DOUBLE_SIDED_CLIFFS_ #define _TILE_POSITIONS_IN_MATRIX #ifndef NDEBUG //#define _NOCLOUDS_ //#define _NO_FLUFFY_CLOUDS_ //#define _NOLANDSCAPE_ //#define _NOHIREZ //#define _NOTILEMAKE //#define _NO_INFI_STRIP //#define _RENDER_SIMPLE_TEXTURE //#define _SUPERQUICKLANDSCAPE_ //#define _QUICKLANDSCAPE_ //#define _QUICKLANDSCAPEFANS_ //#define _NO_TEXTURE_RENDER #define _ALWAYS_FULL_REZ #endif #define CLIFFTWIDTH 128 #define CLIFFTHEIGHT 128 //#define NO_LIGHT "YES" #include "Dosdefs.h" #include "mystack.h" #define F_GRAFIX //DAW 05Aug96 #define F_BATTLE #include "Worldinc.h" #include "enumbits.m" //PD 04Dec95 #include "Palette.h" #include "Files.g" #include "3DDefs.h" #include "ImageMap.h" #include "BTree.h" #include "Polygon.h" #define MATRIX_CODE_REQ //RJS 26Jun98 #include "Matrix.h" #include "WorldInc.h" #include "World.h" #include "3DCode.h" #include "3DCom.h" #include "HardpASM.h" #include "gameset.h" //PD 05Oct98 #include "LandScap.h" #include "myMath.h" #include "viewsel.h" //PD 19Mar96 #include "Collided.h" //PD 21Mar96 #include "keytest.h" //PD 20May96 #include "flymodel.h" //PD 24Jun96 #include "ImageMap.g" #include "migLand.h" //PD 19Jan98 #include "savegame.h" #include "missman2.h" #define INIT_HDATA //PD 25Nov97 #include "hdata.h" //PD 25Nov97 #include "monotxt.h" #include "prof.h" #include "miles.h" #include "tilemake.h" #include "overlay.h" #include "areatype.h" #include "grid.h" //jon #include "FastMath.h" // stuff i found was needed - Jon 3-5-200 #include "sky.h" #include "model.h" #include "Replay.h" // end of that section of needed stuff #include "persons2.h" // for the mirror landscape class LandScape Land_Scape; TileElement* TileResList::theGrid = NULL; // set up an instance //TempCode JON 13Sep00 typedef struct _MemBlockStruc //TempCode JON 13Sep00 { //TempCode JON 13Sep00 _MemBlockStruc* pBlockHeaderNext; //TempCode JON 13Sep00 _MemBlockStruc* pBlockHeaderPrev; //TempCode JON 13Sep00 char* filename; //TempCode JON 13Sep00 ULong nLine; //TempCode JON 13Sep00 ULong nDataSize; //TempCode JON 13Sep00 ULong nBlockUse; //TempCode JON 13Sep00 ULong lrequest; //TempCode JON 13Sep00 UByte gap[4]; //TempCode JON 13Sep00 UByte userdata[8]; //TempCode JON 13Sep00 } _MemBlockStruc; //TempCode JON 13Sep00 //TempCode JON 13Sep00 void DbgMemTest3(void* ptr) //TempCode JON 13Sep00 { //TempCode JON 13Sep00 if (ptr) //TempCode JON 13Sep00 { //TempCode JON 13Sep00 _MemBlockStruc* memblock = (_MemBlockStruc*) (int(ptr)-32); //TempCode JON 13Sep00 if ( (memblock->gap[0]!=0xFD) //TempCode JON 13Sep00 || (memblock->gap[1]!=0xFD) //TempCode JON 13Sep00 || (memblock->gap[2]!=0xFD) //TempCode JON 13Sep00 || (memblock->gap[3]!=0xFD) ) //TempCode JON 13Sep00 { //TempCode JON 13Sep00 INT3; //TempCode JON 13Sep00 } //TempCode JON 13Sep00 //TempCode JON 13Sep00 if ( (memblock->gap[4+memblock->nDataSize]!=0xFD) //TempCode JON 13Sep00 || (memblock->gap[5+memblock->nDataSize]!=0xFD) //TempCode JON 13Sep00 || (memblock->gap[6+memblock->nDataSize]!=0xFD) //TempCode JON 13Sep00 || (memblock->gap[7+memblock->nDataSize]!=0xFD) ) //TempCode JON 13Sep00 { //TempCode JON 13Sep00 INT3; //TempCode JON 13Sep00 } //TempCode JON 13Sep00 //TempCode JON 13Sep00 UByte* jon = (UByte*) ptr+memblock->nDataSize; //TempCode JON 13Sep00 NOP; //TempCode JON 13Sep00 } //TempCode JON 13Sep00 } UByte meshDetailLookup[5][9] = //JON 2Aug00 { // min { 1, 2, 3, 4, 6, 7, 7, 7, 7 }, // low { 0, 1, 2, 3, 4, 6, 7, 7, 7 }, // med { 0, 0, 1, 2, 3, 4, 6, 7, 7 }, // high { 0, 0, 1, 1, 2, 3, 4, 5, 6 }, // max { 0, 0, 0, 1, 1, 2, 3, 4, 4 }, }; UWord Lib3DPoint::copyCount = 0; int DitherLookUp[32]= { 0, //areatype 0 (and rotations), dither image 1 0, //areatype 1, dither image 1 0, //areatype 2, dither image 1 0, //areatype 3, dither image 1 0, //areatype 4, dither image 1 1, //areatype 5, dither image 2 ... 1, //6 1, //7 1, //8 1, //9 2, //10 2, 2, 2, 0, -1, //15 - has no dither... 2, 0, 2, 0, -1, //20 - the sea... -1, -1, -1, -1, -1,//25 -1, 3,//concrete 4, 5, 3,//30 -1 }; raiseTable RaiseLookUp[]= { {NULLIMAGE,0,0,0,0}, // the first 32 hold the values after scaling for current viewpoint {NULLIMAGE,0,0,0,0}, {NULLIMAGE,0,0,0,0}, {NULLIMAGE,0,0,0,0}, {NULLIMAGE,0,0,0,0}, {NULLIMAGE,0,0,0,0}, {NULLIMAGE,0,0,0,0}, {NULLIMAGE,0,0,0,0}, {NULLIMAGE,0,0,0,0}, {NULLIMAGE,0,0,0,0}, {NULLIMAGE,0,0,0,0}, {NULLIMAGE,0,0,0,0}, {NULLIMAGE,0,0,0,0}, {NULLIMAGE,0,0,0,0}, {NULLIMAGE,0,0,0,0}, {NULLIMAGE,0,0,0,0}, {NULLIMAGE,0,0,0,0}, {NULLIMAGE,0,0,0,0}, {NULLIMAGE,0,0,0,0}, {NULLIMAGE,0,0,0,0}, {NULLIMAGE,0,0,0,0}, {NULLIMAGE,0,0,0,0}, {NULLIMAGE,0,0,0,0}, {NULLIMAGE,0,0,0,0}, {NULLIMAGE,0,0,0,0}, {NULLIMAGE,0,0,0,0}, {NULLIMAGE,0,0,0,0}, {NULLIMAGE,0,0,0,0}, {NULLIMAGE,0,0,0,0}, {NULLIMAGE,0,0,0,0}, {NULLIMAGE,0,0,0,0}, {NULLIMAGE,0,0,0,0}, // these are for the unscaled equivalents... {NULLIMAGE,0,0,0,0}, //grass {NULLIMAGE,0,0,0,0}, {NULLIMAGE,0,0,0,0}, {NULLIMAGE,0,0,0,0}, {NULLIMAGE,0,0,0,0}, {NULLIMAGE,0,0,0,0}, // fields {NULLIMAGE,0,0,0,0}, {NULLIMAGE,0,0,0,0}, {NULLIMAGE,0,0,0,0}, {NULLIMAGE,0,0,0,0}, {NULLIMAGE,0,0,0,0}, // spreads {NULLIMAGE,0,0,0,0}, {NULLIMAGE,0,0,0,0}, {NULLIMAGE,0,0,0,0}, {NULLIMAGE,0,0,0,0}, {WOODNO,1500,1500,1500,1500,1,1,1,1}, // wood {NULLIMAGE,0,0,0,0}, // roughs {NULLIMAGE,0,0,0,0}, {NULLIMAGE,0,0,0,0}, {NULLIMAGE,0,0,0,0}, {NULLIMAGE,0,0,0,0}, //sea {NULLIMAGE,0,0,0,0}, //stream {NULLIMAGE,0,0,0,0}, //village {TOWNANO,600,900,1200,1500,2,3,4,5}, //denseTown //23 // please note that these point offsets sould start at 2 and go upward in consecutive numbers // for the town side stuff - relied upon to get the texture coords // {TOWNBNO,600,900,1200,1500}, //sparseTown {NULLIMAGE,0,0,0,0},//sparseTown //24 {CITYANO,1200,1500,2000,2500,6,7,8,9}, //denseCity //25 {CITYBNO,1200,1500,2000,2500,10,11,12,13}, //sparseCity //26 //TempCode JON 20Sep00 {CITYBNO,1200,1500,2000,2500,6,7,8,9}, //sparseCity //26 {NULLIMAGE,0,0,0,0}, //citybase {NULLIMAGE,0,0,0,0}, {NULLIMAGE,0,0,0,0}, {NULLIMAGE,0,0,0,0}, {NULLIMAGE,0,0,0,0} //urban buildup? }; //index on area type&mask - the second 32 are for the unscaled corresponding values for the 1st 32. SLong _cloudLayerHeight=15000*33; //1500ft in cm SLong lowestgroundpoint; //DEADCODE PD 03/12/99 extern void GreyPalette(UByte*,UByte*,UByte*); //DEADCODE PD 03/12/99 extern bool mono3d; struct LandScape::RouteData{ UWord type; ULong width; ULong maxWidth; Colour colour; LandMapNum plainTexture; UWord pX0,pY0,pX1,pY1; LandMapNum maskedTexture; UWord mX0,mY0,mX1,mY1; RouteData() {} RouteData( UWord a, ULong b, ULong bb, Colour c, LandMapNum d,UWord ax0,UWord ay0,UWord ax1,UWord ay1, LandMapNum e,UWord bx0,UWord by0,UWord bx1,UWord by1) { type=a; width=b; maxWidth=bb; colour=c; plainTexture=d; pX0=ax0; pY0=ay0; pX1=ax1; pY1=ay1; maskedTexture=d; mX0=bx0; mY0=by0; mX1=bx1; mY1=by1; } inline RouteData* find(UWord type){ RouteData* srch=this; while (srch->type!=type && srch->type!=0xFFFF) srch++; if (srch->type==0xFFFF) return (RouteData*)NULL; return srch; } }; void LandScape::ResetItemLog() { // if (Save_Data.fSoftware && softGrid!=NULL) // { // const SLong length=_wholeAreaSizeMIN*_wholeAreaSizeMIN; // UByte *ptr=softGrid; // for (SLong i=(length>>2)-1;i>=0;*(ULong*)ptr=ULong(0),ptr+=4,i--); // if (length&2L) *(UWord*)ptr=UWord(0),ptr+=2; // if (length&1L) *(UByte*)ptr=UByte(0); // } } bool LandScape::LogItem(ULong vx,ULong vz,COORDS3D& pos) { // if (Save_Data.fSoftware && softGrid!=NULL) // { // if (pos.Y>HIGHESTGROUND) return false; //no point logging an item > HIGHESTGROUND // // //generate grid position for this item // // ULong ox=(vx&~ULong(_blockWidth-1))-_halfAreaSizeMIN*_blockWidth; // ox=(pos.X>>17)-ox; if (ox>ULong(_wholeAreaSizeMIN-1)) return false; /* object not on grid */ // // ULong oz=(vz&~ULong(_blockWidth-1))-_halfAreaSizeMIN*_blockWidth; // oz=(pos.Z>>17)-oz; if (oz>ULong(_wholeAreaSizeMIN-1)) return false; /* object not on grid */ // // *(softGrid+(oz*_wholeAreaSizeMIN)+ox)=0xFF; // // return true; /* stop any further item insertion tests once one has been inserted successfully */ // } /* else */ return true; /* stop attempts to insert any items unless it's the software version */ } struct BoundingBox { //SLong MIN(const SLong a,const SLong b) { return ((a<b)?a:b); } //SLong MAX(const SLong a,const SLong b) { return ((a>b)?a:b); } const SLong ROUND_ERR_FIX; SLong minx,maxx; SLong miny,maxy; SLong minz,maxz; BoundingBox() : ROUND_ERR_FIX(0) {} BoundingBox(int num,COORDS3D* pts) : ROUND_ERR_FIX(131072>>1) { minx=maxx=pts->X; miny=maxy=pts->Y; minz=maxz=pts->Z; for (int i=num-1;i>0;i--) { minx=MIN(minx,pts[i].X); maxx=MAX(maxx,pts[i].X); miny=MIN(miny,pts[i].Y); maxy=MAX(maxy,pts[i].Y); minz=MIN(minz,pts[i].Z); maxx=MAX(maxz,pts[i].Z); } minx-=ROUND_ERR_FIX; miny-=ROUND_ERR_FIX; minz-=ROUND_ERR_FIX; maxx+=ROUND_ERR_FIX; maxy+=ROUND_ERR_FIX; maxz+=ROUND_ERR_FIX; } BoundingBox(const COORDS3D& ori,const COORDS3D& delta) : ROUND_ERR_FIX(0) { if (delta.X<0) maxx=ori.X, minx=maxx+delta.X; else minx=ori.X, maxx=minx+delta.X; if (delta.Y<0) maxy=ori.Y, miny=maxy+delta.Y; else miny=ori.Y, maxy=miny+delta.Y; if (delta.Z<0) maxz=ori.Z, minz=maxz+delta.Z; else minz=ori.Z, maxz=minz+delta.Z; } bool Overlap(const BoundingBox& box) { if (minx>box.maxx || maxx<box.minx || miny>box.maxy || maxy<box.miny || minx>box.maxz || maxz<box.minz) return false; return true; } }; const SLong MaxSmokeClouds = 48; //RJS 23May00 const SLong MaxTimeSmokeAlive = 60000; //RJS 24May00 const int SmokeAnimSize = 32; //RJS 24May00 static bool doneUpdateLandscape = false; static SLong lastMeshDataX = -10000; //JON 9Nov00 static SLong lastMeshDataZ = -10000; //컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴 //Procedure RenderLandscape //Author Paul. //Date Mon 6 Nov 1995 // //Description // //Inputs // //Returns // //------------------------------------------------------------------------------ void LandScape::RenderLandscape( CLib3D *lib3d ) //DEADCODE JON 4/6/00 ViewPoint* vp, //DEADCODE JON 4/6/00 FPMATRIX_PTR matrixptr, //DEADCODE JON 4/6/00 ULong& wx, ULong& wy, ULong& wz, //DEADCODE JON 4/6/00 ANGLES heading) { g_lpLib3d=lib3d; Bool old_xprod; //DeadCode JON 13Jul00 Bool otherfade; bool notMap=true; LIGHTINGDESC lightDesc; if (View_Point!=NULL) notMap=(View_Point->viewnum.viewmode!=VM_Map || (View_Point->viewnum.viewmode==VM_Map && OverLay.fZoomedMap))?true:false; if (View_Point->drawmap == FALSE) { lightDesc.lowRGB=currentLighting.landAmbientCollo.col(); lightDesc.highRGB=currentLighting.landAmbientColhi.col(); lightDesc.ambientRGB=currentLighting.sunCol.col(); //JON 5Oct00 lightDesc.lowDot=0.f; g_lpLib3d->GetMaxLandDotProduct(lightDesc.highDot); } else { lightDesc.lowRGB=0x00FFFFFF; lightDesc.highRGB=0x00FFFFFF; lightDesc.ambientRGB=0x00FFFFFF; lightDesc.lowDot=0.f; lightDesc.highDot=1.f; } lightDesc.specularRGB=currentLighting.specularHighlight.col(); g_lpLib3d->SetAmbientLighting(lightDesc); //Initialise variables local to 'LandScape' //DEADCODE JON 4/6/00 viewer_hdg = heading; //DEADCODE JON 4/6/00 viewer_x = wx; //DEADCODE JON 4/6/00 viewer_y = wy; //DEADCODE JON 4/6/00 viewer_z = wz; //DEADCODE JON 4/6/00 fpviewer_matrix = matrixptr; //Set various distance variables up View_Ground_Height = SetViewDetail(); //RJS 25Jun98 //DEADCODE JON 4/7/00 g_lpLib3d->LoadIdentity(MATRIX_VIEWER); //DEADCODE JON 4/7/00 g_lpLib3d->Rotate(MATRIX_VIEWER,AXIS_HEADING,(Angles)(int)View_Point->hdg); //DEADCODE JON 4/7/00 g_lpLib3d->Rotate(MATRIX_VIEWER,AXIS_PITCH,(Angles)-(int)View_Point->pitch); //DEADCODE JON 4/7/00 g_lpLib3d->Rotate(MATRIX_VIEWER,AXIS_ROLL,(Angles)-(int)View_Point->roll); //DEADCODE JON 4/7/00 if (View_Point->InCockpit()) //RJS 15Mar00 //DEADCODE JON 4/7/00 g_lpLib3d->Rotate(MATRIX_VIEWER,AXIS_HEADING,(Angles)(int)View_Point->eyeHeading); //DeadCode RJS 15Mar100 g_lpLib3d->SetProjectionMatrix((Angles)(int)Save_Data.fieldOfView,1,1,14829100,0); //DEADCODE JON 4/7/00 g_lpLib3d->SetProjectionMatrix((Angles)(int)Save_Data.fieldOfView,1,50,view_dist); //DEADCODE JON 4/7/00 g_lpLib3d->SetFogColour(0x0090B8E8); g_lpLib3d->PushMatrix(MATRIX_OBJECT); g_lpLib3d->LoadIdentity(MATRIX_OBJECT); D3DVECTOR viewMods; viewMods.x=(D3DVALUE)-viewer_x; viewMods.y=(D3DVALUE)-viewer_y; viewMods.z=(D3DVALUE)-viewer_z; g_lpLib3d->Translate( MATRIX_OBJECT, viewMods ); //Draw horizon in here if (View_Point && notMap) //RJS 10Sep98 { g_lpLib3d->SetGlobal( TOGGLE_TEXTURE_ZBIAS, 2 ); if (View_Point->drawmap == FALSE) { InfiniteStrip( View_Point->pitch, View_Point->roll ); R3DVERTEX fakeVertex; fakeVertex.x = fakeVertex.y = fakeVertex.z = fakeVertex.nx = fakeVertex.nz = 0.0f; fakeVertex.ny = 1.0f; // normal sticking up. g_lpLib3d->GetTransformedLightColour( fakeVertex, LF_LIGHTING ); // lightDesc.ambientRGB=currentLighting.landAmbientColamb.col(); // now set ambient col for sun lightDesc.ambientRGB=fakeVertex.color.all; g_lpLib3d->SetAmbientLighting(lightDesc); //JON 5Oct00 #ifndef _NOLANDSCAPE_ DrawHorizon(); #endif } g_lpLib3d->SetGlobal( TOGGLE_TEXTURE_ZBIAS, 2 ); lowestgroundpoint=0x7FFFFFFF; //PD 12Dec96 //DeadCode JON 13Jul00 otherfade=(!Three_Dee.IsPaused())?BadVision():FALSE; #ifndef _NOLANDSCAPE_ GeneratePointData(); #endif AutoScaleFrameRate(); if (lowestgroundpoint==0x07FFFFFFF) //JIM 29/03/99 lowestgroundpoint=0; //PD 27Sep97 g_lpLib3d->SetGlobal( TOGGLE_TEXTURE_ZBIAS, 0UL ); if (View_Point->drawmap == FALSE) { #ifndef _NOCLOUDS_ DistDrawClouds(0); #endif //deadcode JON 19/06/01 DoRain(View_Point,View_Ground_Height); //RJS 25Jun98 } } g_lpLib3d->PopMatrix(MATRIX_OBJECT); doneUpdateLandscape = false; //DeadCode JON 21Aug00 g_lpLib3d->DecGlobal( TOGGLE_TEXTURE_ZBIAS ); //DeadCode JON 21Aug00 static bool dotest = false; //DeadCode JON 21Aug00 if ( dotest ) //DeadCode JON 21Aug00 { //DeadCode JON 21Aug00 g_lpLib3d->SetGlobal( TOGGLE_TEXTURE_ZBIAS, ULong(0) ); //DeadCode JON 21Aug00 g_lpLib3d->FlushAsBackground(); //DeadCode JON 21Aug00 RenderMirrorLandscape(); //DeadCode JON 21Aug00 g_lpLib3d->LoadIdentity(MATRIX_OBJECT); //DeadCode JON 21Aug00 g_lpLib3d->LoadIdentity(MATRIX_VIEWER); //DeadCode JON 21Aug00 SVertex* jon = g_lpLib3d->BeginPoly( 4 ); //DeadCode JON 21Aug00 g_lpLib3d->SetProjectionMatrix((Angles)(int)Save_Data.fieldOfView,1,Three_Dee.clipNearZ,2000.f); //DeadCode JON 21Aug00 jon->setPosition( 0, 0, Three_Dee.clipNearZ ); //DeadCode JON 21Aug00 jon++; //DeadCode JON 21Aug00 jon->setPosition( 0, 1.f, Three_Dee.clipNearZ+10.f ); //DeadCode JON 21Aug00 jon++; //DeadCode JON 21Aug00 jon->setPosition( 0.5f, 0.5f, 1000.f ); //DeadCode JON 21Aug00 jon++; //DeadCode JON 21Aug00 jon->setPosition( 1.f, 0, 2000.f ); //DeadCode JON 21Aug00 g_lpLib3d->EndPoly(); //DeadCode JON 21Aug00 } } ////////////////////////////////////////////////////////////////////// // // Function: RenderMirrorLandscape // Date: 04/07/00 // Author: JON // //Description: Renders a low rez landscape using the c/urrent view set up in lib3d // to decide on visibility // ////////////////////////////////////////////////////////////////////// void LandScape::RenderMirrorLandscape( void ) { #ifndef _NOLANDSCAPE_ //TempCode JON 7Nov00 R3DCOLOUR fogCol; //TempCode JON 7Nov00 fogCol = ( (currentLighting.fogColSun.red()<<16)+(currentLighting.fogColSun.green()<<8)+currentLighting.fogColSun.blue() ); //TempCode JON 7Nov00 R3DCOLOUR fogColShade; //TempCode JON 7Nov00 fogColShade = ( (currentLighting.fogColShade.red()<<16)+(currentLighting.fogColShade.green()<<8)+currentLighting.fogColShade.blue() ); //TempCode JON 7Nov00 fogCol.interpRGB( fogColShade, sunProportion ); //TempCode JON 7Nov00 //TempCode JON 7Nov00 Three_Dee.fogCol=fogCol.all; //TempCode JON 7Nov00 g_lpLib3d->Wipe( Three_Dee.fogCol ); // viewx = Three_Dee.eye_x; // viewy = Three_Dee.eye_z; // g_lpLib3d->Rotate(MATRIX_VIEWER,AXIS_PITCH,(Angles)(-(int)Persons2::PlayerSeenAC->pitch)); // g_lpLib3d->Rotate(MATRIX_VIEWER,AXIS_ROLL,(Angles)(-(int)Persons2::PlayerSeenAC->roll)); LIGHTINGDESC lightDesc; lightDesc.lowRGB=currentLighting.landAmbientCollo.col(); lightDesc.highRGB=currentLighting.landAmbientColhi.col(); lightDesc.ambientRGB=currentLighting.sunCol.col(); //JON 5Oct00 lightDesc.lowDot=0.0f; lightDesc.highDot=1.0f; lightDesc.specularRGB=currentLighting.specularHighlight.col(); g_lpLib3d->SetAmbientLighting(lightDesc); LIGHTFLAG lf = LF_AMBIENT; g_lpLib3d->SetObjectLighting( lf ); ULong old_view_dist = view_dist; view_dist = RANGE_FAR_MIRROR; InfiniteStrip( Persons2::PlayerSeenAC->pitch, Persons2::PlayerSeenAC->roll ); // hahaha lightDesc.ambientRGB=currentLighting.landAmbientColamb.col(); // now set ambient col for landscape g_lpLib3d->SetAmbientLighting(lightDesc); g_lpLib3d->PushMatrix( MATRIX_OBJECT ); g_lpLib3d->LoadIdentity( MATRIX_OBJECT ); D3DVECTOR viewMods; viewMods.x=(D3DVALUE)-viewer_x; viewMods.y=(D3DVALUE)-(viewer_y+500.f); viewMods.z=(D3DVALUE)-viewer_z; g_lpLib3d->Translate( MATRIX_OBJECT, viewMods ); DoPointStruc* offPos = horizPoint; // note this depends upon the horizon distance as that way I can re-use the points. if ( Save_Data.detail_3d[DETAIL3D_HORIZONDIST] ) { // HIGH DISTANCE HORIZON ULong flags[_horizonPoints*_horizonPoints]; g_lpLib3d->VisibleCheck(horizPoint,_horizonPoints*_horizonPoints,flags); ULong *lowf=flags, *lowf2; DoPointStruc* offPos2; // reset the copy count Lib3DPoint* cornerVert; for (int sz=0;sz<_horizonAreaSize;sz++) { lowf2=lowf; lowf+=_horizonPoints; offPos2=offPos; offPos+=_horizonPoints; for (int sx=0;sx<_horizonAreaSize;sx++,lowf2++,offPos2++) { ULong flag=lowf2[0]&lowf2[1]&lowf2[_horizonPoints]&lowf2[_horizonPoints+1]; if ( !flag ) { // draw this grid cornerVert = g_lpLib3d->BeginPoly(HMATERIAL(horizonImg),4); cornerVert[0] = offPos2[0]; cornerVert[1] = offPos2[_horizonPoints]; cornerVert[2] = offPos2[_horizonPoints+1]; cornerVert[3] = offPos2[1]; #ifndef _NO_VERTEX_SHARING_HDR cornerVert[0].info.setUnique(); cornerVert[1].info.setUnique(); cornerVert[2].info.setUnique(); cornerVert[3].info.setUnique(); #endif g_lpLib3d->EndPoly(); } } } } else { // LOW DISTANCE HORIZON int x = viewer_x>>Grid_Base::WORLDSPACEMOD; int z = viewer_z>>Grid_Base::WORLDSPACEMOD; // do we need to redo the imagemap? if ( gridOffs.needColMapUpdate( x, z ) ) { // we need to recalculate the imagemap UpdateHorizTexture( x, z ); } // end of update imagemap ULong flags[_cornerLengthMIN*_cornerLengthMIN]; g_lpLib3d->VisibleCheck(horizPoint,_cornerLengthMIN*_cornerLengthMIN,flags); ULong *lowf=flags, *lowf2; DoPointStruc* offPos2; // reset the copy count Lib3DPoint* cornerVert; for (int sz=0;sz<_wholeAreaSizeMIN;sz++) { lowf2=lowf; lowf+=_cornerLengthMIN; offPos2=offPos; offPos+=_cornerLengthMIN; for (int sx=0;sx<_wholeAreaSizeMIN;sx++,lowf2++,offPos2++) { ULong flag=lowf2[0]&lowf2[1]&lowf2[_cornerLengthMIN]&lowf2[_cornerLengthMIN+1]; if ( !flag ) { // draw this grid cornerVert = g_lpLib3d->BeginPoly(HMATERIAL(horizonImg),4); cornerVert[0] = offPos2[0]; cornerVert[1] = offPos2[_cornerLengthMIN]; cornerVert[2] = offPos2[_cornerLengthMIN+1]; cornerVert[3] = offPos2[1]; #ifndef _NO_VERTEX_SHARING_HDR cornerVert[0].info.setUnique(); cornerVert[1].info.setUnique(); cornerVert[2].info.setUnique(); cornerVert[3].info.setUnique(); #endif g_lpLib3d->EndPoly(); } } } } g_lpLib3d->PopMatrix( MATRIX_OBJECT ); g_lpLib3d->SetObjectLighting( lf ); #endif view_dist = old_view_dist; } //DEADCODE JON 5/3/00 //DEADCODE JON 5/3/00 // assume x down and z goes left to right //DEADCODE JON 5/3/00 struct vec2d //DEADCODE JON 5/3/00 { //DEADCODE JON 5/3/00 long x,z; // the position //DEADCODE JON 5/3/00 long ex; // the other end used to throw out stuff.. //DEADCODE JON 5/3/00 double dx; // the direction vector //DEADCODE JON 5/3/00 double dz; //DEADCODE JON 5/3/00 double m; // gradient - how far to move in z for 1 in x - speedup cheat. //DEADCODE JON 5/3/00 bool horiz; // is it horizontal //DEADCODE JON 5/3/00 //DEADCODE JON 5/3/00 // constructor from 2 points //DEADCODE JON 5/3/00 bool buildFromPts( long x1, long z1, long x2, long z2 ) //DEADCODE JON 5/3/00 { //DEADCODE JON 5/3/00 if ( x1 == x2 && z1 == z2 ) //DEADCODE JON 5/3/00 return false; // not a line //DEADCODE JON 5/3/00 //DEADCODE JON 5/3/00 x = x1; //DEADCODE JON 5/3/00 z = z1; //DEADCODE JON 5/3/00 ex = x2; //DEADCODE JON 5/3/00 //DEADCODE JON 5/3/00 dx = double(x2-x1); //DEADCODE JON 5/3/00 dz = double(z2-z1); //DEADCODE JON 5/3/00 //DEADCODE JON 5/3/00 horiz = false; //DEADCODE JON 5/3/00 if ( x1 != x2 ) //DEADCODE JON 5/3/00 m = dz/dx; //DEADCODE JON 5/3/00 else //DEADCODE JON 5/3/00 horiz = true; //DEADCODE JON 5/3/00 //DEADCODE JON 5/3/00 // normalize //DEADCODE JON 5/3/00 // double nv = fastMath.FastInvSqrt((dx*dx)+(dz*dz)); // seems not to be accurate enough //DEADCODE JON 5/3/00 double nv = 1.0/sqrt( (dx*dx)+(dz*dz) ); //DEADCODE JON 5/3/00 dx*=nv; //DEADCODE JON 5/3/00 dz*=nv; //DEADCODE JON 5/3/00 //DEADCODE JON 5/3/00 return true; //DEADCODE JON 5/3/00 } //DEADCODE JON 5/3/00 //DEADCODE JON 5/3/00 // get the angle between lines //DEADCODE JON 5/3/00 double getAngleSize( vec2d &t ) //DEADCODE JON 5/3/00 { //DEADCODE JON 5/3/00 double V = t.getAngleSizeToVert() - getAngleSizeToVert(); //DEADCODE JON 5/3/00 if ( V < 0 ) //DEADCODE JON 5/3/00 return 4.0+V; //DEADCODE JON 5/3/00 else //DEADCODE JON 5/3/00 return V; //DEADCODE JON 5/3/00 } //DEADCODE JON 5/3/00 //DEADCODE JON 5/3/00 // vert pointing down as X increaces... //DEADCODE JON 5/3/00 double getAngleSizeToVert() //DEADCODE JON 5/3/00 { // the other direction vector would have dx = 1, dz = 0; //DEADCODE JON 5/3/00 // therefore dx*1 + dz*0 = dx - dead simple! //DEADCODE JON 5/3/00 // don't bother with doing an inverse cosine on the angle just to be able to compare sizes //DEADCODE JON 5/3/00 // just return 1-dx which will give the angle's relative size. //DEADCODE JON 5/3/00 if ( dz > 0.0 ) // range from 0->2 //DEADCODE JON 5/3/00 return 1.0-dx; //DEADCODE JON 5/3/00 else // oh its over 180 degrees - make the values range from 4 to 2... //DEADCODE JON 5/3/00 return 3.0+dx; //DEADCODE JON 5/3/00 } //DEADCODE JON 5/3/00 // return the z for given x. //DEADCODE JON 5/3/00 ULong getz( long tx, bool &inBounds ) //DEADCODE JON 5/3/00 { //DEADCODE JON 5/3/00 if ( tx>>Grid_Base::WORLDSPACEMOD >= x>>Grid_Base::WORLDSPACEMOD //DEADCODE JON 5/3/00 && tx>>Grid_Base::WORLDSPACEMOD <= ex>>Grid_Base::WORLDSPACEMOD //DEADCODE JON 5/3/00 || tx>>Grid_Base::WORLDSPACEMOD <= x>>Grid_Base::WORLDSPACEMOD //DEADCODE JON 5/3/00 && tx>>Grid_Base::WORLDSPACEMOD >= ex>>Grid_Base::WORLDSPACEMOD ) //DEADCODE JON 5/3/00 if ( tx >= x && tx <= ex || tx <= x && tx >= ex ) //DEADCODE JON 5/3/00 inBounds = true; //DEADCODE JON 5/3/00 else //DEADCODE JON 5/3/00 inBounds = false; //DEADCODE JON 5/3/00 //DEADCODE JON 5/3/00 // if ( tx > x ) //DEADCODE JON 5/3/00 // return z+ULong(m*float(tx-x)+.5f); //DEADCODE JON 5/3/00 // else //DEADCODE JON 5/3/00 // return z-ULong(m*float(x-tx)-.5f); //DEADCODE JON 5/3/00 return z+long(m*float(tx-x)+.5f); //DEADCODE JON 5/3/00 } //DEADCODE JON 5/3/00 }; inline void interceptBase( COORDS3D &below, const COORDS3D &above ) { if ( above.Y > 0 && below.Y < 0 ) { float k = float(-above.Y)/float(below.Y-above.Y); below.X+=SLong( float( above.X-below.X ) * k ); below.Y=0; below.Z+=SLong( float( above.Z-below.Z ) * k ); } } void LandScape::UpdateHorizTextureIfMoved( const int x, const int z ) { // do we need to redo the imagemap? if ( gridOffs.hasHorizMoved( x, z ) ) { // we need to recalculate the imagemap UpdateHorizTexture( x, z ); } // end of update imagemap } void LandScape::UpdateHorizTexture( const int x, const int z ) { gridOffs.setColMapCoords( x, z ); // unload the old one from the card. g_lpLib3d->UnloadTexture( horizonImg ); //DEADCODE CSB 25/05/00 fileblock fb( FIL_4COLGRID, Grid_Base::makeGridAt ); Grid_Long* colD = (Grid_Long*) Grid_Base::gridfiles[Grid_Base::GF_COLOUR].getdata(); UByte* t = horizonImg->body; for ( int sz = (z<<1)-128; sz < (z<<1)+128; sz++ ) for ( int sx = (x<<1)-128; sx < (x<<1)+128; sx++ ) { *t++ = colD->getModD( sx, sz ); } } ////////////////////////////////////////////////////////////////////// // // Function: UpdateCloseHorizCornerPoints // Date: 03/08/00 // Author: JON // //Description: does exactly what it says on the tin.... // ////////////////////////////////////////////////////////////////////// inline void LandScape::UpdateCloseHorizCornerPoints( const int x, const int z ) { // recalc horizon vertex points //Generate start position based on the current viewpoint ULong px,pz; px = (x-_halfAreaSizeMIN)<<Grid_Base::WORLDSPACEMOD; pz = (z-_halfAreaSizeMIN)<<Grid_Base::WORLDSPACEMOD; DoPointStruc* curPoint=horizPoint; // get the grid data 4 min altitudes //DeadCode JON 9Jun00 fileblock fb1( FIL_MINALT, Grid_Base::makeGridAt ); //DeadCode JON 9Jun00 Grid_Base* minAlt = (Grid_Base*) fb1.getdata(); //DeadCode JON 9Aug00 Grid_Base* minAlt = (Grid_Base*) Grid_Base::gridfiles[Grid_Base::GF_MINALT].getdata(); Grid_Base* cornerAlt = (Grid_Base*) Grid_Base::gridfiles[Grid_Base::GF_CORNERALT].getdata(); int imx,imz,rowStart; // image map coords imz = (z+(64-_horizonDist) - gridOffs.hz )<<1; rowStart = (x+(64-_horizonDist) - gridOffs.hx)<<1; imz+=( (_horizonDist-_halfAreaSizeMIN)<<1 ); rowStart+= ( (_horizonDist-_halfAreaSizeMIN)<<1 ); for (int sz=0;sz<_cornerLengthMIN;sz++,pz+=_blockWidth,imz+=2) // loop tru z { ULong rowx = px; imx = rowStart; for ( int sx=0; sx<_cornerLengthMIN; sx++,rowx+=_blockWidth,curPoint++,imx+=2) // loop x { //DEADCODE JON 5/24/00 curPoint->y=(minAlt->getMod( x-_halfAreaSizeMIN+sx, z-_halfAreaSizeMIN+sz )-2)<<9; //DEADCODE JON 5/24/00 curPoint->x=rowx; //DEADCODE JON 5/24/00 curPoint->z=pz; curPoint->setPosition( rowx, (cornerAlt->getMod( x-_halfAreaSizeMIN+sx, z-_halfAreaSizeMIN+sz ) << _altitudeShift), //DeadCode JON 9Aug00 (minAlt->getMod( x-_halfAreaSizeMIN+sx, z-_halfAreaSizeMIN+sz )-2)<<9, pz ); curPoint->setIMapCoords( imx, imz ); // maybe needed if no tile imagemap } } } void LandScape::SetUpVisibleCones( CLib3D *lib3d, ViewPoint* vp, ULong& wx, ULong& wy, ULong& wz, ANGLES heading, bool doMaxResTiles ) { //DeadCode MS 15Aug00 Mono_Text.Print((UByte*)"SUVC: start "); // set up variables local to landscape g_lpLib3d=lib3d; viewer_hdg = heading; viewer_x = wx; viewer_y = wy; viewer_z = wz; View_Point = vp; OverLay.DoPossibleLandscapeRefresh(); maxResTiles = doMaxResTiles; // set up the view g_lpLib3d->LoadIdentity(MATRIX_VIEWER); g_lpLib3d->LoadIdentity(MATRIX_OBJECT); g_lpLib3d->Rotate(MATRIX_VIEWER,AXIS_HEADING,(Angles)(int)View_Point->hdg); g_lpLib3d->Rotate(MATRIX_VIEWER,AXIS_PITCH,(Angles)-(int)View_Point->pitch); g_lpLib3d->Rotate(MATRIX_VIEWER,AXIS_ROLL,(Angles)-(int)View_Point->roll); //DEADCODE RJS 5/9/00 if (View_Point->InCockpit()) //RJS 15Mar00 //DEADCODE RJS 5/9/00 { //DEADCODE RJS 5/9/00 g_lpLib3d->Rotate(MATRIX_VIEWER,AXIS_HEADING,(Angles)(int)View_Point->eyeHeading); //DEADCODE RJS 5/9/00 viewer_hdg += View_Point->eyeHeading; //DEADCODE RJS 5/9/00 } //DeadCode RJS 15Mar100 g_lpLib3d->SetProjectionMatrix((Angles)(int)Save_Data.fieldOfView,1,1,14829100,0); g_lpLib3d->SetProjectionMatrix((Angles)(int)Save_Data.fieldOfView,10,view_dist,true); //DEADCODE JON 4/18/00 g_lpLib3d->SetFogColour(0x0090B8E8); D3DVECTOR viewMods; viewMods.x=(D3DVALUE)-viewer_x; viewMods.y=(D3DVALUE)-viewer_y; viewMods.z=(D3DVALUE)-viewer_z; g_lpLib3d->Translate( MATRIX_OBJECT, viewMods ); // calculate the current block position int x = viewer_x>>Grid_Base::WORLDSPACEMOD; int z = viewer_z>>Grid_Base::WORLDSPACEMOD; if ( Save_Data.detail_3d[DETAIL3D_HORIZONDIST] ) { // HIGH DISTANCE HORIZON //DeadCode MS 15Aug00 Mono_Text.Print((UByte*)"SUVC: high distance horizon "); // cheap mem zero - change if _wholeAreaSizeMIN changes. long* t = (long*)gridCone; for ( int i = 0; i< 72; i++ ) { *t++ = 0; } gridCone[288] = 0; if ( gridOffs.hasMoved( x, z ) ) // have we moved to a new block { ScrollTileGrid( x - gridOffs.jx, z - gridOffs.jz ); // move the texture tiles about gridOffs.set( x, z ); // do we need to redo the imagemap? if ( gridOffs.needColMapUpdate( x, z ) ) { // we need to recalculate the imagemap UpdateHorizTexture( x, z ); } // end of update imagemap // recalc horizon vertex points //Generate start position based on the current viewpoint ULong px,pz; px = (x-_horizonDist)<<Grid_Base::WORLDSPACEMOD; pz = (z-_horizonDist)<<Grid_Base::WORLDSPACEMOD; DoPointStruc* curPoint=horizPoint; int imx,imz,rowStart; // image map coords imz = (z+(64-_horizonDist) - gridOffs.hz )<<1; rowStart = (x+(64-_horizonDist) - gridOffs.hx)<<1; // get the grid data 4 min altitudes // fileblock fb1( FIL_MINALT, Grid_Base::makeGridAt ); // Grid_Base* minAlt = (Grid_Base*) fb1.getdata(); // Grid_Base* minAlt = (Grid_Base*) Grid_Base::gridfiles[Grid_Base::GF_MINALT].getdata(); Grid_Base* cornerAlt = (Grid_Base*) Grid_Base::gridfiles[Grid_Base::GF_CORNERALT].getdata(); for (int sz=0;sz<_horizonPoints;sz++,pz+=_blockWidth,imz+=2) // loop tru z { imx = rowStart; ULong rowx = px; for ( int sx=0; sx<_horizonPoints; sx++,rowx+=_blockWidth,curPoint++,imx+=2) // loop x { curPoint->setPosition( rowx, (cornerAlt->getMod( x-_horizonDist+sx, z-_horizonDist+sz ) << _altitudeShift), // (minAlt->getMod( x-_horizonDist+sx, z-_horizonDist+sz )-2)<<9, pz ); curPoint->setIMapCoords( imx, imz ); //TEMPCODE JON 6/1/00 curPoint->info.setUnique(); //DEADCODE JON 5/24/00 curPoint->y=(minAlt->getMod( x-_horizonDist+sx, z-_horizonDist+sz )-2)<<9; //DEADCODE JON 5/24/00 curPoint->x=rowx; //DEADCODE JON 5/24/00 curPoint->z=pz; //DEADCODE JON 5/24/00 curPoint->ix = imx; //DEADCODE JON 5/24/00 curPoint->iy = imz; } } } // end of update stored stuff ULong flags[_horizonPoints*_horizonPoints]; //DeadCode MS 15Aug00 Mono_Text.Print((UByte*)"SUVC: visiblecheck "); g_lpLib3d->VisibleCheck(horizPoint,_horizonPoints*_horizonPoints,flags); ULong *lowf=flags, *lowf2; bool *horizConePos = horizCone; int hirezGroundRadiusSq = viewer_y>>_blockShift; // using pythagarus hirezGroundRadiusSq*=-hirezGroundRadiusSq; hirezGroundRadiusSq+=((_wholeAreaSizeMIN)*(_wholeAreaSizeMIN));//(_halfAreaSizeMIN*_halfAreaSizeMIN); int hirezGroundRadiusSqMin = viewer_y>>_blockShift; // using pythagarus hirezGroundRadiusSqMin++; hirezGroundRadiusSqMin*=-hirezGroundRadiusSqMin; hirezGroundRadiusSqMin+=((_wholeAreaSizeMIN-1)*(_wholeAreaSizeMIN-1));//(_halfAreaSizeMIN*_halfAreaSizeMIN); //DeadCode MS 15Aug00 Mono_Text.Print((UByte*)"SUVC: for sz "); for (int sz=0;sz<_horizonAreaSize;sz++) { lowf2=lowf; lowf+=_horizonPoints; for (int sx=0;sx<_horizonAreaSize;sx++,lowf2++,horizConePos++) { // ULong flag=lowf2[0]|lowf2[1]|lowf2[_horizonPoints]|lowf2[_horizonPoints+1]; ULong flag=lowf2[0]&lowf2[1]&lowf2[_horizonPoints]&lowf2[_horizonPoints+1]; if ( !flag ) { // draw this grid SWord dx = (sx<<1) - (_horizonPoints-1); // distance from center dx *= dx; SWord dz = (sz<<1) - (_horizonPoints-1); // distance from center dz *= dz; UWord distSq = dx+dz; // dist from center squared //DeadCode JON 14Sep00 if ( distSq > ((_wholeAreaSizeMIN)*(_wholeAreaSizeMIN)) ) if ( distSq > hirezGroundRadiusSq ) { // draw in a distant horizon tile at a later point *horizConePos = true; } else { // set the flag 4 the hirez tile to be drawn const int FUDGE_VAL = 110; // enough to ensure an overlap... //DeadCode JON 14Sep00 if ( distSq >= ((_wholeAreaSizeMIN-1)*(_wholeAreaSizeMIN-1))-FUDGE_VAL) if ( distSq >= (hirezGroundRadiusSq)-FUDGE_VAL) *horizConePos = true; else *horizConePos = false; UWord ox = UWord( sx ); // offsets from the top of this grid UWord oz = UWord( sz ); ox -= ( (_horizonPoints-_wholeAreaSizeMIN) / 2 ); oz -= ( (_horizonPoints-_wholeAreaSizeMIN) / 2 ); #ifndef NDEBUG static int minx = 100; static int minz = 100; static int maxx = 0; static int maxz = 0; if ( ox > maxx ) maxx = ox; if ( ox < minx ) minx = ox; if ( oz < minz ) minz = oz; if ( oz > maxz ) maxz = oz; int tmp = (oz*_wholeAreaSizeMIN) + ox; if ( (tmp<0) || (tmp >= _wholeAreaSizeMIN*_wholeAreaSizeMIN) ) INT3; // oops we've gone off the grid. gridCone[ tmp ] = 1; #else gridCone[ (oz*_wholeAreaSizeMIN) + ox ] = 1; #endif } } } } } else { // LOW DISTANCE HORIZON //DeadCode MS 15Aug00 Mono_Text.Print((UByte*)"SUVC: low distance horizon "); // _wholeAreaSizeMIN if ( gridOffs.hasMoved( x, z ) ) // have we moved to a new block { ScrollTileGrid( x - gridOffs.jx, z - gridOffs.jz ); // move the texture tiles about gridOffs.set( x, z ); UpdateCloseHorizCornerPoints( x, z ); } // end of update stored stuff ULong flags[_cornerLengthMIN*_cornerLengthMIN]; g_lpLib3d->VisibleCheck(horizPoint,_cornerLengthMIN*_cornerLengthMIN,flags); ULong *lowf=flags, *lowf2; bool *gridConePos = (bool*)gridCone; for (int sz=0;sz<_wholeAreaSizeMIN;sz++) { lowf2=lowf; lowf+=_cornerLengthMIN; for (int sx=0;sx<_wholeAreaSizeMIN;sx++,lowf2++,gridConePos++) { ULong flag=lowf2[0]&lowf2[1]&lowf2[_cornerLengthMIN]&lowf2[_cornerLengthMIN+1]; if ( !flag ) { // draw this grid *gridConePos = true; } else { *gridConePos = false; } } } } // remake any textures needed //DeadCode MS 15Aug00 Mono_Text.Print((UByte*)"SUVC: last test "); if (Land_Scape.UpdateTexturesWRTViewPos()==false && Land_Scape.UpdateTexturesWRTViewPos()==false && Land_Scape.UpdateTexturesWRTViewPos()==false) { RefreshLandscape(); if ( !UpdateTexturesWRTViewPos() ) assert(false&&"Unrecoverable landscape error"); } //DeadCode MS 15Aug00 Mono_Text.Print((UByte*)"SUVC: stop\n"); lastMeshDataX = x; lastMeshDataZ = z; } //컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴 //Procedure DrawHorizon //Author Jon. //Date Thurs 27th Jan 2000 //------------------------------------------------------------------------------ void LandScape::DrawHorizon( void ) { if ( Save_Data.detail_3d[DETAIL3D_HORIZONDIST] ) { // HIGH DISTANCE HORIZON Lib3DPoint* cornerVert; #ifndef _NO_UNDERGROUND_FILL const int NUM_FILL_BANDS = 3; const ULong dist = _blockWidth*_horizonDist; ULong zLayer = FORCE_TO_BACK_Z; g_lpLib3d->SetGlobal( TOGGLE_TEXTURE_ZBIAS, &zLayer ); for ( int i = 1; i<=NUM_FILL_BANDS; i++ ) { g_lpLib3d->SetFarClipPlane( float(_hirezDrawDist)*float(i)/float(NUM_FILL_BANDS) ); //DeadCode JON 3Nov00 const int baseDepth = -700*100; //DeadCode JON 3Nov00 const int edgeDepth = -200*100; //DeadCode JON 3Nov00 // quick cheat - draw a plain poly across the base in order to cover up the nasty blue tears //DeadCode JON 3Nov00 cornerVert = g_lpLib3d->BeginPoly( HMATERIAL(47), 3 ); //DeadCode JON 3Nov00 cornerVert[0].setPosition( //DeadCode JON 3Nov00 viewer_x-(dist), //DeadCode JON 3Nov00 edgeDepth, //DeadCode JON 3Nov00 viewer_z+(dist) //DeadCode JON 3Nov00 ); //DeadCode JON 3Nov00 //DeadCode JON 3Nov00 cornerVert[1].setPosition( //DeadCode JON 3Nov00 viewer_x+(dist), //DeadCode JON 3Nov00 edgeDepth, //DeadCode JON 3Nov00 viewer_z+(dist) //DeadCode JON 3Nov00 ); //DeadCode JON 3Nov00 //DeadCode JON 3Nov00 cornerVert[2].setPosition( //DeadCode JON 3Nov00 viewer_x, //DeadCode JON 3Nov00 baseDepth, //DeadCode JON 3Nov00 viewer_z //DeadCode JON 3Nov00 ); //DeadCode JON 3Nov00 g_lpLib3d->EndPoly(); //DeadCode JON 3Nov00 //DeadCode JON 3Nov00 //DeadCode JON 3Nov00 cornerVert = g_lpLib3d->BeginPoly( 3 ); //DeadCode JON 3Nov00 cornerVert[0].setPosition( //DeadCode JON 3Nov00 viewer_x+(dist), //DeadCode JON 3Nov00 edgeDepth, //DeadCode JON 3Nov00 viewer_z+(dist) //DeadCode JON 3Nov00 ); //DeadCode JON 3Nov00 //DeadCode JON 3Nov00 cornerVert[1].setPosition( //DeadCode JON 3Nov00 viewer_x+(dist), //DeadCode JON 3Nov00 edgeDepth, //DeadCode JON 3Nov00 viewer_z-(dist) //DeadCode JON 3Nov00 ); //DeadCode JON 3Nov00 //DeadCode JON 3Nov00 cornerVert[2].setPosition( //DeadCode JON 3Nov00 viewer_x, //DeadCode JON 3Nov00 baseDepth, //DeadCode JON 3Nov00 viewer_z //DeadCode JON 3Nov00 ); //DeadCode JON 3Nov00 g_lpLib3d->EndPoly(); //DeadCode JON 3Nov00 //DeadCode JON 3Nov00 cornerVert = g_lpLib3d->BeginPoly( 3 ); //DeadCode JON 3Nov00 cornerVert[0].setPosition( //DeadCode JON 3Nov00 viewer_x+(dist), //DeadCode JON 3Nov00 edgeDepth, //DeadCode JON 3Nov00 viewer_z-(dist) //DeadCode JON 3Nov00 ); //DeadCode JON 3Nov00 //DeadCode JON 3Nov00 cornerVert[1].setPosition( //DeadCode JON 3Nov00 viewer_x-(dist), //DeadCode JON 3Nov00 edgeDepth, //DeadCode JON 3Nov00 viewer_z-(dist) //DeadCode JON 3Nov00 ); //DeadCode JON 3Nov00 //DeadCode JON 3Nov00 cornerVert[2].setPosition( //DeadCode JON 3Nov00 viewer_x, //DeadCode JON 3Nov00 baseDepth, //DeadCode JON 3Nov00 viewer_z //DeadCode JON 3Nov00 ); //DeadCode JON 3Nov00 g_lpLib3d->EndPoly(); //DeadCode JON 3Nov00 //DeadCode JON 3Nov00 cornerVert = g_lpLib3d->BeginPoly( 3 ); //DeadCode JON 3Nov00 cornerVert[0].setPosition( //DeadCode JON 3Nov00 viewer_x-(dist), //DeadCode JON 3Nov00 edgeDepth, //DeadCode JON 3Nov00 viewer_z-(dist) //DeadCode JON 3Nov00 ); //DeadCode JON 3Nov00 //DeadCode JON 3Nov00 cornerVert[1].setPosition( //DeadCode JON 3Nov00 viewer_x-(dist), //DeadCode JON 3Nov00 edgeDepth, //DeadCode JON 3Nov00 viewer_z+(dist) //DeadCode JON 3Nov00 ); //DeadCode JON 3Nov00 //DeadCode JON 3Nov00 cornerVert[2].setPosition( //DeadCode JON 3Nov00 viewer_x, //DeadCode JON 3Nov00 baseDepth, //DeadCode JON 3Nov00 viewer_z //DeadCode JON 3Nov00 ); //DeadCode JON 3Nov00 g_lpLib3d->EndPoly(); cornerVert = g_lpLib3d->BeginPoly( HMATERIAL(47), 4 ); cornerVert[0].setPosition( viewer_x-(dist), 0.0f, viewer_z+(dist) ); cornerVert[1].setPosition( viewer_x+(dist), 0.0f, viewer_z+(dist) ); cornerVert[2].setPosition( viewer_x+(dist), 0.0f, viewer_z-(dist) ); cornerVert[3].setPosition( viewer_x-(dist), 0.0f, viewer_z-(dist) ); g_lpLib3d->EndPoly(); g_lpLib3d->SetNearClipPlane( float(_hirezDrawDist)*float(i)/float(NUM_FILL_BANDS) ); } g_lpLib3d->SetFarClipPlane( dist ); cornerVert = g_lpLib3d->BeginPoly( HMATERIAL(47), 4 ); cornerVert[0].setPosition( viewer_x-(dist), 0.0f, viewer_z+(dist) ); cornerVert[1].setPosition( viewer_x+(dist), 0.0f, viewer_z+(dist) ); cornerVert[2].setPosition( viewer_x+(dist), 0.0f, viewer_z-(dist) ); cornerVert[3].setPosition( viewer_x-(dist), 0.0f, viewer_z-(dist) ); g_lpLib3d->EndPoly(); // put the z layer back g_lpLib3d->SetGlobal( TOGGLE_TEXTURE_ZBIAS, zLayer ); g_lpLib3d->FlushAsBackground(); #endif // calculate the current block position //DeadCode JON 5Jul00 int x = viewer_x>>Grid_Base::WORLDSPACEMOD; //DeadCode JON 5Jul00 int z = viewer_z>>Grid_Base::WORLDSPACEMOD; g_lpLib3d->SetProjectionMatrix((Angles)(int)Save_Data.fieldOfView,(_hirezDrawDist-(_blockWidth*4)),view_dist,true); //JON 29Aug00 //DeadCode JON 23Oct00 #ifndef _NO_UNDERGROUND_FILL //DeadCode JON 23Oct00 //DeadCode JON 23Oct00 const int baseDepth = -700*100; //DeadCode JON 23Oct00 const int edgeDepth = -200*100; //DeadCode JON 23Oct00 // quick cheat - draw a plain poly across the base in order to cover up the nasty blue tears //DeadCode JON 23Oct00 cornerVert = g_lpLib3d->BeginPoly( HMATERIAL(47), 3 ); //DeadCode JON 23Oct00 cornerVert[0].setPosition( //DeadCode JON 23Oct00 viewer_x-(_blockWidth*_horizonDist), //DeadCode JON 23Oct00 edgeDepth, //DeadCode JON 23Oct00 viewer_z+(_blockWidth*_horizonDist) //DeadCode JON 23Oct00 ); //DeadCode JON 23Oct00 //DeadCode JON 23Oct00 cornerVert[1].setPosition( //DeadCode JON 23Oct00 viewer_x+(_blockWidth*_horizonDist), //DeadCode JON 23Oct00 edgeDepth, //DeadCode JON 23Oct00 viewer_z+(_blockWidth*_horizonDist) //DeadCode JON 23Oct00 ); //DeadCode JON 23Oct00 //DeadCode JON 23Oct00 cornerVert[2].setPosition( //DeadCode JON 23Oct00 viewer_x, //DeadCode JON 23Oct00 baseDepth, //DeadCode JON 23Oct00 viewer_z //DeadCode JON 23Oct00 ); //DeadCode JON 23Oct00 g_lpLib3d->EndPoly(); //DeadCode JON 23Oct00 //DeadCode JON 23Oct00 //DeadCode JON 23Oct00 cornerVert = g_lpLib3d->BeginPoly( 3 ); //DeadCode JON 23Oct00 cornerVert[0].setPosition( //DeadCode JON 23Oct00 viewer_x+(_blockWidth*_horizonDist), //DeadCode JON 23Oct00 edgeDepth, //DeadCode JON 23Oct00 viewer_z+(_blockWidth*_horizonDist) //DeadCode JON 23Oct00 ); //DeadCode JON 23Oct00 //DeadCode JON 23Oct00 cornerVert[1].setPosition( //DeadCode JON 23Oct00 viewer_x+(_blockWidth*_horizonDist), //DeadCode JON 23Oct00 edgeDepth, //DeadCode JON 23Oct00 viewer_z-(_blockWidth*_horizonDist) //DeadCode JON 23Oct00 ); //DeadCode JON 23Oct00 //DeadCode JON 23Oct00 cornerVert[2].setPosition( //DeadCode JON 23Oct00 viewer_x, //DeadCode JON 23Oct00 baseDepth, //DeadCode JON 23Oct00 viewer_z //DeadCode JON 23Oct00 ); //DeadCode JON 23Oct00 g_lpLib3d->EndPoly(); //DeadCode JON 23Oct00 //DeadCode JON 23Oct00 cornerVert = g_lpLib3d->BeginPoly( 3 ); //DeadCode JON 23Oct00 cornerVert[0].setPosition( //DeadCode JON 23Oct00 viewer_x+(_blockWidth*_horizonDist), //DeadCode JON 23Oct00 edgeDepth, //DeadCode JON 23Oct00 viewer_z-(_blockWidth*_horizonDist) //DeadCode JON 23Oct00 ); //DeadCode JON 23Oct00 //DeadCode JON 23Oct00 cornerVert[1].setPosition( //DeadCode JON 23Oct00 viewer_x-(_blockWidth*_horizonDist), //DeadCode JON 23Oct00 edgeDepth, //DeadCode JON 23Oct00 viewer_z-(_blockWidth*_horizonDist) //DeadCode JON 23Oct00 ); //DeadCode JON 23Oct00 //DeadCode JON 23Oct00 cornerVert[2].setPosition( //DeadCode JON 23Oct00 viewer_x, //DeadCode JON 23Oct00 baseDepth, //DeadCode JON 23Oct00 viewer_z //DeadCode JON 23Oct00 ); //DeadCode JON 23Oct00 g_lpLib3d->EndPoly(); //DeadCode JON 23Oct00 //DeadCode JON 23Oct00 cornerVert = g_lpLib3d->BeginPoly( 3 ); //DeadCode JON 23Oct00 cornerVert[0].setPosition( //DeadCode JON 23Oct00 viewer_x-(_blockWidth*_horizonDist), //DeadCode JON 23Oct00 edgeDepth, //DeadCode JON 23Oct00 viewer_z-(_blockWidth*_horizonDist) //DeadCode JON 23Oct00 ); //DeadCode JON 23Oct00 //DeadCode JON 23Oct00 cornerVert[1].setPosition( //DeadCode JON 23Oct00 viewer_x-(_blockWidth*_horizonDist), //DeadCode JON 23Oct00 edgeDepth, //DeadCode JON 23Oct00 viewer_z+(_blockWidth*_horizonDist) //DeadCode JON 23Oct00 ); //DeadCode JON 23Oct00 //DeadCode JON 23Oct00 cornerVert[2].setPosition( //DeadCode JON 23Oct00 viewer_x, //DeadCode JON 23Oct00 baseDepth, //DeadCode JON 23Oct00 viewer_z //DeadCode JON 23Oct00 ); //DeadCode JON 23Oct00 g_lpLib3d->EndPoly(); //DeadCode JON 23Oct00 #endif //DeadCode JON 21Aug00 g_lpLib3d->DecGlobal( TOGGLE_TEXTURE_ZBIAS ); bool *horizConePos = horizCone; DoPointStruc *offPos = horizPoint; // reset the copy count Lib3DPoint::CountAndCopyReset(); for (int sz=0;sz<_horizonAreaSize;sz++,offPos++) { for (int sx=0;sx<_horizonAreaSize;sx++,horizConePos++,offPos++) { if ( *horizConePos ) { // draw in a distant horizon tile //DEADCODE JON 6/1/00 cornerVert = g_lpLib3d->BeginFan(HMATERIAL(horizonImg),4); cornerVert = g_lpLib3d->BeginPoly(HMATERIAL(horizonImg),4); //DEADCODE JON 6/1/00 cornerVert[0] = offPos[0]; //DEADCODE JON 6/1/00 cornerVert[1]=offPos[_horizonPoints]; //DEADCODE JON 6/1/00 cornerVert[2]=offPos[_horizonPoints+1]; //DEADCODE JON 6/1/00 cornerVert[3]=offPos[1]; cornerVert[0].CountAndCopy( offPos[0] ); cornerVert[1].CountAndCopy( offPos[_horizonPoints] ); cornerVert[2].CountAndCopy( offPos[_horizonPoints+1] ); cornerVert[3].CountAndCopy( offPos[1] ); g_lpLib3d->EndPoly(); //DEADCODE JON 6/1/00 g_lpLib3d->EndFan(); } } } g_lpLib3d->FlushAsBackground(); g_lpLib3d->SetProjectionMatrix((Angles)(int)Save_Data.fieldOfView,10,view_dist,true); // g_lpLib3d->SetProjectionMatrix((Angles)(int)Save_Data.fieldOfView,1,10,_hirezDrawDist+(_blockWidth*2),true); //JON 29Aug00 } else { // close horizon distance #ifndef _NO_UNDERGROUND_FILL const D3DVALUE baseY = 0.0f; Lib3DPoint* cornerVert; const ULong dist = _hirezDrawDist; const int NUM_FILL_BANDS = 3; ULong zLayer = FORCE_TO_BACK_Z; g_lpLib3d->SetGlobal( TOGGLE_TEXTURE_ZBIAS, &zLayer ); for ( int i = 1; i<=NUM_FILL_BANDS; i++ ) { g_lpLib3d->SetFarClipPlane( float(dist)*float(i)/float(NUM_FILL_BANDS) ); //DeadCode JON 3Nov00 const int baseDepth = -700*100; //DeadCode JON 3Nov00 const int edgeDepth = -200*100; //DeadCode JON 3Nov00 // quick cheat - draw a plain poly across the base in order to cover up the nasty blue tears //DeadCode JON 3Nov00 cornerVert = g_lpLib3d->BeginPoly( HMATERIAL(47), 3 ); //DeadCode JON 3Nov00 cornerVert[0].setPosition( //DeadCode JON 3Nov00 viewer_x-(dist), //DeadCode JON 3Nov00 edgeDepth, //DeadCode JON 3Nov00 viewer_z+(dist) //DeadCode JON 3Nov00 ); //DeadCode JON 3Nov00 //DeadCode JON 3Nov00 cornerVert[1].setPosition( //DeadCode JON 3Nov00 viewer_x+(dist), //DeadCode JON 3Nov00 edgeDepth, //DeadCode JON 3Nov00 viewer_z+(dist) //DeadCode JON 3Nov00 ); //DeadCode JON 3Nov00 //DeadCode JON 3Nov00 cornerVert[2].setPosition( //DeadCode JON 3Nov00 viewer_x, //DeadCode JON 3Nov00 baseDepth, //DeadCode JON 3Nov00 viewer_z //DeadCode JON 3Nov00 ); //DeadCode JON 3Nov00 g_lpLib3d->EndPoly(); //DeadCode JON 3Nov00 //DeadCode JON 3Nov00 //DeadCode JON 3Nov00 cornerVert = g_lpLib3d->BeginPoly( 3 ); //DeadCode JON 3Nov00 cornerVert[0].setPosition( //DeadCode JON 3Nov00 viewer_x+(dist), //DeadCode JON 3Nov00 edgeDepth, //DeadCode JON 3Nov00 viewer_z+(dist) //DeadCode JON 3Nov00 ); //DeadCode JON 3Nov00 //DeadCode JON 3Nov00 cornerVert[1].setPosition( //DeadCode JON 3Nov00 viewer_x+(dist), //DeadCode JON 3Nov00 edgeDepth, //DeadCode JON 3Nov00 viewer_z-(dist) //DeadCode JON 3Nov00 ); //DeadCode JON 3Nov00 //DeadCode JON 3Nov00 cornerVert[2].setPosition( //DeadCode JON 3Nov00 viewer_x, //DeadCode JON 3Nov00 baseDepth, //DeadCode JON 3Nov00 viewer_z //DeadCode JON 3Nov00 ); //DeadCode JON 3Nov00 g_lpLib3d->EndPoly(); //DeadCode JON 3Nov00 //DeadCode JON 3Nov00 cornerVert = g_lpLib3d->BeginPoly( 3 ); //DeadCode JON 3Nov00 cornerVert[0].setPosition( //DeadCode JON 3Nov00 viewer_x+(dist), //DeadCode JON 3Nov00 edgeDepth, //DeadCode JON 3Nov00 viewer_z-(dist) //DeadCode JON 3Nov00 ); //DeadCode JON 3Nov00 //DeadCode JON 3Nov00 cornerVert[1].setPosition( //DeadCode JON 3Nov00 viewer_x-(dist), //DeadCode JON 3Nov00 edgeDepth, //DeadCode JON 3Nov00 viewer_z-(dist) //DeadCode JON 3Nov00 ); //DeadCode JON 3Nov00 //DeadCode JON 3Nov00 cornerVert[2].setPosition( //DeadCode JON 3Nov00 viewer_x, //DeadCode JON 3Nov00 baseDepth, //DeadCode JON 3Nov00 viewer_z //DeadCode JON 3Nov00 ); //DeadCode JON 3Nov00 g_lpLib3d->EndPoly(); //DeadCode JON 3Nov00 //DeadCode JON 3Nov00 cornerVert = g_lpLib3d->BeginPoly( 3 ); //DeadCode JON 3Nov00 cornerVert[0].setPosition( //DeadCode JON 3Nov00 viewer_x-(dist), //DeadCode JON 3Nov00 edgeDepth, //DeadCode JON 3Nov00 viewer_z-(dist) //DeadCode JON 3Nov00 ); //DeadCode JON 3Nov00 //DeadCode JON 3Nov00 cornerVert[1].setPosition( //DeadCode JON 3Nov00 viewer_x-(dist), //DeadCode JON 3Nov00 edgeDepth, //DeadCode JON 3Nov00 viewer_z+(dist) //DeadCode JON 3Nov00 ); //DeadCode JON 3Nov00 //DeadCode JON 3Nov00 cornerVert[2].setPosition( //DeadCode JON 3Nov00 viewer_x, //DeadCode JON 3Nov00 baseDepth, //DeadCode JON 3Nov00 viewer_z //DeadCode JON 3Nov00 ); //DeadCode JON 3Nov00 g_lpLib3d->EndPoly(); cornerVert = g_lpLib3d->BeginPoly( HMATERIAL(47), 4 ); cornerVert[0].setPosition( viewer_x-(dist), baseY, viewer_z+(dist) ); cornerVert[1].setPosition( viewer_x+(dist), baseY, viewer_z+(dist) ); cornerVert[2].setPosition( viewer_x+(dist), baseY, viewer_z-(dist) ); cornerVert[3].setPosition( viewer_x-(dist), baseY, viewer_z-(dist) ); g_lpLib3d->EndPoly(); g_lpLib3d->SetNearClipPlane( float(dist)*float(i)/float(NUM_FILL_BANDS) ); } // put the z layer back g_lpLib3d->SetGlobal( TOGGLE_TEXTURE_ZBIAS, zLayer ); g_lpLib3d->ResetClipDistances(); g_lpLib3d->FlushAsBackground(); #endif } } // will actually draw the cloud layer - needs the correct matrices etc set up. inline void LandScape::DrawCloudLayer( const int hx, const int hz, D3DVECTOR* pos, const bool clockWise ) { // calculate the current block position const int x = gridOffs.jx; const int z = gridOffs.jz; ULong flags[_horizonPoints*_horizonPoints]; g_lpLib3d->VisibleCheck(pos,_horizonPoints*_horizonPoints,flags); ULong *lowf=flags, *lowf2; D3DVECTOR *lowptr = pos, *lowptr2; int imx,imz,rowStart; // image map coords imz = (((z-(_horizonDist))-hz)+64); rowStart = (((x-(_horizonDist))-hx)+64); for (int sz=_horizonAreaSize;sz!=0;sz--,imz++) { lowf2=lowf; lowf+=_horizonPoints; lowptr2=lowptr; lowptr+=_horizonPoints; imx = rowStart; for (int sx=_horizonAreaSize;sx!=0;sx--,lowf2++,lowptr2++,imx++) { ULong flag=lowf2[0]&lowf2[1]&lowf2[_horizonPoints]&lowf2[_horizonPoints+1]; if ( !flag ) { // draw this grid Lib3DPoint* cornerVert = g_lpLib3d->BeginFan(4); if ( clockWise ) { cornerVert[0].setPosition( lowptr2[0].x, lowptr2[0].y, lowptr2[0].z ); cornerVert[0].setIMapCoords( imx, imz ); cornerVert[0].setIMapCoords1( 0, 0 ); cornerVert[1].setPosition( lowptr2[_horizonPoints].x, lowptr2[_horizonPoints].y, lowptr2[_horizonPoints].z ); cornerVert[1].setIMapCoords( imx, imz+1 ); cornerVert[1].setIMapCoords1( 0, 255 ); cornerVert[2].setPosition( lowptr2[_horizonPoints+1].x, lowptr2[_horizonPoints+1].y, lowptr2[_horizonPoints+1].z ); cornerVert[2].setIMapCoords( imx+1, imz+1 ); cornerVert[2].setIMapCoords1( 255, 255 ); cornerVert[3].setPosition( lowptr2[1].x, lowptr2[1].y, lowptr2[1].z ); cornerVert[3].setIMapCoords( imx+1, imz ); cornerVert[3].setIMapCoords1( 255, 0 ); } else { cornerVert[3].setPosition( lowptr2[0].x, lowptr2[0].y, lowptr2[0].z ); cornerVert[3].setIMapCoords( imx, imz ); cornerVert[3].setIMapCoords1( 0, 0 ); cornerVert[2].setPosition( lowptr2[_horizonPoints].x, lowptr2[_horizonPoints].y, lowptr2[_horizonPoints].z ); cornerVert[2].setIMapCoords( imx, imz+1 ); cornerVert[2].setIMapCoords1( 0, 255 ); cornerVert[1].setPosition( lowptr2[_horizonPoints+1].x, lowptr2[_horizonPoints+1].y, lowptr2[_horizonPoints+1].z ); cornerVert[1].setIMapCoords( imx+1, imz+1 ); cornerVert[1].setIMapCoords1( 255, 255 ); cornerVert[0].setPosition( lowptr2[1].x, lowptr2[1].y, lowptr2[1].z ); cornerVert[0].setIMapCoords( imx+1, imz ); cornerVert[0].setIMapCoords1( 255, 0 ); } g_lpLib3d->EndFan(); } } } } void LandScape::DistDrawClouds(SLong layerNumber ) { ImageMapDescPtr cloudImg; SLong layerAltitude, halfLayerWidth; SLong xoff,zoff; UByte side; //0=in, 1=above, 2=below //TempCode JON 25Sep00 switch (layerNumber) //TempCode JON 25Sep00 { //TempCode JON 25Sep00 case 0: cloudImg=cloudImg0; xoff=zoff=0; // layerAltitude=FT_5000; layerAltitude = (MissManCampSky().Layer[0].AltBase + MissManCampSky().Layer[0].AltTop)>>1; halfLayerWidth = (MissManCampSky().Layer[0].AltTop - MissManCampSky().Layer[0].AltBase)>>1; //TempCode JON 25Sep00 break; //TempCode JON 25Sep00 case 1: //TempCode JON 25Sep00 cloudImg=cloudImg1; //TempCode JON 25Sep00 xoff=zoff=131072*32; //TempCode JON 25Sep00 layerAltitude=FT_10000; //TempCode JON 25Sep00 break; //TempCode JON 25Sep00 case 2: //TempCode JON 25Sep00 default: //TempCode JON 25Sep00 cloudImg=cloudImg2; //TempCode JON 25Sep00 xoff=zoff=-131072*32; //TempCode JON 25Sep00 layerAltitude=FT_15000; //TempCode JON 25Sep00 break; //TempCode JON 25Sep00 } if (layerAltitude <=0) { return; } // calculate the current block position int x = gridOffs.jx; int z = gridOffs.jz; //DeadCode JON 27Sep00 static int hx = -1; //DeadCode JON 27Sep00 static int hz = -1; //DeadCode JON 27Sep00 static int jx = -1; //DeadCode JON 27Sep00 static int jz = -1; static D3DVECTOR pos[_horizonPoints*_horizonPoints]; if ( cloudOffs.hasMoved( x, z ) ) { //DeadCode JON 27Sep00 jx = x; //DeadCode JON 27Sep00 jz = z; cloudOffs.set( x, z ); // do we need to redo the imagemap? //DeadCode JON 27Sep00 if ( x < hx-4 || x > hx+4 || z<hz-4 || z>hz+4 ) if ( cloudOffs.needColMapUpdate( x, z ) ) { // we need to recalculate the imagemap // unload the old one from the card. g_lpLib3d->UnloadTexture( cloudImg ); Grid_Byte* col = (Grid_Byte*) Grid_Base::gridfiles[Grid_Base::GF_CLOUDLAYER0].getdata(); UByte* t = cloudImg->alpha; for ( int sz = z-64; sz < z+64; sz++ ) for ( int sx = x-64; sx < x+64; sx++ ) { *t++ = ((col->getMod( sx, sz ))); } cloudOffs.setColMapCoords( x, z ); } // recalc cloudlayer vertex points //Generate start position based on the current viewpoint SLong px,pz; px = (x-_horizonDist)<<Grid_Base::WORLDSPACEMOD; pz = (z-_horizonDist)<<Grid_Base::WORLDSPACEMOD; D3DVECTOR lpos,mpos,*lowptr; SLong lx,lz,mx; lowptr=pos; lx=px; lz=pz; lpos.x=lx; lpos.z=lz; // get the grid data 4 min altitudes Grid_Base* minAlt = (Grid_Base*) Grid_Base::gridfiles[Grid_Base::GF_CLOUDLAYER0].getdata(); for (int sz=0; sz<_horizonPoints;sz++) // loop tru z { mpos=lpos; mx=lx; for (int sx=0;sx<_horizonPoints;sx++) // loop x { SLong min; min = (minAlt->getMod( x-_horizonDist+sx, z-_horizonDist+sz )<<4); *lowptr=mpos; lowptr->y=min; mpos.x+=_blockWidth; mx+=_blockWidth; lowptr++; } lpos.z+=_blockWidth; lz+=_blockWidth; } } const int DOUBLE_SIDED_LAYER_DISTANCE = 10000; //cm g_lpLib3d->SetMaterial(HMATERIAL(cloudImg,Image_Map.GetImageMapPtr(CLOUDNO))); //TempCode JON 26Sep00 LIGHTFLAG lf = LF_DEPTH; //TempCode JON 26Sep00 g_lpLib3d->SetObjectLighting( lf ); // find out if we are above, below or inside the clouds. // if ( (( layerAltitude - viewer_y )&0x7FFFFF) < SLong( pos[(_horizonPoints*_horizonPoints)/2].y ) + halfLayerWidth ) if ( viewer_y < layerAltitude+(halfLayerWidth+DOUBLE_SIDED_LAYER_DISTANCE) && viewer_y > layerAltitude-(halfLayerWidth+DOUBLE_SIDED_LAYER_DISTANCE) ) { // we're inside the clouds.. // inside // bottom // now modify the object matrix to make the transformation for viewer_x,y and z happen... (simple // translations) - this is as the object matrix is used before the viewer matrix - makes the clouds be at the right altitude g_lpLib3d->PushMatrix( MATRIX_OBJECT ); g_lpLib3d->LoadIdentity( MATRIX_OBJECT ); D3DVECTOR viewMods; viewMods.x=D3DVALUE(1); viewMods.y=D3DVALUE(-1); viewMods.z=D3DVALUE(1); g_lpLib3d->Scale( MATRIX_OBJECT, viewMods ); viewMods.x=(D3DVALUE)-viewer_x; viewMods.y=-(((D3DVALUE)viewer_y)-(D3DVALUE(layerAltitude-halfLayerWidth))); viewMods.z=(D3DVALUE)-viewer_z; g_lpLib3d->Translate( MATRIX_OBJECT, viewMods ); DrawCloudLayer( cloudOffs.hx, cloudOffs.hz, pos, true ); if ( viewer_y < layerAltitude ) DrawCloudLayer( cloudOffs.hx, cloudOffs.hz, pos, false ); g_lpLib3d->PopMatrix( MATRIX_OBJECT ); // now modify the object matrix to make the transformation for viewer_x,y and z happen... (simple // translations) - this is as the object matrix is used before the viewer matrix - makes the clouds be at the right altitude g_lpLib3d->LoadIdentity( MATRIX_OBJECT ); viewMods.x=(D3DVALUE)-viewer_x; viewMods.y=-(((D3DVALUE)viewer_y)-D3DVALUE(layerAltitude+halfLayerWidth)); viewMods.z=(D3DVALUE)-viewer_z; g_lpLib3d->Translate( MATRIX_OBJECT, viewMods ); DrawCloudLayer( cloudOffs.hx, cloudOffs.hz, pos, false ); if ( viewer_y > layerAltitude ) DrawCloudLayer( cloudOffs.hx, cloudOffs.hz, pos, true ); g_lpLib3d->PopMatrix( MATRIX_OBJECT ); } else if( viewer_y < layerAltitude ) { // below // now modify the object matrix to make the transformation for viewer_x,y and z happen... (simple // translations) - this is as the object matrix is used before the viewer matrix - makes the clouds be at the right altitude g_lpLib3d->PushMatrix( MATRIX_OBJECT ); g_lpLib3d->LoadIdentity( MATRIX_OBJECT ); D3DVECTOR viewMods; viewMods.x=D3DVALUE(1); viewMods.y=D3DVALUE(-1); viewMods.z=D3DVALUE(1); g_lpLib3d->Scale( MATRIX_OBJECT, viewMods ); viewMods.x=(D3DVALUE)-viewer_x; viewMods.y=-(((D3DVALUE)viewer_y)-(D3DVALUE(layerAltitude-halfLayerWidth))); viewMods.z=(D3DVALUE)-viewer_z; g_lpLib3d->Translate( MATRIX_OBJECT, viewMods ); DrawCloudLayer( cloudOffs.hx, cloudOffs.hz, pos, false ); g_lpLib3d->PopMatrix( MATRIX_OBJECT ); } else { // above // now modify the object matrix to make the transformation for viewer_x,y and z happen... (simple // translations) - this is as the object matrix is used before the viewer matrix - makes the clouds be at the right altitude g_lpLib3d->PushMatrix( MATRIX_OBJECT ); g_lpLib3d->LoadIdentity( MATRIX_OBJECT ); D3DVECTOR viewMods; viewMods.x=(D3DVALUE)-viewer_x; viewMods.y=-(((D3DVALUE)viewer_y)-D3DVALUE(layerAltitude+halfLayerWidth)); viewMods.z=(D3DVALUE)-viewer_z; g_lpLib3d->Translate( MATRIX_OBJECT, viewMods ); DrawCloudLayer( cloudOffs.hx, cloudOffs.hz, pos, true ); g_lpLib3d->PopMatrix( MATRIX_OBJECT ); } //TempCode JON 26Sep00 g_lpLib3d->SetObjectLighting( lf ); } //DeadCode JON 31Jul00 void LandScape::DistDrawClouds(SLong layerNumber ) //DeadCode JON 31Jul00 { //DeadCode JON 31Jul00 ImageMapDescPtr cloudImg; //DeadCode JON 31Jul00 SLong layerAltitude; //DeadCode JON 31Jul00 SLong xoff,zoff; //DeadCode JON 31Jul00 UByte side; //0=in, 1=above, 2=below //DeadCode JON 31Jul00 //DeadCode JON 31Jul00 switch (layerNumber) //DeadCode JON 31Jul00 { //DeadCode JON 31Jul00 case 0: //DeadCode JON 31Jul00 cloudImg=cloudImg0; //DeadCode JON 31Jul00 xoff=zoff=0; //DeadCode JON 31Jul00 layerAltitude=FT_5000; //DeadCode JON 31Jul00 break; //DeadCode JON 31Jul00 case 1: //DeadCode JON 31Jul00 cloudImg=cloudImg1; //DeadCode JON 31Jul00 xoff=zoff=131072*32; //DeadCode JON 31Jul00 layerAltitude=FT_10000; //DeadCode JON 31Jul00 break; //DeadCode JON 31Jul00 case 2: //DeadCode JON 31Jul00 default: //DeadCode JON 31Jul00 cloudImg=cloudImg2; //DeadCode JON 31Jul00 xoff=zoff=-131072*32; //DeadCode JON 31Jul00 layerAltitude=FT_15000; //DeadCode JON 31Jul00 break; //DeadCode JON 31Jul00 } //DeadCode JON 31Jul00 //DeadCode JON 31Jul00 if (viewer_y>layerAltitude+FT_500) //DeadCode JON 31Jul00 { //DeadCode JON 31Jul00 side=1; //above //DeadCode JON 31Jul00 } else if (viewer_y<layerAltitude-FT_500) //DeadCode JON 31Jul00 { //DeadCode JON 31Jul00 side=2; //below //DeadCode JON 31Jul00 // g_lpLib3d->SetGlobal( TOGGLE_GLOBALALPHA, 3 );//255-8 ); // make them more seethru when below... //DeadCode JON 31Jul00 } else //DeadCode JON 31Jul00 { //DeadCode JON 31Jul00 side=0; //in //DeadCode JON 31Jul00 } //DeadCode JON 31Jul00 //DeadCode JON 31Jul00 // calculate the current block position //DeadCode JON 31Jul00 // int x = viewer_x>>Grid_Base::WORLDSPACEMOD; //DeadCode JON 31Jul00 // int z = viewer_z>>Grid_Base::WORLDSPACEMOD; //DeadCode JON 31Jul00 int x = gridOffs.jx; //DeadCode JON 31Jul00 int z = gridOffs.jz; //DeadCode JON 31Jul00 //DeadCode JON 31Jul00 static int hx = -1; //DeadCode JON 31Jul00 static int hz = -1; //DeadCode JON 31Jul00 static int jx = -1; //DeadCode JON 31Jul00 static int jz = -1; //DeadCode JON 31Jul00 static D3DVECTOR pos[_horizonPoints*_horizonPoints]; //DeadCode JON 31Jul00 //DeadCode JON 31Jul00 if ( x != jx || z != jz ) //DeadCode JON 31Jul00 { //DeadCode JON 31Jul00 jx = x; //DeadCode JON 31Jul00 jz = z; //DeadCode JON 31Jul00 //DeadCode JON 31Jul00 // do we need to redo the imagemap? //DeadCode JON 31Jul00 if ( x < hx-4 || x > hx+4 || z<hz-4 || z>hz+4 ) //DeadCode JON 31Jul00 { // we need to recalculate the imagemap //DeadCode JON 31Jul00 // unload the old one from the card. //DeadCode JON 31Jul00 g_lpLib3d->UnloadTexture( cloudImg ); //DeadCode JON 31Jul00 //DeadCode JON 31Jul00 //DEADCODE JIM 25/05/00 fileblock fb( FIL_4COLGRID, Grid_Base::makeGridAt ); //DeadCode JON 31Jul00 //DeadCode JON 9Jun00 Grid_Long* colD = (Grid_Long*) Grid_Base::gridfiles[Grid_Base::GF_COLOUR]->getdata(); //DeadCode JON 31Jul00 Grid_Byte* col = (Grid_Byte*) Grid_Base::gridfiles[Grid_Base::GF_CLOUDLAYER0].getdata(); //DeadCode JON 31Jul00 //DEADCODE JIM 25/05/00 Grid_Long* colD = (Grid_Long*) fb.getdata(); //DeadCode JON 31Jul00 //DeadCode JON 31Jul00 //DeadCode JON 9Jun00 UByte* t = ((UByte*)cloudImg)+sizeof(*cloudImg); //DeadCode JON 31Jul00 //DeadCode JON 9Jun00 for ( int sz = (z<<1)-128; sz < (z<<1)+128; sz++ ) //DeadCode JON 31Jul00 //DeadCode JON 9Jun00 for ( int sx = (x<<1)-128; sx < (x<<1)+128; sx++ ) //DeadCode JON 31Jul00 //DeadCode JON 9Jun00 { //DeadCode JON 31Jul00 //DeadCode JON 9Jun00 *t++ = ((colD->getModD( sx, sz )<<3)|0x07)+8; //DeadCode JON 31Jul00 //DeadCode JON 9Jun00 } //DeadCode JON 31Jul00 UByte* t = ((UByte*)cloudImg)+sizeof(*cloudImg); //DeadCode JON 31Jul00 for ( int sz = z-64; sz < z+64; sz++ ) //DeadCode JON 31Jul00 for ( int sx = x-64; sx < x+64; sx++ ) //DeadCode JON 31Jul00 { //DeadCode JON 31Jul00 *t++ = ((col->getMod( sx, sz )));//<<3)|0x07)+8; //DeadCode JON 31Jul00 // *t++ = 128; //DeadCode JON 31Jul00 // *t++ = ((col->getMod( sx, sz )<<3)|0x07)+8; //DeadCode JON 31Jul00 } //DeadCode JON 31Jul00 hx = x; //DeadCode JON 31Jul00 hz = z; //DeadCode JON 31Jul00 } //DeadCode JON 31Jul00 //DeadCode JON 31Jul00 // recalc horizon vertex points //DeadCode JON 31Jul00 //Generate start position based on the current viewpoint //DeadCode JON 31Jul00 SLong px,pz; //DeadCode JON 31Jul00 px = (x-_horizonDist)<<Grid_Base::WORLDSPACEMOD; //DeadCode JON 31Jul00 pz = (z-_horizonDist)<<Grid_Base::WORLDSPACEMOD; //DeadCode JON 31Jul00 //DeadCode JON 31Jul00 D3DVECTOR lpos,mpos,*lowptr; //DeadCode JON 31Jul00 SLong lx,lz,mx; //DeadCode JON 31Jul00 lowptr=pos; //DeadCode JON 31Jul00 lx=px; //DeadCode JON 31Jul00 lz=pz; //DeadCode JON 31Jul00 lpos.x=lx; //DeadCode JON 31Jul00 lpos.z=lz; //DeadCode JON 31Jul00 //DeadCode JON 31Jul00 // get the grid data 4 min altitudes //DeadCode JON 31Jul00 //DeadCode JON 9Jun00 fileblock fb1( FIL_MINALT, Grid_Base::makeGridAt ); //DeadCode JON 31Jul00 //DeadCode JON 9Jun00 Grid_Base* minAlt = (Grid_Base*) fb1.getdata(); //DeadCode JON 31Jul00 Grid_Base* minAlt = (Grid_Base*) Grid_Base::gridfiles[Grid_Base::GF_CLOUDLAYER0].getdata(); //DeadCode JON 31Jul00 //DeadCode JON 31Jul00 for (int sz=0; sz<_horizonPoints;sz++) // loop tru z //DeadCode JON 31Jul00 { //DeadCode JON 31Jul00 mpos=lpos; //DeadCode JON 31Jul00 mx=lx; //DeadCode JON 31Jul00 for (int sx=0;sx<_horizonPoints;sx++) // loop x //DeadCode JON 31Jul00 { //DeadCode JON 31Jul00 SLong min; //DeadCode JON 31Jul00 min = layerAltitude+(minAlt->getMod( x-_horizonDist+sx, z-_horizonDist+sz )<<5); //DeadCode JON 31Jul00 *lowptr=mpos; //DeadCode JON 31Jul00 lowptr->y=min; //DeadCode JON 31Jul00 mpos.x+=_blockWidth; //DeadCode JON 31Jul00 mx+=_blockWidth; //DeadCode JON 31Jul00 lowptr++; //DeadCode JON 31Jul00 } //DeadCode JON 31Jul00 lpos.z+=_blockWidth; //DeadCode JON 31Jul00 lz+=_blockWidth; //DeadCode JON 31Jul00 } //DeadCode JON 31Jul00 //DeadCode JON 31Jul00 //DeadCode JON 31Jul00 } //DeadCode JON 31Jul00 // right now we need to make a mesh for the distant hills and paste the horizon imagemap down onto it... //DeadCode JON 31Jul00 // find out which blocks need to be used to make the hill mesh. //DeadCode JON 31Jul00 //DeadCode JON 31Jul00 const int CLOUD_REDUCTION = 5; //DeadCode JON 31Jul00 //DeadCode JON 31Jul00 ULong flags[_horizonPoints*_horizonPoints]; //DeadCode JON 31Jul00 //DeadCode JON 31Jul00 // g_lpLib3d->PushMatrix( MATRIX_PROJECTION ); //DeadCode JON 31Jul00 g_lpLib3d->SetProjectionMatrix( (Angles)(int)Save_Data.fieldOfView,1,100,_blockWidth*(_horizonDist-CLOUD_REDUCTION),true ); //DeadCode JON 31Jul00 g_lpLib3d->VisibleCheck(pos,_horizonPoints*_horizonPoints,flags); //DeadCode JON 31Jul00 g_lpLib3d->SetProjectionMatrix( (Angles)(int)Save_Data.fieldOfView,1,100,view_dist); //DeadCode JON 31Jul00 // g_lpLib3d->PopMatrix( MATRIX_PROJECTION ); //DeadCode JON 31Jul00 //DeadCode JON 31Jul00 // now modify the object matrix to make the transformation for viewer_x,y and z happen... (simple //DeadCode JON 31Jul00 // translations) - this is as the object matrix is used before the viewer matrix //DeadCode JON 31Jul00 //DeadCode JON 31Jul00 //DeadCode JON 31Jul00 // const int CLOUDRADIUS = _horizonDist - CLOUD_REDUCTION; //DeadCode JON 31Jul00 //DeadCode JON 31Jul00 ULong *lowf=flags, *lowf2; //DeadCode JON 31Jul00 D3DVECTOR *lowptr = pos, *lowptr2; //DeadCode JON 31Jul00 //DeadCode JON 31Jul00 int imx,imz,rowStart; // image map coords //DeadCode JON 31Jul00 //DeadCode JON 9Jun00 imz = (((z-(_horizonDist))-hz)+64)<<1; //DeadCode JON 31Jul00 //DeadCode JON 9Jun00 rowStart = (((x-(_horizonDist))-hx)+64)<<1; //DeadCode JON 31Jul00 //DeadCode JON 31Jul00 imz = (((z-(_horizonDist))-hz)+64); //DeadCode JON 31Jul00 rowStart = (((x-(_horizonDist))-hx)+64); //DeadCode JON 31Jul00 //DeadCode JON 31Jul00 //TEMPCODE JON 5/3/00 imz = (((z-(CLOUDRADIUS))-hz)+64)<<1; //DeadCode JON 31Jul00 //TEMPCODE JON 5/3/00 rowStart = (((x-(CLOUDRADIUS))-hx)+64)<<1; //DeadCode JON 31Jul00 //DeadCode JON 31Jul00 //TEMPCODE JON 5/3/00 lowptr+=(_horizonPoints*CLOUD_REDUCTION)+CLOUD_REDUCTION; //DeadCode JON 31Jul00 //TEMPCODE JON 5/3/00 lowf+=(_horizonPoints*CLOUD_REDUCTION)+CLOUD_REDUCTION; //DeadCode JON 31Jul00 //DeadCode JON 31Jul00 HMATERIAL cloudMaterial(cloudImg,Image_Map.GetImageMapPtr(CLOUDNO)); //DeadCode JON 31Jul00 //DeadCode JON 31Jul00 //TEMPCODE JON 5/3/00 for (int sz=CLOUDRADIUS*2+1;sz!=0;sz--,imz+=2) //DeadCode JON 31Jul00 //DeadCode JON 9Jun00 for (int sz=_horizonAreaSize;sz!=0;sz--,imz+=2) //DeadCode JON 31Jul00 for (int sz=_horizonAreaSize;sz!=0;sz--,imz++) //DeadCode JON 31Jul00 { //DeadCode JON 31Jul00 lowf2=lowf; //DeadCode JON 31Jul00 lowf+=_horizonPoints; //DeadCode JON 31Jul00 lowptr2=lowptr; //DeadCode JON 31Jul00 lowptr+=_horizonPoints; //DeadCode JON 31Jul00 imx = rowStart; //DeadCode JON 31Jul00 //TEMPCODE JON 5/3/00 for (int sx=CLOUDRADIUS*2+1;sx!=0;sx--,lowf2++,lowptr2++,imx+=2) //DeadCode JON 31Jul00 // for (int sx=_horizonAreaSize;sx!=0;sx--,lowf2++,lowptr2++,imx+=2) //DeadCode JON 31Jul00 for (int sx=_horizonAreaSize;sx!=0;sx--,lowf2++,lowptr2++,imx++) //DeadCode JON 31Jul00 { //DeadCode JON 31Jul00 ULong flag=lowf2[0]&lowf2[1]&lowf2[_horizonPoints]&lowf2[_horizonPoints+1]; //DeadCode JON 31Jul00 if ( !flag ) //DeadCode JON 31Jul00 { // draw this grid //DeadCode JON 31Jul00 //DeadCode JON 31Jul00 //top //DeadCode JON 31Jul00 if (side!=2) //DeadCode JON 31Jul00 { //DeadCode JON 31Jul00 Lib3DPoint* cornerVert = g_lpLib3d->BeginFan(cloudMaterial,4); //DeadCode JON 31Jul00 //DeadCode JON 31Jul00 cornerVert[0].setPosition( //DeadCode JON 31Jul00 lowptr2[0].x, //DeadCode JON 31Jul00 lowptr2[0].y, //DeadCode JON 31Jul00 lowptr2[0].z //DeadCode JON 31Jul00 ); //DeadCode JON 31Jul00 cornerVert[0].setIMapCoords( imx, imz ); //DeadCode JON 31Jul00 cornerVert[0].setIMapCoords1( 0, 0 ); //DeadCode JON 31Jul00 //DeadCode JON 31Jul00 cornerVert[1].setPosition( //DeadCode JON 31Jul00 lowptr2[_horizonPoints].x, //DeadCode JON 31Jul00 lowptr2[_horizonPoints].y, //DeadCode JON 31Jul00 lowptr2[_horizonPoints].z //DeadCode JON 31Jul00 ); //DeadCode JON 31Jul00 //DeadCode JON 9Jun00 cornerVert[1].setIMapCoords( imx, imz+2 ); //DeadCode JON 31Jul00 cornerVert[1].setIMapCoords( imx, imz+1 ); //DeadCode JON 31Jul00 cornerVert[1].setIMapCoords1( 0, 255 ); //DeadCode JON 31Jul00 //DeadCode JON 31Jul00 cornerVert[2].setPosition( //DeadCode JON 31Jul00 lowptr2[_horizonPoints+1].x, //DeadCode JON 31Jul00 lowptr2[_horizonPoints+1].y, //DeadCode JON 31Jul00 lowptr2[_horizonPoints+1].z //DeadCode JON 31Jul00 ); //DeadCode JON 31Jul00 //DeadCode JON 9Jun00 cornerVert[2].setIMapCoords( imx+2, imz+2 ); //DeadCode JON 31Jul00 cornerVert[2].setIMapCoords( imx+1, imz+1 ); //DeadCode JON 31Jul00 cornerVert[2].setIMapCoords1( 255, 255 ); //DeadCode JON 31Jul00 //DeadCode JON 31Jul00 cornerVert[3].setPosition( //DeadCode JON 31Jul00 lowptr2[1].x, //DeadCode JON 31Jul00 lowptr2[1].y, //DeadCode JON 31Jul00 lowptr2[1].z //DeadCode JON 31Jul00 ); //DeadCode JON 31Jul00 //DeadCode JON 9Jun00 cornerVert[3].setIMapCoords( imx+2, imz ); //DeadCode JON 31Jul00 cornerVert[3].setIMapCoords( imx+1, imz ); //DeadCode JON 31Jul00 cornerVert[3].setIMapCoords1( 255, 0 ); //DeadCode JON 31Jul00 g_lpLib3d->EndFan(); //DeadCode JON 31Jul00 } //DeadCode JON 31Jul00 //bottom //DeadCode JON 31Jul00 if (side!=1) //DeadCode JON 31Jul00 { //DeadCode JON 31Jul00 Lib3DPoint* cornerVert = g_lpLib3d->BeginFan(cloudMaterial,4); //DeadCode JON 31Jul00 //DeadCode JON 31Jul00 cornerVert[3].setPosition( //DeadCode JON 31Jul00 lowptr2[0].x, //DeadCode JON 31Jul00 lowptr2[0].y, //DeadCode JON 31Jul00 lowptr2[0].z //DeadCode JON 31Jul00 ); //DeadCode JON 31Jul00 cornerVert[3].setIMapCoords( imx, imz ); //DeadCode JON 31Jul00 cornerVert[3].setIMapCoords1( 0, 0 ); //DeadCode JON 31Jul00 //DeadCode JON 31Jul00 cornerVert[2].setPosition( //DeadCode JON 31Jul00 lowptr2[_horizonPoints].x, //DeadCode JON 31Jul00 lowptr2[_horizonPoints].y, //DeadCode JON 31Jul00 lowptr2[_horizonPoints].z //DeadCode JON 31Jul00 ); //DeadCode JON 31Jul00 //DeadCode JON 9Jun00 cornerVert[2].setIMapCoords( imx, imz+2 ); //DeadCode JON 31Jul00 cornerVert[2].setIMapCoords( imx, imz+1 ); //DeadCode JON 31Jul00 cornerVert[2].setIMapCoords1( 0, 255 ); //DeadCode JON 31Jul00 //DeadCode JON 31Jul00 cornerVert[1].setPosition( //DeadCode JON 31Jul00 lowptr2[_horizonPoints+1].x, //DeadCode JON 31Jul00 lowptr2[_horizonPoints+1].y, //DeadCode JON 31Jul00 lowptr2[_horizonPoints+1].z //DeadCode JON 31Jul00 ); //DeadCode JON 31Jul00 //DeadCode JON 9Jun00 cornerVert[1].setIMapCoords( imx+2, imz+2 ); //DeadCode JON 31Jul00 cornerVert[1].setIMapCoords( imx+1, imz+1 ); //DeadCode JON 31Jul00 cornerVert[1].setIMapCoords1( 255, 255 ); //DeadCode JON 31Jul00 //DeadCode JON 31Jul00 cornerVert[0].setPosition( //DeadCode JON 31Jul00 lowptr2[1].x, //DeadCode JON 31Jul00 lowptr2[1].y, //DeadCode JON 31Jul00 lowptr2[1].z //DeadCode JON 31Jul00 ); //DeadCode JON 31Jul00 //DeadCode JON 9Jun00 cornerVert[0].setIMapCoords( imx+2, imz ); //DeadCode JON 31Jul00 cornerVert[0].setIMapCoords( imx+1, imz ); //DeadCode JON 31Jul00 cornerVert[0].setIMapCoords1( 255, 0 ); //DeadCode JON 31Jul00 g_lpLib3d->EndFan(); } //DeadCode JON 31Jul00 //DeadCode JON 31Jul00 //DEADCODE JON 5/24/00 R3DVERTEX *pRVerts; //DeadCode JON 31Jul00 //DEADCODE JON 5/24/00 R3DVERTEX2 cornerVert[4]; //DeadCode JON 31Jul00 //DEADCODE JON 5/24/00 R3DVERTEX2 *insertVerts; //DeadCode JON 31Jul00 //DEADCODE JON 5/24/00 //DeadCode JON 31Jul00 //DEADCODE JON 5/24/00 cornerVert[0].bodyx.f=lowptr2[0].x; //DeadCode JON 31Jul00 //DEADCODE JON 5/24/00 cornerVert[0].bodyy.f=lowptr2[0].y; //DeadCode JON 31Jul00 //DEADCODE JON 5/24/00 cornerVert[0].bodyz.f=lowptr2[0].z; //DeadCode JON 31Jul00 //DEADCODE JON 5/24/00 cornerVert[0].ix=imx; //DeadCode JON 31Jul00 //DEADCODE JON 5/24/00 cornerVert[0].iy=imz; //DeadCode JON 31Jul00 //DEADCODE JON 5/24/00 cornerVert[0].ix1= //DeadCode JON 31Jul00 //DEADCODE JON 5/24/00 cornerVert[0].iy1=0; //DeadCode JON 31Jul00 //DEADCODE JON 5/24/00 //DeadCode JON 31Jul00 //DEADCODE JON 5/24/00 cornerVert[1].bodyx.f=lowptr2[_horizonPoints].x; //DeadCode JON 31Jul00 //DEADCODE JON 5/24/00 cornerVert[1].bodyy.f=lowptr2[_horizonPoints].y; //DeadCode JON 31Jul00 //DEADCODE JON 5/24/00 cornerVert[1].bodyz.f=lowptr2[_horizonPoints].z; //DeadCode JON 31Jul00 //DEADCODE JON 5/24/00 cornerVert[1].ix=imx; //DeadCode JON 31Jul00 //DEADCODE JON 5/24/00 cornerVert[1].iy=imz+2; //DeadCode JON 31Jul00 //DEADCODE JON 5/24/00 cornerVert[1].ix1=0; //DeadCode JON 31Jul00 //DEADCODE JON 5/24/00 cornerVert[1].iy1=255; //DeadCode JON 31Jul00 //DEADCODE JON 5/24/00 //DeadCode JON 31Jul00 //DEADCODE JON 5/24/00 cornerVert[2].bodyx.f=lowptr2[_horizonPoints+1].x; //DeadCode JON 31Jul00 //DEADCODE JON 5/24/00 cornerVert[2].bodyy.f=lowptr2[_horizonPoints+1].y; //DeadCode JON 31Jul00 //DEADCODE JON 5/24/00 cornerVert[2].bodyz.f=lowptr2[_horizonPoints+1].z; //DeadCode JON 31Jul00 //DEADCODE JON 5/24/00 cornerVert[2].ix=imx+2; //DeadCode JON 31Jul00 //DEADCODE JON 5/24/00 cornerVert[2].iy=imz+2; //DeadCode JON 31Jul00 //DEADCODE JON 5/24/00 cornerVert[2].ix1=255; //DeadCode JON 31Jul00 //DEADCODE JON 5/24/00 cornerVert[2].iy1=255; //DeadCode JON 31Jul00 //DEADCODE JON 5/24/00 //DeadCode JON 31Jul00 //DEADCODE JON 5/24/00 cornerVert[3].bodyx.f=lowptr2[1].x; //DeadCode JON 31Jul00 //DEADCODE JON 5/24/00 cornerVert[3].bodyy.f=lowptr2[1].y; //DeadCode JON 31Jul00 //DEADCODE JON 5/24/00 cornerVert[3].bodyz.f=lowptr2[1].z; //DeadCode JON 31Jul00 //DEADCODE JON 5/24/00 cornerVert[3].ix=imx+2; //DeadCode JON 31Jul00 //DEADCODE JON 5/24/00 cornerVert[3].iy=imz; //DeadCode JON 31Jul00 //DEADCODE JON 5/24/00 cornerVert[3].ix1=255; //DeadCode JON 31Jul00 //DEADCODE JON 5/24/00 cornerVert[3].iy1=0; //DeadCode JON 31Jul00 //DEADCODE JON 5/24/00 //DeadCode JON 31Jul00 //DEADCODE JON 5/24/00 //top //DeadCode JON 31Jul00 //DEADCODE JON 5/24/00 if (side!=2) //DeadCode JON 31Jul00 //DEADCODE JON 5/24/00 { //DeadCode JON 31Jul00 //DEADCODE JON 5/24/00 g_lpLib3d->BeginFan(cloudMaterial,4,pRVerts); //DeadCode JON 31Jul00 //DEADCODE JON 5/24/00 insertVerts=(R3DVERTEX2*)pRVerts; //DeadCode JON 31Jul00 //DEADCODE JON 5/24/00 *insertVerts++=cornerVert[0]; //DeadCode JON 31Jul00 //DEADCODE JON 5/24/00 *insertVerts++=cornerVert[1]; //DeadCode JON 31Jul00 //DEADCODE JON 5/24/00 *insertVerts++=cornerVert[2]; //DeadCode JON 31Jul00 //DEADCODE JON 5/24/00 *insertVerts=cornerVert[3]; //DeadCode JON 31Jul00 //DEADCODE JON 5/24/00 g_lpLib3d->EndFan(); //DeadCode JON 31Jul00 //DEADCODE JON 5/24/00 } //DeadCode JON 31Jul00 //DEADCODE JON 5/24/00 //bottom //DeadCode JON 31Jul00 //DEADCODE JON 5/24/00 if (side!=1) //DeadCode JON 31Jul00 //DEADCODE JON 5/24/00 { //DeadCode JON 31Jul00 //DEADCODE JON 5/24/00 g_lpLib3d->BeginFan(cloudMaterial,4,pRVerts); //DeadCode JON 31Jul00 //DEADCODE JON 5/24/00 insertVerts=(R3DVERTEX2*)pRVerts; //DeadCode JON 31Jul00 //DEADCODE JON 5/24/00 *insertVerts++=cornerVert[3]; //DeadCode JON 31Jul00 //DEADCODE JON 5/24/00 *insertVerts++=cornerVert[2]; //DeadCode JON 31Jul00 //DEADCODE JON 5/24/00 *insertVerts++=cornerVert[1]; //DeadCode JON 31Jul00 //DEADCODE JON 5/24/00 *insertVerts=cornerVert[0]; //DeadCode JON 31Jul00 //DEADCODE JON 5/24/00 g_lpLib3d->EndFan(); //DeadCode JON 31Jul00 //DEADCODE JON 5/24/00 } //DeadCode JON 31Jul00 } //DeadCode JON 31Jul00 } //DeadCode JON 31Jul00 } //DeadCode JON 31Jul00 g_lpLib3d->SetGlobal( TOGGLE_GLOBALALPHA, 255 ); //DeadCode JON 31Jul00 //#endif //DeadCode JON 31Jul00 } //DEADCODE JON 3/30/00 //컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴 //DEADCODE JON 3/30/00 //Procedure GridCone //DEADCODE JON 3/30/00 //Author Paul. //DEADCODE JON 3/30/00 //Date Mon 22 Jun 1998 //DEADCODE JON 3/30/00 //------------------------------------------------------------------------------ //DEADCODE JON 3/30/00 void LandScape::GridCone(const SLong px,const SLong pz) //DEADCODE JON 3/30/00 { //DEADCODE JON 3/30/00 D3DVECTOR pos[_cornerLengthMIN*_cornerLengthMIN*2]; //DEADCODE JON 3/30/00 ULong flags[_cornerLengthMIN*_cornerLengthMIN*2]; //DEADCODE JON 3/30/00 //DEADCODE JON 3/30/00 D3DVECTOR lpos,mpos,*lowptr,*hiptr; //DEADCODE JON 3/30/00 SLong lx,lz,mx; //DEADCODE JON 3/30/00 lowptr=pos; //DEADCODE JON 3/30/00 hiptr=lowptr+_cornerLengthMIN*_cornerLengthMIN; //DEADCODE JON 3/30/00 lx=px; //DEADCODE JON 3/30/00 lz=pz; //DEADCODE JON 3/30/00 lpos.x=lx-viewer_x; //DEADCODE JON 3/30/00 lpos.z=lz-viewer_z; //DEADCODE JON 3/30/00 // get the grid data 4 min and maximum altitudes //DEADCODE JON 3/30/00 fileblock fb( FIL_MAXALT, Grid_Base::makeGridAt ); //DEADCODE JON 3/30/00 Grid_Base* maxAlt = (Grid_Base*) fb.getdata(); //DEADCODE JON 3/30/00 fileblock fb1( FIL_MINALT, Grid_Base::makeGridAt ); //DEADCODE JON 3/30/00 Grid_Base* minAlt = (Grid_Base*) fb1.getdata(); //DEADCODE JON 3/30/00 //DEADCODE JON 3/30/00 for (int i=_cornerLengthMIN;i!=0;i--) //DEADCODE JON 3/30/00 { //DEADCODE JON 3/30/00 mpos=lpos; //DEADCODE JON 3/30/00 mx=lx; //DEADCODE JON 3/30/00 for (int j=_cornerLengthMIN;j!=0;j--) //DEADCODE JON 3/30/00 { //DEADCODE JON 3/30/00 SLong min,max; //DEADCODE JON 3/30/00 //DEADCODE JON 1/27/00 Three_Dee.pTMake->GetMinMaxAlt(mx,lz,min,max); //DEADCODE JON 3/30/00 min = minAlt->getWorld( mx, lz )<<9; //DEADCODE JON 3/30/00 max = maxAlt->getWorld( mx, lz )<<9; //DEADCODE JON 3/30/00 *lowptr=mpos; //DEADCODE JON 3/30/00 //DEADCODE JON 1/31/00 min*=_altitudeScale; //DEADCODE JON 3/30/00 *hiptr=mpos; //DEADCODE JON 3/30/00 //DEADCODE JON 1/31/00 max*=_altitudeScale; //DEADCODE JON 3/30/00 lowptr->y=min-viewer_y; //DEADCODE JON 3/30/00 hiptr->y=max-viewer_y; //DEADCODE JON 3/30/00 mpos.x+=_blockWidth; //DEADCODE JON 3/30/00 mx+=_blockWidth; //DEADCODE JON 3/30/00 lowptr++; //DEADCODE JON 3/30/00 hiptr++; //DEADCODE JON 3/30/00 } //DEADCODE JON 3/30/00 lpos.z+=_blockWidth; //DEADCODE JON 3/30/00 lz+=_blockWidth; //DEADCODE JON 3/30/00 } //DEADCODE JON 3/30/00 g_lpLib3d->VisibleCheck(pos,_cornerLengthMIN*_cornerLengthMIN*2,flags); //DEADCODE JON 3/30/00 //DEADCODE JON 3/30/00 ULong *lowf,*hif; //DEADCODE JON 3/30/00 lowf=flags; //DEADCODE JON 3/30/00 hif=flags+_cornerLengthMIN*_cornerLengthMIN; //DEADCODE JON 3/30/00 for (i=_cornerLengthMIN*_cornerLengthMIN;i!=0;*lowf&=*hif,lowf++,hif++,i--); //DEADCODE JON 3/30/00 //DEADCODE JON 3/30/00 lowf=flags; //DEADCODE JON 3/30/00 UByte* res=gridCone; //DEADCODE JON 3/30/00 //DEADCODE JON 3/30/00 for (i=_wholeAreaSizeMIN;i!=0;i--) //DEADCODE JON 3/30/00 { //DEADCODE JON 3/30/00 ULong *lowf2=lowf; //DEADCODE JON 3/30/00 lowf+=_cornerLengthMIN; //DEADCODE JON 3/30/00 for (int j=_wholeAreaSizeMIN;j!=0;j--,lowf2++) //DEADCODE JON 3/30/00 { //DEADCODE JON 3/30/00 ULong flag=lowf2[0]&lowf2[1]&lowf2[_cornerLengthMIN]&lowf2[_cornerLengthMIN+1]; //DEADCODE JON 3/30/00 *res++=flag?0:1; //DEADCODE JON 3/30/00 } //DEADCODE JON 3/30/00 } //DEADCODE JON 3/30/00 } //Old_Code PD 29Nov99 void LandScape::GridCone(const SLong px,const SLong pz) //Old_Code PD 29Nov99 { //Old_Code PD 29Nov99 const Float _fbw=Float(_blockWidth); //Old_Code PD 29Nov99 FPMATRIX& mat=*fpviewer_matrix; //Old_Code PD 29Nov99 fpCOORDS3D tbasepos,tdeltawx,tdeltawy,tdeltawz; //Old_Code PD 29Nov99 //Old_Code PD 29Nov99 SLong intbaseposX=px; //Old_Code PD 29Nov99 SLong intbaseposZ=pz; //Old_Code PD 29Nov99 //Old_Code PD 29Nov99 tbasepos.X.i=px-viewer_x; //Old_Code PD 29Nov99 tbasepos.Y.i=-viewer_y; //Old_Code PD 29Nov99 tbasepos.Z.i=pz-viewer_z; //Old_Code PD 29Nov99 //Old_Code PD 29Nov99 _matrix.transform(&mat,tbasepos.X,tbasepos.Y,tbasepos.Z); //Old_Code PD 29Nov99 //Old_Code PD 29Nov99 tdeltawx.X.f=mat.L11*_fbw; //Old_Code PD 29Nov99 tdeltawx.Y.f=mat.L21*_fbw; //Old_Code PD 29Nov99 tdeltawx.Z.f=mat.L31*_fbw; //Old_Code PD 29Nov99 //Old_Code PD 29Nov99 tdeltawy.X.f=mat.L12*Float(_altitudeScale); //Old_Code PD 29Nov99 tdeltawy.Y.f=mat.L22*Float(_altitudeScale); //Old_Code PD 29Nov99 tdeltawy.Z.f=mat.L32*Float(_altitudeScale); //Old_Code PD 29Nov99 //Old_Code PD 29Nov99 tdeltawz.X.f=mat.L13*_fbw; //Old_Code PD 29Nov99 tdeltawz.Y.f=mat.L23*_fbw; //Old_Code PD 29Nov99 tdeltawz.Z.f=mat.L33*_fbw; //Old_Code PD 29Nov99 //Old_Code PD 29Nov99 UByte* ptr=gridCorners; //Old_Code PD 29Nov99 //Old_Code PD 29Nov99 SLong cornerLength,wholeAreaSize; //Old_Code PD 29Nov99 //Old_Code PD 29Nov99 cornerLength=_cornerLengthMIN; //Old_Code PD 29Nov99 wholeAreaSize=_wholeAreaSizeMIN; //Old_Code PD 29Nov99 //Old_Code PD 29Nov99 for (int r=0;r<cornerLength;r++) //Old_Code PD 29Nov99 { //Old_Code PD 29Nov99 fpCOORDS3D tbaseinner=tbasepos; //Old_Code PD 29Nov99 SLong intinnerposX=intbaseposX; //Old_Code PD 29Nov99 SLong intinnerposZ=intbaseposZ; //Old_Code PD 29Nov99 //Old_Code PD 29Nov99 for (int c=0;c<cornerLength;c++) //Old_Code PD 29Nov99 { //Old_Code PD 29Nov99 fpCOORDS3D low,high; //Old_Code PD 29Nov99 SLong min,max; //Old_Code PD 29Nov99 //Old_Code PD 29Nov99 Three_Dee.pTMake->GetMinMaxAlt(intinnerposX,intinnerposZ,min,max); //Old_Code PD 29Nov99 //Old_Code PD 29Nov99 low.X.f=tbaseinner.X.f+tdeltawy.X.f*Float(min); //Old_Code PD 29Nov99 low.Y.f=tbaseinner.Y.f+tdeltawy.Y.f*Float(min); //Old_Code PD 29Nov99 low.Z.f=tbaseinner.Z.f+tdeltawy.Z.f*Float(min); //Old_Code PD 29Nov99 //Old_Code PD 29Nov99 high.X.f=tbaseinner.X.f+tdeltawy.X.f*Float(max); //Old_Code PD 29Nov99 high.Y.f=tbaseinner.Y.f+tdeltawy.Y.f*Float(max); //Old_Code PD 29Nov99 high.Z.f=tbaseinner.Z.f+tdeltawy.Z.f*Float(max); //Old_Code PD 29Nov99 //Old_Code PD 29Nov99 *ptr++=_matrix.GenClipFlags(low)&_matrix.GenClipFlags(high); //Old_Code PD 29Nov99 //Old_Code PD 29Nov99 intinnerposX+=_blockWidth; //Old_Code PD 29Nov99 //Old_Code PD 29Nov99 tbaseinner.X.f+=tdeltawx.X.f; //Old_Code PD 29Nov99 tbaseinner.Y.f+=tdeltawx.Y.f; //Old_Code PD 29Nov99 tbaseinner.Z.f+=tdeltawx.Z.f; //Old_Code PD 29Nov99 } //Old_Code PD 29Nov99 intbaseposZ+=_blockWidth; //Old_Code PD 29Nov99 //Old_Code PD 29Nov99 tbasepos.X.f+=tdeltawz.X.f; //Old_Code PD 29Nov99 tbasepos.Y.f+=tdeltawz.Y.f; //Old_Code PD 29Nov99 tbasepos.Z.f+=tdeltawz.Z.f; //Old_Code PD 29Nov99 } //Old_Code PD 29Nov99 ptr=gridCorners; //Old_Code PD 29Nov99 UByte* res=gridCone; //Old_Code PD 29Nov99 //Old_Code PD 29Nov99 for (r=0;r<wholeAreaSize;r++,ptr+=cornerLength) //Old_Code PD 29Nov99 { //Old_Code PD 29Nov99 UByte* ptr2=ptr; //Old_Code PD 29Nov99 for (int c=0;c<wholeAreaSize;c++,ptr2++) //Old_Code PD 29Nov99 { //Old_Code PD 29Nov99 UByte andedFlags=*ptr2; //Old_Code PD 29Nov99 andedFlags&=*(ptr2+1); //Old_Code PD 29Nov99 andedFlags&=*(ptr2+cornerLength); //Old_Code PD 29Nov99 andedFlags&=*(ptr2+cornerLength+1); //Old_Code PD 29Nov99 //Old_Code PD 29Nov99 if (andedFlags!=0) *res++=0; //Old_Code PD 29Nov99 else *res++=1; //Old_Code PD 29Nov99 } //Old_Code PD 29Nov99 } //Old_Code PD 29Nov99 // if (!Manual_Pilot.ControlledAC2) //Old_Code PD 29Nov99 // memset(gridCone,1,wholeAreaSize*wholeAreaSize); //Old_Code PD 29Nov99 } //DEADCODE JON 4/27/00 //컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴 //DEADCODE JON 4/27/00 //Procedure ScrollGrid //DEADCODE JON 4/27/00 //Author Paul. //DEADCODE JON 4/27/00 //Date Mon 9 Nov 1998 //DEADCODE JON 4/27/00 //------------------------------------------------------------------------------ //DEADCODE JON 4/27/00 void LandScape::ScrollGrid(SLong dx,SLong dz,UByte* pGrid) //DEADCODE JON 4/27/00 { //DEADCODE JON 4/27/00 const SLong wholeAreaSize=_wholeAreaSizeMIN; //DEADCODE JON 4/27/00 const SLong GRID_SIZE=wholeAreaSize*wholeAreaSize; //DEADCODE JON 4/27/00 //DEADCODE JON 4/27/00 while (dx>0) //DEADCODE JON 4/27/00 { //DEADCODE JON 4/27/00 //scroll data left (west) 'cos we're moving east //DEADCODE JON 4/27/00 //DEADCODE JON 4/27/00 UByte* ptmp=pGrid; //DEADCODE JON 4/27/00 //DEADCODE JON 4/27/00 for (SLong c=wholeAreaSize;c--;) //DEADCODE JON 4/27/00 { //DEADCODE JON 4/27/00 for (SLong r=wholeAreaSize-1;r--;) //DEADCODE JON 4/27/00 { //DEADCODE JON 4/27/00 ptmp[0]=ptmp[1]; //DEADCODE JON 4/27/00 ptmp++; //DEADCODE JON 4/27/00 } //DEADCODE JON 4/27/00 *ptmp++=0xFF; //DEADCODE JON 4/27/00 } //DEADCODE JON 4/27/00 dx-=_blockWidth; //DEADCODE JON 4/27/00 } //DEADCODE JON 4/27/00 //DEADCODE JON 4/27/00 while (dx<0) //DEADCODE JON 4/27/00 { //DEADCODE JON 4/27/00 //scroll data right (east) 'cos we're moving west //DEADCODE JON 4/27/00 //DEADCODE JON 4/27/00 UByte* ptmp=pGrid+GRID_SIZE-1; //DEADCODE JON 4/27/00 //DEADCODE JON 4/27/00 for (SLong r=wholeAreaSize;r--;) //DEADCODE JON 4/27/00 { //DEADCODE JON 4/27/00 for (SLong c=wholeAreaSize-1;c--;) //DEADCODE JON 4/27/00 { //DEADCODE JON 4/27/00 ptmp[0]=ptmp[-1]; //DEADCODE JON 4/27/00 ptmp--; //DEADCODE JON 4/27/00 } //DEADCODE JON 4/27/00 *ptmp--=0xFF; //DEADCODE JON 4/27/00 } //DEADCODE JON 4/27/00 dx+=_blockWidth; //DEADCODE JON 4/27/00 } //DEADCODE JON 4/27/00 //DEADCODE JON 4/27/00 while (dz>0) //DEADCODE JON 4/27/00 { //DEADCODE JON 4/27/00 //scroll data up (south) 'cos we're moving north //DEADCODE JON 4/27/00 //DEADCODE JON 4/27/00 UByte* ptmp=pGrid; //DEADCODE JON 4/27/00 UByte* ptmp2=ptmp+wholeAreaSize; //DEADCODE JON 4/27/00 //DEADCODE JON 4/27/00 SLong r; //DEADCODE JON 4/27/00 //DEADCODE JON 4/27/00 for (r=GRID_SIZE-wholeAreaSize;r--;) //DEADCODE JON 4/27/00 *ptmp++=*ptmp2++; //DEADCODE JON 4/27/00 for (r=wholeAreaSize;r--;) //DEADCODE JON 4/27/00 *ptmp++=0xFF; //DEADCODE JON 4/27/00 //DEADCODE JON 4/27/00 dz-=_blockWidth; //DEADCODE JON 4/27/00 } //DEADCODE JON 4/27/00 //DEADCODE JON 4/27/00 while (dz<0) //DEADCODE JON 4/27/00 { //DEADCODE JON 4/27/00 //scroll data down (north) 'cos we're moving south //DEADCODE JON 4/27/00 //DEADCODE JON 4/27/00 UByte* ptmp=pGrid+GRID_SIZE-1; //DEADCODE JON 4/27/00 UByte* ptmp2=ptmp-wholeAreaSize; //DEADCODE JON 4/27/00 //DEADCODE JON 4/27/00 SLong r; //DEADCODE JON 4/27/00 //DEADCODE JON 4/27/00 for (r=GRID_SIZE-wholeAreaSize;r--;) //DEADCODE JON 4/27/00 *ptmp--=*ptmp2--; //DEADCODE JON 4/27/00 for (r=wholeAreaSize;r--;) //DEADCODE JON 4/27/00 *ptmp--=0xFF; //DEADCODE JON 4/27/00 //DEADCODE JON 4/27/00 dz+=_blockWidth; //DEADCODE JON 4/27/00 } //DEADCODE JON 4/27/00 } //DEADCODE JON 4/27/00 //DEADCODE JON 4/27/00 void LandScape::ScrollGridDis(SLong dx,SLong dz,HTEXT* pGrid,Dropped* pDiscarded) //DEADCODE JON 4/27/00 { //DEADCODE JON 4/27/00 const SLong wholeAreaSize=_wholeAreaSizeMIN; //DEADCODE JON 4/27/00 const SLong GRID_SIZE=wholeAreaSize*wholeAreaSize; //DEADCODE JON 4/27/00 //DEADCODE JON 4/27/00 while (dx>0) //DEADCODE JON 4/27/00 { //DEADCODE JON 4/27/00 //scroll data left (west) 'cos we're moving east //DEADCODE JON 4/27/00 HTEXT* ptmp=pGrid; //DEADCODE JON 4/27/00 for (SLong c=wholeAreaSize-1;c>=0;c--) //DEADCODE JON 4/27/00 { //DEADCODE JON 4/27/00 if (ptmp[0]!=HTEXTNULL) pDiscarded->hText[pDiscarded->num++]=ptmp[0]; //DEADCODE JON 4/27/00 for (SLong r=wholeAreaSize-1;r;r--,ptmp++) ptmp[0]=ptmp[1]; //DEADCODE JON 4/27/00 *ptmp++=HTEXTNULL; //DEADCODE JON 4/27/00 } //DEADCODE JON 4/27/00 dx-=_blockWidth; //DEADCODE JON 4/27/00 } //DEADCODE JON 4/27/00 //DEADCODE JON 4/27/00 while (dx<0) //DEADCODE JON 4/27/00 { //DEADCODE JON 4/27/00 //scroll data right (east) 'cos we're moving west //DEADCODE JON 4/27/00 HTEXT* ptmp=pGrid+GRID_SIZE-1; //DEADCODE JON 4/27/00 for (SLong r=wholeAreaSize-1;r>=0;r--) //DEADCODE JON 4/27/00 { //DEADCODE JON 4/27/00 if (ptmp[0]!=HTEXTNULL) pDiscarded->hText[pDiscarded->num++]=ptmp[0]; //DEADCODE JON 4/27/00 for (SLong c=wholeAreaSize-1;c;c--,ptmp--) ptmp[0]=ptmp[-1]; //DEADCODE JON 4/27/00 *ptmp--=HTEXTNULL; //DEADCODE JON 4/27/00 } //DEADCODE JON 4/27/00 dx+=_blockWidth; //DEADCODE JON 4/27/00 } //DEADCODE JON 4/27/00 //DEADCODE JON 4/27/00 while (dz>0) //DEADCODE JON 4/27/00 { //DEADCODE JON 4/27/00 //scroll data up (south) 'cos we're moving north //DEADCODE JON 4/27/00 HTEXT *ptmp=pGrid,*ptmp2=ptmp+wholeAreaSize; //DEADCODE JON 4/27/00 for (SLong r=wholeAreaSize-1;r>=0;r--) if (ptmp[r]!=HTEXTNULL) pDiscarded->hText[pDiscarded->num++]=ptmp[r]; //DEADCODE JON 4/27/00 for (r=GRID_SIZE-wholeAreaSize;r--;) *ptmp++=*ptmp2++; //DEADCODE JON 4/27/00 for (r=wholeAreaSize;r--;) *ptmp++=HTEXTNULL; //DEADCODE JON 4/27/00 dz-=_blockWidth; //DEADCODE JON 4/27/00 } //DEADCODE JON 4/27/00 //DEADCODE JON 4/27/00 while (dz<0) //DEADCODE JON 4/27/00 { //DEADCODE JON 4/27/00 //scroll data down (north) 'cos we're moving south //DEADCODE JON 4/27/00 HTEXT *ptmp=pGrid+GRID_SIZE-1,*ptmp2=ptmp-wholeAreaSize; //DEADCODE JON 4/27/00 for (SLong r=wholeAreaSize-1;r>=0;r--) if (ptmp[-r]!=HTEXTNULL) pDiscarded->hText[pDiscarded->num++]=ptmp[-r]; //DEADCODE JON 4/27/00 for (r=GRID_SIZE-wholeAreaSize;r--;) *ptmp--=*ptmp2--; //DEADCODE JON 4/27/00 for (r=wholeAreaSize;r--;) *ptmp--=HTEXTNULL; //DEADCODE JON 4/27/00 dz+=_blockWidth; //DEADCODE JON 4/27/00 } //DEADCODE JON 4/27/00 } //컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴 //Procedure ScrollTileGrid //Author Jon //Date 4/26/00 // moves the tile grid thingy about... //------------------------------------------------------------------------------ void LandScape::ScrollTileGrid(SLong dx,SLong dz) { const SLong wholeAreaSize=_wholeAreaSizeMIN; const SLong GRID_SIZE=wholeAreaSize*wholeAreaSize; while (dx>0) { //scroll data left (west) 'cos we're moving east TileElement* ptmp=tileCacheGrid; for (SLong c=wholeAreaSize-1;c>=0;c--) { if (ptmp[0].textHandle!=HTEXTNULL) g_lpLib3d->FreeLandscapeTexture( ptmp[0].textHandle.textureHandle ); for (SLong r=wholeAreaSize-1;r;r--,ptmp++) ptmp[0]=ptmp[1]; ptmp->reset(); ptmp++; } dx--; } while (dx<0) { //scroll data right (east) 'cos we're moving west TileElement* ptmp=tileCacheGrid+GRID_SIZE-1; for (SLong r=wholeAreaSize-1;r>=0;r--) { if (ptmp[0].textHandle!=HTEXTNULL) g_lpLib3d->FreeLandscapeTexture( ptmp[0].textHandle.textureHandle ); for (SLong c=wholeAreaSize-1;c;c--,ptmp--) ptmp[0]=ptmp[-1]; ptmp->reset(); ptmp--; } dx++; } while (dz>0) { //scroll data up (south) 'cos we're moving north //DeadCode JON 18Jul00 TileElement* ptmp=tileCacheGrid,*ptmp2=ptmp+wholeAreaSize; //DeadCode JON 18Jul00 //DeadCode JON 18Jul00 for (SLong r=wholeAreaSize-1;r>=0;r--) //DeadCode JON 18Jul00 if (ptmp[r].textHandle!=HTEXTNULL) //DeadCode JON 18Jul00 g_lpLib3d->FreeLandscapeTexture( ptmp[r].textHandle.textureHandle ); //DeadCode JON 18Jul00 //DeadCode JON 18Jul00 for (r=GRID_SIZE-wholeAreaSize;r--;) //DeadCode JON 18Jul00 *ptmp++=*ptmp2++; //DeadCode JON 18Jul00 //DeadCode JON 18Jul00 for (r=wholeAreaSize;r--;ptmp++) //DeadCode JON 18Jul00 ptmp->reset(); //DeadCode JON 18Jul00 dz--; TileElement* ptmp=tileCacheGrid; TileElement* ptmp2=tileCacheGrid; { for ( int i = wholeAreaSize;i;i--,ptmp2++ ) { if ( ptmp2->textHandle!=HTEXTNULL ) g_lpLib3d->FreeLandscapeTexture( ptmp2->textHandle.textureHandle ); } } { for (int i = ((wholeAreaSize-1)*wholeAreaSize);i;i--,ptmp++,ptmp2++ ) *ptmp=*ptmp2; } for (int i = wholeAreaSize;i;i--,ptmp++ ) ptmp->reset(); dz--; } while (dz<0) { //scroll data down (north) 'cos we're moving south TileElement* ptmp=tileCacheGrid+GRID_SIZE-1,*ptmp2=ptmp-wholeAreaSize; { for (SLong r=wholeAreaSize-1;r>=0;r--) if (ptmp[-r].textHandle!=HTEXTNULL) g_lpLib3d->FreeLandscapeTexture( ptmp[-r].textHandle.textureHandle ); } { for (SLong r=GRID_SIZE-wholeAreaSize;r--;) *ptmp--=*ptmp2--; } for (SLong r=wholeAreaSize;r--;ptmp--) ptmp->reset(); dz++; } } ////////////////////////////////////////////////////////////////////// // // Function: MakeSpaceInList // Date: 17/07/00 // Author: JON // //Description: Makes space for tiles of a certain resolution in a number of ways // 1st tries to reduce the quality of the tile to that in reducedRez (will itself decreace that value if no space) // 2nd it will delete any remaining ones untill the desired number have been freed // Will stop when the list to free is empty - numDesired is returned with the number remaining // ////////////////////////////////////////////////////////////////////// inline void LandScape::MakeSpaceInList( TileResList* currResList, UWord& numDesired, UWord& listToFree, int& reducedRez ) { UWord remOffset = listToFree; while ( listToFree != NULLTILEOFFSET && currResList->freeTiles < numDesired ) { // rather than delete these offscreen tiles, reduce their quality as it is quick TileElement* cTile = tileCacheGrid+remOffset; // the tile to reduce remOffset = cTile->nextLink; TileResList* reducedResList = &tileResList[reducedRez]; while ( reducedRez >= 0 && reducedResList->freeTiles <= numDesired ) { // find the available offscreen resoultions reducedResList = &tileResList[--reducedRez]; } if ( reducedRez >= 0 ) { // we can do the reduce reducedResList->freeTiles--; HTEXT newTH; g_lpLib3d->AllocateLandscapeTexture( 7-reducedRez, newTH.textureHandle); // now make the lower rez version #ifndef _NO_TEXTURE_RENDER g_lpLib3d->ReduceLandQuality( cTile->textHandle.textureHandle, newTH.textureHandle ); #endif g_lpLib3d->FreeLandscapeTexture(cTile->textHandle.textureHandle); cTile->textHandle=newTH; cTile->currentRes=reducedRez; cTile->nextLink = NULLTILEOFFSET; // shouldn't be needed // hmm, this should be good. // TileResList::add( tileResList[reducedRez].offScreenRemaining, remOffset ); } else { // none spare, just delete g_lpLib3d->FreeLandscapeTexture(cTile->textHandle.textureHandle); cTile->reset(); } currResList->freeTiles++; listToFree = remOffset; } } //컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴 //Procedure ManageHighLandTextures //Author Paul. //Date Fri 6 Nov 1998 // Re-Written By Jon 4/26/00 // Calculates which tiles to render to textures and the levels to render them at // Handles cache etc. //------------------------------------------------------------------------------ bool LandScape::ManageHighLandTextures(SLong px,SLong pz) { #pragma warnmsg ( "Optimise here as many frame invariants are re-calculated on a per frame basis" ) //DeadCode MS 15Aug00 Mono_Text.Print((UByte*)"MHLT: start "); bool allAtReqLevel = true; // why is this delay here you may ask // this prevents any landscape tiles being rendered in the first frame // which makes my geforceIII work as it should. No other card to date // needs this and if I could find out why the GeForce does I'd fix it. // unfortunatly this fix cannot go in lib3d.dll with a cardbase thingy // so here it is. if ( landscapeDelay ) { landscapeDelay--; return true; } //DeadCode JON 2Aug00 const UWord AGEMASK = 0xFFFF>>1; const int WIDTH=_wholeAreaSizeMIN; //DeadCode JON 31Jul00 const int MAX_AT_EACH_RES = 7; // tile making factors - multiply the values by num of that type of tiles // stop making when the cumulative is greater than MAX_WEIGHTED // could do something clever with bit fields I guess const int MAX_WEIGHTED = 60;//100; const int NEW_TILE_WEIGHT = 20; const int CHANGED_TILE_WEIGHT = 40; // const int OFFSCREEN_TILE_WEIGHT = 50; //DeadCode JON 2Aug00 static UWord ageCount = 0x7FFF-1; UWord bgList = NULLTILEOFFSET; // the tiles to be done in the background if possible int bgCount = 0; // number of tiles to do in the background const int MAX_BACKGROUND = 2; // maximum number of background tiles to make per frame. const int DO_BACKGROUND_CUTOFF = 20; // do background tiles before change rez if // bgCount is less than this // const int OFF_SCREEN_HIGHEST_REZ = 3; //TempCode JON 17Jul00 int numNewTiles = 0; #ifndef NDEBUG #define DEBUG_GRID #endif #ifdef DEBUG_GRID //DeadCode MS 15Aug00 Mono_Text.Print((UByte*)"MHLT: debug "); // right quick test code const int dGS = 17*18; // debug grid size const int gS = 17*17; // grid size static UByte resGrid[dGS*3]; int i; for (i = 0; i< gS; i++ ) resGrid[i] = tileCacheGrid[i].currentRes; for ( ; i< dGS; i++ ) resGrid[i]=0xAA; // count the number of visible tiles at same time.. int totalVis = 0; for ( i = 0; i< gS; i++ ) if ( gridCone[i]==0 ) resGrid[i+dGS] = 0xEE; else { resGrid[i+dGS] = tileCacheGrid[i].currentRes; totalVis++; } for ( ; i< dGS; i++ ) resGrid[i+dGS] = 0xAA; for ( i = 0; i< gS; i++ ) resGrid[ i+(dGS*2) ] = UByte( '?' ); for ( ; i< dGS; i++ ) resGrid[i+(dGS*2)] = 0xAA; // more test code - check that the same texture isn't being used twice... for ( i = WIDTH*WIDTH; i ; i-- ) { if ( tileCacheGrid[i].textHandle == HTEXTNULL ) { continue; // skip } for ( int j = WIDTH*WIDTH; j ; j-- ) { if ( i !=j && tileCacheGrid[i].textHandle == tileCacheGrid[j].textHandle ) NOP; } } #endif //DeadCode JON 2Aug00 if ( ++ageCount < 0x7FFF ) //DeadCode JON 2Aug00 { //DeadCode JON 2Aug00 ageCount = 0x7FFF; //DeadCode JON 2Aug00 // now must clear the top bit of all ages //DeadCode JON 2Aug00 TileElement* tmp = tileCacheGrid; //DeadCode JON 2Aug00 for ( int i = 0; i < WIDTH*WIDTH; i++, tmp++ ) //DeadCode JON 2Aug00 tmp->age&=AGEMASK; //DeadCode JON 2Aug00 //DeadCode JON 2Aug00 for ( i=0; i<8; i++ ) //DeadCode JON 2Aug00 { //DeadCode JON 2Aug00 tileResList[i].oldestAge&=AGEMASK; //DeadCode JON 2Aug00 tileResList[i].nextOldestAge&=AGEMASK; //DeadCode JON 2Aug00 } //DeadCode JON 2Aug00 } //DeadCode MS 15Aug00 Mono_Text.Print((UByte*)"MHLT: get count "); g_lpLib3d->GetLandscapeTextureCount( tileResList[7].totalTiles, // num 1024 res tileResList[6].totalTiles, // num 512 tileResList[5].totalTiles, // num 256 tileResList[4].totalTiles, // num 128 tileResList[3].totalTiles, // num 64 tileResList[2].totalTiles, // num 32 tileResList[1].totalTiles, // num 16 tileResList[0].totalTiles // num 8 ); //DeadCode JON 31Jul00 int maxAtRes; if ( maxResTiles ) { //DeadCode JON 31Jul00 maxAtRes = 500; // note can't be 256 tiles g_lpLib3d->GetLandscapeTextureCount( tileResList[7].onScreenMax, // num 1024 res tileResList[6].onScreenMax, // num 512 tileResList[5].onScreenMax, // num 256 tileResList[4].onScreenMax, // num 128 tileResList[3].onScreenMax, // num 64 tileResList[2].onScreenMax, // num 32 tileResList[1].onScreenMax, // num 16 tileResList[0].onScreenMax // num 8 ); } else { //DeadCode JON 31Jul00 maxAtRes = MAX_AT_EACH_RES; g_lpLib3d->GetLandscapeTextureOnScreenMax( tileResList[7].onScreenMax, // num 1024 res tileResList[6].onScreenMax, // num 512 tileResList[5].onScreenMax, // num 256 tileResList[4].onScreenMax, // num 128 tileResList[3].onScreenMax, // num 64 tileResList[2].onScreenMax, // num 32 tileResList[1].onScreenMax, // num 16 tileResList[0].onScreenMax // num 8 ); } //DeadCode MS 15Aug00 Mono_Text.Print((UByte*)"MHLT: reset loop "); for ( int j = 0; j < 8; tileResList[j++].reset() ) {/* re initialising the lists*/} int currentRes; for (currentRes = 7; tileResList[currentRes].totalTiles==0; currentRes-- ) { /*search for the highest resolution possible*/ } int highestPossRes = currentRes; meshDetailLevel = meshDetailLookup[ Save_Data.contourDetail ]; int DX=1,DY=WIDTH; int DDA=0; //pointeroffset to move this time. // TileElement* curr=tileCacheGrid+((WIDTH/2))*WIDTH+((WIDTH/2));//Centresquare; UWord curr = ((WIDTH/2))*WIDTH+((WIDTH/2)); // offset to the current tile int counter=1; int R=0; //radius int R2=0; //radius/2 enum Phase { PH_0,PH_1,PH_2,PH_3,PH_4, //centre square PH_A,PH_B,PH_C,PH_D,PH_E,PH_F,PH_G,PH_H, //odd radius PH_I,PH_J,PH_K,PH_L, //filler PH_M,PH_N,PH_O,PH_P,PH_Q,PH_R,PH_S,PH_T, //even radius PH_U,PH_V,PH_W,PH_X, //corners PH_Y,PH_Z,PH_END //last 4 }; Phase phase=PH_0; //DeadCode MS 15Aug00 Mono_Text.Print((UByte*)"MHLT: while loop "); while(phase!=PH_END) //optimiser should make case statement bypass while statement { // Process(curr); // curr ptr to current grid loc, process do the work. //DeadCode JON 31Jul00 if ( (tileResList[currentRes].desiredTiles == maxAtRes || tileResList[currentRes].desiredTiles == tileResList[currentRes].totalTiles )/*&& currentRes>0*/ ) //DeadCode JON 31Jul00 { //DeadCode JON 31Jul00 currentRes--; //DeadCode JON 31Jul00 } while ( tileResList[currentRes].desiredTiles == tileResList[currentRes].onScreenMax ) { currentRes--; #ifndef NDEBUG // if ( currentRes < 0 ) // INT3; assert( currentRes>=0 && "run out of texture tiles." ); #endif } TileElement* cTile = tileCacheGrid+curr; // set the meshdetail level cTile->meshRes=meshDetailLevel[R]; cTile->viewRadius = R; if ( *(gridCone+curr) ) { // this tile is visible //DeadCode JON 2Aug00 cTile->age = ageCount; cTile->desiredRes = currentRes; tileResList[currentRes].desiredTiles++; // one more desired. if ( cTile->currentRes < cTile->desiredRes ) { // the tile is currently at too low a rez TileResList::add( tileResList[cTile->desiredRes].underResTile, curr ); tileResList[cTile->currentRes].freeTiles--; // this isn't free. } else if ( cTile->currentRes > cTile->desiredRes ) { if ( cTile->currentRes == OFFSCREENRES ) { // the tile has no texture at the moment TileResList::add( tileResList[cTile->desiredRes].newTile, curr ); tileResList[cTile->desiredRes].numNewTiles++; //TEMPCODE JON 6/7/00 numNewTiles++; } else { // the tile is currently at too high rez TileResList::add( tileResList[cTile->desiredRes].overResTile, curr ); tileResList[cTile->currentRes].freeTiles--; // this isn't free. } } else { // the tile is at the correct res tileResList[currentRes].freeTiles--; // it isn't free though } } else { // this tile is not visible if ( cTile->currentRes != OFFSCREENRES ) { // needs adding to an oldest tile... tileResList[cTile->currentRes].freeTiles--; // this isn't free. TileResList::add( tileResList[cTile->currentRes].offScreen, curr ); //DeadCode JON 2Aug00 if ( cTile->age == tileResList[cTile->currentRes].oldestAge ) //DeadCode JON 2Aug00 { // add to the oldest age list //DeadCode JON 2Aug00 TileResList::add( //DeadCode JON 2Aug00 tileResList[cTile->currentRes].offScreenOldest, //DeadCode JON 2Aug00 curr ); //DeadCode JON 2Aug00 } else //DeadCode JON 2Aug00 { // add to the remaining offscreen tiles //DeadCode JON 2Aug00 TileResList::add( //DeadCode JON 2Aug00 tileResList[cTile->currentRes].offScreenRemaining, //DeadCode JON 2Aug00 curr ); //DeadCode JON 2Aug00 if ( cTile->age < tileResList[cTile->currentRes].nextOldestAge ) //DeadCode JON 2Aug00 tileResList[cTile->currentRes].nextOldestAge = cTile->age; //DeadCode JON 2Aug00 } } else { // not visible and not cached //DEADCODE JON 6/6/00 if ( bgCount > 0 ) //DEADCODE JON 6/6/00 { //DEADCODE JON 6/6/00 bgCount--; //DEADCODE JON 6/6/00 TileResList::add( bgList, curr ); //DEADCODE JON 6/6/00 } if ( bgCount++ < MAX_BACKGROUND ) { TileResList::add( bgList, curr ); } } } // the rest of the loop is the iteration to go round the spiral. if (--counter!=0) curr+=DDA; else { switch(phase) { case PH_0: phase=PH_1; DDA=+DX; R+=1; R2+=0; counter=2; curr+=-DY; break; case PH_1: phase=PH_2; DDA=+DY; R+=0; R2+=0; counter=2; curr+=DDA; break; case PH_2: phase=PH_3; DDA=-DX; R+=0; R2+=0; counter=2; curr+=DDA; break; case PH_3: phase=PH_4; DDA=-DY; R+=0; R2+=0; counter=2; curr+=DDA; break; case PH_4: phase=PH_A; DDA=+DX; R+=1; R2+=1; counter=2; curr+=-DY+DX; break; case PH_A: phase=PH_B; DDA=+DX+DY; R+=0; R2+=0; counter=R2; curr+=DDA; break; case PH_B: phase=PH_C; DDA=+DY; R+=0; R2+=0; counter=R; curr+=DDA; break; case PH_C: phase=PH_D; DDA=-DX+DY; R+=0; R2+=0; counter=R2; curr+=DDA; break; case PH_D: phase=PH_E; DDA=-DX; R+=0; R2+=0; counter=R; curr+=DDA; break; case PH_E: phase=PH_F; DDA=-DX-DY; R+=0; R2+=0; counter=R2; curr+=DDA; break; case PH_F: phase=PH_G; DDA=-DY; R+=0; R2+=0; counter=R; curr+=DDA; break; case PH_G: phase=PH_H; DDA=+DX-DY; R+=0; R2+=0; counter=R2; curr+=DDA; break; case PH_H: if ( R<8 ) { phase=PH_I; DDA=+DX+DY; R+=0; R2+=0; counter=R2; curr+=(R+1)*DX; } else { phase=PH_W; DDA=+DX+DY; R+=1; R2=13-R; counter=13-R; curr+=(2*R-9)*DX; } break; case PH_I: phase=PH_J; DDA=-DX+DY; R+=0; R2+=0; counter=R2; curr+=(R+2)*DY; break; case PH_J: phase=PH_K; DDA=-DX-DY; R+=0; R2+=0; counter=R2; curr+=-(R+2)*DX; break; case PH_K: phase=PH_L; DDA=+DX-DY; R+=0; R2+=0; counter=R2; curr+=-(R+2)*DY; break; case PH_L: phase=PH_M; DDA=+DX; R+=1; R2+=0; counter=R+1; curr+=+DX-DY; break; case PH_M: phase=PH_N; DDA=+DX+DY; R+=0; R2+=0; counter=R2; curr+=DDA; break; case PH_N: phase=PH_O; DDA=+DY; R+=0; R2+=0; counter=R+1; curr+=DDA; break; case PH_O: phase=PH_P; DDA=-DX+DY; R+=0; R2+=0; counter=R2; curr+=DDA; break; case PH_P: phase=PH_Q; DDA=-DX; R+=0; R2+=0; counter=R+1; curr+=DDA; break; case PH_Q: phase=PH_R; DDA=-DX-DY; R+=0; R2+=0; counter=R2; curr+=DDA; break; case PH_R: phase=PH_S; DDA=-DY; R+=0; R2+=0; counter=R+1; curr+=DDA; break; case PH_S: phase=PH_T; DDA=+DX-DY; R+=0; R2+=0; counter=R2; curr+=DDA; break; case PH_T: phase=PH_A; DDA=+DX; R+=1; R2+=1; counter=R; curr+=+DX-DY; break; case PH_W: phase=PH_X; DDA=-DX+DY; R+=0; R2+=0; counter=13-R; curr+=(2*R-8)*DY; break; case PH_X: phase=PH_Y; DDA=-DX-DY; R+=0; R2+=0; counter=13-R; curr+=-(2*R-8)*DX; break; case PH_Y: phase=PH_Z; DDA=+DX-DY; R+=0; R2+=0; counter=13-R; curr+=-(2*R-8)*DY; break; case PH_Z: if ( R<12 ) { phase=PH_W; DDA=+DX+DY; R+=1; R2+=1; counter=13-R; curr+=(2*R-9)*DX; } else { phase=PH_END; } break; NODEFAULT; } } } // end of while //DEADCODE JON 5/12/00 if ( numNewTiles > 3 ) //DEADCODE JON 5/12/00 int i=0; // now we have to go through the lists we have built and render the tile changes that we can. // step one: shuffle things about so there are enough tiles of each resolution to build the new // ones that are wanted... int cumWeight = 0; // no not some sick var name- cumulative tile weight int rez; // ok now first we can reduce the res of anything wanting it as it's virtually free... //DeadCode JON 17Jul00 // when lowering resolutions start at the highest res and move on down //DeadCode JON 17Jul00 // note - no need to start at the very highest as there will be nothing //DeadCode JON 17Jul00 // of higher resolution anyway. //DeadCode JON 17Jul00 for ( rez = 6; rez >= 0; rez-- ) int offScreenRes;// = OFF_SCREEN_HIGHEST_REZ; for ( offScreenRes = 0; tileResList[offScreenRes].freeTiles==0; offScreenRes++ ) { /*search for the lowest resolution possible with free tiles*/ } if ( offScreenRes > 7 ) offScreenRes = 0; // there are no free tiles... else { offScreenRes = (highestPossRes + offScreenRes)>>1; // start offscreen between the two.. if ( offScreenRes<3 ) offScreenRes = 3; } // when lowering resolutions start at the bottom and work up - should never not be able to lower a // rez because of a lost tile // note - no need to start at the very highest as there will be nothing // of higher resolution anyway. //DeadCode MS 15Aug00 Mono_Text.Print((UByte*)"MHLT: for res=0 "); for ( rez = 0; rez <7; rez++ ) { TileResList* currResList = &tileResList[rez]; UWord offset = currResList->overResTile; while ( offset != NULLTILEOFFSET ) { while ( currResList->freeTiles <= currResList->numNewTiles ) { // try to free some tiles UWord numReq = 1 + currResList->numNewTiles; //DeadCode JON 2Aug00 MakeSpaceInList( currResList, numReq, currResList->offScreenOldest, offScreenRes ); //DeadCode JON 2Aug00 MakeSpaceInList( currResList, numReq, currResList->offScreenRemaining, offScreenRes ); MakeSpaceInList( currResList, numReq, currResList->offScreen, offScreenRes ); if ( currResList->freeTiles < numReq ) break; //DeadCode JON 18Jul00 if ( currResList->offScreenOldest != NULLTILEOFFSET ) //DeadCode JON 18Jul00 { //DeadCode JON 18Jul00 TileElement* delTile = tileCacheGrid+currResList->offScreenOldest; //DeadCode JON 18Jul00 g_lpLib3d->FreeLandscapeTexture(delTile->textHandle.textureHandle); //DeadCode JON 18Jul00 currResList->offScreenOldest = delTile->nextLink; //DeadCode JON 18Jul00 delTile->reset(); //DeadCode JON 18Jul00 currResList->freeTiles++; //DeadCode JON 18Jul00 } else if ( currResList->offScreenRemaining != NULLTILEOFFSET ) //DeadCode JON 18Jul00 { //DeadCode JON 18Jul00 TileElement* delTile = tileCacheGrid+currResList->offScreenRemaining; //DeadCode JON 18Jul00 g_lpLib3d->FreeLandscapeTexture(delTile->textHandle.textureHandle); //DeadCode JON 18Jul00 currResList->offScreenRemaining = delTile->nextLink; //DeadCode JON 18Jul00 delTile->reset(); //DeadCode JON 18Jul00 currResList->freeTiles++; //DeadCode JON 18Jul00 } //DeadCode JON 18Jul00 //DeadCode JON 18Jul00 else //DeadCode JON 18Jul00 //DeadCode JON 18Jul00 break; // can't make any more space. } TileElement* cTile = tileCacheGrid+offset; if ( currResList->freeTiles <= currResList->numNewTiles ) break; // unable to make enough space #ifndef NDEBUG //shouldn't be possible for this to happen if ( cTile->textHandle == HTEXTNULL ) INT3; #endif { // we can do the quick reduce tileResList[cTile->currentRes].freeTiles++; currResList->freeTiles--; HTEXT newTH; g_lpLib3d->AllocateLandscapeTexture( 7-rez, newTH.textureHandle); // now make the lower rez version #ifndef _NO_TEXTURE_RENDER g_lpLib3d->ReduceLandQuality( cTile->textHandle.textureHandle, newTH.textureHandle ); #endif g_lpLib3d->FreeLandscapeTexture(cTile->textHandle.textureHandle); cTile->textHandle=newTH; cTile->currentRes=rez; currResList->overResTile = cTile->nextLink; offset = currResList->overResTile; cTile->nextLink = NULLTILEOFFSET; // shouldn't be needed but what the heck... } //TempCode JON 18Jul00 else //TempCode JON 18Jul00 { // can't do the quick reduce as we've already killed the source somehow //TempCode JON 18Jul00 INT3; //TempCode JON 18Jul00 currResList->overResTile = cTile->nextLink; //TempCode JON 18Jul00 TileResList::add( currResList->newTile, offset ); //TempCode JON 18Jul00 offset = currResList->overResTile; //TempCode JON 18Jul00 currResList->numNewTiles++; //TempCode JON 18Jul00 cumWeight+=CHANGED_TILE_WEIGHT; //TempCode JON 18Jul00 } } } // prepare to make any new tiles as needed //DeadCode MS 15Aug00 Mono_Text.Print((UByte*)"MHLT: ror res=7 "); for ( rez = 7; rez >= 0; rez-- ) { TileResList* currResList = &tileResList[rez]; if ( currResList->newTile != NULLTILEOFFSET ) { // make some more space if needed if ( currResList->freeTiles < currResList->numNewTiles ) { // we need to free up some tiles at this rez to continue. // try the oldest first //DeadCode JON 2Aug00 MakeSpaceInList( currResList, currResList->numNewTiles, currResList->offScreenOldest, offScreenRes ); //DeadCode JON 2Aug00 MakeSpaceInList( currResList, currResList->numNewTiles, currResList->offScreenRemaining, offScreenRes ); MakeSpaceInList( currResList, currResList->numNewTiles, currResList->offScreen, offScreenRes ); //DeadCode JON 18Jul00 int reducedRez = OFF_SCREEN_HIGHEST_REZ; //DeadCode JON 18Jul00 //DeadCode JON 18Jul00 UWord remOffset = currResList->offScreenOldest; //DeadCode JON 18Jul00 while ( remOffset != NULLTILEOFFSET && //DeadCode JON 18Jul00 currResList->freeTiles < currResList->numNewTiles ) //DeadCode JON 18Jul00 { //DeadCode JON 18Jul00 //DeadCode JON 18Jul00 // rather than delete these offscreen tiles, reduce their quality as it is quick //DeadCode JON 18Jul00 TileElement* cTile = tileCacheGrid+remOffset; // the tile to reduce //DeadCode JON 18Jul00 remOffset = cTile->nextLink; //DeadCode JON 18Jul00 //DeadCode JON 18Jul00 // we can do some background processing - hurrah. //DeadCode JON 18Jul00 TileResList* reducedResList = &tileResList[rez]; //DeadCode JON 18Jul00 //DeadCode JON 17Jul00 while ( reducedResList->freeTiles <= currResList->numNewTiles ) //DeadCode JON 18Jul00 while ( reducedRez >= 0 && reducedResList->freeTiles <= reducedResList->numNewTiles ) //DeadCode JON 18Jul00 { // find the available offscreen resoultions //DeadCode JON 18Jul00 reducedResList = &tileResList[--reducedRez]; //DeadCode JON 18Jul00 } //DeadCode JON 18Jul00 if ( reducedRez >= 0 ) //DeadCode JON 18Jul00 { // we can do the reduce //DeadCode JON 18Jul00 reducedResList->freeTiles--; //DeadCode JON 18Jul00 HTEXT newTH; //DeadCode JON 18Jul00 g_lpLib3d->AllocateLandscapeTexture( 7-reducedRez, newTH.textureHandle); //DeadCode JON 18Jul00 //DeadCode JON 18Jul00 // now make the lower rez version //DeadCode JON 18Jul00 g_lpLib3d->ReduceLandQuality( cTile->textHandle.textureHandle, newTH.textureHandle ); //DeadCode JON 18Jul00 //DeadCode JON 18Jul00 g_lpLib3d->FreeLandscapeTexture(cTile->textHandle.textureHandle); //DeadCode JON 18Jul00 cTile->textHandle=newTH; //DeadCode JON 18Jul00 cTile->currentRes=reducedRez; //DeadCode JON 18Jul00 cTile->nextLink = NULLTILEOFFSET; // shouldn't be needed //DeadCode JON 18Jul00 } else //DeadCode JON 18Jul00 { // none spare, just delete //DeadCode JON 18Jul00 g_lpLib3d->FreeLandscapeTexture(cTile->textHandle.textureHandle); //DeadCode JON 18Jul00 cTile->reset(); //DeadCode JON 18Jul00 } //DeadCode JON 18Jul00 //DeadCode JON 18Jul00 currResList->freeTiles++; //DeadCode JON 18Jul00 currResList->offScreenOldest = remOffset; //DeadCode JON 18Jul00 } //DeadCode JON 18Jul00 //DeadCode JON 18Jul00 // try the rest //DeadCode JON 18Jul00 remOffset = currResList->offScreenRemaining; //DeadCode JON 18Jul00 while ( remOffset != NULLTILEOFFSET && //DeadCode JON 18Jul00 currResList->freeTiles < currResList->numNewTiles ) //DeadCode JON 18Jul00 { //DeadCode JON 18Jul00 // rather than delete these offscreen tiles, reduce their quality as it is quick //DeadCode JON 18Jul00 TileElement* cTile = tileCacheGrid+remOffset; // the tile to reduce //DeadCode JON 18Jul00 remOffset = cTile->nextLink; //DeadCode JON 18Jul00 //DeadCode JON 18Jul00 // we can do some background processing - hurrah. //DeadCode JON 18Jul00 TileResList* reducedResList = &tileResList[rez]; //DeadCode JON 18Jul00 //DeadCode JON 17Jul00 while ( reducedResList->freeTiles <= currResList->numNewTiles ) //DeadCode JON 18Jul00 while ( reducedRez >= 0 && reducedResList->freeTiles <= reducedResList->numNewTiles ) //DeadCode JON 18Jul00 { // find the available offscreen resoultions //DeadCode JON 18Jul00 reducedResList = &tileResList[--reducedRez]; //DeadCode JON 18Jul00 } //DeadCode JON 18Jul00 if ( reducedRez >= 0 ) //DeadCode JON 18Jul00 { // we can do the reduce //DeadCode JON 18Jul00 reducedResList->freeTiles--; //DeadCode JON 18Jul00 HTEXT newTH; //DeadCode JON 18Jul00 g_lpLib3d->AllocateLandscapeTexture( 7-reducedRez, newTH.textureHandle); //DeadCode JON 18Jul00 //DeadCode JON 18Jul00 // now make the lower rez version //DeadCode JON 18Jul00 g_lpLib3d->ReduceLandQuality( cTile->textHandle.textureHandle, newTH.textureHandle ); //DeadCode JON 18Jul00 //DeadCode JON 18Jul00 g_lpLib3d->FreeLandscapeTexture(cTile->textHandle.textureHandle); //DeadCode JON 18Jul00 cTile->textHandle=newTH; //DeadCode JON 18Jul00 cTile->currentRes=reducedRez; //DeadCode JON 18Jul00 cTile->nextLink = NULLTILEOFFSET; // shouldn't be needed //DeadCode JON 18Jul00 //DeadCode JON 18Jul00 } else //DeadCode JON 18Jul00 { // none spare, just delete //DeadCode JON 18Jul00 g_lpLib3d->FreeLandscapeTexture(cTile->textHandle.textureHandle); //DeadCode JON 18Jul00 cTile->reset(); //DeadCode JON 18Jul00 } //DeadCode JON 18Jul00 //DeadCode JON 18Jul00 currResList->freeTiles++; //DeadCode JON 18Jul00 currResList->offScreenOldest = remOffset; //DeadCode JON 18Jul00 } if ( currResList->freeTiles < currResList->numNewTiles ) { //DeadCode JON 2Aug00 currResList->offScreenRemaining = NULLTILEOFFSET; currResList->offScreen = NULLTILEOFFSET; // right now we need to shove any tiles we are unable to do into the next rez list allAtReqLevel = false; if ( rez > 0 ) { // get to the first one to move ( move the end of the list not the start ) UWord offset = currResList->newTile; UWord tmp; if ( currResList->freeTiles > 0 ) { for ( int i = currResList->freeTiles; i>0; i-- ) offset = (tileCacheGrid+offset)->nextLink; tmp = offset; offset = (tileCacheGrid+offset)->nextLink; (tileCacheGrid+tmp)->nextLink = NULLTILEOFFSET; } else { currResList->newTile = NULLTILEOFFSET; } while( offset != NULLTILEOFFSET ) { currResList->numNewTiles--; tileResList[rez-1].numNewTiles++; tmp = (tileCacheGrid+offset)->nextLink; TileResList::add( tileResList[rez-1].newTile, offset ); offset = tmp; } } } // if ( currResList->freeTiles < currResList->numNewTiles ) // { // INT3; //we've been unable to make the required space in anyway // } } } cumWeight += currResList->numNewTiles; } cumWeight*=NEW_TILE_WEIGHT; // now do a pass to make as many changed tiles as we can //DeadCode MS 15Aug00 Mono_Text.Print((UByte*)"MHLT: cumWeight "); if ( cumWeight < MAX_WEIGHTED && bgCount > DO_BACKGROUND_CUTOFF ) { // great we can now make some resolution changes // only need to raise as we've already lowered for very little cost // when raising resolutions start at the highest again, // but don't bother wiv the lowest for ( rez = 7; rez >0; rez-- ) { TileResList* currResList = &tileResList[rez]; UWord offset = currResList->underResTile; while ( offset != NULLTILEOFFSET && cumWeight < MAX_WEIGHTED ) { if ( currResList->freeTiles == currResList->numNewTiles ) { // try to free some tiles //TempCode JON 18Jul00 UWord numReq = 1 + currResList->numNewTiles; //TempCode JON 18Jul00 MakeSpaceInList( currResList, numReq, currResList->offScreenOldest, offScreenRes ); //TempCode JON 18Jul00 MakeSpaceInList( currResList, numReq, currResList->offScreenRemaining, offScreenRes ); //TempCode JON 18Jul00 if ( currResList->freeTiles < numReq ) //TempCode JON 18Jul00 break; //DeadCode JON 2Aug00 if ( currResList->offScreenOldest != NULLTILEOFFSET ) //DeadCode JON 2Aug00 { //DeadCode JON 2Aug00 TileElement* cTile = tileCacheGrid+currResList->offScreenOldest; //DeadCode JON 2Aug00 g_lpLib3d->FreeLandscapeTexture(cTile->textHandle.textureHandle); //DeadCode JON 2Aug00 currResList->offScreenOldest = cTile->nextLink; //DeadCode JON 2Aug00 cTile->reset(); //DeadCode JON 2Aug00 currResList->freeTiles++; //DeadCode JON 2Aug00 } else if ( currResList->offScreenRemaining != NULLTILEOFFSET ) //DeadCode JON 2Aug00 { //DeadCode JON 2Aug00 TileElement* cTile = tileCacheGrid+currResList->offScreenRemaining; //DeadCode JON 2Aug00 g_lpLib3d->FreeLandscapeTexture(cTile->textHandle.textureHandle); //DeadCode JON 2Aug00 currResList->offScreenRemaining = cTile->nextLink; //DeadCode JON 2Aug00 cTile->reset(); //DeadCode JON 2Aug00 currResList->freeTiles++; //DeadCode JON 2Aug00 } else //DeadCode JON 2Aug00 { //DeadCode JON 2Aug00 break; // can't make any more space. //DeadCode JON 2Aug00 } if ( currResList->offScreen != NULLTILEOFFSET ) { TileElement* cTile = tileCacheGrid+currResList->offScreen; g_lpLib3d->FreeLandscapeTexture(cTile->textHandle.textureHandle); currResList->offScreen = cTile->nextLink; cTile->reset(); currResList->freeTiles++; } else { break; // can't make any more space. } } TileElement* cTile = tileCacheGrid+offset; if ( cTile->textHandle != HTEXTNULL ) { tileResList[cTile->currentRes].freeTiles++; g_lpLib3d->FreeLandscapeTexture(cTile->textHandle.textureHandle); cTile->textHandle=HTEXTNULL; } currResList->underResTile = cTile->nextLink; TileResList::add( currResList->newTile, offset ); offset = currResList->underResTile; currResList->numNewTiles++; cumWeight+=CHANGED_TILE_WEIGHT; } if ( offset != NULLTILEOFFSET ) allAtReqLevel = false; } } //DeadCode MS 15Aug00 Mono_Text.Print((UByte*)"MHLT: cumWeight==0 "); if ( cumWeight == 0 && offScreenRes>=0 ) { // we can do some background processing - hurrah. rez = offScreenRes;//OFF_SCREEN_HIGHEST_REZ; TileResList* currResList = &tileResList[rez]; while ( currResList->freeTiles <= currResList->numNewTiles && rez > 0) { currResList = &tileResList[--rez]; } while( currResList->freeTiles > currResList->numNewTiles && bgList != NULLTILEOFFSET ) { currResList->numNewTiles++; TileElement* cTile = (tileCacheGrid+bgList); UWord tmp = cTile->nextLink; //DeadCode JON 2Aug00 cTile->age = ageCount&AGEMASK; TileResList::add( currResList->newTile, bgList ); bgList = tmp; } } //TEMPCODE JON 6/7/00 int numTilesMade = 0; // now actually make the new tiles //DeadCode MS 15Aug00 Mono_Text.Print((UByte*)"MHLT: actually make "); for ( rez = 0; rez < 8; rez++ ) { TileResList* currResList = &tileResList[rez]; UWord offset = currResList->newTile; while( offset != NULLTILEOFFSET && currResList->freeTiles > 0) { // render these new tiles. TileElement* cTile = (tileCacheGrid+offset); #ifndef NDEBUG if ( cTile->textHandle != HTEXTNULL ) NOP; //DeadCode MS 16Aug00 //DeadCode MS 16Aug00 //calculate the block number... //DeadCode MS 16Aug00 ULong blockX = (px+((offset%_wholeAreaSizeMIN)*_blockWidth)+(_blockWidth>>1)) >> Grid_Base::WORLDSPACEMOD; //DeadCode MS 16Aug00 ULong blockY = (pz+((offset/_wholeAreaSizeMIN)*_blockWidth)+(_blockWidth>>1)) >> Grid_Base::WORLDSPACEMOD; //DeadCode MS 16Aug00 // char blockStr[7]; //DeadCode MS 16Aug00 char blockStr[]="Render Block: ?????? "; //DeadCode MS 16Aug00 const int stPos = 14; //DeadCode MS 16Aug00 // blockStr[stPos+6] = char(0); //DeadCode MS 16Aug00 blockStr[stPos+5] = '1'+char(blockY%8); //DeadCode MS 16Aug00 blockStr[stPos+3] = '1'+char((blockY/8)%8); //DeadCode MS 16Aug00 blockStr[stPos+1] = '1'+char((blockY/64)%8); //DeadCode MS 16Aug00 blockStr[stPos+4] = '1'+char(blockX%8); //DeadCode MS 16Aug00 blockStr[stPos+2] = '1'+char((blockX/8)%8); //DeadCode MS 16Aug00 blockStr[stPos+0] = '1'+char((blockX/64)%8); //DeadCode MS 16Aug00 Mono_Text.Print((UByte*)blockStr); #endif HTEXT newTH; g_lpLib3d->AllocateLandscapeTexture( 7-rez, newTH.textureHandle); cTile->textHandle = newTH; //render the tile colour data to this DD surface //DeadCode MS 15Aug00 Mono_Text.Print((UByte*)"MHLT: R2S "); #ifndef _NO_TEXTURE_RENDER if (newTH!=HTEXTNULL) Three_Dee.pTMake->Render2Surface(newTH, 7-rez ,offset); #endif //DeadCode MS 16Aug00 Mono_Text.Print((UByte*)"MHLT: R2SE "); currResList->freeTiles--; cTile->currentRes = rez; offset = cTile->nextLink; //TEMPCODE JON 6/7/00 numTilesMade++; } //DeadCode JON 2Aug00 if ( currResList->offScreenOldest == NULLTILEOFFSET ) //DeadCode JON 2Aug00 currResList->oldestAge = currResList->nextOldestAge; } #ifdef DEBUG_GRID //DeadCode MS 15Aug00 Mono_Text.Print((UByte*)"MHLT: debug2 "); for ( i = 0; i< gS; i++ ) resGrid[i+(2*dGS)] = tileCacheGrid[i].currentRes; // more test code - check that the same texture isn't being used twice... for ( i = WIDTH*WIDTH; i ; i-- ) { if ( tileCacheGrid[i].textHandle == HTEXTNULL ) { continue; // skip } for ( int j = WIDTH*WIDTH; j ; j-- ) { if ( i !=j && tileCacheGrid[i].textHandle == tileCacheGrid[j].textHandle ) NOP; } } #endif //DeadCode MS 16Aug00 Mono_Text.Print((UByte*)"MHLT: return "); return allAtReqLevel; //TEMPCODE JON 6/7/00 if ( numTilesMade > numNewTiles && numTilesMade > 3 ) //TEMPCODE JON 6/7/00 3 // what it was //DEADCODE JON 6/7/00 int cumWeight = 0; // cumulative tile weight //DEADCODE JON 6/7/00 int rez; //DEADCODE JON 6/7/00 for ( rez = 7; rez >= 0; rez-- ) //DEADCODE JON 6/7/00 { //DEADCODE JON 6/7/00 TileResList* currResList = &tileResList[rez]; //DEADCODE JON 6/7/00 if ( currResList->newTile != NULLTILEOFFSET ) //DEADCODE JON 6/7/00 { // make some more space if needed //DEADCODE JON 6/7/00 if ( currResList->freeTiles < currResList->numNewTiles ) //DEADCODE JON 6/7/00 { //DEADCODE JON 6/7/00 // we need to free up some tiles at this rez to continue. //DEADCODE JON 6/7/00 UWord remOffset = currResList->offScreenOldest; //DEADCODE JON 6/7/00 while ( remOffset != NULLTILEOFFSET && //DEADCODE JON 6/7/00 currResList->freeTiles < currResList->numNewTiles ) //DEADCODE JON 6/7/00 { //DEADCODE JON 6/7/00 TileElement* cTile = tileCacheGrid+remOffset; //DEADCODE JON 6/7/00 remOffset = cTile->nextLink; //DEADCODE JON 6/7/00 g_lpLib3d->FreeLandscapeTexture(cTile->textHandle.textureHandle); //DEADCODE JON 6/7/00 cTile->reset(); //DEADCODE JON 6/7/00 currResList->freeTiles++; //DEADCODE JON 6/7/00 currResList->offScreenOldest = remOffset; //DEADCODE JON 6/7/00 } //DEADCODE JON 6/7/00 //DEADCODE JON 6/7/00 remOffset = currResList->offScreenRemaining; //DEADCODE JON 6/7/00 while ( remOffset != NULLTILEOFFSET && //DEADCODE JON 6/7/00 currResList->freeTiles < currResList->numNewTiles ) //DEADCODE JON 6/7/00 { //DEADCODE JON 6/7/00 TileElement* cTile = tileCacheGrid+remOffset; //DEADCODE JON 6/7/00 remOffset = cTile->nextLink; //DEADCODE JON 6/7/00 g_lpLib3d->FreeLandscapeTexture(cTile->textHandle.textureHandle); //DEADCODE JON 6/7/00 cTile->reset(); //DEADCODE JON 6/7/00 currResList->freeTiles++; //DEADCODE JON 6/7/00 currResList->offScreenRemaining = remOffset; //DEADCODE JON 6/7/00 } //DEADCODE JON 6/7/00 if ( currResList->freeTiles < currResList->numNewTiles ) //DEADCODE JON 6/7/00 { //DEADCODE JON 6/7/00 currResList->offScreenRemaining = NULLTILEOFFSET; //DEADCODE JON 6/7/00 // right now we need to shove any tiles we are unable to do into the next rez list //DEADCODE JON 6/7/00 //DEADCODE JON 6/7/00 if ( rez > 0 ) //DEADCODE JON 6/7/00 { //DEADCODE JON 6/7/00 // get to the first one to move ( move the end of the list not the start ) //DEADCODE JON 6/7/00 UWord offset = currResList->newTile; //DEADCODE JON 6/7/00 UWord tmp; //DEADCODE JON 6/7/00 if ( currResList->freeTiles > 0 ) //DEADCODE JON 6/7/00 { //DEADCODE JON 6/7/00 for ( int i = currResList->freeTiles; i>0; i-- ) //DEADCODE JON 6/7/00 offset = (tileCacheGrid+offset)->nextLink; //DEADCODE JON 6/7/00 //DEADCODE JON 6/7/00 tmp = offset; //DEADCODE JON 6/7/00 offset = (tileCacheGrid+offset)->nextLink; //DEADCODE JON 6/7/00 (tileCacheGrid+tmp)->nextLink = NULLTILEOFFSET; //DEADCODE JON 6/7/00 } else //DEADCODE JON 6/7/00 { //DEADCODE JON 6/7/00 currResList->newTile = NULLTILEOFFSET; //DEADCODE JON 6/7/00 } //DEADCODE JON 6/7/00 //DEADCODE JON 6/7/00 while( offset != NULLTILEOFFSET ) //DEADCODE JON 6/7/00 { //DEADCODE JON 6/7/00 currResList->numNewTiles--; //DEADCODE JON 6/7/00 tileResList[rez-1].numNewTiles++; //DEADCODE JON 6/7/00 tmp = (tileCacheGrid+offset)->nextLink; //DEADCODE JON 6/7/00 //DEADCODE JON 6/7/00 TileResList::add( tileResList[rez-1].newTile, offset ); //DEADCODE JON 6/7/00 offset = tmp; //DEADCODE JON 6/7/00 } //DEADCODE JON 6/7/00 } //DEADCODE JON 6/7/00 } //DEADCODE JON 6/7/00 } //DEADCODE JON 6/7/00 } //DEADCODE JON 6/7/00 cumWeight += currResList->numNewTiles; //DEADCODE JON 6/7/00 } //DEADCODE JON 6/7/00 cumWeight*=NEW_TILE_WEIGHT; //DEADCODE JON 6/7/00 //DEADCODE JON 6/7/00 // now do a pass to make as many changed tiles as we can //DEADCODE JON 6/7/00 if ( cumWeight < MAX_WEIGHTED && bgCount > DO_BACKGROUND_CUTOFF ) //DEADCODE JON 6/7/00 { //DEADCODE JON 6/7/00 // great we can now make some resolution changes //DEADCODE JON 6/7/00 //DEADCODE JON 6/7/00 // switch so we alternativley lower then raise resolutions //DEADCODE JON 6/7/00 static bool lowerRes = true; //DEADCODE JON 6/7/00 lowerRes = !lowerRes; //DEADCODE JON 6/7/00 //DEADCODE JON 6/7/00 if ( lowerRes ) //DEADCODE JON 6/7/00 { //DEADCODE JON 6/7/00 // when lowering resolutions start at the highest res and move on down //DEADCODE JON 6/7/00 // note - no need to start at the very highest as there will be nothing //DEADCODE JON 6/7/00 // of higher resolution anyway. //DEADCODE JON 6/7/00 for ( rez = 6; rez >= 0; rez-- ) //DEADCODE JON 6/7/00 { //DEADCODE JON 6/7/00 TileResList* currResList = &tileResList[rez]; //DEADCODE JON 6/7/00 UWord offset = currResList->overResTile; //DEADCODE JON 6/7/00 while ( offset != NULLTILEOFFSET && cumWeight < MAX_WEIGHTED ) //DEADCODE JON 6/7/00 { //DEADCODE JON 6/7/00 if ( currResList->freeTiles == currResList->numNewTiles ) //DEADCODE JON 6/7/00 { // try to free some tiles //DEADCODE JON 6/7/00 if ( currResList->offScreenOldest != NULLTILEOFFSET ) //DEADCODE JON 6/7/00 { //DEADCODE JON 6/7/00 TileElement* cTile = tileCacheGrid+currResList->offScreenOldest; //DEADCODE JON 6/7/00 g_lpLib3d->FreeLandscapeTexture(cTile->textHandle.textureHandle); //DEADCODE JON 6/7/00 currResList->offScreenOldest = cTile->nextLink; //DEADCODE JON 6/7/00 cTile->reset(); //DEADCODE JON 6/7/00 currResList->freeTiles++; //DEADCODE JON 6/7/00 } else if ( currResList->offScreenRemaining != NULLTILEOFFSET ) //DEADCODE JON 6/7/00 { //DEADCODE JON 6/7/00 TileElement* cTile = tileCacheGrid+currResList->offScreenRemaining; //DEADCODE JON 6/7/00 g_lpLib3d->FreeLandscapeTexture(cTile->textHandle.textureHandle); //DEADCODE JON 6/7/00 currResList->offScreenRemaining = cTile->nextLink; //DEADCODE JON 6/7/00 cTile->reset(); //DEADCODE JON 6/7/00 currResList->freeTiles++; //DEADCODE JON 6/7/00 } else //DEADCODE JON 6/7/00 break; // can't make any more space. //DEADCODE JON 6/7/00 } //DEADCODE JON 6/7/00 //DEADCODE JON 6/7/00 TileElement* cTile = tileCacheGrid+offset; //DEADCODE JON 6/7/00 //DEADCODE JON 6/7/00 //DEADCODE JON 6/7/00 if ( cTile->textHandle != HTEXTNULL ) //DEADCODE JON 6/7/00 //DEADCODE JON 6/7/00 { //DEADCODE JON 6/7/00 //DEADCODE JON 6/7/00 tileResList[cTile->currentRes].freeTiles++; //DEADCODE JON 6/7/00 //DEADCODE JON 6/7/00 g_lpLib3d->FreeLandscapeTexture(cTile->textHandle.textureHandle); //DEADCODE JON 6/7/00 //DEADCODE JON 6/7/00 cTile->textHandle=HTEXTNULL; //DEADCODE JON 6/7/00 //DEADCODE JON 6/7/00 } //DEADCODE JON 6/7/00 //DEADCODE JON 6/7/00 currResList->overResTile = cTile->nextLink; //DEADCODE JON 6/7/00 //DEADCODE JON 6/7/00 TileResList::add( currResList->newTile, offset ); //DEADCODE JON 6/7/00 //DEADCODE JON 6/7/00 offset = currResList->overResTile; //DEADCODE JON 6/7/00 //DEADCODE JON 6/7/00 currResList->numNewTiles++; //DEADCODE JON 6/7/00 //DEADCODE JON 6/7/00 cumWeight+=CHANGED_TILE_WEIGHT; //DEADCODE JON 6/7/00 //DEADCODE JON 6/7/00 if ( cTile->textHandle != HTEXTNULL ) //DEADCODE JON 6/7/00 { // we can do the quick reduce //DEADCODE JON 6/7/00 tileResList[cTile->currentRes].freeTiles++; //DEADCODE JON 6/7/00 currResList->freeTiles--; //DEADCODE JON 6/7/00 HTEXT newTH; //DEADCODE JON 6/7/00 g_lpLib3d->AllocateLandscapeTexture( 7-rez, newTH.textureHandle); //DEADCODE JON 6/7/00 //DEADCODE JON 6/7/00 // now make the lower rez version //DEADCODE JON 6/7/00 g_lpLib3d->ReduceLandQuality( cTile->textHandle.textureHandle, newTH.textureHandle ); //DEADCODE JON 6/7/00 //DEADCODE JON 6/7/00 g_lpLib3d->FreeLandscapeTexture(cTile->textHandle.textureHandle); //DEADCODE JON 6/7/00 cTile->textHandle=newTH; //DEADCODE JON 6/7/00 cTile->currentRes=rez; //DEADCODE JON 6/7/00 //DEADCODE JON 6/7/00 currResList->overResTile = cTile->nextLink; //DEADCODE JON 6/7/00 offset = currResList->overResTile; //DEADCODE JON 6/7/00 //DEADCODE JON 6/7/00 // cumWeight+=CHANGED_TILE_WEIGHT; //DEADCODE JON 6/7/00 //DEADCODE JON 6/7/00 } else //DEADCODE JON 6/7/00 { // can't do the quick reduce as we've already killed the source when reducing other stuff ( i think...) //DEADCODE JON 6/7/00 currResList->overResTile = cTile->nextLink; //DEADCODE JON 6/7/00 TileResList::add( currResList->newTile, offset ); //DEADCODE JON 6/7/00 offset = currResList->overResTile; //DEADCODE JON 6/7/00 currResList->numNewTiles++; //DEADCODE JON 6/7/00 cumWeight+=CHANGED_TILE_WEIGHT; //DEADCODE JON 6/7/00 } //DEADCODE JON 6/7/00 } //DEADCODE JON 6/7/00 } //DEADCODE JON 6/7/00 //DEADCODE JON 6/7/00 } else //DEADCODE JON 6/7/00 { //DEADCODE JON 6/7/00 // when raising resolutions start at the highest again, //DEADCODE JON 6/7/00 // but don't bother wiv the lowest //DEADCODE JON 6/7/00 for ( rez = 7; rez >0; rez-- ) //DEADCODE JON 6/7/00 { //DEADCODE JON 6/7/00 TileResList* currResList = &tileResList[rez]; //DEADCODE JON 6/7/00 UWord offset = currResList->underResTile; //DEADCODE JON 6/7/00 while ( offset != NULLTILEOFFSET && cumWeight < MAX_WEIGHTED ) //DEADCODE JON 6/7/00 { //DEADCODE JON 6/7/00 if ( currResList->freeTiles == currResList->numNewTiles ) //DEADCODE JON 6/7/00 { // try to free some tiles //DEADCODE JON 6/7/00 if ( currResList->offScreenOldest != NULLTILEOFFSET ) //DEADCODE JON 6/7/00 { //DEADCODE JON 6/7/00 TileElement* cTile = tileCacheGrid+currResList->offScreenOldest; //DEADCODE JON 6/7/00 g_lpLib3d->FreeLandscapeTexture(cTile->textHandle.textureHandle); //DEADCODE JON 6/7/00 currResList->offScreenOldest = cTile->nextLink; //DEADCODE JON 6/7/00 cTile->reset(); //DEADCODE JON 6/7/00 currResList->freeTiles++; //DEADCODE JON 6/7/00 } else if ( currResList->offScreenRemaining != NULLTILEOFFSET ) //DEADCODE JON 6/7/00 { //DEADCODE JON 6/7/00 TileElement* cTile = tileCacheGrid+currResList->offScreenRemaining; //DEADCODE JON 6/7/00 g_lpLib3d->FreeLandscapeTexture(cTile->textHandle.textureHandle); //DEADCODE JON 6/7/00 currResList->offScreenRemaining = cTile->nextLink; //DEADCODE JON 6/7/00 cTile->reset(); //DEADCODE JON 6/7/00 currResList->freeTiles++; //DEADCODE JON 6/7/00 } else //DEADCODE JON 6/7/00 break; // can't make any more space. //DEADCODE JON 6/7/00 } //DEADCODE JON 6/7/00 //DEADCODE JON 6/7/00 TileElement* cTile = tileCacheGrid+offset; //DEADCODE JON 6/7/00 if ( cTile->textHandle != HTEXTNULL ) //DEADCODE JON 6/7/00 { //DEADCODE JON 6/7/00 tileResList[cTile->currentRes].freeTiles++; //DEADCODE JON 6/7/00 g_lpLib3d->FreeLandscapeTexture(cTile->textHandle.textureHandle); //DEADCODE JON 6/7/00 cTile->textHandle=HTEXTNULL; //DEADCODE JON 6/7/00 } //DEADCODE JON 6/7/00 currResList->underResTile = cTile->nextLink; //DEADCODE JON 6/7/00 TileResList::add( currResList->newTile, offset ); //DEADCODE JON 6/7/00 offset = currResList->underResTile; //DEADCODE JON 6/7/00 currResList->numNewTiles++; //DEADCODE JON 6/7/00 cumWeight+=CHANGED_TILE_WEIGHT; //DEADCODE JON 6/7/00 } //DEADCODE JON 6/7/00 } //DEADCODE JON 6/7/00 } //DEADCODE JON 6/7/00 } //DEADCODE JON 6/7/00 //DEADCODE JON 6/7/00 if ( cumWeight == 0 ) //DEADCODE JON 6/7/00 { // we can do some background processing - hurrah. //DEADCODE JON 6/7/00 rez = 3; //DEADCODE JON 6/7/00 TileResList* currResList = &tileResList[rez]; //DEADCODE JON 6/7/00 while ( currResList->freeTiles <= currResList->numNewTiles && rez > 0) //DEADCODE JON 6/7/00 { //DEADCODE JON 6/7/00 currResList = &tileResList[--rez]; //DEADCODE JON 6/7/00 } //DEADCODE JON 6/7/00 while( currResList->freeTiles > currResList->numNewTiles && bgList != NULLTILEOFFSET ) //DEADCODE JON 6/7/00 { //DEADCODE JON 6/7/00 currResList->numNewTiles++; //DEADCODE JON 6/7/00 TileElement* cTile = (tileCacheGrid+bgList); //DEADCODE JON 6/7/00 UWord tmp = cTile->nextLink; //DEADCODE JON 6/7/00 cTile->age = ageCount&AGEMASK; //DEADCODE JON 6/7/00 TileResList::add( currResList->newTile, bgList ); //DEADCODE JON 6/7/00 bgList = tmp; //DEADCODE JON 6/7/00 } //DEADCODE JON 6/7/00 } //DEADCODE JON 6/7/00 //DEADCODE JON 6/7/00 //TEMPCODE JON 5/12/00 int numTilesMade = 0; //DEADCODE JON 6/7/00 // now actually make the new tiles //DEADCODE JON 6/7/00 for ( rez = 0; rez < 8; rez++ ) //DEADCODE JON 6/7/00 { //DEADCODE JON 6/7/00 TileResList* currResList = &tileResList[rez]; //DEADCODE JON 6/7/00 UWord offset = currResList->newTile; //DEADCODE JON 6/7/00 while( offset != NULLTILEOFFSET && currResList->freeTiles > 0) //DEADCODE JON 6/7/00 { // render these new tiles. //DEADCODE JON 6/7/00 TileElement* cTile = (tileCacheGrid+offset); //DEADCODE JON 6/7/00 HTEXT newTH; //DEADCODE JON 6/7/00 g_lpLib3d->AllocateLandscapeTexture( 7-rez, newTH.textureHandle); //DEADCODE JON 6/7/00 cTile->textHandle = newTH; //DEADCODE JON 6/7/00 //DEADCODE JON 6/7/00 //render the tile colour data to this DD surface //DEADCODE JON 6/7/00 if (newTH!=HTEXTNULL) //DEADCODE JON 6/7/00 Three_Dee.pTMake->Render2Surface(newTH, 7-rez ,offset); //DEADCODE JON 6/7/00 //DEADCODE JON 6/7/00 currResList->freeTiles--; //DEADCODE JON 6/7/00 cTile->currentRes = rez; //DEADCODE JON 6/7/00 offset = cTile->nextLink; //DEADCODE JON 6/7/00 //TEMPCODE JON 5/12/00 numTilesMade++; //DEADCODE JON 6/7/00 } //DEADCODE JON 6/7/00 if ( currResList->offScreenOldest == NULLTILEOFFSET ) //DEADCODE JON 6/7/00 currResList->oldestAge = currResList->nextOldestAge; //DEADCODE JON 6/7/00 } //DEADCODE JON 4/26/00 SLong NUM_1024_TEXTURES, //DEADCODE JON 4/26/00 NUM_512_TEXTURES, //DEADCODE JON 4/26/00 NUM_256_TEXTURES, //DEADCODE JON 4/26/00 NUM_128_TEXTURES, //DEADCODE JON 4/26/00 NUM_64_TEXTURES, //DEADCODE JON 4/26/00 NUM_32_TEXTURES, //DEADCODE JON 4/26/00 NUM_16_TEXTURES, //DEADCODE JON 4/26/00 NUM_8_TEXTURES; //DEADCODE JON 4/26/00 //DEADCODE JON 4/26/00 g_lpLib3d->GetLandscapeTextureCount(NUM_1024_TEXTURES, NUM_512_TEXTURES, //DEADCODE JON 4/26/00 NUM_256_TEXTURES, NUM_128_TEXTURES, //DEADCODE JON 4/26/00 NUM_64_TEXTURES, NUM_32_TEXTURES, //DEADCODE JON 4/26/00 NUM_16_TEXTURES, NUM_8_TEXTURES); //DEADCODE JON 3/30/00 const SLong MAX_TILES_PER_FRAME=8; //DEADCODE JON 4/26/00 const SLong wholeAreaSize=_wholeAreaSizeMIN; //DEADCODE JON 4/26/00 const SLong GRID_SIZE=wholeAreaSize*wholeAreaSize; //DEADCODE JON 4/26/00 //DEADCODE JON 4/26/00 struct ChangedTile //DEADCODE JON 4/26/00 { //DEADCODE JON 4/26/00 UWord offset; //DEADCODE JON 4/26/00 HTEXT oldHTexture; //DEADCODE JON 4/26/00 UByte newRez; //DEADCODE JON 4/26/00 UByte pad; //DEADCODE JON 4/26/00 }; //DEADCODE JON 4/26/00 //DEADCODE JON 4/26/00 struct NewTile //DEADCODE JON 4/26/00 { //DEADCODE JON 4/26/00 UWord offset; //DEADCODE JON 4/26/00 UByte newRez; //DEADCODE JON 4/26/00 UByte pad; //DEADCODE JON 4/26/00 }; //DEADCODE JON 4/26/00 //DEADCODE JON 4/26/00 if (pLastGrid==NULL) //DEADCODE JON 4/26/00 { //DEADCODE JON 4/26/00 pLastGrid=new UByte[GRID_SIZE]; //DEADCODE JON 4/26/00 pHTextureGrid=new HTEXT[GRID_SIZE]; //DEADCODE JON 4/26/00 memset(pLastGrid,0xFF,GRID_SIZE); //DEADCODE JON 4/26/00 memset(pHTextureGrid,0xFF,GRID_SIZE*sizeof(HTEXT)); //DEADCODE JON 4/26/00 } //DEADCODE JON 4/26/00 //DEADCODE JON 4/26/00 ChangedTile* changedTiles=new ChangedTile[GRID_SIZE]; //DEADCODE JON 4/26/00 NewTile* newTiles=new NewTile[GRID_SIZE]; //DEADCODE JON 4/26/00 //DEADCODE JON 4/26/00 if (lastPx!=px || lastPz!=pz) //DEADCODE JON 4/26/00 { //DEADCODE JON 4/26/00 if (lastPx!=-1 && lastPz!=-1) //DEADCODE JON 4/26/00 { //DEADCODE JON 4/26/00 Dropped* droppedTextures=new Dropped; //DEADCODE JON 4/26/00 ScrollGrid(px-lastPx,pz-lastPz,pLastGrid); //DEADCODE JON 4/26/00 ScrollGridDis(px-lastPx,pz-lastPz,pHTextureGrid,droppedTextures); //DEADCODE JON 4/26/00 for (SLong i=droppedTextures->num;i>=0;i--) //DEADCODE JON 4/26/00 g_lpLib3d->FreeLandscapeTexture(droppedTextures->hText[i].textureHandle); //DEADCODE JON 4/26/00 delete[]droppedTextures; //DEADCODE JON 4/26/00 } //DEADCODE JON 4/26/00 lastPx=px; //DEADCODE JON 4/26/00 lastPz=pz; //DEADCODE JON 4/26/00 } //DEADCODE JON 4/26/00 //DEADCODE JON 4/26/00 UByte* pnewgrid=new UByte[GRID_SIZE]; //DEADCODE JON 4/26/00 memset(pnewgrid,0xFF,GRID_SIZE); //DEADCODE JON 4/26/00 //DEADCODE JON 4/26/00 ULong startPos=GRID_SIZE>>1; //DEADCODE JON 4/26/00 //DEADCODE JON 4/26/00 UByte* psrc=gridCone+startPos; //DEADCODE JON 4/26/00 UByte* pdst=pnewgrid+startPos; //DEADCODE JON 4/26/00 //DEADCODE JON 4/26/00 SLong h_dda,v_dda; //DEADCODE JON 4/26/00 //DEADCODE JON 4/26/00 UByte dir_state,dir_count,dir_max; //DEADCODE JON 4/26/00 //DEADCODE JON 4/26/00 UByte texture_scale,texture_count,texture_max; //DEADCODE JON 4/26/00 //DEADCODE JON 4/26/00 texture_scale=texture_count=0; //DEADCODE JON 4/26/00 texture_max=NUM_1024_TEXTURES; //DEADCODE JON 4/26/00 //DEADCODE JON 4/26/00 dir_state=dir_count=0; //DEADCODE JON 4/26/00 dir_max=1; //DEADCODE JON 4/26/00 h_dda=1; //DEADCODE JON 4/26/00 v_dda=-wholeAreaSize; //DEADCODE JON 4/26/00 //DEADCODE JON 4/26/00 //check to see whether the very high detail textures have //DEADCODE JON 4/26/00 //been disabled! //DEADCODE JON 4/26/00 //DEADCODE JON 4/26/00 if (texture_max==0) //DEADCODE JON 4/26/00 while (texture_max==0) //DEADCODE JON 4/26/00 { //DEADCODE JON 4/26/00 texture_scale++; //DEADCODE JON 4/26/00 if (texture_scale==1) texture_max=NUM_512_TEXTURES; //DEADCODE JON 4/26/00 else if (texture_scale==2) texture_max=NUM_256_TEXTURES; //DEADCODE JON 4/26/00 else if (texture_scale==3) texture_max=NUM_128_TEXTURES; //DEADCODE JON 4/26/00 else if (texture_scale==4) texture_max=NUM_64_TEXTURES; //DEADCODE JON 4/26/00 else if (texture_scale==5) texture_max=NUM_32_TEXTURES; //DEADCODE JON 4/26/00 else if (texture_scale==6) texture_max=NUM_16_TEXTURES; //DEADCODE JON 4/26/00 else if (texture_scale==7) texture_max=NUM_8_TEXTURES; //DEADCODE JON 4/26/00 else assert(false&&"ERROR: Run out of textures(1)"); //DEADCODE JON 4/26/00 } //DEADCODE JON 4/26/00 //DEADCODE JON 4/26/00 for (SLong i=GRID_SIZE;i--;) //DEADCODE JON 4/26/00 { //DEADCODE JON 4/26/00 if (*psrc==1) //DEADCODE JON 4/26/00 { //DEADCODE JON 4/26/00 *pdst=texture_scale; //DEADCODE JON 4/26/00 texture_count++; //DEADCODE JON 4/26/00 if (texture_count==texture_max) //DEADCODE JON 4/26/00 { //DEADCODE JON 4/26/00 texture_scale++; //DEADCODE JON 4/26/00 texture_count=0; //DEADCODE JON 4/26/00 if (texture_scale==1) texture_max=NUM_512_TEXTURES; //DEADCODE JON 4/26/00 else if (texture_scale==2) texture_max=NUM_256_TEXTURES; //DEADCODE JON 4/26/00 else if (texture_scale==3) texture_max=NUM_128_TEXTURES; //DEADCODE JON 4/26/00 else if (texture_scale==4) texture_max=NUM_64_TEXTURES; //DEADCODE JON 4/26/00 else if (texture_scale==5) texture_max=NUM_32_TEXTURES; //DEADCODE JON 4/26/00 else if (texture_scale==6) texture_max=NUM_16_TEXTURES; //DEADCODE JON 4/26/00 else if (texture_scale==7) texture_max=NUM_8_TEXTURES; //DEADCODE JON 4/26/00 else assert(false&&"ERROR: Run out of textures(2)"); //DEADCODE JON 4/26/00 } //DEADCODE JON 4/26/00 } //DEADCODE JON 4/26/00 //DEADCODE JON 4/26/00 if (dir_state==0) //DEADCODE JON 4/26/00 { //DEADCODE JON 4/26/00 psrc+=h_dda; //DEADCODE JON 4/26/00 pdst+=h_dda; //DEADCODE JON 4/26/00 dir_count++; //DEADCODE JON 4/26/00 if (dir_count==dir_max) //DEADCODE JON 4/26/00 { //DEADCODE JON 4/26/00 dir_count=0; //DEADCODE JON 4/26/00 dir_state++; //DEADCODE JON 4/26/00 } //DEADCODE JON 4/26/00 } //DEADCODE JON 4/26/00 else //DEADCODE JON 4/26/00 { //DEADCODE JON 4/26/00 psrc+=v_dda; //DEADCODE JON 4/26/00 pdst+=v_dda; //DEADCODE JON 4/26/00 dir_count++; //DEADCODE JON 4/26/00 if (dir_count==dir_max) //DEADCODE JON 4/26/00 { //DEADCODE JON 4/26/00 h_dda=-h_dda; //DEADCODE JON 4/26/00 v_dda=-v_dda; //DEADCODE JON 4/26/00 dir_count=0; //DEADCODE JON 4/26/00 dir_state=0; //DEADCODE JON 4/26/00 dir_max++; //DEADCODE JON 4/26/00 } //DEADCODE JON 4/26/00 } //DEADCODE JON 4/26/00 } //DEADCODE JON 4/26/00 //DEADCODE JON 4/26/00 //compare the new grid with the old grid to determine //DEADCODE JON 4/26/00 //what texture updates are needed //DEADCODE JON 4/26/00 //DEADCODE JON 4/26/00 psrc=pnewgrid; //DEADCODE JON 4/26/00 pdst=pLastGrid; //DEADCODE JON 4/26/00 //DEADCODE JON 4/26/00 SLong new_tiles,changed_tiles; //DEADCODE JON 4/26/00 //DEADCODE JON 4/26/00 new_tiles=changed_tiles=0; //DEADCODE JON 4/26/00 //DEADCODE JON 4/26/00 for (i=GRID_SIZE;i--;psrc++,pdst++) //DEADCODE JON 4/26/00 if (*psrc!=*pdst) //DEADCODE JON 4/26/00 { //DEADCODE JON 4/26/00 //found a difference!! //DEADCODE JON 4/26/00 UByte srcVal=*psrc; //DEADCODE JON 4/26/00 UByte dstVal=*pdst; //DEADCODE JON 4/26/00 //DEADCODE JON 4/26/00 //test to see if a new tile that wasn't visible on the //DEADCODE JON 4/26/00 //last frame has just moved in to view //DEADCODE JON 4/26/00 //DEADCODE JON 4/26/00 if (dstVal==0xFF) //DEADCODE JON 4/26/00 { //DEADCODE JON 4/26/00 newTiles[new_tiles].newRez=srcVal; //DEADCODE JON 4/26/00 newTiles[new_tiles++].offset= //DEADCODE JON 4/26/00 (UWord)(ULong(pdst)-ULong(pLastGrid)); //DEADCODE JON 4/26/00 *pdst=*psrc; //DEADCODE JON 4/26/00 } //DEADCODE JON 4/26/00 //test to see if a tile that was visible on the last frame //DEADCODE JON 4/26/00 //has just gone out of view //DEADCODE JON 4/26/00 //DEADCODE JON 4/26/00 else if (srcVal==0xFF) //DEADCODE JON 4/26/00 { //DEADCODE JON 4/26/00 UWord offset=(UWord)(ULong(pdst)-ULong(pLastGrid)); //DEADCODE JON 4/26/00 g_lpLib3d->FreeLandscapeTexture((pHTextureGrid+offset)->textureHandle); //DEADCODE JON 4/26/00 *(pHTextureGrid+offset)=HTEXTNULL; //DEADCODE JON 4/26/00 *pdst=*psrc; //DEADCODE JON 4/26/00 } //DEADCODE JON 4/26/00 //the difference must be due to a tile resolution change //DEADCODE JON 4/26/00 //DEADCODE JON 4/26/00 else //DEADCODE JON 4/26/00 { //DEADCODE JON 4/26/00 UWord offset=(UWord)(ULong(pdst)-ULong(pLastGrid)); //DEADCODE JON 4/26/00 changedTiles[changed_tiles].oldHTexture=*(pHTextureGrid+offset); //DEADCODE JON 4/26/00 g_lpLib3d->FreeLandscapeTexture(changedTiles[changed_tiles].oldHTexture.textureHandle); //DEADCODE JON 4/26/00 *(pHTextureGrid+offset)=HTEXTNULL; //DEADCODE JON 4/26/00 changedTiles[changed_tiles].newRez=srcVal; //DEADCODE JON 4/26/00 changedTiles[changed_tiles++].offset=offset; //DEADCODE JON 4/26/00 } //DEADCODE JON 4/26/00 } //DEADCODE JON 4/26/00 //DEADCODE JON 4/26/00 //deal with any tile resolution changes //DEADCODE JON 4/26/00 //DEADCODE JON 4/26/00 ChangedTile* pct=changedTiles; //DEADCODE JON 4/26/00 //DEADCODE JON 4/26/00 while (changed_tiles--) //DEADCODE JON 4/26/00 { //DEADCODE JON 4/26/00 //release the old tile //DEADCODE JON 4/26/00 UWord offset=pct->offset; //DEADCODE JON 4/26/00 *(pLastGrid+offset)=pct->newRez; //DEADCODE JON 4/26/00 HTEXT newTH; //DEADCODE JON 4/26/00 g_lpLib3d->FreeLandscapeTexture((pHTextureGrid+offset)->textureHandle); //DEADCODE JON 4/26/00 g_lpLib3d->AllocateLandscapeTexture(pct->newRez,newTH.textureHandle); //DEADCODE JON 4/26/00 *(pHTextureGrid+offset)=newTH; //DEADCODE JON 4/26/00 //DEADCODE JON 4/26/00 //render the tile colour data to this DD surface //DEADCODE JON 4/26/00 //DEADCODE JON 4/26/00 if (newTH!=HTEXTNULL) //DEADCODE JON 4/26/00 Three_Dee.pTMake->Render2Surface(newTH,pct->newRez,offset); //DEADCODE JON 4/26/00 pct++; //DEADCODE JON 4/26/00 } //DEADCODE JON 4/26/00 //DEADCODE JON 4/26/00 NewTile* pnt=newTiles; //DEADCODE JON 4/26/00 //DEADCODE JON 4/26/00 while (new_tiles--) //DEADCODE JON 4/26/00 { //DEADCODE JON 4/26/00 UWord offset=pnt->offset; //DEADCODE JON 4/26/00 HTEXT newTH; //DEADCODE JON 4/26/00 g_lpLib3d->AllocateLandscapeTexture(pnt->newRez,newTH.textureHandle); //DEADCODE JON 4/26/00 *(pHTextureGrid+offset)=newTH; //DEADCODE JON 4/26/00 //DEADCODE JON 4/26/00 //render the tile colour data to this DD surface //DEADCODE JON 4/26/00 //DEADCODE JON 4/26/00 if (newTH!=HTEXTNULL) //DEADCODE JON 4/26/00 Three_Dee.pTMake->Render2Surface(newTH,pnt->newRez,offset); //DEADCODE JON 4/26/00 pnt++; //DEADCODE JON 4/26/00 } //DEADCODE JON 4/26/00 //DEADCODE JON 4/26/00 delete[]pnewgrid; //DEADCODE JON 4/26/00 delete[]changedTiles; //DEADCODE JON 4/26/00 delete[]newTiles; } //컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴 //Procedure FillDataGrid //Author Paul. //Date Thu 14 May 1998 //------------------------------------------------------------------------------ bool LandScape::FillDataGrid(SLong ox,SLong oz) { Three_Dee.pMigLand->ResetDecompCount(); SLong ix; UByte* pConeData=gridCone; DataRecord* dataBlock=pDataBlocks; // UByte* pGroundDetail=groundDetail; //DeadCode JON 2Aug00 #pragma message( __HERE__ "ground detail levels here" ) //DeadCode JON 2Aug00 static UByte rezLevels[ _wholeAreaSizeMIN*_wholeAreaSizeMIN ]; //DeadCode JON 2Aug00 static bool make = true; //DeadCode JON 2Aug00 if ( make ) // make the damn thing //DeadCode JON 2Aug00 { //DeadCode JON 2Aug00 make = false; //DeadCode JON 2Aug00 UByte* cur = rezLevels; //DeadCode JON 2Aug00 for( int x = 0; x<_wholeAreaSizeMIN; x++ ) //DeadCode JON 2Aug00 for ( int y = 0; y<_wholeAreaSizeMIN; y++ ) //DeadCode JON 2Aug00 { //DeadCode JON 2Aug00 int xoff = (_wholeAreaSizeMIN/2)-x; //DeadCode JON 2Aug00 int yoff = (_wholeAreaSizeMIN/2)-y; //DeadCode JON 2Aug00 int d = sqrt( xoff*xoff + yoff*yoff ); //DeadCode JON 2Aug00 switch (d) //DeadCode JON 2Aug00 { //DeadCode JON 2Aug00 case 0: //DeadCode JON 2Aug00 case 1: //DeadCode JON 2Aug00 *cur++ = 0; //DeadCode JON 2Aug00 break; //DeadCode JON 2Aug00 case 2: //DeadCode JON 2Aug00 case 3: //DeadCode JON 2Aug00 *cur++ = 1; //DeadCode JON 2Aug00 break; //DeadCode JON 2Aug00 case 4: //DeadCode JON 2Aug00 *cur++ = 2; //DeadCode JON 2Aug00 break; //DeadCode JON 2Aug00 case 5: //DeadCode JON 2Aug00 *cur++ = 3; //DeadCode JON 2Aug00 break; //DeadCode JON 2Aug00 case 6: //DeadCode JON 2Aug00 *cur++ = 4; //DeadCode JON 2Aug00 break; //DeadCode JON 2Aug00 case 7: //DeadCode JON 2Aug00 *cur++ = 5; //DeadCode JON 2Aug00 break; //DeadCode JON 2Aug00 case 8: //DeadCode JON 2Aug00 *cur++ = 6; //DeadCode JON 2Aug00 break; //DeadCode JON 2Aug00 default: //DeadCode JON 2Aug00 *cur++ = 7; //DeadCode JON 2Aug00 break; //DeadCode JON 2Aug00 } //DeadCode JON 2Aug00 } //DeadCode JON 2Aug00 } //DeadCode JON 2Aug00 UByte* pGroundDetail=rezLevels; TileElement* cTile = tileCacheGrid; SLong wholeAreaSize=_wholeAreaSizeMIN; { for (int row=0;row<wholeAreaSize;row++) { ix=ox; for (int col=0;col<wholeAreaSize;col++) { if (*pConeData) { //Fill in array of land data pointers for later DataRecord& dR=*dataBlock; //DeadCode JON 2Aug00 UByte gD=*pGroundDetail; #ifdef _ALWAYS_FULL_REZ UByte gD=0; #else UByte gD=cTile->meshRes; #endif //DeadCode JON 20Jun00 #pragma warnmsg ( "remove me" ) //DeadCode JON 20Jun00 if ( ix==28311552 && oz==33685504 ) //DeadCode JON 20Jun00 NOP; dR=Three_Dee.pTMake->GetBlock(ix,oz); dR=Three_Dee.pMigLand->GetData(ix,oz,gD,( /*cTile->viewRadius < 2 &&*/ gD< TILE_REZ_LIMIT_ITEM ),dR); } else { DataRecord& dR=*dataBlock; dR.pData=NULL; dR.dataLen=0; } pConeData++; dataBlock++; //DeadCode JON 2Aug00 pGroundDetail++; cTile++; ix+=_blockWidth; } oz+=_blockWidth; } } dataBlock=pDataBlocks; for (int row=wholeAreaSize*wholeAreaSize;row>0;row--) { DataRecord& dR=*dataBlock; if (dR.pData) { AltPointsHdr *aph=(AltPointsHdr*)dR.pData; if (!aph->CheckChecksum()) return false; //if (aph->vertexCount<4 || // aph->vertexCount<aph->topEdgePoints+aph->rightEdgePoints+aph->bottomEdgePoints+aph->leftEdgePoints) // return false; } dataBlock++; } return true; } SLong ibase_x,ibase_z,iscale_factor,itexture; //DEAD static SLong softwarePolyCount; //컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴 //Procedure GeneratePointData //Author Paul. //Date Tue 20 Jan 1998 //------------------------------------------------------------------------------ bool LandScape::UpdateTexturesWRTViewPos() { #ifndef _NOLANDSCAPE_ //DEADCODE JON 4/6/00 g_lpLib3d->LoadIdentity(MATRIX_VIEWER); //DEADCODE JON 4/6/00 g_lpLib3d->LoadIdentity(MATRIX_OBJECT); //DEADCODE JON 4/6/00 g_lpLib3d->Rotate(MATRIX_VIEWER,AXIS_HEADING,(Angles)(int)View_Point->hdg); //DEADCODE JON 4/6/00 g_lpLib3d->Rotate(MATRIX_VIEWER,AXIS_PITCH,(Angles)-(int)View_Point->pitch); //DEADCODE JON 4/6/00 g_lpLib3d->Rotate(MATRIX_VIEWER,AXIS_ROLL,(Angles)-(int)View_Point->roll); //DEADCODE JON 4/6/00 if (View_Point->InCockpit()) //RJS 15Mar00 //DEADCODE JON 4/6/00 g_lpLib3d->Rotate(MATRIX_VIEWER,AXIS_HEADING,(Angles)(int)View_Point->eyeHeading); //DEADCODE JON 4/6/00 //DeadCode RJS 15Mar100 g_lpLib3d->SetProjectionMatrix((Angles)(int)Save_Data.fieldOfView,1,1,14829100,0); //DEADCODE JON 4/6/00 g_lpLib3d->SetProjectionMatrix((Angles)(int)Save_Data.fieldOfView,1,50,view_dist); //DEADCODE JON 4/6/00 g_lpLib3d->SetFogColour(0x0090B8E8); //DEADCODE JON 4/6/00 //DEADCODE JON 4/6/00 D3DVECTOR viewMods; //DEADCODE JON 4/6/00 viewMods.x=(D3DVALUE)-viewer_x; //DEADCODE JON 4/6/00 viewMods.y=(D3DVALUE)-viewer_y; //DEADCODE JON 4/6/00 viewMods.z=(D3DVALUE)-viewer_z; //DEADCODE JON 4/6/00 g_lpLib3d->Translate( MATRIX_OBJECT, viewMods ); //DEADCODE JON 4/6/00 SetUpVisibleCones(); //DeadCode MS 15Aug00 Mono_Text.Print((UByte*)"UTWRTVP: start "); SLong gx,gz; gx=View_Point->World.X; gz=View_Point->World.Z; Three_Dee.pMigLand->SetViewpoint(View_Point); Three_Dee.pMigLand->ProcessSeekRequests(); Three_Dee.pTMake->ChkUpdate(gx,gz); SLong ox,oz; //Generate start position based on the current viewpoint ox=(gx&~ULong(_blockWidth-1))-((_halfAreaSizeMIN)*_blockWidth); oz=(gz&~ULong(_blockWidth-1))-((_halfAreaSizeMIN)*_blockWidth); //DeadCode MS 15Aug00 Mono_Text.Print((UByte*)"UTWRTVP: check "); if (!Three_Dee.pTMake->CheckCache()) { //DeadCode MS 15Aug00 Mono_Text.Print((UByte*)"UTWRTVP: refresh1 "); PossibleTeleport(); // RefreshLandscape(); //DeadCode MS 15Aug00 Mono_Text.Print((UByte*)"UTWRTVP: false "); return false; } //DEADCODE JON 3/8/00 g_lpLib3d->SetProjectionMatrix((Angles)(int)Save_Data.fieldOfView,1,50,_hirezDrawDist); //DEADCODE JON 3/8/00 GridCone(ox,oz); //DEADCODE JON 3/8/00 g_lpLib3d->SetProjectionMatrix((Angles)(int)Save_Data.fieldOfView,1,50,_blockWidth*_horizonDist); //DEADCODE JON 3/8/00 g_lpLib3d->SetFogColour(0x0090B8E8); //DeadCode MS 15Aug00 Mono_Text.Print((UByte*)"UTWRTVP: manage "); #ifndef _NOTILEMAKE ManageHighLandTextures(ox,oz); #endif //DeadCode MS 15Aug00 Mono_Text.Print((UByte*)"UTWRTVP: fill "); if (!FillDataGrid(ox,oz)) { //DeadCode MS 15Aug00 Mono_Text.Print((UByte*)"UTWRTVP: refresh2 "); PossibleTeleport(); // RefreshLandscape(); //DeadCode MS 15Aug00 Mono_Text.Print((UByte*)"UTWRTVP: false "); return false; } #endif //DeadCode MS 15Aug00 Mono_Text.Print((UByte*)"UTWRTVP: true "); return true; } void LandScape::GeneratePointData() { SLong ox,oz; SLong halfAreaSize=_halfAreaSizeMIN; //DeadCode JON 20Oct00 SLong wholeAreaSize=_wholeAreaSizeMIN; ox=(viewer_x&~ULong(_blockWidth-1))-halfAreaSize*_blockWidth; oz=(viewer_z&~ULong(_blockWidth-1))-halfAreaSize*_blockWidth; View_Point->isLightShaded=TRUE; LIGHTFLAG lf; if (Save_Data.detail_3d[DETAIL3D_GROUNDSHADING]) lf= LF_LIGHTING; else lf= LF_AMBIENT; LightVec& sunPos=Three_Dee.SunLightVector; g_lpLib3d->SetLightVector(R3DVALUE(sunPos.ni.i), R3DVALUE(sunPos.nj.i), R3DVALUE(sunPos.nk.i)); g_lpLib3d->SetObjectLighting(lf); bAnyLandDrawn=FALSE; //DeadCode JON 20Sep00 ProcessLights(ox,oz); HighDetailTileRender(ox,oz); lf=LF_AMBIENT; g_lpLib3d->SetObjectLighting(lf); View_Point->isLightShaded=FALSE; } //컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴 //Procedure HorizonTile //Author Jon. //Date Thurs 28Sep00 // draws a tile with horizon info... // takes x and z cm //------------------------------------------------------------------------------ inline void LandScape::HorizonTile( const int x, const int z ) { SLong ix = x/_blockWidth;//x>>_blockShift); SLong oz = z/_blockWidth;//z>>_blockShift; LIGHTFLAG lf = LF_AMBIENT; g_lpLib3d->SetObjectLighting( lf ); //DeadCode JON 28Sep00 const int offsetAmount = (((_horizonPoints-_wholeAreaSizeMIN)/2) + 64) - _horizonDist; const int offsetAmount = 64; float imx = ( ix/*+gridOffs.jx*/ + offsetAmount - gridOffs.hx ) << 1; float imz = ( oz/*+gridOffs.jz*/ + offsetAmount - gridOffs.hz ) << 1; Lib3DPoint* corners = g_lpLib3d->BeginFan( HMATERIAL(horizonImg), 4 ); Grid_Base* cornerAlt = (Grid_Base*) Grid_Base::gridfiles[Grid_Base::GF_CORNERALT].getdata(); corners[0].setPosition( x, (cornerAlt->getMod( ix, oz ) << _altitudeShift), z ); corners[0].setIMapCoords( imx, imz ); corners[1].setPosition( x, (cornerAlt->getMod( ix, oz+1 ) << _altitudeShift), z+_blockWidth ); corners[1].setIMapCoords( imx, imz+2 ); corners[2].setPosition( x+_blockWidth, (cornerAlt->getMod( ix+1, oz+1 ) << _altitudeShift), z+_blockWidth ); corners[2].setIMapCoords( imx+2, imz+2 ); corners[3].setPosition( x+_blockWidth, (cornerAlt->getMod( ix+1, oz ) << _altitudeShift), z ); corners[3].setIMapCoords( imx+2, imz ); g_lpLib3d->EndFan(); g_lpLib3d->SetObjectLighting( lf ); } //컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴 //Procedure HighDetailTileRender //Author Paul. //Date Tue 10 Nov 1998 //------------------------------------------------------------------------------ void LandScape::HighDetailTileRender(SLong ox,SLong oz) { static SLong totTime=0; totTime += View_Point->RealDrawFrameTime();// ->DrawFrameTime(); const UWord seaBase = FIL_SEA1_NUM; int framenum = (ULong(totTime/250)%6); if ( framenum > 3 ) framenum = 6-framenum; FileNum seaFile = FileNum(seaBase + framenum ); LandMapNum seamap=LandMapNum(seaFile); ImageMapDescPtr seaptr = seamap.GetLandMapPtr(); SWord ddx= SWord( totTime>>6 ); ddx&=0xFF; const SLong wholeAreaSize=_wholeAreaSizeMIN; COORDS3D view; UByte* pConeData=gridCone; TileElement* currentGridElement = tileCacheGrid; DataRecord* dataBlock=pDataBlocks; view.Y=-viewer_y; //generate a value for 'treeHeight' raiseFlag = PreCalcRaise( viewer_y, hedgeHeight );//, cliffHeight ); int x = ox>>Grid_Base::WORLDSPACEMOD; int z = oz>>Grid_Base::WORLDSPACEMOD; for (int row=0;row<wholeAreaSize;row++,oz+=_blockWidth) { view.Z=oz; SLong ix=ox; const int tmpFudge = 7; const int tmpFudge2 = 64*8-8; if ( row+z > tmpFudge && row+z < tmpFudge2 ) { //draw for (int col=0;col<wholeAreaSize;col++,ix+=_blockWidth) { view.X=ix; if (*pConeData++) { // HTEXT textureHandle, const HTEXT nullHandle; //DeadCode JON 23Oct00 ULong dataLen; //DeadCode JON 22Oct00 UByte* pDataStream; // textureHandle = currentGridElement->textHandle; const int tmpFudge = 7; const int tmpFudge2 = 64*8-8; #ifndef _NOTILEMAKE #ifndef _NO_TEXTURE_RENDER if (currentGridElement->textHandle!=nullHandle && ( col+x > tmpFudge && col+x < tmpFudge2 )) #else if (false) #endif #else if ( true ) #endif { //DeadCode JON 23Oct00 dataLen=dataBlock->dataLen; //DeadCode JON 20Oct00 UByte* psavedata=pDataStream=(UByte*)dataBlock->pData; //TempCode JON 23Oct00 static int poo; //TempCode JON 23Oct00 if ( (poo++&1) ) HiRezTile((UByte*)dataBlock->pData,dataBlock->dataLen,view,*currentGridElement,seaptr,ddx); // if (groundDetail==UByte(_doHighGround)) // RenderTrees(psavedata,view); } else { // fake a block using the horizon information HorizonTile( ix, oz ); } } currentGridElement++; dataBlock++; } } else { // horizon for (int col=0;col<wholeAreaSize;col++,ix+=_blockWidth) { if (*pConeData++) HorizonTile( ix, oz ); currentGridElement++; dataBlock++; } } } } inline void LandScape::RenderSheep(const UByte* pDS,ULong sheepCount,const COORDS3D& view, const PointDef* inptDefs) { item sheepItem; sheepItem.Anim=CloudAnimP; while (sheepCount--) { switch ( *pDS++ ) { case ITEM_TYPE_SHEEP: sheepItem.shape=SHEEP; break; case ITEM_TYPE_COW: sheepItem.shape=COW; break; case ITEM_TYPE_HAYSTACK: sheepItem.shape=HAYSTK; break; NODEFAULT; } UWord itemCount = *((UWord*)pDS); const COORDS3D* sheepPos = (COORDS3D*)(pDS+2); while ( itemCount-- ) { sheepItem.World = *sheepPos; //DeadCode JON 25Oct00 sheepItem.World.X+=view.X; //DeadCode JON 25Oct00 sheepItem.World.Z+=view.Z; Three_Dee.do_object_dummy(&sheepItem,STATIC_OBJECT); sheepPos++; } pDS = (UByte*)sheepPos; } // now for the trees int treeCount = *pDS++; while ( treeCount-- ) { // do a tree... float xT, yT, zT; SHAPE.newco[*pDS].getPosition( // get the position of the tree... xT, yT, zT ); sheepItem.World.X=view.X+SLong(F2UL_Round( xT )); sheepItem.World.Y=SLong(F2UL_Round( yT )); sheepItem.World.Z=view.Z+SLong(F2UL_Round( zT )); sheepItem.shape=ShapeNum(TREE1+((inptDefs[*pDS].alt+ inptDefs[*pDS].z )&1)); Three_Dee.do_object_dummy(&sheepItem,STATIC_OBJECT); *pDS++; } sheepItem.Anim = ANIM_NULL; } //컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴 //Procedure RenderTrees //Author Paul //Date Fri 14 Aug 1998 //------------------------------------------------------------------------------ //deadcode JON 19/06/01 void LandScape::RenderTrees(UByte* pds,COORDS3D& view) //deadcode JON 19/06/01 { /* if (!((!Save_Data.detail_3d[DETAIL3D_INCONSEQUENTIALS]) || View_Ground_Height>6*FT_250)) { Float dx,dz; dx=Float(view.X-viewer_x); dz=Float(view.Z-viewer_z); Float dd=dx*dx+dz*dz; _asm {fld dd; fsqrt; fstp dd; } if (SLong(dd)>24*FT_250) return; ShapeNum treeShapes[]={TREE1,TREE2};//DeadCode RJS 15Dec99 ,TREE3,TREE4}; AltPointsHdr& aph=*(AltPointsHdr*)pds; pds+=sizeof(AltPointsHdr)+aph.vertexCount*sizeof(PointDef); DrawDataHdr& ddh=*(DrawDataHdr*)pds; pds+=sizeof(DrawDataHdr); if (ddh.noOfTrees==0) return; SLong treeCount=ddh.noOfTrees; item dummyItem; dummyItem.Anim=CloudAnimP; SmallPoint* psp=(SmallPoint*)(ULong(&aph)+ULong(ddh.treeOffset)); SLong treeRnd=perm(ddh.treeOffset>>3); while (treeCount--) { dummyItem.shape=treeShapes[treeRnd&3]; dummyItem.World.X=(psp->x<<9)+view.X; dummyItem.World.Y=(psp->alt*_altitudeScale); dummyItem.World.Z=((256-psp->z)<<9)+view.Z; //only add trees to empty sectors. Doesn't take sector //wrapping into account Three_Dee.do_object_dummy(&dummyItem,STATIC_OBJECT);//RJS 04Feb00 psp++; treeRnd=perm(treeRnd); } dummyItem.Anim=ANIM_NULL; } g_lpLib3d->SetAmbientLighting(currentLighting.landAmbientCollo.col(), currentLighting.landAmbientColhi.col(), currentLighting.landAmbientColamb.col(),1.2f); View_Point->isLightShaded=TRUE; LIGHTFLAG lf=LF_LIGHTING; g_lpLib3d->SetObjectLighting(lf); */ //deadcode JON 19/06/01 } //DeadCode JON 24Oct00 inline bool IsGrassy(UByte at) //DeadCode JON 24Oct00 { //DeadCode JON 24Oct00 at&=0x1f; //DeadCode JON 24Oct00 switch (at) //DeadCode JON 24Oct00 { //DeadCode JON 24Oct00 case AT_darkGrass:case AT_midGrass: case AT_lightGrass:case AT_garden: //DeadCode JON 24Oct00 return true; //DeadCode JON 24Oct00 } //DeadCode JON 24Oct00 return false; //DeadCode JON 24Oct00 } //컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴 //Procedure HiRezTile //Author Paul. //Date Tue 10 Nov 1998 //------------------------------------------------------------------------------ //DeadCode JON 20Oct00 #pragma warnmsg ( "what does this do???" ) //DeadCode JON 20Oct00 static UByte atRecs[256]; //DeadCode JON 20Oct00 //DeadCode JON 20Oct00 void LandScape::MakeATRecs(UByte *pDataStream) //DeadCode JON 20Oct00 { //DeadCode JON 20Oct00 AltPointsHdr& aph=*(AltPointsHdr*)pDataStream; //DeadCode JON 20Oct00 int vertexCount=aph.vertexCount; //DeadCode JON 20Oct00 pDataStream+=sizeof(AltPointsHdr); //DeadCode JON 20Oct00 pDataStream+=vertexCount*sizeof(PointDef); //DeadCode JON 20Oct00 DrawDataHdr& ddh=*(DrawDataHdr*)pDataStream; //DeadCode JON 20Oct00 pDataStream+=sizeof(ddh); //DeadCode JON 20Oct00 int polyCount=ddh.noOfPolys; //DeadCode JON 20Oct00 //DeadCode JON 20Oct00 int lineCount=ddh.noOfLines; //DeadCode JON 20Oct00 //DeadCode JON 20Oct00 int totalTriCount=ddh.totalTris; //DeadCode JON 20Oct00 memset(atRecs,0,vertexCount); //DeadCode JON 20Oct00 ULong edgePointMax=aph.topEdgePoints+aph.rightEdgePoints+aph.bottomEdgePoints+aph.leftEdgePoints+4; //DeadCode JON 20Oct00 // start from beggining of poly data. //DeadCode JON 20Oct00 while (polyCount--) //DeadCode JON 20Oct00 { //DeadCode JON 20Oct00 UByte thisAt=*pDataStream++; //DeadCode JON 20Oct00 ULong fanCount=*pDataStream++; //DeadCode JON 20Oct00 UByte thisFlag; //DeadCode JON 20Oct00 //DeadCode JON 20Oct00 if (IsGrassy(thisAt)) thisFlag=0x01; //DeadCode JON 20Oct00 //temp else if (IsBeach(thisAt)) thisFlag=0x02; //DeadCode JON 20Oct00 //temp else if (IsWater(thisAt)) thisFlag=0x04; //DeadCode JON 20Oct00 else thisFlag=0x00; //DeadCode JON 20Oct00 //DeadCode JON 20Oct00 if (thisFlag) //DeadCode JON 20Oct00 { //DeadCode JON 20Oct00 while (fanCount--) //DeadCode JON 20Oct00 { //DeadCode JON 20Oct00 ULong triCount=(*pDataStream++)+2; //DeadCode JON 20Oct00 while (triCount--) //DeadCode JON 20Oct00 { //DeadCode JON 20Oct00 ULong thisIndex=*pDataStream++; //DeadCode JON 20Oct00 if (thisIndex>=edgePointMax) //DeadCode JON 20Oct00 atRecs[thisIndex]|=thisFlag; //DeadCode JON 20Oct00 } //DeadCode JON 20Oct00 } //DeadCode JON 20Oct00 } //DeadCode JON 20Oct00 else while (fanCount--) pDataStream+=ULong(*pDataStream++)+2; //DeadCode JON 20Oct00 } //DeadCode JON 20Oct00 } // Simple bounds checking array in debug - should compile to standary array in release. class UByteA //JON 22Sep00 { // UByte* data; UByte* data; #ifndef NDEBUG int size; #endif public: // UByteA() {INT3;} UByteA( const int newSize ) // constructor { #ifndef NDEBUG if ( newSize < 0 ) INT3; // silly sized array, -ve. size = newSize; #endif data = new UByte[ newSize ]; } UByteA( const int newSize, const UByte startVal ) // constructor with starting values { #ifndef NDEBUG if ( newSize < 0 ) INT3; // silly sized array, -ve. size = newSize; #endif data = new UByte[ newSize ]; UByte* tmp = data; for ( int i = 0; i<newSize; i++ ) *tmp++ = startVal; } ~UByteA() { delete[]data; } UByte& operator[] (const int index) const { #ifndef NDEBUG if ( index < 0 ) INT3; // don't try to access -ve array values. if ( index >= size ) INT3; // oops looking too far through the array. #endif return data[index]; } operator UByte*() const // warning, no bounds checking on this now... { return data; } }; class AltPointIndexer { private: enum { NUM_POSS_OFFSETS = 14, MAX_TILE_POINTS = 256, CLIFF_OFFSET = 0, // just a note really! == sea offset NUMBER_OF_NONE_SPLIT = 1, // number of offsets before the split town ones SIDE_TEXTURE_HEIGHT = 128, NULL_OUTLEVEL=255 }; //DeadCode JON 22Sep00 UByte outLevel[NUM_POSS_OFFSETS*MAX_TILE_POINTS]; //DeadCode JON 22Sep00 UByte alreadyUsed[MAX_TILE_POINTS]; // the number of slots already used... UByteA outLevel;//(NUM_POSS_OFFSETS*MAX_TILE_POINTS); UByteA alreadyUsed; public: AltPointIndexer( void ) // constructor - make null; : outLevel(NUM_POSS_OFFSETS*MAX_TILE_POINTS, NULL_OUTLEVEL) , alreadyUsed(MAX_TILE_POINTS, 0 ) { // memset( outLevel, NULL_OUTLEVEL, NUM_POSS_OFFSETS*MAX_TILE_POINTS ); // memset( alreadyUsed, 0, MAX_TILE_POINTS ); } int getPointIndex( const int origPoint, const UByte ptOffset, const float raiseHeight ) // MAKES THE POINT POSITION TOO { //TempCode JON 20Sep00 #pragma warnmsg ( "remove me" ) //TempCode JON 20Sep00 if ( origPoint == 60 ) //TempCode JON 20Sep00 NOP; int pos = origPoint + ( MAX_TILE_POINTS * ptOffset ); if ( outLevel[ pos ] != NULL_OUTLEVEL ) { return origPoint+( outLevel[pos] * MAX_TILE_POINTS ); } else { #ifndef NDEBUG //point 0 can be defined at ground level and then shunted to 4 heights //point 0 can be overwritten by the 4th hiking. // assert( alreadyUsed[ origPoint ] < 5 && "too many moved points" ); //JIM 27Jun00 #endif outLevel[ pos ] = ++alreadyUsed[ origPoint ]; // not sure about this outLevel[pos]&=3; int newPos = origPoint+( outLevel[pos] * MAX_TILE_POINTS ); SHAPE.newco[ newPos ] = SHAPE.newco[ origPoint ]; // copy over point... SHAPE.newco[ newPos ].incPosY( raiseHeight ); // raise it up // now make the texture coords 4 the thing.. if (ptOffset <=NUMBER_OF_NONE_SPLIT) { SHAPE.newco[ newPos ].setIMapCoords( 0, 0 ); } else { int t = ptOffset; t-=(NUMBER_OF_NONE_SPLIT+1); t&=3; // mod 4... t++; t*=SIDE_TEXTURE_HEIGHT; t>>=2; // divide by 4 SHAPE.newco[ newPos ].setIMapCoords( 0, SIDE_TEXTURE_HEIGHT-t ); } return newPos; } } int getPosCliffBaseIndex( const int origPoint, const bool* isPointCliff ) // note cliff pass MUST come first { if ( !isPointCliff[origPoint] ) { return origPoint; } else { // right it is a cliff point if ( outLevel[ origPoint ] == 1 ) // this is why cliff/sea pass must come first! { // we've already made this return origPoint+( MAX_TILE_POINTS ); } else { outLevel[ origPoint ] = ++alreadyUsed[ origPoint ]; int newPos = origPoint + MAX_TILE_POINTS; SHAPE.newco[ newPos ] = SHAPE.newco[ origPoint ]; // copy over point... SHAPE.newco[ newPos ].setPosY( 0.f ); // dropItDown return newPos; } } } int getSeaIndex( const int origPoint, SWord ddx ) { if ( outLevel[ origPoint ] == 1 ) // this is why cliff/sea pass must come first! { // we've already made this return origPoint+( MAX_TILE_POINTS ); } else { outLevel[ origPoint ] = ++alreadyUsed[ origPoint ]; int newPos = origPoint + MAX_TILE_POINTS; SHAPE.newco[ newPos ] = SHAPE.newco[ origPoint ]; // copy over point... SHAPE.newco[ newPos ].setIMapCoords1( (SHAPE.newco[ newPos ].getIMapX()<<3)+ddx, (SHAPE.newco[ newPos ].getIMapY()<<3) ); return newPos; } } int getPosSeaCliffBaseIndex( const int origPoint, const bool* isPointCliff, SWord ddx ) // note cliff pass MUST come first { if ( outLevel[ origPoint ] == 1 ) // this is why cliff pass must come first! { // we've already made this return origPoint+( MAX_TILE_POINTS ); } else { outLevel[ origPoint ] = ++alreadyUsed[ origPoint ]; int newPos = origPoint + MAX_TILE_POINTS; SHAPE.newco[ newPos ] = SHAPE.newco[ origPoint ]; // copy over point... SHAPE.newco[ newPos ].setIMapCoords1( (SHAPE.newco[ newPos ].getIMapX()<<3)+ddx, (SHAPE.newco[ newPos ].getIMapY()<<3) ); if ( isPointCliff[origPoint] ) { // right it is a cliff point SHAPE.newco[ newPos ].setPosY( 0.f ); // dropItDown } return newPos; } } int getCliffBaseIndexNoMake( const int origPoint ) const { return origPoint+MAX_TILE_POINTS; } int getPointIndexNoMake( const int origPoint, const UByte ptOffset ) const { int pos = origPoint + ( MAX_TILE_POINTS * ptOffset ); // UByte* tmp = outLevel; // if ( outLevel[pos] != 1 ) // NOP; return origPoint+( outLevel[pos] * MAX_TILE_POINTS ); } }; //컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴 //Procedure DrawCliffFace //Author Jon. //Date Fri 24 Mar 1998 //------------------------------------------------------------------------------ inline void LandScape::DrawCliffFace( const int& startPoint, const int& endPoint, const AltPointIndexer& pointOffsets ) { //DeadCode JON 28Sep00 g_lpLib3d->IncGlobal( TOGGLE_TEXTURE_ZBIAS ); DoPointStruc *pPoints = SHAPE.newco; Lib3DPoint *pRVerts; HMATERIAL CliffImg = HMATERIAL(Image_Map.GetImageMapPtr(CLIFFNO)); // calc the tiling coords float dx = pPoints[startPoint].getPosX() - pPoints[endPoint].getPosX(); float dz = pPoints[startPoint].getPosZ() - pPoints[endPoint].getPosZ(); short dist = short ( fastMath.FastSqrt( (dx*dx) + (dz*dz) ) * (1.0/80.0) ); dist-=dist%CLIFFTWIDTH; dist+=CLIFFTWIDTH; pRVerts = g_lpLib3d->BeginPoly(CliffImg,4); *pRVerts=pPoints[startPoint]; // top left point pRVerts->setIMapCoords( 0, 0 ); *(++pRVerts)=pPoints[endPoint]; // top right point pRVerts->setIMapCoords( dist, 0 ); //DEADCODE JON 5/31/00 *(++pRVerts)=pPoints[endPoint]; // bottom right point //DEADCODE JON 5/31/00 pRVerts->setPosY( 0.f ); // make sea level *(++pRVerts)=pPoints[ pointOffsets.getCliffBaseIndexNoMake( endPoint ) ]; pRVerts->setIMapCoords( dist, CLIFFTHEIGHT ); //DEADCODE JON 5/31/00 *(++pRVerts)=pPoints[startPoint]; // bottom left point //DEADCODE JON 5/31/00 pRVerts->setPosY( 0.f ); // make sea level *(++pRVerts)=pPoints[ pointOffsets.getCliffBaseIndexNoMake( startPoint ) ]; pRVerts->setIMapCoords( 0, CLIFFTHEIGHT ); g_lpLib3d->EndPoly(); //DeadCode JON 28Sep00 g_lpLib3d->DecGlobal( TOGGLE_TEXTURE_ZBIAS ); } void LandScape::LoRezTile(UByte* &pDS,ULong& dataLen,COORDS3D& view,const HTEXT& hTexture) { #ifdef _NOHIREZ return; #endif Lib3DPoint *pRVerts; UWord thisMaterial; thisMaterial = hTexture.textureHandle; UWord flag; UByte* pDataStream=pDS; //Now render this texture over the whole tile... //DeadCode JON 20Oct00 AltPointsHdr& aph=*(AltPointsHdr*)pDataStream; //DeadCode JON 20Oct00 int vertexCount=aph.vertexCount; pDataStream+=sizeof(AltPointsHdr); PointDef* pPointDefs=(PointDef*)pDataStream; //DeadCode JON 20Oct00 COORDS3D* pCoordData=tileCoords; DoPointStruc* pPoints =SHAPE.newco; //DeadCode JON 20Oct00 UWord clipTest=0; { for (int t=0;t<4;t++) { //3d coordinate buffer will do for storing //this load of vertex information PointDef& apd=*pPointDefs++; DoPointStruc& dp=*pPoints++; dp.setPosition( ((apd.x<<9)+view.X), (apd.alt*_altitudeScale), (((256-apd.z)<<9)+view.Z) ); dp.setNormal( Three_Dee.normalDataPtr[apd.shadeVal] ); dp.setIMapCoords( apd.x, apd.z ); } pPoints = SHAPE.newco; g_lpLib3d->SetMaterial(thisMaterial); pRVerts=g_lpLib3d->BeginFan( 4 ); pRVerts[0] = pPoints[0]; pRVerts[1] = pPoints[1]; pRVerts[2] = pPoints[2]; pRVerts[3] = pPoints[3]; g_lpLib3d->EndFan(); return; } } //컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴 //Procedure HiRezTile //Author Paul. //Date Tue 10 Nov 1998 //------------------------------------------------------------------------------ const Float sRaise = 5; // the smallest raise to be drawn in cm... void LandScape::HiRezTile( const UByte* pDS, const ULong dataLen, const COORDS3D& view, const TileElement& gridElement, const ImageMapDescPtr seaptr, SWord seaAnimOffset ) { #ifdef _NOHIREZ return; #endif const bool doSheep = ( gridElement.viewRadius < 2 && gridElement.meshRes < TILE_REZ_LIMIT_ITEM ); // quick inlining code... ULong flag = (ULong( doSheep)<<3) | (ULong(Save_Data.filtering==3)<<2) | (ULong (Save_Data.detail_3d[DETAIL3D_INCONSEQUENTIALS])<<1) | (ULong (Save_Data.textureQuality==4) ); switch ( flag ) { case 0: _HiRezTile( pDS, dataLen, view, gridElement.textHandle, false, false, false, seaptr,seaAnimOffset, false ); break; case 1: _HiRezTile( pDS, dataLen, view, gridElement.textHandle, false, false, true, seaptr,seaAnimOffset, false ); break; case 2: _HiRezTile( pDS, dataLen, view, gridElement.textHandle, false, true, false, seaptr,seaAnimOffset, false ); break; case 3: _HiRezTile( pDS, dataLen, view, gridElement.textHandle, false, true, true, seaptr,seaAnimOffset, false ); break; case 4: _HiRezTile( pDS, dataLen, view, gridElement.textHandle, true, false, false, seaptr,seaAnimOffset, false ); break; case 5: _HiRezTile( pDS, dataLen, view, gridElement.textHandle, true, false, true, seaptr,seaAnimOffset, false ); break; case 6: _HiRezTile( pDS, dataLen, view, gridElement.textHandle, true, true, false, seaptr,seaAnimOffset, false ); break; case 7: _HiRezTile( pDS, dataLen, view, gridElement.textHandle, true, true, true, seaptr,seaAnimOffset, false ); break; case 8: _HiRezTile( pDS, dataLen, view, gridElement.textHandle, false, false, false, seaptr,seaAnimOffset, true ); break; case 9: _HiRezTile( pDS, dataLen, view, gridElement.textHandle, false, false, true, seaptr,seaAnimOffset, true ); break; case 10: _HiRezTile( pDS, dataLen, view, gridElement.textHandle, false, true, false, seaptr,seaAnimOffset, true ); break; case 11: _HiRezTile( pDS, dataLen, view, gridElement.textHandle, false, true, true, seaptr,seaAnimOffset, true ); break; case 12: _HiRezTile( pDS, dataLen, view, gridElement.textHandle, true, false, false, seaptr,seaAnimOffset, true ); break; case 13: _HiRezTile( pDS, dataLen, view, gridElement.textHandle, true, false, true, seaptr,seaAnimOffset, true ); break; case 14: _HiRezTile( pDS, dataLen, view, gridElement.textHandle, true, true, false, seaptr,seaAnimOffset, true ); break; case 15: _HiRezTile( pDS, dataLen, view, gridElement.textHandle, true, true, true, seaptr,seaAnimOffset, true ); break; NODEFAULT; } //DeadCode JON 8Aug00 _HiRezTile( pDS, dataLen, view, hTexture, Save_Data.filtering==3, (Save_Data.detail_3d[DETAIL3D_INCONSEQUENTIALS]), Save_Data.textureQuality==4,seaptr,seaAnimOffset ); } inline void LandScape::_HiRezTile( const UByte* pDS, const ULong dataLen, const COORDS3D& view, const HTEXT& hTexture, const bool doDither, const bool doRaises, const bool doHirez, const ImageMapDescPtr seaptr, const SWord seaAnimOffset, const bool doItems) { #ifdef _NO_TEXTURE_RENDER g_lpLib3d->SetMaterial( 12, Three_Dee.pTMake->GetImageFromArea(9) ); #endif LIGHTFLAG lf = LF_AMBIENT; Lib3DPoint *pRVerts; UWord thisMaterial; thisMaterial = hTexture.textureHandle; //DeadCode JON 8Aug00 // FileNum seaFile = FileNum(seaBase + (ULong(totTime/25)&0x03) ); //DeadCode JON 8Aug00 //DeadCode JON 8Aug00 FileNum seaFile = FileNum(seaBase); //DeadCode JON 8Aug00 LandMapNum seamap=LandMapNum(seaFile); //DeadCode JON 8Aug00 ImageMapDescPtr seaptr = seamap.GetLandMapPtr(); //DeadCode JON 8Aug00 //DeadCode JON 8Aug00 static bool spthjfkkkkkf= true; //DeadCode JON 8Aug00 if ( spthjfkkkkkf ) //DeadCode JON 8Aug00 { //DeadCode JON 8Aug00 spthjfkkkkkf = false; //DeadCode JON 8Aug00 //DeadCode JON 8Aug00 g_lpLib3d->UploadAsDitherTexture( seaptr ); //DeadCode JON 8Aug00 //DeadCode JON 8Aug00 seaFile = FileNum(seaBase+1); //DeadCode JON 8Aug00 seamap=LandMapNum(seaFile); //DeadCode JON 8Aug00 ImageMapDescPtr seamipptr = seamap.GetLandMapPtr(); //DeadCode JON 8Aug00 g_lpLib3d->UploadAsMipMapLevel( seaptr, seamipptr, 1 ); //DeadCode JON 8Aug00 //DeadCode JON 8Aug00 seaFile = FileNum(seaBase+2); //DeadCode JON 8Aug00 seamap=LandMapNum(seaFile); //DeadCode JON 8Aug00 seamipptr = seamap.GetLandMapPtr(); //DeadCode JON 8Aug00 g_lpLib3d->UploadAsMipMapLevel( seaptr, seamipptr, 2 ); //DeadCode JON 8Aug00 //DeadCode JON 8Aug00 seaFile = FileNum(seaBase+3); //DeadCode JON 8Aug00 seamap=LandMapNum(seaFile); //DeadCode JON 8Aug00 seamipptr = seamap.GetLandMapPtr(); //DeadCode JON 8Aug00 g_lpLib3d->UploadAsMipMapLevel( seaptr, seamipptr, 3 ); //DeadCode JON 8Aug00 //DeadCode JON 8Aug00 } //DeadCode JON 8Aug00 //DeadCode JON 15Aug00 ImageMapDescPtr dithImg; //DeadCode JON 15Aug00 if ( doDither ) //DeadCode JON 15Aug00 { //DeadCode JON 15Aug00 FileNum dithFile = FileNum( FIL_DITHER1_NUM); //DeadCode JON 15Aug00 LandMapNum dithMap=LandMapNum(dithFile); //DeadCode JON 15Aug00 dithImg = dithMap.GetLandMapPtr(); //DeadCode JON 15Aug00 //DeadCode JON 10Aug00 dithImg = Image_Map.GetImageMapPtr(DITHER1NO); //DeadCode JON 15Aug00 //DeadCode JON 10Aug00 g_lpLib3d->UploadAsDitherTexture( dithImg ); //DeadCode JON 15Aug00 } const UByte* pDataStream=pDS; //Now render this texture over the whole tile... AltPointsHdr& aph=*(AltPointsHdr*)pDataStream; int vertexCount=aph.vertexCount; pDataStream+=sizeof(AltPointsHdr); PointDef* pPointDefs=(PointDef*)pDataStream; //DeadCode JON 20Oct00 COORDS3D* pCoordData=tileCoords; DoPointStruc* pPoints =SHAPE.newco; //DeadCode JON 20Oct00 UWord clipTest=0; PointDef* inptDefs = pPointDefs; //TempCode JON 20Sep00 #pragma warnmsg ( "remove me" ) //TempCode JON 20Sep00 if (aph.checksum==0x7788BC73 ) //TempCode JON 20Sep00 NOP; #ifndef _TILE_POSITIONS_IN_MATRIX for (int t=0;t<vertexCount;t++) { //3d coordinate buffer will do for storing //this load of vertex information PointDef& apd=*pPointDefs++; DoPointStruc& dp=*pPoints++; dp.setPosition( ((apd.x<<9)+view.X), (apd.alt*_altitudeScale), (((256-apd.z)<<9)+view.Z) ); dp.setNormal( Three_Dee.normalDataPtr[apd.shadeVal] ); dp.setIMapCoords( apd.x, apd.z ); if ( doDither ) { dp.setIMapCoords1( apd.x<<5, apd.z<<5 ); // for the extra dithering } } #else g_lpLib3d->PushMatrix( MATRIX_OBJECT ); g_lpLib3d->LoadIdentity( MATRIX_OBJECT ); D3DVECTOR viewMods; viewMods.x=D3DVALUE(view.X-viewer_x); viewMods.y=D3DVALUE(-viewer_y); viewMods.z=D3DVALUE(view.Z-viewer_z); g_lpLib3d->Translate( MATRIX_OBJECT, viewMods ); for (int t=0;t<vertexCount;t++) { //3d coordinate buffer will do for storing //this load of vertex information PointDef& apd=*pPointDefs++; DoPointStruc& dp=*pPoints++; dp.setPosition( ((apd.x<<9)), (apd.alt*_altitudeScale), (((256-apd.z)<<9)) ); dp.setNormal( Three_Dee.normalDataPtr[apd.shadeVal] ); dp.setIMapCoords( apd.x, apd.z ); if ( doDither ) { dp.setIMapCoords1( apd.x<<5, apd.z<<5 ); // for the extra dithering } } #endif pPoints = SHAPE.newco; //TempCode JON 19Sep00 g_lpLib3d->SetMaterial(thisMaterial); //TempCode JON 19Sep00 pRVerts=g_lpLib3d->BeginFan( 4 ); //TempCode JON 19Sep00 pRVerts[0] = pPoints[0]; //TempCode JON 19Sep00 pRVerts[1] = pPoints[1]; //TempCode JON 19Sep00 pRVerts[2] = pPoints[2]; //TempCode JON 19Sep00 pRVerts[3] = pPoints[3]; //TempCode JON 19Sep00 g_lpLib3d->EndFan(); //TempCode JON 19Sep00 //TempCode JON 19Sep00 return; pDataStream=(UByte*)pPointDefs; DrawDataHdr& ddh=*(DrawDataHdr*)pDataStream; pDataStream+=sizeof(ddh); int polyCount=ddh.noOfPolys; int lineCount=ddh.noOfLines; // build an array of offsets for the things. AltPointIndexer pointOffsets; // will build the whole thing. const UByte* isPointCliff = pDS+ddh.cliffOffset; const UByte* saveDS=pDataStream; if ( !doRaises || raiseFlag == NORAISE ) { // ************************* non raised landscape //DeadCode JON 15Aug00 if ( doDither ) //DeadCode JON 15Aug00 g_lpLib3d->SetMaterial(thisMaterial, dithImg ); //DeadCode JON 15Aug00 else //DeadCode JON 15Aug00 g_lpLib3d->SetMaterial(thisMaterial); if ( !doDither ) #ifndef _RENDER_SIMPLE_TEXTURE g_lpLib3d->SetMaterial(thisMaterial); #else g_lpLib3d->SetMaterial(HMATERIAL( (Three_Dee.pTMake->GetImageFromArea(12)) ) ); #endif // PASS1 the lowres stuff if ( *isPointCliff++ ) // there is cliff data { while (polyCount--) // loop through all poly's { UByte at=*pDataStream++; int fanCount=*pDataStream++; if ( IsCliffBottom( at ) ) { // arrgh there is a possiblilty of a cliff bottom... if ((at&AT_MASK)!=AT_sea) { // normal draw method if ( doDither ) #ifndef _RENDER_SIMPLE_TEXTURE g_lpLib3d->SetMaterial(thisMaterial, GetDitherTexture( at ) ); #else g_lpLib3d->SetMaterial(HMATERIAL( (Three_Dee.pTMake->GetImageFromArea(12)), GetDitherTexture( at ) ) ); #endif while(fanCount--) { int triCount=(*pDataStream++)+2; pRVerts = g_lpLib3d->BeginFan(triCount); while (triCount--) { *pRVerts++=pPoints[ pointOffsets.getPosCliffBaseIndex(*pDataStream++, (bool*)isPointCliff)]; // a point per triangle } g_lpLib3d->EndFan(); } // end of loop thru fans } else { // draw sea wiv animation #ifndef _RENDER_SIMPLE_TEXTURE g_lpLib3d->SetMaterial(thisMaterial, seaptr ); #else g_lpLib3d->SetMaterial(HMATERIAL( (Three_Dee.pTMake->GetImageFromArea(12)), seaptr ) ); #endif while(fanCount--) // loop all fans { int triCount=(*pDataStream++)+2; pRVerts = g_lpLib3d->BeginFan(triCount); while (triCount--) { *pRVerts++=pPoints[ pointOffsets.getPosSeaCliffBaseIndex(*pDataStream++, (bool*)isPointCliff, seaAnimOffset ) ]; // a point per triangle } g_lpLib3d->EndFan(); } // end of loop fans //DeadCode JON 15Aug00 if ( doDither ) //DeadCode JON 15Aug00 g_lpLib3d->SetMaterial(thisMaterial, dithImg ); //DeadCode JON 15Aug00 else //DeadCode JON 15Aug00 g_lpLib3d->SetMaterial(thisMaterial); if ( !doDither ) #ifndef _RENDER_SIMPLE_TEXTURE g_lpLib3d->SetMaterial(thisMaterial ); #else g_lpLib3d->SetMaterial(HMATERIAL( (Three_Dee.pTMake->GetImageFromArea(12)) ) ); #endif } } else // ahah it's not a cliff bottom { if ( !doHirez || !IsHirez( at ) ) { if ( doDither ) #ifndef _RENDER_SIMPLE_TEXTURE g_lpLib3d->SetMaterial(thisMaterial, GetDitherTexture( at ) ); #else g_lpLib3d->SetMaterial(HMATERIAL( (Three_Dee.pTMake->GetImageFromArea(12)), GetDitherTexture( at ) ) ); #endif // normal draw method while(fanCount--) { int triCount=(*pDataStream++); pRVerts = g_lpLib3d->BeginFan(triCount+2); *pRVerts++=pPoints[*pDataStream++]; // mutual vertex *pRVerts++=pPoints[*pDataStream++]; // first vertex while (triCount--) { *pRVerts++=pPoints[*pDataStream++]; // a point per triangle } g_lpLib3d->EndFan(); } // end of loop thru fans } else { while(fanCount--) // skip the area - hirez done in own pass { int triCount=(*pDataStream++)+2; pDataStream+=triCount; } } } } } else { // no cliffs //draw in the ground while (polyCount--) // loop through all poly's { UByte at=*pDataStream++; int fanCount=*pDataStream++; if ( !doHirez || !IsHirez( at ) ) { // not a hirez area if ((at&AT_MASK)!=AT_sea) { // normal draw method if ( doDither ) #ifndef _RENDER_SIMPLE_TEXTURE g_lpLib3d->SetMaterial(thisMaterial, GetDitherTexture( at ) ); #else g_lpLib3d->SetMaterial(HMATERIAL( (Three_Dee.pTMake->GetImageFromArea(12)), GetDitherTexture( at ) ) ); #endif while(fanCount--) { int triCount=(*pDataStream++); pRVerts = g_lpLib3d->BeginFan(triCount+2); *pRVerts++=pPoints[*pDataStream++]; // mutual vertex *pRVerts++=pPoints[*pDataStream++]; // first vertex while (triCount--) { *pRVerts++=pPoints[*pDataStream++]; // a point per triangle } g_lpLib3d->EndFan(); } // end of loop thru fans } else { // draw sea wiv animation #ifndef _RENDER_SIMPLE_TEXTURE g_lpLib3d->SetMaterial(thisMaterial, seaptr ); #else g_lpLib3d->SetMaterial(HMATERIAL( (Three_Dee.pTMake->GetImageFromArea(12)), seaptr ) ); #endif while(fanCount--) // loop all fans { int triCount=(*pDataStream++)+2; pRVerts = g_lpLib3d->BeginFan(triCount); while (triCount--) { *pRVerts++=pPoints[ pointOffsets.getSeaIndex(*pDataStream++, seaAnimOffset ) ]; // a point per triangle } g_lpLib3d->EndFan(); } // end of loop fans //DeadCode JON 15Aug00 if ( doDither ) //DeadCode JON 15Aug00 g_lpLib3d->SetMaterial(thisMaterial, dithImg ); //DeadCode JON 15Aug00 else //DeadCode JON 15Aug00 g_lpLib3d->SetMaterial(thisMaterial); if ( !doDither ) #ifndef _RENDER_SIMPLE_TEXTURE g_lpLib3d->SetMaterial(thisMaterial); #else g_lpLib3d->SetMaterial(HMATERIAL( (Three_Dee.pTMake->GetImageFromArea(12)) ) ); #endif } } else { // a hirez area while(fanCount--) // skip the area { int triCount=(*pDataStream++)+2; pDataStream+=triCount; } } // end of hirez or not } // end of loop all poly's } // end of is there cliffs to worry about... // PASS 2 - draw in the hirez areas... if ( doHirez ) { polyCount=ddh.noOfPolys; pDataStream=saveDS; // start from beggining of poly data. while (polyCount--) // loop through all poly's { UByte at=*pDataStream++; int fanCount=*pDataStream++; if ( !IsHirez( at ) ) { // not a hirez area while(fanCount--) // skip the area { int triCount=(*pDataStream++)+2; pDataStream+=triCount; } } else { // a hirez area HMATERIAL sM(Three_Dee.pTMake->GetImageFromArea(at)); //TempCode JON 5Oct00 HMATERIAL sM(127); //RED sM.isMasked = MSK_NONE; while(fanCount--) // skip the area { int triCount=(*pDataStream++)+2; pRVerts = g_lpLib3d->BeginFan( sM, triCount); while (triCount--) { *pRVerts=pPoints[ *pDataStream ]; pRVerts->setIMapCoords( SWord(inptDefs[ *pDataStream ].x)<<1, SWord(inptDefs[ *pDataStream ].z)<<1 ); pRVerts++; *pDataStream++; } g_lpLib3d->EndFan(); } // end of loop thru fans } // end of hirez or not } // end of loop all poly's } } else // ******************************************* DO THE RAISES { if ( doItems ) RenderSheep( (pDS+ddh.sheepOffset), ddh.noOfSheep, view, inptDefs ); // only do if raisd landscape... //DeadCode JON 28Sep00 g_lpLib3d->IncGlobal( TOGGLE_TEXTURE_ZBIAS ); // PASS 1 - draw all of the ground level, lowres stuff. //DeadCode JON 15Aug00 if ( doDither ) //DeadCode JON 15Aug00 g_lpLib3d->SetMaterial(thisMaterial, dithImg ); //DeadCode JON 15Aug00 else //DeadCode JON 15Aug00 g_lpLib3d->SetMaterial(thisMaterial); if ( !doDither ) #ifndef _RENDER_SIMPLE_TEXTURE g_lpLib3d->SetMaterial(thisMaterial); #else g_lpLib3d->SetMaterial(HMATERIAL( (Three_Dee.pTMake->GetImageFromArea(12)) ) ); #endif if ( *isPointCliff++ ) // there is cliff data { //draw in the ground - pay attention 2 raised area types & cliffs while (polyCount--) // loop through all poly's { UByte at=*pDataStream++; int fanCount=*pDataStream++; Float raiseHeight = Float(GetRaiseHeight(at)); if ( raiseHeight <= sRaise ) { // this area doesn't need raising. if ( IsCliffBottom( at ) ) { // arrgh there is a possiblilty of a cliff bottom... if ((at&AT_MASK)!=AT_sea) { // normal draw method if ( doDither ) #ifndef _RENDER_SIMPLE_TEXTURE g_lpLib3d->SetMaterial(thisMaterial, GetDitherTexture( at )); #else g_lpLib3d->SetMaterial(HMATERIAL( (Three_Dee.pTMake->GetImageFromArea(12)), GetDitherTexture( at ) ) ); #endif while(fanCount--) { int triCount=(*pDataStream++)+2; pRVerts = g_lpLib3d->BeginFan(triCount); while (triCount--) { *pRVerts++=pPoints[ pointOffsets.getPosCliffBaseIndex(*pDataStream++, (bool*)isPointCliff)]; // a point per triangle } g_lpLib3d->EndFan(); } // end of loop thru fans } else { // draw sea wiv animation #ifndef _RENDER_SIMPLE_TEXTURE g_lpLib3d->SetMaterial(thisMaterial, seaptr); #else g_lpLib3d->SetMaterial(HMATERIAL( (Three_Dee.pTMake->GetImageFromArea(12)), seaptr ) ); #endif while(fanCount--) // loop all fans { int triCount=(*pDataStream++)+2; pRVerts = g_lpLib3d->BeginFan(triCount); while (triCount--) { *pRVerts++=pPoints[ pointOffsets.getPosSeaCliffBaseIndex(*pDataStream++, (bool*)isPointCliff, seaAnimOffset ) ]; // a point per triangle } g_lpLib3d->EndFan(); } // end of loop fans //DeadCode JON 15Aug00 if ( doDither ) //DeadCode JON 15Aug00 g_lpLib3d->SetMaterial(thisMaterial, dithImg ); //DeadCode JON 15Aug00 else //DeadCode JON 15Aug00 g_lpLib3d->SetMaterial(thisMaterial); if ( !doDither ) #ifndef _RENDER_SIMPLE_TEXTURE g_lpLib3d->SetMaterial(thisMaterial); #else g_lpLib3d->SetMaterial(HMATERIAL( (Three_Dee.pTMake->GetImageFromArea(12)) ) ); #endif } } else // ahah it's not a cliff bottom { if ( !doHirez || !IsHirez( at ) ) { if ( doDither ) #ifndef _RENDER_SIMPLE_TEXTURE g_lpLib3d->SetMaterial(thisMaterial, GetDitherTexture( at )); #else g_lpLib3d->SetMaterial(HMATERIAL( (Three_Dee.pTMake->GetImageFromArea(12)), GetDitherTexture( at ) ) ); #endif // normal draw method while(fanCount--) { int triCount=(*pDataStream++); pRVerts = g_lpLib3d->BeginFan(triCount+2); *pRVerts++=pPoints[*pDataStream++]; // mutual vertex *pRVerts++=pPoints[*pDataStream++]; // first vertex while (triCount--) { *pRVerts++=pPoints[*pDataStream++]; // a point per triangle } g_lpLib3d->EndFan(); } // end of loop thru fans } else { while(fanCount--) // skip the area - hirez done in own pass { int triCount=(*pDataStream++)+2; pDataStream+=triCount; } } } } else { // its raised while(fanCount--) // skip the area { int triCount=(*pDataStream++)+2; pDataStream+=triCount; } } // end of raised or not } // end of loop all poly's } else { // no cliff data to worry about //draw in the ground - pay attention 2 raised area types while (polyCount--) // loop through all poly's { UByte at=*pDataStream++; int fanCount=*pDataStream++; Float raiseHeight = Float(GetRaiseHeight(at)); if ( raiseHeight <= sRaise ) { // this area doesn't need raising. if ( !doHirez || !IsHirez( at ) ) { // not a hirez area if ((at&AT_MASK)!=AT_sea) { // normal draw method if ( doDither ) #ifndef _RENDER_SIMPLE_TEXTURE g_lpLib3d->SetMaterial(thisMaterial, GetDitherTexture( at )); #else g_lpLib3d->SetMaterial(HMATERIAL( (Three_Dee.pTMake->GetImageFromArea(12)), GetDitherTexture( at ) ) ); #endif while(fanCount--) { int triCount=(*pDataStream++); pRVerts = g_lpLib3d->BeginFan(triCount+2); *pRVerts++=pPoints[*pDataStream++]; // mutual vertex *pRVerts++=pPoints[*pDataStream++]; // first vertex while (triCount--) { *pRVerts++=pPoints[*pDataStream++]; // a point per triangle } g_lpLib3d->EndFan(); } // end of loop thru fans } else { // draw sea wiv animation #ifndef _RENDER_SIMPLE_TEXTURE g_lpLib3d->SetMaterial(thisMaterial, seaptr); #else g_lpLib3d->SetMaterial(HMATERIAL( (Three_Dee.pTMake->GetImageFromArea(12)), seaptr ) ); #endif while(fanCount--) // loop all fans { int triCount=(*pDataStream++)+2; pRVerts = g_lpLib3d->BeginFan(triCount); while (triCount--) { *pRVerts++=pPoints[ pointOffsets.getSeaIndex(*pDataStream++, seaAnimOffset ) ]; // a point per triangle } g_lpLib3d->EndFan(); } // end of loop fans //DeadCode JON 15Aug00 if ( doDither ) //DeadCode JON 15Aug00 g_lpLib3d->SetMaterial(thisMaterial, dithImg ); //DeadCode JON 15Aug00 else //DeadCode JON 15Aug00 g_lpLib3d->SetMaterial(thisMaterial); if ( !doDither ) #ifndef _RENDER_SIMPLE_TEXTURE g_lpLib3d->SetMaterial(thisMaterial); #else g_lpLib3d->SetMaterial(HMATERIAL( (Three_Dee.pTMake->GetImageFromArea(12)) ) ); #endif } } else { // a hirez area while(fanCount--) // skip the area { int triCount=(*pDataStream++)+2; pDataStream+=triCount; } } // end of hirez or not } else { // its raised while(fanCount--) // skip the area { int triCount=(*pDataStream++)+2; pDataStream+=triCount; } } // end of raised or not } // end of loop all poly's } // end of is there cliff data or not // PASS 2 // now go through and draw all the edges for raised views. g_lpLib3d->SetObjectLighting( lf ); pDataStream=pDS+ddh.edgeOffset; UByte rows=*pDataStream++; while (rows--) { UByte sideType=*pDataStream++; #ifndef NDEBUG if ( sideType >= NUM_SIDE_TYPES ) INT3; #endif UByte lineC=*pDataStream++; UByte topAt = SideLookUp[sideType].higherAT; UByte botAt = SideLookUp[sideType].lowerAT; Float topHt = Float(GetRaiseHeight(topAt)); //TempCode JON 22Sep00 #pragma warnmsg ( "remove me" ) //TempCode JON 22Sep00 if ( topAt == 90 ) //TempCode JON 22Sep00 NOP; if ( topHt > sRaise ) // only draw if the raise is greater { float botHt; int botOffset; int topOffset = GetRaisePtOffset( topAt ); if ( IsRaised( botAt ) ) { GetRaiseInfo( botAt, botOffset ); botHt = float( GetRaiseInfo( botAt, botOffset ) ); } HMATERIAL sideIm( Image_Map.GetImageMapPtr( GetSideImage( topAt ) ) ); sideIm.isMasked = MSK_NONE; short lastTileCoord = 0; DoPointStruc* bStartPtr; DoPointStruc* bEndPtr; DoPointStruc* tStartPtr; DoPointStruc* tEndPtr; UByte startP,endP; startP=endP=PT_NULL; while (lineC--) { startP=*pDataStream++; #ifndef NDEBUG if ( startP >= vertexCount ) INT3; #endif endP=*pDataStream++; if ( IsRaised( botAt ) ) { bStartPtr = &pPoints[ pointOffsets.getPointIndex( startP, botOffset, botHt ) ]; bEndPtr = &pPoints[ pointOffsets.getPointIndex( endP, botOffset, botHt ) ]; } else { bStartPtr = &pPoints[ startP ]; bStartPtr->setIMapCoords( 0, 128 ); bEndPtr = &pPoints[ endP ]; bEndPtr->setIMapCoords( 0, 128 ); } tStartPtr = &pPoints[ pointOffsets.getPointIndex( startP, topOffset, topHt ) ]; tEndPtr = &pPoints[ pointOffsets.getPointIndex( endP, topOffset, topHt ) ]; //work out texture tiling coords float dx = bStartPtr->getPosX() - bEndPtr->getPosX(); float dz = bStartPtr->getPosZ() - bEndPtr->getPosZ(); float dist = fastMath.FastSqrt( (dx*dx) + (dz*dz) ); bEndPtr->setIMapCoords( lastTileCoord, bEndPtr->getIMapY() ); tEndPtr->setIMapCoords( lastTileCoord, tEndPtr->getIMapY() ); lastTileCoord +=short( dist*(1.0/40.0) ); bStartPtr->setIMapCoords( lastTileCoord, bStartPtr->getIMapY() ); tStartPtr->setIMapCoords( lastTileCoord, tStartPtr->getIMapY() ); // draw in side of raised platform pRVerts = g_lpLib3d->BeginPoly(sideIm,4); *pRVerts++ = *tEndPtr; *pRVerts++ = *tStartPtr; *pRVerts++ = *bStartPtr; *pRVerts++ = *bEndPtr; g_lpLib3d->EndPoly(); } } else { // skip this poly, it's not raised pDataStream+=(lineC<<1); } } // end of draw the sides of raised platforms g_lpLib3d->SetObjectLighting( lf ); // PASS 3 - draw in the tops of raised areas and hirez areas... g_lpLib3d->DecGlobal( TOGGLE_TEXTURE_ZBIAS ); polyCount=ddh.noOfPolys; pDataStream=saveDS; // start from beggining of poly data. while (polyCount--) // loop through all poly's { UByte at=*pDataStream++; int fanCount=*pDataStream++; Float raiseHeight = Float(GetRaiseHeight(at)); if ( raiseHeight <= sRaise ) { // this area doesn't need raising. if ( !doHirez || !IsHirez( at ) ) { // not a hirez area while(fanCount--) // skip the area { int triCount=(*pDataStream++)+2; pDataStream+=triCount; } } else { // a hirez area HMATERIAL sM(Three_Dee.pTMake->GetImageFromArea(at)); //TempCode JON 5Oct00 HMATERIAL sM(144); //BLUE sM.isMasked = MSK_NONE; while(fanCount--) // skip the area { int triCount=(*pDataStream++)+2; pRVerts = g_lpLib3d->BeginFan( sM, triCount); while (triCount--) { *pRVerts=pPoints[ *pDataStream ]; pRVerts->setIMapCoords( SWord(inptDefs[ *pDataStream ].x)<<1, SWord(inptDefs[ *pDataStream ].z)<<1 ); pRVerts++; *pDataStream++; } g_lpLib3d->EndFan(); } // end of loop thru fans } // end of hirez or not } else { // area is raised int raiseOffset = GetRaisePtOffset( at ); if ( !doHirez || !IsHirez( at ) ) { // not a hirez area // normal draw method //DeadCode JON 15Aug00 if ( doDither ) //DeadCode JON 15Aug00 g_lpLib3d->SetMaterial(thisMaterial, dithImg ); //DeadCode JON 15Aug00 else //DeadCode JON 15Aug00 g_lpLib3d->SetMaterial(thisMaterial); if ( doDither ) { #ifndef _RENDER_SIMPLE_TEXTURE g_lpLib3d->SetMaterial(thisMaterial, GetDitherTexture( at )); #else g_lpLib3d->SetMaterial(HMATERIAL( (Three_Dee.pTMake->GetImageFromArea(12)), GetDitherTexture( at ) ) ); #endif } else { #ifndef _RENDER_SIMPLE_TEXTURE g_lpLib3d->SetMaterial(thisMaterial); #else g_lpLib3d->SetMaterial(HMATERIAL( (Three_Dee.pTMake->GetImageFromArea(12)) ) ); #endif } while(fanCount--) { int triCount=(*pDataStream++)+2; pRVerts = g_lpLib3d->BeginFan(triCount); while (triCount--) { *pRVerts=pPoints[ pointOffsets.getPointIndex( *pDataStream, raiseOffset, raiseHeight ) ]; pRVerts->setIMapCoords( inptDefs[ *pDataStream ].x, inptDefs[ *pDataStream ].z ); if ( doDither ) pRVerts->setIMapCoords1( pRVerts->getIMapX()<<6, pRVerts->getIMapY()<<6 ); pRVerts++; *pDataStream++; } g_lpLib3d->EndFan(); } // end of loop thru fans } else { // a hirez area HMATERIAL sM(Three_Dee.pTMake->GetImageFromArea(at)); //TempCode JON 5Oct00 HMATERIAL sM(104); //YELLOW sM.isMasked = MSK_NONE; while(fanCount--) { int triCount=(*pDataStream++)+2; pRVerts = g_lpLib3d->BeginFan( sM, triCount); while (triCount--) { *pRVerts=pPoints[ pointOffsets.getPointIndex( *pDataStream, raiseOffset, raiseHeight ) ]; pRVerts->setIMapCoords( SWord(inptDefs[ *pDataStream ].x)<<1, SWord(inptDefs[ *pDataStream ].z)<<1 ); pRVerts++; *pDataStream++; } g_lpLib3d->EndFan(); } // end of loop thru fans //DeadCode JON 15Aug00 if ( doDither ) //DeadCode JON 15Aug00 g_lpLib3d->SetMaterial(thisMaterial, dithImg ); //DeadCode JON 15Aug00 else //DeadCode JON 15Aug00 g_lpLib3d->SetMaterial(thisMaterial); } // end of hirez or not } // end of raised or not } // end of loop all poly's g_lpLib3d->IncGlobal( TOGGLE_TEXTURE_ZBIAS ); } // now we want to draw in hedges.. - go through lines database, find any hedges and draw in doublesided poly // to represent them. // also draw in cliff faces... lf = LF_AMBIENT; g_lpLib3d->SetObjectLighting( lf ); //DeadCode JON 28Sep00 g_lpLib3d->DecGlobal( TOGGLE_TEXTURE_ZBIAS ); if ( doRaises && hedgeHeight > sRaise ) // only do when closeup { //DeadCode JON 7Nov00 item treeItem; //DeadCode JON 7Nov00 treeItem.Anim=CloudAnimP; pDataStream = pDS+ddh.lineOffset; Float ddy; ddy=hedgeHeight; lineCount=ddh.noOfLines; short lastTileCoord = 0; while ( lineCount-- ) { UByte rt =*pDataStream++; int secCount = (*pDataStream++)-1; switch( rt ) { case RT_HedgerowThick: case RT_HedgerowThin: { // this is a hedge, draw it in. g_lpLib3d->DecGlobal( TOGGLE_TEXTURE_ZBIAS ); DoPointStruc bottom[2]; DoPointStruc top[2]; DoPointStruc* bStartPtr = &bottom[0]; DoPointStruc* bEndPtr = &bottom[1]; DoPointStruc* tStartPtr = &top[0]; DoPointStruc* tEndPtr = &top[1]; UByte startP,endP; endP = *pDataStream++; *tEndPtr = pPoints[endP]; tEndPtr->incPosY( ddy ); *bEndPtr = pPoints[endP]; //DeadCode JON 7Nov00 // do a tree... //DeadCode JON 7Nov00 if ( doItems ) //DeadCode JON 7Nov00 { //DeadCode JON 7Nov00 float xT, yT, zT; //DeadCode JON 7Nov00 bEndPtr->getPosition( //DeadCode JON 7Nov00 xT, yT, zT //DeadCode JON 7Nov00 ); //DeadCode JON 7Nov00 //DeadCode JON 7Nov00 treeItem.World.X=view.X+SLong(F2UL_Round( xT )); //DeadCode JON 7Nov00 treeItem.World.Y=SLong(F2UL_Round( yT )); //DeadCode JON 7Nov00 treeItem.World.Z=view.Z+SLong(F2UL_Round( zT )); //DeadCode JON 7Nov00 treeItem.shape=ShapeNum(TREE1+((inptDefs[endP].alt+ inptDefs[endP].z )&1)); //DeadCode JON 7Nov00 //DeadCode JON 7Nov00 Three_Dee.do_object_dummy(&treeItem,STATIC_OBJECT); //DeadCode JON 7Nov00 } while (secCount--) { // iterate DoPointStruc *t = bStartPtr; bStartPtr = bEndPtr; bEndPtr = t; t = tStartPtr; tStartPtr = tEndPtr; tEndPtr = t; endP=*pDataStream++; *tEndPtr = pPoints[endP]; tEndPtr->incPosY( ddy ); *bEndPtr = pPoints[endP]; // end of iterate //DeadCode JON 7Nov00 // do a tree... //DeadCode JON 7Nov00 if ( doItems ) //DeadCode JON 7Nov00 { //DeadCode JON 7Nov00 float xT, yT, zT; //DeadCode JON 7Nov00 bEndPtr->getPosition( //DeadCode JON 7Nov00 xT, yT, zT //DeadCode JON 7Nov00 ); //DeadCode JON 7Nov00 //DeadCode JON 7Nov00 treeItem.World.X=view.X+SLong(F2UL_Round( xT )); //DeadCode JON 7Nov00 treeItem.World.Y=SLong(F2UL_Round( yT )); //DeadCode JON 7Nov00 treeItem.World.Z=view.Z+SLong(F2UL_Round( zT )); //DeadCode JON 7Nov00 treeItem.shape=ShapeNum(TREE1+((inptDefs[endP].alt+ inptDefs[endP].z )&1)); //DeadCode JON 7Nov00 //DeadCode JON 7Nov00 Three_Dee.do_object_dummy(&treeItem,STATIC_OBJECT); //DeadCode JON 7Nov00 } //work out texture tiling coords float dx = bStartPtr->getPosX() - bEndPtr->getPosX(); float dz = bStartPtr->getPosZ() - bEndPtr->getPosZ(); float dist = fastMath.FastSqrt( (dx*dx) + (dz*dz) ); //DeadCode JON 31Aug00 bEndPtr->setIMapCoords( lastTileCoord, 128 ); //DeadCode JON 31Aug00 tEndPtr->setIMapCoords( lastTileCoord, 0 ); bEndPtr->setIMapCoords( lastTileCoord, 129 ); tEndPtr->setIMapCoords( lastTileCoord, 1 ); lastTileCoord +=short( dist*(1.0/48.0) ); //DeadCode JON 31Aug00 bStartPtr->setIMapCoords( lastTileCoord, 128 ); //DeadCode JON 31Aug00 tStartPtr->setIMapCoords( lastTileCoord, 0 ); bStartPtr->setIMapCoords( lastTileCoord, 129 ); tStartPtr->setIMapCoords( lastTileCoord, 1 ); // draw tree line // first side pRVerts = g_lpLib3d->BeginPoly(HMATERIAL(Image_Map.GetImageMapPtr(TREELINENO)),4); *pRVerts++ = *tEndPtr; *pRVerts++ = *tStartPtr; *pRVerts++ = *bStartPtr; *pRVerts++ = *bEndPtr; g_lpLib3d->EndPoly(); //second side pRVerts = g_lpLib3d->BeginPoly(HMATERIAL(Image_Map.GetImageMapPtr(TREELINENO)),4); *pRVerts++ = *tStartPtr; *pRVerts++ = *tEndPtr; *pRVerts++ = *bEndPtr; *pRVerts++ = *bStartPtr; g_lpLib3d->EndPoly(); } // end of loop through line sections g_lpLib3d->IncGlobal( TOGGLE_TEXTURE_ZBIAS ); } break; case RT_Cliff: // it's a cliff - draw in... { int startP,endP; endP = *pDataStream++; while (secCount--) { startP=endP; endP=*pDataStream++; // end of iterate DrawCliffFace( startP, endP, pointOffsets ); #ifdef _DOUBLE_SIDED_CLIFFS_ DrawCliffFace( endP, startP, pointOffsets ); #endif } // end of iterate sections } break; case RT_CliffRot: // it's a cliff - draw in... { int startP,endP; endP = *pDataStream++; while (secCount--) { startP=endP; endP=*pDataStream++; // end of iterate #ifdef _DOUBLE_SIDED_CLIFFS_ DrawCliffFace( startP, endP, pointOffsets ); #endif DrawCliffFace( endP, startP, pointOffsets ); } // end of iterate sections } break; default: // it's not a hedge, don't do anything { pDataStream+=(++secCount); } break; } // end of switch route type } // end of loop through lines //DeadCode JON 7Nov00 treeItem.Anim = ANIM_NULL; } else { // don't draw hedges pDataStream = pDS+ddh.lineOffset; lineCount=ddh.noOfLines; while ( lineCount-- ) { UByte rt =*pDataStream++; int secCount = (*pDataStream++)-1; switch( rt ) { case RT_Cliff: // it's a cliff - draw in... { int startP,endP; endP = *pDataStream++; while (secCount--) { startP=endP; endP=*pDataStream++; // end of iterate DrawCliffFace( startP, endP, pointOffsets ); #ifdef _DOUBLE_SIDED_CLIFFS_ DrawCliffFace( endP, startP, pointOffsets ); #endif } // end of iterate sections } break; case RT_CliffRot: // it's a cliff - draw in... { int startP,endP; endP = *pDataStream++; while (secCount--) { startP=endP; endP=*pDataStream++; // end of iterate #ifdef _DOUBLE_SIDED_CLIFFS_ DrawCliffFace( startP, endP, pointOffsets ); #endif DrawCliffFace( endP, startP, pointOffsets ); } // end of iterate sections } break; default: // it's not a hedge, don't do anything { pDataStream+=(++secCount); } break; } // end of switch route type } // end of loop through lines } // end of draw line sides g_lpLib3d->SetObjectLighting( lf ); #ifdef _TILE_POSITIONS_IN_MATRIX g_lpLib3d->PopMatrix( MATRIX_OBJECT ); #endif //TempCode JON 4Sep00 //TempCode JON 4Sep00 // draw a border round the grid... //TempCode JON 4Sep00 pRVerts = g_lpLib3d->BeginFan( HMATERIAL( 250 ), 4 ); //TempCode JON 4Sep00 *pRVerts++ = pPoints[0]; //TempCode JON 4Sep00 *pRVerts++ = pPoints[1]; //TempCode JON 4Sep00 *pRVerts = pPoints[1]; //TempCode JON 4Sep00 pRVerts->incPosY( 60.f ); //TempCode JON 4Sep00 pRVerts++; //TempCode JON 4Sep00 *pRVerts = pPoints[0]; //TempCode JON 4Sep00 pRVerts->incPosY( 60.f ); //TempCode JON 4Sep00 g_lpLib3d->EndFan(); //TempCode JON 4Sep00 //TempCode JON 4Sep00 pRVerts = g_lpLib3d->BeginFan( HMATERIAL( 250 ), 4 ); //TempCode JON 4Sep00 *pRVerts++ = pPoints[1]; //TempCode JON 4Sep00 *pRVerts++ = pPoints[2]; //TempCode JON 4Sep00 *pRVerts = pPoints[2]; //TempCode JON 4Sep00 pRVerts->incPosY( 60.f ); //TempCode JON 4Sep00 pRVerts++; //TempCode JON 4Sep00 *pRVerts = pPoints[1]; //TempCode JON 4Sep00 pRVerts->incPosY( 60.f ); //TempCode JON 4Sep00 g_lpLib3d->EndFan(); //TempCode JON 4Sep00 //TempCode JON 4Sep00 pRVerts = g_lpLib3d->BeginFan( HMATERIAL( 250 ), 4 ); //TempCode JON 4Sep00 *pRVerts++ = pPoints[1]; //TempCode JON 4Sep00 *pRVerts++ = pPoints[0]; //TempCode JON 4Sep00 *pRVerts = pPoints[0]; //TempCode JON 4Sep00 pRVerts->incPosY( 60.f ); //TempCode JON 4Sep00 pRVerts++; //TempCode JON 4Sep00 *pRVerts = pPoints[1]; //TempCode JON 4Sep00 pRVerts->incPosY( 60.f ); //TempCode JON 4Sep00 g_lpLib3d->EndFan(); //TempCode JON 4Sep00 //TempCode JON 4Sep00 pRVerts = g_lpLib3d->BeginFan( HMATERIAL( 250 ), 4 ); //TempCode JON 4Sep00 *pRVerts++ = pPoints[2]; //TempCode JON 4Sep00 *pRVerts++ = pPoints[1]; //TempCode JON 4Sep00 *pRVerts = pPoints[1]; //TempCode JON 4Sep00 pRVerts->incPosY( 60.f ); //TempCode JON 4Sep00 pRVerts++; //TempCode JON 4Sep00 *pRVerts = pPoints[2]; //TempCode JON 4Sep00 pRVerts->incPosY( 60.f ); //TempCode JON 4Sep00 g_lpLib3d->EndFan(); } //컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴 //Procedure SoftTile //Author Paul. //Date Fri 25 Jun 1999 //------------------------------------------------------------------------------ //컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴 //Procedure AddTileSub //Author Paul. //Date Fri 25 Jun 1999 //------------------------------------------------------------------------------ //컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴 //Procedure SubdivisionNeeded //Author Paul. //Date Fri 25 Jun 1999 //------------------------------------------------------------------------------ //컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴 //Procedure Split //Author Paul. //Date Fri 25 Jun 1999 //------------------------------------------------------------------------------ //컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴 //Procedure PerspectivePoly //Author Paul. //Date Fri 25 Jun 1999 //------------------------------------------------------------------------------ //컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴 //Procedure SetClipFlags //Author Paul. //Date Mon 27 Jul 1998 // //Returns 0x00=visible // or some combination of... // 0x01=off left // 0x02=off right // 0x04=off top // 0x08=off bottom //------------------------------------------------------------------------------ //컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴 //Procedure ClipToTop //Author Paul. //Date Mon 27 Jul 1998 //------------------------------------------------------------------------------ //컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴 //Procedure ClipToBottom //Author Paul. //Date Mon 27 Jul 1998 //------------------------------------------------------------------------------ //컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴 //Procedure ClipToLeft //Author Paul. //Date Mon 27 Jul 1998 //------------------------------------------------------------------------------ //컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴 //Procedure ClipToRight //Author Paul. //Date Mon 27 Jul 1998 //------------------------------------------------------------------------------ //컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴 //Macro DoClip //Author Paul. //Date Mon 27 Jul 1998 //------------------------------------------------------------------------------ //컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴 //Procedure TriClipper //Author Paul. //Date Mon 27 Jul 1998 //------------------------------------------------------------------------------ //컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴 //Procedure ClippedTile //Author Paul. //Date Mon 27 Jul 1998 //------------------------------------------------------------------------------ //컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴 //Procedure GetCloudLevel //Author Paul. //Date Mon 16 Sep 1996 // //Description // //Inputs // //Returns // //------------------------------------------------------------------------------ SLong LandScape::GetCloudLevel(COORDS3D& world) { return _cloudLayerHeight; //CEILING_ALT; //_Collide.CloudAltitude(world); } //컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴 //Procedure GetGroundLevel //Author Paul. //Date Thu 2 May 1996 // //Description // //Inputs // //Returns // //------------------------------------------------------------------------------ SLong LandScape::GetGroundLevel(ItemBasePtr src,UByte* pAreaType,bool fReallyGetData) //RDH 17Jun96 { return(GetGroundLevel(src->World,pAreaType,fReallyGetData)); } //컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴 //Procedure GetGroundLevel //LastModified: PD 19Dec95 //Author Paul. //Date Mon 6 Nov 1995 // //Description Need int return rather than modifying coords // //Inputs // //Returns // //------------------------------------------------------------------------------ SLong LandScape::GetGroundLevel(COORDS3D& world,UByte* pAreaType,bool fReallyGetData) { return _Collide.GroundAltitude(world,pAreaType,fReallyGetData); } //////////////////////////////////////////////////////////////////////////////// // // GENERAL ROUTINES // //////////////////////////////////////////////////////////////////////////////// //컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴 //Procedure LandScape //LastModified: PD 20May96 //Author Paul. //Date Mon 6 Nov 1995 // //Description // //Inputs // //Returns // //------------------------------------------------------------------------------ LandScape::LandScape() { // build the sidelookup table... - initialise the RaiseLookup wiv full raises (and copy the offsets) { hedgeHeight = HEDGE_HEIGHT; //DeadCode JON 4Oct00 cliffHeight = CLIFF_HEIGHT; for ( int i=0; i<FULLHTOFFSET; i++ ) RaiseLookUp[i]=RaiseLookUp[i+FULLHTOFFSET]; } //DeadCode JON 21Sep00 #pragma warnmsg ( "check why the extra buffer is needed - something is stomping" ) // jon - precalc the side lookup table (only done once) SideLookUp = new raiseSide[NUM_SIDE_TYPES+1]; //extra one for the one being tested... int t = 0; for ( UByte i = 0; i < 32*4; i++ ) { for ( UByte j = 0; j < 32*4; j++ ) { //TempCode JON 20Sep00 if ( GetRaisePtOffset(i) < GetRaisePtOffset(j) ) if ( GetUnscaledRaiseHt(i) < GetUnscaledRaiseHt(j) ) { SideLookUp[t].lowerAT=i; SideLookUp[t].higherAT=j; int k; for (k = 0; k< t; k++ ) if ( SideLookUp[k] == SideLookUp[t] ) break; if ( k == t ) // got all the way through, keep t++; } } } // t now contains the number of different side types - should be equal to NUM_SIDE_TYPES if ( t != NUM_SIDE_TYPES ) INT3; // make it so //Data for producing roads etc //type,width(cm),colour,plain texture,x0,y0,x1,y1,masked texture,x0,y0,x1,y1 const LandMapNum coastMap(FIL_ROUTE2_NUM,DIR_LANDMAP2); const LandMapNum woodMap(FIL_ROUTE1_NUM,DIR_LANDMAP2); const LandMapNum lakeMap(FIL_ROUTE2_NUM,DIR_LANDMAP2); const LandMapNum riverMap(FIL_ROUTE3_NUM,DIR_LANDMAP2); const LandMapNum railMap(FIL_ROUTE1_NUM,DIR_LANDMAP2); const LandMapNum roadMap(FIL_ROUTE1_NUM,DIR_LANDMAP2); const LandMapNum coastMsk(FIL_ROUTE2_NUM,DIR_LANDMAP2); const LandMapNum woodMsk(FIL_ROUTE1_NUM,DIR_LANDMAP2); const LandMapNum lakeMsk(FIL_ROUTE2_NUM,DIR_LANDMAP2); const LandMapNum riverMsk(FIL_ROUTE3_NUM,DIR_LANDMAP2); const LandMapNum railMsk(FIL_ROUTE1_NUM,DIR_LANDMAP2); const LandMapNum roadMsk(FIL_ROUTE1_NUM,DIR_LANDMAP2); const RouteData coastRoute(_coast,1000,2000,ARTWORKMASK,coastMap,64,0,127,127,coastMsk,64,0,127,127); const RouteData woodRoute(_wood,2000,2000,BLACK,woodMap,0,0,63,127,woodMsk,0,0,63,127); const RouteData lakeRoute(_lake,800,800,ARTWORKMASK,lakeMap,0,0,63,127,lakeMsk,0,0,63,127); const RouteData riverRoute(_river,4000,8000,Colour(196),riverMap,0,0,63,127,riverMsk,0,0,63,127); const RouteData railRoute(_rail,3000,3000,Colour(179),railMap,0,0,63,127,railMsk,0,0,63,127); const RouteData roadRoute(_road,3000,3000,Colour(181),roadMap,64,0,127,127,roadMsk,64,0,127,127); const RouteData trackRoute(_track,1500,1500,Colour(181),roadMap,64,0,127,127,roadMsk,64,0,127,127); const RouteData NULLRoute(0xFFFF,2000,2000,BLACK,roadMap,0,0,63,127,roadMsk,0,0,63,127); static RouteData routeData[]={ /* coastRoute, woodRoute,lakeRoute,*/ riverRoute, railRoute, roadRoute, NULLRoute }; pRouteData=routeData; cloud_base=CloudsAt10000ft; //PD 11Oct96 //DEADCODE PD 02/12/99 currscreen=NULL; cloudset.X = 0; cloudset.Y = 0; cloudset.Z = 0; //DeadCode JON 12Sep00 gridCorners=NULL; gridCone=NULL; horizCone=NULL; //DeadCode JON 5Sep00 softGrid=NULL; //DeadCode JON 12Sep00 lightCone=NULL; //DEADCODE JON 4/26/00 pLastGrid=NULL; tileCacheGrid=NULL; TileResList::theGrid = NULL; //DEADCODE JON 4/27/00 pHTextureGrid=NULL; //DeadCode JON 12Sep00 routeDetail=NULL; //DeadCode JON 3Aug00 groundDetail=NULL; //DeadCode JON 12Sep00 landRnd=NULL; tileCoords=NULL; pDataBlocks=NULL; mistenabled=false; FilSkyStrip = FIL_NULL; pointList=NULL; polyList=NULL; meshCreated=false; topColor=HORIZON; //color for top of horizon dome midColor=HORIZON; //color for top of horizon texture strip botColor=HORIZON; //color for horizon fade topR=topG=topB=0; midR=midG=midB=0; imageVTile=1; theHorizonStrip=FileNum(NULL); //DeadCode JON 3Aug00 highco=NULL; CloudAnimP = new UByte[8]; //RJS 21Apr99 if (CloudAnimP != NULL) //RJS 21Apr99 { CloudAnimP = (AnimSizeField)sizeof(MinAnimData); //RJS 01Dec99 CloudAnimP = (AnimFlagField) (1<<MINANIM); //RJS 01Dec99 MinAnimData* mad = (MinAnimData*) CloudAnimP; mad->itemstate = ALIVE; mad->nolaunchers = 0; } #define P(p1) ((( UWord(p1*(255.f/100.f)) )<<8)+0xFF) // give the value as a percent #define B(p1) (((p1)<<8)+0xFF) // give the value from 0-255 (as a byte) static SLightingRGB dawnLighting= { // RED GREEN BLUE -- enter values as % of full strength // {P(30), P(30), P(30)}, // -- LANDSCAPE LOWEST {P(60), P(60), P(60)},// -- LANDSCAPE HIGHEST {P(50), P(50), P(40)}, // -- LANDSCAPE AMBIENT {P(45), P(45), P(45)}, // -- SHADED OBJECTS LOWEST {B(244), B(243), B(190)},// -- SHADED OBJECTS HIGHEST {B(213), B(245), B(245)}, // -- SHADED OBJECTS AMBIENT {P(80), P(00), P(00)}, // -- NON SHADED OBJECTS ?? LOWEST {P(60), P(60), P(60)},// -- NON SHADED OBJECTS ?? HIGHEST {P(90), P(90), P(90)}, // -- NON SHADED OBJECTS ?? AMBIENT //DeadCode JON 2Nov00 {P(0), P(0), P(0)}, // -- COCKPIT LOWEST //DeadCode JON 2Nov00 {P(0), P(0), P(0)}, // -- COCKPIT HIGHEST //DeadCode JON 2Nov00 {P(0), P(0), P(0)}, // -- COCKPIT AMBIENT //DeadCode JON 2Nov00 {P(0), P(0), P(0)}, // -- EFFECTS LOWEST //DeadCode JON 2Nov00 {P(0), P(0), P(0)}, // -- EFFECTS HIGHEST //DeadCode JON 2Nov00 {P(0), P(0), P(0)}, // -- EFFECTS AMBIENT {B(101), B(111), B(135)}, // -- deepestSkyCol //AM 14Sep00 {B(164), B(187), B(196)}, // -- otherSkyCol - towards sun //AM 14Sep00 {B(198), B(216), B(237)}, // -- cloudCol - towards sun //AM 14Sep00 //AM 14Sep00 {B(245), B(234), B(159)}, // -- horizonCol - towards sun //AM 14Sep00 //AM 14Sep00 {B(228), B(216), B(166)}, // -- fogCol - towards sun //AM 14Sep00 {B(109), B(126), B(165)}, // -- otherSkyCol -away from sun {B(147), B(171), B(195)}, // -- cloudCol -away from sun //AM 14Sep00 {B(148), B(171), B(194)}, // -- horizonCol -away from sun //AM 14Sep00 {B(114), B(147), B(184)}, // -- fogCol -away from sun //AM 14Sep00 {B(244), B(243), B(194)}, // -- The colour to shade the sun... // {B(255), B(224), B(192)} // -- The maximum specular highlight colour //AM 14Sep00 {B(253), B(236), B(189)} // -- The maximum specular highlight colour }; static SLightingRGB dayLighting= { // RED GREEN BLUE -- enter values as % of full strength // {P(50), P(50), P(50)}, // -- LANDSCAPE LOWEST {P(100), P(100), P(100)},// -- LANDSCAPE HIGHEST {P(90), P(90), P(90)}, // -- LANDSCAPE AMBIENT {P(45), P(45), P(45)}, // -- SHADED OBJECTS LOWEST {B(255), B(255), B(255)},// -- SHADED OBJECTS HIGHEST {B(213), B(245), B(245)}, // -- SHADED OBJECTS AMBIENT {P(80), P(00), P(00)}, // -- NON SHADED OBJECTS ?? LOWEST {P(100), P(100), P(100)},// -- NON SHADED OBJECTS ?? HIGHEST {P(90), P(90), P(90)}, // -- NON SHADED OBJECTS ?? AMBIENT //DeadCode JON 2Nov00 {P(0), P(0), P(0)}, // -- COCKPIT LOWEST //DeadCode JON 2Nov00 {P(0), P(0), P(0)}, // -- COCKPIT HIGHEST //DeadCode JON 2Nov00 {P(0), P(0), P(0)}, // -- COCKPIT AMBIENT //DeadCode JON 2Nov00 {P(0), P(0), P(0)}, // -- EFFECTS LOWEST //DeadCode JON 2Nov00 {P(0), P(0), P(0)}, // -- EFFECTS HIGHEST //DeadCode JON 2Nov00 {P(0), P(0), P(0)}, // -- EFFECTS AMBIENT {B(1), B(77), B(215)}, // -- deepestSkyCol //AM 14Sep00 {B(144), B(184), B(232)}, // -- otherSkyCol - towards sun //AM 14Sep00 {B(198), B(216), B(237)}, // -- cloudCol - towards sun //AM 14Sep00 //AM 14Sep00 {B(162), B(195), B(236)}, // -- horizonCol - towards sun //AM 14Sep00 //AM 14Sep00 {B(144), B(184), B(232)}, // -- fogCol - towards sun //AM 14Sep00 {B(112), B(165), B(224)}, // -- otherSkyCol -away from sun {B(198), B(216), B(237)}, // -- cloudCol -away from sun //AM 14Sep00 {B(162), B(195), B(236)}, // -- horizonCol -away from sun //AM 14Sep00 {B(144), B(184), B(232)}, // -- fogCol -away from sun //AM 14Sep00 {B(255), B(255), B(255)}, // -- The colour to shade the sun... // {B(255), B(224), B(192)} // -- The maximum specular highlight colour //AM 14Sep00 {B(255), B(255), B(255)} // -- The maximum specular highlight colour }; static SLightingRGB duskLighting= //actually a sunset now. //AM 17Oct00 { // RED GREEN BLUE -- enter values as % of full strength if P or byte vals if B // {P(50), P(50), P(50)}, // -- LANDSCAPE LOWEST {B(255), B(163), B(43)},// -- LANDSCAPE HIGHEST {P(90), P(90), P(90)}, // -- LANDSCAPE AMBIENT {B(134), B(98), B(0)}, // -- SHADED OBJECTS LOWEST {B(255), B(214), B(115)},// -- SHADED OBJECTS HIGHEST {B(213), B(245), B(245)}, // -- SHADED OBJECTS AMBIENT {P(80), P(00), P(00)}, // -- NON SHADED OBJECTS ?? LOWEST {B(255), B(163), B(43)}, // -- NON SHADED OBJECTS ?? HIGHEST {P(50), P(50), P(50)}, // -- NON SHADED OBJECTS ?? AMBIENT //DeadCode JON 2Nov00 {P(0), P(0), P(0)}, // -- COCKPIT LOWEST //DeadCode JON 2Nov00 {P(0), P(0), P(0)}, // -- COCKPIT HIGHEST //DeadCode JON 2Nov00 {P(0), P(0), P(0)}, // -- COCKPIT AMBIENT //DeadCode JON 2Nov00 {P(0), P(0), P(0)}, // -- EFFECTS LOWEST //DeadCode JON 2Nov00 {P(0), P(0), P(0)}, // -- EFFECTS HIGHEST //DeadCode JON 2Nov00 {P(0), P(0), P(0)}, // -- EFFECTS AMBIENT {B(243), B(130), B(69)}, // -- deepestSkyCol //AM 14Sep00 {B(214), B(179), B(94)}, // -- otherSkyCol - towards sun //AM 14Sep00 {B(228), B(215), B(156)}, // -- cloudCol - towards sun //AM 14Sep00 //AM 14Sep00 {B(255), B(201), B(15)}, // -- horizonCol - towards sun //AM 14Sep00 //AM 14Sep00 {B(255), B(179), B(15)}, // -- fogCol - towards sun //AM 14Sep00 {B(147), B(171), B(195)}, // -- otherSkyCol -away from sun {B(214), B(195), B(219)}, // -- cloudCol -away from sun //AM 14Sep00 {B(173), B(184), B(197)}, // -- horizonCol -away from sun //AM 14Sep00 {B(207), B(189), B(149)}, // -- fogCol -away from sun //AM 14Sep00 {B(255), B(252), B(183)}, // -- The colour to shade the sun... // {B(255), B(224), B(192)} // -- The maximum specular highlight colour //AM 14Sep00 {B(251), B(229), B(139)} // -- The maximum specular highlight colour }; static SLightingRGB niteLighting= { // RED GREEN BLUE -- enter values as % of full strength // {P(5), P(5), P(5)}, // -- LANDSCAPE LOWEST {P(15), P(15), P(15)}, // -- LANDSCAPE HIGHEST {P(10), P(10), P(10)}, // -- LANDSCAPE AMBIENT {P(5), P(5), P(5)}, // -- SHADED OBJECTS LOWEST {P(15), P(15), P(15)}, // -- SHADED OBJECTS HIGHEST {P(10), P(10), P(10)}, // -- SHADED OBJECTS AMBIENT {P(5), P(5), P(5)}, // -- NON SHADED OBJECTS ?? LOWEST {P(15), P(15), P(15)}, // -- NON SHADED OBJECTS ?? HIGHEST {P(10), P(10), P(10)}, // -- NON SHADED OBJECTS ?? AMBIENT //DeadCode JON 2Nov00 {P(0), P(0), P(0)}, // -- COCKPIT LOWEST //DeadCode JON 2Nov00 {P(0), P(0), P(0)}, // -- COCKPIT HIGHEST //DeadCode JON 2Nov00 {P(0), P(0), P(0)}, // -- COCKPIT AMBIENT //DeadCode JON 2Nov00 {P(100), P(100), P(100)}, // -- EFFECTS LOWEST //AM 14Jul00 //DeadCode JON 2Nov00 {P(100), P(100), P(100)}, // -- EFFECTS HIGHEST //AM 14Jul00 //DeadCode JON 2Nov00 {P(100), P(100), P(100)}, // -- EFFECTS AMBIENT //AM 14Jul00 {B(0), B(0), B(0)}, // -- deepestSkyCol {B(5), B(5), B(5)}, // -- otherSkyCol - towards sun {B(10), B(10), B(10)}, // -- cloudCol - towards sun {B(0), B(0), B(0)}, // -- horizonCol - towards sun {B(0), B(0), B(5)}, // -- fogCol - towards sun {B(5), B(5), B(5)}, // -- otherSkyCol -away from sun {B(10), B(10), B(10)}, // -- cloudCol -away from sun {B(0), B(0), B(0)}, // -- horizonCol -away from sun {B(0), B(0), B(5)}, // -- fogCol -away from sun {B(0), B(0), B(0)}, // -- The colour to shade the sun... //DeadCode JON 2Oct00 {B(255), B(224), B(192)} // -- The maximum specular highlight colour {B(87), B(88), B(143)} // -- The maximum specular highlight colour }; //DeadCode JON 2Nov00 static SLightingRGB badWLighting= //DeadCode JON 2Nov00 { //DeadCode JON 2Nov00 // RED GREEN BLUE -- enter values as % of full strength //DeadCode JON 2Nov00 // //DeadCode JON 2Nov00 {P(40), P(40), P(40)}, // -- LANDSCAPE LOWEST //DeadCode JON 2Nov00 {P(100), P(100), P(100)},// -- LANDSCAPE HIGHEST //DeadCode JON 2Nov00 {P(70), P(70), P(70)}, // -- LANDSCAPE AMBIENT //DeadCode JON 2Nov00 {P(40), P(40), P(40)}, // -- SHADED OBJECTS LOWEST //DeadCode JON 2Nov00 {P(100), P(100), P(100)},// -- SHADED OBJECTS HIGHEST //DeadCode JON 2Nov00 {P(70), P(70), P(70)}, // -- SHADED OBJECTS AMBIENT //DeadCode JON 2Nov00 {P(40), P(40), P(40)}, // -- NON SHADED OBJECTS ?? LOWEST //DeadCode JON 2Nov00 {P(100), P(100), P(100)},// -- NON SHADED OBJECTS ?? HIGHEST //DeadCode JON 2Nov00 {P(70), P(70), P(70)}, // -- NON SHADED OBJECTS ?? AMBIENT //DeadCode JON 2Nov00 {P(0), P(0), P(0)}, // -- COCKPIT LOWEST //DeadCode JON 2Nov00 {P(0), P(0), P(0)}, // -- COCKPIT HIGHEST //DeadCode JON 2Nov00 {P(0), P(0), P(0)}, // -- COCKPIT AMBIENT //DeadCode JON 2Nov00 {P(0), P(0), P(0)}, // -- EFFECTS LOWEST //DeadCode JON 2Nov00 {P(0), P(0), P(0)}, // -- EFFECTS HIGHEST //DeadCode JON 2Nov00 {P(0), P(0), P(0)}, // -- EFFECTS AMBIENT }; //DeadCode JON 2Nov00 {B(0x44), B(0x44), B(0xFF)}, // -- deepestSkyCol //DeadCode JON 2Nov00 {B(0xAA), B(0xAA), B(0xFF)}, // -- otherSkyCol - towards sun //DeadCode JON 2Nov00 {B(0xFF), B(0xFF), B(0xFF)}, // -- cloudCol - towards sun //DeadCode JON 2Nov00 {B(0x90), B(0xB8), B(0xE8)}, // -- horizonCol - towards sun //DeadCode JON 2Nov00 {B(0x70), B(0x98), B(0xC8)}, // -- fogCol - towards sun //DeadCode JON 2Nov00 //DeadCode JON 2Nov00 {B(0xAA), B(0xAA), B(0xFF)}, // -- otherSkyCol -away from sun //DeadCode JON 2Nov00 {B(0xFF), B(0xFF), B(0xFF)}, // -- cloudCol -away from sun //DeadCode JON 2Nov00 {B(0x90), B(0xB8), B(0xE8)}, // -- horizonCol -away from sun //DeadCode JON 2Nov00 {B(0x70), B(0x98), B(0xC8)}, // -- fogCol -away from sun //DeadCode JON 2Nov00 //DeadCode JON 2Nov00 {B(240), B(240), B(240)}, // -- The colour to shade the sun... //DeadCode JON 2Nov00 //DeadCode JON 2Nov00 {B(255), B(224), B(192)} // -- The maximum specular highlight colour //DeadCode JON 2Nov00 //DeadCode JON 2Nov00 }; //DeadCode JON 2Nov00 static SLightingRGB mapLighting= // do i need this????? //DeadCode JON 2Nov00 { //DeadCode JON 2Nov00 // RED GREEN BLUE -- enter values as % of full strength //DeadCode JON 2Nov00 // //DeadCode JON 2Nov00 {P(100), P(100), P(100)}, // -- LANDSCAPE LOWEST //DeadCode JON 2Nov00 {P(100), P(100), P(100)}, // -- LANDSCAPE HIGHEST //DeadCode JON 2Nov00 {P(100), P(100), P(100)}, // -- LANDSCAPE AMBIENT //DeadCode JON 2Nov00 {P(100), P(100), P(100)}, // -- SHADED OBJECTS LOWEST //DeadCode JON 2Nov00 {P(100), P(100), P(100)}, // -- SHADED OBJECTS HIGHEST //DeadCode JON 2Nov00 {P(100), P(100), P(100)}, // -- SHADED OBJECTS AMBIENT //DeadCode JON 2Nov00 {P(100), P(100), P(100)}, // -- NON SHADED OBJECTS ?? LOWEST //DeadCode JON 2Nov00 {P(100), P(100), P(100)}, // -- NON SHADED OBJECTS ?? HIGHEST //DeadCode JON 2Nov00 {P(100), P(100), P(100)}, // -- NON SHADED OBJECTS ?? AMBIENT //DeadCode JON 2Nov00 {P(100), P(100), P(100)}, // -- COCKPIT LOWEST //DeadCode JON 2Nov00 {P(100), P(100), P(100)}, // -- COCKPIT HIGHEST //DeadCode JON 2Nov00 {P(100), P(100), P(100)}, // -- COCKPIT AMBIENT //DeadCode JON 2Nov00 {P(100), P(100), P(100)}, // -- EFFECTS LOWEST //DeadCode JON 2Nov00 {P(100), P(100), P(100)}, // -- EFFECTS HIGHEST //DeadCode JON 2Nov00 {P(100), P(100), P(100)}, // -- EFFECTS AMBIENT //DeadCode JON 2Nov00 {B(0x44), B(0x44), B(0xFF)}, // -- deepestSkyCol //DeadCode JON 2Nov00 {B(0xAA), B(0xAA), B(0xFF)}, // -- otherSkyCol - towards sun //DeadCode JON 2Nov00 {B(0xFF), B(0xFF), B(0xFF)}, // -- cloudCol - towards sun //DeadCode JON 2Nov00 {B(0x90), B(0xB8), B(0xE8)}, // -- horizonCol - towards sun //DeadCode JON 2Nov00 {B(0x70), B(0x98), B(0xC8)}, // -- fogCol - towards sun //DeadCode JON 2Nov00 //DeadCode JON 2Nov00 {B(0xAA), B(0xAA), B(0xFF)}, // -- otherSkyCol -away from sun //DeadCode JON 2Nov00 {B(0xFF), B(0xFF), B(0xFF)}, // -- cloudCol -away from sun //DeadCode JON 2Nov00 {B(0x90), B(0xB8), B(0xE8)}, // -- horizonCol -away from sun //DeadCode JON 2Nov00 {B(0x70), B(0x98), B(0xC8)}, // -- fogCol -away from sun //DeadCode JON 2Nov00 //DeadCode JON 2Nov00 {B(240), B(240), B(240)}, // -- The colour to shade the sun... //DeadCode JON 2Nov00 //DeadCode JON 2Nov00 {B(255), B(224), B(192)} // -- The maximum specular highlight colour //DeadCode JON 2Nov00 //DeadCode JON 2Nov00 }; //DeadCode CSB 19Oct100 static SLightingRGB dawnLighting= //DeadCode CSB 19Oct100 { //DeadCode CSB 19Oct100 // RED GREEN BLUE -- enter values as % of full strength //DeadCode CSB 19Oct100 // //DeadCode CSB 19Oct100 {P(20), P(20), P(20)}, // -- LANDSCAPE LOWEST //DeadCode CSB 19Oct100 {P(40), P(40), P(40)},// -- LANDSCAPE HIGHEST //DeadCode CSB 19Oct100 {P(50), P(50), P(50)}, // -- LANDSCAPE AMBIENT //DeadCode CSB 19Oct100 {P(45), P(45), P(45)}, // -- SHADED OBJECTS LOWEST //DeadCode CSB 19Oct100 {B(255), B(255), B(255)},// -- SHADED OBJECTS HIGHEST //DeadCode CSB 19Oct100 {B(247), B(246), B(177)}, // -- SHADED OBJECTS AMBIENT //DeadCode CSB 19Oct100 {P(20), P(20), P(20)}, // -- NON SHADED OBJECTS ?? LOWEST //DeadCode CSB 19Oct100 {P(40), P(40), P(40)},// -- NON SHADED OBJECTS ?? HIGHEST //DeadCode CSB 19Oct100 {P(50), P(50), P(50)}, // -- NON SHADED OBJECTS ?? AMBIENT //DeadCode CSB 19Oct100 {P(0), P(0), P(0)}, // -- COCKPIT LOWEST //DeadCode CSB 19Oct100 {P(0), P(0), P(0)}, // -- COCKPIT HIGHEST //DeadCode CSB 19Oct100 {P(0), P(0), P(0)}, // -- COCKPIT AMBIENT //DeadCode CSB 19Oct100 {P(0), P(0), P(0)}, // -- EFFECTS LOWEST //DeadCode CSB 19Oct100 {P(0), P(0), P(0)}, // -- EFFECTS HIGHEST //DeadCode CSB 19Oct100 {P(0), P(0), P(0)}, // -- EFFECTS AMBIENT //DeadCode CSB 19Oct100 {B(7), B(76), B(141)}, // -- deepestSkyCol //AM 14Sep00 //AM 15Sep00 //DeadCode CSB 19Oct100 {B(174), B(192), B(192)}, // -- otherSkyCol - towards sun //AM 14Sep00 //DeadCode CSB 19Oct100 {B(244), B(228), B(152)}, // -- cloudCol - towards sun //AM 14Sep00 //AM 14Sep00 //DeadCode CSB 19Oct100 {B(251), B(242), B(201)}, // -- horizonCol - towards sun //AM 14Sep00 //AM 14Sep00 //DeadCode CSB 19Oct100 {B(245), B(246), B(128)}, // -- fogCol - towards sun //AM 14Sep00 //DeadCode CSB 19Oct100 //DeadCode CSB 19Oct100 {B(122), B(127), B(150)}, // -- otherSkyCol -away from sun //DeadCode CSB 19Oct100 {B(182), B(168), B(102)}, // -- cloudCol -away from sun //AM 14Sep00 //DeadCode CSB 19Oct100 {B(163), B(153), B(107)}, // -- horizonCol -away from sun //AM 14Sep00 //DeadCode CSB 19Oct100 {B(121), B(121), B(81)}, // -- fogCol -away from sun //AM 14Sep00 //DeadCode CSB 19Oct100 //DeadCode CSB 19Oct100 {B(255), B(122), B(57)}, // -- The colour to shade the sun... //DeadCode CSB 19Oct100 //DeadCode CSB 19Oct100 // {B(255), B(224), B(192)} // -- The maximum specular highlight colour //AM 14Sep00 //DeadCode CSB 19Oct100 {B(251), B(242), B(201)} // -- The maximum specular highlight colour //DeadCode CSB 19Oct100 //DeadCode CSB 19Oct100 //DeadCode CSB 19Oct100 //DeadCode CSB 19Oct100 //DeadCode CSB 19Oct100 //DeadCode JON 11Sep00 {B(0), B(0), B(155)}, // -- deepestSkyCol //DeadCode CSB 19Oct100 //DeadCode JON 11Sep00 {B(84), B(100), B(144)}, // -- otherSkyCol //AM 14Jul00 //DeadCode CSB 19Oct100 //DeadCode JON 11Sep00 {B(86), B(129), B(130)}, // -- cloudCol //AM 14Jul00 //DeadCode CSB 19Oct100 //DeadCode JON 11Sep00 {B(245), B(222), B(141)}, // -- horizonCol //AM 14Jul00 //DeadCode CSB 19Oct100 //DeadCode JON 11Sep00 {B(254), B(191), B(40)} // -- fogCol //AM 14Jul00 //DeadCode CSB 19Oct100 //DeadCode CSB 19Oct100 }; //DeadCode CSB 19Oct100 //DeadCode CSB 19Oct100 //TEMPCODE JON 4/19/00 static SLightingRGB dayLighting= //DeadCode CSB 19Oct100 //TEMPCODE JON 4/19/00 { //DeadCode CSB 19Oct100 //TEMPCODE JON 4/19/00 // RED GREEN BLUE -- enter values as % of full strength //DeadCode CSB 19Oct100 //TEMPCODE JON 4/19/00 // //DeadCode CSB 19Oct100 //TEMPCODE JON 4/19/00 {P(80), P(80), P(80)}, // -- LANDSCAPE LOWEST //DeadCode CSB 19Oct100 //TEMPCODE JON 4/19/00 {P(100), P(100), P(100)},// -- LANDSCAPE HIGHEST //DeadCode CSB 19Oct100 //TEMPCODE JON 4/19/00 {P(90), P(90), P(90)}, // -- LANDSCAPE AMBIENT //DeadCode CSB 19Oct100 //TEMPCODE JON 4/19/00 {P(80), P(80), P(80)}, // -- SHADED OBJECTS LOWEST //DeadCode CSB 19Oct100 //TEMPCODE JON 4/19/00 {P(100), P(100), P(100)},// -- SHADED OBJECTS HIGHEST //DeadCode CSB 19Oct100 //TEMPCODE JON 4/19/00 {P(90), P(90), P(90)}, // -- SHADED OBJECTS AMBIENT //DeadCode CSB 19Oct100 //TEMPCODE JON 4/19/00 {P(80), P(80), P(80)}, // -- NON SHADED OBJECTS ?? LOWEST //DeadCode CSB 19Oct100 //TEMPCODE JON 4/19/00 {P(100), P(100), P(100)},// -- NON SHADED OBJECTS ?? HIGHEST //DeadCode CSB 19Oct100 //TEMPCODE JON 4/19/00 {P(90), P(90), P(90)}, // -- NON SHADED OBJECTS ?? AMBIENT //DeadCode CSB 19Oct100 //TEMPCODE JON 4/19/00 {P(0), P(0), P(0)}, // -- COCKPIT LOWEST //DeadCode CSB 19Oct100 //TEMPCODE JON 4/19/00 {P(0), P(0), P(0)}, // -- COCKPIT HIGHEST //DeadCode CSB 19Oct100 //TEMPCODE JON 4/19/00 {P(0), P(0), P(0)}, // -- COCKPIT AMBIENT //DeadCode CSB 19Oct100 //TEMPCODE JON 4/19/00 {P(0), P(0), P(0)}, // -- EFFECTS LOWEST //DeadCode CSB 19Oct100 //TEMPCODE JON 4/19/00 {P(0), P(0), P(0)}, // -- EFFECTS HIGHEST //DeadCode CSB 19Oct100 //TEMPCODE JON 4/19/00 {P(0), P(0), P(0)} // -- EFFECTS AMBIENT //DeadCode CSB 19Oct100 //TEMPCODE JON 4/19/00 }; //DeadCode CSB 19Oct100 static SLightingRGB dayLighting= //DeadCode CSB 19Oct100 { //DeadCode CSB 19Oct100 // RED GREEN BLUE -- enter values as % of full strength //DeadCode CSB 19Oct100 // //DeadCode CSB 19Oct100 {P(50), P(50), P(50)}, // -- LANDSCAPE LOWEST //DeadCode CSB 19Oct100 {P(100), P(100), P(100)},// -- LANDSCAPE HIGHEST //DeadCode CSB 19Oct100 {P(90), P(90), P(90)}, // -- LANDSCAPE AMBIENT //DeadCode CSB 19Oct100 {P(45), P(45), P(45)}, // -- SHADED OBJECTS LOWEST //DeadCode CSB 19Oct100 {B(255), B(255), B(255)},// -- SHADED OBJECTS HIGHEST //DeadCode CSB 19Oct100 {B(213), B(245), B(245)}, // -- SHADED OBJECTS AMBIENT //DeadCode CSB 19Oct100 {P(80), P(00), P(00)}, // -- NON SHADED OBJECTS ?? LOWEST //DeadCode CSB 19Oct100 {P(100), P(100), P(100)},// -- NON SHADED OBJECTS ?? HIGHEST //DeadCode CSB 19Oct100 {P(90), P(90), P(90)}, // -- NON SHADED OBJECTS ?? AMBIENT //DeadCode CSB 19Oct100 {P(0), P(0), P(0)}, // -- COCKPIT LOWEST //DeadCode CSB 19Oct100 {P(0), P(0), P(0)}, // -- COCKPIT HIGHEST //DeadCode CSB 19Oct100 {P(0), P(0), P(0)}, // -- COCKPIT AMBIENT //DeadCode CSB 19Oct100 {P(0), P(0), P(0)}, // -- EFFECTS LOWEST //DeadCode CSB 19Oct100 {P(0), P(0), P(0)}, // -- EFFECTS HIGHEST //DeadCode CSB 19Oct100 {P(0), P(0), P(0)}, // -- EFFECTS AMBIENT //DeadCode CSB 19Oct100 {B(1), B(77), B(215)}, // -- deepestSkyCol //AM 14Sep00 //DeadCode CSB 19Oct100 {B(144), B(184), B(232)}, // -- otherSkyCol - towards sun //AM 14Sep00 //DeadCode CSB 19Oct100 {B(198), B(216), B(237)}, // -- cloudCol - towards sun //AM 14Sep00 //AM 14Sep00 //DeadCode CSB 19Oct100 {B(162), B(195), B(236)}, // -- horizonCol - towards sun //AM 14Sep00 //AM 14Sep00 //DeadCode CSB 19Oct100 {B(144), B(184), B(232)}, // -- fogCol - towards sun //AM 14Sep00 //DeadCode CSB 19Oct100 //DeadCode CSB 19Oct100 {B(112), B(165), B(224)}, // -- otherSkyCol -away from sun //DeadCode CSB 19Oct100 {B(198), B(216), B(237)}, // -- cloudCol -away from sun //AM 14Sep00 //DeadCode CSB 19Oct100 {B(162), B(195), B(236)}, // -- horizonCol -away from sun //AM 14Sep00 //DeadCode CSB 19Oct100 {B(144), B(184), B(232)}, // -- fogCol -away from sun //AM 14Sep00 //DeadCode CSB 19Oct100 //DeadCode CSB 19Oct100 {B(255), B(255), B(255)}, // -- The colour to shade the sun... //DeadCode CSB 19Oct100 //DeadCode CSB 19Oct100 // {B(255), B(224), B(192)} // -- The maximum specular highlight colour //AM 14Sep00 //DeadCode CSB 19Oct100 {B(255), B(255), B(255)} // -- The maximum specular highlight colour //DeadCode CSB 19Oct100 }; //DeadCode CSB 19Oct100 //DeadCode CSB 19Oct100 static SLightingRGB duskLighting= //DeadCode CSB 19Oct100 { //DeadCode CSB 19Oct100 // RED GREEN BLUE -- enter values as % of full strength if P or byte vals if B //DeadCode CSB 19Oct100 // //DeadCode CSB 19Oct100 //DeadCode CSB 19Oct100 {P(20), P(20), P(20)}, // -- LANDSCAPE LOWEST //AM 15Sep00 //DeadCode CSB 19Oct100 {P(45), P(50), P(30)},// -- LANDSCAPE HIGHEST //AM 15Sep00 //DeadCode CSB 19Oct100 {P(30), P(30), P(30)}, // -- LANDSCAPE AMBIENT //AM 15Sep00 //DeadCode CSB 19Oct100 {P(45), P(45), P(45)}, // -- SHADED OBJECTS LOWEST //AM 15Sep00 //DeadCode CSB 19Oct100 {B(255), B(255), B(255)},// -- SHADED OBJECTS HIGHEST //AM 15Sep00 //DeadCode CSB 19Oct100 {B(213), B(245), B(245)}, // -- SHADED OBJECTS AMBIENT //AM 15Sep00 //DeadCode CSB 19Oct100 {P(80), P(00), P(00)}, // -- NON SHADED OBJECTS ?? LOWEST //AM 15Sep00 //DeadCode CSB 19Oct100 {P(40), P(40), P(50)},// -- NON SHADED OBJECTS ?? HIGHEST //AM 15Sep00 //DeadCode CSB 19Oct100 {P(20), P(20), P(20)}, // -- NON SHADED OBJECTS ?? AMBIENT //AM 15Sep00 //DeadCode CSB 19Oct100 {P(0), P(0), P(0)}, // -- COCKPIT LOWEST //DeadCode CSB 19Oct100 {P(0), P(0), P(0)}, // -- COCKPIT HIGHEST //DeadCode CSB 19Oct100 {P(0), P(0), P(0)}, // -- COCKPIT AMBIENT //DeadCode CSB 19Oct100 {P(0), P(0), P(0)}, // -- EFFECTS LOWEST //DeadCode CSB 19Oct100 {P(0), P(0), P(0)}, // -- EFFECTS HIGHEST //DeadCode CSB 19Oct100 {P(0), P(0), P(0)}, // -- EFFECTS AMBIENT //DeadCode CSB 19Oct100 {B(85), B(114), B(161)}, // -- deepestSkyCol //AM 14Sep00 //AM 15Sep00 //DeadCode CSB 19Oct100 {B(139), B(143), B(159)}, // -- otherSkyCol - towards sun //AM 14Sep00 //AM 15Sep00 //DeadCode CSB 19Oct100 {B(140), B(140), B(140)}, // -- cloudCol - towards sun //AM 14Sep00 //AM 14Sep00 //DeadCode CSB 19Oct100 {B(164), B(163), B(116)}, // -- horizonCol - towards sun //AM 14Sep00 //AM 14Sep00 //DeadCode CSB 19Oct100 {B(151), B(167), B(131)}, // -- fogCol - towards sun //AM 14Sep00 //DeadCode CSB 19Oct100 //DeadCode CSB 19Oct100 {B(117), B(122), B(141)}, // -- otherSkyCol -away from sun //DeadCode CSB 19Oct100 {B(120), B(120), B(120)}, // -- cloudCol -away from sun //AM 14Sep00 //DeadCode CSB 19Oct100 {B(120), B(120), B(80)}, // -- horizonCol -away from sun //AM 14Sep00 //DeadCode CSB 19Oct100 {B(133), B(148), B(112)}, // -- fogCol -away from sun //AM 14Sep00 //DeadCode CSB 19Oct100 //DeadCode CSB 19Oct100 {B(255), B(122), B(57)}, // -- The colour to shade the sun... //DeadCode CSB 19Oct100 //DeadCode CSB 19Oct100 // {B(255), B(224), B(192)} // -- The maximum specular highlight colour //AM 14Sep00 //DeadCode CSB 19Oct100 {B(175), B(177), B(111)} // -- The maximum specular highlight colour //DeadCode CSB 19Oct100 //DeadCode CSB 19Oct100 }; //DeadCode CSB 19Oct100 //DeadCode CSB 19Oct100 static SLightingRGB niteLighting= //DeadCode CSB 19Oct100 { //DeadCode CSB 19Oct100 // RED GREEN BLUE -- enter values as % of full strength //DeadCode CSB 19Oct100 // //DeadCode CSB 19Oct100 {P(5), P(5), P(5)}, // -- LANDSCAPE LOWEST //DeadCode CSB 19Oct100 {P(15), P(15), P(15)}, // -- LANDSCAPE HIGHEST //DeadCode CSB 19Oct100 {P(10), P(10), P(10)}, // -- LANDSCAPE AMBIENT //DeadCode CSB 19Oct100 {P(5), P(5), P(5)}, // -- SHADED OBJECTS LOWEST //DeadCode CSB 19Oct100 {P(15), P(15), P(15)}, // -- SHADED OBJECTS HIGHEST //DeadCode CSB 19Oct100 {P(10), P(10), P(10)}, // -- SHADED OBJECTS AMBIENT //DeadCode CSB 19Oct100 {P(5), P(5), P(5)}, // -- NON SHADED OBJECTS ?? LOWEST //DeadCode CSB 19Oct100 {P(15), P(15), P(15)}, // -- NON SHADED OBJECTS ?? HIGHEST //DeadCode CSB 19Oct100 {P(10), P(10), P(10)}, // -- NON SHADED OBJECTS ?? AMBIENT //DeadCode CSB 19Oct100 {P(0), P(0), P(0)}, // -- COCKPIT LOWEST //DeadCode CSB 19Oct100 {P(0), P(0), P(0)}, // -- COCKPIT HIGHEST //DeadCode CSB 19Oct100 {P(0), P(0), P(0)}, // -- COCKPIT AMBIENT //DeadCode CSB 19Oct100 {P(100), P(100), P(100)}, // -- EFFECTS LOWEST //AM 14Jul00 //DeadCode CSB 19Oct100 {P(100), P(100), P(100)}, // -- EFFECTS HIGHEST //AM 14Jul00 //DeadCode CSB 19Oct100 {P(100), P(100), P(100)}, // -- EFFECTS AMBIENT //AM 14Jul00 //DeadCode CSB 19Oct100 {B(0), B(0), B(0)}, // -- deepestSkyCol //DeadCode CSB 19Oct100 {B(5), B(5), B(5)}, // -- otherSkyCol - towards sun //DeadCode CSB 19Oct100 {B(10), B(10), B(10)}, // -- cloudCol - towards sun //DeadCode CSB 19Oct100 {B(0), B(0), B(0)}, // -- horizonCol - towards sun //DeadCode CSB 19Oct100 {B(0), B(0), B(5)}, // -- fogCol - towards sun //DeadCode CSB 19Oct100 //DeadCode CSB 19Oct100 {B(5), B(5), B(5)}, // -- otherSkyCol -away from sun //DeadCode CSB 19Oct100 {B(10), B(10), B(10)}, // -- cloudCol -away from sun //DeadCode CSB 19Oct100 {B(0), B(0), B(0)}, // -- horizonCol -away from sun //DeadCode CSB 19Oct100 {B(0), B(0), B(5)}, // -- fogCol -away from sun //DeadCode CSB 19Oct100 //DeadCode CSB 19Oct100 {B(0), B(0), B(0)}, // -- The colour to shade the sun... //DeadCode CSB 19Oct100 //DeadCode CSB 19Oct100 //DeadCode JON 2Oct00 {B(255), B(224), B(192)} // -- The maximum specular highlight colour //DeadCode CSB 19Oct100 {B(87), B(88), B(143)} // -- The maximum specular highlight colour //DeadCode CSB 19Oct100 //DeadCode CSB 19Oct100 }; //DeadCode CSB 19Oct100 //DeadCode CSB 19Oct100 static SLightingRGB badWLighting= //DeadCode CSB 19Oct100 { //DeadCode CSB 19Oct100 // RED GREEN BLUE -- enter values as % of full strength //DeadCode CSB 19Oct100 // //DeadCode CSB 19Oct100 {P(40), P(40), P(40)}, // -- LANDSCAPE LOWEST //DeadCode CSB 19Oct100 {P(100), P(100), P(100)},// -- LANDSCAPE HIGHEST //DeadCode CSB 19Oct100 {P(70), P(70), P(70)}, // -- LANDSCAPE AMBIENT //DeadCode CSB 19Oct100 {P(40), P(40), P(40)}, // -- SHADED OBJECTS LOWEST //DeadCode CSB 19Oct100 {P(100), P(100), P(100)},// -- SHADED OBJECTS HIGHEST //DeadCode CSB 19Oct100 {P(70), P(70), P(70)}, // -- SHADED OBJECTS AMBIENT //DeadCode CSB 19Oct100 {P(40), P(40), P(40)}, // -- NON SHADED OBJECTS ?? LOWEST //DeadCode CSB 19Oct100 {P(100), P(100), P(100)},// -- NON SHADED OBJECTS ?? HIGHEST //DeadCode CSB 19Oct100 {P(70), P(70), P(70)}, // -- NON SHADED OBJECTS ?? AMBIENT //DeadCode CSB 19Oct100 {P(0), P(0), P(0)}, // -- COCKPIT LOWEST //DeadCode CSB 19Oct100 {P(0), P(0), P(0)}, // -- COCKPIT HIGHEST //DeadCode CSB 19Oct100 {P(0), P(0), P(0)}, // -- COCKPIT AMBIENT //DeadCode CSB 19Oct100 {P(0), P(0), P(0)}, // -- EFFECTS LOWEST //DeadCode CSB 19Oct100 {P(0), P(0), P(0)}, // -- EFFECTS HIGHEST //DeadCode CSB 19Oct100 {P(0), P(0), P(0)}, // -- EFFECTS AMBIENT }; //DeadCode CSB 19Oct100 {B(0x44), B(0x44), B(0xFF)}, // -- deepestSkyCol //DeadCode CSB 19Oct100 {B(0xAA), B(0xAA), B(0xFF)}, // -- otherSkyCol - towards sun //DeadCode CSB 19Oct100 {B(0xFF), B(0xFF), B(0xFF)}, // -- cloudCol - towards sun //DeadCode CSB 19Oct100 {B(0x90), B(0xB8), B(0xE8)}, // -- horizonCol - towards sun //DeadCode CSB 19Oct100 {B(0x70), B(0x98), B(0xC8)}, // -- fogCol - towards sun //DeadCode CSB 19Oct100 //DeadCode CSB 19Oct100 {B(0xAA), B(0xAA), B(0xFF)}, // -- otherSkyCol -away from sun //DeadCode CSB 19Oct100 {B(0xFF), B(0xFF), B(0xFF)}, // -- cloudCol -away from sun //DeadCode CSB 19Oct100 {B(0x90), B(0xB8), B(0xE8)}, // -- horizonCol -away from sun //DeadCode CSB 19Oct100 {B(0x70), B(0x98), B(0xC8)}, // -- fogCol -away from sun //DeadCode CSB 19Oct100 //DeadCode CSB 19Oct100 {B(240), B(240), B(240)}, // -- The colour to shade the sun... //DeadCode CSB 19Oct100 //DeadCode CSB 19Oct100 {B(255), B(224), B(192)} // -- The maximum specular highlight colour //DeadCode CSB 19Oct100 //DeadCode CSB 19Oct100 }; //DeadCode CSB 19Oct100 //DeadCode CSB 19Oct100 //DeadCode CSB 19Oct100 static SLightingRGB mapLighting= // do i need this????? //DeadCode CSB 19Oct100 { //DeadCode CSB 19Oct100 // RED GREEN BLUE -- enter values as % of full strength //DeadCode CSB 19Oct100 // //DeadCode CSB 19Oct100 {P(100), P(100), P(100)}, // -- LANDSCAPE LOWEST //DeadCode CSB 19Oct100 {P(100), P(100), P(100)}, // -- LANDSCAPE HIGHEST //DeadCode CSB 19Oct100 {P(100), P(100), P(100)}, // -- LANDSCAPE AMBIENT //DeadCode CSB 19Oct100 {P(100), P(100), P(100)}, // -- SHADED OBJECTS LOWEST //DeadCode CSB 19Oct100 {P(100), P(100), P(100)}, // -- SHADED OBJECTS HIGHEST //DeadCode CSB 19Oct100 {P(100), P(100), P(100)}, // -- SHADED OBJECTS AMBIENT //DeadCode CSB 19Oct100 {P(100), P(100), P(100)}, // -- NON SHADED OBJECTS ?? LOWEST //DeadCode CSB 19Oct100 {P(100), P(100), P(100)}, // -- NON SHADED OBJECTS ?? HIGHEST //DeadCode CSB 19Oct100 {P(100), P(100), P(100)}, // -- NON SHADED OBJECTS ?? AMBIENT //DeadCode CSB 19Oct100 {P(100), P(100), P(100)}, // -- COCKPIT LOWEST //DeadCode CSB 19Oct100 {P(100), P(100), P(100)}, // -- COCKPIT HIGHEST //DeadCode CSB 19Oct100 {P(100), P(100), P(100)}, // -- COCKPIT AMBIENT //DeadCode CSB 19Oct100 {P(100), P(100), P(100)}, // -- EFFECTS LOWEST //DeadCode CSB 19Oct100 {P(100), P(100), P(100)}, // -- EFFECTS HIGHEST //DeadCode CSB 19Oct100 {P(100), P(100), P(100)}, // -- EFFECTS AMBIENT //DeadCode CSB 19Oct100 {B(0x44), B(0x44), B(0xFF)}, // -- deepestSkyCol //DeadCode CSB 19Oct100 {B(0xAA), B(0xAA), B(0xFF)}, // -- otherSkyCol - towards sun //DeadCode CSB 19Oct100 {B(0xFF), B(0xFF), B(0xFF)}, // -- cloudCol - towards sun //DeadCode CSB 19Oct100 {B(0x90), B(0xB8), B(0xE8)}, // -- horizonCol - towards sun //DeadCode CSB 19Oct100 {B(0x70), B(0x98), B(0xC8)}, // -- fogCol - towards sun //DeadCode CSB 19Oct100 //DeadCode CSB 19Oct100 {B(0xAA), B(0xAA), B(0xFF)}, // -- otherSkyCol -away from sun //DeadCode CSB 19Oct100 {B(0xFF), B(0xFF), B(0xFF)}, // -- cloudCol -away from sun //DeadCode CSB 19Oct100 {B(0x90), B(0xB8), B(0xE8)}, // -- horizonCol -away from sun //DeadCode CSB 19Oct100 {B(0x70), B(0x98), B(0xC8)}, // -- fogCol -away from sun //DeadCode CSB 19Oct100 //DeadCode CSB 19Oct100 {B(240), B(240), B(240)}, // -- The colour to shade the sun... //DeadCode CSB 19Oct100 //DeadCode CSB 19Oct100 {B(255), B(224), B(192)} // -- The maximum specular highlight colour //DeadCode CSB 19Oct100 //DeadCode CSB 19Oct100 }; //DeadCode CSB 19Oct100 //DEADCODE JON 3/30/00 //DeadCode CSB 19Oct100 //DEADCODE JON 3/30/00 static SLightingRGB dawnLighting= //DeadCode CSB 19Oct100 //DEADCODE JON 3/30/00 { //DeadCode CSB 19Oct100 //DEADCODE JON 3/30/00 {B(105), B(84), B(46)}, //DeadCode CSB 19Oct100 //DEADCODE JON 3/30/00 {B(158), B(158), B(109)}, //DeadCode CSB 19Oct100 //DEADCODE JON 3/30/00 {B(174), B(174), B(94)}, //DeadCode CSB 19Oct100 //DEADCODE JON 3/30/00 {B(162), B(165), B(129)}, //DeadCode CSB 19Oct100 //DEADCODE JON 3/30/00 {B(252), B(207), B(190)}, //DeadCode CSB 19Oct100 //DEADCODE JON 3/30/00 {B(198), B(199), B(223)}, //DeadCode CSB 19Oct100 //DEADCODE JON 3/30/00 {B(77), B(59), B(50)}, //DeadCode CSB 19Oct100 //DEADCODE JON 3/30/00 {B(206), B(179), B(132)}, //DeadCode CSB 19Oct100 //DEADCODE JON 3/30/00 {B(105), B(84), B(46)}, //DeadCode CSB 19Oct100 //DEADCODE JON 3/30/00 {B(128),B(128),B(128)}, //DeadCode CSB 19Oct100 //DEADCODE JON 3/30/00 {B(255), B(255), B(255)} //DeadCode CSB 19Oct100 //DEADCODE JON 3/30/00 }; //DeadCode CSB 19Oct100 //DEADCODE JON 3/30/00 //DeadCode CSB 19Oct100 //DEADCODE JON 3/30/00 static SLightingRGB dayLighting= //DeadCode CSB 19Oct100 //DEADCODE JON 3/30/00 { //DeadCode CSB 19Oct100 //DEADCODE JON 3/30/00 {B(142), B(166), B(200)}, //DeadCode CSB 19Oct100 //DEADCODE JON 3/30/00 {B(208), B(228), B(240)}, //DeadCode CSB 19Oct100 //DEADCODE JON 3/30/00 {B(216), B(232), B(248)}, //DeadCode CSB 19Oct100 //DEADCODE JON 3/30/00 {B(255), B(255), B(255)}, //DeadCode CSB 19Oct100 //DEADCODE JON 3/30/00 {B(159), B(181), B(222)}, //DeadCode CSB 19Oct100 //DEADCODE JON 3/30/00 {B(102), B(138), B(201)}, //DeadCode CSB 19Oct100 //DEADCODE JON 3/30/00 {B(255), B(255), B(255)}, //DeadCode CSB 19Oct100 //DEADCODE JON 3/30/00 {B(248), B(254), B(203)}, //DeadCode CSB 19Oct100 //DEADCODE JON 3/30/00 {B(255), B(255), B(255)}, //DeadCode CSB 19Oct100 //DEADCODE JON 3/30/00 {B(255), B(255), B(255)}, //DeadCode CSB 19Oct100 //DEADCODE JON 3/30/00 {B(255), B(255), B(255)} //DeadCode CSB 19Oct100 //DEADCODE JON 3/30/00 }; //DeadCode CSB 19Oct100 //DEADCODE JON 3/30/00 //DeadCode CSB 19Oct100 //DEADCODE JON 3/30/00 static SLightingRGB duskLighting= //DeadCode CSB 19Oct100 //DEADCODE JON 3/30/00 { //DeadCode CSB 19Oct100 //DEADCODE JON 3/30/00 {B(72), B(77), B(100)}, //DeadCode CSB 19Oct100 //DEADCODE JON 3/30/00 {B(199), B(158), B(84)}, //DeadCode CSB 19Oct100 //DEADCODE JON 3/30/00 {B(233), B(105), B(50)}, //DeadCode CSB 19Oct100 //DEADCODE JON 3/30/00 {B(214), B(113), B(69)}, //DeadCode CSB 19Oct100 //DEADCODE JON 3/30/00 {B(149), B(162), B(166)}, //DeadCode CSB 19Oct100 //DEADCODE JON 3/30/00 {B(24), B(38), B(63)}, //DeadCode CSB 19Oct100 //DEADCODE JON 3/30/00 {B(41), B(55), B(68)}, //DeadCode CSB 19Oct100 //DEADCODE JON 3/30/00 {B(236), B(122), B(47)}, //DeadCode CSB 19Oct100 //DEADCODE JON 3/30/00 {B(61), B(84), B(112)}, //DeadCode CSB 19Oct100 //DEADCODE JON 3/30/00 {B(128),B(128),B(128)}, //DeadCode CSB 19Oct100 //DEADCODE JON 3/30/00 {B(255), B(255), B(255)} //DeadCode CSB 19Oct100 //DEADCODE JON 3/30/00 }; //DeadCode CSB 19Oct100 //DEADCODE JON 3/30/00 //DeadCode CSB 19Oct100 //DEADCODE JON 3/30/00 static SLightingRGB niteLighting= //DeadCode CSB 19Oct100 //DEADCODE JON 3/30/00 { //DeadCode CSB 19Oct100 //DEADCODE JON 3/30/00 {B(60), B(82), B(89)}, //DeadCode CSB 19Oct100 //DEADCODE JON 3/30/00 {B(94), B(129), B(140)}, //DeadCode CSB 19Oct100 //DEADCODE JON 3/30/00 {B(61), B(56), B(116)}, //DeadCode CSB 19Oct100 //DEADCODE JON 3/30/00 {B(45), B(43), B(64)}, //DeadCode CSB 19Oct100 //DEADCODE JON 3/30/00 {B(82), B(79), B(123)}, //DeadCode CSB 19Oct100 //DEADCODE JON 3/30/00 {B(7), B(9), B(30)}, //DeadCode CSB 19Oct100 //DEADCODE JON 3/30/00 {B(17), B(23), B(28)}, //DeadCode CSB 19Oct100 //DEADCODE JON 3/30/00 {B(60), B(60), B(70)}, //DeadCode CSB 19Oct100 //DEADCODE JON 3/30/00 {B(34), B(51), B(71)}, //DeadCode CSB 19Oct100 //DEADCODE JON 3/30/00 {B(128),B(128),B(128)}, //DeadCode CSB 19Oct100 //DEADCODE JON 3/30/00 {B(255), B(255), B(255)} //DeadCode CSB 19Oct100 //DEADCODE JON 3/30/00 }; //DeadCode CSB 19Oct100 //DEADCODE JON 3/30/00 //DeadCode CSB 19Oct100 //DEADCODE JON 3/30/00 static SLightingRGB badWLighting= //DeadCode CSB 19Oct100 //DEADCODE JON 3/30/00 { //DeadCode CSB 19Oct100 //DEADCODE JON 3/30/00 {0x3fff,0x3fff,0x3fff}, //horizon base //DeadCode CSB 19Oct100 //DEADCODE JON 3/30/00 {0x3fff,0x3fff,0x3fff}, //top of hrzn strip //DeadCode CSB 19Oct100 //DEADCODE JON 3/30/00 {0x3fff,0x3fff,0x3fff}, //under clouds //DeadCode CSB 19Oct100 //DEADCODE JON 3/30/00 {0x3fff,0x3fff,0x3fff}, //at clouds //DeadCode CSB 19Oct100 //DEADCODE JON 3/30/00 {0x3fff,0x3fff,0x3fff}, //above clouds //DeadCode CSB 19Oct100 //DEADCODE JON 3/30/00 {0x3fff,0x3fff,0x3fff}, //ceiling colour //DeadCode CSB 19Oct100 //DEADCODE JON 3/30/00 {0x3fff,0x3fff,0x3fff}, //land ambient //DeadCode CSB 19Oct100 //DEADCODE JON 3/30/00 {0x3fff,0x3fff,0x3fff}, //l-shade ambient //DeadCode CSB 19Oct100 //DEADCODE JON 3/30/00 {0x3fff,0x3fff,0x3fff}, //other ambient //DeadCode CSB 19Oct100 //DEADCODE JON 3/30/00 {B(255),B(255),B(255)}, //DeadCode CSB 19Oct100 //DEADCODE JON 3/30/00 {0x3fff,0x3fff,0x3fff} //DeadCode CSB 19Oct100 //DEADCODE JON 3/30/00 }; //DeadCode CSB 19Oct100 //DEADCODE JON 3/30/00 //DeadCode CSB 19Oct100 //DEADCODE JON 3/30/00 static SLightingRGB mapLighting= //DeadCode CSB 19Oct100 //DEADCODE JON 3/30/00 { //DeadCode CSB 19Oct100 //DEADCODE JON 3/30/00 {B(255),B(255),B(255)}, //DeadCode CSB 19Oct100 //DEADCODE JON 3/30/00 {B(255),B(255),B(255)}, //DeadCode CSB 19Oct100 //DEADCODE JON 3/30/00 {B(255),B(255),B(255)}, //DeadCode CSB 19Oct100 //DEADCODE JON 3/30/00 {B(255),B(255),B(255)}, //DeadCode CSB 19Oct100 //DEADCODE JON 3/30/00 {B(255),B(255),B(255)}, //DeadCode CSB 19Oct100 //DEADCODE JON 3/30/00 {B(255),B(255),B(255)}, //DeadCode CSB 19Oct100 //DEADCODE JON 3/30/00 {B(255),B(255),B(255)}, //DeadCode CSB 19Oct100 //DEADCODE JON 3/30/00 {B(255),B(255),B(255)}, //DeadCode CSB 19Oct100 //DEADCODE JON 3/30/00 {B(255),B(255),B(255)}, //DeadCode CSB 19Oct100 //DEADCODE JON 3/30/00 {B(255),B(255),B(255)}, //DeadCode CSB 19Oct100 //DEADCODE JON 3/30/00 {B(255),B(255),B(255)} //DeadCode CSB 19Oct100 //DEADCODE JON 3/30/00 }; pDawn=&dawnLighting; pDay=&dayLighting; pDusk=&duskLighting; pNite=&niteLighting; //DeadCode JON 2Nov00 pBadW=&badWLighting; //DeadCode JON 2Nov00 pMapL=&mapLighting; currentLighting=dayLighting; //safe default... smkList = new SmkCloudDesc[MaxSmokeClouds]; } //컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴 //Procedure DecDetailLevel //Author Paul. //Date Thu 12 Sep 1996 // //Description Turns down the detail level by one step // //Inputs // //Returns // //------------------------------------------------------------------------------ void LandScape::DecDetailLevel() { // gridOffs.reInit(); if (Save_Data.contourDetail==4) Save_Data.contourDetail--; else if (Save_Data.contourDetail==3) Save_Data.contourDetail--; else if (Save_Data.cockpit3Ddetail[COCK3D_SKYIMAGES]) Save_Data.cockpit3Ddetail%=COCK3D_SKYIMAGES; else if (Save_Data.detail_3d[DETAIL3D_HORIZONDIST]) { Save_Data.detail_3d%=DETAIL3D_HORIZONDIST; UpdateCloseHorizCornerPoints( gridOffs.hx, gridOffs.hz ); } // never gets swithced back on mind... else if (Save_Data.detail_3d[DETAIL3D_ROUTES]) Save_Data.detail_3d%=DETAIL3D_ROUTES; else if (Save_Data.contourDetail==2) Save_Data.contourDetail--; else if (Save_Data.detail_3d[DETAIL3D_INCONSEQUENTIALS]) Save_Data.detail_3d%=DETAIL3D_INCONSEQUENTIALS; else if (Save_Data.contourDetail==1) Save_Data.contourDetail--; else if (Save_Data.detail_3d[DETAIL3D_AIRCRAFTSHADOWS]) Save_Data.detail_3d%=DETAIL3D_AIRCRAFTSHADOWS; //DeadCode JON 22Sep00 else if (Save_Data.detail_3d[DETAIL3D_ITEMSHADING]) Save_Data.detail_3d%=DETAIL3D_ITEMSHADING; else if (Save_Data.itemShading) { Save_Data.itemShading--; // set the master lightshading LIGHTFLAG lf = LIGHTFLAG( LF_AMBIENT+Save_Data.itemShading ); g_lpLib3d->SetMasterShading( lf ); } else if (Save_Data.detail_3d[DETAIL3D_ITEMSHADOWS]) Save_Data.detail_3d%=DETAIL3D_ITEMSHADOWS; else if (Save_Data.detail_3d[DETAIL3D_GROUNDSHADING]) Save_Data.detail_3d%=DETAIL3D_GROUNDSHADING; //DeadCode JON 3Aug00 if (Save_Data.cockpit3Ddetail[COCK3D_SKYIMAGES]) Save_Data.cockpit3Ddetail%=COCK3D_SKYIMAGES; //DeadCode JON 3Aug00 else if (Save_Data.detail_3d[DETAIL3D_INCONSEQUENTIALS])Save_Data.detail_3d%=DETAIL3D_INCONSEQUENTIALS; //DeadCode JON 3Aug00 else if (Save_Data.detail_3d[DETAIL3D_AIRCRAFTSHADOWS]) Save_Data.detail_3d%=DETAIL3D_AIRCRAFTSHADOWS; //DeadCode JON 3Aug00 else if (!Save_Data.detail_3d[DETAIL3D_HORIZONFADE]) Save_Data.detail_3d|=DETAIL3D_HORIZONFADE; //DeadCode JON 3Aug00 else if (Save_Data.detail_3d[DETAIL3D_ITEMSHADING]) Save_Data.detail_3d%=DETAIL3D_ITEMSHADING; //DeadCode JON 3Aug00 else if (Save_Data.detail_3d[DETAIL3D_ITEMSHADOWS]) Save_Data.detail_3d%=DETAIL3D_ITEMSHADOWS; //DeadCode JON 3Aug00 else if (Save_Data.detail_3d[DETAIL3D_GROUNDSHADING]) Save_Data.detail_3d%=DETAIL3D_GROUNDSHADING; //DeadCode JON 3Aug00 else if (Save_Data.detail_3d[DETAIL3D_ROUTES]) Save_Data.detail_3d%=DETAIL3D_ROUTES; //DeadCode JON 3Aug00 else if (Save_Data.detail_3d[DETAIL3D_CONTOURDETAIL]) Save_Data.detail_3d%=DETAIL3D_CONTOURDETAIL; } //컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴 //Procedure IncDetailLevel //Author Paul. //Date Thu 12 Sep 1996 // //Description Turns up the detail level by one step // //Inputs // //Returns // //------------------------------------------------------------------------------ inline void LandScape::IncDetailLevel() { // note opposite order to dec detail level.. if (Save_Data.detail_3d[DETAIL3D_GROUNDSHADING]) Save_Data.detail_3d|=DETAIL3D_GROUNDSHADING; else if (Save_Data.detail_3d[DETAIL3D_ITEMSHADOWS]) Save_Data.detail_3d|=DETAIL3D_ITEMSHADOWS; //DeadCode JON 22Sep00 else if (Save_Data.detail_3d[DETAIL3D_ITEMSHADING]) Save_Data.detail_3d|=DETAIL3D_ITEMSHADING; else if (Save_Data.itemShading<2) { Save_Data.itemShading++; // set the master lightshading LIGHTFLAG lf = LIGHTFLAG( LF_AMBIENT+Save_Data.itemShading ); g_lpLib3d->SetMasterShading( lf ); } else if (Save_Data.detail_3d[DETAIL3D_AIRCRAFTSHADOWS]) Save_Data.detail_3d|=DETAIL3D_AIRCRAFTSHADOWS; else if (Save_Data.contourDetail==0) Save_Data.contourDetail++; else if (Save_Data.detail_3d[DETAIL3D_INCONSEQUENTIALS]) Save_Data.detail_3d|=DETAIL3D_INCONSEQUENTIALS; else if (Save_Data.contourDetail==1) Save_Data.contourDetail++; else if (Save_Data.detail_3d[DETAIL3D_ROUTES]) Save_Data.detail_3d|=DETAIL3D_ROUTES; else if (Save_Data.cockpit3Ddetail[COCK3D_SKYIMAGES]) Save_Data.cockpit3Ddetail|=COCK3D_SKYIMAGES; else if (Save_Data.contourDetail==2) Save_Data.contourDetail++; else if (Save_Data.contourDetail==3) Save_Data.contourDetail++; //DeadCode JON 3Aug00 if (!Save_Data.detail_3d[DETAIL3D_CONTOURDETAIL]) Save_Data.detail_3d|=DETAIL3D_CONTOURDETAIL; //DeadCode JON 3Aug00 else if (!Save_Data.detail_3d[DETAIL3D_ROUTES]) Save_Data.detail_3d|=DETAIL3D_ROUTES; //DeadCode JON 3Aug00 else if (!Save_Data.detail_3d[DETAIL3D_GROUNDSHADING]) Save_Data.detail_3d|=DETAIL3D_GROUNDSHADING; //DeadCode JON 3Aug00 else if (!Save_Data.detail_3d[DETAIL3D_ITEMSHADOWS]) Save_Data.detail_3d|=DETAIL3D_ITEMSHADOWS; //DeadCode JON 3Aug00 else if (!Save_Data.detail_3d[DETAIL3D_ITEMSHADING]) Save_Data.detail_3d|=DETAIL3D_ITEMSHADING; //DeadCode JON 3Aug00 else if (Save_Data.detail_3d[DETAIL3D_HORIZONFADE]) Save_Data.detail_3d%=DETAIL3D_HORIZONFADE; //DeadCode JON 3Aug00 else if (!Save_Data.detail_3d[DETAIL3D_AIRCRAFTSHADOWS])Save_Data.detail_3d|=DETAIL3D_AIRCRAFTSHADOWS; //DeadCode JON 3Aug00 else if (!Save_Data.detail_3d[DETAIL3D_INCONSEQUENTIALS])Save_Data.detail_3d|=DETAIL3D_INCONSEQUENTIALS; //DeadCode JON 3Aug00 else if (!Save_Data.cockpit3Ddetail[COCK3D_SKYIMAGES]) Save_Data.cockpit3Ddetail|=COCK3D_SKYIMAGES; } //컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴 //Procedure LandScape //Author Paul. //Date Mon 6 Nov 1995 // //Description // //Inputs // //Returns // //------------------------------------------------------------------------------ LandScape::~LandScape() { delete []SideLookUp; delete []smkList; //RJS 23May00 smkList = NULL; CloudAnimP.Delete(); } //////////////////////////////////////////////////////////////////////////////// // // HORIZON ROUTINES // //////////////////////////////////////////////////////////////////////////////// //컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴 //Procedure DoRain //Author Robert Slater //Date Thu 16 Apr 1998 // //Description // //Inputs // //Returns // //------------------------------------------------------------------------------ //deadcode JON 19/06/01 void LandScape::DoRain(ViewPoint *vp,SLong gheight) //deadcode JON 19/06/01 { //deadcode JON 19/06/01 //deadcode JON 19/06/01 //deadcode JON 19/06/01 // if it is raining and below cloud layer.... //DEADCODE RDH 5/19/00 if (Save_Data.gamedifficulty[GD_WEATHEREFFECTS] && //DEADCODE RDH 5/19/00 Manual_Pilot.ControlledAC2 && //DEADCODE RDH 5/19/00 MissManCampSky().Conditions==1) //raining! //DEADCODE RDH 5/19/00 { //DEADCODE RDH 5/19/00 int i; //DEADCODE RDH 5/19/00 SWord XSeed; //DEADCODE RDH 5/19/00 SWord YSeed; //DEADCODE RDH 5/19/00 SWord ZSeed; //DEADCODE RDH 5/19/00 DoPointStruc dp0,dp1; //DEADCODE RDH 5/19/00 LINETYPE ltLine; //DEADCODE RDH 5/19/00 struct vertex startVertex,endVertex; //DEADCODE RDH 5/19/00 Float z0,z1; //DEADCODE RDH 5/19/00 FPMATRIX nmat; //DEADCODE RDH 5/19/00 FPMATRIX_PTR nmatp = &nmat; //DEADCODE RDH 5/19/00 ANGLES hdg, pitch, roll; //DEADCODE RDH 5/19/00 //DEADCODE CSB 08/11/99 SLong theVel = Manual_Pilot.ControlledAC2->velhori; //DEADCODE RDH 5/19/00 SLong theVel = Manual_Pilot.ControlledAC2->vel_; //CSB 08/11/99 //DEADCODE RDH 5/19/00 SWord RainHeight = 5; //DEADCODE RDH 5/19/00 SLong distfromground = gheight; //vp->World.Y - gheight; //DEADCODE RDH 5/19/00 SLong theVol; //DEADCODE RDH 5/19/00 UWord andedFlags; //DEADCODE RDH 5/19/00 Bool inCockpit = FALSE; //DEADCODE RDH 5/19/00 Bool drawit; //DEADCODE RDH 5/19/00 Colour base_colour = (Colour)24; //RJS 03Jun99 //DEADCODE RDH 5/19/00 //DEADCODE RDH 5/19/00 if (vp->PolyPitEnabled()) //DEADCODE RDH 5/19/00 inCockpit = TRUE; //DEADCODE RDH 5/19/00 //DEADCODE RDH 5/19/00 if (theVel >= 1000) //DEADCODE RDH 5/19/00 theVel = ANGLES_90Deg; //DEADCODE RDH 5/19/00 else //DEADCODE RDH 5/19/00 theVel = (theVel * ANGLES_90Deg)/1000; //DEADCODE RDH 5/19/00 //DEADCODE RDH 5/19/00 hdg = Manual_Pilot.ControlledAC2->hdg; //DEADCODE RDH 5/19/00 pitch = (Angles) -theVel; //DEADCODE RDH 5/19/00 roll = ANGLES_0Deg; //DEADCODE RDH 5/19/00 //DEADCODE RDH 5/19/00 g_lpLib3d->PushMatrix(MATRIX_OBJECT); //DEADCODE RDH 5/19/00 g_lpLib3d->Rotate(MATRIX_OBJECT,AXIS_ROLL,(Angles)(int)roll); //DEADCODE RDH 5/19/00 g_lpLib3d->Rotate(MATRIX_OBJECT,AXIS_PITCH,(Angles)(int)pitch); //DEADCODE RDH 5/19/00 g_lpLib3d->Rotate(MATRIX_OBJECT,AXIS_HEADING,(Angles)(int)hdg); //DEADCODE RDH 5/19/00 //DEADCODE RDH 5/19/00 theVol = 128 - ((distfromground * 128)/10000); //DEADCODE RDH 5/19/00 // if (theVol > 0) //DEADCODE RDH 5/19/00 // _Miles.PlayLooped(FIL_SFX_RAIN_LOOP,NULL,theVol); //DEADCODE RDH 5/19/00 //DEADCODE RDH 5/19/00 if (Three_Dee.IsPaused()) //DEADCODE RDH 5/19/00 { //DEADCODE RDH 5/19/00 for (i=0; i < 96; i++) //DEADCODE RDH 5/19/00 { //DEADCODE RDH 5/19/00 XSeed = (SByte) SHAPE.Noise(vp->World.X+i,vp->World.Y+i,vp->World.Z+i); //DEADCODE RDH 5/19/00 YSeed = (SByte) SHAPE.Noise(XSeed+i,vp->World.Y+i,vp->World.Z+i); //DEADCODE RDH 5/19/00 ZSeed = (SByte) SHAPE.Noise(vp->World.X+i,YSeed+i,vp->World.Z+i); //DEADCODE RDH 5/19/00 //DEADCODE RDH 5/19/00 XSeed <<= 4; //DEADCODE RDH 5/19/00 YSeed <<= 4; //DEADCODE RDH 5/19/00 ZSeed <<= 4; //DEADCODE RDH 5/19/00 //DEADCODE RDH 5/19/00 drawit = TRUE; //DEADCODE RDH 5/19/00 if (inCockpit) //DEADCODE RDH 5/19/00 { //DEADCODE RDH 5/19/00 if ( ((XSeed > -800) && (XSeed < 800)) //DEADCODE RDH 5/19/00 && ((YSeed > -800) && (YSeed < 800)) //DEADCODE RDH 5/19/00 && ((ZSeed > -800) && (ZSeed < 800)) ) //DEADCODE RDH 5/19/00 drawit = FALSE; //DEADCODE RDH 5/19/00 } //DEADCODE RDH 5/19/00 //DEADCODE RDH 5/19/00 if (drawit) //DEADCODE RDH 5/19/00 { //DEADCODE RDH 5/19/00 dp0.bodyx.f = XSeed; //DEADCODE RDH 5/19/00 dp0.bodyy.f = YSeed; //DEADCODE RDH 5/19/00 dp0.bodyz.f = ZSeed; //DEADCODE RDH 5/19/00 //DEADCODE RDH 5/19/00 dp1.bodyx.f = XSeed; //DEADCODE RDH 5/19/00 dp1.bodyy.f = YSeed + RainHeight; //DEADCODE RDH 5/19/00 dp1.bodyz.f = ZSeed; //DEADCODE RDH 5/19/00 //DEADCODE RDH 5/19/00 //deadcode if (andedFlags == 0 && dp0.bodyz.f>5*100 && dp1.bodyz.f>5*100) //DEADCODE RDH 5/19/00 //deadcode { //DEADCODE RDH 5/19/00 g_lpLib3d->DrawLine(HMATERIAL(base_colour),dp0,dp1); //DEADCODE RDH 5/19/00 //deadcode } //DEADCODE RDH 5/19/00 } //DEADCODE RDH 5/19/00 } //DEADCODE RDH 5/19/00 } //DEADCODE RDH 5/19/00 else //DEADCODE RDH 5/19/00 { //DEADCODE RDH 5/19/00 RainHeight = 40; //DEADCODE RDH 5/19/00 for (i=0; i < 96; i++) //DEADCODE RDH 5/19/00 { //DEADCODE RDH 5/19/00 XSeed = Math_Lib.rnd(); //DEADCODE RDH 5/19/00 YSeed = Math_Lib.rnd(); //DEADCODE RDH 5/19/00 ZSeed = Math_Lib.rnd(); //DEADCODE RDH 5/19/00 //DEADCODE RDH 5/19/00 XSeed >>= 4; //DEADCODE RDH 5/19/00 YSeed >>= 4; //DEADCODE RDH 5/19/00 ZSeed >>= 4; //DEADCODE RDH 5/19/00 //DEADCODE RDH 5/19/00 drawit = TRUE; //DEADCODE RDH 5/19/00 if (inCockpit) //DEADCODE RDH 5/19/00 { //DEADCODE RDH 5/19/00 if ( ((XSeed > -600) && (XSeed < 600)) //DEADCODE RDH 5/19/00 && ((YSeed > -400) && (YSeed < 400)) //DEADCODE RDH 5/19/00 && ((ZSeed > -600) && (ZSeed < 600)) ) //DEADCODE RDH 5/19/00 drawit = FALSE; //DEADCODE RDH 5/19/00 } //DEADCODE RDH 5/19/00 //DEADCODE RDH 5/19/00 if (drawit) //DEADCODE RDH 5/19/00 { //DEADCODE RDH 5/19/00 dp0.bodyx.f = XSeed; //DEADCODE RDH 5/19/00 dp0.bodyy.f = YSeed; //DEADCODE RDH 5/19/00 dp0.bodyz.f = ZSeed; //DEADCODE RDH 5/19/00 //DEADCODE RDH 5/19/00 dp1.bodyx.f = XSeed; //DEADCODE RDH 5/19/00 dp1.bodyy.f = YSeed + RainHeight; //DEADCODE RDH 5/19/00 dp1.bodyz.f = ZSeed; //DEADCODE RDH 5/19/00 //DEADCODE RDH 5/19/00 //deadcode if (andedFlags == 0 && dp0.bodyz.f>5*100 && dp1.bodyz.f>5*100) //DEADCODE RDH 5/19/00 //deadcode { //DEADCODE RDH 5/19/00 //DEADCODE RDH 5/19/00 g_lpLib3d->DrawLine(HMATERIAL(base_colour),dp0,dp1); //DEADCODE RDH 5/19/00 //deadcode } //DEADCODE RDH 5/19/00 } //DEADCODE RDH 5/19/00 } //DEADCODE RDH 5/19/00 } //DEADCODE RDH 5/19/00 g_lpLib3d->PopMatrix(MATRIX_OBJECT); //DEADCODE RDH 5/19/00 } //deadcode JON 19/06/01 } static UByte scaledToCeil=0; static int hStep; #include "hdata2.h" /* inline void fpTan(ANGLES ang,Float& tanAng) { int iang=ang; _asm { mov eax,iang; mov edx,tanAng; and eax,0x0000FFFF; fldpi; push eax; fild dword ptr ss:[esp]; fmulp st(1),st; mov dword ptr ss:[esp],32768; fild dword ptr ss:[esp]; fdivp st(1),st; fsincos; fdivp st(1),st; fstp qword ptr ds:[edx]; add esp,4; } } */ //DEADCODE JON 5/24/00 //컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴 //DEADCODE JON 5/24/00 //Procedure GStrip //DEADCODE JON 5/24/00 //Author Paul. //DEADCODE JON 5/24/00 //Date Tue 19 Jan 1999 //DEADCODE JON 5/24/00 //------------------------------------------------------------------------------ //DEADCODE JON 5/24/00 void LandScape::GStrip( DoPointStruc** pp, //DEADCODE JON 5/24/00 UByte br,UByte bg,UByte bb, //DEADCODE JON 5/24/00 UByte tr,UByte tg,UByte tb) //DEADCODE JON 5/24/00 { //DEADCODE JON 5/24/00 //deadcode if (!( pp[0]->clipFlags& //DEADCODE JON 5/24/00 //deadcode pp[1]->clipFlags& //DEADCODE JON 5/24/00 //deadcode pp[2]->clipFlags& //DEADCODE JON 5/24/00 //deadcode pp[3]->clipFlags)) //DEADCODE JON 5/24/00 { //DEADCODE JON 5/24/00 R3DVERTEX *pRVerts; //DEADCODE JON 5/24/00 g_lpLib3d->BeginPoly(HMATERIAL(UByte(0)),4,pRVerts); //DEADCODE JON 5/24/00 *pRVerts++=*pp[3]; //DEADCODE JON 5/24/00 *pRVerts++=*pp[0]; //DEADCODE JON 5/24/00 *pRVerts++=*pp[1]; //DEADCODE JON 5/24/00 *pRVerts++=*pp[2]; //DEADCODE JON 5/24/00 g_lpLib3d->EndPoly(); //DEADCODE JON 5/24/00 //deadcode POLYGON.createpoly(POLYTYPE::PT_GColour); //DEADCODE JON 5/24/00 //deadcode POLYGON.createvert(*pp[3],br,bg,bb,0xFF); //DEADCODE JON 5/24/00 //deadcode POLYGON.createvert(*pp[0],br,bg,bb,0xFF); //DEADCODE JON 5/24/00 //deadcode POLYGON.createvert(*pp[1],tr,tg,tb,0xFF); //DEADCODE JON 5/24/00 //deadcode POLYGON.createvert(*pp[2],tr,tg,tb,0xFF); //DEADCODE JON 5/24/00 //deadcode POLYGON.drawpoly(); //DEADCODE JON 5/24/00 } //DEADCODE JON 5/24/00 } //컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴 //Procedure GenerateStrip //Author Paul. //Date Tue 23 Mar 1999 //------------------------------------------------------------------------------ void LandScape::InfiniteStrip( const ANGLES pitch, const ANGLES roll) { #ifdef _NO_INFI_STRIP return; #endif //DeadCode JON 2Nov00 SLong layerAltitude = (MissManCampSky().Layer[0].AltBase + MissManCampSky().Layer[0].AltTop)>>1; const SLong layerAltitudeTop = MissManCampSky().Layer[0].AltTop; const SLong layerAltitudeBottom = MissManCampSky().Layer[0].AltBase; // SLong layerAltitude = MissManCampSky().Layer[0].AltTop; //DeadCode JON 2Nov00 const double cloud_height=double(layerAltitude)/double(CEILING_ALT); const double cloud_height_top=double(layerAltitudeTop)/double(CEILING_ALT); const double cloud_height_bottom=double(layerAltitudeBottom)/double(CEILING_ALT); const double BELOW_GROUND=-1.0;//00.0;///double(CEILING_ALT); double fvy=double(viewer_y)/double(CEILING_ALT); //DeadCode JON 20Oct00 double fvy2=fvy*fvy; DoPointStruc* ptr = shape::newco; double fvr=double(view_dist*0.999999); //DeadCode JON 5Oct00 { //DeadCode JON 5Oct00 D3DVECTOR scaleVec={fvr,fvr,0.f}; //DeadCode JON 5Oct00 D3DVECTOR trnsVec={0,0,fvr}; //DeadCode JON 5Oct00 //DeadCode JON 5Oct00 g_lpLib3d->PushMatrix(MATRIX_OBJECT); //DeadCode JON 5Oct00 g_lpLib3d->LoadIdentity(MATRIX_OBJECT); //DeadCode JON 5Oct00 //DeadCode JON 5Oct00 g_lpLib3d->PushMatrix(MATRIX_VIEWER); //DeadCode JON 5Oct00 g_lpLib3d->LoadIdentity(MATRIX_VIEWER); //DeadCode JON 5Oct00 g_lpLib3d->Rotate(MATRIX_VIEWER,AXIS_PITCH,(Angles)-(int)View_Point->pitch); //DeadCode JON 5Oct00 g_lpLib3d->Rotate(MATRIX_VIEWER,AXIS_ROLL,(Angles)-(int)View_Point->roll); //DeadCode JON 5Oct00 g_lpLib3d->Scale(MATRIX_VIEWER,scaleVec); //DeadCode JON 5Oct00 g_lpLib3d->Translate(MATRIX_VIEWER,trnsVec); //DeadCode JON 5Oct00 trnsVec.y=-fvy; //DeadCode JON 5Oct00 trnsVec.z=0; //DeadCode JON 5Oct00 g_lpLib3d->Translate(MATRIX_OBJECT,trnsVec); //DeadCode JON 5Oct00 g_lpLib3d->EnableFogging( false ); //DeadCode JON 5Oct00 } LIGHTFLAG lf = LF_VERTEX; g_lpLib3d->SetObjectLighting( lf ); const D3DVALUE LAND_Z = 1.0f; const D3DVALUE SKY_Z = 1.0f; SLong over_sun_count; //JON 5Oct00 // right - try to do directional sky lighting... LightVec& sunPos=Three_Dee.SunLightVector; double viewx, viewy; viewx = Three_Dee.eye_x; viewy = Three_Dee.eye_z; double sunx, suny; suny = fastMath.FastInvSqrt( double(sunPos.ni.i)*double(sunPos.ni.i) + double(sunPos.nk.i)*double(sunPos.nk.i) ); sunx = sunPos.ni.i * suny; suny *= sunPos.nk.i; double sunProportion = (1.0 - (sunx*viewx + suny*viewy) )*0.5; R3DCOLOUR skyBase; // always used skyBase= (currentLighting.otherSkyColSun.red()<<16)+(currentLighting.otherSkyColSun.green()<<8)+currentLighting.otherSkyColSun.blue(); R3DCOLOUR skyBaseShade; skyBaseShade= (currentLighting.otherSkyColShade.red()<<16)+(currentLighting.otherSkyColShade.green()<<8)+currentLighting.otherSkyColShade.blue(); skyBase.interpRGB( skyBaseShade, sunProportion ); R3DCOLOUR fogCol; fogCol = ( (currentLighting.fogColSun.red()<<16)+(currentLighting.fogColSun.green()<<8)+currentLighting.fogColSun.blue() ); R3DCOLOUR fogColShade; fogColShade = ( (currentLighting.fogColShade.red()<<16)+(currentLighting.fogColShade.green()<<8)+currentLighting.fogColShade.blue() ); fogCol.interpRGB( fogColShade, sunProportion ); Three_Dee.fogCol=fogCol.all; g_lpLib3d->SetFogColour(fogCol.all ); g_lpLib3d->Wipe( fogCol.all ); double toTopY; if ( layerAltitudeBottom <= 0 || viewer_y<layerAltitudeBottom ) { // view below cloud layer // draw in 3 bands: //- cloud level up go skycol -> deeper skycol //- from eyelevel to cloud level fog->white //- from ground level to eyelevel all in fogcolour R3DCOLOUR grHorizCol; grHorizCol = ( (currentLighting.horizonColSun.red()<<16)+(currentLighting.horizonColSun.green()<<8)+currentLighting.horizonColSun.blue() ); R3DCOLOUR grHorizColShade; grHorizColShade = ( (currentLighting.horizonColShade.red()<<16)+(currentLighting.horizonColShade.green()<<8)+currentLighting.horizonColShade.blue() ); grHorizCol.interpRGB( grHorizColShade, sunProportion ); R3DCOLOUR midCol; //DeadCode JON 2Nov00 midCol = (((currentLighting.fogColSun.red() + currentLighting.horizonColSun.red())&~1)<<15) + //DeadCode JON 2Nov00 (((currentLighting.fogColSun.green() + currentLighting.horizonColSun.green())&~1)<<7) + //DeadCode JON 2Nov00 ((currentLighting.fogColSun.blue() + currentLighting.horizonColSun.blue())>>1); //DeadCode JON 2Nov00 R3DCOLOUR midColShade; //DeadCode JON 2Nov00 midColShade = (((currentLighting.fogColShade.red() + currentLighting.horizonColShade.red())&~1)<<15) + //DeadCode JON 2Nov00 (((currentLighting.fogColShade.green() + currentLighting.horizonColShade.green())&~1)<<7) + //DeadCode JON 2Nov00 ((currentLighting.fogColShade.blue() + currentLighting.horizonColShade.blue())>>1); //DeadCode JON 2Nov00 midCol.interpRGB( midColShade, sunProportion ); midCol = grHorizCol; midCol.interpRGB( fogCol, 0.5 ); R3DCOLOUR cloudCol; cloudCol= (currentLighting.cloudColSun.red()<<16)+(currentLighting.cloudColSun.green()<<8)+currentLighting.cloudColSun.blue(); R3DCOLOUR cloudColShade; cloudColShade= (currentLighting.cloudColShade.red()<<16)+(currentLighting.cloudColShade.green()<<8)+currentLighting.cloudColShade.blue(); cloudCol.interpRGB( cloudColShade, sunProportion ); //- 0 Draw in a patch below horizon to cover any possible tears ptr->setPosition( -1.f, BELOW_GROUND/*-0.4f*/, LAND_Z ); ptr->setVertexCol( fogCol ); ptr++; ptr->setPosition( 1.f, BELOW_GROUND/*-0.4f*/, LAND_Z ); ptr->setVertexCol( fogCol ); ptr++; //- 1 generate vertices 4 ground level ptr->setPosition( -1.f, -0.f, LAND_Z ); ptr->setVertexCol( fogCol ); ptr++; ptr->setPosition( 1.f, -0.f, LAND_Z ); ptr->setVertexCol( fogCol ); ptr++; //- 2 generate vertices 4 half way horizon / eye level. ptr->setPosition( -1.f, fvy*0.5f, LAND_Z ); ptr->setVertexCol( midCol ); ptr++; ptr->setPosition( 1.f, fvy*0.5f, LAND_Z ); ptr->setVertexCol( midCol ); ptr++; //TempCode JON 2Nov00 //- 2 generate vertices 4 just below horizon / eye level. //TempCode JON 2Nov00 ptr->setPosition( -1.f, fvy*0.99f, LAND_Z ); //TempCode JON 2Nov00 ptr->setVertexCol( midCol ); //TempCode JON 2Nov00 ptr++; //TempCode JON 2Nov00 //TempCode JON 2Nov00 ptr->setPosition( 1.f, fvy*0.99f, LAND_Z ); //TempCode JON 2Nov00 ptr->setVertexCol( midCol ); //TempCode JON 2Nov00 ptr++; //- 2 generate vertices 4 on horizon / eye level. ptr->setPosition( -1.f, fvy*0.95f, LAND_Z ); ptr->setVertexCol( grHorizCol ); ptr++; ptr->setPosition( 1.f, fvy*0.95f, LAND_Z ); ptr->setVertexCol( grHorizCol ); ptr++; over_sun_count=(SLong(ptr-SHAPE.newco))>>1; if (layerAltitudeBottom > 0) { // now go to white for the clouds ptr->setPosition( -1.f, cloud_height_bottom, SKY_Z ); ptr->setVertexCol( cloudCol ); ptr++; ptr->setPosition( 1.f, cloud_height_bottom, SKY_Z ); ptr->setVertexCol( cloudCol ); ptr++; // fill the cloud layer ptr->setPosition( -1.f, cloud_height_top, SKY_Z ); ptr->setVertexCol( cloudCol ); ptr++; ptr->setPosition( 1.f, cloud_height_top, SKY_Z ); ptr->setVertexCol( cloudCol ); ptr++; // now go back up to blue 4 the sky ptr->setPosition( -1.f, cloud_height_top*1.05f, SKY_Z ); ptr->setVertexCol( skyBase ); ptr++; ptr->setPosition( 1.f, cloud_height_top*1.05f, SKY_Z ); ptr->setVertexCol( skyBase ); ptr++; toTopY = cloud_height_top*1.05; } else { // now go back up to blue 4 the sky ptr->setPosition( -1.f, fvy*1.05f, SKY_Z ); ptr->setVertexCol( skyBase ); ptr++; ptr->setPosition( 1.f, fvy*1.05f, SKY_Z ); ptr->setVertexCol( skyBase ); ptr++; toTopY = fvy*1.05; } } else { // view above cloud layer // draw in 3 bands: //- cloud level up go skycol -> deeper skycol //- from ground level to cloudlevl groundfogcol->white R3DCOLOUR cloudCol; cloudCol= (currentLighting.cloudColSun.red()<<16)+(currentLighting.cloudColSun.green()<<8)+currentLighting.cloudColSun.blue(); R3DCOLOUR cloudColShade; cloudColShade= (currentLighting.cloudColShade.red()<<16)+(currentLighting.cloudColShade.green()<<8)+currentLighting.cloudColShade.blue(); cloudCol.interpRGB( cloudColShade, sunProportion ); //- 0 Draw in a patch below horizon to cover any possible tears ptr->setPosition( -1.f, BELOW_GROUND, LAND_Z ); ptr->setVertexCol( fogCol ); ptr++; ptr->setPosition( 1.f, BELOW_GROUND, LAND_Z ); ptr->setVertexCol( fogCol ); ptr++; //- 1 generate vertices 4 ground level ptr->setPosition( -1.f, 0.f, LAND_Z ); ptr->setVertexCol( fogCol ); ptr++; ptr->setPosition( 1.f, 0.f, LAND_Z ); ptr->setVertexCol( fogCol ); ptr++; if ( viewer_y<layerAltitudeTop ) { // we're inside the cloudlayer // now go to white for the clouds ptr->setPosition( -1.f, cloud_height_bottom, SKY_Z ); ptr->setVertexCol( cloudCol ); ptr++; ptr->setPosition( 1.f, cloud_height_bottom, SKY_Z ); ptr->setVertexCol( cloudCol ); ptr++; // fill the cloud layer ptr->setPosition( -1.f, cloud_height_top, SKY_Z ); ptr->setVertexCol( cloudCol ); ptr++; ptr->setPosition( 1.f, cloud_height_top, SKY_Z ); ptr->setVertexCol( cloudCol ); ptr++; // now go back up to blue 4 the sky ptr->setPosition( -1.f, cloud_height_top*1.05f, SKY_Z ); ptr->setVertexCol( skyBase ); ptr++; ptr->setPosition( 1.f, cloud_height_top*1.05f, SKY_Z ); ptr->setVertexCol( skyBase ); ptr++; toTopY = cloud_height_top*1.05; } else { // now go to fog col??? for the clouds ptr->setPosition( -1.f, cloud_height_top, LAND_Z ); ptr->setVertexCol( fogCol ); ptr++; ptr->setPosition( 1.f, cloud_height_top, LAND_Z ); ptr->setVertexCol( fogCol ); ptr++; //- generate vertices 4 on horizon / eye level. ptr->setPosition( -1.f, fvy*0.95f, LAND_Z ); ptr->setVertexCol( cloudCol ); ptr++; ptr->setPosition( 1.f, fvy*0.95f, LAND_Z ); ptr->setVertexCol( cloudCol ); ptr++; // now go back up to blue 4 the sky ptr->setPosition( -1.f, fvy*1.05f, LAND_Z ); ptr->setVertexCol( skyBase ); ptr++; ptr->setPosition( 1.f, fvy*1.05f, LAND_Z ); ptr->setVertexCol( skyBase ); ptr++; toTopY = fvy*1.05; } over_sun_count=(SLong(ptr-SHAPE.newco))>>1; } int i; //DEADCODE JON 4/18/00 //DEADCODE JON 4/18/00 /* Generate vertex data for //DEADCODE JON 4/18/00 * infinite strip along the //DEADCODE JON 4/18/00 * ground //DEADCODE JON 4/18/00 */ //DEADCODE JON 4/20/00 ULong col = 0xFF; //DEADCODE JON 4/20/00 ULong rgCol = 0xAAAA00; //DEADCODE JON 4/20/00 //TEMPCODE JON 4/18/00 ULong rgStep = 0x0A0A00; //DEADCODE JON 4/20/00 ULong rgStep = 0x0F0F00; //DEADCODE JON 4/18/00 //DEADCODE JON 4/18/00 for (int i=0;i<SubDivideLevel+1;i++) //DEADCODE JON 4/18/00 { //DEADCODE JON 4/18/00 R3DVALUE this_range=R3DVALUE(i)*Max_Range/4.; //DEADCODE JON 4/18/00 this_range=this_range*this_range-fvy2; //DEADCODE JON 4/18/00 if (this_range<0.f) this_range=0.f; //DEADCODE JON 4/18/00 else //DEADCODE JON 4/18/00 { //DEADCODE JON 4/18/00 this_range=fastMath.FastSqrt(this_range); //DEADCODE JON 4/18/00 this_range=fvy*(this_range-1.f)/this_range; //DEADCODE JON 4/18/00 } //DEADCODE JON 4/18/00 //DEADCODE JON 4/18/00 if (this_range>cloud_height) //DEADCODE JON 4/18/00 break; //DEADCODE JON 4/18/00 //DEADCODE JON 4/18/00 ptr->bodyx.f=-1.f; //DEADCODE JON 4/18/00 ptr->bodyy.f=this_range; //DEADCODE JON 4/18/00 ptr->bodyz.f=1.f; //DEADCODE JON 4/18/00 ptr->vertexCol=0x0090B8E8;//col+rgCol; //DEADCODE JON 4/18/00 ptr++; //DEADCODE JON 4/18/00 //DEADCODE JON 4/18/00 ptr->bodyx.f=1.f; //DEADCODE JON 4/18/00 ptr->bodyy.f=this_range; //DEADCODE JON 4/18/00 ptr->bodyz.f=1.f; //DEADCODE JON 4/18/00 ptr->vertexCol=0x0090B8E8;//col+rgCol; //DEADCODE JON 4/18/00 //TEMPCODE JON 4/18/00 rgCol-=rgStep; //DEADCODE JON 4/18/00 ptr++; //DEADCODE JON 4/18/00 } //DEADCODE JON 4/18/00 rgCol-=rgStep; //DEADCODE JON 4/18/00 //DEADCODE JON 4/18/00 //DEADCODE JON 4/18/00 // where is this one?? //DEADCODE JON 4/18/00 //DEADCODE JON 4/18/00 for (i=1;i<SubDivideLevel+1;i++) //DEADCODE JON 4/18/00 { //DEADCODE JON 4/18/00 R3DVALUE this_range=R3DVALUE(i)*Max_Range/4.; //DEADCODE JON 4/18/00 this_range=this_range*this_range-fvy2; //DEADCODE JON 4/18/00 if (this_range<0.f) this_range=0.f; //DEADCODE JON 4/18/00 else //DEADCODE JON 4/18/00 { //DEADCODE JON 4/18/00 this_range=fastMath.FastSqrt(this_range); //DEADCODE JON 4/18/00 this_range=fvy*(this_range-1.f)/this_range; //DEADCODE JON 4/18/00 } //DEADCODE JON 4/18/00 if (this_range>cloud_height) //DEADCODE JON 4/18/00 break; //DEADCODE JON 4/18/00 ptr->bodyx.f=-1.f; //DEADCODE JON 4/18/00 ptr->bodyy.f=this_range; //DEADCODE JON 4/18/00 ptr->bodyz.f=1.f; //DEADCODE JON 4/18/00 ptr->vertexCol=0x00FF00;//col+rgCol; //DEADCODE JON 4/18/00 ptr++; //DEADCODE JON 4/18/00 //DEADCODE JON 4/18/00 ptr->bodyx.f=1.f; //DEADCODE JON 4/18/00 ptr->bodyy.f=this_range; //DEADCODE JON 4/18/00 ptr->bodyz.f=1.f; //DEADCODE JON 4/18/00 ptr->vertexCol=0x00FF00;//col+rgCol; //DEADCODE JON 4/18/00 //TEMPCODE JON 4/18/00 rgCol-=rgStep; //DEADCODE JON 4/18/00 ptr++; //DEADCODE JON 4/18/00 } //DEADCODE JON 4/18/00 rgCol-=rgStep; //DEADCODE JON 4/18/00 //DEADCODE JON 4/18/00 double cvy=cloud_height-fvy; //DEADCODE JON 4/18/00 if (cvy<0) cvy=-cvy; //DEADCODE JON 4/18/00 fvy2=cvy*cvy; //DEADCODE JON 4/18/00 //DEADCODE JON 4/18/00 /* Generate vertex data for //DEADCODE JON 4/18/00 * infinite strip under the //DEADCODE JON 4/18/00 * cloud layer //DEADCODE JON 4/18/00 */ //DEADCODE JON 4/18/00 //DEADCODE JON 4/18/00 for (i=SubDivideLevel+1;--i>=0;) //DEADCODE JON 4/18/00 { //DEADCODE JON 4/18/00 R3DVALUE this_range=R3DVALUE(i)*Max_Range/4.; //DEADCODE JON 4/18/00 this_range=this_range*this_range-fvy2; //DEADCODE JON 4/18/00 if (this_range<0.f) this_range=0.f; //DEADCODE JON 4/18/00 else //DEADCODE JON 4/18/00 { //DEADCODE JON 4/18/00 this_range=fastMath.FastSqrt(this_range); //DEADCODE JON 4/18/00 this_range=cvy*(this_range-1.f)/this_range; //DEADCODE JON 4/18/00 } //DEADCODE JON 4/18/00 //DEADCODE JON 4/18/00 this_range=cloud_height-this_range; //DEADCODE JON 4/18/00 if (this_range>cloud_height) //DEADCODE JON 4/18/00 this_range=cloud_height; //DEADCODE JON 4/18/00 //DEADCODE JON 4/18/00 ptr->bodyx.f=-1.f; //DEADCODE JON 4/18/00 ptr->bodyy.f=this_range; //DEADCODE JON 4/18/00 ptr->bodyz.f=1.f; //DEADCODE JON 4/18/00 ptr->vertexCol=0xFFFF00;//col+rgCol; //DEADCODE JON 4/18/00 ptr++; //DEADCODE JON 4/18/00 //DEADCODE JON 4/18/00 ptr->bodyx.f=1.f; //DEADCODE JON 4/18/00 ptr->bodyy.f=this_range; //DEADCODE JON 4/18/00 ptr->bodyz.f=1.f; //DEADCODE JON 4/18/00 ptr->vertexCol=0xFFFF00;//col+rgCol; //DEADCODE JON 4/18/00 //TEMPCODE JON 4/18/00 rgCol-=rgStep; //DEADCODE JON 4/18/00 ptr++; //DEADCODE JON 4/18/00 } //DEADCODE JON 4/18/00 rgCol-=rgStep; //DEADCODE JON 4/18/00 //DEADCODE JON 4/18/00 fvy2=cvy*cvy; //DEADCODE JON 4/18/00 //DEADCODE JON 4/18/00 /* Generate vertex data for //DEADCODE JON 4/18/00 * infinite strip above the //DEADCODE JON 4/18/00 * cloud layer //DEADCODE JON 4/18/00 */ //DEADCODE JON 4/18/00 // actually do the stuff above the top layer //DEADCODE JON 4/18/00 for (i=0;i<SubDivideLevel+1;i++) //DEADCODE JON 4/18/00 { //DEADCODE JON 4/18/00 R3DVALUE this_range=R3DVALUE(i)*Max_Range/4.; //DEADCODE JON 4/18/00 this_range=this_range*this_range-fvy2; //DEADCODE JON 4/18/00 if (this_range<0.f) this_range=0.f; //DEADCODE JON 4/18/00 else //DEADCODE JON 4/18/00 { //DEADCODE JON 4/18/00 this_range=fastMath.FastSqrt(this_range); //DEADCODE JON 4/18/00 this_range=cvy*(this_range-1.f)/this_range; //DEADCODE JON 4/18/00 } //DEADCODE JON 4/18/00 //DEADCODE JON 4/18/00 this_range=cloud_height+this_range; //DEADCODE JON 4/18/00 if (this_range<cloud_height) //DEADCODE JON 4/18/00 { //DEADCODE JON 4/18/00 this_range=cloud_height; //DEADCODE JON 4/18/00 } //DEADCODE JON 4/18/00 //DEADCODE JON 4/18/00 ptr->bodyx.f=-1.f; //DEADCODE JON 4/18/00 ptr->bodyy.f=this_range; //DEADCODE JON 4/18/00 ptr->bodyz.f=1.f; //DEADCODE JON 4/18/00 ptr->vertexCol=0xFF00FF;//col+rgCol; //DEADCODE JON 4/18/00 //DEADCODE JON 4/18/00 ptr++; //DEADCODE JON 4/18/00 ptr->bodyx.f=1.f; //DEADCODE JON 4/18/00 ptr->bodyy.f=this_range; //DEADCODE JON 4/18/00 ptr->bodyz.f=1.f; //DEADCODE JON 4/18/00 ptr->vertexCol=0xFF00FF;//col+rgCol; //DEADCODE JON 4/18/00 //TEMPCODE JON 4/18/00 rgCol-=rgStep; //DEADCODE JON 4/18/00 ptr++; //DEADCODE JON 4/18/00 } //DEADCODE JON 4/18/00 rgCol-=rgStep; //DEADCODE JON 4/18/00 // draw in the top dome type bits... // const double totop_z[]={1.0,.75,.5,.25,0}; const double totop_z[]={1.0, .9, .8, .7, .6, .5, .4, .3, .2, .1 ,0}; const SLong steps=sizeof(totop_z)/sizeof(double); //DeadCode JON 2Nov00 const double fromtop_z[]={-.25, -.5, -.75, -1.0, -1.0, -1.0}; //DeadCode JON 2Nov00 const double fromtop_y[]={1.0, 1.0, 1.0, 0.9, 0.8, 0.7}; //DeadCode JON 2Nov00 const SLong steps2=sizeof(fromtop_z)/sizeof(double); // SLayerRGB deepestSkyCol,otherSkyCol,cloudCol,horizonCol,fogCol; //JON 4/20/00 // ULong curCol = (currentLighting.otherSkyCol.red()<<16)+(currentLighting.otherSkyCol.green()<<8)+currentLighting.otherSkyCol.blue();; // ULong endCol = (currentLighting.deepestSkyCol.red()<<16)+(currentLighting.deepestSkyCol.green()<<8)+currentLighting.deepestSkyCol.blue(); // ULong colStep = (endCol-curCol)/(steps+steps2); //DeadCode JON 11Sep00 SLong curR = currentLighting.otherSkyCol.red()<<16; //DeadCode JON 11Sep00 SLong curG = currentLighting.otherSkyCol.green()<<16; //DeadCode JON 11Sep00 SLong curB = currentLighting.otherSkyCol.blue()<<16; const int gradientSteps = 7; SLong curR = SLong(skyBase.red)<<16; SLong curG = SLong(skyBase.green)<<16; SLong curB = SLong(skyBase.blue)<<16; R3DCOLOUR deepestSkyCol; deepestSkyCol.red = currentLighting.deepestSkyCol.red(); deepestSkyCol.green = currentLighting.deepestSkyCol.green(); deepestSkyCol.blue = currentLighting.deepestSkyCol.blue(); deepestSkyCol.interpRGB( skyBase, 0.5 ); SLong endR = SLong(deepestSkyCol.red)<<16; SLong endG = SLong(deepestSkyCol.green)<<16; SLong endB = SLong(deepestSkyCol.blue)<<16; SLong stepR = (endR-curR)/(gradientSteps+1); SLong stepG = (endG-curG)/(gradientSteps+1); SLong stepB = (endB-curB)/(gradientSteps+1); curR+=stepR; curG+=stepG; curB+=stepB; double topYinc = (1.0-toTopY)/steps; for (i=0;i<gradientSteps;i++) // draws up to the back... { double this_z=totop_z[i]; ptr->setPosition( -1.f, toTopY, this_z ); ptr->setVertexCol( RGBMake(UByte(curR>>16),UByte(curG>>16),UByte(curB>>16)) ); ptr++; ptr->setPosition( 1.f, toTopY, this_z ); ptr->setVertexCol( (ptr-1)->getVertexCol() ); curR+=stepR; curG+=stepG; curB+=stepB; ptr++; toTopY+=topYinc; } for (;i<steps;i++) // draws up to the back... { double this_z=totop_z[i]; ptr->setPosition( -1.f, toTopY, this_z ); ptr->setVertexCol( deepestSkyCol ); ptr++; ptr->setPosition( 1.f, toTopY, this_z ); ptr->setVertexCol( deepestSkyCol ); ptr++; toTopY+=topYinc; } // now draw down to the other side... ptr->setPosition( -1.f, 0.7f, -1.0f ); ptr->setVertexCol( deepestSkyCol ); ptr++; ptr->setPosition( 1.f, 0.7f, -1.0f ); ptr->setVertexCol( deepestSkyCol ); ptr++; //DeadCode JON 2Nov00 for (i=0;i<steps2;i++) // draw across the top - sort of... //DeadCode JON 2Nov00 { //DeadCode JON 2Nov00 double this_z=fromtop_z[i]; //DeadCode JON 2Nov00 double this_y=fromtop_y[i]; //DeadCode JON 2Nov00 //DeadCode JON 2Nov00 ptr->setPosition( -1.f, this_y, this_z ); //DeadCode JON 2Nov00 ptr->setVertexCol( deepestSkyCol ); //DeadCode JON 2Nov00 ptr++; //DeadCode JON 2Nov00 //DeadCode JON 2Nov00 ptr->setPosition( 1.f, this_y, this_z ); //DeadCode JON 2Nov00 ptr->setVertexCol( deepestSkyCol ); //DeadCode JON 2Nov00 //DeadCode JON 2Nov00 ptr++; //DeadCode JON 2Nov00 } //DeadCode JON 2Nov00 for (i=0;i<steps;i++) // draws up to the back... //DeadCode JON 2Nov00 { //DeadCode JON 2Nov00 double this_z=totop_z[i]; //DeadCode JON 2Nov00 //DeadCode JON 2Nov00 double this_y=1.; //DeadCode JON 2Nov00 //DeadCode JON 2Nov00 //DEADCODE JON 5/24/00 ptr->bodyx.f=-1.f; //DeadCode JON 2Nov00 //DEADCODE JON 5/24/00 ptr->bodyy.f=this_y; //DeadCode JON 2Nov00 //DEADCODE JON 5/24/00 ptr->bodyz.f=this_z; //DeadCode JON 2Nov00 //DEADCODE JON 5/24/00 //DEADCODE JON 4/20/00 ptr->vertexCol=col+rgCol; //DeadCode JON 2Nov00 //DEADCODE JON 5/24/00 ptr->vertexCol=RGBMake(UByte(curR>>16),UByte(curG>>16),UByte(curB>>16)); //DeadCode JON 2Nov00 ptr->setPosition( -1.f, toTopY, this_z ); //DeadCode JON 2Nov00 // if ( i < 7 ) //DeadCode JON 2Nov00 ptr->setVertexCol( RGBMake(UByte(curR>>16),UByte(curG>>16),UByte(curB>>16)) ); //DeadCode JON 2Nov00 // else //DeadCode JON 2Nov00 // ptr->setVertexCol( 0x00FF0000 ); //DeadCode JON 2Nov00 //DeadCode JON 2Nov00 ptr++; //DeadCode JON 2Nov00 //DeadCode JON 2Nov00 //DEADCODE JON 5/24/00 ptr->bodyx.f=1.f; //DeadCode JON 2Nov00 //DEADCODE JON 5/24/00 ptr->bodyy.f=this_y; //DeadCode JON 2Nov00 //DEADCODE JON 5/24/00 ptr->bodyz.f=this_z; //DeadCode JON 2Nov00 //DEADCODE JON 5/24/00 //DEADCODE JON 4/20/00 ptr->vertexCol=col+rgCol; //DeadCode JON 2Nov00 //DEADCODE JON 5/24/00 //DEADCODE JON 4/20/00 rgCol-=rgStep; //DeadCode JON 2Nov00 //DEADCODE JON 5/24/00 ptr->vertexCol=(ptr-1)->vertexCol; //DeadCode JON 2Nov00 ptr->setPosition( 1.f, toTopY, this_z ); //DeadCode JON 2Nov00 ptr->setVertexCol( (ptr-1)->getVertexCol() ); //DeadCode JON 2Nov00 //DeadCode JON 2Nov00 curR+=stepR; //DeadCode JON 2Nov00 curG+=stepG; //DeadCode JON 2Nov00 curB+=stepB; //DeadCode JON 2Nov00 ptr++; //DeadCode JON 2Nov00 //DeadCode JON 2Nov00 toTopY+=topYinc; //DeadCode JON 2Nov00 //DeadCode JON 2Nov00 } //DeadCode JON 2Nov00 //DeadCode JON 2Nov00 for (i=0;i<steps2;i++) // draw across the top - sort of... //DeadCode JON 2Nov00 { //DeadCode JON 2Nov00 double this_z=fromtop_z[i]; //DeadCode JON 2Nov00 double this_y=fromtop_y[i]; //DeadCode JON 2Nov00 //DeadCode JON 2Nov00 //DEADCODE JON 5/24/00 ptr->bodyx.f=-1.f; //DeadCode JON 2Nov00 //DEADCODE JON 5/24/00 ptr->bodyy.f=this_y; //DeadCode JON 2Nov00 //DEADCODE JON 5/24/00 ptr->bodyz.f=this_z; //DeadCode JON 2Nov00 //DEADCODE JON 5/24/00 //DEADCODE JON 4/20/00 ptr->vertexCol=col+rgCol; //DeadCode JON 2Nov00 //DEADCODE JON 5/24/00 ptr->vertexCol=RGBMake(UByte(curR>>16),UByte(curG>>16),UByte(curB>>16)); //DeadCode JON 2Nov00 ptr->setPosition( -1.f, this_y, this_z ); //DeadCode JON 2Nov00 ptr->setVertexCol( RGBMake(UByte(curR>>16),UByte(curG>>16),UByte(curB>>16)) ); //DeadCode JON 2Nov00 ptr++; //DeadCode JON 2Nov00 //DeadCode JON 2Nov00 //DEADCODE JON 5/24/00 ptr->bodyx.f=1.f; //DeadCode JON 2Nov00 //DEADCODE JON 5/24/00 ptr->bodyy.f=this_y; //DeadCode JON 2Nov00 //DEADCODE JON 5/24/00 ptr->bodyz.f=this_z; //DeadCode JON 2Nov00 //DEADCODE JON 5/24/00 //DEADCODE JON 4/20/00 ptr->vertexCol=col+rgCol; //DeadCode JON 2Nov00 //DEADCODE JON 5/24/00 //DEADCODE JON 4/20/00 rgCol-=rgStep; //DeadCode JON 2Nov00 //DEADCODE JON 5/24/00 ptr->vertexCol=(ptr-1)->vertexCol; //DeadCode JON 2Nov00 ptr->setPosition( 1.f, this_y, this_z ); //DeadCode JON 2Nov00 ptr->setVertexCol( (ptr-1)->getVertexCol() ); //DeadCode JON 2Nov00 //DeadCode JON 2Nov00 curR+=stepR; //DeadCode JON 2Nov00 curG+=stepG; //DeadCode JON 2Nov00 curB+=stepB; //DeadCode JON 2Nov00 ptr++; //DeadCode JON 2Nov00 } /* Calculate the number of * polygons required to * render the horizon */ //DeadCode JON 5Oct00 Float dummy; //DeadCode JON 5Oct00 Bool oldZState; const int fudge = 1; //eh, why have I got thids in the wrong place??? over_sun_count-= fudge; SLong behind_sun_count=((SLong(ptr-SHAPE.newco)-2)>>1) - over_sun_count; ptr=SHAPE.newco; { D3DVECTOR scaleVec={fvr,fvr,0.f}; D3DVECTOR trnsVec={0,0,fvr}; g_lpLib3d->PushMatrix(MATRIX_OBJECT); g_lpLib3d->LoadIdentity(MATRIX_OBJECT); g_lpLib3d->PushMatrix(MATRIX_VIEWER); g_lpLib3d->LoadIdentity(MATRIX_VIEWER); g_lpLib3d->Rotate(MATRIX_VIEWER,AXIS_PITCH,(Angles)-(int)pitch); g_lpLib3d->Rotate(MATRIX_VIEWER,AXIS_ROLL,(Angles)-(int)roll); g_lpLib3d->Scale(MATRIX_VIEWER,scaleVec); g_lpLib3d->Translate(MATRIX_VIEWER,trnsVec); g_lpLib3d->Scale(MATRIX_VIEWER, 0.05f ); trnsVec.y=-fvy; trnsVec.z=0; g_lpLib3d->Translate(MATRIX_OBJECT,trnsVec); g_lpLib3d->EnableFogging( false ); } for (i=0;i<over_sun_count;i++) { { Lib3DPoint* pRVerts = g_lpLib3d->BeginPoly(NULL_MATERIAL,4); *pRVerts++=ptr[1]; *pRVerts++=ptr[0]; *pRVerts++=ptr[2]; *pRVerts++=ptr[3]; g_lpLib3d->EndPoly(); } ptr+=2; } g_lpLib3d->Scale(MATRIX_VIEWER, 20.0f ); // make the two horiz points re-transform. #ifndef _NO_VERTEX_SHARING_HDR ptr[0].info.setInvalidWorld(); ptr[1].info.setInvalidWorld(); #endif for (i=0;i<behind_sun_count;i++) { { Lib3DPoint* pRVerts = g_lpLib3d->BeginPoly(NULL_MATERIAL,4); *pRVerts++=ptr[1]; *pRVerts++=ptr[0]; *pRVerts++=ptr[2]; *pRVerts++=ptr[3]; g_lpLib3d->EndPoly(); } ptr+=2; } /* Generate values for fogging * range variables */ //DEADCODE JON 2/1/00 UByte fr=currentLighting.horizonBase.red(), //DEADCODE JON 2/1/00 fg=currentLighting.horizonBase.green(), //DEADCODE JON 2/1/00 fb=currentLighting.horizonBase.blue(); //deadcode currscreen->DoGammaCorr(fr,fg,fb); //deadcode GreyPalette(&fr,&fg,&fb); //deadcode currscreen->DoSetHorizonColour(fr,fg,fb); //DEADCODE JON 4/19/00 //DEADCODE JON 4/19/00 SLong fogdist,fogbegin; //DEADCODE JON 4/19/00 //DEADCODE JON 4/19/00 //DEADCODE JON 2/1/00 double frsq=double(viewer_y)*double(viewer_y)+double(view_range)*double(view_range); //DEADCODE JON 4/19/00 double frsq=double(viewer_y)*double(viewer_y)+double(_blockWidth*_horizonDist)*double(_blockWidth*_horizonDist); //DEADCODE JON 4/19/00 //DEADCODE JON 4/19/00 _asm{ //DEADCODE JON 4/19/00 fld frsq; //DEADCODE JON 4/19/00 fsqrt; //DEADCODE JON 4/19/00 fstp frsq; //DEADCODE JON 4/19/00 } //DEADCODE JON 4/19/00 //DEADCODE JON 4/19/00 if (frsq>MissManCampSky().Visibility) frsq=MissManCampSky().Visibility; //DEADCODE JON 4/19/00 //DEADCODE JON 4/19/00 fogdist=SLong(frsq); //DEADCODE JON 4/19/00 //DEADCODE JON 4/19/00 if (!Save_Data.detail_3d[DETAIL3D_HORIZONFADE]) fogbegin=fogdist>>1; //DEADCODE JON 4/19/00 else fogbegin=fogdist-(fogdist>>3); //DEADCODE JON 4/19/00 groundFogBegin=fogbegin; //DEADCODE JON 4/19/00 groundFogEnd=fogdist; //DEADCODE JON 4/19/00 SetFogMode(fogbegin,fogdist); //DEADCODE JON 4/19/00 //DEADCODE JON 4/19/00 cloud_base=Cloud_Layer_Height=_cloudLayerHeight; g_lpLib3d->PopMatrix(MATRIX_VIEWER); // now draw in the sun... g_lpLib3d->LoadIdentity(MATRIX_OBJECT); // sunPos: pos // SUNMAPNO: imagemap // 0->63: coords DoPointStruc sunCenter; sunCenter.setPosition( sunPos.ni.i, sunPos.nj.i, sunPos.nk.i ); // make the sun bigger as it approaches the horizon const int SCALE_SUN_HT = 300000; D3DVALUE sunRad = 10667.f; if ( sunPos.nj.i < SCALE_SUN_HT ) { sunRad*= 1.0f + D3DVALUE(SCALE_SUN_HT - sunPos.nj.i )/D3DVALUE(SCALE_SUN_HT*2.0); } g_lpLib3d->DrawSphere( HMATERIAL(Image_Map.GetImageMapPtr(SUNMAPNO)), sunCenter, sunRad, ANGLES_0Deg, 0, 0, 63, 63 ); g_lpLib3d->PopMatrix(MATRIX_OBJECT); g_lpLib3d->FlushAsBackground(); SetFogBand(); g_lpLib3d->SetObjectLighting( lf ); g_lpLib3d->EnableFogging( true ); } //컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴 //Procedure StripHorizon //Author Paul. //Date Fri 9 Oct 1998 //------------------------------------------------------------------------------ //DEADCODE JON 2/1/00 void LandScape::StripHorizon() //DEADCODE JON 2/1/00 { //DEADCODE JON 2/1/00 struct SHCoords {Float X,Y,Z;} HStripPts[]= //DEADCODE JON 2/1/00 { //DEADCODE JON 2/1/00 {-1,0,1}, {1,0,1}, //DEADCODE JON 2/1/00 {-1,.125,1}, {1,.125,1}, //DEADCODE JON 2/1/00 {-1,.2-.0125,1},{1,.2-.0125,1}, //DEADCODE JON 2/1/00 {-1,.2,1}, {1,.2,1}, //cloud layer //DEADCODE JON 2/1/00 {-1,.2125,1}, {1,.2125,1}, //DEADCODE JON 2/1/00 {-1,.4,1}, {1,.4,1}, //DEADCODE JON 2/1/00 {-1,.6,1}, {1,.6,1}, //DEADCODE JON 2/1/00 {-1,.8,1}, {1,.8,1}, //DEADCODE JON 2/1/00 {-1,1,.75}, {1,1,.75}, //DEADCODE JON 2/1/00 {-1,1,.5}, {1,1,.5}, //DEADCODE JON 2/1/00 {-1,1,.25}, {1,1,.25}, //DEADCODE JON 2/1/00 {-1,1,0}, {1,1,0}, //point directly over head //DEADCODE JON 2/1/00 {-1,1,-.25}, {1,1,-.25}, //DEADCODE JON 2/1/00 {-1,1,-.5}, {1,1,-.5}, //DEADCODE JON 2/1/00 {-1,1,-.75}, {1,1,-.75}, //DEADCODE JON 2/1/00 {-1,.8,-1}, {1,.8,-1} //DEADCODE JON 2/1/00 }; //DEADCODE JON 2/1/00 //DEADCODE JON 2/1/00 //DEADCODE JON 2/1/00 //DEADCODE JON 2/1/00 struct SStripPoly {SLong v[4];} HStripPoly[]= //DEADCODE JON 2/1/00 { //DEADCODE JON 2/1/00 {0,2,3,1}, //DEADCODE JON 2/1/00 {2,4,5,3}, //DEADCODE JON 2/1/00 {4,6,7,5}, //DEADCODE JON 2/1/00 {6,8,9,7}, //DEADCODE JON 2/1/00 {8,10,11,9}, //DEADCODE JON 2/1/00 {10,12,13,11}, //DEADCODE JON 2/1/00 {12,14,15,13}, //DEADCODE JON 2/1/00 {14,16,17,15}, //DEADCODE JON 2/1/00 {16,18,19,17}, //DEADCODE JON 2/1/00 {18,20,21,19}, //DEADCODE JON 2/1/00 {20,22,23,21}, //DEADCODE JON 2/1/00 {22,24,25,23}, //DEADCODE JON 2/1/00 {24,26,27,25}, //DEADCODE JON 2/1/00 {26,28,29,27}, //DEADCODE JON 2/1/00 {28,30,31,29} //DEADCODE JON 2/1/00 }; //DEADCODE JON 2/1/00 //DEADCODE JON 2/1/00 const SLong _stripPoints=sizeof(HStripPts)/sizeof(fpCOORDS3D); //DEADCODE JON 2/1/00 const SLong _stripPolys=sizeof(HStripPoly)/sizeof(SStripPoly); //DEADCODE JON 2/1/00 //DEADCODE JON 2/1/00 const SLong _topOfTheWorld=10; //DEADCODE JON 2/1/00 SLong curIndex=0; //DEADCODE JON 2/1/00 //DEADCODE JON 2/1/00 _cloudLayerHeight=HStripPts[6].Y*Float(CEILING_ALT); //DEADCODE JON 2/1/00 //DEADCODE JON 2/1/00 FPMATRIX mat,scale; //DEADCODE JON 2/1/00 Bool oldZState; //DEADCODE JON 2/1/00 Float dummy=0.; //DEADCODE JON 2/1/00 UByte br,bg,bb; //DEADCODE JON 2/1/00 UByte tr,tg,tb; //DEADCODE JON 2/1/00 //DEADCODE JON 2/1/00 br=currentLighting.horizonBase.red(); //DEADCODE JON 2/1/00 bg=currentLighting.horizonBase.green(); //DEADCODE JON 2/1/00 bb=currentLighting.horizonBase.blue(); //DEADCODE JON 2/1/00 //DEADCODE JON 2/1/00 tr=currentLighting.horizonMid.red(); //DEADCODE JON 2/1/00 tg=currentLighting.horizonMid.green(); //DEADCODE JON 2/1/00 tb=currentLighting.horizonMid.blue(); //DEADCODE JON 2/1/00 //DEADCODE JON 2/1/00 //DEADCODE PD 03/12/99 GreyPalette(&br,&bg,&bb); //DEADCODE JON 2/1/00 //DEADCODE PD 03/12/99 GreyPalette(&tr,&tg,&tb); //DEADCODE JON 2/1/00 //DEADCODE JON 2/1/00 //TempCode PD 01Dec99 currscreen->DoSetHorizonColour(br,bg,bb); //DEADCODE JON 2/1/00 //DEADCODE JON 2/1/00 //calculate horizontal scaling factor for the //DEADCODE JON 2/1/00 //horizon object based on the view cone //DEADCODE JON 2/1/00 //DEADCODE JON 2/1/00 Float fvr=Float(view_range); //DEADCODE JON 2/1/00 Float fvy=Float(viewer_y)/Float(CEILING_ALT); //DEADCODE JON 2/1/00 //DEADCODE JON 2/1/00 //false horizon test code //DEADCODE JON 2/1/00 //DEADCODE JON 2/1/00 // Float hy=fvy*99./100.; //DEADCODE JON 2/1/00 //DEADCODE JON 2/1/00 // HStripPts[2].Y=HStripPts[3].Y=hy; //DEADCODE JON 2/1/00 //DEADCODE JON 2/1/00 Float *m=(Float*)&mat, //DEADCODE JON 2/1/00 *s=(Float*)&scale; //DEADCODE JON 2/1/00 //DEADCODE JON 2/1/00 _matrix.Generate(ANGLES_0Deg,View_Point->pitch,View_Point->roll,&mat); //DEADCODE JON 2/1/00 //DEADCODE JON 2/1/00 s[0]=s[8]=fvr; //DEADCODE JON 2/1/00 s[4]=Float(CEILING_ALT); //DEADCODE JON 2/1/00 s[1]=s[2]=s[3]=s[5]=s[6]=s[7]=0; //DEADCODE JON 2/1/00 //DEADCODE JON 2/1/00 _matrix.multiply(&scale,&mat); //DEADCODE JON 2/1/00 //DEADCODE JON 2/1/00 //transform all the points using this matrix //DEADCODE JON 2/1/00 //DEADCODE JON 2/1/00 DoPointStruc* pdp=SHAPE.newco; //DEADCODE JON 2/1/00 SHCoords* psp=HStripPts; //DEADCODE JON 2/1/00 //DEADCODE JON 2/1/00 for (SLong i=_stripPoints;i--;) //DEADCODE JON 2/1/00 { //DEADCODE JON 2/1/00 Float py=psp->Y-fvy; //DEADCODE JON 2/1/00 pdp->bodyx.f=s[0]*psp->X+s[1]*py+s[2]*psp->Z; //DEADCODE JON 2/1/00 pdp->bodyy.f=s[3]*psp->X+s[4]*py+s[5]*psp->Z; //DEADCODE JON 2/1/00 pdp->bodyz.f=s[6]*psp->X+s[7]*py+s[8]*psp->Z; //DEADCODE JON 2/1/00 pdp++; //DEADCODE JON 2/1/00 psp++; //DEADCODE JON 2/1/00 } //DEADCODE JON 2/1/00 //DEADCODE JON 2/1/00 //render the polys //DEADCODE JON 2/1/00 //DEADCODE JON 2/1/00 DoPointStruc* pp[4]; //DEADCODE JON 2/1/00 //DEADCODE JON 2/1/00 //draw the strip along the edge of the horizon first //DEADCODE JON 2/1/00 //DEADCODE JON 2/1/00 pp[0]=SHAPE.newco+HStripPoly[curIndex].v[0]; //DEADCODE JON 2/1/00 pp[1]=SHAPE.newco+HStripPoly[curIndex].v[1]; //DEADCODE JON 2/1/00 pp[2]=SHAPE.newco+HStripPoly[curIndex].v[2]; //DEADCODE JON 2/1/00 pp[3]=SHAPE.newco+HStripPoly[curIndex].v[3]; //DEADCODE JON 2/1/00 GStrip(pp,br,bg,bb,tr,tg,tb); //DEADCODE JON 2/1/00 curIndex++; //DEADCODE JON 2/1/00 //DEADCODE JON 2/1/00 //next, draw the strip between the last one and the one under //DEADCODE JON 2/1/00 //the base of the cloud layer //DEADCODE JON 2/1/00 //DEADCODE JON 2/1/00 br=tr; //DEADCODE JON 2/1/00 bg=tg; //DEADCODE JON 2/1/00 bb=tb; //DEADCODE JON 2/1/00 // #pragma message(__HERE__ "PUT THIS BACK AFTER THE RUNNING DEMO") //DEADCODE JON 2/1/00 tr=currentLighting.horizonUnderClouds.red(); //DEADCODE JON 2/1/00 tg=currentLighting.horizonUnderClouds.green(); //DEADCODE JON 2/1/00 tb=currentLighting.horizonUnderClouds.blue(); //DEADCODE JON 2/1/00 // currscreen->DoGammaCorr(tr,tg,tb); //DEADCODE JON 2/1/00 //DEADCODE PD 03/12/99 GreyPalette(&tr,&tg,&tb); //DEADCODE JON 2/1/00 pp[0]=SHAPE.newco+HStripPoly[curIndex].v[0]; //DEADCODE JON 2/1/00 pp[1]=SHAPE.newco+HStripPoly[curIndex].v[1]; //DEADCODE JON 2/1/00 pp[2]=SHAPE.newco+HStripPoly[curIndex].v[2]; //DEADCODE JON 2/1/00 pp[3]=SHAPE.newco+HStripPoly[curIndex].v[3]; //DEADCODE JON 2/1/00 GStrip(pp,br,bg,bb,tr,tg,tb); //DEADCODE JON 2/1/00 curIndex++; //DEADCODE JON 2/1/00 //DEADCODE JON 2/1/00 //next, draw the strip under the base of the cloud layer //DEADCODE JON 2/1/00 //DEADCODE JON 2/1/00 br=tr; //DEADCODE JON 2/1/00 bg=tg; //DEADCODE JON 2/1/00 bb=tb; //DEADCODE JON 2/1/00 tr=currentLighting.horizonAtClouds.red(); //DEADCODE JON 2/1/00 tg=currentLighting.horizonAtClouds.green(); //DEADCODE JON 2/1/00 tb=currentLighting.horizonAtClouds.blue(); //DEADCODE JON 2/1/00 // currscreen->DoGammaCorr(tr,tg,tb); //DEADCODE JON 2/1/00 //DEADCODE PD 03/12/99 GreyPalette(&tr,&tg,&tb); //DEADCODE JON 2/1/00 pp[0]=SHAPE.newco+HStripPoly[curIndex].v[0]; //DEADCODE JON 2/1/00 pp[1]=SHAPE.newco+HStripPoly[curIndex].v[1]; //DEADCODE JON 2/1/00 pp[2]=SHAPE.newco+HStripPoly[curIndex].v[2]; //DEADCODE JON 2/1/00 pp[3]=SHAPE.newco+HStripPoly[curIndex].v[3]; //DEADCODE JON 2/1/00 GStrip(pp,br,bg,bb,tr,tg,tb); //DEADCODE JON 2/1/00 curIndex++; //DEADCODE JON 2/1/00 //DEADCODE JON 2/1/00 //next, draw the strip above the top of the cloud layer //DEADCODE JON 2/1/00 //DEADCODE JON 2/1/00 br=tr; //DEADCODE JON 2/1/00 bg=tg; //DEADCODE JON 2/1/00 bb=tb; //DEADCODE JON 2/1/00 tr=currentLighting.horizonAboveClouds.red(); //DEADCODE JON 2/1/00 tg=currentLighting.horizonAboveClouds.green(); //DEADCODE JON 2/1/00 tb=currentLighting.horizonAboveClouds.blue(); //DEADCODE JON 2/1/00 // currscreen->DoGammaCorr(tr,tg,tb); //DEADCODE JON 2/1/00 //DEADCODE PD 03/12/99 GreyPalette(&tr,&tg,&tb); //DEADCODE JON 2/1/00 pp[0]=SHAPE.newco+HStripPoly[curIndex].v[0]; //DEADCODE JON 2/1/00 pp[1]=SHAPE.newco+HStripPoly[curIndex].v[1]; //DEADCODE JON 2/1/00 pp[2]=SHAPE.newco+HStripPoly[curIndex].v[2]; //DEADCODE JON 2/1/00 pp[3]=SHAPE.newco+HStripPoly[curIndex].v[3]; //DEADCODE JON 2/1/00 GStrip(pp,br,bg,bb,tr,tg,tb); //DEADCODE JON 2/1/00 curIndex++; //DEADCODE JON 2/1/00 //DEADCODE JON 2/1/00 //next, draw all the strips between here and the top of the world //DEADCODE JON 2/1/00 //DEADCODE JON 2/1/00 SLong rval,gval,bval; //DEADCODE JON 2/1/00 SLong rdda,gdda,bdda; //DEADCODE JON 2/1/00 //DEADCODE JON 2/1/00 br=tr; //DEADCODE JON 2/1/00 bg=tg; //DEADCODE JON 2/1/00 bb=tb; //DEADCODE JON 2/1/00 rval=SLong(br)<<8; //DEADCODE JON 2/1/00 gval=SLong(bg)<<8; //DEADCODE JON 2/1/00 bval=SLong(bb)<<8; //DEADCODE JON 2/1/00 tr=currentLighting.horizonTop.red(); //DEADCODE JON 2/1/00 tg=currentLighting.horizonTop.green(); //DEADCODE JON 2/1/00 tb=currentLighting.horizonTop.blue(); //DEADCODE JON 2/1/00 // currscreen->DoGammaCorr(tr,tg,tb); //DEADCODE JON 2/1/00 //DEADCODE PD 03/12/99 GreyPalette(&tr,&tg,&tb); //DEADCODE JON 2/1/00 //DEADCODE JON 2/1/00 // #pragma message(__HERE__ "PUT THIS BACK AFTER THE RUNNING DEMO") //DEADCODE JON 2/1/00 rdda=((SLong(tr)<<8)-rval)/(1+_topOfTheWorld-curIndex); //DEADCODE JON 2/1/00 gdda=((SLong(tg)<<8)-gval)/(1+_topOfTheWorld-curIndex); //DEADCODE JON 2/1/00 bdda=((SLong(tb)<<8)-bval)/(1+_topOfTheWorld-curIndex); //DEADCODE JON 2/1/00 rdda=gdda=bdda=0; //DEADCODE JON 2/1/00 //DEADCODE JON 2/1/00 for (;curIndex<=_topOfTheWorld;curIndex++) //DEADCODE JON 2/1/00 { //DEADCODE JON 2/1/00 pp[0]=SHAPE.newco+HStripPoly[curIndex].v[0]; //DEADCODE JON 2/1/00 pp[1]=SHAPE.newco+HStripPoly[curIndex].v[1]; //DEADCODE JON 2/1/00 pp[2]=SHAPE.newco+HStripPoly[curIndex].v[2]; //DEADCODE JON 2/1/00 pp[3]=SHAPE.newco+HStripPoly[curIndex].v[3]; //DEADCODE JON 2/1/00 rval+=rdda; //DEADCODE JON 2/1/00 gval+=gdda; //DEADCODE JON 2/1/00 bval+=bdda; //DEADCODE JON 2/1/00 tr=UByte(rval>>8); //DEADCODE JON 2/1/00 tg=UByte(gval>>8); //DEADCODE JON 2/1/00 tb=UByte(bval>>8); //DEADCODE JON 2/1/00 GStrip(pp,br,bg,bb,tr,tg,tb); //DEADCODE JON 2/1/00 br=tr; //DEADCODE JON 2/1/00 bg=tg; //DEADCODE JON 2/1/00 bb=tb; //DEADCODE JON 2/1/00 } //DEADCODE JON 2/1/00 //DEADCODE JON 2/1/00 for (;curIndex<_stripPolys;curIndex++) //DEADCODE JON 2/1/00 { //DEADCODE JON 2/1/00 pp[0]=SHAPE.newco+HStripPoly[curIndex].v[0]; //DEADCODE JON 2/1/00 pp[1]=SHAPE.newco+HStripPoly[curIndex].v[1]; //DEADCODE JON 2/1/00 pp[2]=SHAPE.newco+HStripPoly[curIndex].v[2]; //DEADCODE JON 2/1/00 pp[3]=SHAPE.newco+HStripPoly[curIndex].v[3]; //DEADCODE JON 2/1/00 GStrip(pp,br,bg,bb,br,bg,bb); //DEADCODE JON 2/1/00 } //DEADCODE JON 2/1/00 //DEADCODE JON 2/1/00 SLong fogdist,fogbegin; //DEADCODE JON 2/1/00 //DEADCODE JON 2/1/00 Float frsq=Float(viewer_y)*Float(viewer_y)+fvr*fvr; //DEADCODE JON 2/1/00 //DEADCODE JON 2/1/00 _asm //DEADCODE JON 2/1/00 { //DEADCODE JON 2/1/00 fld frsq; //DEADCODE JON 2/1/00 fsqrt; //DEADCODE JON 2/1/00 fstp frsq; //DEADCODE JON 2/1/00 } //DEADCODE JON 2/1/00 //DEADCODE JON 2/1/00 //force fog to match visibility settings //DEADCODE JON 2/1/00 //DEADCODE JON 2/1/00 if (frsq>MMC.Sky.Visibility) frsq=MMC.Sky.Visibility; //DEADCODE JON 2/1/00 //DEADCODE JON 2/1/00 //test code... Set visibility to 1km //DEADCODE JON 2/1/00 //DEADCODE JON 2/1/00 fogdist=SLong(frsq); //DEADCODE JON 2/1/00 //DEADCODE JON 2/1/00 if (!Save_Data.detail_3d[DETAIL3D_HORIZONFADE]) fogbegin=fogdist>>1; //DEADCODE JON 2/1/00 else fogbegin=fogdist-(fogdist>>2); //DEADCODE JON 2/1/00 //DEADCODE JON 2/1/00 groundFogBegin=fogbegin; //DEADCODE JON 2/1/00 groundFogEnd=fogdist; //DEADCODE JON 2/1/00 SetFogMode(fogbegin,fogdist); //DEADCODE JON 2/1/00 } //컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴 //Procedure GenerateGroundPoints //LastModified: PD 22May96 //Author Paul. //Date Fri 5 Jan 1996 // //Description // //Inputs // //Returns // //------------------------------------------------------------------------------ void LandScape::GenerateGroundPoints( SLong range, SLong width, SLong& wx1, SLong& wz1, SLong& wx2, SLong& wz2) { SWord sin_theta,cos_theta; SWord scale; SWord wscale; SWord rsign; ANGLES heading = (ANGLES )(-viewer_hdg); //PD 12Mar96 //Scale the range value to prevent o'flows if (range<0) { range= -range; rsign= -1; } else { rsign= 1; } for(scale=0;range>0x07FFF;range>>=1,scale++); if (rsign==-1) range= -range; //PD 22May96 for(wscale=0;width>0x07FFF;width>>=1,wscale++); //PD 22May96 wscale++; //PD 15Apr97 Math_Lib.high_sin_cos(heading,sin_theta,cos_theta); //PD 23Feb96 SLong wx_mid,wz_mid; wx_mid = (range * (SLong )sin_theta)/ANGLES_FRACT; //PD 12Mar96 wx_mid <<= scale; //PD 12Mar96 wz_mid = (range * (SLong )cos_theta)/ANGLES_FRACT; //PD 12Mar96 wz_mid <<= scale; //PD 12Mar96 SLong wx_delta,wz_delta; wx_delta = (width * (SLong )cos_theta)/ANGLES_FRACT; //PD 22May96 wx_delta <<= wscale; //PD 22May96 wz_delta = (width * (SLong )sin_theta)/ANGLES_FRACT; //PD 22May96 wz_delta <<= wscale; //PD 22May96 wx1 = viewer_x + wx_mid - wx_delta; wz1 = viewer_z + wz_mid + wz_delta; wx2 = viewer_x + wx_mid + wx_delta; wz2 = viewer_z + wz_mid - wz_delta; } //컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴 //Procedure IntenseFromRange //LastModified: PD 07Jun96 //Author Paul. //Date Thu 11 Jan 1996 // //Description // //Inputs // //Returns // //------------------------------------------------------------------------------ SWord LandScape::IntensFromRange(SLong range) { SWord retval; SLong rangedelta,fadedelta; if (range>fade_band_end) return(255); rangedelta = fade_band_end - fade_band_start; if (range<fade_band_start-rangedelta) return(-255); if (range>=fade_band_start) { fadedelta = range - fade_band_start; if (fadedelta<0x7FFFFF) retval = (fadedelta<<8)/rangedelta; else retval = (fadedelta/(rangedelta>>8)); } else { fadedelta = fade_band_start - range; if (fadedelta<0x7FFFFF) retval = (fadedelta<<8)/rangedelta; else retval = (fadedelta/(rangedelta>>8)); retval =- retval; } //Clip to max and min. //PD 26Nov96 if (retval<-0xFF) retval=-0xFF; //PD 27Nov96 if (retval>0xFF) retval=0xFF; //PD 27Nov96 return(retval); } //컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴 //Procedure SetViewDetail //LastModified: PD 25Mar98 //Author Paul. //Date Tue 12 Mar 1996 // //Description // //Inputs // //Returns // //------------------------------------------------------------------------------ SLong LandScape::SetViewDetail() { //Height is the actual height above the current piece of ground data SLong height; height=viewer_y-GetGroundLevel(*View_Point); //PD 20Aug98 SLong viewer_range; viewer_range=(0x1F1CDA>>1); gnd_band_start=0x160000;//0x5A828; if (Key_Tests.KeyPress3d(DETAILUP)) IncDetailLevel(); else if (Key_Tests.KeyPress3d(DETAILDN)) DecDetailLevel(); shape_band_start=viewer_range-(viewer_range>>2); //DEADCODE JON 2/1/00 view_range=viewer_range; //DEADCODE JON 2/1/00 CalcVisibleRanges(view_range,viewer_y); //DEADCODE JON 4/19/00 CalcVisibleRanges(_blockWidth*_horizonDist,viewer_y); CalcVisibleRanges(view_dist,viewer_y); //DEADCODE PD 02/12/99 _matrix.SetViewParams(currscreen,Save_Data.fieldOfView,gvisrange); gnd_band_end = gvisrange; sky_band_end = cvisrange; fade_band_start = gnd_band_start; fade_band_end = gnd_band_end; //DeadCode JON 20Oct00 SLong fogstart=gnd_band_start; //DeadCode JON 20Oct00 SLong fogend=gvisrange; gnd_band_end=sky_band_end=viewer_range; //DEADCODE PD 02/12/99 currscreen->DoSetFogState(TRUE); //DEADCODE PD 02/12/99 currscreen->DoSetMatrices(gvisrange,viewconeangle); // g_lpLib3d->SetProjectionMatrix(Angles(Save_Data.fieldOfView>>1),1,1,gvisrange); //DEADCODE PD 01/12/99 currscreen->HCls(FALSE); //DEADCODE PD 01/12/99 POLYGON.setpolyscrn(currscreen,gvisrange,viewconeangle); return(height); } //컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴 //Procedure CalcVisibleRanges //Author Paul. //Date Thu 14 Nov 1996 // //Description Caclulates visible ranges for ground and cloud tiles - takes // account of the aircrafts altitude // //Inputs flat visible distance // viewer_y // //Returns visible ranges for; // ground tiles - gvisrange // cloud tiles - cvisrange // //------------------------------------------------------------------------------ void LandScape::CalcVisibleRanges(SLong flatd,SLong alt) { //Ground tile distance first SLong dx = (flatd>=0)?flatd:-flatd; SLong dy = (alt>=0)?alt:-alt; //PD 12Dec96 if (dy>dx) {int tmp=dx;dx=dy;dy=tmp;} //PD 19Aug97 gvisrange = dx; dy >>= 2; gvisrange += dy; dy >>= 2; gvisrange += dy; dy >>= 1; gvisrange += dy; //Under cloud distance next dx = (flatd>=0)?flatd:-flatd; //PD 27Sep97 dy = (Cloud_Layer_Height - alt); dy = (dy>=0)?dy:-dy; if (dy>dx) {int tmp=dx;dx=dy;dy=tmp;} //PD 02Oct97 cvisrange = dx; dy >>= 2; cvisrange += dy; dy >>= 2; cvisrange += dy; dy >>= 1; cvisrange += dy; //Modify fade ranges based on the viewers altitude for //hardware version ONLY dx = gnd_band_start; dy = (alt<0)?-alt:alt; if (dy>dx) {int tmp=dx;dx=dy;dy=tmp;} dy>>=2; dx+= dy; dy>>=2; dx+=dy; dy>>=1; dx+=dy; if (dx<gnd_band_end) gnd_band_start=dx; else gnd_band_start=gnd_band_end; } //컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴 //Procedure BadVision //Author Paul. //Date Thu 20 Jun 1996 // //Description Sets blackout stuff going // //Inputs // //Returns // //------------------------------------------------------------------------------ Bool LandScape::BadVision() { if (!Save_Data.hardwareconfig[HW_GEFFECTS] && !Save_Data.hardwareconfig[HW_INJURYEFFECTS] && !Save_Data.hardwareconfig[HW_WHITEOUT]) return FALSE; TDFadeType tdftFadeType; //PD 05Jun97 Bool retval; Bool forceredfade=FALSE; //RJS 21Oct97 const SLong fademax = 255; AirStruc* acptr = Manual_Pilot.ControlledAC2; if (acptr) { // dont have blackouts in replay playback or in comms sync phase if( _Replay.Playback //RJS 27Jul00 || (_DPlay.Implemented && !_DPlay.synched) //RJS 27Jul00 || (Manual_Pilot.controlmode==ManualPilot::PILOTDEAD) //RJS 27Jul00 || acptr->weap.Ejected ) //RJS 27Jul00 { blackingout = 0; redingout = 0; } else { if (Save_Data.hardwareconfig[HW_GEFFECTS]) { FP Blood = acptr->fly.pModel->Blood; //CSB 09/06/99 FP Blackout, Redout; for(;;) { if(Blood < 0.3333) { Redout = 0; Blackout = 1; break; } if(Blood < 0.6667) { Redout = 0; Blackout = 2 - 3 * Blood; break; } if(Blood < 1.1667) { Redout = 0; Blackout = 0; break; } if(Blood < 1.3333) { Blackout = 0; Redout = 6 * Blood - 7; break; } Redout = 1; Blackout = 0; break; } blackingout = UWord(fademax * Blackout); redingout = UWord(fademax * Redout); if((redingout) || (Blood == 1)) forceredfade = TRUE; //CSB 09/06/99 } ULong injuryredout = 0; if(Save_Data.hardwareconfig[HW_INJURYEFFECTS]) { if (gunnerDead) //RJS 24Oct00 { redingout = 100; forceredfade = TRUE; } else { if (acptr->classtype->aerobaticfactor != AEROBATIC_LOW) //RJS 24Oct00 { AircraftAnimData *adptr = (AircraftAnimData*)acptr->Anim; if(adptr->CANOPY != 255) injuryredout = adptr->CANOPY * 32; if(injuryredout > 127) injuryredout = 127; if((injuryredout > redingout) && (injuryredout > blackingout)) { redingout = injuryredout; forceredfade = TRUE; } } } } } } if ( forceredfade ) { g_lpLib3d->DoFade( 0x952424, redingout ); } else if ( blackingout ) { g_lpLib3d->DoFade( 0, blackingout ); } //DeadCode RJS 20Apr00 return TRUE; if (!blackingout) //RJS 21Oct97 { //White out test here if (Save_Data.hardwareconfig[HW_WHITEOUT]) //RJS 21Oct97 { if (SHAPE.SunInVision) { whitingout++; if (whitingout>fademax) //RJS 12Jun98 whitingout = fademax; //RJS 12Jun98 } else { whitingout--; if (whitingout<0) whitingout = 0; } g_lpLib3d->DoWhiteOut( 0xFFFFFF, whitingout, sun_screen_x, sun_screen_y, sun_glare );//RJS 20Apr00 } else { if (whitingout) g_lpLib3d->DoWhiteOut( 0xFFFFFF, 0, 0, 0, 0 ); //RJS 20Apr00 whitingout = 0; //RJS 21Oct97 } } return TRUE; //DEADCODE JON 4/11/00 if (blackingout || forceredfade || whitingout) //DEADCODE JON 4/11/00 { //DEADCODE JON 4/11/00 //There will only be 1 fade at a time. //DEADCODE JON 4/11/00 //The priorities are as follows... //DEADCODE JON 4/11/00 //red should come first, cos that means you're dead. //DEADCODE JON 4/11/00 //Redout > Blackout > Whiteout //DEADCODE JON 4/11/00 //DEADCODE JON 4/11/00 GREY3DTYPE gtdt; //DEADCODE JON 4/11/00 //DEADCODE JON 4/11/00 Bool fading=FALSE; //DEADCODE JON 4/11/00 //DEADCODE JON 4/11/00 if (forceredfade) //RJS 21Oct97 //DEADCODE JON 4/11/00 { //DEADCODE JON 4/11/00 gtdt = (GREY3DTYPE )redingout; //RJS 21Oct97 //DEADCODE JON 4/11/00 tdftFadeType = _BLACKOUT; //PD 05Jun97 //DEADCODE JON 4/11/00 fading=TRUE; //PD 27Nov96 //DEADCODE JON 4/11/00 } //DEADCODE JON 4/11/00 else //DEADCODE JON 4/11/00 { //DEADCODE JON 4/11/00 if (blackingout) //RJS 21Oct97 //DEADCODE JON 4/11/00 { //DEADCODE JON 4/11/00 gtdt = (GREY3DTYPE )blackingout; //RJS 21Oct97 //DEADCODE JON 4/11/00 tdftFadeType = _REDOUT; //PD 05Jun97 //DEADCODE JON 4/11/00 fading=TRUE; //PD 27Nov96 //DEADCODE JON 4/11/00 } //DEADCODE JON 4/11/00 else //DEADCODE JON 4/11/00 { //DEADCODE JON 4/11/00 if (whitingout) //RJS 21Oct97 //DEADCODE JON 4/11/00 { //DEADCODE JON 4/11/00 gtdt = (GREY3DTYPE )whitingout; //DEADCODE JON 4/11/00 tdftFadeType = _WHITEOUT; //PD 05Jun97 //DEADCODE JON 4/11/00 fading=TRUE; //PD 27Nov96 //DEADCODE JON 4/11/00 } //DEADCODE JON 4/11/00 } //DEADCODE JON 4/11/00 } //DEADCODE JON 4/11/00 //DEADCODE JON 4/11/00 if (fading) //PD 27Nov96 //DEADCODE JON 4/11/00 { //PD 09Sep96 //DEADCODE JON 4/11/00 TWODEFFECT tde=TDE_UNIFORM; //DEADCODE JON 4/11/00 //DEADCODE JON 4/11/00 //DEADCODE PD 01/12/99 if (!Save_Data.fSoftware) //DEADCODE JON 4/11/00 //DEADCODE PD 01/12/99 { //DEADCODE JON 4/11/00 Colour tCol; //DEADCODE JON 4/11/00 switch (tdftFadeType) //DEADCODE JON 4/11/00 { //DEADCODE JON 4/11/00 case _WHITEOUT: tCol = WHITE; tde = TDE_INSIDE2OUT; break; //DEADCODE JON 4/11/00 case _BLACKOUT: tCol = RED; tde = TDE_OUTSIDE2IN; break; //DEADCODE JON 4/11/00 case _REDOUT: tCol = BLACK; tde = TDE_OUTSIDE2IN; break; //DEADCODE JON 4/11/00 } //DEADCODE JON 4/11/00 //DEADCODE JON 4/11/00 //DEADCODE PD 02/12/99 currscreen->DoSetFade(tCol,((SLong)gtdt)>>1,tde);//RJS 12Jun98 //DEADCODE JON 4/11/00 //DEADCODE PD 01/12/99 } //DEADCODE JON 4/11/00 //DEADCODE PD 01/12/99 else //DEADCODE JON 4/11/00 //DEADCODE PD 01/12/99 { //DEADCODE JON 4/11/00 //DEADCODE PD 01/12/99 switch (tdftFadeType) //DEADCODE JON 4/11/00 //DEADCODE PD 01/12/99 { //DEADCODE JON 4/11/00 //DEADCODE PD 01/12/99 case _WHITEOUT: POLYGON.SetSoftwareFades(2,UWord(gtdt)>>1); break; //DEADCODE JON 4/11/00 //DEADCODE PD 01/12/99 case _BLACKOUT: POLYGON.SetSoftwareFades(1,UWord(gtdt)>>1); break; //DEADCODE JON 4/11/00 //DEADCODE PD 01/12/99 case _REDOUT: POLYGON.SetSoftwareFades(0,UWord(gtdt)>>1); break; //DEADCODE JON 4/11/00 //DEADCODE PD 01/12/99 } //DEADCODE JON 4/11/00 //DEADCODE PD 01/12/99 } //DEADCODE JON 4/11/00 } //PD 09Sep96 //DEADCODE JON 4/11/00 //DEADCODE JON 4/11/00 retval = TRUE; //DEADCODE JON 4/11/00 } //DEADCODE JON 4/11/00 else //DEADCODE JON 4/11/00 { //DEADCODE JON 4/11/00 retval = FALSE; //DEADCODE JON 4/11/00 } //DEADCODE JON 4/11/00 //DEADCODE JON 4/11/00 return (retval); } //컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴 //Procedure GetFadeStart //Author Martin Alderton //Date Thu 9 May 1996 // //Description // //Inputs // //Returns // //------------------------------------------------------------------------------ SLong LandScape::GetFadeStart() { SLong retval = shape_band_start; //fade_band_start; //RDH 17Dec96 return(retval); } //컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴 //Procedure GetFadeEnd //Author Martin Alderton //Date Thu 9 May 1996 // //Description // //Inputs // //Returns // //------------------------------------------------------------------------------ SLong LandScape::GetFadeEnd() { SLong retval = fade_band_end; return(retval); } //컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴 //Procedure CloudLayer //Author Paul. //Date Thu 5 Dec 1996 // //Description // //Inputs // //Returns // //------------------------------------------------------------------------------ //DEADCODE JIM 12/06/00 int Cloud_Flag=2; void LandScape::CloudLayer(ViewPoint* vp) { #ifndef _NOCLOUDS_ #ifndef _NO_FLUFFY_CLOUDS_ if (Save_Data.hardwareconfig[HW_FLUFFYCLOUDS]) //DEADCODE JIM 12/06/00 if (Cloud_Flag==0) //DEADCODE JIM 12/06/00 return; if (Save_Data.hardwareconfig[HW_FLUFFYCLOUDS]) //RJS 26Jun00 { SLong sectorshift=20; SLong sectorsize=1<<sectorshift; //DeadCode JON 20Oct00 SLong sectormask=sectorsize-1; //DeadCode JON 20Oct00 SLong sectorsizehalf = sectorsize >> 1; SLong sectorstep; // All cloud shapes MUST have same anim data... static ShapeNum cloudshapes[8]= { CLOUD1,CLOUD2, CLOUD3,CLOUD1, CLOUD1,CLOUD4, CLOUD2,CLOUD2 }; //Insert some clouds in the sky around the viewpoint SLong oldfaderange=fade_band_end; fade_band_end=0x7FFFFFFF; item dummyitem; COORDS3D curpos; //DeadCode JON 23Oct00 int cloudselect=0, int cloudindex; //DeadCode JON 20Oct00 int altselect=0xFF; //DeadCode JON 20Oct00 int realalt; COORDS3D corner = vp->World; UWord sector_x, sector_z; SLong newX, newZ, newY; SLong wx,wy,wz; SLong RootX; int j,k; // For each sector... 4 * 4 clouds... // Also fill each neighbouring sector sector_x = corner.X >> sectorshift; sector_z = corner.Z >> sectorshift; corner.X = sector_x << sectorshift; corner.Z = sector_z << sectorshift; corner.X -= sectorsize; corner.Z -= sectorsize; //TempCode PD 20Aug98 sectorstep = sectorsize / 4; sectorstep = sectorsize / 2; // corner(X,Y,Z) is start position //Init dummy item anim data... dummyitem.Anim = CloudAnimP; //RJS 10Jul98 RootX = corner.X; for (sector_z = 0; sector_z < 3; sector_z++) { corner.X = RootX; for (sector_x = 0; sector_x < 3; sector_x++) { wy = 0; curpos=corner; for (k=0;k<2;k++) { curpos.X = corner.X; for (j=0;j<2;j++) { wx = corner.X; wz = corner.Z; newX = curpos.X + ((SHAPE.Noise(wx++,wy++,wz++)-128) << 10); newZ = curpos.Z + ((SHAPE.Noise(wx++,wy++,wz++)-128) << 10); newY = SHAPE.Noise(newX,wy++,newZ) << 10; cloudindex = (7*SHAPE.Noise(newX,newY,newZ))/255; dummyitem.World.X = newX; dummyitem.World.Z = newZ; dummyitem.World.Y = FT_8000 + newY; dummyitem.shape = cloudshapes[cloudindex]; //DEADCODE JIM 12/06/00 if (Cloud_Flag>1) Three_Dee.do_object_dummy(&dummyitem,STATIC_OBJECT);//RJS 04Feb00 curpos.X += sectorstep; } curpos.Z += sectorstep; } corner.X += sectorsize; } corner.Z += sectorsize; } fade_band_end=oldfaderange; dummyitem.Anim = ANIM_NULL; } #endif #endif } //////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////// // // LandScape - first frame setup routines // also used while inside cloud layer to make sure the ground is // avaliable when the viewer comes out of the clouds // //////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////// //DeadCode JON 23Oct00 //컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴 //DeadCode JON 23Oct00 //Procedure SetFogMode //DeadCode JON 23Oct00 //Author Paul. //DeadCode JON 23Oct00 //Date Wed 28 May 1997 //DeadCode JON 23Oct00 // //DeadCode JON 23Oct00 //Description //DeadCode JON 23Oct00 // //DeadCode JON 23Oct00 //Inputs //DeadCode JON 23Oct00 // //DeadCode JON 23Oct00 //Returns //DeadCode JON 23Oct00 // //DeadCode JON 23Oct00 //------------------------------------------------------------------------------ //DeadCode JON 23Oct00 void LandScape::SetFogMode(SLong start,SLong end) //DeadCode JON 23Oct00 { //DeadCode JON 23Oct00 //deadcode Colour fogcolour; //DeadCode JON 23Oct00 //deadcode UByte hr,hg,hb; //DeadCode JON 23Oct00 //deadcode //DeadCode JON 23Oct00 //deadcode if (incloudlayer==TRUE) //DeadCode JON 23Oct00 //deadcode { //DeadCode JON 23Oct00 //deadcode start; //DeadCode JON 23Oct00 //deadcode end <<= 3; //DeadCode JON 23Oct00 //deadcode fogcolour = WHITE; //DeadCode JON 23Oct00 //deadcode hr=hg=hb=0xFF; //DeadCode JON 23Oct00 //deadcode } //DeadCode JON 23Oct00 //deadcode else //DeadCode JON 23Oct00 //deadcode { //DeadCode JON 23Oct00 //deadcode fogcolour = (Colour)0x00; //currscreen->DoGetHorizonColour(); //DeadCode JON 23Oct00 //deadcode hr=currentLighting.horizonBase.red(); //DeadCode JON 23Oct00 //deadcode hg=currentLighting.horizonBase.green(); //DeadCode JON 23Oct00 //deadcode hb=currentLighting.horizonBase.blue(); //DeadCode JON 23Oct00 //deadcode } //DeadCode JON 23Oct00 //DEADCODE PD 01/12/99 currscreen->DoGammaCorr(hr,hg,hb); //DeadCode JON 23Oct00 //DEADCODE PD 03/12/99 GreyPalette(&hr,&hg,&hb); //DeadCode JON 23Oct00 //DEADCODE PD 01/12/99 currscreen->DoSetFog(hr,hg,hb,start,end); //DeadCode JON 23Oct00 //DEADCODE PD 01/12/99 currscreen->DoSetHorizonColour(hr,hg,hb); //DeadCode JON 23Oct00 } void LandScape::SetSkyMap(FileNum theFile) { FilSkyStrip = theFile; } //컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴 //Procedure ScaleInsideHorizon //Author Paul. //Date Tue 5 May 1998 //------------------------------------------------------------------------------ void LandScape::ScaleInsideHorizon(COORDS3D& pos) { pos.X=gvisrange+viewer_x; pos.Y=gvisrange; pos.Z=viewer_z; } //컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴 //Procedure SetLVector //Author Paul. //Date Mon 11 May 1998 //------------------------------------------------------------------------------ void LandScape::SetLVector(COORDS3D& sunPos) { Three_Dee.pMigLand->SetLVector(sunPos.X,sunPos.Y,sunPos.Z); } //컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴 //Procedure AutoScaleFrameRate //Author Paul. //Date Wed 18 Nov 1998 //------------------------------------------------------------------------------ void LandScape::AutoScaleFrameRate() { if (!Save_Data.detail_3d[DETAIL3D_AUTODETAIL]) //JON 3Aug00 return; static UByte testingtime=0; testingtime++; if (testingtime) return; //DeadCode JON 3Aug00 #define FRAMES_RECORDED 20 //DeadCode JON 3Aug00 static SWord framerec[FRAMES_RECORDED]={0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}; //DeadCode JON 3Aug00 static SWord findex=0; //DeadCode JON 3Aug00 if (View_Point && !View_Point->Accel()) //DeadCode JON 3Aug00 { //DeadCode JON 3Aug00 framerec[findex++]=View_Point->RealFrameTime(); //DeadCode JON 3Aug00 if (findex==FRAMES_RECORDED) findex=0; //DeadCode JON 3Aug00 } //DeadCode JON 3Aug00 SWord averageFramesPerSec; //DeadCode JON 3Aug00 //DeadCode JON 3Aug00 if (framerec[FRAMES_RECORDED-1]) //DeadCode JON 3Aug00 { //DeadCode JON 3Aug00 SWord tot=framerec[0]; //DeadCode JON 3Aug00 for (int i=19;i>0;i--) tot+=framerec[i]; //DeadCode JON 3Aug00 averageFramesPerSec=(100*FRAMES_RECORDED)/tot; //DeadCode JON 3Aug00 } //DeadCode JON 3Aug00 else averageFramesPerSec=Save_Data.desiredfps; // there's nothing wrong with the above code - however this is better, and now I understand it... const int RECORDED_FRAMES = 20; static int frameIndex=0; static int frameRecord[RECORDED_FRAMES]={ 1000/Save_Data.desiredfps, 1000/Save_Data.desiredfps, 1000/Save_Data.desiredfps, 1000/Save_Data.desiredfps, 1000/Save_Data.desiredfps, 1000/Save_Data.desiredfps, 1000/Save_Data.desiredfps, 1000/Save_Data.desiredfps, 1000/Save_Data.desiredfps, 1000/Save_Data.desiredfps, 1000/Save_Data.desiredfps, 1000/Save_Data.desiredfps, 1000/Save_Data.desiredfps, 1000/Save_Data.desiredfps, 1000/Save_Data.desiredfps, 1000/Save_Data.desiredfps, 1000/Save_Data.desiredfps, 1000/Save_Data.desiredfps, 1000/Save_Data.desiredfps, 1000/Save_Data.desiredfps }; static int cumFrameRec = (1000*RECORDED_FRAMES)/Save_Data.desiredfps;// cumulative frame record total... if (View_Point && !View_Point->Accel()) { int curFrameTime = View_Point->getFrameTimeMSecs(); cumFrameRec-=frameRecord[frameIndex]; cumFrameRec+=curFrameTime; frameRecord[frameIndex++]=curFrameTime; frameIndex%=RECORDED_FRAMES; } int averageFramesPerSec=(1000*RECORDED_FRAMES)/cumFrameRec; #ifdef SHOW_FRAMERATE UByte debStr[64]; sprintf((char*)debStr,"FT: %04d",averageFramesPerSec); Mono_Text.PrintAt(0,0,debStr); #endif if (averageFramesPerSec>(Save_Data.desiredfps+5)) { IncDetailLevel(); } else if (averageFramesPerSec<Save_Data.desiredfps) { DecDetailLevel(); } // the logic behind the (mig) code below was that even if autoscale framerate wasn't // set then the mesh detail can be altered... This is no longer the case for bob... //DeadCode JON 3Aug00 bool alterDetail; //DeadCode JON 3Aug00 SLong wholeAreaSize,halfAreaSize; //DeadCode JON 3Aug00 //DeadCode JON 3Aug00 wholeAreaSize=_wholeAreaSizeMIN; //DeadCode JON 3Aug00 //DeadCode JON 3Aug00 halfAreaSize=wholeAreaSize>>1; //DeadCode JON 3Aug00 //DeadCode JON 3Aug00 alterDetail=false; //DeadCode JON 3Aug00 //DeadCode JON 3Aug00 if (!Save_Data.detail_3d[DETAIL3D_AUTODETAIL]) //DeadCode JON 3Aug00 { //DeadCode JON 3Aug00 if (!Save_Data.detail_3d[DETAIL3D_CONTOURDETAIL]) //DeadCode JON 3Aug00 { //DeadCode JON 3Aug00 if (land_min_detail!=2) //DeadCode JON 3Aug00 { //DeadCode JON 3Aug00 land_min_detail=2; //DeadCode JON 3Aug00 alterDetail=true; //DeadCode JON 3Aug00 } //DeadCode JON 3Aug00 } //DeadCode JON 3Aug00 else //DeadCode JON 3Aug00 { //DeadCode JON 3Aug00 if (land_min_detail!=halfAreaSize) //DeadCode JON 3Aug00 { //DeadCode JON 3Aug00 land_min_detail=halfAreaSize; //DeadCode JON 3Aug00 alterDetail=true; //DeadCode JON 3Aug00 } //DeadCode JON 3Aug00 } //DeadCode JON 3Aug00 //DeadCode JON 3Aug00 } //DeadCode JON 3Aug00 else if (averageFramesPerSec>(Save_Data.desiredfps+5)) //DeadCode JON 3Aug00 { //DeadCode JON 3Aug00 land_min_detail++; //DeadCode JON 3Aug00 if (land_min_detail>halfAreaSize) //DeadCode JON 3Aug00 land_min_detail=halfAreaSize; //DeadCode JON 3Aug00 else //DeadCode JON 3Aug00 alterDetail=true; //DeadCode JON 3Aug00 IncDetailLevel(); //DeadCode JON 3Aug00 } //DeadCode JON 3Aug00 else if (averageFramesPerSec<Save_Data.desiredfps) //DeadCode JON 3Aug00 { //DeadCode JON 3Aug00 land_min_detail--; //DeadCode JON 3Aug00 if (land_min_detail<2) //DeadCode JON 3Aug00 land_min_detail=2; //DeadCode JON 3Aug00 else //DeadCode JON 3Aug00 alterDetail=true; //DeadCode JON 3Aug00 DecDetailLevel(); //DeadCode JON 3Aug00 } //DeadCode JON 3Aug00 //DeadCode JON 3Aug00 if (alterDetail) //DeadCode JON 3Aug00 { //DeadCode JON 3Aug00 UByte* pResG=groundDetail; //DeadCode JON 3Aug00 //DeadCode JON 3Aug00 UByte min_val; //DeadCode JON 3Aug00 //DEADCODE PD 01/12/99 if (Save_Data.fSoftware) min_val=2; //DeadCode JON 3Aug00 min_val=0; //DeadCode JON 3Aug00 for (SLong x=0;x<wholeAreaSize;x++) //DeadCode JON 3Aug00 { //DeadCode JON 3Aug00 SLong tx=x-halfAreaSize; //DeadCode JON 3Aug00 tx*=tx; //DeadCode JON 3Aug00 for (SLong y=0;y<wholeAreaSize;y++) //DeadCode JON 3Aug00 { //DeadCode JON 3Aug00 SLong ty=y-halfAreaSize; //DeadCode JON 3Aug00 ty=ty*ty+tx; //DeadCode JON 3Aug00 double fp_dist; //DeadCode JON 3Aug00 _asm //DeadCode JON 3Aug00 { //DeadCode JON 3Aug00 fild ty; //DeadCode JON 3Aug00 fsqrt; //DeadCode JON 3Aug00 fstp fp_dist; //DeadCode JON 3Aug00 } //DeadCode JON 3Aug00 ty=SLong(fp_dist+.5); //DeadCode JON 3Aug00 if (ty<=land_min_detail) *pResG++=min_val; //DeadCode JON 3Aug00 else *pResG++=254; //DeadCode JON 3Aug00 } //DeadCode JON 3Aug00 } //DeadCode JON 3Aug00 } } //컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴 //Procedure Init //Author Paul. //Date Thu 14 May 1998 //------------------------------------------------------------------------------ void LandScape::Init(CLib3D *lib3d) { //DEADCODE PD 01/12/99 if (Save_Data.fSoftware) land_min_detail=4; lastMeshDataX = -10000; //JON 9Nov00 lastMeshDataZ = -10000; g_lpLib3d=lib3d; land_min_detail=2; //DeadCode JON 20Oct00 SLong cornerBufferSize=_cornerBufferSizeMIN; SLong wholeAreaSize=_wholeAreaSizeMIN; //DeadCode JON 20Oct00 SLong halfAreaSize=_halfAreaSizeMIN; //DeadCode JON 12Sep00 if (!gridCorners) gridCorners=new UByte[cornerBufferSize]; //DeadCode JON 5Sep00 if (!softGrid) softGrid=new UByte[wholeAreaSize*wholeAreaSize]; if (!gridCone) gridCone=new UByte[wholeAreaSize*wholeAreaSize]; if (!horizCone) horizCone=new bool[_horizonAreaSize*_horizonAreaSize]; //DeadCode JON 12Sep00 if (!lightCone) lightCone=new UByte[wholeAreaSize*wholeAreaSize]; //DeadCode JON 12Sep00 if (!routeDetail) routeDetail=new UByte[wholeAreaSize*wholeAreaSize]; //DeadCode JON 3Aug00 if (!groundDetail) groundDetail=new UByte[wholeAreaSize*wholeAreaSize]; //DeadCode JON 12Sep00 if (!landRnd) landRnd=new UByte[256]; //DeadCode JON 12Sep00 #pragma warnmsg ( "remove me" ) //DeadCode JON 12Sep00 DbgMemTest3( landRnd ); if (!tileCoords) tileCoords=new COORDS3D[256]; if (!pDataBlocks) pDataBlocks=new DataRecord[wholeAreaSize*wholeAreaSize]; if (!tileCacheGrid) tileCacheGrid=new TileElement[_wholeAreaSizeMIN*_wholeAreaSizeMIN]; TileResList::theGrid = tileCacheGrid; // now clear the tile cache grid. for ( int j = 0; j < _wholeAreaSizeMIN*_wholeAreaSizeMIN; j++ ) { tileCacheGrid[j].reset(); } //DEADCODE JON 4/27/00 pHTextureGrid=new HTEXT[_wholeAreaSizeMIN*_wholeAreaSizeMIN]; //DEADCODE JON 4/27/00 memset(pHTextureGrid,0xFF,_wholeAreaSizeMIN*_wholeAreaSizeMIN*sizeof(HTEXT)); //DEADCODE JON 4/27/00 memset(tileCacheGrid,0,sizeof(TileElement)*_wholeAreaSizeMIN*_wholeAreaSizeMIN); //Setup random table... //DeadCode JON 12Sep00 for (int x=0;x<256;landRnd[x++]=Math_Lib.rnd(SLong(0xFF))); //Setup route detail table //DeadCode JON 12Sep00 UByte* pResR=routeDetail; //DeadCode JON 12Sep00 //DeadCode JON 3Aug00 UByte* pResG=groundDetail; //DeadCode JON 12Sep00 for (x=0;x<wholeAreaSize;x++){ //DeadCode JON 12Sep00 int tx=x-halfAreaSize; //DeadCode JON 12Sep00 Float dx=Float(tx); dx*=dx*Float(_blockWidth)*Float(_blockWidth); //DeadCode JON 12Sep00 for (int y=0;y<wholeAreaSize;y++){ //DeadCode JON 12Sep00 int ty=y-halfAreaSize; //DeadCode JON 12Sep00 Float dy=Float(ty); //DeadCode JON 12Sep00 dy*=dy*Float(_blockWidth)*Float(_blockWidth); //DeadCode JON 12Sep00 dy+=dx; //DeadCode JON 12Sep00 _asm { //DeadCode JON 12Sep00 fld dy; //DeadCode JON 12Sep00 fsqrt; //DeadCode JON 12Sep00 fstp dy; //DeadCode JON 12Sep00 } //DeadCode JON 12Sep00 ty=int(dy); //DeadCode JON 12Sep00 //Fill in route detail grid //DeadCode JON 12Sep00 if (ty<_routeMPolySize) *pResR++=UByte(_doMPoly); //DeadCode JON 12Sep00 else if (ty<_routePolySize) *pResR++=UByte(_doPoly); //DeadCode JON 12Sep00 else if (ty<_routeLineSize) *pResR++=UByte(_doLine); //DeadCode JON 12Sep00 else *pResR++=UByte(_doNowt); //DeadCode JON 12Sep00 //Fill in land detali grid //DeadCode JON 12Sep00 //DeadCode JON 4Aug00 if (ty<_groundHighSize) //DeadCode JON 12Sep00 //DeadCode JON 4Aug00 *pResG++=UByte(_doHighGround); //DeadCode JON 12Sep00 //DeadCode JON 4Aug00 else if (ty<_groundMedSize) //DeadCode JON 12Sep00 //DeadCode JON 4Aug00 { //DeadCode JON 12Sep00 //DeadCode JON 4Aug00 ty-=_groundHighSize; //DeadCode JON 12Sep00 //DeadCode JON 4Aug00 ty<<=4; //DeadCode JON 12Sep00 //DeadCode JON 4Aug00 ty/=(_groundMedSize-_groundHighSize); //DeadCode JON 12Sep00 //DeadCode JON 4Aug00 ty++; //DeadCode JON 12Sep00 //DeadCode JON 4Aug00 if (ty>3) ty=254; //overkill to make sure that the tiles //DeadCode JON 12Sep00 //DeadCode JON 4Aug00 //are reduced as much as possible //DeadCode JON 12Sep00 //DeadCode JON 4Aug00 else ty=0; //DeadCode JON 12Sep00 //DeadCode JON 4Aug00 //DeadCode JON 12Sep00 //DeadCode JON 4Aug00 *pResG++=UByte(ty); //DeadCode JON 12Sep00 //DeadCode JON 4Aug00 } //DeadCode JON 12Sep00 //DeadCode JON 4Aug00 else *pResG++=UByte(254); //DeadCode JON 12Sep00 } //DeadCode JON 12Sep00 } //DeadCode JON 3Aug00 highco=new DoPointStruc[256]; blackingout=0; redingout=0; whitingout=0; //DEADCODE PD 02/12/99 currscreen=NULL; lastPx=lastPz=-1; //deadcode JON 19/06/01 ResetLights(); sun_screen_x = sun_screen_y = sun_glare = 0; //RJS 20Apr00 SHAPE.newprobecnt= 0; //RJS 01Apr99 InitialiseCloudTables(); craterCnt = 0; //RJS 18Nov99 stompMapCnt = 0; //RJS 30Nov99 SetFogBand(); gridOffs.reInit(); cloudOffs.reInit(); horizonImg = ImageMapDesc::init( 256, 256 ); horizonImg->paletteindex = 2; //DeadCode JON 9Jun00 cloudImg0 = ImageMapDesc::init( 256, 256, false); //DeadCode JON 9Jun00 cloudImg1 = ImageMapDesc::init( 256, 256, false); //DeadCode JON 9Jun00 cloudImg2 = ImageMapDesc::init( 256, 256, false); cloudImg0 = ImageMapDesc::init( 128, 128 ); cloudImg0->alpha = cloudImg0->body; cloudImg0->body = NULL; //TempCode JON 26Sep00 // now do the ace re-init for colour stuff... haha. //TempCode JON 26Sep00 float furthestTileSqMod; //TempCode JON 26Sep00 if ( Save_Data.detail_3d[DETAIL3D_HORIZONDIST] ) //TempCode JON 26Sep00 { // HIGH DISTANCE HORIZON //TempCode JON 26Sep00 furthestTileSqMod = 256.f/float((_horizonDist-1)*(_horizonDist-1)); //TempCode JON 26Sep00 } else //TempCode JON 26Sep00 { //TempCode JON 26Sep00 furthestTileSqMod = 256.f/float((_halfAreaSizeMIN-1)*(_halfAreaSizeMIN-1)); //TempCode JON 26Sep00 } //TempCode JON 26Sep00 UByte* col = cloudImg0->body; //TempCode JON 26Sep00 for ( int x = -64; x < 64; x++ ) //TempCode JON 26Sep00 for ( int y = -64; y < 64; y++ ) //TempCode JON 26Sep00 { //TempCode JON 26Sep00 float distSq = float(x*x + y*y); //TempCode JON 26Sep00 *col=F2UB_Clip( distSq*furthestTileSqMod ); //TempCode JON 26Sep00 col++; //TempCode JON 26Sep00 } //DeadCode JON 26Sep00 cloudImg1 = ImageMapDesc::init( 128, 128, false); //DeadCode JON 26Sep00 cloudImg2 = ImageMapDesc::init( 128, 128, false); for (int smkindex=0; smkindex < MaxSmokeClouds; smkindex++) { smkList[smkindex].active = 0; smkList[smkindex].weight = -1; } } //컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴 //Procedure Exit //Author Paul. //Date Thu 14 May 1998 //------------------------------------------------------------------------------ void LandScape::Exit() { //DeadCode JON 12Sep00 if (gridCorners) delete[]gridCorners,gridCorners=NULL; if (gridCone) { delete[]gridCone; gridCone=NULL; } if (horizCone) { delete[]horizCone; horizCone=NULL; } //DeadCode JON 12Sep00 if (lightCone) delete[]lightCone,lightCone=NULL; //DeadCode JON 12Sep00 if (routeDetail) delete[]routeDetail,routeDetail=NULL; //DeadCode JON 3Aug00 if (groundDetail) delete[]groundDetail,groundDetail=NULL; //DeadCode JON 12Sep00 if (landRnd) //DeadCode JON 12Sep00 { //DeadCode JON 12Sep00 #pragma warnmsg ( "remove me" ) //DeadCode JON 12Sep00 DbgMemTest3( landRnd ); //DeadCode JON 12Sep00 delete[]landRnd; //DeadCode JON 12Sep00 landRnd=NULL; //DeadCode JON 12Sep00 } if (tileCoords) { delete[]tileCoords; tileCoords=NULL; } if (pDataBlocks) { delete[]pDataBlocks; pDataBlocks=NULL; } if (polyList) { delete[]polyList; polyList=NULL; } if (pointList) { delete[]pointList; pointList=NULL; } //DEADCODE JON 4/26/00 if (pLastGrid) delete[]pLastGrid,pLastGrid=NULL; if (tileCacheGrid) { delete[]tileCacheGrid; tileCacheGrid=NULL; TileResList::theGrid=NULL; } //DEADCODE JON 4/27/00 if (pHTextureGrid) delete[]pHTextureGrid,pHTextureGrid=NULL; //DeadCode JON 3Aug00 if (highco) delete[]highco,highco=NULL; //DeadCode JON 5Sep00 if (softGrid) delete[]softGrid,softGrid=NULL; Three_Dee.nomorereallygetdata=false; delete [](UByteP)horizonImg; delete [](UByteP)cloudImg0; //DeadCode JON 26Sep00 delete [](UByteP)cloudImg1; //DeadCode JON 26Sep00 delete [](UByteP)cloudImg2; horizonImg = NULL; cloudImg0 = NULL; //DeadCode JON 26Sep00 cloudImg1 = NULL; //DeadCode JON 26Sep00 cloudImg2 = NULL; } void LandScape::SetFogBand() { if ( Save_Data.detail_3d[DETAIL3D_HORIZONDIST] ) { // HIGH DISTANCE view_dist=_blockWidth*_horizonDist; // static float fudge = 0.9373f; g_lpLib3d->SetFogValues( 0.00002f, 0.9373f );//0.9973f );//0.88f );//0.25f ); } else { // LOW DISTANCE view_dist=_hirezDrawDist; g_lpLib3d->SetFogValues( 0.3f, 1.0f );//0.9f ); } } //컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴 //Procedure SetMist //Author Paul. //Date Tue 9 Jun 1998 //------------------------------------------------------------------------------ //deadcode JON 19/06/01 void LandScape::SetMist(DoPointStruc& dp) //deadcode JON 19/06/01 { //DEADCODE PD 01/12/99 //dp is untransformed point //DEADCODE PD 01/12/99 if (dp.bodyy.i<=_snowLine){ //DEADCODE PD 01/12/99 dp.mist=0; //DEADCODE PD 01/12/99 if (dp.bodyy.i<=_mistTop){ //DEADCODE PD 01/12/99 SLong temp=((dp.bodyy.i-_mistTop)<<8)/_mistTop; //DEADCODE PD 01/12/99 if (temp>0xFF) temp=0xFF; //DEADCODE PD 01/12/99 else if (temp<0) temp=0; //DEADCODE PD 01/12/99 temp=0xFF-temp; //DEADCODE PD 01/12/99 dp.snow=UByte(temp); //DEADCODE PD 01/12/99 } //DEADCODE PD 01/12/99 else dp.snow=0; //DEADCODE PD 01/12/99 } //DEADCODE PD 01/12/99 else if (dp.bodyy.i>=_snowLine+10000) dp.mist=255; //DEADCODE PD 01/12/99 else //DEADCODE PD 01/12/99 { //DEADCODE PD 01/12/99 SLong temp=((dp.bodyy.i-_snowLine)<<8)/10000; //DEADCODE PD 01/12/99 if (temp>0xFF) temp=0xFF; //DEADCODE PD 01/12/99 else if (temp<0) temp=0; //DEADCODE PD 01/12/99 dp.mist=UByte(temp); //DEADCODE PD 01/12/99 } //deadcode JON 19/06/01 } //컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴 //Procedure PrintDebugs //Author Paul. //Date Wed 22 Jul 1998 //------------------------------------------------------------------------------ void LandScape::PrintDebugs() {/* UByte block[128]; block[4]=UByte(0); SLong xof=(viewer_x&0x1FFFFF)>>10; //0..2048 SLong val=viewer_x>>(17+4); block[2]=UByte(val&0x7)+'1'; //x (lo) val>>=3; block[0]=UByte(val)+'1'; //x (hi) SLong zof=2047-((viewer_z&0x1FFFFF)>>10); val=viewer_z>>(17+4); block[3]=UByte(val&0x7)+'1'; //z (lo) val>>=3; block[1]=UByte(val)+'1'; //z (hi) Mono_Text.PrintAt(0,0,block); //print block number sprintf((char*)block,"xoff %d ",xof); Mono_Text.PrintAt(0,1,block); sprintf((char*)block,"zoff %d ",zof); Mono_Text.PrintAt(0,2,block); val=viewer_hdg; val=((val&0xFFFF)*90)>>14; sprintf((char*)block,"hdg %3d",val); Mono_Text.PrintAt(0,3,block); //print viewer heading sprintf((char*)block,"alt %dm ",(viewer_y/100)); Mono_Text.PrintAt(0,4,block); //print viewer altitude (meters) */} /* inline void fpSinCos(ANGLES ang,Float& sinAng,Float& cosAng) { int iang=ang; _asm { mov eax,iang; and eax,0x0000FFFF; fldpi; push eax; fild dword ptr ss:[esp]; fmulp st(1),st; mov dword ptr ss:[esp],32768; fild dword ptr ss:[esp]; fdivp st(1),st; fsincos; mov edx,cosAng; fstp qword ptr ds:[edx]; mov edx,sinAng; fstp qword ptr ds:[edx]; add esp,4; } } */ //컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴 //Procedure DoCloudLayer //Author Paul. //Date Fri 23 Oct 1998 //------------------------------------------------------------------------------ //deadcode JON 19/06/01 void LandScape::DoCloudLayer() //deadcode JON 19/06/01 { /* const Float CLOUD_DELTA=.002; struct SHCoords { Float X,Y,Z; SLong flag; } HStripPtsA[]= { //outer edge points {-1,.202+CLOUD_DELTA,1,0}, {0,.202+CLOUD_DELTA,1,0}, {1,.202+CLOUD_DELTA,1,0}, {1,.202+CLOUD_DELTA,0,0}, {1,.202+CLOUD_DELTA,-1,0}, {0,.202+CLOUD_DELTA,-1,0}, {-1,.202+CLOUD_DELTA,-1,0}, {-1,.202+CLOUD_DELTA,0,0}, //end of solid area {0,.202,.5,1}, {.3536,.202,.3536,1}, {.5,.202,0,1}, {.3536,.202,-.3536,1}, {0,.202,-.5,1}, {-.3536,.202,-.3536,1}, {-.5,.202,0,1}, {-.3536,.202,.3536,1}, //end of transparent area {0,.202,.25,2}, {.1768,.202,.1768,2}, {.25,.202,0,2}, {.1768,.202,-.1768,2}, {0,.202,-.25,2}, {-.1768,.202,-.1768,2}, {-.25,.202,0,2}, {-.1768,.202,.1768,2} }, HStripPtsB[]= { //outer edge points {-1,.202-CLOUD_DELTA,1,0}, {0,.202-CLOUD_DELTA,1,0}, {1,.202-CLOUD_DELTA,1,0}, {1,.202-CLOUD_DELTA,0,0}, {1,.202-CLOUD_DELTA,-1,0}, {0,.202-CLOUD_DELTA,-1,0}, {-1,.202-CLOUD_DELTA,-1,0}, {-1,.202-CLOUD_DELTA,0,0}, //end of solid area {0,.202,.5,1}, {.3536,.202,.3536,1}, {.5,.202,0,1}, {.3536,.202,-.3536,1}, {0,.202,-.5,1}, {-.3536,.202,-.3536,1}, {-.5,.202,0,1}, {-.3536,.202,.3536,1}, //end of transparent area {0,.202,.25,2}, {.1768,.202,.1768,2}, {.25,.202,0,2}, {.1768,.202,-.1768,2}, {0,.202,-.25,2}, {-.1768,.202,-.1768,2}, {-.25,.202,0,2}, {-.1768,.202,.1768,2} }; struct SStripPoly { SLong v[3]; } SolidPolys[]= { //solid section polys {0,1,15}, {15,1,8}, {9,8,1}, {2,9,1}, {3,9,2}, {3,10,9}, {11,10,3}, {4,11,3}, {5,11,4}, {12,11,5}, {13,12,5}, {6,13,5}, {7,13,6}, {14,13,7}, {15,14,7}, {0,15,7} }, TransPolys[]= { //transparent section polys {17,16,8}, {9,17,8}, {10,17,9}, {18,17,10}, {19,18,10}, {11,19,10}, {12,19,11}, {20,19,12}, {21,20,12}, {13,21,12}, {14,21,13}, {22,21,14}, {23,22,14}, {15,23,14}, {8,23,15}, {16,23,8} }; const SLong _stripPoints=sizeof(HStripPtsA)/sizeof(fpCOORDS3D); const SLong _solidPolys=sizeof(SolidPolys)/sizeof(SStripPoly); const SLong _transPolys=sizeof(TransPolys)/sizeof(SStripPoly); Float fvr=Float(view_range); Float fvy=Float(viewer_y)/Float(CEILING_ALT); //texture coordinate transformation matrix Float iMat[4]; Float fSinHdg,fCosHdg; fpSinCos(-viewer_hdg,fSinHdg,fCosHdg); iMat[0]=iMat[3]=fCosHdg; iMat[1]=fSinHdg; iMat[2]=-fSinHdg; FPMATRIX mat,scale; Float *m=(Float*)&mat, *s=(Float*)&scale; _matrix.Generate(ANGLES_0Deg,View_Point->pitch,View_Point->roll,&mat); s[0]=fvr; s[1]=0; s[2]=0; s[3]=0; s[4]=Float(CEILING_ALT); s[5]=0; s[6]=0; s[7]=0; s[8]=fvr; _matrix.multiply(&scale,&mat); DoPointStruc* pdp=SHAPE.newco; SHCoords* psp=HStripPtsA; SWord ss=1024; Float ix=(viewer_x>>10)&SLong(ss-1), iy=(viewer_z>>10)&SLong(ss-1); for (SLong i=_stripPoints;i--;) { Float tu,tv,ttu,ttv; tu=(psp->X*ss); //1 cloud texel per 81.92m tv=(psp->Z*ss); //2D rotate on texture coordinates ttu=tu*iMat[0]+tv*iMat[1]; ttv=tu*iMat[2]+tv*iMat[3]; Float py=psp->Y-fvy; pdp->bodyx.f=s[0]*psp->X+s[1]*py+s[2]*psp->Z; pdp->bodyy.f=s[3]*psp->X+s[4]*py+s[5]*psp->Z; pdp->bodyz.f=s[6]*psp->X+s[7]*py+s[8]*psp->Z; pdp->ix=SWord(ttu+ix); pdp->iy=SWord(ttv+iy); pdp->specular=-1; _matrix.SetClipFlags(*pdp); pdp->clipFlags&=~CF3D_PASTFARZ; pdp++; psp++; } psp=HStripPtsB; DoPointStruc* other_newco=pdp; for (i=_stripPoints;i--;) { Float tu,tv,ttu,ttv; tu=(psp->X*ss); //1 cloud texel per 81.92m tv=(psp->Z*ss); //2D rotate on texture coordinates ttu=tu*iMat[0]+tv*iMat[1]; ttv=tu*iMat[2]+tv*iMat[3]; Float py=psp->Y-fvy; pdp->bodyx.f=s[0]*psp->X+s[1]*py+s[2]*psp->Z; pdp->bodyy.f=s[3]*psp->X+s[4]*py+s[5]*psp->Z; pdp->bodyz.f=s[6]*psp->X+s[7]*py+s[8]*psp->Z; pdp->ix=SWord(ttu+ix); pdp->iy=SWord(ttv+iy); pdp->specular=-1; _matrix.SetClipFlags(*pdp); pdp->clipFlags&=~CF3D_PASTFARZ; pdp++; psp++; }*/ /* skyFogBegin=SLong(SHAPE.newco[8].bodyz.f); //DEAD groundFogBegin; skyFogEnd=SLong(SHAPE.newco[0].bodyz.f); UByte saveR,saveG,saveB; SLong dummy; currscreen->DoGetFog(saveR,saveG,saveB,dummy,dummy); UByte fR,fG,fB; bool polysFlipped=viewer_y>_cloudLayerHeight?false:true; fR=currentLighting.horizonAtClouds.red(); fG=currentLighting.horizonAtClouds.green(); fB=currentLighting.horizonAtClouds.blue(); currscreen->DoGammaCorr(fR,fG,fB); GreyPalette(&fR,&fG,&fB); currscreen->DoSetFog(saveR,saveG,saveB,skyFogBegin,skyFogEnd); currscreen->DoSetFog(fR,fG,fB);*/ //solid section of cloud layer /* ImageMapDesc* pcloudno=Image_Map.GetImageMapPtr(CLOUDNO); for (i=0;i<_solidPolys;i++) { UWord andedFlags=SHAPE.newco[SolidPolys[i].v[0]].clipFlags& SHAPE.newco[SolidPolys[i].v[1]].clipFlags& SHAPE.newco[SolidPolys[i].v[2]].clipFlags; if (andedFlags==0) { DoPointStruc *p0,*p1,*p2; SWord i0=HStripPtsA[SolidPolys[i].v[0]].flag==0?0xFF:0x00, i1=HStripPtsA[SolidPolys[i].v[1]].flag==0?0xFF:0x00, i2=HStripPtsA[SolidPolys[i].v[2]].flag==0?0xFF:0x00; p0=SHAPE.newco+SolidPolys[i].v[0]; p1=SHAPE.newco+SolidPolys[i].v[1]; p2=SHAPE.newco+SolidPolys[i].v[2]; if (!Save_Data.fSoftware) POLYGON.createpoly(CLOUDNO); else POLYGON.createpoly(pcloudno,IMAPPED_C); POLYGON.createvert(*p0,p0->ix,p0->iy,i0); POLYGON.createvert(*p2,p2->ix,p2->iy,i2); POLYGON.createvert(*p1,p1->ix,p1->iy,i1); POLYGON.drawpoly(); if (!Save_Data.fSoftware) POLYGON.createpoly(CLOUDNO); else POLYGON.createpoly(pcloudno,IMAPPED_C); POLYGON.createvert(*p0,p0->ix,p0->iy,i0); POLYGON.createvert(*p1,p1->ix,p1->iy,i1); POLYGON.createvert(*p2,p2->ix,p2->iy,i2); POLYGON.drawpoly(); //and the other side of the cloud layer... p0=other_newco+SolidPolys[i].v[0]; p1=other_newco+SolidPolys[i].v[1]; p2=other_newco+SolidPolys[i].v[2]; if (!Save_Data.fSoftware) POLYGON.createpoly(CLOUDNO); else POLYGON.createpoly(pcloudno,IMAPPED_C); POLYGON.createvert(*p0,p0->ix,p0->iy,i0); POLYGON.createvert(*p2,p2->ix,p2->iy,i2); POLYGON.createvert(*p1,p1->ix,p1->iy,i1); POLYGON.drawpoly(); if (!Save_Data.fSoftware) POLYGON.createpoly(CLOUDNO); else POLYGON.createpoly(pcloudno,IMAPPED_C); POLYGON.createvert(*p0,p0->ix,p0->iy,i0); POLYGON.createvert(*p1,p1->ix,p1->iy,i1); POLYGON.createvert(*p2,p2->ix,p2->iy,i2); POLYGON.drawpoly(); } }*/ //transparent section of cloud layer /* currscreen->DoSetTranspFade(true); for (i=0;i<_transPolys;i++) { UWord andedFlags=SHAPE.newco[TransPolys[i].v[0]].clipFlags& SHAPE.newco[TransPolys[i].v[1]].clipFlags& SHAPE.newco[TransPolys[i].v[2]].clipFlags; if (andedFlags==0) { DoPointStruc *p0,*p1,*p2; SWord i0=HStripPtsA[TransPolys[i].v[0]].flag==1?0xFF:0x00, i1=HStripPtsA[TransPolys[i].v[1]].flag==1?0xFF:0x00, i2=HStripPtsA[TransPolys[i].v[2]].flag==1?0xFF:0x00; p0=SHAPE.newco+TransPolys[i].v[0]; p1=SHAPE.newco+TransPolys[i].v[1]; p2=SHAPE.newco+TransPolys[i].v[2]; if (!Save_Data.fSoftware) POLYGON.createpoly(CLOUDNO); else { ImageMapDescPtr pmap=Image_Map.GetImageMapPtr(CLOUDNO); POLYGON.createpoly(pmap,IMAPPED_TF); } POLYGON.createvert(*p0,p0->ix,p0->iy,i0); if (polysFlipped) { POLYGON.createvert(*p2,p2->ix,p2->iy,i2); POLYGON.createvert(*p1,p1->ix,p1->iy,i1); } else { POLYGON.createvert(*p1,p1->ix,p1->iy,i1); POLYGON.createvert(*p2,p2->ix,p2->iy,i2); } POLYGON.drawpoly(); } } currscreen->DoSetTranspFade(false); currscreen->DoSetFog(saveR,saveG,saveB,groundFogBegin,groundFogEnd); currscreen->DoSetFog(saveR,saveG,saveB);*/ //deadcode JON 19/06/01 } //컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴 //Procedure GetMinMaxAlt //Author Paul. //Date Wed 16 Dec 1998 //------------------------------------------------------------------------------ void LandScape::GetMinMaxAlt(AirStrucPtr ac,SLong& min,SLong& max) { if (Three_Dee.pTMake==NULL) min=max=256000; else { ANGLES ac_hdg=ac->hdg; ac_hdg+=ANGLES_45Deg; ac_hdg=(Angles)((int)ac_hdg&0xC000); SWord dir; if (ac_hdg==ANGLES_0Deg) dir=0; else if (ac_hdg==ANGLES_90Deg) dir=1; else if (ac_hdg==ANGLES_180Deg) dir=2; else dir=3; Three_Dee.pTMake->GetMinMaxAlt(ac->World.X,ac->World.Z,dir,min,max); min*=_altitudeScale; max*=_altitudeScale; } } //컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴 //Procedure InterpSLightRGB //Author Paul. //Date Mon 18 Jan 1999 //------------------------------------------------------------------------------ void LandScape::InterpSLightRGB( SLayerRGB& lowRgb, SLayerRGB& hiRgb, SLayerRGB& outRgb, ULong scale) { ULong val; Float fs,omfs; fs=scale/65536.; omfs=1.-fs; val=ULong(Float(lowRgb.r)*fs+Float(hiRgb.r)*omfs); outRgb.r=(val>0xFFFF)?0xFFFF:val; val=ULong(Float(lowRgb.g)*fs+Float(hiRgb.g)*omfs); outRgb.g=(val>0xFFFF)?0xFFFF:val; val=ULong(Float(lowRgb.b)*fs+Float(hiRgb.b)*omfs); outRgb.b=(val>0xFFFF)?0xFFFF:val; } /* #define InterpLight(p1)\ InterpSLightRGB(pLowLight->##p1,pHighLight->##p1,\ currentLighting.##p1,scaleFactor); */ #define InterpLight(p1)\ InterpSLightRGB(pLowLight->p1,pHighLight->p1,\ currentLighting.p1,scaleFactor); ////////////////////////////////////////////////////////////////////// // // Function: // Date: 10/9/00 // Author: JON // //Description: Handles a possible teleport across the landscape (for u comms/replay chaps) // ////////////////////////////////////////////////////////////////////// void LandScape::PossibleTeleport() { // right set up the center position //TempCode JON 9Oct00 Three_Dee.pMigLand->SetViewpoint(View_Point); //TempCode JON 9Oct00 Three_Dee.pMigLand->BigRebuild(); ULong x = View_Point->World.X >> Grid_Base::WORLDSPACEMOD; ULong z = View_Point->World.Z >> Grid_Base::WORLDSPACEMOD; #ifndef NDEBUG char blockStr[7]; blockStr[6] = char(0); blockStr[5] = '1'+char(z%8); blockStr[3] = '1'+char((z/8)%8); blockStr[1] = '1'+char((z/64)%8); blockStr[4] = '1'+char(x%8); blockStr[2] = '1'+char((x/8)%8); blockStr[0] = '1'+char((x/64)%8); #endif if ( ( abs( (long)(lastMeshDataX - x) ) > 1 ) || ( abs( (long)(lastMeshDataZ - z) ) > 1 ) ) { Three_Dee.pMigLand->BigInit(View_Point); Three_Dee.pTMake->Reinit(View_Point->World.X,View_Point->World.Z,g_lpLib3d); doneUpdateLandscape = true; } } //컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴 //Procedure RefreshLandscape //Author Paul. //Date Tue 16 Feb 1999 //------------------------------------------------------------------------------ void LandScape::RefreshLandscape() { //DEADCODE JON 4/26/00 if (pLastGrid) delete[]pLastGrid,pLastGrid=NULL; //DeadCode MS 15Aug00 Mono_Text.Print((UByte*)"RefreshLandscape: entry "); if (tileCacheGrid) { for ( int j = 0; j < _wholeAreaSizeMIN*_wholeAreaSizeMIN; j++ ) { g_lpLib3d->FreeLandscapeTexture( tileCacheGrid[j].textHandle.textureHandle ); tileCacheGrid[j].reset(); } //DeadCode MS 15Aug00 Mono_Text.Print((UByte*)"RefreshLandscape: definatley clear land texts "); //DeadCode MS 16Aug00 #pragma warnmsg ("don't put me in the version" ) //DeadCode MS 16Aug00 for ( j = 0; j <256; j++ ) //DeadCode MS 16Aug00 g_lpLib3d->FreeLandscapeTexture( j ); //DEADCODE JO 4/27/00 memset(tileCacheGrid,0,sizeof(TileElement)*_wholeAreaSizeMIN*_wholeAreaSizeMIN); } //DEADCODE JON 4/27/00 if (pHTextureGrid) delete[]pHTextureGrid,pHTextureGrid=NULL; //DeadCode MS 15Aug00 Mono_Text.Print((UByte*)"RefreshLandscape: biginit "); Three_Dee.pMigLand->BigInit(View_Point); //DeadCode MS 15Aug00 Mono_Text.Print((UByte*)"RefreshLandscape: reinit "); Three_Dee.pTMake->Reinit(View_Point->World.X,View_Point->World.Z,g_lpLib3d); //DEADCODE PD 01/12/99 if (!Save_Data.fSoftware) currscreen->DoFreeTextures(); //DEADCODE PD 01/12/99 else Three_Dee.pTMake->DoFreeTextures(); //DeadCode MS 15Aug00 Mono_Text.Print((UByte*)"RefreshLandscape: force horiz image update "); //DeadCode JON 6Oct00 g_lpLib3d->UnloadTexture( horizonImg ); //DeadCode MS 15Aug00 Mono_Text.Print((UByte*)"RefreshLandscape: exit "); doneUpdateLandscape = true; } //컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴 //Procedure SetLighting //Author Paul. //Date Mon 18 Jan 1999 //------------------------------------------------------------------------------ Bool LandScape::SetLighting(SLong curTime) //RJS 15Jun99 { //curTime=current time in seconds const SLong fadeTime=3600; //in seconds SLightingRGB *pLowLight, *pHighLight; SLightingRGB preBadW; ULong scaleFactor; Bool lightson = FALSE; //RJS 15Jun99 strongSun = false; //RJS 31Aug00 haveSunGlare = false; //RJS 19Sep00 if (View_Point && View_Point->viewnum.viewmode==VM_Map) { //DeadCode JON 2Nov00 currentLighting=*pMapL; return FALSE; //RJS 15Jun99 } if (curTime<MissManDawnTime()-fadeTime) //it's night time { pLowLight= pHighLight=pNite; scaleFactor=0; lightson = TRUE; //RJS 15Jun99 } else if (curTime<=MissManDawnTime()) //it's morning { //current lighting is a combination of night/dawn pLowLight=pNite; pHighLight=pDawn; scaleFactor=((MissManDawnTime()-curTime)<<16)/fadeTime; lightson = TRUE; //RJS 15Jun99 } else if (curTime<MissManDawnTime()+fadeTime) { //current lighting is a combination of dawn/day pLowLight=pDawn; pHighLight=pDay; // scaleFactor=65536-(((MMC.dawntime+fadeTime-curTime)<<16)/fadeTime); scaleFactor=(((MissManDawnTime()+fadeTime-curTime)<<16)/fadeTime); strongSun = true; if (scaleFactor < 16384) haveSunGlare = true; //RJS 19Sep00 } else if (curTime<MissManDuskTime()-fadeTime) { pLowLight= pHighLight=pDay; scaleFactor=0; strongSun = true; //RJS 31Aug00 haveSunGlare = true; //RJS 19Sep00 } else if (curTime<=MissManDuskTime()) { //current lighting is a combination of day/dusk pLowLight=pDay; pHighLight=pDusk; scaleFactor=((MissManDuskTime()-curTime)<<16)/fadeTime; strongSun = true; //RJS 19Sep00 if (scaleFactor > 32768) haveSunGlare = true; //RJS 19Sep00 } else if (curTime<=MissManDuskTime()+fadeTime) { //current lighting is a combination of dusk/night pLowLight=pDusk; pHighLight=pNite; // scaleFactor=65536-(((MMC.dusktime+fadeTime-curTime)<<16)/fadeTime); scaleFactor=(((MissManDuskTime()+fadeTime-curTime)<<16)/fadeTime); lightson = TRUE; //RJS 15Jun99 } else { pLowLight= pHighLight=pNite; scaleFactor=0; lightson = TRUE; //RJS 15Jun99 } if (scaleFactor==0) { currentLighting=*pHighLight; //DEADCODE JON 4/11/00 currentLighting=*pLowLight; } else { //deadcode InterpLight(horizonBase); //deadcode InterpLight(horizonMid); //deadcode InterpLight(horizonUnderClouds); //deadcode InterpLight(horizonAtClouds); //deadcode InterpLight(horizonAboveClouds); //deadcode InterpLight(horizonTop); InterpLight(landAmbientCollo); InterpLight(landAmbientColhi); InterpLight(landAmbientColamb); InterpLight(shadedAmbientCollo); InterpLight(shadedAmbientColhi); InterpLight(shadedAmbientColamb); InterpLight(staticAmbientCollo); InterpLight(staticAmbientColhi); InterpLight(staticAmbientColamb); //DeadCode JON 2Nov00 InterpLight(cockpitAmbientCollo); InterpLight(cockpitAmbientColhi); InterpLight(cockpitAmbientColamb); //DeadCode JON 2Nov00 InterpLight(effectsAmbientCollo); InterpLight(effectsAmbientColhi); InterpLight(effectsAmbientColamb); // and the back horizon fill stuff //JON 4/20/00 InterpLight(deepestSkyCol); InterpLight(otherSkyColSun); InterpLight(otherSkyColShade); InterpLight(cloudColSun); InterpLight(cloudColShade); InterpLight(horizonColSun); InterpLight(horizonColShade); InterpLight(fogColSun); InterpLight(fogColShade); InterpLight(sunCol); InterpLight(specularHighlight); } //account for bad weather here... //DeadCode JON 2Nov00 if (Save_Data.gamedifficulty[GD_WEATHEREFFECTS] && MissManCampSky().Conditions==1) //DeadCode JON 2Nov00 { //DeadCode JON 2Nov00 preBadW=currentLighting; //DeadCode JON 2Nov00 pLowLight=&preBadW; //DeadCode JON 2Nov00 pHighLight=pBadW; //DeadCode JON 2Nov00 #pragma warnmsg( "look at weather lighting here - JON" ) //DeadCode JON 2Nov00 scaleFactor=32768; //how bad 0==very bad 65536=clear weather //DeadCode JON 2Nov00 //DeadCode JON 2Nov00 //deadcode InterpLight(horizonBase); //DeadCode JON 2Nov00 //deadcode InterpLight(horizonMid); //DeadCode JON 2Nov00 //deadcode InterpLight(horizonUnderClouds); //DeadCode JON 2Nov00 //deadcode InterpLight(horizonAtClouds); //DeadCode JON 2Nov00 //deadcode InterpLight(horizonAboveClouds); //DeadCode JON 2Nov00 //deadcode InterpLight(horizonTop); //DeadCode JON 2Nov00 InterpLight(landAmbientCollo); InterpLight(landAmbientColhi); InterpLight(landAmbientColamb); //DeadCode JON 2Nov00 InterpLight(shadedAmbientCollo); InterpLight(shadedAmbientColhi); InterpLight(shadedAmbientColamb); //DeadCode JON 2Nov00 InterpLight(staticAmbientCollo); InterpLight(staticAmbientColhi); InterpLight(staticAmbientColamb); //DeadCode JON 2Nov00 //DeadCode JON 2Nov00 InterpLight(cockpitAmbientCollo); InterpLight(cockpitAmbientColhi); InterpLight(cockpitAmbientColamb); //DeadCode JON 2Nov00 //DeadCode JON 2Nov00 InterpLight(effectsAmbientCollo); InterpLight(effectsAmbientColhi); InterpLight(effectsAmbientColamb); //DeadCode JON 2Nov00 //DeadCode JON 2Nov00 // and the back horizon fill stuff //JON 4/20/00 //DeadCode JON 2Nov00 InterpLight(deepestSkyCol); //DeadCode JON 2Nov00 InterpLight(otherSkyColSun); //DeadCode JON 2Nov00 InterpLight(otherSkyColShade); //DeadCode JON 2Nov00 InterpLight(cloudColSun); //DeadCode JON 2Nov00 InterpLight(cloudColShade); //DeadCode JON 2Nov00 InterpLight(horizonColSun); //DeadCode JON 2Nov00 InterpLight(horizonColShade); //DeadCode JON 2Nov00 InterpLight(fogColSun); //DeadCode JON 2Nov00 InterpLight(fogColShade); //DeadCode JON 2Nov00 InterpLight(specularHighlight); //DeadCode JON 2Nov00 //DeadCode JON 2Nov00 } //currentLighting contains the lighting info //for the correct time of day and weather type // set the fog colour now... - actually set it in infinite strip - relative to the direction //DeadCode JON 11Sep00 Three_Dee.fogCol = (currentLighting.fogCol.red()<<16)+(currentLighting.fogCol.green()<<8)+currentLighting.fogCol.blue(); //DEADCODE PD 03/12/99 if (mono3d) //DEADCODE PD 03/12/99 { //DEADCODE PD 03/12/99 currentLighting.landAmbientCol.g= //DEADCODE PD 03/12/99 currentLighting.landAmbientCol.b= //DEADCODE PD 03/12/99 currentLighting.landAmbientCol.r; //DEADCODE PD 03/12/99 currentLighting.shadedAmbientCol.g= //DEADCODE PD 03/12/99 currentLighting.shadedAmbientCol.b= //DEADCODE PD 03/12/99 currentLighting.shadedAmbientCol.r; //DEADCODE PD 03/12/99 currentLighting.staticAmbientCol.g= //DEADCODE PD 03/12/99 currentLighting.staticAmbientCol.b= //DEADCODE PD 03/12/99 currentLighting.staticAmbientCol.r; //DEADCODE PD 03/12/99 currentLighting.cockpitAmbientCol.g= //DEADCODE PD 03/12/99 currentLighting.cockpitAmbientCol.b= //DEADCODE PD 03/12/99 currentLighting.cockpitAmbientCol.r; //DEADCODE PD 03/12/99 currentLighting.effectsAmbientCol.g= //DEADCODE PD 03/12/99 currentLighting.effectsAmbientCol.b= //DEADCODE PD 03/12/99 currentLighting.effectsAmbientCol.r; //DEADCODE PD 03/12/99 } return lightson; //RJS 15Jun99 } //컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴 //Procedure ResetLights //Author Paul. //Date Mon 1 Mar 1999 //------------------------------------------------------------------------------ //deadcode JON 19/06/01 void LandScape::ResetLights() //deadcode JON 19/06/01 { //DeadCode JON 20Sep00 for (SLong i=0;i<_MaxLights;lightList[i++].timer=0){} //deadcode JON 19/06/01 } //컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴 //Procedure AddLight //Author Paul. //Date Mon 1 Mar 1999 //------------------------------------------------------------------------------ //deadcode JON 19/06/01 void LandScape::AddLight(SLandLight* newlight) //deadcode JON 19/06/01 { //DeadCode JON 20Sep00 for (SLong i=0;i<_MaxLights;i++) //DeadCode JON 20Sep00 if (lightList[i].timer==0) //DeadCode JON 20Sep00 break; //DeadCode JON 20Sep00 if (i<_MaxLights) //DeadCode JON 20Sep00 lightList[i]=*newlight; //deadcode JON 19/06/01 } //컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴 //Procedure ProcessLights //Author Paul. //Date Mon 1 Mar 1999 //------------------------------------------------------------------------------ //DeadCode JON 20Sep00 void LandScape::ProcessLights(SLong ox,SLong oz) //DeadCode JON 20Sep00 { //DeadCode JON 20Sep00 #pragma warnmsg ( "ProcessLights" ) //DeadCode JON 21Aug00 return; //DeadCode JON 21Aug00 SLong wholeAreaSize; //DeadCode JON 21Aug00 //DeadCode JON 21Aug00 SLong thisTime=View_Point->FrameTime(); //DeadCode JON 21Aug00 //DeadCode JON 21Aug00 UByte actTbl[_MaxLights]; //DeadCode JON 21Aug00 //DeadCode JON 21Aug00 UWord addTo=0; //DeadCode JON 21Aug00 //DeadCode JON 21Aug00 UByte *pGridCone,*pLightCone; //DeadCode JON 21Aug00 //DeadCode JON 21Aug00 lightsActive=0; //DeadCode JON 21Aug00 //DeadCode JON 21Aug00 for (SLong i=0;i<_MaxLights;i++) //DeadCode JON 21Aug00 { //DeadCode JON 21Aug00 if (lightList[i].timer!=0 && //DeadCode JON 21Aug00 (lightList[i].timer-=thisTime)>0) //DeadCode JON 21Aug00 actTbl[lightsActive++]=UByte(i); //DeadCode JON 21Aug00 else //DeadCode JON 21Aug00 if (lightList[i].timer!=0) lightList[i].timer=0; //DeadCode JON 21Aug00 } //DeadCode JON 21Aug00 //DeadCode JON 21Aug00 if (lightsActive==0) return; //DeadCode JON 21Aug00 //DeadCode JON 21Aug00 for (i=0;i<_wholeAreaSizeMAX;lightTable[i++].numLights=0){} //DeadCode JON 21Aug00 //DeadCode JON 21Aug00 // wholeAreaSize=Save_Data.detail_3d[DETAIL3D_HORIZONDIST]?_wholeAreaSizeMAX:_wholeAreaSizeMIN; //DeadCode JON 21Aug00 wholeAreaSize=_wholeAreaSizeMIN; //DeadCode JON 21Aug00 //DeadCode JON 21Aug00 pGridCone=gridCone; //DeadCode JON 21Aug00 pLightCone=lightCone; //DeadCode JON 21Aug00 //DeadCode JON 21Aug00 for (SLong row=0;row<wholeAreaSize;row++) //DeadCode JON 21Aug00 { //DeadCode JON 21Aug00 SLong ix=ox; //DeadCode JON 21Aug00 //DeadCode JON 21Aug00 for (SLong col=0;col<wholeAreaSize;col++) //DeadCode JON 21Aug00 { //DeadCode JON 21Aug00 if (*pGridCone) //DeadCode JON 21Aug00 { //DeadCode JON 21Aug00 //check this cell against active light list //DeadCode JON 21Aug00 SLong cx0,cx1,cz0,cz1; //DeadCode JON 21Aug00 SLong lx0,lx1,lz0,lz1; //DeadCode JON 21Aug00 SLong lrange; //DeadCode JON 21Aug00 bool anyAdded=false; //DeadCode JON 21Aug00 //DeadCode JON 21Aug00 for (SLong lights=0;lights<lightsActive;lights++) //DeadCode JON 21Aug00 { //DeadCode JON 21Aug00 SLong index=actTbl[lights]; //DeadCode JON 21Aug00 lrange=lightList[index].range; //DeadCode JON 21Aug00 SLong dx=lightList[index].pos.X-ix-_halfBlockWidth; //DeadCode JON 21Aug00 if (dx<0) dx=-dx; //DeadCode JON 21Aug00 if (dx<_blockWidth) //DeadCode JON 21Aug00 { //DeadCode JON 21Aug00 SLong dz=lightList[index].pos.Z-oz-_halfBlockWidth; //DeadCode JON 21Aug00 if (dz<0) dz=-dz; //DeadCode JON 21Aug00 if (dz<_blockWidth) //DeadCode JON 21Aug00 { //DeadCode JON 21Aug00 bool lightIn=false; //DeadCode JON 21Aug00 lx0=lx1=lightList[index].pos.X; //DeadCode JON 21Aug00 lz0=lz1=lightList[index].pos.Z; //DeadCode JON 21Aug00 lx0-=lrange; //DeadCode JON 21Aug00 lz0-=lrange; //DeadCode JON 21Aug00 lx1+=lrange; //DeadCode JON 21Aug00 lz1+=lrange; //DeadCode JON 21Aug00 cx0=ix; //DeadCode JON 21Aug00 cx1=ix+_blockWidth; //DeadCode JON 21Aug00 cz0=oz; //DeadCode JON 21Aug00 cz1=oz+_blockWidth; //DeadCode JON 21Aug00 if (lrange>_blockWidth) //DeadCode JON 21Aug00 { //DeadCode JON 21Aug00 //check to see if this tile lies inside the //DeadCode JON 21Aug00 //area covered by the light //DeadCode JON 21Aug00 if (cx0>=lx0 && cx0<=lx1 && cz0>=lz0 && cz0<=lz1) lightIn=true; //DeadCode JON 21Aug00 if (!lightIn && cx1>=lx0 && cx1<=lx1 && cz0>=lz0 && cz0<=lz1) lightIn=true; //DeadCode JON 21Aug00 if (!lightIn && cx1>=lx0 && cx1<=lx1 && cz1>=lz0 && cz1<=lz1) lightIn=true; //DeadCode JON 21Aug00 if (!lightIn && cx0>=lx0 && cx0<=lx1 && cz1>=lz0 && cz1<=lz1) lightIn=true; //DeadCode JON 21Aug00 } //DeadCode JON 21Aug00 else //DeadCode JON 21Aug00 { //DeadCode JON 21Aug00 //check to see if this light lies inside the //DeadCode JON 21Aug00 //area covered by the tile //DeadCode JON 21Aug00 if (lx0>=cx0 && lx0<=cx1 && lz0>=cz0 && lz0<=cz1) lightIn=true; //DeadCode JON 21Aug00 if (!lightIn && lx1>=cx0 && lx1<=cx1 && lz0>=cz0 && lz0<=cz1) lightIn=true; //DeadCode JON 21Aug00 if (!lightIn && lx1>=cx0 && lx1<=cx1 && lz1>=cz0 && lz1<=cz1) lightIn=true; //DeadCode JON 21Aug00 if (!lightIn && lx0>=cx0 && lx0<=cx1 && lz1>=cz0 && lz1<=cz1) lightIn=true; //DeadCode JON 21Aug00 } //DeadCode JON 21Aug00 if (lightIn) //DeadCode JON 21Aug00 { //DeadCode JON 21Aug00 //find a spare light table entry to use //DeadCode JON 21Aug00 UWord thisOne=lightTable[addTo].numLights; //DeadCode JON 21Aug00 lightTable[addTo].lightIndices[thisOne++]=index; //DeadCode JON 21Aug00 lightTable[addTo].numLights=thisOne; //DeadCode JON 21Aug00 anyAdded=true; //DeadCode JON 21Aug00 } //DeadCode JON 21Aug00 } //DeadCode JON 21Aug00 } //DeadCode JON 21Aug00 } //DeadCode JON 21Aug00 if (anyAdded) //DeadCode JON 21Aug00 { //DeadCode JON 21Aug00 *pLightCone=UByte(addTo); //DeadCode JON 21Aug00 addTo++; //DeadCode JON 21Aug00 if (addTo==_wholeAreaSizeMAX) //DeadCode JON 21Aug00 return; //DeadCode JON 21Aug00 } //DeadCode JON 21Aug00 } //DeadCode JON 21Aug00 else *pLightCone=0xFF; //DeadCode JON 21Aug00 //DeadCode JON 21Aug00 pGridCone++; //DeadCode JON 21Aug00 pLightCone++; //DeadCode JON 21Aug00 ix+=_blockWidth; //DeadCode JON 21Aug00 } //DeadCode JON 21Aug00 oz+=_blockWidth; //DeadCode JON 21Aug00 } //DeadCode JON 20Sep00 } //컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴 //Procedure GroundHuggingAltitude //Author Paul. //Date Wed 3 Mar 1999 //------------------------------------------------------------------------------ SLong LandScape::GroundHuggingAltitude(MobileItem* itemPtr) { if (itemPtr->World.Y>HIGHESTGROUND) return 0; SLong x=(itemPtr->World.X&~ULong(_blockWidth-1))+(_blockWidth>>1); SLong y=itemPtr->World.Y; SLong z=(itemPtr->World.Z&~ULong(_blockWidth-1))+(_blockWidth>>1); SLong maxAlt,thisAlt; //always test central tile maxAlt=_Collide.RoughGroundAltitude(x,y,z); if (y+FT_2000>maxAlt) return 0; UWord heading=itemPtr->hdg; if (heading<=UWord(ANGLES_45Deg) || heading>UWord(-ANGLES_45Deg)) { thisAlt=_Collide.RoughGroundAltitude(x-_blockWidth,y,z+_blockWidth); if (thisAlt>maxAlt) maxAlt=thisAlt; thisAlt=_Collide.RoughGroundAltitude(x,y,z+_blockWidth); if (thisAlt>maxAlt) maxAlt=thisAlt; thisAlt=_Collide.RoughGroundAltitude(x+_blockWidth,y,z+_blockWidth); if (thisAlt>maxAlt) maxAlt=thisAlt; } else if (heading>UWord(ANGLES_45Deg) && heading<=UWord(ANGLES_90Deg)+UWord(ANGLES_45Deg)) { thisAlt=_Collide.RoughGroundAltitude(x+_blockWidth,y,z+_blockWidth); if (thisAlt>maxAlt) maxAlt=thisAlt; thisAlt=_Collide.RoughGroundAltitude(x+_blockWidth,y,z); if (thisAlt>maxAlt) maxAlt=thisAlt; thisAlt=_Collide.RoughGroundAltitude(x+_blockWidth,y,z-_blockWidth); if (thisAlt>maxAlt) maxAlt=thisAlt; } else if (heading>UWord(ANGLES_90Deg)+UWord(ANGLES_45Deg) && heading<=UWord(ANGLES_180Deg)-UWord(ANGLES_45Deg)) { thisAlt=_Collide.RoughGroundAltitude(x-_blockWidth,y,z-_blockWidth); if (thisAlt>maxAlt) maxAlt=thisAlt; thisAlt=_Collide.RoughGroundAltitude(x,y,z-_blockWidth); if (thisAlt>maxAlt) maxAlt=thisAlt; thisAlt=_Collide.RoughGroundAltitude(x+_blockWidth,y,z-_blockWidth); if (thisAlt>maxAlt) maxAlt=thisAlt; } else { thisAlt=_Collide.RoughGroundAltitude(x-_blockWidth,y,z+_blockWidth); if (thisAlt>maxAlt) maxAlt=thisAlt; thisAlt=_Collide.RoughGroundAltitude(x-_blockWidth,y,z); if (thisAlt>maxAlt) maxAlt=thisAlt; thisAlt=_Collide.RoughGroundAltitude(x-_blockWidth,y,z-_blockWidth); if (thisAlt>maxAlt) maxAlt=thisAlt; } return maxAlt; } // // (wx,wz) are world coordinates (in cm) for top left corner of the tile // TILE_WH gives the dimensions of the sample area // R3DVALUE LandScape::layer00table[512]; //normal R3DVALUE LandScape::layer01table[512]; //normal R3DVALUE LandScape::layer02table[512]; //normal R3DVALUE LandScape::layer10table[512]; //inverted R3DVALUE LandScape::layer11table[512]; //inverted R3DVALUE LandScape::layer12table[512]; //inverted LandScape::LOCALVERT LandScape::vert[TILE_WH<<1]; inline UByte Noise2(UByte a,UByte b) {return shape::RandTable[0xFF&(shape::RandTable[a]+b)];} inline UWord Noise1(UByte a) {return shape::RandTable[a];} // //oriPts is a 2x2 grid of the original point set. //newPtr is a 3x3 grid that will contain new points // void LandScape::Zoom00(UWord *oriPts,UWord *newPts,UWord scale) { UWord newVal; //copy over original points newPts[NEW_TL]=oriPts[OLD_TL]; newPts[NEW_TR]=oriPts[OLD_TR]; newPts[NEW_BL]=oriPts[OLD_BL]; newPts[NEW_BR]=oriPts[OLD_BR]; //center point is average of corner points + random value newVal=oriPts[OLD_TL]+oriPts[OLD_TR]+oriPts[OLD_BL]+oriPts[OLD_BR]; newPts[NEW_MM]=(newVal>>2)+(Noise1(newVal)>>scale); //top edge point is average of original top edge points + random value newVal=oriPts[OLD_TL]+oriPts[OLD_TR]; newPts[NEW_TM]=(newVal>>1)+(Noise1(newVal)>>scale); //bottom edge point is average of original bottom edge points + random value newVal=oriPts[OLD_BL]+oriPts[OLD_BR]; newPts[NEW_BM]=(newVal>>1)+(Noise1(newVal)>>scale); //left edge point is average of original left edge points + random value newVal=oriPts[OLD_TL]+oriPts[OLD_BL]; newPts[NEW_ML]=(newVal>>1)+(Noise1(newVal)>>scale); //right edge point is average of original right edge points + random value newVal=oriPts[OLD_TR]+oriPts[OLD_BR]; newPts[NEW_MR]=(newVal>>1)+(Noise1(newVal)>>scale); } // // same as Zoom00 but lhs edge is not built // void LandScape::Zoom01(UWord *oriPts,UWord *newPts,UWord scale) { UWord newVal; //copy over original points newPts[NEW_TR]=oriPts[OLD_TR]; newPts[NEW_BR]=oriPts[OLD_BR]; //center point is average of corner points + random value newVal=oriPts[OLD_TL]+oriPts[OLD_TR]+oriPts[OLD_BL]+oriPts[OLD_BR]; newPts[NEW_MM]=(newVal>>2)+(Noise1(newVal)>>scale); //top edge point is average of original top edge points + random value newVal=oriPts[OLD_TL]+oriPts[OLD_TR]; newPts[NEW_TM]=(newVal>>1)+(Noise1(newVal)>>scale); //bottom edge point is average of original bottom edge points + random value newVal=oriPts[OLD_BL]+oriPts[OLD_BR]; newPts[NEW_BM]=(newVal>>1)+(Noise1(newVal)>>scale); //right edge point is average of original right edge points + random value newVal=oriPts[OLD_TR]+oriPts[OLD_BR]; newPts[NEW_MR]=(newVal>>1)+(Noise1(newVal)>>scale); } // // Same as Zoom00 but top edge is not built // void LandScape::Zoom02(UWord *oriPts,UWord *newPts,UWord scale) { UWord newVal; //copy over original points newPts[NEW_BL]=oriPts[OLD_BL]; newPts[NEW_BR]=oriPts[OLD_BR]; //center point is average of corner points + random value newVal=oriPts[OLD_TL]+oriPts[OLD_TR]+oriPts[OLD_BL]+oriPts[OLD_BR]; newPts[NEW_MM]=(newVal>>2)+(Noise1(newVal)>>scale); //bottom edge point is average of original bottom edge points + random value newVal=oriPts[OLD_BL]+oriPts[OLD_BR]; newPts[NEW_BM]=(newVal>>1)+(Noise1(newVal)>>scale); //left edge point is average of original left edge points + random value newVal=oriPts[OLD_TL]+oriPts[OLD_BL]; newPts[NEW_ML]=(newVal>>1)+(Noise1(newVal)>>scale); //right edge point is average of original right edge points + random value newVal=oriPts[OLD_TR]+oriPts[OLD_BR]; newPts[NEW_MR]=(newVal>>1)+(Noise1(newVal)>>scale); } // // Same as Zoom00 but top & lhs edges are not built // void LandScape::Zoom03(UWord *oriPts,UWord *newPts,UWord scale) { UWord newVal; //copy over original points newPts[NEW_BR]=oriPts[OLD_BR]; //center point is average of corner points + random value newVal=oriPts[OLD_TL]+oriPts[OLD_TR]+oriPts[OLD_BL]+oriPts[OLD_BR]; newPts[NEW_MM]=(newVal>>2)+(Noise1(newVal)>>scale); //bottom edge point is average of original bottom edge points + random value newVal=oriPts[OLD_BL]+oriPts[OLD_BR]; newPts[NEW_BM]=(newVal>>1)+(Noise1(newVal)>>scale); //right edge point is average of original right edge points + random value newVal=oriPts[OLD_TR]+oriPts[OLD_BR]; newPts[NEW_MR]=(newVal>>1)+(Noise1(newVal)>>scale); } // // Double the resolution of a set of height data for clouds // void LandScape::DoubleRez(UWord *oriPts,UWord scale,UWord*& newPts) { if (!newPts) newPts=new UWord[TILE_WH*TILE_WH]; Zoom00(oriPts,newPts,scale); { for (int i=2;i<TILE_WH-1;i+=2) Zoom01(oriPts+(i>>1),newPts+i,scale); } for (int i=2;i<TILE_WH-1;i+=2) { Zoom02(oriPts+(i>>1)*TILE_WH,newPts+i*TILE_WH,scale); for (int j=2;j<TILE_WH-1;j+=2) Zoom03(oriPts+(i>>1)*TILE_WH+(j>>1),newPts+i*TILE_WH+j,scale); } } // // Generate top level point data (no interpolation // void LandScape::MakeTopLevel(SLong wx,SLong wz,UWord*& newPts) { UWord *ptr; //original samlples are every 1.3km wx>>=17; wz>>=17; if (!newPts) newPts=new UWord[TILE_WH*TILE_WH]; ptr=newPts; for (SLong i=TILE_WH;i>0;i--,wz++) for (SLong j=TILE_WH,wx2=wx;j>0;j--,wx2++) *ptr++=Noise2(wz,wx2); } // // Generate all levels of data for the cloud layer // //void LandScape::MakeAllLevels(SLong wx,SLong wz,UWord**ppData) //{ // MakeTopLevel(wx,wz,ppData[0]); // for (UWord scale=1;scale<7;scale++) // DoubleRez(ppData[scale-1]+TILE_OFFX+TILE_OFFZ,scale,ppData[scale]); //} // // Initialise lookup tables used for cloud layers // void LandScape::InitialiseCloudTables() { for (SLong i=0;i<512;i++) { R3DVALUE v=R3DVALUE(i)*100; // R3DVALUE v=R3DVALUE(i-50<0?0:i-50); layer10table[i]=-(layer00table[i]=ALT_SCALE00*v); layer11table[i]=-(layer01table[i]=ALT_SCALE01*v); layer12table[i]=-(layer02table[i]=ALT_SCALE02*v); } pLevels[0]= pLevels[1]= pLevels[2]= pLevels[3]= pLevels[4]= pLevels[5]= pLevels[6]= pLevels[7]=NULL; scaleBase[0].X= scaleBase[1].X= scaleBase[2].X= scaleBase[3].X= scaleBase[4].X= scaleBase[5].X= scaleBase[6].X= scaleBase[7].X=0x7FFFFFFF; } // // Render a single level of the data // //DEADCODE JON 5/24/00 void LandScape::RenderLevel00(const COORDS3D& base,UWord *pntArray,UWord scale,R3DVALUE *vals) //DEADCODE JON 5/24/00 { //DEADCODE JON 5/24/00 #ifndef _REDO_ME1_ //DEADCODE JON 5/24/00 R3DVERTEX *pRVert,*pListA,*pListB; //DEADCODE JON 5/24/00 UWord *pPntsA,*pPntsB; //DEADCODE JON 5/24/00 COORDS3D crdsA,crdsB; //DEADCODE JON 5/24/00 ImageMapDesc *pImg; //DEADCODE JON 5/24/00 SLong step; //DEADCODE JON 5/24/00 SWord halfMapWidth,halfMapHeight; //DEADCODE JON 5/24/00 SWord widthMask,heightMask; //DEADCODE JON 5/24/00 //DEADCODE JON 5/24/00 step=((4096<<5)>>scale); //DEADCODE JON 5/24/00 pImg=Image_Map.GetImageMapPtr(CLOUDNO); //DEADCODE JON 5/24/00 halfMapWidth=pImg->w>>1; //DEADCODE JON 5/24/00 halfMapHeight=pImg->h>>1; //DEADCODE JON 5/24/00 widthMask=(pImg->w)-1; //DEADCODE JON 5/24/00 heightMask=(pImg->h)-1; //DEADCODE JON 5/24/00 //DEADCODE JON 5/24/00 g_lpLib3d->PushMatrix(MATRIX_OBJECT); //DEADCODE JON 5/24/00 g_lpLib3d->LoadIdentity(MATRIX_OBJECT); //DEADCODE JON 5/24/00 //DEADCODE JON 5/24/00 pRVert=new R3DVERTEX[TILE_WH*TILE_WH]; //DEADCODE JON 5/24/00 //DEADCODE JON 5/24/00 pListA=pRVert; //DEADCODE JON 5/24/00 pPntsA=pntArray; //DEADCODE JON 5/24/00 crdsA.X=base.X; //DEADCODE JON 5/24/00 crdsA.Y=base.Y; //DEADCODE JON 5/24/00 crdsA.Z=base.Z; //DEADCODE JON 5/24/00 //DEADCODE JON 5/24/00 pListB=pRVert+TILE_WH*(TILE_WH-1); //DEADCODE JON 5/24/00 pPntsB=pntArray+TILE_WH*(TILE_WH-1); //DEADCODE JON 5/24/00 crdsB.X=base.X; //DEADCODE JON 5/24/00 crdsB.Y=base.Y; //DEADCODE JON 5/24/00 crdsB.Z=base.Z+(TILE_WH-1)*step; //DEADCODE JON 5/24/00 //DEADCODE JON 5/24/00 pListA[0].x=crdsA.X; //DEADCODE JON 5/24/00 pListA[0].y=crdsA.Y+pPntsA[0]; //DEADCODE JON 5/24/00 pListA[0].z=crdsA.Z; //DEADCODE JON 5/24/00 pListA[0].ix=0; //DEADCODE JON 5/24/00 pListA[0].iy=0; //DEADCODE JON 5/24/00 pListB[0].x=crdsB.X; //DEADCODE JON 5/24/00 pListB[0].y=crdsB.Y+pPntsB[0]; //DEADCODE JON 5/24/00 pListB[0].z=crdsB.Z; //DEADCODE JON 5/24/00 pListB[0].ix=0; //DEADCODE JON 5/24/00 pListB[0].iy=0; //DEADCODE JON 5/24/00 for (int i=2;i<TILE_WH;i+=2) //DEADCODE JON 5/24/00 { //DEADCODE JON 5/24/00 crdsA.X+=step; //DEADCODE JON 5/24/00 pListA[i-1].x=crdsA.X; //DEADCODE JON 5/24/00 pListA[i-1].z=crdsA.Z; //DEADCODE JON 5/24/00 pListA[i-1].ix=(pListA[i-2].ix+halfMapWidth)&widthMask; //DEADCODE JON 5/24/00 pListA[i-1].iy=pListA[i-2].iy; //DEADCODE JON 5/24/00 crdsA.X+=step; //DEADCODE JON 5/24/00 pListA[i].x=crdsA.X; //DEADCODE JON 5/24/00 pListA[i].y=crdsA.Y+pPntsA[i]; //DEADCODE JON 5/24/00 pListA[i].z=crdsA.Z; //DEADCODE JON 5/24/00 pListA[i].ix=(pListA[i-1].ix+halfMapWidth)&widthMask; //DEADCODE JON 5/24/00 pListA[i].iy=pListA[i-1].iy; //DEADCODE JON 5/24/00 pListA[i-1].y=.5f*(pListA[i].y+pListA[i-2].y); //DEADCODE JON 5/24/00 crdsB.X+=step; //DEADCODE JON 5/24/00 pListB[i-1].x=crdsB.X; //DEADCODE JON 5/24/00 pListB[i-1].z=crdsB.Z; //DEADCODE JON 5/24/00 pListB[i-1].ix=(pListB[i-2].ix+halfMapWidth)&widthMask; //DEADCODE JON 5/24/00 pListB[i-1].iy=pListB[i-2].iy; //DEADCODE JON 5/24/00 crdsB.X+=step; //DEADCODE JON 5/24/00 pListB[i].x=crdsB.X; //DEADCODE JON 5/24/00 pListB[i].y=crdsB.Y+pPntsB[i]; //DEADCODE JON 5/24/00 pListB[i].z=crdsB.Z; //DEADCODE JON 5/24/00 pListB[i].ix=(pListB[i-1].ix+halfMapWidth)&widthMask; //DEADCODE JON 5/24/00 pListB[i].iy=pListB[i-1].iy; //DEADCODE JON 5/24/00 pListB[i-1].y=.5f*(pListB[i].y+pListB[i-2].y); //DEADCODE JON 5/24/00 } //DEADCODE JON 5/24/00 //DEADCODE JON 5/24/00 crdsA.X=base.X; //DEADCODE JON 5/24/00 crdsA.Y=base.Y; //DEADCODE JON 5/24/00 crdsA.Z=base.Z; //DEADCODE JON 5/24/00 //DEADCODE JON 5/24/00 pListB=pRVert+(TILE_WH-1); //DEADCODE JON 5/24/00 pPntsB=pntArray+(TILE_WH-1); //DEADCODE JON 5/24/00 crdsB.X=base.X+step*(TILE_WH-1); //DEADCODE JON 5/24/00 crdsB.Y=base.Y; //DEADCODE JON 5/24/00 crdsB.Z=base.Z; //DEADCODE JON 5/24/00 //DEADCODE JON 5/24/00 int index=TILE_WH*2; //DEADCODE JON 5/24/00 for (i=2;i<TILE_WH;i+=2,index+=TILE_WH) //DEADCODE JON 5/24/00 { //DEADCODE JON 5/24/00 int iprev=index-TILE_WH; //DEADCODE JON 5/24/00 int iprev2=iprev-TILE_WH; //DEADCODE JON 5/24/00 crdsA.Z+=step; //DEADCODE JON 5/24/00 pListA[iprev].x=crdsA.X; //DEADCODE JON 5/24/00 pListA[iprev].z=crdsA.Z; //DEADCODE JON 5/24/00 pListA[iprev].ix=pListA[iprev2].ix; //DEADCODE JON 5/24/00 pListA[iprev].iy=(pListA[iprev2].iy+halfMapHeight)&heightMask; //DEADCODE JON 5/24/00 crdsA.Z+=step; //DEADCODE JON 5/24/00 pListA[index].x=crdsA.X; //DEADCODE JON 5/24/00 pListA[index].y=crdsA.Y+pPntsA[index]; //DEADCODE JON 5/24/00 pListA[index].z=crdsA.Z; //DEADCODE JON 5/24/00 pListA[index].ix=pListA[iprev].ix; //DEADCODE JON 5/24/00 pListA[index].iy=(pListA[iprev].iy+halfMapHeight)&heightMask; //DEADCODE JON 5/24/00 pListA[iprev].y=.5f*(pListA[index].y+pListA[iprev2].y); //DEADCODE JON 5/24/00 crdsB.Z+=step; //DEADCODE JON 5/24/00 pListB[iprev].x=crdsB.X; //DEADCODE JON 5/24/00 pListB[iprev].z=crdsB.Z; //DEADCODE JON 5/24/00 pListB[iprev].ix=pListB[iprev2].ix; //DEADCODE JON 5/24/00 pListB[iprev].iy=(pListB[iprev2].iy+halfMapHeight)&heightMask; //DEADCODE JON 5/24/00 crdsB.Z+=step; //DEADCODE JON 5/24/00 pListB[index].x=crdsB.X; //DEADCODE JON 5/24/00 pListB[index].y=crdsB.Y+pPntsB[index]; //DEADCODE JON 5/24/00 pListB[index].z=crdsB.Z; //DEADCODE JON 5/24/00 pListB[index].ix=pListB[iprev].ix; //DEADCODE JON 5/24/00 pListB[index].iy=(pListB[iprev].iy+halfMapHeight)&heightMask; //DEADCODE JON 5/24/00 pListB[iprev].y=.5f*(pListB[index].y+pListB[iprev2].y); //DEADCODE JON 5/24/00 } //DEADCODE JON 5/24/00 //DEADCODE JON 5/24/00 crdsA.X=base.X+step; //DEADCODE JON 5/24/00 crdsA.Y=base.Y; //DEADCODE JON 5/24/00 crdsA.Z=base.Z+step; //DEADCODE JON 5/24/00 crdsB=crdsA; //DEADCODE JON 5/24/00 //DEADCODE JON 5/24/00 for (i=1;i<TILE_WH-1;i++) //DEADCODE JON 5/24/00 { //DEADCODE JON 5/24/00 int index=i*TILE_WH; //DEADCODE JON 5/24/00 crdsA=crdsB; //DEADCODE JON 5/24/00 crdsB.Z+=step; //DEADCODE JON 5/24/00 for (int j=1;j<TILE_WH-1;j++) //DEADCODE JON 5/24/00 { //DEADCODE JON 5/24/00 pListA[index+j].x=crdsA.X; //DEADCODE JON 5/24/00 pListA[index+j].y=crdsA.Y+pPntsA[index+j]; //DEADCODE JON 5/24/00 pListA[index+j].z=crdsA.Z; //DEADCODE JON 5/24/00 pListA[index+j].ix=(pListA[index+j-1].ix+halfMapWidth)&widthMask; //DEADCODE JON 5/24/00 pListA[index+j].iy=(pListA[index+j-TILE_WH].iy+halfMapHeight)&heightMask; //DEADCODE JON 5/24/00 crdsA.X+=step; //DEADCODE JON 5/24/00 } //DEADCODE JON 5/24/00 } //DEADCODE JON 5/24/00 //DEADCODE JON 5/24/00 for (i=0;i<TILE_WH-1;i++) //DEADCODE JON 5/24/00 { //DEADCODE JON 5/24/00 int index=i*TILE_WH; //DEADCODE JON 5/24/00 for (int j=index;j<index+TILE_WH-1;j++) //DEADCODE JON 5/24/00 { //DEADCODE JON 5/24/00 R3DVERTEX *pVB; //DEADCODE JON 5/24/00 g_lpLib3d->BeginPoly(HMATERIAL(pImg),3,pVB); //DEADCODE JON 5/24/00 *pVB++=pRVert[j]; //DEADCODE JON 5/24/00 *pVB++=pRVert[j+1]; //DEADCODE JON 5/24/00 *pVB++=pRVert[j+TILE_WH+1]; //DEADCODE JON 5/24/00 g_lpLib3d->EndPoly(); //DEADCODE JON 5/24/00 g_lpLib3d->BeginPoly(HMATERIAL(pImg),3,pVB); //DEADCODE JON 5/24/00 *pVB++=pRVert[j]; //DEADCODE JON 5/24/00 *pVB++=pRVert[j+TILE_WH+1]; //DEADCODE JON 5/24/00 *pVB++=pRVert[j+TILE_WH]; //DEADCODE JON 5/24/00 g_lpLib3d->EndPoly(); //DEADCODE JON 5/24/00 g_lpLib3d->BeginPoly(HMATERIAL(pImg),3,pVB); //DEADCODE JON 5/24/00 *pVB++=pRVert[j]; //DEADCODE JON 5/24/00 *pVB++=pRVert[j+TILE_WH+1]; //DEADCODE JON 5/24/00 *pVB++=pRVert[j+1]; //DEADCODE JON 5/24/00 g_lpLib3d->EndPoly(); //DEADCODE JON 5/24/00 g_lpLib3d->BeginPoly(HMATERIAL(pImg),3,pVB); //DEADCODE JON 5/24/00 *pVB++=pRVert[j]; //DEADCODE JON 5/24/00 *pVB++=pRVert[j+TILE_WH]; //DEADCODE JON 5/24/00 *pVB++=pRVert[j+TILE_WH+1]; //DEADCODE JON 5/24/00 g_lpLib3d->EndPoly(); //DEADCODE JON 5/24/00 } //DEADCODE JON 5/24/00 } //DEADCODE JON 5/24/00 delete[]pRVert; //DEADCODE JON 5/24/00 g_lpLib3d->PopMatrix(MATRIX_OBJECT); //DEADCODE JON 5/24/00 #endif //DEADCODE JON 5/24/00 } //DEADCODE JON 5/24/00 void LandScape::RenderACloudLayer(const COORDS3D& viewerPos,const UWord whichLayer) //DEADCODE JON 5/24/00 { //DEADCODE JON 5/24/00 COORDS3D viewFrustrum[8]; //DEADCODE JON 5/24/00 //DEADCODE JON 5/24/00 g_lpLib3d->BackProjectViewCone(viewFrustrum); //DEADCODE JON 5/24/00 //DEADCODE JON 5/24/00 BoundingBox boundingBox(8,viewFrustrum); //DEADCODE JON 5/24/00 //DEADCODE JON 5/24/00 g_lpLib3d->SetFogColour(0x00FFFFFF); //DEADCODE JON 5/24/00 SLong scaleMask=-(1<<18); //DEADCODE JON 5/24/00 for (SLong scale=0;scale<7;scale++,scaleMask>>=1) //DEADCODE JON 5/24/00 if ((viewerPos.X&scaleMask)!=(scaleBase[scale].X&scaleMask) || //DEADCODE JON 5/24/00 (viewerPos.Z&scaleMask)!=(scaleBase[scale].Z&scaleMask)) //DEADCODE JON 5/24/00 break; //DEADCODE JON 5/24/00 //DEADCODE JON 5/24/00 for (;scale<7;scale++,scaleMask>>=1) //DEADCODE JON 5/24/00 { //DEADCODE JON 5/24/00 scaleBase[scale].X=viewerPos.X; //DEADCODE JON 5/24/00 scaleBase[scale].Z=viewerPos.Z; //DEADCODE JON 5/24/00 if (!scale) //DEADCODE JON 5/24/00 MakeTopLevel(scaleBase[0].X&scaleMask,scaleBase[0].Z&scaleMask,pLevels[0]); //DEADCODE JON 5/24/00 else //DEADCODE JON 5/24/00 { //DEADCODE JON 5/24/00 SLong dx=(scaleBase[scale].X>>(18-scale))&0x01; //DEADCODE JON 5/24/00 SLong dz=(scaleBase[scale].Z>>(18-scale))&0x01; //DEADCODE JON 5/24/00 UWord *samplePos=pLevels[scale-1]+TILE_OFFX+TILE_OFFZ; //DEADCODE JON 5/24/00 samplePos+=dz*TILE_WH+dx; //DEADCODE JON 5/24/00 DoubleRez(samplePos,scale,pLevels[scale]); //DEADCODE JON 5/24/00 } //DEADCODE JON 5/24/00 } //DEADCODE JON 5/24/00 COORDS3D tileOffset; //DEADCODE JON 5/24/00 scale=0; //DEADCODE JON 5/24/00 SLong dxz=((4096<<5)>>scale)*(TILE_WH>>1); //DEADCODE JON 5/24/00 scaleMask=(-(1<<18))>>scale; //DEADCODE JON 5/24/00 tileOffset.X=(scaleBase[scale].X&scaleMask)-dxz-viewerPos.X; //DEADCODE JON 5/24/00 tileOffset.Z=(scaleBase[scale].Z&scaleMask)-dxz-viewerPos.Z; //DEADCODE JON 5/24/00 //DEADCODE JON 5/24/00 if (whichLayer&WL_LOWER) //DEADCODE JON 5/24/00 { //DEADCODE JON 5/24/00 tileOffset.Y=FT_8000-viewerPos.Y; //DEADCODE JON 5/24/00 RenderLevel00(tileOffset,pLevels[scale],scale,layer00table); //DEADCODE JON 5/24/00 RenderLevel00(tileOffset,pLevels[scale],scale,layer10table); //DEADCODE JON 5/24/00 } //DEADCODE JON 5/24/00 if (whichLayer&WL_MIDDLE) //DEADCODE JON 5/24/00 { //DEADCODE JON 5/24/00 tileOffset.Y=FT_10000-viewerPos.Y; //DEADCODE JON 5/24/00 RenderLevel00(tileOffset,pLevels[scale],scale,layer01table); //DEADCODE JON 5/24/00 RenderLevel00(tileOffset,pLevels[scale],scale,layer11table); //DEADCODE JON 5/24/00 } //DEADCODE JON 5/24/00 if (whichLayer&WL_TOP) //DEADCODE JON 5/24/00 { //DEADCODE JON 5/24/00 tileOffset.Y=FT_15000-viewerPos.Y; //DEADCODE JON 5/24/00 RenderLevel00(tileOffset,pLevels[scale],scale,layer02table); //DEADCODE JON 5/24/00 RenderLevel00(tileOffset,pLevels[scale],scale,layer12table); //DEADCODE JON 5/24/00 } //DEADCODE JON 5/24/00 g_lpLib3d->SetFogColour(0x0090B8E8); //DEADCODE JON 5/24/00 } //컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴 //Procedure SmokeyCockpit //Author Paul. //Date Fri 3 Dec 1999 // //------------------------------------------------------------------------------ //deadcode JON 19/06/01 void LandScape::SmokeyCockpit() //deadcode JON 19/06/01 { //DEADCODE JON 5/24/00 #ifndef _REDO_ME1_ //DEADCODE JON 5/24/00 static UWord height=0; //DEADCODE JON 5/24/00 ImageMapNumber SmokeyImage; //DEADCODE JON 5/24/00 ImageMapDesc *pSmokeyImage; //DEADCODE JON 5/24/00 HMATERIAL hMaterial; //DEADCODE JON 5/24/00 ROWANSURFACEDESC rsd; //DEADCODE JON 5/24/00 R3DTLVERTEX *pRTLVert; //DEADCODE JON 5/24/00 SmokeyImage=CLOUDNO; //DEADCODE JON 5/24/00 pSmokeyImage=Image_Map.GetImageMapPtr(SmokeyImage); //DEADCODE JON 5/24/00 hMaterial=HMATERIAL(pSmokeyImage); //DEADCODE JON 5/24/00 height+=View_Point->RealFrameTime(); //DEADCODE JON 5/24/00 rsd.dwSize=sizeof(ROWANSURFACEDESC); //DEADCODE JON 5/24/00 g_lpLib3d->GetSurfaceDesc(&rsd); //DEADCODE JON 5/24/00 g_lpLib3d->BeginPoly(hMaterial,4,pRTLVert); //DEADCODE JON 5/24/00 pRTLVert[0].sx=0; //DEADCODE JON 5/24/00 pRTLVert[0].sy=0; //DEADCODE JON 5/24/00 pRTLVert[0].ix=0; //DEADCODE JON 5/24/00 pRTLVert[0].iy=0+(height>>7); //DEADCODE JON 5/24/00 pRTLVert[1].sx=rsd.dwWidth-1; //DEADCODE JON 5/24/00 pRTLVert[1].sy=0; //DEADCODE JON 5/24/00 pRTLVert[1].ix=pSmokeyImage->w; //DEADCODE JON 5/24/00 pRTLVert[1].iy=0+(height>>7); //DEADCODE JON 5/24/00 pRTLVert[2].sx=rsd.dwWidth-1; //DEADCODE JON 5/24/00 pRTLVert[2].sy=rsd.dwHeight-1; //DEADCODE JON 5/24/00 pRTLVert[2].ix=pSmokeyImage->w; //DEADCODE JON 5/24/00 pRTLVert[2].iy=pSmokeyImage->h+(height>>7); //DEADCODE JON 5/24/00 pRTLVert[3].sx=0; //DEADCODE JON 5/24/00 pRTLVert[3].sy=rsd.dwHeight-1; //DEADCODE JON 5/24/00 pRTLVert[3].ix=0; //DEADCODE JON 5/24/00 pRTLVert[3].iy=pSmokeyImage->h+(height>>7); //DEADCODE JON 5/24/00 g_lpLib3d->EndPoly(); //DEADCODE JON 5/24/00 #endif _REDO_ME1_ //deadcode JON 19/06/01 } // //axis aligned BSP tree rendering class // /*typedef void BSPAXISCALLBACK (SLong,void*); typedef BSPAXISCALLBACK *LPBSPAXISCALLBACK; class BSPTreeAxis { struct NType { enum NodeType {NT_NODE,NT_LEAF}; NodeType nt; bool IsNode() {return bool(nt==NT_NODE);} NType(NodeType ty=NT_NODE) {nt=ty;} }; struct BSPLeaf : NType { SLong data; BSPLeaf() : NType(NodeType::NT_LEAF) {} }; struct BSPNode : NType { enum Orientation {AXIS_X=0,AXIS_Y,AXIS_Z}; union { BSPNode *pos; BSPLeaf *lpos; }; union { BSPNode *neg; BSPLeaf *lneg; }; Orientation ori; SLong d; BSPNode() {pos=neg=NULL;} }; enum {RX=0,RZ,RW,RH}; BSPNode *pHead; LPBSPAXISCALLBACK pCallback; void *pContext; BSPNode *BuildRecurse(SLong rect[4],SLong recurseDepth,BSPNode::Orientation ori); BSPLeaf *AddLeaf(SLong xpos,SLong zpos,BSPNode *pnode); void RenderRecurse(SLong ori[3],SLong dir[3],BSPNode *pnode); void ReleaseRecurse(BSPNode *pnode); public: BSPTreeAxis() {pHead=NULL;} ~BSPTreeAxis() {ReleaseRecurse(pHead);} void BuildBSPTree(SLong minCloudY,SLong maxCloudY,SLong wxzStep,SLong gridWH); void RenderTree(ViewPoint *vp,COORDS3D *base); }; //컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴 //Procedure BuildRecurse //Author Paul. //Date Mon 17 Jan 2000 // //------------------------------------------------------------------------------ BSPTreeAxis::BSPNode *BSPTreeAxis::BuildRecurse(SLong rect[4],SLong recurseDepth, BSPNode::Orientation ori) { if (recurseDepth==0) return NULL; recurseDepth--; SLong r0[4],r1[4]; BSPNode *pnode=new BSPNode; pnode->ori=ori; if (ori==BSPNode::AXIS_X) { r1[RZ]=r0[RZ]=rect[RZ]; r1[RH]=r0[RH]=rect[RH]; pnode->d=-(r1[RX]=(r0[RX]=rect[RX])+(r1[RW]=r0[RW]=(rect[RW]>>1))); pnode->pos=BuildRecurse(r1,recurseDepth,BSPNode::AXIS_Z); pnode->neg=BuildRecurse(r0,recurseDepth,BSPNode::AXIS_Z); } else //ori==BSPNode::AXIS_Z { r1[RX]=r0[RX]=rect[RX]; r1[RW]=r0[RW]=rect[RW]; pnode->d=-(r1[RZ]=(r0[RZ]=rect[RZ])+(r1[RH]=r0[RH]=(rect[RH]>>1))); pnode->pos=BuildRecurse(r1,recurseDepth,BSPNode::AXIS_X); pnode->neg=BuildRecurse(r0,recurseDepth,BSPNode::AXIS_X); } return pnode; } //컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴 //Procedure AddLeaf //Author Paul. //Date Mon 17 Jan 2000 // //------------------------------------------------------------------------------ BSPTreeAxis::BSPLeaf *BSPTreeAxis::AddLeaf(SLong xpos,SLong zpos,BSPNode *pnode) { BSPLeaf *pleaf; SLong dir=(pnode->ori==BSPNode::AXIS_X)?xpos+pnode->d:zpos+pnode->d; if (dir>=0) pleaf=(pnode->pos)?AddLeaf(xpos,zpos,pnode->pos):(pnode->lpos=new BSPLeaf); else pleaf=(pnode->neg)?AddLeaf(xpos,zpos,pnode->neg):(pnode->lneg=new BSPLeaf); return pleaf; } //컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴 //Procedure BuildBSPTree //Author Paul. //Date Mon 17 Jan 2000 // //------------------------------------------------------------------------------ void BSPTreeAxis::BuildBSPTree(SLong minCloudY,SLong maxCloudY,SLong wxzStep,SLong gridWH) { if (pHead) ReleaseRecurse(pHead); //first two planes in the bsp tree enclose the entire //cloud layer in the y direction BSPNode *pnext; SLong rect[4]; SLong recurseDepth; pHead=new BSPNode; pHead->ori=BSPNode::AXIS_Y; pHead->d=-minCloudY; pnext=new BSPNode; pHead->pos=pnext; pnext->ori=BSPNode::AXIS_Y; pnext->d=-maxCloudY; recurseDepth=gridWH&0xFFFFFFFE; rect[RX]=-((wxzStep>>1)+(gridWH>>1)*wxzStep); rect[RZ]=(wxzStep>>1)-(gridWH>>1)*wxzStep; rect[RW]=rect[RH]=recurseDepth*wxzStep; pnext->neg=BuildRecurse(rect,recurseDepth,BSPNode::AXIS_Z); pnext=pnext->neg; SLong rz,cx; cx=rect[RX]+(wxzStep>>1); rz=rect[RZ]-(wxzStep>>1); recurseDepth=0; for (SLong i=gridWH;i>0;i--) { SLong rx=cx; for (SLong j=gridWH;j>0;j--) { AddLeaf(rx,rz,pnext)->data=recurseDepth++; rx+=wxzStep; } rz+=wxzStep; } } //컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴 //Procedure ReleaseRecurse //Author Paul. //Date Mon 17 Jan 2000 // //------------------------------------------------------------------------------ void BSPTreeAxis::ReleaseRecurse(BSPNode *pnode) { if (pnode->IsNode()) { if (pnode->pos!=NULL) ReleaseRecurse(pnode->pos); if (pnode->neg!=NULL) ReleaseRecurse(pnode->neg); delete pnode; } else delete (BSPLeaf*)pnode; } //컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴 //Procedure RenderRecurse //Author Paul. //Date Mon 17 Jan 2000 // //------------------------------------------------------------------------------ void BSPTreeAxis::RenderRecurse(SLong ori[3],SLong dir[3],BSPNode *pnode) { if (pnode->IsNode()) { SLong o,d; d=pnode->ori; o=ori[d]; d=dir[d]; if (o+pnode->d>=0) { RenderRecurse(ori,dir,pnode->pos); RenderRecurse(ori,dir,pnode->neg); } else { RenderRecurse(ori,dir,pnode->neg); RenderRecurse(ori,dir,pnode->pos); } } else (*pCallback)(((BSPLeaf*)pnode)->data,pContext); } //컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴 //Procedure RenderTree //Author Paul. //Date Mon 17 Jan 2000 // //------------------------------------------------------------------------------ void BSPTreeAxis::RenderTree(ViewPoint *vp,COORDS3D *base) { SLong dir[3],ori[3],dirmag; R3DVALUE tmp,tmp2; SWord sinhdg,coshdg,sinpitch,cospitch; Math_Lib.high_sin_cos(vp->hdg,sinhdg,coshdg); Math_Lib.high_sin_cos(vp->pitch,sinpitch,cospitch); dir[0]=(cospitch*sinhdg)/ANGLES_FRACT; dir[1]=sinpitch; dir[2]=(cospitch*coshdg)/ANGLES_FRACT; tmp2=R3DVALUE(dir[0]); tmp=tmp2*tmp2; tmp2=R3DVALUE(dir[1]); tmp+=tmp2*tmp2; tmp2=R3DVALUE(dir[2]); tmp+=tmp2*tmp2; dirmag=SLong(fastMath.FastSqrt(tmp)); dir[0]=(dir[0]<<16)/dirmag; dir[1]=(dir[1]<<16)/dirmag; dir[2]=(dir[2]<<16)/dirmag; ori[0]=vp->World.X-base->X; ori[1]=vp->World.Y-base->Y; ori[2]=vp->World.Z-base->Z; RenderRecurse(ori,dir,pHead); } */ //컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴 //Procedure LogCrater //Author Robert Slater //Date Thu 18 Nov 1999 // //Description // //Inputs size is 0 - 63, where 63 is maximum strength explosion // //Returns // //------------------------------------------------------------------------------ void LandScape::LogCrater(Coords3D& worldcoord, SLong size) { if (craterCnt >= MAX_CRATERS) craterCnt = 0; craterLog[craterCnt].pos = worldcoord; craterLog[craterCnt++].size = size; } //컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴 //Procedure StompImageMap //Author Robert Slater //Date Tue 30 Nov 1999 // //Description // //Inputs // //Returns // //------------------------------------------------------------------------------ void LandScape::StompImageMap(SWord mapnumber, SWord splodge) { if (stompMapCnt < MAX_STOMPERS) { stompMap[stompMapCnt].imagemap = mapnumber; stompMap[stompMapCnt].splodge = splodge; stompMapCnt++; } } // New smoke cloud stuff... //컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴 //Procedure SmkCloudDesc //Author Robert Slater //Date Thu 25 May 2000 // //Description // //Inputs // //Returns // //------------------------------------------------------------------------------ SmkCloudDesc::SmkCloudDesc() { animdata = new UByte[SmokeAnimSize]; animdata = AnimSizeField(SmokeAnimSize); animdata = AnimFlagField(1<<MINANIM); Refresh(); } SmkCloudDesc::~SmkCloudDesc() { animdata.Delete(); animdata = ANIM_NULL; } void SmkCloudDesc::Refresh() { UByteP tmpptr = &animdata; for (int i=0; i < SmokeAnimSize; i++) tmpptr[i] = 0; active = false; weight = -1; timealive = 0; hdg = 0; } //컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴 //Procedure AddSmokeCloud //Author Robert Slater //Date Tue 23 May 2000 // //Description Checks this smoke blob coord with known coords, // if within certain radius (100m) (i.e. max radius of a smokey cloud) // and adds it if it is... // //Inputs // //Returns // //------------------------------------------------------------------------------ void LandScape::AddSmokeCloud(Coords3D& pos, const SWord& initialWeight) { const float smkRadSqrd = 100*100; const SLong NoHitsInNSecs = 500 / Timer_Code.FRAMETIME; SLong index,emptyindex; float xsqrd,zsqrd,rsqrd; SmkCloudDesc* smkptr = smkList; SLong oldest = 600; //6 secs SLong oldIndex = -1; emptyindex = MaxSmokeClouds; for (index=0; index < MaxSmokeClouds; index++) { if (smkptr->weight > -1) // has this one expired? { xsqrd = pos.X - smkptr->pos.X; xsqrd *= xsqrd; zsqrd = pos.Z - smkptr->pos.Z; zsqrd *= zsqrd; rsqrd = xsqrd+zsqrd; if (rsqrd <= smkRadSqrd) // are we part of this cloud? { smkptr->weight += initialWeight; if (smkptr->weight >= NoHitsInNSecs) { if (!smkptr->active) smkptr->active = true; else { if (smkptr->weight > 16384) smkptr->weight = 16384; } } else { smkptr->pos.X = (pos.X + smkptr->pos.X)>>1; smkptr->pos.Y = (pos.Y + smkptr->pos.Y)>>1; smkptr->pos.Z = (pos.Z + smkptr->pos.Z)>>1; } break; } else { if (smkptr->timealive > oldest) { oldest = smkptr->timealive; oldIndex = index; } } } else emptyindex = index; smkptr++; } // If no match was found, add new one... if (index == MaxSmokeClouds) { if (emptyindex != MaxSmokeClouds) { smkptr = &smkList[emptyindex]; smkptr->Refresh(); smkptr->pos = pos; smkptr->weight = initialWeight; } else { if (oldIndex > -1) { smkptr = &smkList[oldIndex]; smkptr->Refresh(); smkptr->pos = pos; smkptr->weight = initialWeight; } } } } //컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴 //Procedure DrawSmokeClouds //Author Robert Slater //Date Tue 23 May 2000 // //Description Draws the smoke clouds in the list, // and the fog bank (if there is one) // //Inputs // //Returns // //------------------------------------------------------------------------------ void LandScape::DrawSmokeClouds() { if (Save_Data.detail_3d[DETAIL3D_TRANSSMOKE] != 0) //RJS 9Aug00 { SLong index; SmkCloudDesc* smkptr = smkList; hdgitem smokeitem; // Smoke Clouds... for (index=0; index < MaxSmokeClouds; index++) { if (smkptr->active) { smokeitem.World = smkptr->pos; smokeitem.shape = SBANKM; smokeitem.Anim = smkptr->animdata; smokeitem.hdg = Angles(smkptr->hdg); Three_Dee.do_object_dummy(&smokeitem,MOBILE_OBJECT); } smkptr++; } smokeitem.Anim = ANIM_NULL; } } //컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴 //Procedure ManageSmokeClouds //Author Robert Slater //Date Wed 24 May 2000 // //Description // //Inputs // //Returns // //------------------------------------------------------------------------------ void LandScape::ManageSmokeClouds() { SmkCloudDesc* smkptr = smkList; for (SLong index=0; index < MaxSmokeClouds; index++) { if (smkptr->weight > -1) { smkptr->hdg += ANGLES_ThirdDeg; smkptr->timealive += Timer_Code.FRAMETIME; if ( (smkptr->timealive > MaxTimeSmokeAlive) //too old || ( !smkptr->active && (smkptr->timealive > 600) ) ) //too weak { smkptr->weight = -1; //kill smkptr->active = false; } } smkptr++; } } //컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴 //Procedure SaveSmokeClouds //Author Robert Slater //Date Mon 10 Jul 2000 // //Description // //Inputs // //Returns // //------------------------------------------------------------------------------ bool LandScape::SaveSmokeClouds() { SmkCloudDesc* smkptr = smkList; SLong num=0,index; for (index=0; index < MaxSmokeClouds; index++) { if (smkptr->active) { num++; } smkptr++; } if (!_Replay.ReplayWrite((UByte*)&num,sizeof(SLong))) return false; smkptr = smkList; for (index=0; index < MaxSmokeClouds; index++) { if (smkptr->active) { // Save index, timealive, pos REPLAYSMOKECLOUD rsc; rsc.index=index; rsc.timealive=smkptr->timealive; rsc.pos=smkptr->pos; if (!_Replay.ReplayWrite((UByte*)&rsc,sizeof(REPLAYSMOKECLOUD))) return false; } smkptr++; } return true; } //컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴 //Procedure LoadSmokeClouds //Author Robert Slater //Date Mon 10 Jul 2000 // //Description // //Inputs // //Returns // //------------------------------------------------------------------------------ bool LandScape::LoadSmokeClouds(bool dummy) { SmkCloudDesc* smkptr = smkList; SLong num=0,i; if (!_Replay.CloudRead((UByte*)&num,sizeof(SLong))) return false; for (i=0;i<num;i++) { // Load index, timealive, pos... set weight to 16384 // set active to true REPLAYSMOKECLOUD rsc; if (!_Replay.CloudRead((UByte*)&rsc,sizeof(REPLAYSMOKECLOUD))) return false; if (!dummy) { smkptr[rsc.index].pos=rsc.pos; smkptr[rsc.index].weight=16384; smkptr[rsc.index].timealive=rsc.timealive; smkptr[rsc.index].active=true; } } return true; } //컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴 //Procedure WipeSmokeClouds //Author Robert Slater //Date Thu 27 Jul 2000 // //Description // //Inputs // //Returns // //------------------------------------------------------------------------------ void LandScape::WipeSmokeClouds() { SmkCloudDesc* smkptr = smkList; for (SLong index=0; index < MaxSmokeClouds; index++) { smkptr->Refresh(); smkptr++; } } ////////////////////////////////////////////////////////////////////// // // Function: InitTextures // Date: 09/08/00 // Author: JON // //Description: Initialises the landscape textures for the user - is done on entry to 3d // ////////////////////////////////////////////////////////////////////// void LandScape::InitTextures( CLib3D *lib3d ) { g_lpLib3d = lib3d; // set up this... landscapeDelay = 1; // ensure this is clean g_lpLib3d->UnloadTexture( horizonImg ); g_lpLib3d->UnloadTexture( cloudImg0 ); gridOffs.reInit(); cloudOffs.reInit(); // fudge the map icons to have no mipmaps... { g_lpLib3d->GiveHint( HINT_BILINEAR ); // don't do no mipmaps for this g_lpLib3d->SetMaterial( HMATERIAL(Image_Map.GetImageMapPtr(MAPCHAPNO)) );// force upload g_lpLib3d->GiveHint( HINT_TRILINEAR ); //note won't go above max do } // avail the sea and dither stuff... // only affects the tri-linear and all stuff.. if ( Save_Data.filtering>=2 ) { FileNum theFile; LandMapNum theMap; ImageMapDescPtr topPtr; ImageMapDescPtr theMip; //TempCode JON 11Aug00 theFile= FileNum( FIL_SEA1_NUM ); //TempCode JON 11Aug00 theMap=LandMapNum(theFile); //TempCode JON 11Aug00 topPtr = theMap.GetLandMapPtr(); //TempCode JON 11Aug00 g_lpLib3d->UploadAsDitherTexture( topPtr ); //TempCode JON 11Aug00 //TempCode JON 11Aug00 theFile = FileNum( FIL_SEA1_1_NUM ); //TempCode JON 11Aug00 theMap=LandMapNum(theFile); //TempCode JON 11Aug00 theMip = theMap.GetLandMapPtr(); //TempCode JON 11Aug00 g_lpLib3d->UploadAsMipMapLevel( topPtr, theMip, 1 ); //TempCode JON 11Aug00 //TempCode JON 11Aug00 theFile = FileNum( FIL_SEA1_2_NUM ); //TempCode JON 11Aug00 theMap=LandMapNum(theFile); //TempCode JON 11Aug00 theMip = theMap.GetLandMapPtr(); //TempCode JON 11Aug00 g_lpLib3d->UploadAsMipMapLevel( topPtr, theMip, 2 ); //TempCode JON 11Aug00 //TempCode JON 11Aug00 theFile = FileNum( FIL_SEA1_3_NUM ); //TempCode JON 11Aug00 theMap=LandMapNum(theFile); //TempCode JON 11Aug00 theMip = theMap.GetLandMapPtr(); //TempCode JON 11Aug00 g_lpLib3d->UploadAsMipMapLevel( topPtr, theMip, 3 ); //TempCode JON 11Aug00 //TempCode JON 11Aug00 theFile = FileNum( FIL_SEA1_4_NUM ); //TempCode JON 11Aug00 theMap=LandMapNum(theFile); //TempCode JON 11Aug00 theMip = theMap.GetLandMapPtr(); //TempCode JON 11Aug00 g_lpLib3d->UploadAsMipMapLevel( topPtr, theMip, 4 ); #define LOAD_MIPS( baseName ) \ theFile= FileNum( FIL_##baseName##_NUM ); \ theMap=LandMapNum(theFile); \ topPtr = theMap.GetLandMapPtr(); \ g_lpLib3d->UploadAsDitherTexture( topPtr ); \ \ theFile = FileNum( FIL_##baseName##_1_NUM ); \ theMap=LandMapNum(theFile); \ theMip = theMap.GetLandMapPtr(); \ g_lpLib3d->UploadAsMipMapLevel( topPtr, theMip, 1 ); \ \ theFile = FileNum( FIL_##baseName##_2_NUM ); \ theMap=LandMapNum(theFile); \ theMip = theMap.GetLandMapPtr(); \ g_lpLib3d->UploadAsMipMapLevel( topPtr, theMip, 2 ); \ \ theFile = FileNum( FIL_##baseName##_3_NUM ); \ theMap=LandMapNum(theFile); \ theMip = theMap.GetLandMapPtr(); \ g_lpLib3d->UploadAsMipMapLevel( topPtr, theMip, 3 ); \ \ theFile = FileNum( FIL_##baseName##_4_NUM ); \ theMap=LandMapNum(theFile); \ theMip = theMap.GetLandMapPtr(); \ g_lpLib3d->UploadAsMipMapLevel( topPtr, theMip, 4 ) LOAD_MIPS( SEA1 ); LOAD_MIPS( SEA2 ); LOAD_MIPS( SEA3 ); LOAD_MIPS( SEA4 ); LOAD_MIPS( DITHER2 ); int dim = theMip->w; // now some fiddles for the plain stuff. theFile = FileNum( FIL_DITHER1_4_NUM ); theMap=LandMapNum(theFile); theMip = theMap.GetLandMapPtr(); theMip->w=theMip->h = dim; LOAD_MIPS( DITHER1 ); LOAD_MIPS( DITHER3 ); LOAD_MIPS( DITHER4 ); LOAD_MIPS( DITHER5 ); LOAD_MIPS( DITHER6 ); // now the rest of the fiddles for the plain stuff. theFile = FileNum( FIL_DITHER1_4_NUM ); theMap=LandMapNum(theFile); theMip = theMap.GetLandMapPtr(); g_lpLib3d->SetMaterial( HMATERIAL( theMip ) );// force an upload of the thing before fiddling its size... theMip->w=theMip->h = dim<<4; } } inline ImageMapDescPtr LandScape::GetDitherTexture( int areatype ) { FileNum theFile; LandMapNum theMap; ImageMapDescPtr theText; int offset; if ( IsWidened( areatype ) ) offset = 3; else offset = DitherLookUp[areatype&31]; if ( offset==-1 ) { // get a plain dither map that will make no difference.... theFile = FileNum( FIL_DITHER1_4_NUM ); } else { theFile = FileNum( FIL_DITHER1_NUM+offset ); } theMap=LandMapNum(theFile); theText = theMap.GetLandMapPtr(); return theText; } ////////////////////////////////////////////////////////////////////// // // Function: DrawWayPointIcon // Date: 11/8/00 // Author: JON // //Description: Draws a waypoint icon at the pos specified, with viewer_y of value given // This is actually for the map but there u go // ////////////////////////////////////////////////////////////////////// void LandScape::DrawWayPointIcon( const COORDS3D& pos, const ULong viewerx, const ULong viewery, const ULong viewerz, const int type ) { // first get the imagemap.. const HMATERIAL texture(Image_Map.GetImageMapPtr(MAPCHAPNO)); const float depth = -float(viewery); const float tokensize = (float(viewery))/50.f;// cover 1/30th of the map SWord tlx, tly; switch( type ) { case 4: // targetpt tlx = 32; tly = 32; break; case 3: // homept selected tlx = 48; tly = 16; break; case 2: // waypoint selected tlx = 32; tly = 16; break; case 1: // homept tlx = 48; tly = 0; break; case 0: // waypoint tlx = 32; tly = 0; break; NODEFAULT; } g_lpLib3d->PushMatrix( MATRIX_OBJECT ); g_lpLib3d->LoadIdentity( MATRIX_OBJECT ); g_lpLib3d->Scale( MATRIX_OBJECT, 1.f/25.f ); Lib3DPoint* vert = g_lpLib3d->BeginPoly( texture, 4 ); vert[0].setPosition( float(SLong(pos.X-viewerx))-tokensize, depth, float(SLong(pos.Z-viewerz))+tokensize ); vert[0].setIMapCoords( tlx, tly ); vert[1].setPosition( float(SLong(pos.X-viewerx))+tokensize, depth, float(SLong(pos.Z-viewerz))+tokensize ); vert[1].setIMapCoords( tlx+16, tly ); vert[2].setPosition( float(SLong(pos.X-viewerx))+tokensize, depth, float(SLong(pos.Z-viewerz))-tokensize ); vert[2].setIMapCoords( tlx+16, tly+16 ); vert[3].setPosition( float(SLong(pos.X-viewerx))-tokensize, depth, float(SLong(pos.Z-viewerz))-tokensize ); vert[3].setIMapCoords( tlx, tly+16 ); g_lpLib3d->EndPoly(); g_lpLib3d->PopMatrix(MATRIX_OBJECT); }
[ "xorrezerv2@list.ru" ]
xorrezerv2@list.ru
92b07ba68f5e21f8bc56830c36f30886e253257c
35f523294c3deab71ffdea3420554a32bc84e4bb
/Data Structures Using C++, Second Edition, D.S. Malik/Chapter 1 - SOFTWARE ENGINEERING PRINCIPLES AND C++ CLASSES/Software Development Phase/pre-1.cpp
373221d575996760a4e03ecf2738d41cff5db1e7
[ "MIT" ]
permissive
jesushilarioh/data-structures-and-algorithms
ff8f86325251f3b9f4f28e3b0567ae39e8d66240
6c519f81920371a86566a77b4b57995747e71c64
refs/heads/master
2023-02-05T18:24:47.348492
2020-12-25T01:10:45
2020-12-25T01:10:45
283,608,648
0
0
null
null
null
null
UTF-8
C++
false
false
628
cpp
#include <iostream> using namespace std; // Precondition: The value of inches must be nonnegative. // Postcondition: If the value of inches is < 0, the // function returns -1.0; otherwise, the function // returns the equivalent length in centimeters. double inchesToCentimeters(double inches) { if (inches < 0) { cerr << "The given measurement must be nonnegative." << endl; return -1.0; } else return 2.54 * inches; } int main() { double number = inchesToCentimeters(19); cout << endl; cout << "number = " << number << endl; cout << endl; return 0; }
[ "jesushilariohernandez@gmail.com" ]
jesushilariohernandez@gmail.com
0370e571b26a489e61df9a20e6ae494594d19937
91d784a5fad01b984a87fbc087c704ec1c4c6b4c
/Objects/wpn_test.cc
2ce177eee8e79b2eae4c6d3576d534121b20dc56
[]
no_license
arebokert/Y3.c-grupp-2
9291d2311fc6833e9a36f6767e5b7d7a348d4bce
745d9cede1a830b9bc5be12bd90abeeae80136f6
refs/heads/master
2021-03-24T09:14:05.776096
2015-12-23T15:07:24
2015-12-23T15:07:24
45,981,438
0
0
null
null
null
null
UTF-8
C++
false
false
111
cc
#include "Weapon.h" #include "Bullet.h" int main() { Weapon w(3, 4, 5, 6, 7); w.fire(3, 3); return 0; }
[ "erihu154@student.liu.se" ]
erihu154@student.liu.se
c517c38d15b8b15a2448f7da2360273b055f4d1f
e2df82085ac658a7ca7c974919f3809e89d646bb
/LibWebRtcUsingExample/Include/modules/video_coding/codecs/multiplex/include/multiplex_encoder_adapter.h
7488f206dad2f1e2a4ea73fcc410059cf87f6486
[ "Apache-2.0", "MIT" ]
permissive
HATTER-LONG/NoteBook_WebRtcLearning
7c846cf548804361123ff9cd6017cc05b3b9a559
834c94c82646e57d53fa5f1cc8210dda3799b78f
refs/heads/master
2023-06-30T21:45:56.672079
2021-08-07T08:46:34
2021-08-07T08:46:34
338,822,304
3
2
null
2021-02-14T14:33:08
2021-02-14T14:22:12
null
UTF-8
C++
false
false
2,959
h
/* * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contributing project authors may * be found in the AUTHORS file in the root of the source tree. */ #ifndef MODULES_VIDEO_CODING_CODECS_MULTIPLEX_INCLUDE_MULTIPLEX_ENCODER_ADAPTER_H_ #define MODULES_VIDEO_CODING_CODECS_MULTIPLEX_INCLUDE_MULTIPLEX_ENCODER_ADAPTER_H_ #include <map> #include <memory> #include <vector> #include "api/video_codecs/sdp_video_format.h" #include "api/video_codecs/video_encoder.h" #include "api/video_codecs/video_encoder_factory.h" #include "modules/video_coding/codecs/multiplex/include/multiplex_encoded_image_packer.h" #include "modules/video_coding/include/video_codec_interface.h" namespace webrtc { enum AlphaCodecStream { kYUVStream = 0, kAXXStream = 1, kAlphaCodecStreams = 2, }; class MultiplexEncoderAdapter : public VideoEncoder { public: // |factory| is not owned and expected to outlive this class' lifetime. explicit MultiplexEncoderAdapter(VideoEncoderFactory* factory, const SdpVideoFormat& associated_format); virtual ~MultiplexEncoderAdapter(); // Implements VideoEncoder int InitEncode(const VideoCodec* inst, int number_of_cores, size_t max_payload_size) override; int Encode(const VideoFrame& input_image, const CodecSpecificInfo* codec_specific_info, const std::vector<FrameType>* frame_types) override; int RegisterEncodeCompleteCallback(EncodedImageCallback* callback) override; int SetChannelParameters(uint32_t packet_loss, int64_t rtt) override; int SetRateAllocation(const BitrateAllocation& bitrate, uint32_t new_framerate) override; int Release() override; const char* ImplementationName() const override; EncodedImageCallback::Result OnEncodedImage( AlphaCodecStream stream_idx, const EncodedImage& encodedImage, const CodecSpecificInfo* codecSpecificInfo, const RTPFragmentationHeader* fragmentation); private: // Wrapper class that redirects OnEncodedImage() calls. class AdapterEncodedImageCallback; VideoEncoderFactory* const factory_; const SdpVideoFormat associated_format_; std::vector<std::unique_ptr<VideoEncoder>> encoders_; std::vector<std::unique_ptr<AdapterEncodedImageCallback>> adapter_callbacks_; EncodedImageCallback* encoded_complete_callback_; std::map<uint32_t /* timestamp */, MultiplexImage> stashed_images_; uint16_t picture_index_ = 0; std::vector<uint8_t> multiplex_dummy_planes_; int key_frame_interval_; EncodedImage combined_image_; }; } // namespace webrtc #endif // MODULES_VIDEO_CODING_CODECS_MULTIPLEX_INCLUDE_MULTIPLEX_ENCODER_ADAPTER_H_
[ "caolei6767@gmail.com" ]
caolei6767@gmail.com
d092bd18c59396e180996b53567820b5f098553e
c7eef555bde856d68575dfc05e1417e7c3f175ba
/Codeforces/1102C.cpp
2354e9d57f69c347f2df38cbb80d2ced833759d6
[]
no_license
JonathanChavezTamales/Programacion_competitiva
e84e7914e16edf4fe800f784b1807236b78a3b0a
9c3717ed6bef9c0fe0c6d871993c054d975fed2b
refs/heads/master
2021-06-25T09:27:18.892438
2020-11-25T22:56:28
2020-11-25T22:56:28
153,844,483
0
1
null
null
null
null
UTF-8
C++
false
false
1,182
cpp
#include <iostream> #include <cmath> #include <vector> #include <algorithm> #include <set> #include <unordered_set> #include <map> #include <unordered_map> #include <stack> #include <queue> #include <deque> #include <sstream> #include <cctype> #ifdef LOCAL #define debug(x) cerr<<"["<<#x<<"]: "<<x<<endl; #define debug_c(a) for(auto it=a.begin(); it!=a.end(); ++it) {cerr<<*it<<",";} cerr<<endl; #else #define debug(x) 42 #define debug_c(a) 42 #endif using namespace std; int lb(vector<int> &arr, int a, int n){ int max_idx = 0; for(int i=0; i<n; i++){ if(arr[i] <= a && arr[i] > 0){ max_idx = max(arr[i], arr[max_idx]) == arr[i] ? i : max_idx; } } if(arr[max_idx] > a) return -1; else return max_idx; } int main(){ ios::sync_with_stdio(false); cin.tie(0); int n, a, b; cin>>n>>a>>b; vector<int> arr(n); for(int i=0; i<n; i++){ cin>>arr[i]; } if(a>b){ cout<<n<<endl; return 0; } int sig = 0; int zeros = 0; int turn = 1; while(sig >= 0){ if(turn&1){ sig = lb(arr, a, n); if(sig != -1){ arr[sig] = 0; zeros++; } } else{ sig = lb(arr, a, n); if(sig != -1){ arr[sig] += b; } } turn++; } cout<<zeros<<endl; }
[ "jonathanchatab@hotmail.com" ]
jonathanchatab@hotmail.com
f262aa10595533a56f5fff47e47a46a303bc947d
751064f9bc57a7a41f363b5a5e4a21da7f48a61e
/src/Sequence.h
0b765f3659c44e7982cedf173a0753af270271c4
[]
no_license
KaComet/OLGCI-Interpreter
f5cc5fbc8aa03b0f5be84cb2a932d4bf78b0b6f7
148d8880dbd117c08e6f954360a6045e0ab3e65b
refs/heads/master
2022-12-09T13:26:51.498674
2020-08-31T17:23:44
2020-08-31T17:23:44
291,557,690
0
0
null
null
null
null
UTF-8
C++
false
false
1,071
h
#ifndef OLGCI_SEQUENCE_H #define OLGCI_SEQUENCE_H #include "Common.h" #include <vector> #include <iostream> #include <bitset> #include <stdexcept> #include <cmath> #include "Truthtable.h" #include <TextTable.h> class Sequence { public: Sequence() = delete; explicit Sequence(unsigned int nBits, MinTerm defaultState = 0) : nBits(nBits), defaultState(defaultState) { for (unsigned int i = 0; i <= getBitmask(nBits); i++) { sequenceData.emplace_back(std::pair<MinTerm, MinTerm>(i, defaultState)); } }; void setNext(MinTerm state, MinTerm next); MinTerm getNext(MinTerm state); [[nodiscard]] JK_State getJK(MinTerm state, unsigned int bitNumber) const; void printTable(); [[nodiscard]] Truthtable makeTruthTable(unsigned int bitNumber, bool gettingJ_Not_K) const; [[nodiscard]] unsigned int numberOfBits() const noexcept { return nBits; } private: std::vector<std::pair<MinTerm, MinTerm>> sequenceData; MinTerm defaultState; unsigned int nBits; }; #endif //OLGCI_SEQUENCE_H
[ "catfish5994@sbcglobal.net" ]
catfish5994@sbcglobal.net
ba8a9f068ea499d7abe4736f5bc6c2090e0b3b1d
52f69c60a637efb89c3a7d8b92f6b1046993017a
/raft_implementation/precompiled_res/so_5/impl/mbox_core.hpp
d0f748e55774a519aeff903a05f7a6c3210e688a
[]
no_license
2GaMe4LiFe/raft_consensus_threading_implementation
73cdbe777bde6b25a03727dadb2edd58ced1f2d5
01c18099b1666bfcdc768f6aabacadeeab6462db
refs/heads/master
2021-05-18T00:02:20.587136
2020-04-24T15:47:39
2020-04-24T15:47:39
251,014,058
3
0
null
null
null
null
UTF-8
C++
false
false
5,998
hpp
/* SObjectizer 5. */ /*! \file \brief A definition of an utility class for work with mboxes. */ #pragma once #include <memory> #include <string> #include <map> #include <vector> #include <functional> #include <mutex> #include <so_5/mbox.hpp> #include <so_5/mchain.hpp> #include <so_5/nonempty_name.hpp> #include <so_5/message_limit.hpp> #include <so_5/atomic_refcounted.hpp> #include <so_5/msg_tracing.hpp> #include <so_5/outliving.hpp> #include <so_5/custom_mbox.hpp> namespace so_5 { namespace impl { class mbox_core_ref_t; // // mbox_core_stats_t // /*! * \since * v.5.5.4 * * \brief Statistics from mbox_core for run-time monitoring. */ struct mbox_core_stats_t { //! Count of named mboxes. std::size_t m_named_mbox_count; }; // // mbox_core_t // /*! * \brief A utility class for the work with mboxes. */ class mbox_core_t : private atomic_refcounted_t { friend class mbox_core_ref_t; mbox_core_t( const mbox_core_t & ) = delete; mbox_core_t & operator=( const mbox_core_t & ) = delete; public: mbox_core_t( //! Message delivery tracing stuff. outliving_reference_t< so_5::msg_tracing::holder_t > msg_tracing_stuff ); //! Create local anonymous mbox. /*! \note always creates a new mbox. */ mbox_t create_mbox( environment_t & env ); //! Create local named mbox. /*! \note if mbox with specified name \a mbox_name is present, method won't create a new mbox. In this case method will return a new mbox_t, which links to the present mbox (with this name). */ mbox_t create_mbox( //! Environment for which the mbox is created. environment_t & env, //! Mbox name. nonempty_name_t mbox_name ); /*! * \since * v.5.4.0 * * \brief Create anonymous mpsc_mbox. */ mbox_t create_mpsc_mbox( //! The only consumer for messages. agent_t * single_consumer, //! Pointer to the optional message limits storage. //! If this pointer is null then the limitless MPSC-mbox will be //! created. If this pointer is not null the the MPSC-mbox with limit //! control will be created. const so_5::message_limit::impl::info_storage_t * limits_storage ); //! Remove a reference to the named mbox. /*! * If it was a last reference to named mbox the mbox destroyed. */ void destroy_mbox( //! Mbox name. const std::string & name ); /*! * \brief Create a custom mbox. * * \since * v.5.5.19.2 */ mbox_t create_custom_mbox( //! Environment for which the mbox is created. environment_t & env, //! Creator for new mbox. ::so_5::custom_mbox_details::creator_iface_t & creator ); /*! * \since * v.5.5.13 * * \brief Create message chain. * * \par Usage examples: */ mchain_t create_mchain( //! SObjectizer Environment for which message chain will be created. environment_t & env, //! Parameters for a new chain. const mchain_params_t & params ); /*! * \since * v.5.5.4 * * \brief Get statistics for run-time monitoring. */ mbox_core_stats_t query_stats(); /*! * \brief Allocate an ID for a new custom mbox or mchain. * * \since * v.5.7.0 */ [[nodiscard]] mbox_id_t allocate_mbox_id() noexcept; private: /*! * \brief Data related to message delivery tracing. * * \since * v.5.5.22 */ outliving_reference_t< so_5::msg_tracing::holder_t > m_msg_tracing_stuff; //! Named mbox map's lock. std::mutex m_dictionary_lock; //! Named mbox information. struct named_mbox_info_t { named_mbox_info_t() : m_external_ref_count( 0 ) {} named_mbox_info_t( const mbox_t mbox ) : m_external_ref_count( 1 ), m_mbox( mbox ) {} //! Reference count by external mbox_refs. unsigned int m_external_ref_count; //! Real mbox for that name. mbox_t m_mbox; }; //! Typedef for the map from the mbox name to the mbox information. using named_mboxes_dictionary_t = std::map< std::string, named_mbox_info_t >; //! Named mboxes. named_mboxes_dictionary_t m_named_mboxes_dictionary; /*! * \since * v.5.4.0 * * \brief A counter for mbox ID generation. */ std::atomic< mbox_id_t > m_mbox_id_counter; /*! * \since * v.5.2.0 * * \brief Low-level implementation of named mbox creation. */ mbox_t create_named_mbox( //! Mbox name. nonempty_name_t nonempty_name, //! Functional object to create new instance of mbox. //! Must have a prototype: mbox_t factory(). const std::function< mbox_t() > & factory ); }; //! Smart reference to the mbox_core_t. class mbox_core_ref_t { public: mbox_core_ref_t(); explicit mbox_core_ref_t( mbox_core_t * mbox_core ); mbox_core_ref_t( const mbox_core_ref_t & mbox_core_ref ); void operator = ( const mbox_core_ref_t & mbox_core_ref ); ~mbox_core_ref_t(); inline const mbox_core_t * get() const { return m_mbox_core_ptr; } inline mbox_core_t * get() { return m_mbox_core_ptr; } inline const mbox_core_t * operator -> () const { return m_mbox_core_ptr; } inline mbox_core_t * operator -> () { return m_mbox_core_ptr; } inline mbox_core_t & operator * () { return *m_mbox_core_ptr; } inline const mbox_core_t & operator * () const { return *m_mbox_core_ptr; } inline bool operator == ( const mbox_core_ref_t & mbox_core_ref ) const { return m_mbox_core_ptr == mbox_core_ref.m_mbox_core_ptr; } inline bool operator < ( const mbox_core_ref_t & mbox_core_ref ) const { return m_mbox_core_ptr < mbox_core_ref.m_mbox_core_ptr; } private: //! Increment reference count to the mbox_core. void inc_mbox_core_ref_count(); //! Decrement reference count to the mbox_core. /*! * If a reference count become 0 then mbox_core is destroyed. */ void dec_mbox_core_ref_count(); mbox_core_t * m_mbox_core_ptr; }; } /* namespace impl */ } /* namespace so_5 */
[ "matthias.guzmits@bnet.at" ]
matthias.guzmits@bnet.at
71cf895672632382d675c22aff42fc41f892e80c
d2f326aba2a49e30371e4656213065f4e0f2a458
/A,B and C problem/C_Elections.cpp
86486d7e0c98503ab81aed51cb95d738511403e8
[]
no_license
ShivaBansfore-JGEC/Codeforces_Contest_Question
75231a40395b9e768e0af1cfc900eeebd0a7aad9
ae47bec04f5b2bef8a15ee0fbe06465f4f70ec81
refs/heads/main
2023-07-04T11:50:18.840156
2021-08-02T16:16:46
2021-08-02T16:16:46
348,213,018
0
0
null
null
null
null
UTF-8
C++
false
false
1,355
cpp
#include<bits/stdc++.h> using namespace std; #define ll long long bool compare(pair<int,int> a,pair<int,int> b){ return a.second<b.second; } int fre[3005]; void solve(){ int n,m,x,y; cin>>n>>m; if(n==1){ cout<<0<<endl; return; } vector<pair<int,int>> p; int mx=0; int mx_p=-1; for(int i=0;i<n;i++){ cin>>x>>y; fre[x]++; p.push_back(make_pair(x,y)); } sort(p.begin(),p.end(),compare); for(int i=1;i<=n;i++){ if(fre[i]>mx){ mx=fre[i]; mx_p=i; } } cout<<mx_p<<" "<<mx<<endl; vector<int> a; int ans=0; for(int i=0;i<p.size();i++) { if(p[i].first==mx_p){ a.push_back(p[i].second); } } int k=0; ll cost=0; for(int i=0;i<p.size();i++) { if(ans>mx_p){ break; } if(p[i].first==1){ ans++; }else{ if(cost+p[i].second<cost+a[k]){ cost+=p[i].second; ans++; }else{ cost+=a[k]; k++; ans++; mx_p--; } } } cout<<cost<<endl; } int main(){ ios_base::sync_with_stdio(0); cin.tie(NULL); int t=1; while(t--){ solve(); } return 0; }
[ "shivabansfore123@gmail.com" ]
shivabansfore123@gmail.com
65ae5f9f6760c742d206220fc68dc29d8c92fddc
142540ebd9d396375121a98eb48304f99b691764
/gl/gl_mineral.cpp
b52939b1ac4f681e99f0ffd08480a2c3e3d4cbc8
[]
no_license
am1234kolt/Marbot-game
75cf9c4c8f52fd4b6160e4be6c7d0fc68b11a2fd
3b755081b3407d0967de8dfd5184658a05dab334
refs/heads/master
2020-03-17T21:28:21.399663
2018-05-18T13:46:03
2018-05-18T13:46:03
133,959,976
0
0
null
null
null
null
UTF-8
C++
false
false
1,249
cpp
// // Created by Saxion on 07/12/2017. // #include "gl_mineral.h" void gl_mineral::render() { glPolygonMode(GL_FRONT_AND_BACK, GL_FILL); glBegin(GL_TRIANGLE_STRIP); { glColor3f(0.3f, 0.3f, 0.0f); glVertex2d(m_sx, m_sy); glColor3f(84.f / 255.f, 211.f / 255.f, 0.0f); glVertex2d(m_sx, m_sy + m_ssize); glVertex2d(m_sx + m_ssize, m_sy); glColor3f(0.55f, 0.5f, 0.1f); glVertex2d(m_sx + m_ssize, m_sy + m_ssize); } glEnd(); glPolygonMode(GL_FRONT_AND_BACK, GL_LINE); glLineWidth(1.0 * get_scale() / 10.f); glBegin(GL_LINE_LOOP); { glColor3f(0.15f, 0.5f, 0.1f); glVertex2d(m_sx, m_sy); glColor3f(0.7f, 0.7f, 0.7f); glVertex2d(m_sx, m_sy + m_ssize); glColor3f(0.4f, 0.4f, 0.2f); glVertex2d(m_sx + m_ssize, m_sy + m_ssize); glVertex2d(m_sx + m_ssize, m_sy); } glEnd(); } void gl_mineral::set_scale(GLfloat scale) { gl_object::set_scale(scale); m_sx = m_x * scale; m_sy = m_y * scale; m_ssize = m_size * scale; } GLfloat gl_mineral::x() const { return m_x; } GLfloat gl_mineral::y() const { return m_y; }
[ "mk98.colt@gmail.com" ]
mk98.colt@gmail.com
aebb7c11e727809f35be74c6e50de924690f9691
f611a5fa1c8aad118094cf690a170603ccef4ce7
/cplusplus_primer_plus/PE/ch06/6.7.cpp
e5220a1d112ff5ec6af3db8a798ae30f519d2102
[]
no_license
kushuaiming/cplusplus_book_example
4dd09264a84aff74d535f4d606e2fdca31d0f618
6adac5a75f17bce61135efaea2039847a577eb21
refs/heads/master
2023-08-18T17:16:11.330642
2021-10-16T09:22:57
2021-10-16T09:22:57
352,328,089
0
0
null
null
null
null
UTF-8
C++
false
false
1,712
cpp
/* * Write a program that reads input a word at a time until a lone q is * entered. The program should then report the number of words that begin * with vowels, the number that began with consonants, and the number that * fit neither of those categories. One approach is to use isalpha() to * discriminate between words beginning with letters and those that don't * and then use an if or switch statement to further identify those passing * the isalpha() test that begin with vowels. A sample run might look like * this: * Enter words (q to quit): * The 12 awesome oxen ambled * quietly across 15 meters of lawn. q * 5 words beginning with vowels * 4 words beginning with consonants * 2 others */ #include <iostream> #include <cstring> #include <cctype> int main() { using namespace std; cout << "Enter words (q to quit):\n"; char word[40]; cin >> word; int vowels, consonants, others; vowels = consonants = others = 0; while (strcmp(word, "q")) { if (!isalpha(word[0])) others++; else { switch (word[0]) { case 'a': case 'A': case 'e': case 'E': case 'i': case 'I': case 'o': case 'O': case 'u': case 'U': vowels++; break; default: consonants++; } } cin >> word; } cout << vowels << " words beginning with vowels\n"; cout << consonants << " words beginning with consonants\n"; cout << others << " others\n"; return 0; }
[ "xm2534911078@outlook.com" ]
xm2534911078@outlook.com
d557899a775c4e1667d5bf88a77e0ce3ec3165c6
082fa6b3970bc27d7e349dcc56e209f33a997442
/cocos2d/cocos/3d/CCAnimationCurve.h
6b244550f602ed5a970701f1972e59e52d9b5fa6
[ "MIT" ]
permissive
Crasader/C-_Project
e0627276e9305b661c82706f635cf0bdfa009897
106d2c8fd9561730a59d36af12f11677e54f8772
refs/heads/master
2021-10-27T05:48:05.937651
2019-04-16T07:30:35
2019-04-16T07:30:35
null
0
0
null
null
null
null
UTF-8
C++
false
false
3,101
h
/**************************************************************************** Copyright (c) 2014 Chukong Technologies Inc. http://www.cocos2d-x.org Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ****************************************************************************/ #ifndef __CCANIMATIONCURVE_H__ #define __CCANIMATIONCURVE_H__ #include <cmath> #include <functional> #include "platform/CCPlatformMacros.h" #include "base/CCRef.h" #include "math/CCMath.h" #if (CC_TARGET_PLATFORM == CC_PLATFORM_WINRT) #undef NEAR #endif NS_CC_BEGIN /** * @addtogroup _3d * @{ */ /** * Evaluate Type */ enum class EvaluateType { INT_LINEAR, INT_NEAR, INT_QUAT_SLERP, INT_USER_FUNCTION, }; /** * @brief curve of bone's position, rotation or scale * * @lua NA */ template <int componentSize> class AnimationCurve: public Ref { public: /**create animation curve*/ static AnimationCurve* create(float* keytime, float* value, int count); /** * evaluate value of time * @param time Time to be estimated * @param dst Estimated value of that time * @param type EvaluateType */ void evaluate(float time, float* dst, EvaluateType type) const; /**set evaluate function, allow the user use own function*/ void setEvaluateFun(std::function<void(float time, float* dst)> fun); /**get start time*/ float getStartTime() const; /**get end time*/ float getEndTime() const; CC_CONSTRUCTOR_ACCESS: AnimationCurve(); virtual ~AnimationCurve(); /** * Determine index by time. */ int determineIndex(float time) const; protected: float* _value; // float* _keytime; //key time(0 - 1), start time _keytime[0], end time _keytime[_count - 1] int _count; int _componentSizeByte; //component size in byte, position and scale 3 * sizeof(float), rotation 4 * sizeof(float) std::function<void(float time, float* dst)> _evaluateFun; //user defined function }; // end of 3d group /// @} NS_CC_END #include "3d/CCAnimationCurve.inl" #endif
[ "732328380@qq.com" ]
732328380@qq.com
cd307c45c1a8ddaf50540462609ae9bd21c05f0d
7d19bd1b18359573bd2d5e39a730738df821a4d1
/libs/hashing/include_compatibility/hpx/util/jenkins_hash.hpp
92ecc867698550a0767d47c6ee397fe165b608d1
[ "BSL-1.0", "LicenseRef-scancode-free-unknown" ]
permissive
sarthakag/hpx
4f45d3b8e2fc88d7d2f0bf0abb7d231cd18360e6
a895dda5272634c5a8c9e35a45405699075a119e
refs/heads/master
2022-04-11T23:38:21.432194
2020-03-25T19:11:37
2020-03-25T19:11:37
250,194,241
1
0
BSL-1.0
2020-03-26T07:52:49
2020-03-26T07:52:48
null
UTF-8
C++
false
false
689
hpp
// Copyright (c) 2019 Auriane Reverdell // // SPDX-License-Identifier: BSL-1.0 // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #include <hpx/config.hpp> #include <hpx/hashing/config/defines.hpp> #include <hpx/hashing/jenkins_hash.hpp> #if defined(HPX_HASHING_HAVE_DEPRECATION_WARNINGS) #if defined(HPX_MSVC) #pragma message("The header hpx/util/jenkins_hash.hpp is deprecated, \ please include hpx/hashing/jenkins_hash.hpp instead") #else #warning "The header hpx/util/jenkins_hash.hpp is deprecated, \ please include hpx/hashing/jenkins_hash.hpp instead" #endif #endif
[ "aurianer@cscs.ch" ]
aurianer@cscs.ch
178c3f0a0a5fc0cf10397d59f92cc173ed3e41d6
ff7830ce848dfd94206b5179f6fb3f891e67f4f9
/src/main.cpp
4f52b28cc0f40db09aabc397e9544d42ba60b7ad
[]
no_license
septa97/chip8-emu-cpp
c68b174f1e511579c3003934a301808a312bad2b
22463a1032c8177d1b6c885d7110d44c9524dbc4
refs/heads/master
2023-07-23T23:24:30.977587
2021-09-03T05:04:29
2021-09-03T05:04:29
241,330,723
1
0
null
null
null
null
UTF-8
C++
false
false
4,030
cpp
#include <cstdio> #include <thread> #include <SDL2/SDL.h> #define KEYPAD_SIZE 16 #define WIDTH 64 #define HEIGHT 32 #define IPS 600 #define FPS 60 #define SCALE 10 #include "chip8.cpp" const int SCREEN_WIDTH = WIDTH * SCALE; const int SCREEN_HEIGHT = HEIGHT * SCALE; SDL_Keycode keymap[KEYPAD_SIZE] = { SDLK_1, // 1 SDLK_2, // 2 SDLK_3, // 3 SDLK_4, // C SDLK_q, // 4 SDLK_w, // 5 SDLK_e, // 6 SDLK_r, // D SDLK_a, // 7 SDLK_s, // 8 SDLK_d, // 9 SDLK_f, // E SDLK_z, // A SDLK_x, // 0 SDLK_c, // B SDLK_v // F }; void draw_frame(SDL_Texture* texture, SDL_Renderer* renderer, uint32_t* pixels) { SDL_UpdateTexture(texture, NULL, pixels, WIDTH * sizeof(uint32_t)); SDL_RenderCopy(renderer, texture, NULL, NULL); SDL_RenderPresent(renderer); } int main(int argc, char *argv[]) { SDL_Window* window = NULL; SDL_Renderer* renderer = NULL; SDL_Texture* texture = NULL; SDL_Event e; uint32_t pixels[WIDTH * HEIGHT]; Chip8 chip8 = Chip8(); if (argc != 2) { printf("Usage: ./chip8 <path-to-ROM-file>\n"); return 1; } printf("ROM file: %s\n", argv[1]); chip8.initiliaze(); if (!chip8.load_rom(argv[1])) { printf("Unable to load ROM file.\n"); return 1; } if (SDL_Init(SDL_INIT_VIDEO) < 0) { SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "SDL could not initialize! SDL_Error: %s", SDL_GetError()); return 3; } if (SDL_CreateWindowAndRenderer(SCREEN_WIDTH, SCREEN_HEIGHT, 0, &window, &renderer)) { SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Couldn't create window and renderer: %s", SDL_GetError()); return 3; } SDL_RenderSetLogicalSize(renderer, SCREEN_WIDTH, SCREEN_HEIGHT); SDL_SetWindowSize(window, SCREEN_WIDTH, SCREEN_HEIGHT); texture = SDL_CreateTexture(renderer, SDL_PIXELFORMAT_ARGB8888, SDL_TEXTUREACCESS_STREAMING, WIDTH, HEIGHT); if (texture == NULL) { SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Couldn't create texture: %s", SDL_GetError()); } bool quit = false; int ipf = IPS/FPS; // instructions per frame while (!quit) { // perform the instructions before ticking the timers for (int i = 0; i < ipf; i++) { chip8.emulate_cycle(); } chip8.update_timers(); std::this_thread::sleep_for(std::chrono::milliseconds(1000/60)); // 16.667 milliseconds should be "almost" accurate while (SDL_PollEvent(&e)) { // 1 if there's an event, 0 if none // user requests to quit if (e.type == SDL_QUIT) { quit = true; } else if (e.type == SDL_KEYDOWN) { for (int i = 0; i < KEYPAD_SIZE; i++) { if (e.key.keysym.sym == keymap[i]) { chip8.key[i] = 1; } } } else if (e.type == SDL_KEYUP) { for (int i = 0; i < KEYPAD_SIZE; i++) { if (e.key.keysym.sym == keymap[i]) { chip8.key[i] = 0; } } } } // If drawFlag is true, redraw SDL screen if (chip8.drawFlag) { chip8.drawFlag = false; // Store CHIP-8 gfx to pixels for (int i = 0; i < WIDTH * HEIGHT; i++) { uint8_t pixel = chip8.gfx[i]; // pixel values are either 1 or 0, multiply it by 0x00FFFFFF (which represents RGB) for either black or white // then bit mask with (using OR) on 0xFF000000 pixels[i] = (0x00FFFFFF * pixel) | 0xFF000000; // here's a more verbose implementation of the above line: // pixels[i] = pixel ? 0xFFFFFFFF : 0xFF000000; // but bit ops are fancier ;) } draw_frame(texture, renderer, pixels); } } SDL_DestroyWindow(window); SDL_Quit(); return 0; }
[ "jancharles.adona@gmail.com" ]
jancharles.adona@gmail.com
f6963140c92e013ecd89f24197e8bf0828058ce0
713cd2bdf8a8110efb438109128306648dc8fea7
/src/qt/csvmodelwriter.cpp
f3afb1058037a7eb0023378d415b76bb4a812687
[ "MIT" ]
permissive
resqs/RESQ-Chain
e4769fc994368a26f068e12260787c7dd029e0e0
ff7f001265fb6153f006d795286f5e6fb1f02f47
refs/heads/master
2021-01-04T11:42:00.972957
2019-03-19T10:14:33
2019-03-19T10:14:33
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,019
cpp
// Copyright (c) 2011-2013 The Bitcoin developers // Copyright (c) 2015-2019 The PivX developers // Copyright (c) 2018-2019 The RESQ developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "csvmodelwriter.h" #include <QAbstractItemModel> #include <QFile> #include <QTextStream> CSVModelWriter::CSVModelWriter(const QString& filename, QObject* parent) : QObject(parent), filename(filename), model(0) { } void CSVModelWriter::setModel(const QAbstractItemModel* model) { this->model = model; } void CSVModelWriter::addColumn(const QString& title, int column, int role) { Column col; col.title = title; col.column = column; col.role = role; columns.append(col); } static void writeValue(QTextStream& f, const QString& value) { QString escaped = value; escaped.replace('"', "\"\""); f << "\"" << escaped << "\""; } static void writeSep(QTextStream& f) { f << ","; } static void writeNewline(QTextStream& f) { f << "\n"; } bool CSVModelWriter::write() { QFile file(filename); if (!file.open(QIODevice::WriteOnly | QIODevice::Text)) return false; QTextStream out(&file); int numRows = 0; if (model) { numRows = model->rowCount(); } // Header row for (int i = 0; i < columns.size(); ++i) { if (i != 0) { writeSep(out); } writeValue(out, columns[i].title); } writeNewline(out); // Data rows for (int j = 0; j < numRows; ++j) { for (int i = 0; i < columns.size(); ++i) { if (i != 0) { writeSep(out); } QVariant data = model->index(j, columns[i].column).data(columns[i].role); writeValue(out, data.toString()); } writeNewline(out); } file.close(); return file.error() == QFile::NoError; }
[ "PaulH-RESQ" ]
PaulH-RESQ
710a6145adc47efddbf6298f9d6d5aa279218ab4
2a3972b46495ea4416f7acbe3ba6603c50c380a2
/1.DONEM ODEV/191220005_Fatih_Arslan_Odev6/191220005_Fatih_Arslan_Soru2.cpp
268f51cc4ff9808b0a9656b58d18ff240f17410c
[]
no_license
onlyfatih/KTUN-algoritma-calisma-notlari
207bf58f4ecf15dc0ba40a560511bf5631e81526
74dbb53751b1a1098f683a1157231bce9a628883
refs/heads/master
2021-05-25T18:32:33.415929
2020-04-07T17:58:26
2020-04-07T17:58:26
253,870,783
0
0
null
null
null
null
UTF-8
C++
false
false
1,354
cpp
#include <stdio.h> struct ogrenci { char ismi[20]; char soyadi[20]; int no; struct ders{ int kod; int vize; int final; float ort; }ders[4]; }ogrenci[4]; int main() { int gecmenotu=50; for (int i=0; i<5; i++) { printf("ogrencinin adini giriniz:"); scanf("%s",&ogrenci[i].ismi); printf("ogrencinin soyadini giriniz:"); scanf("%s",&ogrenci[i].soyadi); printf("ogrencinin okul numarasini giriniz:"); scanf("%d",&ogrenci[i].no); for (int j=0; j<5; j++) { printf("%d. dersin ders kodunu giriniz:",j+1); scanf("%d",&ogrenci[i].ders[j].kod); printf("%d. dersin vize notunu giriniz:",j+1); scanf("%d",&ogrenci[i].ders[j].vize); printf("%d. dersin final notunu giriniz:",j+1); scanf("%d",&ogrenci[i].ders[j].final); ogrenci[i].ders[j].ort = (float) (ogrenci[i].ders[j].vize * 0.4) + (ogrenci[i].ders[j].final * 0.6); } printf("\n%d. Ogrencinin Bilgileri:\n",i+1); printf("Ismi: %s\nSoyadi: %s\nNo: %d \nGECME NOTU:50 VE UZERI",ogrenci[i].ismi,ogrenci[i].soyadi,ogrenci[i].no); printf("\n"); printf("\n%d. Ogrencinin Ders Bilgileri:\n",i+1); for (int j=0; j<5; j++) { printf("%d. Ders Kod: %d\n%d. Ders Vize: %d\n%d. Ders Final: %d\n%d. Ders Ortalama: %0.2f\n",j+1,ogrenci[i].ders[j].kod,j+1,ogrenci[i].ders[j].vize,j+1,ogrenci[i].ders[j].final,j+1,ogrenci[i].ders[j].ort); printf("\n"); } } }
[ "fth.ars58@gmail.com" ]
fth.ars58@gmail.com
ee41ae12501b7f25b5358491996e9f5a5e1c2ac4
660ed951b06d7a8abf77d30483fe718f70d98c4c
/EngineV1/Minigin/TextureComponent.cpp
b00c1cbb9cecb5f044f73f336aadac9b7d3a8af2
[]
no_license
mowenli/EngineV1
2eb54e64593895d6226b0e5aeda57753cffe35fb
438ffeee8384804f9a8fae589c7e78f7f95c778e
refs/heads/master
2022-10-22T22:38:35.403076
2020-06-15T22:13:39
2020-06-15T22:13:39
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,870
cpp
#include "MiniginPCH.h" #include "TextureComponent.h" #include "Texture2D.h" #include "Renderer.h" #include "TransformComponent.h" #include "imgui.h" #include "ResourceManager.h" #include "SceneManager.h" TextureComponent::TextureComponent(GameObject* pGameObject, const std::string& texturePath) : BaseComponent(pGameObject, "TextureComponent") , m_pTexture{ ResourceManager::GetInstance()->LoadTexture(texturePath) } , m_Path{ texturePath } , m_Offset{ } { strcpy_s(m_TexturePathImGui, texturePath.c_str()); } TextureComponent::~TextureComponent() { delete m_pTexture; m_pTexture = nullptr; } void TextureComponent::Render() { if (!m_pTexture) return; const auto tranformComponent = m_pGameObject->GetTransform(); if (!tranformComponent) return; const auto position = tranformComponent->GetWorldPosition(); const auto scale = tranformComponent->GetWorldScale(); const auto rot = tranformComponent->GetWorldRotation(); Renderer::GetInstance()->RenderTexture(*m_pTexture, { position.x + m_Offset.x, position.y + m_Offset.y }, m_SrcRect, scale, rot, m_Center, m_Flip); } void TextureComponent::Update(float) { } void TextureComponent::DrawInterface() { using namespace ImGui; PushID(this); SetNextItemOpen(true, ImGuiCond_Once); bool open = TreeNode(&GetName().front()); HandleDrag(); if (open) { Separator(); Spacing(); //Path to texture Text("File Path"); PushItemWidth(200); if (InputText(" ", m_TexturePathImGui, IM_ARRAYSIZE(m_TexturePathImGui))) { delete m_pTexture; m_pTexture = nullptr; m_pTexture = ResourceManager::GetInstance()->LoadTexture(m_TexturePathImGui); m_Path = m_TexturePathImGui; } Spacing(); Text("Offset"); PushItemWidth(150.f); InputFloat("x", &m_Offset.x, 1.f, 50.f, "%.1f"); PushItemWidth(150.f); InputFloat("y", &m_Offset.y, 1.f, 50.f, "%.1f"); Checkbox("Center", &m_Center); TreePop(); } HandleDrop(); PopID(); } void TextureComponent::AdaptToFullscreen(const Vector2f&) { m_Offset = SceneManager::GetInstance()->AdaptScaleToFullscreen(m_Offset); } void TextureComponent::SaveAttributes(rapidxml::xml_document<>* pDoc, rapidxml::xml_node<>* pNode) { pNode->append_attribute(pDoc->allocate_attribute("TexturePath", m_Path.c_str())); pNode->append_attribute(pDoc->allocate_attribute("OffsetX", FloatToXMLChar(pDoc, m_Offset.x))); pNode->append_attribute(pDoc->allocate_attribute("OffsetY", FloatToXMLChar(pDoc, m_Offset.y))); pNode->append_attribute(pDoc->allocate_attribute("Center", IntToXMLChar(pDoc, m_Center))); } void TextureComponent::SetAttributes(const Vector2f& offset, int center) { m_Offset = offset; m_Center = center; } void TextureComponent::SetTexture(const std::string& texturePath) { delete m_pTexture; m_pTexture = nullptr; m_Path = texturePath; m_pTexture = ResourceManager::GetInstance()->LoadTexture(texturePath); }
[ "63750664+ArneBorr@users.noreply.github.com" ]
63750664+ArneBorr@users.noreply.github.com
6ffffa41e20e5a44e0890981592132be270777a9
d64cc7ea1aa557970b93d851019276c19020c3b3
/NoNameProject/Source/NoNameProject/LightSwitchPushButton.h
517ca90ce48403df2f61ca20531387904ce9edfe
[]
no_license
PacoFMD/UntitledHorrorGame
a850625e5231518e0eba48188ef040f91af58e1e
2e88f9a097e293e5c4ba7db6a32d5aaf57679278
refs/heads/master
2022-03-29T12:12:00.855933
2020-01-10T18:42:45
2020-01-10T18:42:45
215,636,906
0
0
null
null
null
null
UTF-8
C++
false
false
829
h
#pragma once #include "CoreMinimal.h" #include "GameFramework/Actor.h" #include "LightSwitchPushButton.generated.h" class UPointLightComponent; class USphereComponent; UCLASS() class NONAMEPROJECT_API ALightSwitchPushButton : public AActor { GENERATED_BODY() public: // Sets default values for this actor's properties ALightSwitchPushButton(); // declare point light comp UPROPERTY(VisibleAnywhere, Category = "Light Switch") class UPointLightComponent* PointLight; // declare sphere comp UPROPERTY(VisibleAnywhere, Category = "Light Switch") class USphereComponent* LightSphere; // declare light intensity variable UPROPERTY(VisibleAnywhere, Category = "Light Switch") float LightIntensity; // declare ToggleLight function UFUNCTION(BlueprintCallable, Category = "Light Switch") void ToggleLight(); };
[ "pacomonfmd@hotmail.com" ]
pacomonfmd@hotmail.com
9f9ee951c2afcfe4ded94e81f7bab0bcff95ce45
68b0b87168151c98a48a597781405a76b4ee9ed7
/src/qt/guiutil.cpp
d1faffc2b6cb417dc1cb153a6c3d6266039db2aa
[]
no_license
BitcoinAdultNg/BitcoinAdult
ef6aa3de57a503a3cd7eb986b3aacc81f03f075f
19470e201df55b44586f6d4d7a8fe92b86ed7c20
refs/heads/master
2023-01-02T06:44:45.542108
2020-10-23T12:51:51
2020-10-23T12:51:51
287,327,470
0
0
null
2020-10-23T12:51:52
2020-08-13T16:21:13
C++
UTF-8
C++
false
false
32,686
cpp
// Copyright (c) 2019-2023 The BTAD developers // Copyright (c) 2011-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2019 The BITCOINADULT developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "guiutil.h" #include "bitcoinaddressvalidator.h" #include "bitcoinunits.h" #include "qvalidatedlineedit.h" #include "walletmodel.h" #include "init.h" #include "main.h" #include "primitives/transaction.h" #include "protocol.h" #include "script/script.h" #include "script/standard.h" #include "util.h" #ifdef WIN32 #ifdef _WIN32_WINNT #undef _WIN32_WINNT #endif #define _WIN32_WINNT 0x0501 #ifdef _WIN32_IE #undef _WIN32_IE #endif #define _WIN32_IE 0x0501 #define WIN32_LEAN_AND_MEAN 1 #ifndef NOMINMAX #define NOMINMAX #endif #include "shellapi.h" #include "shlobj.h" #include "shlwapi.h" #endif #include <boost/filesystem.hpp> #include <boost/filesystem/fstream.hpp> #if BOOST_FILESYSTEM_VERSION >= 3 #include <boost/filesystem/detail/utf8_codecvt_facet.hpp> #endif #include <QAbstractItemView> #include <QApplication> #include <QClipboard> #include <QDateTime> #include <QDesktopServices> #include <QDesktopWidget> #include <QRegExp> #include <QRegularExpression> #include <QRegularExpressionValidator> #include <QFileDialog> #include <QFont> #include <QLineEdit> #include <QSettings> #include <QTextDocument> // for Qt::mightBeRichText #include <QThread> #include <QUrlQuery> #include <QMouseEvent> #if BOOST_FILESYSTEM_VERSION >= 3 static boost::filesystem::detail::utf8_codecvt_facet utf8; #endif #if defined(Q_OS_MAC) extern double NSAppKitVersionNumber; #if !defined(NSAppKitVersionNumber10_8) #define NSAppKitVersionNumber10_8 1187 #endif #if !defined(NSAppKitVersionNumber10_9) #define NSAppKitVersionNumber10_9 1265 #endif #endif #define URI_SCHEME "BitcoinAdult" namespace GUIUtil { QString dateTimeStr(const QDateTime& date) { return date.date().toString(Qt::SystemLocaleShortDate) + QString(" ") + date.toString("hh:mm"); } QString dateTimeStrWithSeconds(const QDateTime& date) { return date.date().toString(Qt::SystemLocaleShortDate) + QString(" ") + date.toString("hh:mm:ss"); } QString dateTimeStr(qint64 nTime) { return dateTimeStr(QDateTime::fromTime_t((qint32)nTime)); } QFont bitcoinAddressFont() { QFont font("Monospace"); font.setStyleHint(QFont::Monospace); return font; } /** * Parse a string into a number of base monetary units and * return validity. * @note Must return 0 if !valid. */ CAmount parseValue(const QString& text, int displayUnit, bool* valid_out) { CAmount val = 0; bool valid = BitcoinUnits::parse(displayUnit, text, &val); if (valid) { if (val < 0 || val > BitcoinUnits::maxMoney()) valid = false; } if (valid_out) *valid_out = valid; return valid ? val : 0; } QString formatBalance(CAmount amount, int nDisplayUnit, bool isZpiv){ return (amount == 0) ? ("0.00 " + BitcoinUnits::name(nDisplayUnit, isZpiv)) : BitcoinUnits::floorHtmlWithUnit(nDisplayUnit, amount, false, BitcoinUnits::separatorAlways, true, isZpiv); } bool requestUnlock(WalletModel* walletModel, AskPassphraseDialog::Context context, bool relock){ // Request unlock if wallet was locked or unlocked for mixing: WalletModel::EncryptionStatus encStatus = walletModel->getEncryptionStatus(); if (encStatus == walletModel->Locked) { return WalletModel::UnlockContext(walletModel->requestUnlock(context, relock)).isValid(); } return true; } void setupAddressWidget(QValidatedLineEdit* widget, QWidget* parent) { parent->setFocusProxy(widget); widget->setFont(bitcoinAddressFont()); // We don't want translators to use own addresses in translations // and this is the only place, where this address is supplied. widget->setPlaceholderText(QObject::tr("Enter a BTAD address (e.g. %1)").arg("D7VFR83SQbiezrW72hjcWJtcfip5krte2Z")); widget->setValidator(new BitcoinAddressEntryValidator(parent)); widget->setCheckValidator(new BitcoinAddressCheckValidator(parent)); } void setupAmountWidget(QLineEdit* widget, QWidget* parent) { QRegularExpression rx("^(\\d{0,8})((\\.|,)\\d{1,8})?$"); QValidator *validator = new QRegularExpressionValidator(rx, widget); widget->setValidator(validator); } void updateWidgetTextAndCursorPosition(QLineEdit* widget, const QString& str) { const int cpos = widget->cursorPosition(); widget->setText(str); if (cpos > str.size()) return; widget->setCursorPosition(cpos); } bool parseBitcoinURI(const QUrl& uri, SendCoinsRecipient* out) { // return if URI is not valid or is no BTAD: URI if (!uri.isValid() || uri.scheme() != QString(URI_SCHEME)) return false; SendCoinsRecipient rv; rv.address = uri.path(); // Trim any following forward slash which may have been added by the OS if (rv.address.endsWith("/")) { rv.address.truncate(rv.address.length() - 1); } rv.amount = 0; QUrlQuery uriQuery(uri); QList<QPair<QString, QString> > items = uriQuery.queryItems(); for (QList<QPair<QString, QString> >::iterator i = items.begin(); i != items.end(); i++) { bool fShouldReturnFalse = false; if (i->first.startsWith("req-")) { i->first.remove(0, 4); fShouldReturnFalse = true; } if (i->first == "label") { rv.label = i->second; fShouldReturnFalse = false; } if (i->first == "message") { rv.message = i->second; fShouldReturnFalse = false; } else if (i->first == "amount") { if (!i->second.isEmpty()) { if (!BitcoinUnits::parse(BitcoinUnits::BTAD, i->second, &rv.amount)) { return false; } } fShouldReturnFalse = false; } if (fShouldReturnFalse) return false; } if (out) { *out = rv; } return true; } bool parseBitcoinURI(QString uri, SendCoinsRecipient* out) { // Convert BitcoinAdult:// to BitcoinAdult: // // Cannot handle this later, because BitcoinAdult:// will cause Qt to see the part after // as host, // which will lower-case it (and thus invalidate the address). if (uri.startsWith(URI_SCHEME "://", Qt::CaseInsensitive)) { uri.replace(0, std::strlen(URI_SCHEME) + 3, URI_SCHEME ":"); } QUrl uriInstance(uri); return parseBitcoinURI(uriInstance, out); } QString formatBitcoinURI(const SendCoinsRecipient& info) { QString ret = QString(URI_SCHEME ":%1").arg(info.address); int paramCount = 0; if (info.amount) { ret += QString("?amount=%1").arg(BitcoinUnits::format(BitcoinUnits::BTAD, info.amount, false, BitcoinUnits::separatorNever)); paramCount++; } if (!info.label.isEmpty()) { QString lbl(QUrl::toPercentEncoding(info.label)); ret += QString("%1label=%2").arg(paramCount == 0 ? "?" : "&").arg(lbl); paramCount++; } if (!info.message.isEmpty()) { QString msg(QUrl::toPercentEncoding(info.message)); ret += QString("%1message=%2").arg(paramCount == 0 ? "?" : "&").arg(msg); paramCount++; } return ret; } bool isDust(const QString& address, const CAmount& amount) { CTxDestination dest = CBitcoinAddress(address.toStdString()).Get(); CScript script = GetScriptForDestination(dest); CTxOut txOut(amount, script); return txOut.IsDust(::minRelayTxFee); } QString HtmlEscape(const QString& str, bool fMultiLine) { QString escaped = str.toHtmlEscaped(); escaped = escaped.replace(" ", "&nbsp;"); if (fMultiLine) { escaped = escaped.replace("\n", "<br>\n"); } return escaped; } QString HtmlEscape(const std::string& str, bool fMultiLine) { return HtmlEscape(QString::fromStdString(str), fMultiLine); } void copyEntryData(QAbstractItemView* view, int column, int role) { if (!view || !view->selectionModel()) return; QModelIndexList selection = view->selectionModel()->selectedRows(column); if (!selection.isEmpty()) { // Copy first item setClipboard(selection.at(0).data(role).toString()); } } QString getEntryData(QAbstractItemView *view, int column, int role) { if(!view || !view->selectionModel()) return QString(); QModelIndexList selection = view->selectionModel()->selectedRows(column); if(!selection.isEmpty()) { // Return first item return (selection.at(0).data(role).toString()); } return QString(); } QString getSaveFileName(QWidget* parent, const QString& caption, const QString& dir, const QString& filter, QString* selectedSuffixOut) { QString selectedFilter; QString myDir; if (dir.isEmpty()) // Default to user documents location { myDir = QStandardPaths::writableLocation(QStandardPaths::DocumentsLocation); } else { myDir = dir; } /* Directly convert path to native OS path separators */ QString result = QDir::toNativeSeparators(QFileDialog::getSaveFileName(parent, caption, myDir, filter, &selectedFilter)); /* Extract first suffix from filter pattern "Description (*.foo)" or "Description (*.foo *.bar ...) */ QRegExp filter_re(".* \\(\\*\\.(.*)[ \\)]"); QString selectedSuffix; if (filter_re.exactMatch(selectedFilter)) { selectedSuffix = filter_re.cap(1); } /* Add suffix if needed */ QFileInfo info(result); if (!result.isEmpty()) { if (info.suffix().isEmpty() && !selectedSuffix.isEmpty()) { /* No suffix specified, add selected suffix */ if (!result.endsWith(".")) result.append("."); result.append(selectedSuffix); } } /* Return selected suffix if asked to */ if (selectedSuffixOut) { *selectedSuffixOut = selectedSuffix; } return result; } QString getOpenFileName(QWidget* parent, const QString& caption, const QString& dir, const QString& filter, QString* selectedSuffixOut) { QString selectedFilter; QString myDir; if (dir.isEmpty()) // Default to user documents location { myDir = QStandardPaths::writableLocation(QStandardPaths::DocumentsLocation); } else { myDir = dir; } /* Directly convert path to native OS path separators */ QString result = QDir::toNativeSeparators(QFileDialog::getOpenFileName(parent, caption, myDir, filter, &selectedFilter)); if (selectedSuffixOut) { /* Extract first suffix from filter pattern "Description (*.foo)" or "Description (*.foo *.bar ...) */ QRegExp filter_re(".* \\(\\*\\.(.*)[ \\)]"); QString selectedSuffix; if (filter_re.exactMatch(selectedFilter)) { selectedSuffix = filter_re.cap(1); } *selectedSuffixOut = selectedSuffix; } return result; } Qt::ConnectionType blockingGUIThreadConnection() { if (QThread::currentThread() != qApp->thread()) { return Qt::BlockingQueuedConnection; } else { return Qt::DirectConnection; } } bool checkPoint(const QPoint& p, const QWidget* w) { QWidget* atW = QApplication::widgetAt(w->mapToGlobal(p)); if (!atW) return false; return atW->topLevelWidget() == w; } bool isObscured(QWidget* w) { return !(checkPoint(QPoint(0, 0), w) && checkPoint(QPoint(w->width() - 1, 0), w) && checkPoint(QPoint(0, w->height() - 1), w) && checkPoint(QPoint(w->width() - 1, w->height() - 1), w) && checkPoint(QPoint(w->width() / 2, w->height() / 2), w)); } bool openDebugLogfile() { boost::filesystem::path pathDebug = GetDataDir() / "debug.log"; /* Open debug.log with the associated application */ if (boost::filesystem::exists(pathDebug)) return QDesktopServices::openUrl(QUrl::fromLocalFile(boostPathToQString(pathDebug))); return false; } bool openConfigfile() { boost::filesystem::path pathConfig = GetConfigFile(); /* Open BitcoinAdult.conf with the associated application */ if (boost::filesystem::exists(pathConfig)) return QDesktopServices::openUrl(QUrl::fromLocalFile(boostPathToQString(pathConfig))); return false; } bool openMNConfigfile() { boost::filesystem::path pathConfig = GetMasternodeConfigFile(); /* Open masternode.conf with the associated application */ if (boost::filesystem::exists(pathConfig)) return QDesktopServices::openUrl(QUrl::fromLocalFile(boostPathToQString(pathConfig))); return false; } bool showBackups() { boost::filesystem::path pathBackups = GetDataDir() / "backups"; /* Open folder with default browser */ if (boost::filesystem::exists(pathBackups)) return QDesktopServices::openUrl(QUrl::fromLocalFile(boostPathToQString(pathBackups))); return false; } void SubstituteFonts(const QString& language) { #if defined(Q_OS_MAC) // Background: // OSX's default font changed in 10.9 and QT is unable to find it with its // usual fallback methods when building against the 10.7 sdk or lower. // The 10.8 SDK added a function to let it find the correct fallback font. // If this fallback is not properly loaded, some characters may fail to // render correctly. // // The same thing happened with 10.10. .Helvetica Neue DeskInterface is now default. // // Solution: If building with the 10.7 SDK or lower and the user's platform // is 10.9 or higher at runtime, substitute the correct font. This needs to // happen before the QApplication is created. #if defined(MAC_OS_X_VERSION_MAX_ALLOWED) && MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_8 if (floor(NSAppKitVersionNumber) > NSAppKitVersionNumber10_8) { if (floor(NSAppKitVersionNumber) <= NSAppKitVersionNumber10_9) /* On a 10.9 - 10.9.x system */ QFont::insertSubstitution(".Lucida Grande UI", "Lucida Grande"); else { /* 10.10 or later system */ if (language == "zh_CN" || language == "zh_TW" || language == "zh_HK") // traditional or simplified Chinese QFont::insertSubstitution(".Helvetica Neue DeskInterface", "Heiti SC"); else if (language == "ja") // Japanesee QFont::insertSubstitution(".Helvetica Neue DeskInterface", "Songti SC"); else QFont::insertSubstitution(".Helvetica Neue DeskInterface", "Lucida Grande"); } } #endif #endif } ToolTipToRichTextFilter::ToolTipToRichTextFilter(int size_threshold, QObject* parent) : QObject(parent), size_threshold(size_threshold) { } bool ToolTipToRichTextFilter::eventFilter(QObject* obj, QEvent* evt) { if (evt->type() == QEvent::ToolTipChange) { QWidget* widget = static_cast<QWidget*>(obj); QString tooltip = widget->toolTip(); if (tooltip.size() > size_threshold && !tooltip.startsWith("<qt")) { // Escape the current message as HTML and replace \n by <br> if it's not rich text if (!Qt::mightBeRichText(tooltip)) tooltip = HtmlEscape(tooltip, true); // Envelop with <qt></qt> to make sure Qt detects every tooltip as rich text // and style='white-space:pre' to preserve line composition tooltip = "<qt style='white-space:pre'>" + tooltip + "</qt>"; widget->setToolTip(tooltip); return true; } } return QObject::eventFilter(obj, evt); } void TableViewLastColumnResizingFixer::connectViewHeadersSignals() { connect(tableView->horizontalHeader(), SIGNAL(sectionResized(int, int, int)), this, SLOT(on_sectionResized(int, int, int))); connect(tableView->horizontalHeader(), SIGNAL(geometriesChanged()), this, SLOT(on_geometriesChanged())); } // We need to disconnect these while handling the resize events, otherwise we can enter infinite loops. void TableViewLastColumnResizingFixer::disconnectViewHeadersSignals() { disconnect(tableView->horizontalHeader(), SIGNAL(sectionResized(int, int, int)), this, SLOT(on_sectionResized(int, int, int))); disconnect(tableView->horizontalHeader(), SIGNAL(geometriesChanged()), this, SLOT(on_geometriesChanged())); } // Setup the resize mode, handles compatibility for Qt5 and below as the method signatures changed. // Refactored here for readability. void TableViewLastColumnResizingFixer::setViewHeaderResizeMode(int logicalIndex, QHeaderView::ResizeMode resizeMode) { tableView->horizontalHeader()->setSectionResizeMode(logicalIndex, resizeMode); } void TableViewLastColumnResizingFixer::resizeColumn(int nColumnIndex, int width) { tableView->setColumnWidth(nColumnIndex, width); tableView->horizontalHeader()->resizeSection(nColumnIndex, width); } int TableViewLastColumnResizingFixer::getColumnsWidth() { int nColumnsWidthSum = 0; for (int i = 0; i < columnCount; i++) { nColumnsWidthSum += tableView->horizontalHeader()->sectionSize(i); } return nColumnsWidthSum; } int TableViewLastColumnResizingFixer::getAvailableWidthForColumn(int column) { int nResult = lastColumnMinimumWidth; int nTableWidth = tableView->horizontalHeader()->width(); if (nTableWidth > 0) { int nOtherColsWidth = getColumnsWidth() - tableView->horizontalHeader()->sectionSize(column); nResult = std::max(nResult, nTableWidth - nOtherColsWidth); } return nResult; } // Make sure we don't make the columns wider than the tables viewport width. void TableViewLastColumnResizingFixer::adjustTableColumnsWidth() { disconnectViewHeadersSignals(); resizeColumn(lastColumnIndex, getAvailableWidthForColumn(lastColumnIndex)); connectViewHeadersSignals(); int nTableWidth = tableView->horizontalHeader()->width(); int nColsWidth = getColumnsWidth(); if (nColsWidth > nTableWidth) { resizeColumn(secondToLastColumnIndex, getAvailableWidthForColumn(secondToLastColumnIndex)); } } // Make column use all the space available, useful during window resizing. void TableViewLastColumnResizingFixer::stretchColumnWidth(int column) { disconnectViewHeadersSignals(); resizeColumn(column, getAvailableWidthForColumn(column)); connectViewHeadersSignals(); } // When a section is resized this is a slot-proxy for ajustAmountColumnWidth(). void TableViewLastColumnResizingFixer::on_sectionResized(int logicalIndex, int oldSize, int newSize) { adjustTableColumnsWidth(); int remainingWidth = getAvailableWidthForColumn(logicalIndex); if (newSize > remainingWidth) { resizeColumn(logicalIndex, remainingWidth); } } // When the tabless geometry is ready, we manually perform the stretch of the "Message" column, // as the "Stretch" resize mode does not allow for interactive resizing. void TableViewLastColumnResizingFixer::on_geometriesChanged() { if ((getColumnsWidth() - this->tableView->horizontalHeader()->width()) != 0) { disconnectViewHeadersSignals(); resizeColumn(secondToLastColumnIndex, getAvailableWidthForColumn(secondToLastColumnIndex)); connectViewHeadersSignals(); } } /** * Initializes all internal variables and prepares the * the resize modes of the last 2 columns of the table and */ TableViewLastColumnResizingFixer::TableViewLastColumnResizingFixer(QTableView* table, int lastColMinimumWidth, int allColsMinimumWidth) : tableView(table), lastColumnMinimumWidth(lastColMinimumWidth), allColumnsMinimumWidth(allColsMinimumWidth) { columnCount = tableView->horizontalHeader()->count(); lastColumnIndex = columnCount - 1; secondToLastColumnIndex = columnCount - 2; tableView->horizontalHeader()->setMinimumSectionSize(allColumnsMinimumWidth); setViewHeaderResizeMode(secondToLastColumnIndex, QHeaderView::Interactive); setViewHeaderResizeMode(lastColumnIndex, QHeaderView::Interactive); } /** * Class constructor. * @param[in] seconds Number of seconds to convert to a DHMS string */ DHMSTableWidgetItem::DHMSTableWidgetItem(const int64_t seconds) : QTableWidgetItem(), value(seconds) { this->setText(QString::fromStdString(DurationToDHMS(seconds))); } /** * Comparator overload to ensure that the "DHMS"-type durations as used in * the "active-since" list in the masternode tab are sorted by the elapsed * duration (versus the string value being sorted). * @param[in] item Right hand side of the less than operator */ bool DHMSTableWidgetItem::operator<(QTableWidgetItem const& item) const { DHMSTableWidgetItem const* rhs = dynamic_cast<DHMSTableWidgetItem const*>(&item); if (!rhs) return QTableWidgetItem::operator<(item); return value < rhs->value; } #ifdef WIN32 boost::filesystem::path static StartupShortcutPath() { return GetSpecialFolderPath(CSIDL_STARTUP) / "BTAD.lnk"; } bool GetStartOnSystemStartup() { // check for BTAD.lnk return boost::filesystem::exists(StartupShortcutPath()); } bool SetStartOnSystemStartup(bool fAutoStart) { // If the shortcut exists already, remove it for updating boost::filesystem::remove(StartupShortcutPath()); if (fAutoStart) { CoInitialize(NULL); // Get a pointer to the IShellLink interface. IShellLink* psl = NULL; HRESULT hres = CoCreateInstance(CLSID_ShellLink, NULL, CLSCTX_INPROC_SERVER, IID_IShellLink, reinterpret_cast<void**>(&psl)); if (SUCCEEDED(hres)) { // Get the current executable path TCHAR pszExePath[MAX_PATH]; GetModuleFileName(NULL, pszExePath, sizeof(pszExePath)); TCHAR pszArgs[5] = TEXT("-min"); // Set the path to the shortcut target psl->SetPath(pszExePath); PathRemoveFileSpec(pszExePath); psl->SetWorkingDirectory(pszExePath); psl->SetShowCmd(SW_SHOWMINNOACTIVE); psl->SetArguments(pszArgs); // Query IShellLink for the IPersistFile interface for // saving the shortcut in persistent storage. IPersistFile* ppf = NULL; hres = psl->QueryInterface(IID_IPersistFile, reinterpret_cast<void**>(&ppf)); if (SUCCEEDED(hres)) { WCHAR pwsz[MAX_PATH]; // Ensure that the string is ANSI. MultiByteToWideChar(CP_ACP, 0, StartupShortcutPath().string().c_str(), -1, pwsz, MAX_PATH); // Save the link by calling IPersistFile::Save. hres = ppf->Save(pwsz, TRUE); ppf->Release(); psl->Release(); CoUninitialize(); return true; } psl->Release(); } CoUninitialize(); return false; } return true; } #elif defined(Q_OS_LINUX) // Follow the Desktop Application Autostart Spec: // http://standards.freedesktop.org/autostart-spec/autostart-spec-latest.html boost::filesystem::path static GetAutostartDir() { namespace fs = boost::filesystem; char* pszConfigHome = getenv("XDG_CONFIG_HOME"); if (pszConfigHome) return fs::path(pszConfigHome) / "autostart"; char* pszHome = getenv("HOME"); if (pszHome) return fs::path(pszHome) / ".config" / "autostart"; return fs::path(); } boost::filesystem::path static GetAutostartFilePath() { return GetAutostartDir() / "BitcoinAdult.desktop"; } bool GetStartOnSystemStartup() { boost::filesystem::ifstream optionFile(GetAutostartFilePath()); if (!optionFile.good()) return false; // Scan through file for "Hidden=true": std::string line; while (!optionFile.eof()) { getline(optionFile, line); if (line.find("Hidden") != std::string::npos && line.find("true") != std::string::npos) return false; } optionFile.close(); return true; } bool SetStartOnSystemStartup(bool fAutoStart) { if (!fAutoStart) boost::filesystem::remove(GetAutostartFilePath()); else { char pszExePath[MAX_PATH + 1]; memset(pszExePath, 0, sizeof(pszExePath)); if (readlink("/proc/self/exe", pszExePath, sizeof(pszExePath) - 1) == -1) return false; boost::filesystem::create_directories(GetAutostartDir()); boost::filesystem::ofstream optionFile(GetAutostartFilePath(), std::ios_base::out | std::ios_base::trunc); if (!optionFile.good()) return false; // Write a BitcoinAdult.desktop file to the autostart directory: optionFile << "[Desktop Entry]\n"; optionFile << "Type=Application\n"; optionFile << "Name=BTAD\n"; optionFile << "Exec=" << pszExePath << " -min\n"; optionFile << "Terminal=false\n"; optionFile << "Hidden=false\n"; optionFile.close(); } return true; } #elif defined(Q_OS_MAC) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wdeprecated-declarations" // based on: https://github.com/Mozketo/LaunchAtLoginController/blob/master/LaunchAtLoginController.m #include <CoreFoundation/CoreFoundation.h> #include <CoreServices/CoreServices.h> LSSharedFileListItemRef findStartupItemInList(LSSharedFileListRef list, CFURLRef findUrl); LSSharedFileListItemRef findStartupItemInList(LSSharedFileListRef list, CFURLRef findUrl) { // loop through the list of startup items and try to find the BitcoinAdult app CFArrayRef listSnapshot = LSSharedFileListCopySnapshot(list, NULL); for (int i = 0; i < CFArrayGetCount(listSnapshot); i++) { LSSharedFileListItemRef item = (LSSharedFileListItemRef)CFArrayGetValueAtIndex(listSnapshot, i); UInt32 resolutionFlags = kLSSharedFileListNoUserInteraction | kLSSharedFileListDoNotMountVolumes; CFURLRef currentItemURL = NULL; #if defined(MAC_OS_X_VERSION_MAX_ALLOWED) && MAC_OS_X_VERSION_MAX_ALLOWED >= 10100 if(&LSSharedFileListItemCopyResolvedURL) currentItemURL = LSSharedFileListItemCopyResolvedURL(item, resolutionFlags, NULL); #if defined(MAC_OS_X_VERSION_MIN_REQUIRED) && MAC_OS_X_VERSION_MIN_REQUIRED < 10100 else LSSharedFileListItemResolve(item, resolutionFlags, &currentItemURL, NULL); #endif #else LSSharedFileListItemResolve(item, resolutionFlags, &currentItemURL, NULL); #endif if(currentItemURL && CFEqual(currentItemURL, findUrl)) { // found CFRelease(currentItemURL); return item; } if (currentItemURL) { CFRelease(currentItemURL); } } return NULL; } bool GetStartOnSystemStartup() { CFURLRef bitcoinAppUrl = CFBundleCopyBundleURL(CFBundleGetMainBundle()); LSSharedFileListRef loginItems = LSSharedFileListCreate(NULL, kLSSharedFileListSessionLoginItems, NULL); LSSharedFileListItemRef foundItem = findStartupItemInList(loginItems, bitcoinAppUrl); return !!foundItem; // return boolified object } bool SetStartOnSystemStartup(bool fAutoStart) { CFURLRef bitcoinAppUrl = CFBundleCopyBundleURL(CFBundleGetMainBundle()); LSSharedFileListRef loginItems = LSSharedFileListCreate(NULL, kLSSharedFileListSessionLoginItems, NULL); LSSharedFileListItemRef foundItem = findStartupItemInList(loginItems, bitcoinAppUrl); if (fAutoStart && !foundItem) { // add BitcoinAdult app to startup item list LSSharedFileListInsertItemURL(loginItems, kLSSharedFileListItemBeforeFirst, NULL, NULL, bitcoinAppUrl, NULL, NULL); } else if (!fAutoStart && foundItem) { // remove item LSSharedFileListItemRemove(loginItems, foundItem); } return true; } #pragma GCC diagnostic pop #else bool GetStartOnSystemStartup() { return false; } bool SetStartOnSystemStartup(bool fAutoStart) { return false; } #endif void saveWindowGeometry(const QString& strSetting, QWidget* parent) { QSettings settings; settings.setValue(strSetting + "Pos", parent->pos()); settings.setValue(strSetting + "Size", parent->size()); } void restoreWindowGeometry(const QString& strSetting, const QSize& defaultSize, QWidget* parent) { QSettings settings; QPoint pos = settings.value(strSetting + "Pos").toPoint(); QSize size = settings.value(strSetting + "Size", defaultSize).toSize(); if (!pos.x() && !pos.y()) { QRect screen = QApplication::desktop()->screenGeometry(); pos.setX((screen.width() - size.width()) / 2); pos.setY((screen.height() - size.height()) / 2); } parent->resize(size); parent->move(pos); } // Check whether a theme is not build-in bool isExternal(QString theme) { if (theme.isEmpty()) return false; return (theme.operator!=("default") && theme.operator!=("default-dark")); } // Open CSS when configured QString loadStyleSheet() { QString styleSheet; QSettings settings; QString cssName; QString theme = settings.value("theme", "").toString(); if (isExternal(theme)) { // External CSS settings.setValue("fCSSexternal", true); boost::filesystem::path pathAddr = GetDataDir() / "themes/"; cssName = pathAddr.string().c_str() + theme + "/css/theme.css"; } else { // Build-in CSS settings.setValue("fCSSexternal", false); if (!theme.isEmpty()) { cssName = QString(":/css/") + theme; } else { cssName = QString(":/css/default"); settings.setValue("theme", "default"); } } QFile qFile(cssName); if (qFile.open(QFile::ReadOnly)) { styleSheet = QLatin1String(qFile.readAll()); } return styleSheet; } void setClipboard(const QString& str) { QApplication::clipboard()->setText(str, QClipboard::Clipboard); QApplication::clipboard()->setText(str, QClipboard::Selection); } #if BOOST_FILESYSTEM_VERSION >= 3 boost::filesystem::path qstringToBoostPath(const QString& path) { return boost::filesystem::path(path.toStdString(), utf8); } QString boostPathToQString(const boost::filesystem::path& path) { return QString::fromStdString(path.string(utf8)); } #else #warning Conversion between boost path and QString can use invalid character encoding with boost_filesystem v2 and older boost::filesystem::path qstringToBoostPath(const QString& path) { return boost::filesystem::path(path.toStdString()); } QString boostPathToQString(const boost::filesystem::path& path) { return QString::fromStdString(path.string()); } #endif QString formatDurationStr(int secs) { QStringList strList; int days = secs / 86400; int hours = (secs % 86400) / 3600; int mins = (secs % 3600) / 60; int seconds = secs % 60; if (days) strList.append(QString(QObject::tr("%1 d")).arg(days)); if (hours) strList.append(QString(QObject::tr("%1 h")).arg(hours)); if (mins) strList.append(QString(QObject::tr("%1 m")).arg(mins)); if (seconds || (!days && !hours && !mins)) strList.append(QString(QObject::tr("%1 s")).arg(seconds)); return strList.join(" "); } QString formatServicesStr(quint64 mask) { QStringList strList; // Just scan the last 8 bits for now. for (int i = 0; i < 8; i++) { uint64_t check = 1 << i; if (mask & check) { switch (check) { case NODE_NETWORK: strList.append(QObject::tr("NETWORK")); break; case NODE_BLOOM: case NODE_BLOOM_WITHOUT_MN: strList.append(QObject::tr("BLOOM")); break; case NODE_BLOOM_LIGHT_ZC: strList.append(QObject::tr("ZK_BLOOM")); break; default: strList.append(QString("%1[%2]").arg(QObject::tr("UNKNOWN")).arg(check)); } } } if (strList.size()) return strList.join(" & "); else return QObject::tr("None"); } QString formatPingTime(double dPingTime) { return dPingTime == 0 ? QObject::tr("N/A") : QString(QObject::tr("%1 ms")).arg(QString::number((int)(dPingTime * 1000), 10)); } QString formatTimeOffset(int64_t nTimeOffset) { return QString(QObject::tr("%1 s")).arg(QString::number((int)nTimeOffset, 10)); } } // namespace GUIUtil
[ "68110517+BitcoinAdultNg@users.noreply.github.com" ]
68110517+BitcoinAdultNg@users.noreply.github.com
9844bc345922834f35be15e53ff4b9177287633e
17f189d7ba258e51fb57c17a45396e50c4e81ead
/tee.h
895a97a716929f6214320440c29ec9bb5f9fa2d8
[]
no_license
spenceryue/Cpp
1252a9ffb771db9635ca5db2f6ca9d9d985ca426
0a66c2c2904e5474185d0a6e279f5c82febb40bc
refs/heads/master
2021-01-23T14:17:20.102880
2018-03-09T20:07:24
2018-03-09T20:07:24
102,682,664
0
0
null
null
null
null
UTF-8
C++
false
false
1,389
h
#ifndef TEE_H #define TEE_H #include <iostream> // std::streambuf, std::streamsize, std::ostream class TeeBuffer: public std::streambuf { public: TeeBuffer (std::streambuf *sb1, std::streambuf *sb2) : sb1(sb1), sb2(sb2) {} private: virtual int sync() { if (sb1->pubsync() || sb2->pubsync()) return -1; else return 0; } virtual std::streamsize xsputn (const char* s, std::streamsize n) { std::streamsize written1 = sb1->sputn(s, n); std::streamsize written2 = sb2->sputn(s, n); return std::min(written1, written2); } virtual int overflow (int c = EOF) { if (c != EOF) { int result1 = sb1->sputc(c); int result2 = sb2->sputc(c); if (result1 == result2) return result1; } return EOF; } private: std::streambuf *sb1; std::streambuf *sb2; }; class Tee: public std::ostream { public: Tee (std::ostream &o1, std::ostream &o2) : std::ostream(&tbuf), tbuf(o1.rdbuf(), o2.rdbuf()) {} private: TeeBuffer tbuf; }; #endif /* TEE_H */ /* Test Tee */ #if __INCLUDE_LEVEL__ == 0 && defined __INCLUDE_LEVEL__ #include <fstream> // std::ofstream #include <iostream> // std::cout, std::endl; using namespace std; int main() { ofstream log("out/test_tee.txt"); Tee tee(cout, log); tee << "Hello, world!\n"; return 0; } #endif /* Test Tee */
[ "spenceryue@gmail.com" ]
spenceryue@gmail.com
78f74ca3d566842ee121b745e1f35a87602655a3
fb7087d5dc416f6054909308ab9f644c483a56f3
/Chapter-7(Tree)/BST(PostOrder).cpp
65aa66c3ee2c6ad8d12d774e4424b1984d4d206d
[]
no_license
Fazle-Rakib/Data-Structure-Lab-SWE-128
52a4c1112ebf381b176b4f1c212151f8e0081b0f
f0d102ac15103e83973a7a50b633f6af9becbfa5
refs/heads/master
2020-03-30T03:30:12.461439
2019-01-24T17:13:53
2019-01-24T17:13:53
150,692,431
2
0
null
null
null
null
UTF-8
C++
false
false
942
cpp
#include <bits/stdc++.h> using namespace std; struct Node { int data; Node *left, *right; Node (int item) { this->data = item; this->left = NULL; this->right = NULL; } }; void postOrderTraverse(Node* root) { if(root->left != NULL) { postOrderTraverse(root->left); } if(root->right != NULL) { postOrderTraverse(root->right); } printf("%d ",root->data); } Node* bstInsert(Node* root,int item) { if(root == NULL) { return new Node(item); } else if(item < root->data) { root->left = bstInsert(root->left,item); } else { root->right = bstInsert(root->right,item); } return root; } int main() { Node* root = NULL; root = bstInsert(root,10); bstInsert(root,9); bstInsert(root,3); bstInsert(root,91); bstInsert(root,1); bstInsert(root,5); bstInsert(root,200); bstInsert(root,2); cout << "After Insertion Pre-order Traversal : "; postOrderTraverse(root); cout << endl; bstInsert(root,30); }
[ "fazle30@student.sust.edu" ]
fazle30@student.sust.edu
9763b920adf9f8aec68c422009347925da7d65c5
fc9d7425e4d712260656e34f813e207a0002622d
/Code/cli.cpp
b68a1962b424022d6c9f9c2c6c9f784d160d7324
[ "MIT" ]
permissive
NtokozoMkhwanazi/Command-Line-Interpreter-CLI
e7bd179bc9e7a8b1c4cea933db78102c4ffdf886
93fd2f0056939892f989d7aeb69a2b8d6af6c780
refs/heads/master
2023-03-19T12:01:02.161071
2021-01-17T17:49:14
2021-01-17T17:49:14
null
0
0
null
null
null
null
UTF-8
C++
false
false
5,728
cpp
#include <iostream> #include <cstdio> #include <string.h> #include <unistd.h> #include <cstdlib> using namespace std; int main() { bool cont = true; char buffer[100] = {}; while (cont) { cout << "\n\nEnter a command: "; cin.get (buffer, 90); //REMOVE if (strstr (buffer,"remove") != NULL) { char* t = strchr (buffer,' '); if(t != NULL) { if(remove( t+1 ) != 0) cout << "\n\nError deleting the file."; else cout << "\n\nThe file has successfully been deleted."; } else cout << "\n\nInvalid command. Filename not entered."; } //EXIT else if (strstr (buffer,"exit") != NULL) cont = false; //RENAME else if (strstr (buffer,"rename") != NULL) { char* t = strchr (buffer,' '); if (t != NULL) { char* oldName = t + 1; char* newName = strchr (oldName, ' '); if (newName != NULL) { char temp[30] = {}; int i = 0; for(char* start = oldName; start != newName; start++) { temp[i] = *start; i++; } newName++; if(rename( temp , newName ) != 0) cout << "\nError renaming the file."; else cout << "\nThe file has successfully been renamed."; } else cout << "\n\nNew Name of the file not entered."; } else cout << "\n\nInvalid command."; } //RMDIR else if (strstr (buffer,"rmdir") != NULL) { char* t = strchr (buffer,' '); if(t != NULL) { if(rmdir( t+1 ) != 0) cout << "\n\nError deleting the directory."; else cout << "\n\nThe directory has successfully been removed."; } else cout << "\n\nInvalid command. DirectoryName not entered."; } //ECHO else if (strstr (buffer,"echo") != NULL) { char* t = strchr (buffer,'"'); if (t != NULL) { char* data = t + 1; //Extracting the data char temp[200] = {}; int i = 0; for(; data[i] != '"'; i++) { temp[i] = data[i]; } //Checking if filename is given or not char* fileN = strchr (data + i, ' ') ; if (fileN != NULL) { fileN++; // create a FILE typed pointer FILE *file_pointer; // open the file for writing file_pointer = fopen (fileN, "w"); if (file_pointer != NULL) { // Write to the file fprintf (file_pointer,"%s", temp); // Close the file fclose (file_pointer); cout << "\n\nThe file has been successfully created."; } else cout << "\n\nCould not create the file."; } //If filename isn't given then simply print the data on console else { cout << endl << endl << temp; } } else cout << "\n\nInvalid command. Data not given"; } //UNZIP else if (strstr (buffer,"unzip") != NULL) { char* t = strchr (buffer,' '); if(t != NULL) { char temp[50] = "tar xvf"; if( system( strcat(temp,t) ) != 0 ) cout << "\n\nError unzipping the file."; else cout << "\n\nThe file has been successfully unzipped."; } else cout << "\n\nInvalid command. FileName not entered."; } //ZIP else if (strstr (buffer,"zip") != NULL) { char* t = strchr (buffer,' '); if(t != NULL) { char temp[50] = "tar cvf"; if( system( strcat( temp,t) ) != 0 ) cout << "\n\nError zipping the file."; else cout << "\n\nThe file has been successfully zipped."; } else cout << "\n\nInvalid command."; } else if (strstr (buffer,"out") != NULL) { int i = 1; //Checking '-l' bool lineByLine = false; char* lpos = strstr (buffer,"-l"); if (lpos != NULL) { lineByLine = true; i++; } string s(buffer); string fileN = ""; string delimiter = " "; size_t pos = 0; while ( i > 0 ) { pos = s.find(delimiter); s.erase(0, pos + delimiter.length()); i--; } //Now extracting the file names string f[3] = " "; i = 0; while ( (pos = s.find(delimiter)) != -1) { f[i] = s.substr(0, pos); s.erase(0, pos + delimiter.length()); i++; } //if atleast one filename is present if ( s != "out" && s != "-l" && s != "" ) { f[i] = s; //Opening the files and printing the contents int c; FILE *file; int j = 0; bool delay = false; char x; while ( j <= i) { char fName[50]; strcpy(fName, f[j].c_str()); //Printing the contents of the file(s) file = fopen(fName, "r"); char line[256]; cout << "\n\nThe contents of the file " << fName << " are as follows : \n\n"; if (file) { if (lineByLine) { while (fgets(line, sizeof(line), file)) { printf("%s", line); //Delay loop delay = true; while(delay) { cout << "\n\nPress some key to print the next line\n\n"; getchar(); delay = false; } } } else { while ((c = getc(file)) != EOF) putchar(c); } fclose(file); } else cout << "\n\nCould not open the file " << fName << " ."; j++; //Delay loop delay = true; while(delay) { cout << "\n\nPress some key to continue\n\n"; getchar(); delay = false; } } } else cout << "\n\nNo filename entered.\n\n"; } else cout << "\n\nInvalid Command. Kindly enter a valid command."; cin.ignore(); } cout << "\n\n\nExiting the CLI.\n\n"; return 0; }
[ "haris.muneer5@gmail.com" ]
haris.muneer5@gmail.com
4cb84bb374577e16005fab78074c1f95bc3ccd72
3f840d0a5f29d3fce6f4935922e2e17d4503a58e
/src/12Command/CodeGroup.h
c517bcfd34c8ad7179c8a575bc91e1f02a1bc9aa
[]
no_license
ElonVampire/DesignPatterns-4
77cfba2ea532c2118734212913f60bd7e229af18
fa97c0f024c1d37074c9148b5e8137e627d21182
refs/heads/master
2022-04-09T08:18:29.436224
2020-03-06T04:28:30
2020-03-06T04:28:30
null
0
0
null
null
null
null
UTF-8
C++
false
false
189
h
#pragma once #include "igroup.h" class CCodeGroup :public IGroup { public: CCodeGroup(void); ~CCodeGroup(void); void Find(); void Add(); void Delete(); void Change(); void Plan(); };
[ "Dezheng.jiang@ESDTEK.com" ]
Dezheng.jiang@ESDTEK.com
3d1f916cf66c1cfc83f53081be8b921ecb9d0e0d
db45da54d280ca0568026febd4173d733670c60e
/lab1/ex4a.cpp
7f1b1c11179c3ada394dbfc4a985fb0c6cac6793
[]
no_license
corybekk/cs315
8512b54b39485ee579964e47932dcddbeafd4aa7
069508a8e67172d39e9c4bc2cc734dbab335f621
refs/heads/master
2020-04-06T04:47:48.036844
2013-06-01T04:49:10
2013-06-01T04:49:10
null
0
0
null
null
null
null
UTF-8
C++
false
false
359
cpp
#include <iostream> using namespace std; int fib(int n); int main(){ cout<<fib(50)<<endl; return 0; } int fib(int n){ static long long prev; if(n==0){ prev = 1; return 0; } else if(n==1){ prev=0; return 1; } else{ long long temp = fib(n-1); long long temp1= temp + prev; prev=temp; return temp1; } }
[ "corybekk@gmail.com" ]
corybekk@gmail.com
9639b2c61f870f2d3fe7023178e71717ab214ecb
5ecb2c080ce78558c37d45ebbd7e8e4998793a2f
/Classes/WelcomeScene.cpp
3e3c3fe32146f6eb8220fad11d9fd8ecff883e2c
[]
no_license
Roman6/Game
0db385989fa0047c436806581c4f419277471d93
05d0298fb484fde40dbe8cca540d2f27e55b6720
refs/heads/master
2020-04-28T08:31:16.642747
2014-12-02T15:01:35
2014-12-02T15:01:35
null
0
0
null
null
null
null
UTF-8
C++
false
false
359
cpp
#include "WelcomeScene.h" #include "WelcomeLayer.h" WelcomeScene::WelcomeScene(){ } WelcomeScene::~WelcomeScene(){ } bool WelcomeScene::init(){ bool bRet=false; do { CC_BREAK_IF(!Scene::init()); auto welcomeLayer = WelcomeLayer::create(); CC_BREAK_IF(!welcomeLayer); this->addChild(welcomeLayer); bRet = true; } while (0); return true; }
[ "chen765466363@foxmail.com" ]
chen765466363@foxmail.com
8d3bbc6b73ee0aa78036af24b1e8a83544059435
f112f9745d7c916c68ee2b8ec05e93e74d7d3004
/gaap/include/tencentcloud/gaap/v20180529/model/ProxyStatus.h
b288c83b2448b5c33829c691cf3beef174344501
[ "Apache-2.0" ]
permissive
datalliance88/tencentcloud-sdk-cpp
d5ca9454e2692ac21a08394bf7a4ba98982640da
fbb8ea8e385620ac41b0a9ceb5abf1405b8aac8c
refs/heads/master
2020-09-04T20:59:42.950346
2019-11-18T07:40:56
2019-11-18T07:40:56
219,890,597
0
0
Apache-2.0
2019-11-06T02:02:01
2019-11-06T02:02:00
null
UTF-8
C++
false
false
4,690
h
/* * Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef TENCENTCLOUD_GAAP_V20180529_MODEL_PROXYSTATUS_H_ #define TENCENTCLOUD_GAAP_V20180529_MODEL_PROXYSTATUS_H_ #include <string> #include <vector> #include <map> #include <tencentcloud/core/utils/rapidjson/document.h> #include <tencentcloud/core/utils/rapidjson/writer.h> #include <tencentcloud/core/utils/rapidjson/stringbuffer.h> #include <tencentcloud/core/AbstractModel.h> namespace TencentCloud { namespace Gaap { namespace V20180529 { namespace Model { /** * 通道状态信息 */ class ProxyStatus : public AbstractModel { public: ProxyStatus(); ~ProxyStatus() = default; void ToJsonObject(rapidjson::Value &value, rapidjson::Document::AllocatorType& allocator) const; CoreInternalOutcome Deserialize(const rapidjson::Value &value); /** * 获取通道实例ID。 * @return InstanceId 通道实例ID。 */ std::string GetInstanceId() const; /** * 设置通道实例ID。 * @param InstanceId 通道实例ID。 */ void SetInstanceId(const std::string& _instanceId); /** * 判断参数 InstanceId 是否已赋值 * @return InstanceId 是否已赋值 */ bool InstanceIdHasBeenSet() const; /** * 获取通道状态。 其中: RUNNING,运行中; CREATING,创建中; DESTROYING,销毁中; OPENING,开启中; CLOSING,关闭中; CLOSED,已关闭; ADJUSTING,配置变更中; ISOLATING,隔离中; ISOLATED,已隔离; UNKNOWN,未知状态。 * @return Status 通道状态。 其中: RUNNING,运行中; CREATING,创建中; DESTROYING,销毁中; OPENING,开启中; CLOSING,关闭中; CLOSED,已关闭; ADJUSTING,配置变更中; ISOLATING,隔离中; ISOLATED,已隔离; UNKNOWN,未知状态。 */ std::string GetStatus() const; /** * 设置通道状态。 其中: RUNNING,运行中; CREATING,创建中; DESTROYING,销毁中; OPENING,开启中; CLOSING,关闭中; CLOSED,已关闭; ADJUSTING,配置变更中; ISOLATING,隔离中; ISOLATED,已隔离; UNKNOWN,未知状态。 * @param Status 通道状态。 其中: RUNNING,运行中; CREATING,创建中; DESTROYING,销毁中; OPENING,开启中; CLOSING,关闭中; CLOSED,已关闭; ADJUSTING,配置变更中; ISOLATING,隔离中; ISOLATED,已隔离; UNKNOWN,未知状态。 */ void SetStatus(const std::string& _status); /** * 判断参数 Status 是否已赋值 * @return Status 是否已赋值 */ bool StatusHasBeenSet() const; private: /** * 通道实例ID。 */ std::string m_instanceId; bool m_instanceIdHasBeenSet; /** * 通道状态。 其中: RUNNING,运行中; CREATING,创建中; DESTROYING,销毁中; OPENING,开启中; CLOSING,关闭中; CLOSED,已关闭; ADJUSTING,配置变更中; ISOLATING,隔离中; ISOLATED,已隔离; UNKNOWN,未知状态。 */ std::string m_status; bool m_statusHasBeenSet; }; } } } } #endif // !TENCENTCLOUD_GAAP_V20180529_MODEL_PROXYSTATUS_H_
[ "zhiqiangfan@tencent.com" ]
zhiqiangfan@tencent.com
2c990c01704686dc90634a64306a26a80e0328c2
ef36fde96d75a54579e562e8d4f422bb782a7227
/16 - 3Sum Closest.cpp
01d14ccc597d272fb1589f31c97057c58edd49f6
[]
no_license
istoney/leetcode
16bca9b1c4de7769c8adb9283f97dc011a1cd1d4
c6e04f4b69e968e238f21910b1171d51cd4b7775
refs/heads/master
2021-01-18T23:59:33.811727
2016-07-21T14:35:13
2016-07-21T14:35:13
49,360,189
0
0
null
null
null
null
UTF-8
C++
false
false
3,817
cpp
/* =================================================================================== * File Name: 16 - 3Sum Closest.cpp * Description: https://leetcode.com/problems/3sum-closest/ * Author: Stoney * Category: 整数求和 * Note: * * Version: 1.0 * Submit Time: 2016/02/06 * Run Time: 24ms, beats 23.13% * Solutions: 类似3Sum,对数组排序后遍历,选取数字作为第一个数字,对其后的范围进行 * twoSum计算;计算中记录距离target最近的结果。 * * Version: 2.0 * Submit Time: 2016/02/09 * Run Time: 12ms, beats 52.35% * Solutions: 基于方法1的改进,在进行twoSum计算时,采取二分查找,快速查找到目标位置 =================================================================================== */ #include<cstdio> #include<iostream> #include<vector> #include<algorithm> using namespace std; // class Solution { // public: // int threeSumClosest(vector<int>& nums, int target) { // sort(nums.begin(), nums.end()); // // int ans = nums[0] + nums[1] + nums[2]; // for(int i=0;i<nums.size()-2;++i){ // int front=i+1, back=nums.size()-1; // while(front < back){ // int sum = nums[i]+nums[front]+nums[back]; // if(abs(sum-target) < abs(ans-target)) // ans=sum; // if(sum<target) ++front; // else if(sum>target) --back; // else break; // } // } // // return ans; // } // }; // class Solution { public: int threeSumClosest(vector<int>& nums, int target) { int ans = nums[0] + nums[1] + nums[2]; if(nums.size()==3) return ans; sort(nums.begin(), nums.end()); for(int i=0;i<nums.size()-2;++i){ int new_target = target - nums[i]; int front=i+1, back=nums.size()-1; while(front < back){ int sum = nums[i]+nums[front]+nums[back]; if(sum==target) return target; if(abs(sum-target) < abs(ans-target)) ans=sum; //lower_bound find the first element which not less than //upper_bound find the first element which greater than if(sum<target){ vector<int>::iterator it = lower_bound(nums.begin()+front+1, nums.begin()+back, new_target-nums[back]); if(nums.begin()+back==it){ //no result found in the range, then the last(back-1) maybe the Closest if(front==back-1) ++front; else front=back-1; } //should't just search for the number greater or equal to it //--it maybe the closest else if(nums.begin()+front+1==it) front=distance(nums.begin(), it); else front=distance(nums.begin(), it)-1; } else if(sum>target){ vector<int>::iterator it = lower_bound(nums.begin()+front+1, nums.begin()+back, new_target-nums[front]); //查找失败时,范围内的值可能全部大于目标,也可能全部小于目标 if(nums.begin()+back==it) --back; else back=distance(nums.begin(), it); } else break; } } return ans; } }; int main(){ Solution s; std::vector<int> v; v.push_back(1); v.push_back(2); v.push_back(4); v.push_back(8); v.push_back(16); v.push_back(32); v.push_back(64); v.push_back(128); cout<<s.threeSumClosest(v, 82)<<endl; return 0; }
[ "special.vcc@gmail.com" ]
special.vcc@gmail.com
46429e2085a0b2f5fde34cbc9a9cd432156f2a0f
56da30a32df9d4602e7848a34f6d2a4d1efd43f5
/windows/CDMDebugFrame.cpp
17512a3e4a755dfe7249cb82997da24c7c1a2ad9
[]
no_license
radtek/skydc
b084ebe541244c5e953480850fecce3dae9327f5
b44337c48230501b27e47e2dae9025bfc1e6961a
refs/heads/master
2020-06-06T07:19:42.211769
2016-05-19T08:38:31
2016-05-19T08:38:31
null
0
0
null
null
null
null
UTF-8
C++
false
false
5,392
cpp
#include "stdafx.h" #include "../client/DCPlusPlus.h" #include "Resource.h" #include "CDMDebugFrame.h" #include "WinUtil.h" #include "../client/File.h" #define MAX_TEXT_LEN 131072 LRESULT CDMDebugFrame::OnCreate(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& bHandled) { ctrlPad.Create(m_hWnd, rcDefault, NULL, WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS | WS_CLIPCHILDREN | WS_VSCROLL | ES_AUTOVSCROLL | ES_MULTILINE | ES_NOHIDESEL | ES_READONLY, WS_EX_CLIENTEDGE); ctrlPad.LimitText(0); ctrlPad.SetFont(WinUtil::font); CreateSimpleStatusBar(ATL_IDS_IDLEMESSAGE, WS_CHILD | WS_VISIBLE | WS_CLIPCHILDREN | WS_CLIPSIBLINGS | SBARS_SIZEGRIP); ctrlStatus.Attach(m_hWndStatusBar); statusContainer.SubclassWindow(ctrlStatus.m_hWnd); ctrlClear.Create(ctrlStatus.m_hWnd, rcDefault, NULL, WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS | WS_CLIPCHILDREN | BS_PUSHBUTTON, 0, IDC_CLEAR); ctrlClear.SetWindowText(_T("Clear")); ctrlClear.SetFont(WinUtil::systemFont); clearContainer.SubclassWindow(ctrlClear.m_hWnd); ctrlHubCommands.Create(ctrlStatus.m_hWnd, rcDefault, _T("Hub Commands"), WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS | WS_CLIPCHILDREN, WS_EX_STATICEDGE); ctrlHubCommands.SetButtonStyle(BS_AUTOCHECKBOX, false); ctrlHubCommands.SetFont(WinUtil::systemFont); ctrlHubCommands.SetCheck(showHubCommands ? BST_CHECKED : BST_UNCHECKED); HubCommandContainer.SubclassWindow(ctrlHubCommands.m_hWnd); ctrlCommands.Create(ctrlStatus.m_hWnd, rcDefault, _T("Client Commands"), WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS | WS_CLIPCHILDREN, WS_EX_STATICEDGE); ctrlCommands.SetButtonStyle(BS_AUTOCHECKBOX, false); ctrlCommands.SetFont(WinUtil::systemFont); ctrlCommands.SetCheck(showCommands ? BST_CHECKED : BST_UNCHECKED); commandContainer.SubclassWindow(ctrlCommands.m_hWnd); ctrlDetection.Create(ctrlStatus.m_hWnd, rcDefault, _T("Detection"), WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS | WS_CLIPCHILDREN, WS_EX_STATICEDGE); ctrlDetection.SetButtonStyle(BS_AUTOCHECKBOX, false); ctrlDetection.SetFont(WinUtil::systemFont); ctrlDetection.SetCheck(showDetection ? BST_CHECKED : BST_UNCHECKED); detectionContainer.SubclassWindow(ctrlDetection.m_hWnd); ctrlFilterIp.Create(ctrlStatus.m_hWnd, rcDefault, _T("Filter"), WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS | WS_CLIPCHILDREN, WS_EX_STATICEDGE); ctrlFilterIp.SetButtonStyle(BS_AUTOCHECKBOX, false); ctrlFilterIp.SetFont(WinUtil::systemFont); ctrlFilterIp.SetCheck(bFilterIp ? BST_CHECKED : BST_UNCHECKED); cFilterContainer.SubclassWindow(ctrlFilterIp.m_hWnd); ctrlFilterText.Create(ctrlStatus.m_hWnd, rcDefault, NULL, WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS | WS_CLIPCHILDREN | ES_NOHIDESEL, WS_EX_STATICEDGE, IDC_DEBUG_FILTER_TEXT); ctrlFilterText.LimitText(0); ctrlFilterText.SetFont(WinUtil::font); eFilterContainer.SubclassWindow(ctrlStatus.m_hWnd); m_hWndClient = ctrlPad; m_hMenu = WinUtil::mainMenu; start(); DebugManager::getInstance()->addListener(this); bHandled = FALSE; return 1; } LRESULT CDMDebugFrame::onClose(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& bHandled) { if(!closed) { DebugManager::getInstance()->removeListener(this); closed = true; stop = true; s.signal(); PostMessage(WM_CLOSE); } else { bHandled = FALSE; } return 0; } void CDMDebugFrame::UpdateLayout(BOOL bResizeBars /* = TRUE */) { RECT rect = { 0 }; GetClientRect(&rect); // position bars and offset their dimensions UpdateBarsPosition(rect, bResizeBars); if(ctrlStatus.IsWindow()) { CRect sr; int w[7]; ctrlStatus.GetClientRect(sr); //int clearButtonWidth = 50; int tmp = ((sr.Width() - 50) / 6) - 4; w[0] = 50; w[1] = w[0] + tmp; w[2] = w[1] + tmp; w[3] = w[2] + tmp; w[4] = w[3] + tmp; w[5] = w[4] + tmp; w[6] = w[5] + tmp; ctrlStatus.SetParts(7, w); ctrlStatus.GetRect(0, sr); ctrlClear.MoveWindow(sr); ctrlStatus.GetRect(1, sr); ctrlCommands.MoveWindow(sr); ctrlStatus.GetRect(2, sr); ctrlHubCommands.MoveWindow(sr); ctrlStatus.GetRect(3, sr); ctrlDetection.MoveWindow(sr); ctrlStatus.GetRect(4, sr); ctrlFilterIp.MoveWindow(sr); ctrlStatus.GetRect(5, sr); ctrlFilterText.MoveWindow(sr); tstring msg; if(bFilterIp) msg = _T("Watching IP: ") + Text::toT(sFilterIp); else msg = _T("Watching all IPs"); ctrlStatus.SetText(6, msg.c_str()); } // resize client window if(m_hWndClient != NULL) ::SetWindowPos(m_hWndClient, NULL, rect.left, rect.top, rect.right - rect.left, rect.bottom - rect.top, SWP_NOZORDER | SWP_NOACTIVATE); } void CDMDebugFrame::addLine(const string& aLine) { if(ctrlPad.GetWindowTextLength() > MAX_TEXT_LEN) { ctrlPad.SetRedraw(FALSE); ctrlPad.SetSel(0, ctrlPad.LineIndex(ctrlPad.LineFromChar(2000))); ctrlPad.ReplaceSel(_T("")); ctrlPad.SetRedraw(TRUE); } BOOL noscroll = TRUE; POINT p = ctrlPad.PosFromChar(ctrlPad.GetWindowTextLength() - 1); CRect r; ctrlPad.GetClientRect(r); if( r.PtInRect(p) || MDIGetActive() != m_hWnd) noscroll = FALSE; else { ctrlPad.SetRedraw(FALSE); // Strange!! This disables the scrolling...???? } ctrlPad.AppendText((Text::toT(Text::toUtf8(aLine)) + _T("\r\n")).c_str()); if (noscroll) { ctrlPad.SetRedraw(TRUE); } //setDirty(); } LRESULT CDMDebugFrame::onClear(WORD /*wNotifyCode*/, WORD /*wID*/, HWND /*hWndCtl*/, BOOL& /*bHandled*/) { ctrlPad.SetWindowText(_T("")); ctrlPad.SetFocus(); return 0; }
[ "val.aleynik@yandex.ru" ]
val.aleynik@yandex.ru
097b900571eefda73a4b3eb859ea88aabbbb0f61
eef25969439ee35fedb5763ca8e87d0a6da6072e
/thread_cond.cpp
36a1d30c964dce22bd664dbcea544998da994b57
[]
no_license
jingsia/C-_example
5e256e3d167e70744bb5ec1ac57cb9792bc1ff39
9b7e6db870d69be5c95c4db6e78b6f11c462daeb
refs/heads/master
2021-01-20T11:44:21.498157
2018-01-28T08:18:56
2018-01-28T08:18:56
82,632,895
0
0
null
null
null
null
UTF-8
C++
false
false
2,424
cpp
/************************************************************************* > File Name: thread_cond.cpp > Author: yangjx > Mail: yangjx@126.com > Created Time: Tue 12 Dec 2017 11:11:37 AM CST ************************************************************************/ #include<iostream> using namespace std; #include<pthread.h> #include<stdio.h> #define BOUNDARY 5 int tasks = 10; pthread_mutex_t tasks_mutex; pthread_cond_t tasks_cond; void* say_hello2(void* args) { pthread_t pid = pthread_self(); cout << "[" << pid << "] hellow in thread " << *(reinterpret_cast<int *>(args)) << endl; bool is_signaled = false; while(1) { pthread_mutex_lock(&tasks_mutex); if(tasks > BOUNDARY) { cout << "[" << pid << "] take task: " << tasks << "in thread " << *(reinterpret_cast<int *>(args)) << endl; --tasks; } else if(!is_signaled) { cout << "[" << pid << "] pthread_cond_signal in thread " << *( ( int* )args ) << endl; pthread_cond_signal(&tasks_cond); is_signaled = true; } pthread_mutex_unlock(&tasks_mutex); if(tasks == 0) break; } } void* say_hello1(void* args) { pthread_t pid = pthread_self(); cout << "[" << pid << "] hellow in thread " << *(reinterpret_cast<int *>(args)) << endl; bool is_signaled = false; while(1) { pthread_mutex_lock(&tasks_mutex); if(tasks > BOUNDARY) { cout << "[" << pid << "] take task: " << tasks << "in thread " << *(reinterpret_cast<int *>(args)) << endl; pthread_cond_wait(&tasks_cond, &tasks_mutex); } else { cout << "[" << pid << "] pthread_cond_signal in thread " << *( ( int* )args ) << endl; --tasks; } pthread_mutex_unlock(&tasks_mutex); if(tasks == 0) break; } } int main() { pthread_attr_t attr; pthread_attr_init(&attr); pthread_attr_setdetachstate( &attr, PTHREAD_CREATE_JOINABLE ); pthread_cond_init(&tasks_cond, NULL); pthread_mutex_init(&tasks_mutex, NULL); pthread_t tid1, tid2; int index1 = 1; int ret = pthread_create(&tid1, &attr, say_hello1, (void*)&index1); if(ret != 0) { cout << "pthread_create error:error_code=" << ret << endl; } int index2 = 2; ret = pthread_create(&tid2, &attr, say_hello2, (void*)&index2); if(ret != 0) { cout << "pthread_create error:error_code=" << ret << endl; } pthread_join(tid1, NULL); pthread_join(tid2, NULL); pthread_attr_destroy(&attr); pthread_mutex_destroy(&tasks_mutex); pthread_cond_destroy(&tasks_cond); return 0; }
[ "839172105@qq.com" ]
839172105@qq.com