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.

UnityEngine.JSONSerializeModule.cpp 20KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525
  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. template <typename R>
  9. struct VirtualFuncInvoker0
  10. {
  11. typedef R (*Func)(void*, const RuntimeMethod*);
  12. static inline R Invoke (Il2CppMethodSlot slot, RuntimeObject* obj)
  13. {
  14. const VirtualInvokeData& invokeData = il2cpp_codegen_get_virtual_invoke_data(slot, obj);
  15. return ((Func)invokeData.methodPtr)(obj, invokeData.method);
  16. }
  17. };
  18. template <typename R, typename T1>
  19. struct VirtualFuncInvoker1
  20. {
  21. typedef R (*Func)(void*, T1, const RuntimeMethod*);
  22. static inline R Invoke (Il2CppMethodSlot slot, RuntimeObject* obj, T1 p1)
  23. {
  24. const VirtualInvokeData& invokeData = il2cpp_codegen_get_virtual_invoke_data(slot, obj);
  25. return ((Func)invokeData.methodPtr)(obj, p1, invokeData.method);
  26. }
  27. };
  28. struct IntPtrU5BU5D_tFD177F8C806A6921AD7150264CCC62FA00CAD832;
  29. struct StackTraceU5BU5D_t32FBCB20930EAF5BAE3F450FF75228E5450DA0DF;
  30. struct TypeU5BU5D_t97234E1129B564EB38B8D85CAC2AD8B5B9522FFB;
  31. struct ArgumentException_tAD90411542A20A9C72D5CDA3A84181D8B947A263;
  32. struct ArgumentNullException_t327031E412FAB2351B0022DD5DAD47E67E597129;
  33. struct Binder_t91BFCE95A7057FADF4D8A1A342AFE52872246235;
  34. struct CancellationTokenSource_tAAE1E0033BCFC233801F8CB4CED5C852B350CB7B;
  35. struct IDictionary_t6D03155AF1FA9083817AA5B6AD7DEEACC26AB220;
  36. struct MemberFilter_tF644F1AE82F611B677CE1964D5A3277DDA21D553;
  37. struct SafeSerializationManager_tCBB85B95DFD1634237140CD892E82D06ECB3F5E6;
  38. struct String_t;
  39. struct Type_t;
  40. struct Void_t4861ACF8F4594C3437BB48B6E56783494B843915;
  41. IL2CPP_EXTERN_C RuntimeClass* ArgumentException_tAD90411542A20A9C72D5CDA3A84181D8B947A263_il2cpp_TypeInfo_var;
  42. IL2CPP_EXTERN_C RuntimeClass* ArgumentNullException_t327031E412FAB2351B0022DD5DAD47E67E597129_il2cpp_TypeInfo_var;
  43. IL2CPP_EXTERN_C RuntimeClass* MonoBehaviour_t532A11E69716D348D8AA7F854AFCBFCB8AD17F71_il2cpp_TypeInfo_var;
  44. IL2CPP_EXTERN_C RuntimeClass* Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C_il2cpp_TypeInfo_var;
  45. IL2CPP_EXTERN_C RuntimeClass* ScriptableObject_tB3BFDB921A1B1795B38A5417D3B97A89A140436A_il2cpp_TypeInfo_var;
  46. IL2CPP_EXTERN_C RuntimeClass* Type_t_il2cpp_TypeInfo_var;
  47. IL2CPP_EXTERN_C String_t* _stringLiteral1A021298794A95A088D89F0DFEE478EB088FC94B;
  48. IL2CPP_EXTERN_C String_t* _stringLiteral8B9E56C5D95D7C3EED5199236F70D44573B11813;
  49. IL2CPP_EXTERN_C String_t* _stringLiteral9149DCC4875937380DD00ED5471A7A1258254B95;
  50. IL2CPP_EXTERN_C String_t* _stringLiteralDA39A3EE5E6B4B0D3255BFEF95601890AFD80709;
  51. IL2CPP_EXTERN_C String_t* _stringLiteralF3C6C902DBF80139640F6554F0C3392016A8ADF7;
  52. IL2CPP_EXTERN_C const RuntimeMethod* JsonUtility_FromJson_m6DF4F85BE40F8A96BAFEC189306813ECE30DF44A_RuntimeMethod_var;
  53. IL2CPP_EXTERN_C const RuntimeMethod* JsonUtility_ToJson_m53A1FEE0D388CF3A629E093C04B5E1A6D5463B53_RuntimeMethod_var;
  54. IL2CPP_EXTERN_C const RuntimeType* Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C_0_0_0_var;
  55. struct Exception_t_marshaled_com;
  56. struct Exception_t_marshaled_pinvoke;
  57. IL2CPP_EXTERN_C_BEGIN
  58. IL2CPP_EXTERN_C_END
  59. #ifdef __clang__
  60. #pragma clang diagnostic push
  61. #pragma clang diagnostic ignored "-Winvalid-offsetof"
  62. #pragma clang diagnostic ignored "-Wunused-variable"
  63. #endif
  64. struct U3CModuleU3E_t2F9091E403B25A5364AE8A6B2C249E31D405E3F4
  65. {
  66. };
  67. struct JsonUtility_t731013D97E03B7EDAE6186D6D6826A53B85F7197 : public RuntimeObject
  68. {
  69. };
  70. struct MemberInfo_t : public RuntimeObject
  71. {
  72. };
  73. struct String_t : public RuntimeObject
  74. {
  75. int32_t ____stringLength;
  76. Il2CppChar ____firstChar;
  77. };
  78. struct ValueType_t6D9B272BD21782F0A9A14F2E41F85A50E97A986F : public RuntimeObject
  79. {
  80. };
  81. struct ValueType_t6D9B272BD21782F0A9A14F2E41F85A50E97A986F_marshaled_pinvoke
  82. {
  83. };
  84. struct ValueType_t6D9B272BD21782F0A9A14F2E41F85A50E97A986F_marshaled_com
  85. {
  86. };
  87. struct Boolean_t09A6377A54BE2F9E6985A8149F19234FD7DDFE22
  88. {
  89. bool ___m_value;
  90. };
  91. struct IntPtr_t
  92. {
  93. void* ___m_value;
  94. };
  95. struct Void_t4861ACF8F4594C3437BB48B6E56783494B843915
  96. {
  97. union
  98. {
  99. struct
  100. {
  101. };
  102. uint8_t Void_t4861ACF8F4594C3437BB48B6E56783494B843915__padding[1];
  103. };
  104. };
  105. struct Exception_t : public RuntimeObject
  106. {
  107. String_t* ____className;
  108. String_t* ____message;
  109. RuntimeObject* ____data;
  110. Exception_t* ____innerException;
  111. String_t* ____helpURL;
  112. RuntimeObject* ____stackTrace;
  113. String_t* ____stackTraceString;
  114. String_t* ____remoteStackTraceString;
  115. int32_t ____remoteStackIndex;
  116. RuntimeObject* ____dynamicMethods;
  117. int32_t ____HResult;
  118. String_t* ____source;
  119. SafeSerializationManager_tCBB85B95DFD1634237140CD892E82D06ECB3F5E6* ____safeSerializationManager;
  120. StackTraceU5BU5D_t32FBCB20930EAF5BAE3F450FF75228E5450DA0DF* ___captured_traces;
  121. IntPtrU5BU5D_tFD177F8C806A6921AD7150264CCC62FA00CAD832* ___native_trace_ips;
  122. int32_t ___caught_in_unmanaged;
  123. };
  124. struct Exception_t_marshaled_pinvoke
  125. {
  126. char* ____className;
  127. char* ____message;
  128. RuntimeObject* ____data;
  129. Exception_t_marshaled_pinvoke* ____innerException;
  130. char* ____helpURL;
  131. Il2CppIUnknown* ____stackTrace;
  132. char* ____stackTraceString;
  133. char* ____remoteStackTraceString;
  134. int32_t ____remoteStackIndex;
  135. Il2CppIUnknown* ____dynamicMethods;
  136. int32_t ____HResult;
  137. char* ____source;
  138. SafeSerializationManager_tCBB85B95DFD1634237140CD892E82D06ECB3F5E6* ____safeSerializationManager;
  139. StackTraceU5BU5D_t32FBCB20930EAF5BAE3F450FF75228E5450DA0DF* ___captured_traces;
  140. Il2CppSafeArray* ___native_trace_ips;
  141. int32_t ___caught_in_unmanaged;
  142. };
  143. struct Exception_t_marshaled_com
  144. {
  145. Il2CppChar* ____className;
  146. Il2CppChar* ____message;
  147. RuntimeObject* ____data;
  148. Exception_t_marshaled_com* ____innerException;
  149. Il2CppChar* ____helpURL;
  150. Il2CppIUnknown* ____stackTrace;
  151. Il2CppChar* ____stackTraceString;
  152. Il2CppChar* ____remoteStackTraceString;
  153. int32_t ____remoteStackIndex;
  154. Il2CppIUnknown* ____dynamicMethods;
  155. int32_t ____HResult;
  156. Il2CppChar* ____source;
  157. SafeSerializationManager_tCBB85B95DFD1634237140CD892E82D06ECB3F5E6* ____safeSerializationManager;
  158. StackTraceU5BU5D_t32FBCB20930EAF5BAE3F450FF75228E5450DA0DF* ___captured_traces;
  159. Il2CppSafeArray* ___native_trace_ips;
  160. int32_t ___caught_in_unmanaged;
  161. };
  162. struct Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C : public RuntimeObject
  163. {
  164. intptr_t ___m_CachedPtr;
  165. };
  166. struct Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C_marshaled_pinvoke
  167. {
  168. intptr_t ___m_CachedPtr;
  169. };
  170. struct Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C_marshaled_com
  171. {
  172. intptr_t ___m_CachedPtr;
  173. };
  174. struct RuntimeTypeHandle_t332A452B8B6179E4469B69525D0FE82A88030F7B
  175. {
  176. intptr_t ___value;
  177. };
  178. struct Component_t39FBE53E5EFCF4409111FB22C15FF73717632EC3 : public Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C
  179. {
  180. };
  181. struct ScriptableObject_tB3BFDB921A1B1795B38A5417D3B97A89A140436A : public Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C
  182. {
  183. };
  184. struct ScriptableObject_tB3BFDB921A1B1795B38A5417D3B97A89A140436A_marshaled_pinvoke : public Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C_marshaled_pinvoke
  185. {
  186. };
  187. struct ScriptableObject_tB3BFDB921A1B1795B38A5417D3B97A89A140436A_marshaled_com : public Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C_marshaled_com
  188. {
  189. };
  190. struct SystemException_tCC48D868298F4C0705279823E34B00F4FBDB7295 : public Exception_t
  191. {
  192. };
  193. struct Type_t : public MemberInfo_t
  194. {
  195. RuntimeTypeHandle_t332A452B8B6179E4469B69525D0FE82A88030F7B ____impl;
  196. };
  197. struct ArgumentException_tAD90411542A20A9C72D5CDA3A84181D8B947A263 : public SystemException_tCC48D868298F4C0705279823E34B00F4FBDB7295
  198. {
  199. String_t* ____paramName;
  200. };
  201. struct Behaviour_t01970CFBBA658497AE30F311C447DB0440BAB7FA : public Component_t39FBE53E5EFCF4409111FB22C15FF73717632EC3
  202. {
  203. };
  204. struct ArgumentNullException_t327031E412FAB2351B0022DD5DAD47E67E597129 : public ArgumentException_tAD90411542A20A9C72D5CDA3A84181D8B947A263
  205. {
  206. };
  207. struct MonoBehaviour_t532A11E69716D348D8AA7F854AFCBFCB8AD17F71 : public Behaviour_t01970CFBBA658497AE30F311C447DB0440BAB7FA
  208. {
  209. CancellationTokenSource_tAAE1E0033BCFC233801F8CB4CED5C852B350CB7B* ___m_CancellationTokenSource;
  210. };
  211. struct String_t_StaticFields
  212. {
  213. String_t* ___Empty;
  214. };
  215. struct Boolean_t09A6377A54BE2F9E6985A8149F19234FD7DDFE22_StaticFields
  216. {
  217. String_t* ___TrueString;
  218. String_t* ___FalseString;
  219. };
  220. struct Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C_StaticFields
  221. {
  222. int32_t ___OffsetOfInstanceIDInCPlusPlusObject;
  223. };
  224. struct Type_t_StaticFields
  225. {
  226. Binder_t91BFCE95A7057FADF4D8A1A342AFE52872246235* ___s_defaultBinder;
  227. Il2CppChar ___Delimiter;
  228. TypeU5BU5D_t97234E1129B564EB38B8D85CAC2AD8B5B9522FFB* ___EmptyTypes;
  229. RuntimeObject* ___Missing;
  230. MemberFilter_tF644F1AE82F611B677CE1964D5A3277DDA21D553* ___FilterAttribute;
  231. MemberFilter_tF644F1AE82F611B677CE1964D5A3277DDA21D553* ___FilterName;
  232. MemberFilter_tF644F1AE82F611B677CE1964D5A3277DDA21D553* ___FilterNameIgnoreCase;
  233. };
  234. #ifdef __clang__
  235. #pragma clang diagnostic pop
  236. #endif
  237. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR String_t* JsonUtility_ToJson_m53A1FEE0D388CF3A629E093C04B5E1A6D5463B53 (RuntimeObject* ___0_obj, bool ___1_prettyPrint, const RuntimeMethod* method) ;
  238. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArgumentException__ctor_m026938A67AF9D36BB7ED27F80425D7194B514465 (ArgumentException_tAD90411542A20A9C72D5CDA3A84181D8B947A263* __this, String_t* ___0_message, const RuntimeMethod* method) ;
  239. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR String_t* JsonUtility_ToJsonInternal_mB893BE1511779B2E36B24BC77D2FB52BF5894CDD (RuntimeObject* ___0_obj, bool ___1_prettyPrint, const RuntimeMethod* method) ;
  240. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool String_IsNullOrEmpty_mEA9E3FB005AC28FE02E69FCF95A7B8456192B478 (String_t* ___0_value, const RuntimeMethod* method) ;
  241. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Type_op_Equality_m99930A0E44E420A685FABA60E60BA1CC5FA0EBDC (Type_t* ___0_left, Type_t* ___1_right, const RuntimeMethod* method) ;
  242. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArgumentNullException__ctor_m444AE141157E333844FC1A9500224C2F9FD24F4B (ArgumentNullException_t327031E412FAB2351B0022DD5DAD47E67E597129* __this, String_t* ___0_paramName, const RuntimeMethod* method) ;
  243. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Type_get_IsAbstract_m16FA83463867635ED9DECAE1C5F6BE96B4579CE5 (Type_t* __this, const RuntimeMethod* method) ;
  244. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Type_t* Type_GetTypeFromHandle_m6062B81682F79A4D6DF2640692EE6D9987858C57 (RuntimeTypeHandle_t332A452B8B6179E4469B69525D0FE82A88030F7B ___0_handle, const RuntimeMethod* method) ;
  245. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR String_t* String_Concat_m8855A6DE10F84DA7F4EC113CADDB59873A25573B (String_t* ___0_str0, String_t* ___1_str1, String_t* ___2_str2, const RuntimeMethod* method) ;
  246. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR RuntimeObject* JsonUtility_FromJsonInternal_m6C8155071DFF33D870873F945D1E4C965D1FE6C0 (String_t* ___0_json, RuntimeObject* ___1_objectToOverwrite, Type_t* ___2_type, const RuntimeMethod* method) ;
  247. #ifdef __clang__
  248. #pragma clang diagnostic push
  249. #pragma clang diagnostic ignored "-Winvalid-offsetof"
  250. #pragma clang diagnostic ignored "-Wunused-variable"
  251. #endif
  252. #ifdef __clang__
  253. #pragma clang diagnostic pop
  254. #endif
  255. #ifdef __clang__
  256. #pragma clang diagnostic push
  257. #pragma clang diagnostic ignored "-Winvalid-offsetof"
  258. #pragma clang diagnostic ignored "-Wunused-variable"
  259. #endif
  260. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR String_t* JsonUtility_ToJsonInternal_mB893BE1511779B2E36B24BC77D2FB52BF5894CDD (RuntimeObject* ___0_obj, bool ___1_prettyPrint, const RuntimeMethod* method)
  261. {
  262. typedef String_t* (*JsonUtility_ToJsonInternal_mB893BE1511779B2E36B24BC77D2FB52BF5894CDD_ftn) (RuntimeObject*, bool);
  263. static JsonUtility_ToJsonInternal_mB893BE1511779B2E36B24BC77D2FB52BF5894CDD_ftn _il2cpp_icall_func;
  264. if (!_il2cpp_icall_func)
  265. _il2cpp_icall_func = (JsonUtility_ToJsonInternal_mB893BE1511779B2E36B24BC77D2FB52BF5894CDD_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.JsonUtility::ToJsonInternal(System.Object,System.Boolean)");
  266. String_t* icallRetVal = _il2cpp_icall_func(___0_obj, ___1_prettyPrint);
  267. return icallRetVal;
  268. }
  269. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR RuntimeObject* JsonUtility_FromJsonInternal_m6C8155071DFF33D870873F945D1E4C965D1FE6C0 (String_t* ___0_json, RuntimeObject* ___1_objectToOverwrite, Type_t* ___2_type, const RuntimeMethod* method)
  270. {
  271. typedef RuntimeObject* (*JsonUtility_FromJsonInternal_m6C8155071DFF33D870873F945D1E4C965D1FE6C0_ftn) (String_t*, RuntimeObject*, Type_t*);
  272. static JsonUtility_FromJsonInternal_m6C8155071DFF33D870873F945D1E4C965D1FE6C0_ftn _il2cpp_icall_func;
  273. if (!_il2cpp_icall_func)
  274. _il2cpp_icall_func = (JsonUtility_FromJsonInternal_m6C8155071DFF33D870873F945D1E4C965D1FE6C0_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.JsonUtility::FromJsonInternal(System.String,System.Object,System.Type)");
  275. RuntimeObject* icallRetVal = _il2cpp_icall_func(___0_json, ___1_objectToOverwrite, ___2_type);
  276. return icallRetVal;
  277. }
  278. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR String_t* JsonUtility_ToJson_m28CC6843B9D3723D88AD13EA3829B71FDE7826BA (RuntimeObject* ___0_obj, const RuntimeMethod* method)
  279. {
  280. String_t* V_0 = NULL;
  281. {
  282. RuntimeObject* L_0 = ___0_obj;
  283. String_t* L_1;
  284. L_1 = JsonUtility_ToJson_m53A1FEE0D388CF3A629E093C04B5E1A6D5463B53(L_0, (bool)0, NULL);
  285. V_0 = L_1;
  286. goto IL_000b;
  287. }
  288. IL_000b:
  289. {
  290. String_t* L_2 = V_0;
  291. return L_2;
  292. }
  293. }
  294. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR String_t* JsonUtility_ToJson_m53A1FEE0D388CF3A629E093C04B5E1A6D5463B53 (RuntimeObject* ___0_obj, bool ___1_prettyPrint, const RuntimeMethod* method)
  295. {
  296. static bool s_Il2CppMethodInitialized;
  297. if (!s_Il2CppMethodInitialized)
  298. {
  299. il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&MonoBehaviour_t532A11E69716D348D8AA7F854AFCBFCB8AD17F71_il2cpp_TypeInfo_var);
  300. il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C_il2cpp_TypeInfo_var);
  301. il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&ScriptableObject_tB3BFDB921A1B1795B38A5417D3B97A89A140436A_il2cpp_TypeInfo_var);
  302. il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&_stringLiteralDA39A3EE5E6B4B0D3255BFEF95601890AFD80709);
  303. s_Il2CppMethodInitialized = true;
  304. }
  305. bool V_0 = false;
  306. String_t* V_1 = NULL;
  307. bool V_2 = false;
  308. int32_t G_B6_0 = 0;
  309. int32_t G_B8_0 = 0;
  310. {
  311. RuntimeObject* L_0 = ___0_obj;
  312. V_0 = (bool)((((RuntimeObject*)(RuntimeObject*)L_0) == ((RuntimeObject*)(RuntimeObject*)NULL))? 1 : 0);
  313. bool L_1 = V_0;
  314. if (!L_1)
  315. {
  316. goto IL_0011;
  317. }
  318. }
  319. {
  320. V_1 = _stringLiteralDA39A3EE5E6B4B0D3255BFEF95601890AFD80709;
  321. goto IL_004c;
  322. }
  323. IL_0011:
  324. {
  325. RuntimeObject* L_2 = ___0_obj;
  326. if (!((Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C*)IsInstClass((RuntimeObject*)L_2, Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C_il2cpp_TypeInfo_var)))
  327. {
  328. goto IL_0032;
  329. }
  330. }
  331. {
  332. RuntimeObject* L_3 = ___0_obj;
  333. if (((MonoBehaviour_t532A11E69716D348D8AA7F854AFCBFCB8AD17F71*)IsInstClass((RuntimeObject*)L_3, MonoBehaviour_t532A11E69716D348D8AA7F854AFCBFCB8AD17F71_il2cpp_TypeInfo_var)))
  334. {
  335. goto IL_002f;
  336. }
  337. }
  338. {
  339. RuntimeObject* L_4 = ___0_obj;
  340. G_B6_0 = ((((int32_t)((!(((RuntimeObject*)(ScriptableObject_tB3BFDB921A1B1795B38A5417D3B97A89A140436A*)((ScriptableObject_tB3BFDB921A1B1795B38A5417D3B97A89A140436A*)IsInstClass((RuntimeObject*)L_4, ScriptableObject_tB3BFDB921A1B1795B38A5417D3B97A89A140436A_il2cpp_TypeInfo_var))) <= ((RuntimeObject*)(RuntimeObject*)NULL)))? 1 : 0)) == ((int32_t)0))? 1 : 0);
  341. goto IL_0030;
  342. }
  343. IL_002f:
  344. {
  345. G_B6_0 = 0;
  346. }
  347. IL_0030:
  348. {
  349. G_B8_0 = G_B6_0;
  350. goto IL_0033;
  351. }
  352. IL_0032:
  353. {
  354. G_B8_0 = 0;
  355. }
  356. IL_0033:
  357. {
  358. V_2 = (bool)G_B8_0;
  359. bool L_5 = V_2;
  360. if (!L_5)
  361. {
  362. goto IL_0042;
  363. }
  364. }
  365. {
  366. ArgumentException_tAD90411542A20A9C72D5CDA3A84181D8B947A263* L_6 = (ArgumentException_tAD90411542A20A9C72D5CDA3A84181D8B947A263*)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArgumentException_tAD90411542A20A9C72D5CDA3A84181D8B947A263_il2cpp_TypeInfo_var)));
  367. ArgumentException__ctor_m026938A67AF9D36BB7ED27F80425D7194B514465(L_6, ((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral8B9E56C5D95D7C3EED5199236F70D44573B11813)), NULL);
  368. IL2CPP_RAISE_MANAGED_EXCEPTION(L_6, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&JsonUtility_ToJson_m53A1FEE0D388CF3A629E093C04B5E1A6D5463B53_RuntimeMethod_var)));
  369. }
  370. IL_0042:
  371. {
  372. RuntimeObject* L_7 = ___0_obj;
  373. bool L_8 = ___1_prettyPrint;
  374. String_t* L_9;
  375. L_9 = JsonUtility_ToJsonInternal_mB893BE1511779B2E36B24BC77D2FB52BF5894CDD(L_7, L_8, NULL);
  376. V_1 = L_9;
  377. goto IL_004c;
  378. }
  379. IL_004c:
  380. {
  381. String_t* L_10 = V_1;
  382. return L_10;
  383. }
  384. }
  385. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR RuntimeObject* JsonUtility_FromJson_m6DF4F85BE40F8A96BAFEC189306813ECE30DF44A (String_t* ___0_json, Type_t* ___1_type, const RuntimeMethod* method)
  386. {
  387. static bool s_Il2CppMethodInitialized;
  388. if (!s_Il2CppMethodInitialized)
  389. {
  390. il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C_0_0_0_var);
  391. il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Type_t_il2cpp_TypeInfo_var);
  392. s_Il2CppMethodInitialized = true;
  393. }
  394. bool V_0 = false;
  395. RuntimeObject* V_1 = NULL;
  396. bool V_2 = false;
  397. bool V_3 = false;
  398. int32_t G_B7_0 = 0;
  399. {
  400. String_t* L_0 = ___0_json;
  401. bool L_1;
  402. L_1 = String_IsNullOrEmpty_mEA9E3FB005AC28FE02E69FCF95A7B8456192B478(L_0, NULL);
  403. V_0 = L_1;
  404. bool L_2 = V_0;
  405. if (!L_2)
  406. {
  407. goto IL_000f;
  408. }
  409. }
  410. {
  411. V_1 = NULL;
  412. goto IL_006a;
  413. }
  414. IL_000f:
  415. {
  416. Type_t* L_3 = ___1_type;
  417. il2cpp_codegen_runtime_class_init_inline(Type_t_il2cpp_TypeInfo_var);
  418. bool L_4;
  419. L_4 = Type_op_Equality_m99930A0E44E420A685FABA60E60BA1CC5FA0EBDC(L_3, (Type_t*)NULL, NULL);
  420. V_2 = L_4;
  421. bool L_5 = V_2;
  422. if (!L_5)
  423. {
  424. goto IL_0025;
  425. }
  426. }
  427. {
  428. ArgumentNullException_t327031E412FAB2351B0022DD5DAD47E67E597129* L_6 = (ArgumentNullException_t327031E412FAB2351B0022DD5DAD47E67E597129*)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArgumentNullException_t327031E412FAB2351B0022DD5DAD47E67E597129_il2cpp_TypeInfo_var)));
  429. ArgumentNullException__ctor_m444AE141157E333844FC1A9500224C2F9FD24F4B(L_6, ((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteralF3C6C902DBF80139640F6554F0C3392016A8ADF7)), NULL);
  430. IL2CPP_RAISE_MANAGED_EXCEPTION(L_6, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&JsonUtility_FromJson_m6DF4F85BE40F8A96BAFEC189306813ECE30DF44A_RuntimeMethod_var)));
  431. }
  432. IL_0025:
  433. {
  434. Type_t* L_7 = ___1_type;
  435. NullCheck(L_7);
  436. bool L_8;
  437. L_8 = Type_get_IsAbstract_m16FA83463867635ED9DECAE1C5F6BE96B4579CE5(L_7, NULL);
  438. if (L_8)
  439. {
  440. goto IL_003f;
  441. }
  442. }
  443. {
  444. Type_t* L_9 = ___1_type;
  445. RuntimeTypeHandle_t332A452B8B6179E4469B69525D0FE82A88030F7B L_10 = { reinterpret_cast<intptr_t> (Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C_0_0_0_var) };
  446. il2cpp_codegen_runtime_class_init_inline(Type_t_il2cpp_TypeInfo_var);
  447. Type_t* L_11;
  448. L_11 = Type_GetTypeFromHandle_m6062B81682F79A4D6DF2640692EE6D9987858C57(L_10, NULL);
  449. NullCheck(L_9);
  450. bool L_12;
  451. L_12 = VirtualFuncInvoker1< bool, Type_t* >::Invoke(21, L_9, L_11);
  452. G_B7_0 = ((int32_t)(L_12));
  453. goto IL_0040;
  454. }
  455. IL_003f:
  456. {
  457. G_B7_0 = 1;
  458. }
  459. IL_0040:
  460. {
  461. V_3 = (bool)G_B7_0;
  462. bool L_13 = V_3;
  463. if (!L_13)
  464. {
  465. goto IL_005f;
  466. }
  467. }
  468. {
  469. Type_t* L_14 = ___1_type;
  470. NullCheck(L_14);
  471. String_t* L_15;
  472. L_15 = VirtualFuncInvoker0< String_t* >::Invoke(8, L_14);
  473. String_t* L_16;
  474. L_16 = String_Concat_m8855A6DE10F84DA7F4EC113CADDB59873A25573B(((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral9149DCC4875937380DD00ED5471A7A1258254B95)), L_15, ((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral1A021298794A95A088D89F0DFEE478EB088FC94B)), NULL);
  475. ArgumentException_tAD90411542A20A9C72D5CDA3A84181D8B947A263* L_17 = (ArgumentException_tAD90411542A20A9C72D5CDA3A84181D8B947A263*)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArgumentException_tAD90411542A20A9C72D5CDA3A84181D8B947A263_il2cpp_TypeInfo_var)));
  476. ArgumentException__ctor_m026938A67AF9D36BB7ED27F80425D7194B514465(L_17, L_16, NULL);
  477. IL2CPP_RAISE_MANAGED_EXCEPTION(L_17, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&JsonUtility_FromJson_m6DF4F85BE40F8A96BAFEC189306813ECE30DF44A_RuntimeMethod_var)));
  478. }
  479. IL_005f:
  480. {
  481. String_t* L_18 = ___0_json;
  482. Type_t* L_19 = ___1_type;
  483. RuntimeObject* L_20;
  484. L_20 = JsonUtility_FromJsonInternal_m6C8155071DFF33D870873F945D1E4C965D1FE6C0(L_18, NULL, L_19, NULL);
  485. V_1 = L_20;
  486. goto IL_006a;
  487. }
  488. IL_006a:
  489. {
  490. RuntimeObject* L_21 = V_1;
  491. return L_21;
  492. }
  493. }
  494. #ifdef __clang__
  495. #pragma clang diagnostic pop
  496. #endif