//
// LevelSettingsObject::objectFromDict from 0x10040e464 to 0x10040fefc (6808 bytes)
//
// 3 xrefs:
// > LevelEditorLayer::createObjectsFromSetup @ 0x1003f7b00
// > LevelSettingsObject::objectFromString @ 0x1003f9558
// > StartPosObject::loadSettingsFromString @ 0x10042dbc4
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:04:49 +0000
//
char *__fastcall LevelSettingsObject::objectFromDict(__int64 a1)
{
char *v2; // x19
__int64 v3; // x0
__int64 v4; // x0
char *CString; // x0
__int64 v6; // x0
__int64 v7; // x0
__int64 v8; // x0
__int64 v9; // x0
__int64 v10; // x0
__int64 v11; // x0
__int64 v12; // x0
__int64 v13; // x0
__int64 v14; // x0
__int64 v15; // x0
__int64 v16; // x0
__int64 v17; // x0
__int64 v18; // x0
__int64 v19; // x0
__int64 v20; // x0
__int64 v21; // x0
__int64 v22; // x0
__int64 v23; // x0
__int64 v24; // x0
__int64 v25; // x0
__int64 v26; // x0
__int64 v27; // x0
__int64 v28; // x0
__int64 v29; // x0
__int64 v30; // x0
__int64 v31; // x0
__int64 v32; // x0
__int64 v33; // x0
__int64 v34; // x0
__int64 v35; // x0
__int64 v36; // x0
__int64 v37; // x0
__int64 v38; // x0
__int64 v39; // x0
__int64 v40; // x0
__int64 v41; // x0
__int64 v42; // x0
__int64 v43; // x0
__int64 v44; // x0
__int64 v45; // x0
__int64 v46; // x0
__int64 v47; // x0
__int64 v48; // x0
__int64 v49; // x0
__int64 v50; // x0
__int64 v51; // x0
__int64 v52; // x0
__int64 v53; // x0
__int64 v54; // x0
__int64 v55; // x0
char *v56; // x0
__int64 v57; // x0
__int64 v58; // x0
__int64 v59; // x21
__int64 v60; // x0
char *v61; // x0
std::string::size_type size; // x9
int v63; // w8
std::string::size_type v64; // x23
std::string::size_type v65; // x22
std::string::size_type v66; // x0
std::string::size_type v67; // x24
std::string *v68; // x0
int v69; // w23
void *v70; // x25
__int64 v71; // x23
std::string::size_type v72; // x9
int v73; // w8
std::string::size_type v74; // x26
std::string::size_type v75; // x24
std::string::size_type v76; // x0
std::string::size_type v77; // x25
std::string *v78; // x0
int v79; // w26
void *v80; // x27
std::string::size_type v81; // x0
std::string::size_type v82; // x8
std::string *v83; // x0
__int64 v84; // x9
char v85; // w8
std::string *v86; // x0
std::string::size_type v87; // x9
std::string::size_type v88; // x9
__int64 v89; // x21
__int64 v90; // x0
char *v91; // x0
std::string::size_type v92; // x9
int v93; // w8
std::string::size_type v94; // x23
std::string::size_type v95; // x22
std::string::size_type v96; // x0
std::string::size_type v97; // x24
std::string *v98; // x0
int v99; // w23
void *v100; // x25
_QWORD *v101; // x23
std::string::size_type v102; // x9
char v103; // w8
std::string::size_type v104; // x26
std::string::size_type v105; // x25
std::string::size_type v106; // x0
std::string::size_type v107; // x8
std::string *v108; // x0
int v109; // w26
void *v110; // x27
char v111; // w1
std::string::size_type v112; // x8
std::string::size_type v113; // x9
__int64 *i; // x22
__int128 *v115; // x21
__int128 v116; // q0
char *v117; // x0
__int64 v118; // x23
unsigned __int64 v119; // x24
__int64 v120; // x8
__int64 v121; // x9
__int64 v122; // x0
__int64 v123; // x21
__int64 v124; // x0
char *v125; // x0
std::string::size_type v126; // x8
std::string::size_type v127; // x21
std::string *v128; // x0
int v129; // w22
void *v130; // x23
std::string *v131; // x0
__int64 v132; // x0
__int64 v133; // x21
__int64 v134; // x0
__int64 v135; // x0
__int64 v136; // x21
__int64 v137; // x0
char *v138; // x0
__int64 v139; // x21
unsigned __int64 v140; // x22
const char *v141; // x0
int v142; // w0
__int64 v144; // x0
__int64 v145; // x21
__int64 v146; // x0
char *v147; // x0
void **v148; // x21
__int64 v149; // x0
__int64 v150; // x21
_QWORD *v151; // x21
__int64 v152; // x0
char *v153; // x0
void *v154; // x0
__int64 v155; // x21
double v156; // d0
double v157; // d1
_WORD *v158; // x21
__int64 v159; // x0
char *v160; // x0
double v161; // d0
double v162; // d1
_WORD *v163; // x21
__int64 v164; // x0
char *v165; // x0
double v166; // d0
double v167; // d1
_WORD *v168; // x21
__int64 v169; // x0
char *v170; // x0
double v171; // d0
double v172; // d1
_WORD *v173; // x21
__int64 v174; // x0
char *v175; // x0
double v176; // d0
double v177; // d1
_WORD *v178; // x21
__int64 v179; // x0
char *v180; // x0
double v181; // d0
double v182; // d1
_WORD *v183; // x21
__int64 v184; // x0
char *v185; // x0
double v186; // d0
double v187; // d1
_WORD *v188; // x21
__int64 v189; // x0
char *v190; // x0
double v191; // d0
double v192; // d1
_WORD *v193; // x21
__int64 v194; // x0
char *v195; // x0
double v196; // d0
double v197; // d1
_WORD *v198; // x21
__int64 v199; // x0
char *v200; // x0
__int64 v201; // x21
void *v203[2]; // [xsp+8h] [xbp-238h] BYREF
char v204; // [xsp+1Fh] [xbp-221h]
void *v205[2]; // [xsp+20h] [xbp-220h] BYREF
char v206; // [xsp+37h] [xbp-209h]
void *v207[2]; // [xsp+38h] [xbp-208h] BYREF
char v208; // [xsp+4Fh] [xbp-1F1h]
void *v209[2]; // [xsp+50h] [xbp-1F0h] BYREF
char v210; // [xsp+67h] [xbp-1D9h]
void *v211[2]; // [xsp+68h] [xbp-1D8h] BYREF
char v212; // [xsp+7Fh] [xbp-1C1h]
void *v213[2]; // [xsp+80h] [xbp-1C0h] BYREF
char v214; // [xsp+97h] [xbp-1A9h]
void *v215[2]; // [xsp+98h] [xbp-1A8h] BYREF
char v216; // [xsp+AFh] [xbp-191h]
void *v217[2]; // [xsp+B0h] [xbp-190h] BYREF
char v218; // [xsp+C7h] [xbp-179h]
void *v219[2]; // [xsp+C8h] [xbp-178h] BYREF
char v220; // [xsp+DFh] [xbp-161h]
char v221[23]; // [xsp+E0h] [xbp-160h] BYREF
char v222; // [xsp+F7h] [xbp-149h]
__n128 v223; // [xsp+F8h] [xbp-148h] BYREF
char v224; // [xsp+10Fh] [xbp-131h]
void *__p[2]; // [xsp+110h] [xbp-130h] BYREF
char v226; // [xsp+127h] [xbp-119h]
std::string v227; // [xsp+128h] [xbp-118h] BYREF
std::string v228; // [xsp+140h] [xbp-100h] BYREF
std::string __str; // [xsp+158h] [xbp-E8h] BYREF
std::string v230; // [xsp+170h] [xbp-D0h] BYREF
int v231; // [xsp+18Ch] [xbp-B4h] BYREF
std::string __a; // [xsp+190h] [xbp-B0h] BYREF
int v233; // [xsp+1ACh] [xbp-94h] BYREF
_BYTE v234[32]; // [xsp+1B0h] [xbp-90h] BYREF
int v235; // [xsp+1D0h] [xbp-70h]
std::allocator v236; // [xsp+1DFh] [xbp-61h] BYREF
v2 = (char *)LevelSettingsObject::create();
if ( !a1 )
return v2;
sub_100009900(v234, "kA13");
v3 = cocos2d::CCDictionary::valueForKey(a1, v234);
*((float *)v2 + 86) = cocos2d::CCString::floatValue(v3);
if ( (v234[23] & 0x80000000) != 0 )
operator delete(*(void **)v234);
sub_100009900(v234, "kA14");
v4 = cocos2d::CCDictionary::valueForKey(a1, v234);
CString = (char *)cocos2d::CCString::getCString(v4);
sub_100009900(&__str, CString);
std::string::operator=((std::string *)(v2 + 392), &__str);
if ( SHIBYTE(__str.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__str.__r_.__value_.__l.__data_);
if ( (v234[23] & 0x80000000) != 0 )
operator delete(*(void **)v234);
sub_100009900(v234, "kA15");
v6 = cocos2d::CCDictionary::valueForKey(a1, v234);
v2[348] = cocos2d::CCString::boolValue(v6);
if ( (v234[23] & 0x80000000) != 0 )
operator delete(*(void **)v234);
sub_100009900(v234, "kA16");
v7 = cocos2d::CCDictionary::valueForKey(a1, v234);
v2[349] = cocos2d::CCString::boolValue(v7);
if ( (v234[23] & 0x80000000) != 0 )
operator delete(*(void **)v234);
sub_100009900(v234, "kA2");
v8 = cocos2d::CCDictionary::valueForKey(a1, v234);
*((_DWORD *)v2 + 82) = cocos2d::CCString::intValue(v8);
if ( (v234[23] & 0x80000000) != 0 )
operator delete(*(void **)v234);
sub_100009900(v234, "kA3");
v9 = cocos2d::CCDictionary::valueForKey(a1, v234);
v2[336] = cocos2d::CCString::boolValue(v9);
if ( (v234[23] & 0x80000000) != 0 )
operator delete(*(void **)v234);
sub_100009900(v234, "kA8");
v10 = cocos2d::CCDictionary::valueForKey(a1, v234);
v2[337] = cocos2d::CCString::boolValue(v10);
if ( (v234[23] & 0x80000000) != 0 )
operator delete(*(void **)v234);
sub_100009900(v234, "kA10");
v11 = cocos2d::CCDictionary::valueForKey(a1, v234);
v2[340] = cocos2d::CCString::boolValue(v11);
if ( (v234[23] & 0x80000000) != 0 )
operator delete(*(void **)v234);
sub_100009900(v234, "kA22");
v12 = cocos2d::CCDictionary::valueForKey(a1, v234);
v2[341] = cocos2d::CCString::boolValue(v12);
if ( (v234[23] & 0x80000000) != 0 )
operator delete(*(void **)v234);
sub_100009900(v234, "kA11");
v13 = cocos2d::CCDictionary::valueForKey(a1, v234);
v2[369] = cocos2d::CCString::boolValue(v13);
if ( (v234[23] & 0x80000000) != 0 )
operator delete(*(void **)v234);
sub_100009900(v234, "kA23");
v14 = cocos2d::CCDictionary::valueForKey(a1, v234);
v2[428] = cocos2d::CCString::boolValue(v14);
if ( (v234[23] & 0x80000000) != 0 )
operator delete(*(void **)v234);
sub_100009900(v234, "kA24");
v15 = cocos2d::CCDictionary::valueForKey(a1, v234);
v2[429] = cocos2d::CCString::boolValue(v15);
if ( (v234[23] & 0x80000000) != 0 )
operator delete(*(void **)v234);
sub_100009900(v234, "kA4");
v16 = cocos2d::CCDictionary::valueForKey(a1, v234);
*((_DWORD *)v2 + 83) = cocos2d::CCString::intValue(v16);
if ( (v234[23] & 0x80000000) != 0 )
operator delete(*(void **)v234);
sub_100009900(v234, "kA6");
v17 = cocos2d::CCDictionary::valueForKey(a1, v234);
*((_DWORD *)v2 + 88) = cocos2d::CCString::intValue(v17);
if ( (v234[23] & 0x80000000) != 0 )
operator delete(*(void **)v234);
sub_100009900(v234, "kA25");
v18 = cocos2d::CCDictionary::valueForKey(a1, v234);
*((_DWORD *)v2 + 91) = cocos2d::CCString::intValue(v18);
if ( (v234[23] & 0x80000000) != 0 )
operator delete(*(void **)v234);
sub_100009900(v234, "kA7");
v19 = cocos2d::CCDictionary::valueForKey(a1, v234);
*((_DWORD *)v2 + 89) = cocos2d::CCString::intValue(v19);
if ( (v234[23] & 0x80000000) != 0 )
operator delete(*(void **)v234);
sub_100009900(v234, "kA17");
v20 = cocos2d::CCDictionary::valueForKey(a1, v234);
*((_DWORD *)v2 + 106) = cocos2d::CCString::intValue(v20);
if ( (v234[23] & 0x80000000) != 0 )
operator delete(*(void **)v234);
sub_100009900(v234, "kA18");
v21 = cocos2d::CCDictionary::valueForKey(a1, v234);
*((_DWORD *)v2 + 90) = cocos2d::CCString::intValue(v21);
if ( (v234[23] & 0x80000000) != 0 )
operator delete(*(void **)v234);
sub_100009900(v234, "kA9");
v22 = cocos2d::CCDictionary::valueForKey(a1, v234);
v2[368] = cocos2d::CCString::boolValue(v22);
if ( (v234[23] & 0x80000000) != 0 )
operator delete(*(void **)v234);
sub_100009900(v234, "kS39");
v23 = cocos2d::CCDictionary::valueForKey(a1, v234);
*((_DWORD *)v2 + 105) = cocos2d::CCString::intValue(v23);
if ( (v234[23] & 0x80000000) != 0 )
operator delete(*(void **)v234);
sub_100009900(v234, "kA19");
v24 = cocos2d::CCDictionary::valueForKey(a1, v234);
*((_DWORD *)v2 + 93) = cocos2d::CCString::intValue(v24);
if ( (v234[23] & 0x80000000) != 0 )
operator delete(*(void **)v234);
sub_100009900(v234, "kA26");
v25 = cocos2d::CCDictionary::valueForKey(a1, v234);
*((_DWORD *)v2 + 94) = cocos2d::CCString::intValue(v25);
if ( (v234[23] & 0x80000000) != 0 )
operator delete(*(void **)v234);
sub_100009900(v234, "kA20");
v26 = cocos2d::CCDictionary::valueForKey(a1, v234);
v2[370] = cocos2d::CCString::boolValue(v26);
if ( (v234[23] & 0x80000000) != 0 )
operator delete(*(void **)v234);
sub_100009900(v234, "kA21");
v27 = cocos2d::CCDictionary::valueForKey(a1, v234);
v2[464] = cocos2d::CCString::boolValue(v27);
if ( (v234[23] & 0x80000000) != 0 )
operator delete(*(void **)v234);
sub_100009900(v234, "kA27");
v28 = cocos2d::CCDictionary::valueForKey(a1, v234);
v2[448] = cocos2d::CCString::boolValue(v28);
if ( (v234[23] & 0x80000000) != 0 )
operator delete(*(void **)v234);
sub_100009900(v234, "kA40");
v29 = cocos2d::CCDictionary::valueForKey(a1, v234);
v2[456] = cocos2d::CCString::boolValue(v29);
if ( (v234[23] & 0x80000000) != 0 )
operator delete(*(void **)v234);
sub_100009900(v234, "kA57");
v30 = cocos2d::CCDictionary::valueForKey(a1, v234);
v2[457] = cocos2d::CCString::boolValue(v30);
if ( (v234[23] & 0x80000000) != 0 )
operator delete(*(void **)v234);
sub_100009900(v234, "kA58");
v31 = cocos2d::CCDictionary::valueForKey(a1, v234);
v2[458] = cocos2d::CCString::boolValue(v31);
if ( (v234[23] & 0x80000000) != 0 )
operator delete(*(void **)v234);
sub_100009900(v234, "kA48");
v32 = cocos2d::CCDictionary::valueForKey(a1, v234);
v2[462] = cocos2d::CCString::boolValue(v32);
if ( (v234[23] & 0x80000000) != 0 )
operator delete(*(void **)v234);
sub_100009900(v234, "kA41");
v33 = cocos2d::CCDictionary::valueForKey(a1, v234);
v2[459] = cocos2d::CCString::boolValue(v33);
if ( (v234[23] & 0x80000000) != 0 )
operator delete(*(void **)v234);
sub_100009900(v234, "kA42");
v34 = cocos2d::CCDictionary::valueForKey(a1, v234);
v2[460] = cocos2d::CCString::boolValue(v34);
if ( (v234[23] & 0x80000000) != 0 )
operator delete(*(void **)v234);
sub_100009900(v234, "kA63");
v35 = cocos2d::CCDictionary::valueForKey(a1, v234);
v2[338] = cocos2d::CCString::boolValue(v35);
if ( (v234[23] & 0x80000000) != 0 )
operator delete(*(void **)v234);
sub_100009900(v234, "kA29");
v36 = cocos2d::CCDictionary::valueForKey(a1, v234);
v2[339] = cocos2d::CCString::boolValue(v36);
if ( (v234[23] & 0x80000000) != 0 )
operator delete(*(void **)v234);
sub_100009900(v234, "kA31");
v37 = cocos2d::CCDictionary::valueForKey(a1, v234);
v2[449] = cocos2d::CCString::boolValue(v37);
if ( (v234[23] & 0x80000000) != 0 )
operator delete(*(void **)v234);
sub_100009900(v234, "kA32");
v38 = cocos2d::CCDictionary::valueForKey(a1, v234);
v2[450] = cocos2d::CCString::boolValue(v38);
if ( (v234[23] & 0x80000000) != 0 )
operator delete(*(void **)v234);
sub_100009900(v234, "kA33");
v39 = cocos2d::CCDictionary::valueForKey(a1, v234);
v2[451] = cocos2d::CCString::boolValue(v39);
if ( (v234[23] & 0x80000000) != 0 )
operator delete(*(void **)v234);
sub_100009900(v234, "kA34");
v40 = cocos2d::CCDictionary::valueForKey(a1, v234);
v2[452] = cocos2d::CCString::boolValue(v40);
if ( (v234[23] & 0x80000000) != 0 )
operator delete(*(void **)v234);
sub_100009900(v234, "kA37");
v41 = cocos2d::CCDictionary::valueForKey(a1, v234);
v2[453] = cocos2d::CCString::boolValue(v41);
if ( (v234[23] & 0x80000000) != 0 )
operator delete(*(void **)v234);
sub_100009900(v234, "kA38");
v42 = cocos2d::CCDictionary::valueForKey(a1, v234);
v2[454] = cocos2d::CCString::boolValue(v42);
if ( (v234[23] & 0x80000000) != 0 )
operator delete(*(void **)v234);
sub_100009900(v234, "kA39");
v43 = cocos2d::CCDictionary::valueForKey(a1, v234);
v2[455] = cocos2d::CCString::boolValue(v43);
if ( (v234[23] & 0x80000000) != 0 )
operator delete(*(void **)v234);
sub_100009900(v234, "kA35");
v44 = cocos2d::CCDictionary::valueForKey(a1, v234);
v2[440] = cocos2d::CCString::boolValue(v44);
if ( (v234[23] & 0x80000000) != 0 )
operator delete(*(void **)v234);
sub_100009900(v234, "kA36");
v45 = cocos2d::CCDictionary::valueForKey(a1, v234);
*((_DWORD *)v2 + 111) = cocos2d::CCString::intValue(v45);
if ( (v234[23] & 0x80000000) != 0 )
operator delete(*(void **)v234);
sub_100009900(v234, "kA43");
v46 = cocos2d::CCDictionary::valueForKey(a1, v234);
v2[430] = cocos2d::CCString::boolValue(v46);
if ( (v234[23] & 0x80000000) != 0 )
operator delete(*(void **)v234);
sub_100009900(v234, "kA44");
v47 = cocos2d::CCDictionary::valueForKey(a1, v234);
*((_DWORD *)v2 + 108) = cocos2d::CCString::intValue(v47);
if ( (v234[23] & 0x80000000) != 0 )
operator delete(*(void **)v234);
sub_100009900(v234, "kA45");
v48 = cocos2d::CCDictionary::valueForKey(a1, v234);
v2[461] = cocos2d::CCString::boolValue(v48);
if ( (v234[23] & 0x80000000) != 0 )
operator delete(*(void **)v234);
sub_100009900(v234, "kA46");
v49 = cocos2d::CCDictionary::valueForKey(a1, v234);
v2[350] = cocos2d::CCString::boolValue(v49);
if ( (v234[23] & 0x80000000) != 0 )
operator delete(*(void **)v234);
sub_100009900(v234, "kA47");
v50 = cocos2d::CCDictionary::valueForKey(a1, v234);
*((_DWORD *)v2 + 109) = cocos2d::CCString::intValue(v50);
if ( (v234[23] & 0x80000000) != 0 )
operator delete(*(void **)v234);
sub_100009900(v234, "kA49");
v51 = cocos2d::CCDictionary::valueForKey(a1, v234);
v2[463] = cocos2d::CCString::boolValue(v51);
if ( (v234[23] & 0x80000000) != 0 )
operator delete(*(void **)v234);
sub_100009900(v234, "kA50");
v52 = cocos2d::CCDictionary::valueForKey(a1, v234);
v2[465] = cocos2d::CCString::boolValue(v52);
if ( (v234[23] & 0x80000000) != 0 )
operator delete(*(void **)v234);
sub_100009900(v234, "kA51");
v53 = cocos2d::CCDictionary::valueForKey(a1, v234);
*((_DWORD *)v2 + 117) = cocos2d::CCString::intValue(v53);
if ( (v234[23] & 0x80000000) != 0 )
operator delete(*(void **)v234);
sub_100009900(v234, "kA52");
v54 = cocos2d::CCDictionary::valueForKey(a1, v234);
*((float *)v2 + 119) = cocos2d::CCString::floatValue(v54);
if ( (v234[23] & 0x80000000) != 0 )
operator delete(*(void **)v234);
sub_100009900(v234, "kA53");
v55 = cocos2d::CCDictionary::valueForKey(a1, v234);
v56 = (char *)cocos2d::CCString::getCString(v55);
sub_100009900(&v228, v56);
std::string::operator=((std::string *)v2 + 20, &v228);
if ( SHIBYTE(v228.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v228.__r_.__value_.__l.__data_);
if ( (v234[23] & 0x80000000) != 0 )
operator delete(*(void **)v234);
sub_100009900(v234, "kA54");
v57 = cocos2d::CCDictionary::valueForKey(a1, v234);
*((_DWORD *)v2 + 118) = cocos2d::CCString::intValue(v57);
if ( (v234[23] & 0x80000000) != 0 )
operator delete(*(void **)v234);
sub_100009900(v234, "kA55");
v58 = cocos2d::CCDictionary::objectForKey(a1, v234);
v59 = v58;
if ( (v234[23] & 0x80000000) != 0 )
{
operator delete(*(void **)v234);
if ( !v59 )
goto LABEL_166;
}
else if ( !v58 )
{
goto LABEL_166;
}
sub_100009900(__p, "kA55");
v60 = cocos2d::CCDictionary::valueForKey(a1, __p);
v61 = (char *)cocos2d::CCString::getCString(v60);
sub_100009900(&v227, v61);
sub_100411284(v2 + 504);
size = HIBYTE(v227.__r_.__value_.__r.__words[2]);
v63 = SHIBYTE(v227.__r_.__value_.__r.__words[2]);
if ( (v227.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) != 0LL )
size = v227.__r_.__value_.__l.__size_;
if ( size )
{
v64 = 0;
do
{
v65 = std::string::find(&v227, 124, v64);
if ( v65 == -1 )
{
v65 = SHIBYTE(v227.__r_.__value_.__r.__words[2]);
if ( (SHIBYTE(v227.__r_.__value_.__r.__words[2]) & 0x8000000000000000LL) != 0 )
v65 = v227.__r_.__value_.__l.__size_;
}
v66 = std::string::find(&v227, 58, v64);
if ( v66 != -1 )
{
v67 = v66;
if ( v66 < v65 )
{
v68 = std::string::basic_string((std::string *)v234, &v227, v64, v66 - v64, (std::allocator *)&__a);
if ( (v234[23] & 0x80000000) != 0 )
{
v70 = *(void **)v234;
v69 = atoi(*(const char **)v234);
operator delete(v70);
}
else
{
v69 = atoi((const char *)v68);
}
v231 = v69;
std::string::basic_string(&v230, &v227, v67 + 1, v65 + ~v67, (std::allocator *)v234);
*(_QWORD *)v234 = &v231;
v71 = sub_100414DF4(v2 + 504, &v231, &unk_10076E63B, v234, &__a);
sub_1001A3160(v71 + 24);
v72 = HIBYTE(v230.__r_.__value_.__r.__words[2]);
v73 = SHIBYTE(v230.__r_.__value_.__r.__words[2]);
if ( (v230.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) != 0LL )
v72 = v230.__r_.__value_.__l.__size_;
if ( v72 )
{
v74 = 0;
do
{
v75 = std::string::find(&v230, 94, v74);
if ( v75 == -1 )
{
v75 = SHIBYTE(v230.__r_.__value_.__r.__words[2]);
if ( (SHIBYTE(v230.__r_.__value_.__r.__words[2]) & 0x8000000000000000LL) != 0 )
v75 = v230.__r_.__value_.__l.__size_;
}
v76 = std::string::find(&v230, 126, v74);
if ( v76 != -1 )
{
v77 = v76;
if ( v76 < v75 )
{
v78 = std::string::basic_string(
(std::string *)v234,
&v230,
v74,
v76 - v74,
(std::allocator *)&__a);
if ( (v234[23] & 0x80000000) != 0 )
{
v80 = *(void **)v234;
v79 = atoi(*(const char **)v234);
operator delete(v80);
}
else
{
v79 = atoi((const char *)v78);
}
v233 = v79;
v81 = std::string::find(&v230, 126, v77 + 1);
if ( v81 >= v75 )
v82 = v75;
else
v82 = v81;
if ( v81 == -1 )
v82 = v75;
v83 = std::string::basic_string(&__a, &v230, v77 + 1, v82 + ~v77, &v236);
sub_10040DA6C((__int64 *)v83, (std::string *)v234);
if ( SHIBYTE(__a.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__a.__r_.__value_.__l.__data_);
v84 = v234[23];
v85 = v234[23];
if ( v233 >= 1 )
{
if ( v234[23] < 0 )
v84 = *(_QWORD *)&v234[8];
if ( v84 )
{
__a.__r_.__value_.__r.__words[0] = (std::string::size_type)&v233;
v86 = (std::string *)sub_1000D9108(v71 + 24, &v233, (__int64)&unk_10076E63B, &__a);
std::string::operator=(v86 + 1, (const std::string *)v234);
v85 = v234[23];
}
}
if ( v85 < 0 )
operator delete(*(void **)v234);
}
}
v74 = v75 + 1;
v87 = HIBYTE(v230.__r_.__value_.__r.__words[2]);
v73 = SHIBYTE(v230.__r_.__value_.__r.__words[2]);
if ( (v230.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) != 0LL )
v87 = v230.__r_.__value_.__l.__size_;
}
while ( v74 < v87 );
}
if ( v73 < 0 )
operator delete(v230.__r_.__value_.__l.__data_);
}
}
v64 = v65 + 1;
v88 = HIBYTE(v227.__r_.__value_.__r.__words[2]);
v63 = SHIBYTE(v227.__r_.__value_.__r.__words[2]);
if ( (v227.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) != 0LL )
v88 = v227.__r_.__value_.__l.__size_;
}
while ( v64 < v88 );
}
if ( v63 < 0 )
operator delete(v227.__r_.__value_.__l.__data_);
if ( v226 < 0 )
operator delete(__p[0]);
LABEL_166:
sub_100009900(v234, "kA56");
v89 = cocos2d::CCDictionary::objectForKey(a1, v234);
if ( (v234[23] & 0x80000000) != 0 )
operator delete(*(void **)v234);
if ( v89 )
{
sub_100009900(__p, "kA56");
v90 = cocos2d::CCDictionary::valueForKey(a1, __p);
v91 = (char *)cocos2d::CCString::getCString(v90);
sub_100009900(&v227, v91);
sub_10001AC84((__int64)(v2 + 544));
v92 = HIBYTE(v227.__r_.__value_.__r.__words[2]);
v93 = SHIBYTE(v227.__r_.__value_.__r.__words[2]);
if ( (v227.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) != 0LL )
v92 = v227.__r_.__value_.__l.__size_;
if ( v92 )
{
v94 = 0;
do
{
v95 = std::string::find(&v227, 124, v94);
if ( v95 == -1 )
{
v95 = SHIBYTE(v227.__r_.__value_.__r.__words[2]);
if ( (SHIBYTE(v227.__r_.__value_.__r.__words[2]) & 0x8000000000000000LL) != 0 )
v95 = v227.__r_.__value_.__l.__size_;
}
v96 = std::string::find(&v227, 58, v94);
if ( v96 != -1 )
{
v97 = v96;
if ( v96 < v95 )
{
v98 = std::string::basic_string((std::string *)v234, &v227, v94, v96 - v94, (std::allocator *)&__a);
if ( (v234[23] & 0x80000000) != 0 )
{
v100 = *(void **)v234;
v99 = atoi(*(const char **)v234);
operator delete(v100);
}
else
{
v99 = atoi((const char *)v98);
}
v231 = v99;
std::string::basic_string(&v230, &v227, v97 + 1, v95 + ~v97, (std::allocator *)v234);
*(_QWORD *)v234 = &v231;
v101 = sub_10001ACD8((unsigned __int64)(v2 + 544), &v231, (__int64)&unk_10076E63B, (_DWORD **)v234);
v101[4] = v101[3];
v102 = HIBYTE(v230.__r_.__value_.__r.__words[2]);
v103 = HIBYTE(v230.__r_.__value_.__r.__words[2]);
if ( (v230.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) != 0LL )
v102 = v230.__r_.__value_.__l.__size_;
if ( v102 )
{
v104 = 0;
memset(v234, 0, sizeof(v234));
v235 = 1065353216;
do
{
if ( (int)((v101[4] - v101[3]) >> 2) > 499 )
break;
v105 = std::string::find(&v230, 94, v104);
if ( v105 == -1 )
{
v105 = SHIBYTE(v230.__r_.__value_.__r.__words[2]);
if ( (SHIBYTE(v230.__r_.__value_.__r.__words[2]) & 0x8000000000000000LL) != 0 )
v105 = v230.__r_.__value_.__l.__size_;
}
v106 = std::string::find(&v230, 126, v104);
if ( v106 >= v105 )
v107 = v105;
else
v107 = v106;
if ( v106 == -1 )
v107 = v105;
v108 = std::string::basic_string(&__a, &v230, v104, v107 - v104, &v236);
if ( SHIBYTE(__a.__r_.__value_.__r.__words[2]) < 0 )
{
v110 = (void *)__a.__r_.__value_.__r.__words[0];
v109 = atoi(__a.__r_.__value_.__l.__data_);
operator delete(v110);
}
else
{
v109 = atoi((const char *)v108);
}
v233 = v109;
if ( v109 >= 1 )
{
sub_10001CC04((unsigned __int64)v234, &v233, &v233);
if ( (v111 & 1) != 0 )
sub_10000D038((__int64)(v101 + 3), &v233);
}
v104 = v105 + 1;
v112 = HIBYTE(v230.__r_.__value_.__r.__words[2]);
if ( (v230.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) != 0LL )
v112 = v230.__r_.__value_.__l.__size_;
}
while ( v104 < v112 );
sub_1000184EC((__int64)v234);
v103 = HIBYTE(v230.__r_.__value_.__r.__words[2]);
}
if ( v103 < 0 )
operator delete(v230.__r_.__value_.__l.__data_);
}
}
v94 = v95 + 1;
v113 = HIBYTE(v227.__r_.__value_.__r.__words[2]);
v93 = SHIBYTE(v227.__r_.__value_.__r.__words[2]);
if ( (v227.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) != 0LL )
v113 = v227.__r_.__value_.__l.__size_;
}
while ( v94 < v113 );
}
if ( v93 < 0 )
operator delete(v227.__r_.__value_.__l.__data_);
if ( v226 < 0 )
operator delete(__p[0]);
}
for ( i = *((__int64 **)v2 + 70); i; i = (__int64 *)*i )
{
v115 = sub_100400EBC((__int64)v2, *((_DWORD *)i + 4));
v116 = 0u;
memset(v234, 0, 24);
v117 = (char *)i[3];
if ( (char *)i[4] == v117 )
{
v120 = 0;
}
else
{
v118 = 0;
v119 = 0;
do
{
if ( sub_100019268(v115, (int *)&v117[v118]) )
sub_10000D038((__int64)v234, (int *)(i[3] + v118));
++v119;
v117 = (char *)i[3];
v118 += 4;
}
while ( v119 < (i[4] - (__int64)v117) >> 2 );
v116 = *(_OWORD *)v234;
v120 = *(_QWORD *)&v234[16];
}
*(_OWORD *)(i + 3) = v116;
v121 = i[5];
i[5] = v120;
*(_QWORD *)v234 = v117;
*(_QWORD *)&v234[16] = v121;
if ( v117 )
{
*(_QWORD *)&v234[8] = v117;
operator delete(v117);
}
}
sub_100009900(v234, "kA59");
v122 = cocos2d::CCDictionary::objectForKey(a1, v234);
v123 = v122;
if ( (v234[23] & 0x80000000) != 0 )
{
operator delete(*(void **)v234);
if ( !v123 )
goto LABEL_242;
}
else if ( !v122 )
{
goto LABEL_242;
}
sub_100009900(&v230, "kA59");
v124 = cocos2d::CCDictionary::valueForKey(a1, &v230);
v125 = (char *)cocos2d::CCString::getCString(v124);
sub_100009900(&__a, v125);
sub_100076C88((__int64)(v2 + 584), *((char **)v2 + 74));
*((_QWORD *)v2 + 73) = v2 + 592;
*((_OWORD *)v2 + 37) = 0u;
v126 = HIBYTE(__a.__r_.__value_.__r.__words[2]);
if ( (__a.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) != 0LL )
v126 = __a.__r_.__value_.__l.__size_;
if ( v126 )
{
v127 = std::string::find(&__a, 124, 0);
v128 = std::string::basic_string((std::string *)v234, &__a, 0, v127, (std::allocator *)&v227);
if ( (v234[23] & 0x80000000) != 0 )
{
v130 = *(void **)v234;
v129 = atoi(*(const char **)v234);
operator delete(v130);
}
else
{
v129 = atoi((const char *)v128);
}
if ( v127 != -1 && v129 <= 1 )
{
v131 = std::string::basic_string(
(std::string *)v234,
&__a,
v127 + 1,
0xFFFFFFFFFFFFFFFFLL,
(std::allocator *)&v227);
sub_1001D7AA0((__int64)v131, (__int64)(v2 + 584), 0);
if ( (v234[23] & 0x80000000) != 0 )
operator delete(*(void **)v234);
}
}
if ( SHIBYTE(__a.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__a.__r_.__value_.__l.__data_);
if ( SHIBYTE(v230.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v230.__r_.__value_.__l.__data_);
LABEL_242:
sub_100009900(v234, "kA61");
v132 = cocos2d::CCDictionary::objectForKey(a1, v234);
v133 = v132;
if ( (v234[23] & 0x80000000) != 0 )
{
operator delete(*(void **)v234);
if ( !v133 )
goto LABEL_248;
}
else if ( !v132 )
{
goto LABEL_248;
}
sub_100009900(v234, "kA61");
v134 = cocos2d::CCDictionary::valueForKey(a1, v234);
*((_DWORD *)v2 + 158) = cocos2d::CCString::intValue(v134);
if ( (v234[23] & 0x80000000) != 0 )
operator delete(*(void **)v234);
LABEL_248:
sub_100009900(v234, "kA62");
v135 = cocos2d::CCDictionary::objectForKey(a1, v234);
v136 = v135;
if ( (v234[23] & 0x80000000) != 0 )
{
operator delete(*(void **)v234);
if ( !v136 )
goto LABEL_268;
}
else if ( !v135 )
{
goto LABEL_268;
}
sub_100009900(&v230, "kA62");
v137 = cocos2d::CCDictionary::valueForKey(a1, &v230);
v138 = (char *)cocos2d::CCString::getCString(v137);
sub_100009900(&__a, v138);
sub_1000187C4((__int64)(v2 + 640), *((_QWORD **)v2 + 81));
*((_QWORD *)v2 + 80) = v2 + 648;
*(_OWORD *)(v2 + 648) = 0u;
memset(v234, 0, 24);
sub_1003F76E8(&__a, "|", (__int64)v234);
if ( *(_QWORD *)&v234[8] != *(_QWORD *)v234 )
{
v139 = 0;
if ( 0xAAAAAAAAAAAAAAABLL * ((__int64)(*(_QWORD *)&v234[8] - *(_QWORD *)v234) >> 3) <= 1 )
v140 = 1;
else
v140 = 0xAAAAAAAAAAAAAAABLL * ((__int64)(*(_QWORD *)&v234[8] - *(_QWORD *)v234) >> 3);
do
{
v141 = (const char *)(*(_QWORD *)v234 + v139);
if ( *(char *)(*(_QWORD *)v234 + v139 + 23) < 0 )
v141 = *(const char **)v141;
v142 = atoi(v141);
LODWORD(v227.__r_.__value_.__l.__data_) = v142;
if ( v142 == -1 || v142 >= 2 )
sub_1000D8E78((__int64)(v2 + 640), (int *)&v227, &v227);
v139 += 24;
--v140;
}
while ( v140 );
}
v227.__r_.__value_.__r.__words[0] = (std::string::size_type)v234;
sub_100018250((void ***)&v227);
if ( SHIBYTE(__a.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__a.__r_.__value_.__l.__data_);
if ( SHIBYTE(v230.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v230.__r_.__value_.__l.__data_);
LABEL_268:
sub_100009900(v234, "kA60");
v144 = cocos2d::CCDictionary::objectForKey(a1, v234);
v145 = v144;
if ( (v234[23] & 0x80000000) != 0 )
{
operator delete(*(void **)v234);
if ( !v145 )
goto LABEL_278;
}
else if ( !v144 )
{
goto LABEL_278;
}
sub_100009900(&__a, "kA60");
v146 = cocos2d::CCDictionary::valueForKey(a1, &__a);
v147 = (char *)cocos2d::CCString::getCString(v146);
sub_100009900(&v223, v147);
LevelTools::base64DecodeString(&v223, (__n128 *)v234);
v148 = (void **)(v2 + 608);
if ( v2[631] < 0 )
operator delete(*v148);
*(_OWORD *)v148 = *(_OWORD *)v234;
*((_QWORD *)v2 + 78) = *(_QWORD *)&v234[16];
v234[23] = 0;
v234[0] = 0;
if ( v224 < 0 )
operator delete((void *)v223.n128_u64[0]);
if ( SHIBYTE(__a.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__a.__r_.__value_.__l.__data_);
LABEL_278:
if ( (v2[368] & 1) != 0 )
return v2;
sub_100009900(v234, "kS38");
v149 = cocos2d::CCDictionary::objectForKey(a1, v234);
v150 = v149;
if ( (v234[23] & 0x80000000) != 0 )
{
operator delete(*(void **)v234);
if ( v150 )
goto LABEL_281;
}
else if ( v149 )
{
LABEL_281:
v151 = *((_QWORD **)v2 + 40);
sub_100009900(v234, "kS38");
v152 = cocos2d::CCDictionary::valueForKey(a1, v234);
v153 = (char *)cocos2d::CCString::getCString(v152);
sub_100009900(v221, v153);
sub_100017104(v151, v221);
if ( (v222 & 0x80000000) == 0 )
goto LABEL_322;
v154 = *(void **)v221;
LABEL_321:
operator delete(v154);
LABEL_322:
if ( (v234[23] & 0x80000000) != 0 )
operator delete(*(void **)v234);
return v2;
}
sub_100009900(v234, "kS29");
v155 = cocos2d::CCDictionary::objectForKey(a1, v234);
if ( (v234[23] & 0x80000000) != 0 )
operator delete(*(void **)v234);
if ( v155 )
{
v158 = sub_10000F52C(*((_QWORD *)v2 + 40), 1000, v156, v157);
sub_100009900(v234, "kS29");
v159 = cocos2d::CCDictionary::valueForKey(a1, v234);
v160 = (char *)cocos2d::CCString::getCString(v159);
sub_100009900(v219, v160);
sub_10000E33C((__int64)v158, (int)v219);
if ( v220 < 0 )
operator delete(v219[0]);
if ( (v234[23] & 0x80000000) != 0 )
operator delete(*(void **)v234);
v163 = sub_10000F52C(*((_QWORD *)v2 + 40), 1001, v161, v162);
sub_100009900(v234, "kS30");
v164 = cocos2d::CCDictionary::valueForKey(a1, v234);
v165 = (char *)cocos2d::CCString::getCString(v164);
sub_100009900(v217, v165);
sub_10000E33C((__int64)v163, (int)v217);
if ( v218 < 0 )
operator delete(v217[0]);
if ( (v234[23] & 0x80000000) != 0 )
operator delete(*(void **)v234);
v168 = sub_10000F52C(*((_QWORD *)v2 + 40), 1002, v166, v167);
sub_100009900(v234, "kS31");
v169 = cocos2d::CCDictionary::valueForKey(a1, v234);
v170 = (char *)cocos2d::CCString::getCString(v169);
sub_100009900(v215, v170);
sub_10000E33C((__int64)v168, (int)v215);
if ( v216 < 0 )
operator delete(v215[0]);
if ( (v234[23] & 0x80000000) != 0 )
operator delete(*(void **)v234);
*((_BYTE *)v168 + 84) = 1;
v173 = sub_10000F52C(*((_QWORD *)v2 + 40), 1004, v171, v172);
sub_100009900(v234, "kS32");
v174 = cocos2d::CCDictionary::valueForKey(a1, v234);
v175 = (char *)cocos2d::CCString::getCString(v174);
sub_100009900(v213, v175);
sub_10000E33C((__int64)v173, (int)v213);
if ( v214 < 0 )
operator delete(v213[0]);
if ( (v234[23] & 0x80000000) != 0 )
operator delete(*(void **)v234);
v178 = sub_10000F52C(*((_QWORD *)v2 + 40), 1, v176, v177);
sub_100009900(v234, "kS33");
v179 = cocos2d::CCDictionary::valueForKey(a1, v234);
v180 = (char *)cocos2d::CCString::getCString(v179);
sub_100009900(v211, v180);
sub_10000E33C((__int64)v178, (int)v211);
if ( v212 < 0 )
operator delete(v211[0]);
if ( (v234[23] & 0x80000000) != 0 )
operator delete(*(void **)v234);
v183 = sub_10000F52C(*((_QWORD *)v2 + 40), 2, v181, v182);
sub_100009900(v234, "kS34");
v184 = cocos2d::CCDictionary::valueForKey(a1, v234);
v185 = (char *)cocos2d::CCString::getCString(v184);
sub_100009900(v209, v185);
sub_10000E33C((__int64)v183, (int)v209);
if ( v210 < 0 )
operator delete(v209[0]);
if ( (v234[23] & 0x80000000) != 0 )
operator delete(*(void **)v234);
v188 = sub_10000F52C(*((_QWORD *)v2 + 40), 3, v186, v187);
sub_100009900(v234, "kS35");
v189 = cocos2d::CCDictionary::valueForKey(a1, v234);
v190 = (char *)cocos2d::CCString::getCString(v189);
sub_100009900(v207, v190);
sub_10000E33C((__int64)v188, (int)v207);
if ( v208 < 0 )
operator delete(v207[0]);
if ( (v234[23] & 0x80000000) != 0 )
operator delete(*(void **)v234);
v193 = sub_10000F52C(*((_QWORD *)v2 + 40), 4, v191, v192);
sub_100009900(v234, "kS36");
v194 = cocos2d::CCDictionary::valueForKey(a1, v234);
v195 = (char *)cocos2d::CCString::getCString(v194);
sub_100009900(v205, v195);
sub_10000E33C((__int64)v193, (int)v205);
if ( v206 < 0 )
operator delete(v205[0]);
if ( (v234[23] & 0x80000000) != 0 )
operator delete(*(void **)v234);
v198 = sub_10000F52C(*((_QWORD *)v2 + 40), 1003, v196, v197);
sub_100009900(v234, "kS37");
v199 = cocos2d::CCDictionary::valueForKey(a1, v234);
v200 = (char *)cocos2d::CCString::getCString(v199);
sub_100009900(v203, v200);
sub_10000E33C((__int64)v198, (int)v203);
if ( (v204 & 0x80000000) == 0 )
goto LABEL_322;
v154 = v203[0];
goto LABEL_321;
}
sub_100009900(v234, "kS1");
v201 = cocos2d::CCDictionary::objectForKey(a1, v234);
if ( (v234[23] & 0x80000000) != 0 )
operator delete(*(void **)v234);
if ( v201 )
sub_100410268(v2, a1);
return v2;
}