No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Unity.Subsystem.Registration.cpp 25KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567
  1. #include "pch-cpp.hpp"
  2. #ifndef _MSC_VER
  3. # include <alloca.h>
  4. #else
  5. # include <malloc.h>
  6. #endif
  7. #include <limits>
  8. // System.Collections.Generic.List`1<System.Object>
  9. struct List_1_tA239CB83DE5615F348BB0507E45F490F4F7C9A8D;
  10. // System.Collections.Generic.List`1<UnityEngine.SubsystemDescriptor>
  11. struct List_1_t15AD773D34D3739AFB67421B6DFFACEA7638F64E;
  12. // System.Object[]
  13. struct ObjectU5BU5D_t8061030B0A12A55D5AD8652A20C922FE99450918;
  14. // UnityEngine.SubsystemDescriptor[]
  15. struct SubsystemDescriptorU5BU5D_t37EEAB4387C3C54A4B704533E5318404D715BE6D;
  16. // System.Type[]
  17. struct TypeU5BU5D_t97234E1129B564EB38B8D85CAC2AD8B5B9522FFB;
  18. // System.Reflection.Binder
  19. struct Binder_t91BFCE95A7057FADF4D8A1A342AFE52872246235;
  20. // System.Reflection.MemberFilter
  21. struct MemberFilter_tF644F1AE82F611B677CE1964D5A3277DDA21D553;
  22. // System.String
  23. struct String_t;
  24. // UnityEngine.SubsystemDescriptor
  25. struct SubsystemDescriptor_tF417D2751C69A8B0DD86162EBCE55F84D3493A71;
  26. // System.Type
  27. struct Type_t;
  28. // System.Void
  29. struct Void_t4861ACF8F4594C3437BB48B6E56783494B843915;
  30. IL2CPP_EXTERN_C RuntimeClass* List_1_t15AD773D34D3739AFB67421B6DFFACEA7638F64E_il2cpp_TypeInfo_var;
  31. IL2CPP_EXTERN_C RuntimeClass* SubsystemRegistration_tBF4BF08A2270D9934F883D9B799E8A033BC28F21_il2cpp_TypeInfo_var;
  32. IL2CPP_EXTERN_C RuntimeClass* Type_t_il2cpp_TypeInfo_var;
  33. IL2CPP_EXTERN_C const RuntimeMethod* Enumerator_Dispose_m9C2B9C77EAE3242F8866EE0253B1B0D3E586ECAD_RuntimeMethod_var;
  34. IL2CPP_EXTERN_C const RuntimeMethod* Enumerator_MoveNext_mF957FE1F33D5E0DC55F8336C509F237F76A391A7_RuntimeMethod_var;
  35. IL2CPP_EXTERN_C const RuntimeMethod* Enumerator_get_Current_m5A0E0E0028EF6BDE8F18F614D0622A60F2A73115_RuntimeMethod_var;
  36. IL2CPP_EXTERN_C const RuntimeMethod* List_1_Add_m6225DC8FE1ED990ECCCE059CF9B5301E766D0ED9_RuntimeMethod_var;
  37. IL2CPP_EXTERN_C const RuntimeMethod* List_1_GetEnumerator_m65633A14D7199AA50B6688FD52982133703C2F9A_RuntimeMethod_var;
  38. IL2CPP_EXTERN_C const RuntimeMethod* List_1__ctor_mA786A401DCD46DAD7257EF6A3E5E9EF105C4C1ED_RuntimeMethod_var;
  39. struct ObjectU5BU5D_t8061030B0A12A55D5AD8652A20C922FE99450918;
  40. IL2CPP_EXTERN_C_BEGIN
  41. IL2CPP_EXTERN_C_END
  42. #ifdef __clang__
  43. #pragma clang diagnostic push
  44. #pragma clang diagnostic ignored "-Winvalid-offsetof"
  45. #pragma clang diagnostic ignored "-Wunused-variable"
  46. #endif
  47. // <Module>
  48. struct U3CModuleU3E_tE80C789F5A28FD58248F6A211538517BAE6D5E95
  49. {
  50. };
  51. // System.Collections.Generic.List`1<System.Object>
  52. struct List_1_tA239CB83DE5615F348BB0507E45F490F4F7C9A8D : public RuntimeObject
  53. {
  54. // T[] System.Collections.Generic.List`1::_items
  55. ObjectU5BU5D_t8061030B0A12A55D5AD8652A20C922FE99450918* ____items_1;
  56. // System.Int32 System.Collections.Generic.List`1::_size
  57. int32_t ____size_2;
  58. // System.Int32 System.Collections.Generic.List`1::_version
  59. int32_t ____version_3;
  60. // System.Object System.Collections.Generic.List`1::_syncRoot
  61. RuntimeObject* ____syncRoot_4;
  62. };
  63. // System.Collections.Generic.List`1<UnityEngine.SubsystemDescriptor>
  64. struct List_1_t15AD773D34D3739AFB67421B6DFFACEA7638F64E : public RuntimeObject
  65. {
  66. // T[] System.Collections.Generic.List`1::_items
  67. SubsystemDescriptorU5BU5D_t37EEAB4387C3C54A4B704533E5318404D715BE6D* ____items_1;
  68. // System.Int32 System.Collections.Generic.List`1::_size
  69. int32_t ____size_2;
  70. // System.Int32 System.Collections.Generic.List`1::_version
  71. int32_t ____version_3;
  72. // System.Object System.Collections.Generic.List`1::_syncRoot
  73. RuntimeObject* ____syncRoot_4;
  74. };
  75. // System.Reflection.MemberInfo
  76. struct MemberInfo_t : public RuntimeObject
  77. {
  78. };
  79. // UnityEngine.SubsystemDescriptor
  80. struct SubsystemDescriptor_tF417D2751C69A8B0DD86162EBCE55F84D3493A71 : public RuntimeObject
  81. {
  82. // System.String UnityEngine.SubsystemDescriptor::<id>k__BackingField
  83. String_t* ___U3CidU3Ek__BackingField_0;
  84. // System.Type UnityEngine.SubsystemDescriptor::<subsystemImplementationType>k__BackingField
  85. Type_t* ___U3CsubsystemImplementationTypeU3Ek__BackingField_1;
  86. };
  87. // UnityEngine.SubsystemRegistration
  88. struct SubsystemRegistration_tBF4BF08A2270D9934F883D9B799E8A033BC28F21 : public RuntimeObject
  89. {
  90. };
  91. // System.ValueType
  92. struct ValueType_t6D9B272BD21782F0A9A14F2E41F85A50E97A986F : public RuntimeObject
  93. {
  94. };
  95. // Native definition for P/Invoke marshalling of System.ValueType
  96. struct ValueType_t6D9B272BD21782F0A9A14F2E41F85A50E97A986F_marshaled_pinvoke
  97. {
  98. };
  99. // Native definition for COM marshalling of System.ValueType
  100. struct ValueType_t6D9B272BD21782F0A9A14F2E41F85A50E97A986F_marshaled_com
  101. {
  102. };
  103. // System.Collections.Generic.List`1/Enumerator<System.Object>
  104. struct Enumerator_t9473BAB568A27E2339D48C1F91319E0F6D244D7A
  105. {
  106. // System.Collections.Generic.List`1<T> System.Collections.Generic.List`1/Enumerator::_list
  107. List_1_tA239CB83DE5615F348BB0507E45F490F4F7C9A8D* ____list_0;
  108. // System.Int32 System.Collections.Generic.List`1/Enumerator::_index
  109. int32_t ____index_1;
  110. // System.Int32 System.Collections.Generic.List`1/Enumerator::_version
  111. int32_t ____version_2;
  112. // T System.Collections.Generic.List`1/Enumerator::_current
  113. RuntimeObject* ____current_3;
  114. };
  115. // System.Collections.Generic.List`1/Enumerator<UnityEngine.SubsystemDescriptor>
  116. struct Enumerator_t79F9FDCD08D39A2A163DB9C8FEBE17D925A14822
  117. {
  118. // System.Collections.Generic.List`1<T> System.Collections.Generic.List`1/Enumerator::_list
  119. List_1_t15AD773D34D3739AFB67421B6DFFACEA7638F64E* ____list_0;
  120. // System.Int32 System.Collections.Generic.List`1/Enumerator::_index
  121. int32_t ____index_1;
  122. // System.Int32 System.Collections.Generic.List`1/Enumerator::_version
  123. int32_t ____version_2;
  124. // T System.Collections.Generic.List`1/Enumerator::_current
  125. SubsystemDescriptor_tF417D2751C69A8B0DD86162EBCE55F84D3493A71* ____current_3;
  126. };
  127. // System.Boolean
  128. struct Boolean_t09A6377A54BE2F9E6985A8149F19234FD7DDFE22
  129. {
  130. // System.Boolean System.Boolean::m_value
  131. bool ___m_value_0;
  132. };
  133. // System.Int32
  134. struct Int32_t680FF22E76F6EFAD4375103CBBFFA0421349384C
  135. {
  136. // System.Int32 System.Int32::m_value
  137. int32_t ___m_value_0;
  138. };
  139. // System.IntPtr
  140. struct IntPtr_t
  141. {
  142. // System.Void* System.IntPtr::m_value
  143. void* ___m_value_0;
  144. };
  145. // System.Void
  146. struct Void_t4861ACF8F4594C3437BB48B6E56783494B843915
  147. {
  148. union
  149. {
  150. struct
  151. {
  152. };
  153. uint8_t Void_t4861ACF8F4594C3437BB48B6E56783494B843915__padding[1];
  154. };
  155. };
  156. // System.RuntimeTypeHandle
  157. struct RuntimeTypeHandle_t332A452B8B6179E4469B69525D0FE82A88030F7B
  158. {
  159. // System.IntPtr System.RuntimeTypeHandle::value
  160. intptr_t ___value_0;
  161. };
  162. // System.Type
  163. struct Type_t : public MemberInfo_t
  164. {
  165. // System.RuntimeTypeHandle System.Type::_impl
  166. RuntimeTypeHandle_t332A452B8B6179E4469B69525D0FE82A88030F7B ____impl_8;
  167. };
  168. // <Module>
  169. // <Module>
  170. // System.Collections.Generic.List`1<System.Object>
  171. struct List_1_tA239CB83DE5615F348BB0507E45F490F4F7C9A8D_StaticFields
  172. {
  173. // T[] System.Collections.Generic.List`1::s_emptyArray
  174. ObjectU5BU5D_t8061030B0A12A55D5AD8652A20C922FE99450918* ___s_emptyArray_5;
  175. };
  176. // System.Collections.Generic.List`1<System.Object>
  177. // System.Collections.Generic.List`1<UnityEngine.SubsystemDescriptor>
  178. struct List_1_t15AD773D34D3739AFB67421B6DFFACEA7638F64E_StaticFields
  179. {
  180. // T[] System.Collections.Generic.List`1::s_emptyArray
  181. SubsystemDescriptorU5BU5D_t37EEAB4387C3C54A4B704533E5318404D715BE6D* ___s_emptyArray_5;
  182. };
  183. // System.Collections.Generic.List`1<UnityEngine.SubsystemDescriptor>
  184. // UnityEngine.SubsystemDescriptor
  185. // UnityEngine.SubsystemDescriptor
  186. // UnityEngine.SubsystemRegistration
  187. struct SubsystemRegistration_tBF4BF08A2270D9934F883D9B799E8A033BC28F21_StaticFields
  188. {
  189. // System.Collections.Generic.List`1<UnityEngine.SubsystemDescriptor> UnityEngine.SubsystemRegistration::k_SubsystemDescriptors
  190. List_1_t15AD773D34D3739AFB67421B6DFFACEA7638F64E* ___k_SubsystemDescriptors_0;
  191. };
  192. // UnityEngine.SubsystemRegistration
  193. // System.Collections.Generic.List`1/Enumerator<System.Object>
  194. // System.Collections.Generic.List`1/Enumerator<System.Object>
  195. // System.Collections.Generic.List`1/Enumerator<UnityEngine.SubsystemDescriptor>
  196. // System.Collections.Generic.List`1/Enumerator<UnityEngine.SubsystemDescriptor>
  197. // System.Boolean
  198. struct Boolean_t09A6377A54BE2F9E6985A8149F19234FD7DDFE22_StaticFields
  199. {
  200. // System.String System.Boolean::TrueString
  201. String_t* ___TrueString_5;
  202. // System.String System.Boolean::FalseString
  203. String_t* ___FalseString_6;
  204. };
  205. // System.Boolean
  206. // System.Int32
  207. // System.Int32
  208. // System.Void
  209. // System.Void
  210. // System.Type
  211. struct Type_t_StaticFields
  212. {
  213. // System.Reflection.Binder modreq(System.Runtime.CompilerServices.IsVolatile) System.Type::s_defaultBinder
  214. Binder_t91BFCE95A7057FADF4D8A1A342AFE52872246235* ___s_defaultBinder_0;
  215. // System.Char System.Type::Delimiter
  216. Il2CppChar ___Delimiter_1;
  217. // System.Type[] System.Type::EmptyTypes
  218. TypeU5BU5D_t97234E1129B564EB38B8D85CAC2AD8B5B9522FFB* ___EmptyTypes_2;
  219. // System.Object System.Type::Missing
  220. RuntimeObject* ___Missing_3;
  221. // System.Reflection.MemberFilter System.Type::FilterAttribute
  222. MemberFilter_tF644F1AE82F611B677CE1964D5A3277DDA21D553* ___FilterAttribute_4;
  223. // System.Reflection.MemberFilter System.Type::FilterName
  224. MemberFilter_tF644F1AE82F611B677CE1964D5A3277DDA21D553* ___FilterName_5;
  225. // System.Reflection.MemberFilter System.Type::FilterNameIgnoreCase
  226. MemberFilter_tF644F1AE82F611B677CE1964D5A3277DDA21D553* ___FilterNameIgnoreCase_6;
  227. };
  228. // System.Type
  229. #ifdef __clang__
  230. #pragma clang diagnostic pop
  231. #endif
  232. // System.Object[]
  233. struct ObjectU5BU5D_t8061030B0A12A55D5AD8652A20C922FE99450918 : public RuntimeArray
  234. {
  235. ALIGN_FIELD (8) RuntimeObject* m_Items[1];
  236. inline RuntimeObject* GetAt(il2cpp_array_size_t index) const
  237. {
  238. IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
  239. return m_Items[index];
  240. }
  241. inline RuntimeObject** GetAddressAt(il2cpp_array_size_t index)
  242. {
  243. IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
  244. return m_Items + index;
  245. }
  246. inline void SetAt(il2cpp_array_size_t index, RuntimeObject* value)
  247. {
  248. IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
  249. m_Items[index] = value;
  250. Il2CppCodeGenWriteBarrier((void**)m_Items + index, (void*)value);
  251. }
  252. inline RuntimeObject* GetAtUnchecked(il2cpp_array_size_t index) const
  253. {
  254. return m_Items[index];
  255. }
  256. inline RuntimeObject** GetAddressAtUnchecked(il2cpp_array_size_t index)
  257. {
  258. return m_Items + index;
  259. }
  260. inline void SetAtUnchecked(il2cpp_array_size_t index, RuntimeObject* value)
  261. {
  262. m_Items[index] = value;
  263. Il2CppCodeGenWriteBarrier((void**)m_Items + index, (void*)value);
  264. }
  265. };
  266. // System.Collections.Generic.List`1/Enumerator<T> System.Collections.Generic.List`1<System.Object>::GetEnumerator()
  267. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Enumerator_t9473BAB568A27E2339D48C1F91319E0F6D244D7A List_1_GetEnumerator_mD8294A7FA2BEB1929487127D476F8EC1CDC23BFC_gshared (List_1_tA239CB83DE5615F348BB0507E45F490F4F7C9A8D* __this, const RuntimeMethod* method) ;
  268. // System.Void System.Collections.Generic.List`1/Enumerator<System.Object>::Dispose()
  269. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Enumerator_Dispose_mD9DC3E3C3697830A4823047AB29A77DBBB5ED419_gshared (Enumerator_t9473BAB568A27E2339D48C1F91319E0F6D244D7A* __this, const RuntimeMethod* method) ;
  270. // T System.Collections.Generic.List`1/Enumerator<System.Object>::get_Current()
  271. IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR RuntimeObject* Enumerator_get_Current_m6330F15D18EE4F547C05DF9BF83C5EB710376027_gshared_inline (Enumerator_t9473BAB568A27E2339D48C1F91319E0F6D244D7A* __this, const RuntimeMethod* method) ;
  272. // System.Boolean System.Collections.Generic.List`1/Enumerator<System.Object>::MoveNext()
  273. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Enumerator_MoveNext_mE921CC8F29FBBDE7CC3209A0ED0D921D58D00BCB_gshared (Enumerator_t9473BAB568A27E2339D48C1F91319E0F6D244D7A* __this, const RuntimeMethod* method) ;
  274. // System.Void System.Collections.Generic.List`1<System.Object>::Add(T)
  275. IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR void List_1_Add_mEBCF994CC3814631017F46A387B1A192ED6C85C7_gshared_inline (List_1_tA239CB83DE5615F348BB0507E45F490F4F7C9A8D* __this, RuntimeObject* ___0_item, const RuntimeMethod* method) ;
  276. // System.Void System.Collections.Generic.List`1<System.Object>::.ctor()
  277. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void List_1__ctor_m7F078BB342729BDF11327FD89D7872265328F690_gshared (List_1_tA239CB83DE5615F348BB0507E45F490F4F7C9A8D* __this, const RuntimeMethod* method) ;
  278. // System.Collections.Generic.List`1/Enumerator<T> System.Collections.Generic.List`1<UnityEngine.SubsystemDescriptor>::GetEnumerator()
  279. inline Enumerator_t79F9FDCD08D39A2A163DB9C8FEBE17D925A14822 List_1_GetEnumerator_m65633A14D7199AA50B6688FD52982133703C2F9A (List_1_t15AD773D34D3739AFB67421B6DFFACEA7638F64E* __this, const RuntimeMethod* method)
  280. {
  281. return (( Enumerator_t79F9FDCD08D39A2A163DB9C8FEBE17D925A14822 (*) (List_1_t15AD773D34D3739AFB67421B6DFFACEA7638F64E*, const RuntimeMethod*))List_1_GetEnumerator_mD8294A7FA2BEB1929487127D476F8EC1CDC23BFC_gshared)(__this, method);
  282. }
  283. // System.Void System.Collections.Generic.List`1/Enumerator<UnityEngine.SubsystemDescriptor>::Dispose()
  284. inline void Enumerator_Dispose_m9C2B9C77EAE3242F8866EE0253B1B0D3E586ECAD (Enumerator_t79F9FDCD08D39A2A163DB9C8FEBE17D925A14822* __this, const RuntimeMethod* method)
  285. {
  286. (( void (*) (Enumerator_t79F9FDCD08D39A2A163DB9C8FEBE17D925A14822*, const RuntimeMethod*))Enumerator_Dispose_mD9DC3E3C3697830A4823047AB29A77DBBB5ED419_gshared)(__this, method);
  287. }
  288. // T System.Collections.Generic.List`1/Enumerator<UnityEngine.SubsystemDescriptor>::get_Current()
  289. inline SubsystemDescriptor_tF417D2751C69A8B0DD86162EBCE55F84D3493A71* Enumerator_get_Current_m5A0E0E0028EF6BDE8F18F614D0622A60F2A73115_inline (Enumerator_t79F9FDCD08D39A2A163DB9C8FEBE17D925A14822* __this, const RuntimeMethod* method)
  290. {
  291. return (( SubsystemDescriptor_tF417D2751C69A8B0DD86162EBCE55F84D3493A71* (*) (Enumerator_t79F9FDCD08D39A2A163DB9C8FEBE17D925A14822*, const RuntimeMethod*))Enumerator_get_Current_m6330F15D18EE4F547C05DF9BF83C5EB710376027_gshared_inline)(__this, method);
  292. }
  293. // System.Type UnityEngine.SubsystemDescriptor::get_subsystemImplementationType()
  294. IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR Type_t* SubsystemDescriptor_get_subsystemImplementationType_m68EB84474574555DDE319A8D5C6C06C5924FFA45_inline (SubsystemDescriptor_tF417D2751C69A8B0DD86162EBCE55F84D3493A71* __this, const RuntimeMethod* method) ;
  295. // System.Boolean System.Type::op_Equality(System.Type,System.Type)
  296. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Type_op_Equality_m99930A0E44E420A685FABA60E60BA1CC5FA0EBDC (Type_t* ___0_left, Type_t* ___1_right, const RuntimeMethod* method) ;
  297. // System.Boolean System.Collections.Generic.List`1/Enumerator<UnityEngine.SubsystemDescriptor>::MoveNext()
  298. inline bool Enumerator_MoveNext_mF957FE1F33D5E0DC55F8336C509F237F76A391A7 (Enumerator_t79F9FDCD08D39A2A163DB9C8FEBE17D925A14822* __this, const RuntimeMethod* method)
  299. {
  300. return (( bool (*) (Enumerator_t79F9FDCD08D39A2A163DB9C8FEBE17D925A14822*, const RuntimeMethod*))Enumerator_MoveNext_mE921CC8F29FBBDE7CC3209A0ED0D921D58D00BCB_gshared)(__this, method);
  301. }
  302. // System.Void UnityEngine.Internal_SubsystemDescriptors::Internal_AddDescriptor(UnityEngine.SubsystemDescriptor)
  303. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Internal_SubsystemDescriptors_Internal_AddDescriptor_m0462E74DADC94897AB6EECD3051878FD6832118E (SubsystemDescriptor_tF417D2751C69A8B0DD86162EBCE55F84D3493A71* ___0_descriptor, const RuntimeMethod* method) ;
  304. // System.Void System.Collections.Generic.List`1<UnityEngine.SubsystemDescriptor>::Add(T)
  305. inline void List_1_Add_m6225DC8FE1ED990ECCCE059CF9B5301E766D0ED9_inline (List_1_t15AD773D34D3739AFB67421B6DFFACEA7638F64E* __this, SubsystemDescriptor_tF417D2751C69A8B0DD86162EBCE55F84D3493A71* ___0_item, const RuntimeMethod* method)
  306. {
  307. (( void (*) (List_1_t15AD773D34D3739AFB67421B6DFFACEA7638F64E*, SubsystemDescriptor_tF417D2751C69A8B0DD86162EBCE55F84D3493A71*, const RuntimeMethod*))List_1_Add_mEBCF994CC3814631017F46A387B1A192ED6C85C7_gshared_inline)(__this, ___0_item, method);
  308. }
  309. // System.Void System.Collections.Generic.List`1<UnityEngine.SubsystemDescriptor>::.ctor()
  310. inline void List_1__ctor_mA786A401DCD46DAD7257EF6A3E5E9EF105C4C1ED (List_1_t15AD773D34D3739AFB67421B6DFFACEA7638F64E* __this, const RuntimeMethod* method)
  311. {
  312. (( void (*) (List_1_t15AD773D34D3739AFB67421B6DFFACEA7638F64E*, const RuntimeMethod*))List_1__ctor_m7F078BB342729BDF11327FD89D7872265328F690_gshared)(__this, method);
  313. }
  314. #ifdef __clang__
  315. #pragma clang diagnostic push
  316. #pragma clang diagnostic ignored "-Winvalid-offsetof"
  317. #pragma clang diagnostic ignored "-Wunused-variable"
  318. #endif
  319. #ifdef __clang__
  320. #pragma clang diagnostic pop
  321. #endif
  322. #ifdef __clang__
  323. #pragma clang diagnostic push
  324. #pragma clang diagnostic ignored "-Winvalid-offsetof"
  325. #pragma clang diagnostic ignored "-Wunused-variable"
  326. #endif
  327. // System.Boolean UnityEngine.SubsystemRegistration::CreateDescriptor(UnityEngine.SubsystemDescriptor)
  328. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool SubsystemRegistration_CreateDescriptor_mAE58037D16DF7872D67970956CB34FDBB193A62E (SubsystemDescriptor_tF417D2751C69A8B0DD86162EBCE55F84D3493A71* ___0_descriptor, const RuntimeMethod* method)
  329. {
  330. static bool s_Il2CppMethodInitialized;
  331. if (!s_Il2CppMethodInitialized)
  332. {
  333. il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Enumerator_Dispose_m9C2B9C77EAE3242F8866EE0253B1B0D3E586ECAD_RuntimeMethod_var);
  334. il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Enumerator_MoveNext_mF957FE1F33D5E0DC55F8336C509F237F76A391A7_RuntimeMethod_var);
  335. il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Enumerator_get_Current_m5A0E0E0028EF6BDE8F18F614D0622A60F2A73115_RuntimeMethod_var);
  336. il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&List_1_Add_m6225DC8FE1ED990ECCCE059CF9B5301E766D0ED9_RuntimeMethod_var);
  337. il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&List_1_GetEnumerator_m65633A14D7199AA50B6688FD52982133703C2F9A_RuntimeMethod_var);
  338. il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&SubsystemRegistration_tBF4BF08A2270D9934F883D9B799E8A033BC28F21_il2cpp_TypeInfo_var);
  339. il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Type_t_il2cpp_TypeInfo_var);
  340. s_Il2CppMethodInitialized = true;
  341. }
  342. Enumerator_t79F9FDCD08D39A2A163DB9C8FEBE17D925A14822 V_0;
  343. memset((&V_0), 0, sizeof(V_0));
  344. SubsystemDescriptor_tF417D2751C69A8B0DD86162EBCE55F84D3493A71* V_1 = NULL;
  345. bool V_2 = false;
  346. {
  347. // foreach (var declaration in k_SubsystemDescriptors)
  348. il2cpp_codegen_runtime_class_init_inline(SubsystemRegistration_tBF4BF08A2270D9934F883D9B799E8A033BC28F21_il2cpp_TypeInfo_var);
  349. List_1_t15AD773D34D3739AFB67421B6DFFACEA7638F64E* L_0 = ((SubsystemRegistration_tBF4BF08A2270D9934F883D9B799E8A033BC28F21_StaticFields*)il2cpp_codegen_static_fields_for(SubsystemRegistration_tBF4BF08A2270D9934F883D9B799E8A033BC28F21_il2cpp_TypeInfo_var))->___k_SubsystemDescriptors_0;
  350. NullCheck(L_0);
  351. Enumerator_t79F9FDCD08D39A2A163DB9C8FEBE17D925A14822 L_1;
  352. L_1 = List_1_GetEnumerator_m65633A14D7199AA50B6688FD52982133703C2F9A(L_0, List_1_GetEnumerator_m65633A14D7199AA50B6688FD52982133703C2F9A_RuntimeMethod_var);
  353. V_0 = L_1;
  354. }
  355. {
  356. auto __finallyBlock = il2cpp::utils::Finally([&]
  357. {
  358. FINALLY_0037:
  359. {// begin finally (depth: 1)
  360. Enumerator_Dispose_m9C2B9C77EAE3242F8866EE0253B1B0D3E586ECAD((&V_0), Enumerator_Dispose_m9C2B9C77EAE3242F8866EE0253B1B0D3E586ECAD_RuntimeMethod_var);
  361. return;
  362. }// end finally (depth: 1)
  363. });
  364. try
  365. {// begin try (depth: 1)
  366. {
  367. goto IL_002c_1;
  368. }
  369. IL_000d_1:
  370. {
  371. // foreach (var declaration in k_SubsystemDescriptors)
  372. SubsystemDescriptor_tF417D2751C69A8B0DD86162EBCE55F84D3493A71* L_2;
  373. L_2 = Enumerator_get_Current_m5A0E0E0028EF6BDE8F18F614D0622A60F2A73115_inline((&V_0), Enumerator_get_Current_m5A0E0E0028EF6BDE8F18F614D0622A60F2A73115_RuntimeMethod_var);
  374. V_1 = L_2;
  375. // if (descriptor.subsystemImplementationType == declaration.subsystemImplementationType)
  376. SubsystemDescriptor_tF417D2751C69A8B0DD86162EBCE55F84D3493A71* L_3 = ___0_descriptor;
  377. NullCheck(L_3);
  378. Type_t* L_4;
  379. L_4 = SubsystemDescriptor_get_subsystemImplementationType_m68EB84474574555DDE319A8D5C6C06C5924FFA45_inline(L_3, NULL);
  380. SubsystemDescriptor_tF417D2751C69A8B0DD86162EBCE55F84D3493A71* L_5 = V_1;
  381. NullCheck(L_5);
  382. Type_t* L_6;
  383. L_6 = SubsystemDescriptor_get_subsystemImplementationType_m68EB84474574555DDE319A8D5C6C06C5924FFA45_inline(L_5, NULL);
  384. il2cpp_codegen_runtime_class_init_inline(Type_t_il2cpp_TypeInfo_var);
  385. bool L_7;
  386. L_7 = Type_op_Equality_m99930A0E44E420A685FABA60E60BA1CC5FA0EBDC(L_4, L_6, NULL);
  387. if (!L_7)
  388. {
  389. goto IL_002c_1;
  390. }
  391. }
  392. {
  393. // return false;
  394. V_2 = (bool)0;
  395. goto IL_0058;
  396. }
  397. IL_002c_1:
  398. {
  399. // foreach (var declaration in k_SubsystemDescriptors)
  400. bool L_8;
  401. L_8 = Enumerator_MoveNext_mF957FE1F33D5E0DC55F8336C509F237F76A391A7((&V_0), Enumerator_MoveNext_mF957FE1F33D5E0DC55F8336C509F237F76A391A7_RuntimeMethod_var);
  402. if (L_8)
  403. {
  404. goto IL_000d_1;
  405. }
  406. }
  407. {
  408. goto IL_0045;
  409. }
  410. }// end try (depth: 1)
  411. catch(Il2CppExceptionWrapper& e)
  412. {
  413. __finallyBlock.StoreException(e.ex);
  414. }
  415. }
  416. IL_0045:
  417. {
  418. // Internal_SubsystemDescriptors.Internal_AddDescriptor(descriptor);
  419. SubsystemDescriptor_tF417D2751C69A8B0DD86162EBCE55F84D3493A71* L_9 = ___0_descriptor;
  420. Internal_SubsystemDescriptors_Internal_AddDescriptor_m0462E74DADC94897AB6EECD3051878FD6832118E(L_9, NULL);
  421. // k_SubsystemDescriptors.Add(descriptor);
  422. il2cpp_codegen_runtime_class_init_inline(SubsystemRegistration_tBF4BF08A2270D9934F883D9B799E8A033BC28F21_il2cpp_TypeInfo_var);
  423. List_1_t15AD773D34D3739AFB67421B6DFFACEA7638F64E* L_10 = ((SubsystemRegistration_tBF4BF08A2270D9934F883D9B799E8A033BC28F21_StaticFields*)il2cpp_codegen_static_fields_for(SubsystemRegistration_tBF4BF08A2270D9934F883D9B799E8A033BC28F21_il2cpp_TypeInfo_var))->___k_SubsystemDescriptors_0;
  424. SubsystemDescriptor_tF417D2751C69A8B0DD86162EBCE55F84D3493A71* L_11 = ___0_descriptor;
  425. NullCheck(L_10);
  426. List_1_Add_m6225DC8FE1ED990ECCCE059CF9B5301E766D0ED9_inline(L_10, L_11, List_1_Add_m6225DC8FE1ED990ECCCE059CF9B5301E766D0ED9_RuntimeMethod_var);
  427. // return true;
  428. return (bool)1;
  429. }
  430. IL_0058:
  431. {
  432. // }
  433. bool L_12 = V_2;
  434. return L_12;
  435. }
  436. }
  437. // System.Void UnityEngine.SubsystemRegistration::.cctor()
  438. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SubsystemRegistration__cctor_mC8370247942DDCD5D5828023D83D21B8BD555260 (const RuntimeMethod* method)
  439. {
  440. static bool s_Il2CppMethodInitialized;
  441. if (!s_Il2CppMethodInitialized)
  442. {
  443. il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&List_1__ctor_mA786A401DCD46DAD7257EF6A3E5E9EF105C4C1ED_RuntimeMethod_var);
  444. il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&List_1_t15AD773D34D3739AFB67421B6DFFACEA7638F64E_il2cpp_TypeInfo_var);
  445. il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&SubsystemRegistration_tBF4BF08A2270D9934F883D9B799E8A033BC28F21_il2cpp_TypeInfo_var);
  446. s_Il2CppMethodInitialized = true;
  447. }
  448. {
  449. // static readonly List<SubsystemDescriptor> k_SubsystemDescriptors = new List<SubsystemDescriptor>();
  450. List_1_t15AD773D34D3739AFB67421B6DFFACEA7638F64E* L_0 = (List_1_t15AD773D34D3739AFB67421B6DFFACEA7638F64E*)il2cpp_codegen_object_new(List_1_t15AD773D34D3739AFB67421B6DFFACEA7638F64E_il2cpp_TypeInfo_var);
  451. NullCheck(L_0);
  452. List_1__ctor_mA786A401DCD46DAD7257EF6A3E5E9EF105C4C1ED(L_0, List_1__ctor_mA786A401DCD46DAD7257EF6A3E5E9EF105C4C1ED_RuntimeMethod_var);
  453. ((SubsystemRegistration_tBF4BF08A2270D9934F883D9B799E8A033BC28F21_StaticFields*)il2cpp_codegen_static_fields_for(SubsystemRegistration_tBF4BF08A2270D9934F883D9B799E8A033BC28F21_il2cpp_TypeInfo_var))->___k_SubsystemDescriptors_0 = L_0;
  454. Il2CppCodeGenWriteBarrier((void**)(&((SubsystemRegistration_tBF4BF08A2270D9934F883D9B799E8A033BC28F21_StaticFields*)il2cpp_codegen_static_fields_for(SubsystemRegistration_tBF4BF08A2270D9934F883D9B799E8A033BC28F21_il2cpp_TypeInfo_var))->___k_SubsystemDescriptors_0), (void*)L_0);
  455. return;
  456. }
  457. }
  458. #ifdef __clang__
  459. #pragma clang diagnostic pop
  460. #endif
  461. IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR Type_t* SubsystemDescriptor_get_subsystemImplementationType_m68EB84474574555DDE319A8D5C6C06C5924FFA45_inline (SubsystemDescriptor_tF417D2751C69A8B0DD86162EBCE55F84D3493A71* __this, const RuntimeMethod* method)
  462. {
  463. {
  464. Type_t* L_0 = __this->___U3CsubsystemImplementationTypeU3Ek__BackingField_1;
  465. return L_0;
  466. }
  467. }
  468. IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR RuntimeObject* Enumerator_get_Current_m6330F15D18EE4F547C05DF9BF83C5EB710376027_gshared_inline (Enumerator_t9473BAB568A27E2339D48C1F91319E0F6D244D7A* __this, const RuntimeMethod* method)
  469. {
  470. {
  471. RuntimeObject* L_0 = (RuntimeObject*)__this->____current_3;
  472. return L_0;
  473. }
  474. }
  475. IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR void List_1_Add_mEBCF994CC3814631017F46A387B1A192ED6C85C7_gshared_inline (List_1_tA239CB83DE5615F348BB0507E45F490F4F7C9A8D* __this, RuntimeObject* ___0_item, const RuntimeMethod* method)
  476. {
  477. ObjectU5BU5D_t8061030B0A12A55D5AD8652A20C922FE99450918* V_0 = NULL;
  478. int32_t V_1 = 0;
  479. {
  480. int32_t L_0 = (int32_t)__this->____version_3;
  481. __this->____version_3 = ((int32_t)il2cpp_codegen_add(L_0, 1));
  482. ObjectU5BU5D_t8061030B0A12A55D5AD8652A20C922FE99450918* L_1 = (ObjectU5BU5D_t8061030B0A12A55D5AD8652A20C922FE99450918*)__this->____items_1;
  483. V_0 = L_1;
  484. int32_t L_2 = (int32_t)__this->____size_2;
  485. V_1 = L_2;
  486. int32_t L_3 = V_1;
  487. ObjectU5BU5D_t8061030B0A12A55D5AD8652A20C922FE99450918* L_4 = V_0;
  488. NullCheck(L_4);
  489. if ((!(((uint32_t)L_3) < ((uint32_t)((int32_t)(((RuntimeArray*)L_4)->max_length))))))
  490. {
  491. goto IL_0034;
  492. }
  493. }
  494. {
  495. int32_t L_5 = V_1;
  496. __this->____size_2 = ((int32_t)il2cpp_codegen_add(L_5, 1));
  497. ObjectU5BU5D_t8061030B0A12A55D5AD8652A20C922FE99450918* L_6 = V_0;
  498. int32_t L_7 = V_1;
  499. RuntimeObject* L_8 = ___0_item;
  500. NullCheck(L_6);
  501. (L_6)->SetAt(static_cast<il2cpp_array_size_t>(L_7), (RuntimeObject*)L_8);
  502. return;
  503. }
  504. IL_0034:
  505. {
  506. RuntimeObject* L_9 = ___0_item;
  507. (( void (*) (List_1_tA239CB83DE5615F348BB0507E45F490F4F7C9A8D*, RuntimeObject*, const RuntimeMethod*))il2cpp_codegen_get_method_pointer(il2cpp_rgctx_method(method->klass->rgctx_data, 11)))(__this, L_9, il2cpp_rgctx_method(method->klass->rgctx_data, 11));
  508. return;
  509. }
  510. }