//
// GameObject::objectFromVector from 0x7807c4 to 0x7820d8 (6420 bytes)
//
// 3 xrefs:
// > PlayLayer::processCreateObjectsFromSetup @ 0x708908
// > LevelEditorLayer::addObjectFromVector @ 0x7a0b28
// > ??> @ 0xcf2c8
//
// 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 12:53:22 +0000
//
__int64 __fastcall GameObject::objectFromVector(__int64 *a1, __int64 *a2, __int64 a3, unsigned __int8 a4)
{
__int64 v5; // x19
int v8; // w22
const char *v9; // x0
char v10; // w25
int v11; // w0
bool v12; // cc
int v13; // w23
char *v14; // x22
ObjectToolbox *v16; // x0
__int64 v17; // x19
ObjectToolbox *v18; // x0
const char *v19; // x0
size_t v20; // x0
_QWORD *v21; // x28
const char *v22; // x0
float v23; // s12
const char *v24; // x0
float v25; // s8
float v26; // s10
const char *v27; // x0
const char *v28; // x0
const char *v29; // x0
float v30; // s8
const char *v31; // x0
const char *v32; // x0
__int16 v33; // w28
const char *v34; // x0
int v35; // w1
const char *v36; // x0
int v37; // w0
void (__fastcall *v38)(__int64, __int64); // x25
const char *v39; // x0
__int64 v40; // x1
void (__fastcall *v41)(__int64, __int64); // x25
const char *v42; // x0
__int64 v43; // x1
const char *v44; // x0
int v45; // w0
const char *v46; // x0
bool v47; // w0
const char *v48; // x1
__int16 v49; // w25
int v50; // w0
const char *v51; // x0
__int16 v52; // w0
__int64 v53; // x0
__int64 v54; // x2
__int64 v55; // x0
size_t v56; // x1
const char *v57; // x0
const char *v58; // x0
bool v59; // w0
__int64 v60; // x0
__int64 v61; // x2
__int64 v62; // x0
size_t v63; // x1
__int64 v64; // x0
const char *v65; // x0
float v66; // s9
int v67; // s0
const char *v68; // x0
float v69; // s11
int v70; // s0
_BOOL4 v71; // w0
__int64 v72; // x0
const char *v73; // x0
const char *v74; // x0
bool v75; // w0
const char *v76; // x0
const char *v77; // x0
const char *v78; // x0
const char *v79; // x0
const char *v80; // x0
const char *v81; // x0
const char *v82; // x0
const char *v83; // x0
const char *v84; // x0
const char *v85; // x0
const char *v86; // x0
const char *v87; // x0
const char *v88; // x0
const char *v89; // x0
const char *v90; // x0
const char *v91; // x0
const char *v92; // x0
bool v93; // w2
__int64 v94; // x1
void (__fastcall *v95)(__int64, __int64 *); // x26
const char *v96; // x0
bool v97; // w0
__int64 v98; // x0
const char *v99; // x0
float v100; // s9
int v101; // s0
const char *v102; // x0
float v103; // s8
int v104; // s0
void (__fastcall *v105)(__int64, _BYTE *); // x24
_QWORD *v106; // x22
__int64 v107; // x23
const char *v108; // x0
size_t v109; // x1
__int64 v110; // x0
__int64 v111; // x1
__int64 v112; // x2
__int64 v113; // x23
const char *v114; // x0
size_t v115; // x1
__int64 v116; // x0
__int64 v117; // x1
__int64 v118; // x2
const char *v119; // x0
int v120; // w0
unsigned int v121; // w0
int v122; // w0
int *v123; // x1
const char *v124; // x0
float v125; // s9
int v126; // s0
const char *v127; // x0
int v128; // w0
const char *v129; // x0
int v130; // w0
_DWORD *v131; // x1
float v132; // s0
__int64 v133; // x1
int *v134; // x1
char *v135; // [xsp+98h] [xbp+98h]
__int16 v136; // [xsp+A0h] [xbp+A0h]
_BOOL4 v137; // [xsp+A4h] [xbp+A4h]
char *v138; // [xsp+A8h] [xbp+A8h]
_BOOL4 v139; // [xsp+A8h] [xbp+A8h]
_BYTE v140[8]; // [xsp+B0h] [xbp+B0h] BYREF
__int64 v141; // [xsp+B8h] [xbp+B8h] BYREF
size_t v142; // [xsp+C0h] [xbp+C0h]
void *v143; // [xsp+C8h] [xbp+C8h]
__int64 v144; // [xsp+D0h] [xbp+D0h] BYREF
size_t v145; // [xsp+D8h] [xbp+D8h]
void *v146; // [xsp+E0h] [xbp+E0h]
__int64 v147; // [xsp+E8h] [xbp+E8h] BYREF
size_t v148; // [xsp+F0h] [xbp+F0h]
void *v149; // [xsp+F8h] [xbp+F8h]
__int64 v150; // [xsp+100h] [xbp+100h] BYREF
size_t v151; // [xsp+108h] [xbp+108h]
void *v152; // [xsp+110h] [xbp+110h]
__int64 v153; // [xsp+118h] [xbp+118h] BYREF
size_t v154; // [xsp+120h] [xbp+120h]
void *v155; // [xsp+128h] [xbp+128h]
__int64 v156; // [xsp+130h] [xbp+130h] BYREF
size_t v157; // [xsp+138h] [xbp+138h]
void *v158; // [xsp+140h] [xbp+140h]
__int64 v159; // [xsp+148h] [xbp+148h] BYREF
size_t v160; // [xsp+150h] [xbp+150h]
void *v161; // [xsp+158h] [xbp+158h]
__int64 v162; // [xsp+160h] [xbp+160h] BYREF
size_t v163; // [xsp+168h] [xbp+168h]
void *v164; // [xsp+170h] [xbp+170h]
v5 = *a2;
v8 = a4;
if ( !*(_QWORD *)(*a2 + 824) )
goto LABEL_5;
v9 = (const char *)(*a1 + 2473);
if ( (*(_BYTE *)(*a1 + 2472) & 1) != 0 )
v9 = *(const char **)(*a1 + 2488);
if ( atoi(v9) )
{
v10 = 1;
if ( v8 )
return 0;
}
else
{
LABEL_5:
v10 = 0;
}
if ( !*(_QWORD *)(v5 + 8) )
{
v13 = -1;
LODWORD(v14) = 0;
goto LABEL_24;
}
if ( (*(_BYTE *)(*a1 + 24) & 1) == 0 )
{
v11 = atoi((const char *)(*a1 + 25));
v12 = v11 <= 677;
v13 = v11;
if ( v11 != 677 )
goto LABEL_9;
LABEL_19:
v13 = -1;
LODWORD(v14) = 1736;
goto LABEL_24;
}
v11 = atoi(*(const char **)(*a1 + 40));
v12 = v11 <= 677;
v13 = v11;
if ( v11 == 677 )
goto LABEL_19;
LABEL_9:
if ( v12 )
{
if ( v11 != 221 )
{
if ( v11 <= 221 )
{
LODWORD(v14) = 915;
if ( v11 == 104 )
goto LABEL_24;
}
else
{
if ( v11 == 675 )
{
v13 = -1;
LODWORD(v14) = 1734;
goto LABEL_24;
}
if ( v11 == 676 )
{
v13 = -1;
v14 = (char *)&elf_hash_bucket[307] + 3;
goto LABEL_24;
}
}
goto LABEL_411;
}
LABEL_288:
LODWORD(v14) = 899;
goto LABEL_24;
}
if ( v11 == 743 )
goto LABEL_288;
if ( v11 > 743 )
{
if ( v11 == 1008 )
{
v13 = -1;
LODWORD(v14) = 1292;
goto LABEL_24;
}
goto LABEL_411;
}
if ( (unsigned int)(v11 - 717) <= 1 )
goto LABEL_288;
LABEL_411:
if ( (unsigned int)(v13 - 1964) > 0x2F )
{
LODWORD(v14) = v13;
v13 = -1;
}
else
{
v13 = -1;
LODWORD(v14) = 1964;
}
LABEL_24:
v16 = (ObjectToolbox *)GameObject::createWithKey((GameObject *)(unsigned int)v14);
v17 = (__int64)v16;
if ( !v16 )
return 0;
v18 = (ObjectToolbox *)ObjectToolbox::sharedState(v16);
v19 = (const char *)ObjectToolbox::intKeyToFrame(v18, (int)v14);
v141 = 0;
v138 = (char *)v19;
v142 = 0;
v143 = nullptr;
v20 = strlen(v19);
std::string::__init(&v141, v138, v20);
v21 = (_QWORD *)*a2;
if ( *(_QWORD *)(*a2 + 16) )
{
v22 = (const char *)(*a1 + 49);
if ( (*(_BYTE *)(*a1 + 48) & 1) != 0 )
v22 = *(const char **)(*a1 + 64);
v23 = atof(v22);
if ( __isnanf(v23) )
{
v23 = 0.0;
v21 = (_QWORD *)*a2;
}
else if ( v23 > 1000000000.0 )
{
v21 = (_QWORD *)*a2;
v23 = 1000000000.0;
}
else
{
v21 = (_QWORD *)*a2;
if ( v23 >= -1000000000.0 )
{
if ( !v21[3] )
{
v26 = 90.0;
goto LABEL_41;
}
goto LABEL_32;
}
v23 = -1000000000.0;
}
}
else
{
v23 = 0.0;
}
if ( v21[3] )
{
LABEL_32:
v24 = (const char *)(*a1 + 73);
if ( (*(_BYTE *)(*a1 + 72) & 1) != 0 )
v24 = *(const char **)(*a1 + 88);
v25 = atof(v24);
if ( __isnanf(v25) )
{
v26 = 90.0;
}
else if ( v25 > 1000000000.0 )
{
v26 = 1000000000.0;
}
else if ( v25 < -1000000000.0 )
{
v26 = -1000000000.0;
}
else
{
v26 = v25 + 90.0;
}
v21 = (_QWORD *)*a2;
goto LABEL_39;
}
v26 = 90.0;
LABEL_39:
if ( __isnanf(v23) )
v23 = 0.0;
LABEL_41:
if ( __isnanf(v26) )
v26 = 0.0;
if ( v21[4] )
{
v27 = (const char *)(*a1 + 97);
if ( (*(_BYTE *)(*a1 + 96) & 1) != 0 )
v27 = *(const char **)(*a1 + 112);
v139 = atoi(v27) != 0;
}
else
{
v139 = 0;
}
if ( v21[5] )
{
v28 = (const char *)(*a1 + 121);
if ( (*(_BYTE *)(*a1 + 120) & 1) != 0 )
v28 = *(const char **)(*a1 + 136);
v137 = atoi(v28) != 0;
}
else
{
v137 = 0;
}
if ( !v21[6] )
{
v30 = 0.0;
goto LABEL_58;
}
v29 = (const char *)(*a1 + 145);
if ( (*(_BYTE *)(*a1 + 144) & 1) != 0 )
v29 = *(const char **)(*a1 + 160);
v30 = atof(v29);
if ( !__isnanf(v30) )
{
if ( v30 > 1000000000.0 )
{
v21 = (_QWORD *)*a2;
v30 = 1000000000.0;
}
else
{
v21 = (_QWORD *)*a2;
if ( v30 < -1000000000.0 )
v30 = -1000000000.0;
}
LABEL_58:
if ( v21[20] )
goto LABEL_59;
goto LABEL_329;
}
v21 = (_QWORD *)*a2;
v30 = 0.0;
if ( *(_QWORD *)(*a2 + 160) )
{
LABEL_59:
v31 = (const char *)(*a1 + 481);
if ( (*(_BYTE *)(*a1 + 480) & 1) != 0 )
v31 = *(const char **)(*a1 + 496);
v136 = atoi(v31);
if ( v21[61] )
goto LABEL_62;
LABEL_330:
v33 = 0;
goto LABEL_65;
}
LABEL_329:
v136 = 0;
if ( !v21[61] )
goto LABEL_330;
LABEL_62:
v32 = (const char *)(*a1 + 1465);
if ( (*(_BYTE *)(*a1 + 1464) & 1) != 0 )
v32 = *(const char **)(*a1 + 1480);
v33 = atoi(v32);
LABEL_65:
*(_DWORD *)(v17 + 1028) = (_DWORD)v14;
if ( (_DWORD)v14 == 9 || (_DWORD)v14 == 1715 )
{
*(_DWORD *)(v17 + 1048) = 2;
if ( *(_QWORD *)(*a2 + 192) )
goto LABEL_68;
LABEL_314:
v35 = 0;
goto LABEL_71;
}
if ( !*(_QWORD *)(*a2 + 192) )
goto LABEL_314;
LABEL_68:
v34 = (const char *)(*a1 + 577);
if ( (*(_BYTE *)(*a1 + 576) & 1) != 0 )
v34 = *(const char **)(*a1 + 592);
v35 = atoi(v34);
LABEL_71:
GameObject::setCustomZLayer(v17, v35);
if ( *(_QWORD *)(*a2 + 200) )
{
v36 = (const char *)(*a1 + 601);
if ( (*(_BYTE *)(*a1 + 600) & 1) != 0 )
v36 = *(const char **)(*a1 + 616);
v37 = atoi(v36);
*(_BYTE *)(v17 + 1259) = v10;
*(_DWORD *)(v17 + 1128) = v37;
v38 = *(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v17 + 1600LL);
if ( *(_QWORD *)(*a2 + 208) )
goto LABEL_75;
}
else
{
*(_BYTE *)(v17 + 1259) = v10;
*(_DWORD *)(v17 + 1128) = 0;
v38 = *(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v17 + 1600LL);
if ( *(_QWORD *)(*a2 + 208) )
{
LABEL_75:
v39 = (const char *)(*a1 + 625);
if ( (*(_BYTE *)(*a1 + 624) & 1) != 0 )
v39 = *(const char **)(*a1 + 640);
v40 = (unsigned int)atoi(v39);
goto LABEL_78;
}
}
v40 = 0;
LABEL_78:
v38(v17, v40);
v41 = *(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v17 + 1600LL);
if ( *(_QWORD *)(*a2 + 264) )
{
v42 = (const char *)(*a1 + 793);
if ( (*(_BYTE *)(*a1 + 792) & 1) != 0 )
v42 = *(const char **)(*a1 + 808);
v43 = (unsigned int)atoi(v42);
}
else
{
v43 = 0;
}
v41(v17, v43);
if ( *(_QWORD *)(*a2 + 864) )
{
v44 = (const char *)(*a1 + 2593);
if ( (*(_BYTE *)(*a1 + 2592) & 1) != 0 )
v44 = *(const char **)(*a1 + 2608);
v45 = atoi(v44);
}
else
{
v45 = 0;
}
*(_DWORD *)(v17 + 872) = v45;
if ( *(_QWORD *)(*a2 + 968) )
{
v46 = (const char *)(*a1 + 2905);
if ( (*(_BYTE *)(*a1 + 2904) & 1) != 0 )
v46 = *(const char **)(*a1 + 2920);
v47 = atoi(v46) != 0;
}
else
{
v47 = 0;
}
*(_BYTE *)(v17 + 1214) = v47;
if ( !*(_QWORD *)(*a2 + 2744) )
goto LABEL_352;
if ( (*(_BYTE *)(*a1 + 8232) & 1) != 0 )
v48 = *(const char **)(*a1 + 8248);
else
v48 = (const char *)(*a1 + 8233);
v49 = 100;
v135 = (char *)v48;
if ( atoi(v48) > 100 )
goto LABEL_97;
v50 = atoi(v135);
if ( v50 <= 0 )
{
LABEL_352:
*(_WORD *)(v17 + 1012) = 0;
if ( *(_QWORD *)(*a2 + 3568) )
goto LABEL_98;
LABEL_353:
v52 = 0;
goto LABEL_101;
}
if ( v50 <= 100 )
v49 = v50;
LABEL_97:
*(_WORD *)(v17 + 1012) = v49;
if ( !*(_QWORD *)(*a2 + 3568) )
goto LABEL_353;
LABEL_98:
v51 = (const char *)(*a1 + 10705);
if ( (*(_BYTE *)(*a1 + 10704) & 1) != 0 )
v51 = *(const char **)(*a1 + 10720);
v52 = atoi(v51);
LABEL_101:
*(_WORD *)(v17 + 1014) = v52;
if ( *(_QWORD *)(*a2 + 456) )
{
v53 = *a1;
v144 = 0;
v54 = v53 + 1368;
v145 = 0;
LOBYTE(v53) = *(_BYTE *)(v53 + 1368);
v146 = nullptr;
if ( (v53 & 1) != 0 )
{
std::string::__init(&v144, *(void **)(v54 + 16), *(_QWORD *)(v54 + 8));
}
else
{
v55 = *(_QWORD *)v54;
v56 = *(_QWORD *)(v54 + 8);
v146 = *(void **)(v54 + 16);
v144 = v55;
v145 = v56;
}
}
else
{
v144 = 0;
v145 = 0;
v146 = nullptr;
std::string::__init(&v144, &byte_11B8890, 0);
}
v147 = 0;
v148 = 0;
v149 = nullptr;
if ( (v144 & 1) != 0 )
{
std::string::__init(&v147, v146, v145);
}
else
{
v149 = v146;
v147 = v144;
v148 = v145;
}
GameObject::loadGroupsFromString((GameObject *)v17, (unsigned __int8 *)&v147);
if ( (v147 & 1) != 0 )
{
operator delete(v149);
if ( *(_QWORD *)(*a2 + 272) )
{
LABEL_108:
v57 = (const char *)(*a1 + 817);
if ( (*(_BYTE *)(*a1 + 816) & 1) != 0 )
v57 = *(const char **)(*a1 + 832);
*(_BYTE *)(v17 + 1150) = atoi(v57) != 0;
if ( *(_QWORD *)(*a2 + 2232) )
goto LABEL_111;
LABEL_346:
v59 = 0;
goto LABEL_114;
}
}
else if ( *(_QWORD *)(*a2 + 272) )
{
goto LABEL_108;
}
*(_BYTE *)(v17 + 1150) = 0;
if ( !*(_QWORD *)(*a2 + 2232) )
goto LABEL_346;
LABEL_111:
v58 = (const char *)(*a1 + 6697);
if ( (*(_BYTE *)(*a1 + 6696) & 1) != 0 )
v58 = *(const char **)(*a1 + 6712);
v59 = atoi(v58) != 0;
LABEL_114:
*(_BYTE *)(v17 + 1151) = v59;
if ( *(_QWORD *)(*a2 + 2192) )
{
v60 = *a1;
v150 = 0;
v151 = 0;
v61 = v60 + 6576;
v152 = nullptr;
if ( (*(_BYTE *)(v60 + 6576) & 1) != 0 )
{
std::string::__init(&v150, *(void **)(v60 + 6592), *(_QWORD *)(v60 + 6584));
}
else
{
v62 = *(_QWORD *)v61;
v63 = *(_QWORD *)(v61 + 8);
v152 = *(void **)(v61 + 16);
v150 = v62;
v151 = v63;
}
}
else
{
v150 = 0;
v151 = 0;
v152 = nullptr;
std::string::__init(&v150, &byte_11B8890, 0);
}
if ( (v150 & 1) != 0 )
{
if ( a3 && v151 )
{
v153 = 0;
v154 = 0;
v155 = nullptr;
std::string::__init(&v153, v152, v151);
goto LABEL_121;
}
}
else if ( (int)(unsigned __int8)v150 >> 1 && a3 )
{
v153 = v150;
v154 = v151;
v155 = v152;
LABEL_121:
GJBaseGameLayer::loadGroupParentsFromString(a3, v17, &v153);
if ( (v153 & 1) != 0 )
operator delete(v155);
v64 = *a2;
if ( !*(_QWORD *)(*a2 + 1024) )
goto LABEL_290;
goto LABEL_124;
}
*(_BYTE *)(v17 + 1170) = 0;
v64 = *a2;
if ( !*(_QWORD *)(*a2 + 1024) )
goto LABEL_290;
LABEL_124:
v65 = (const char *)(*a1 + 3073);
if ( (*(_BYTE *)(*a1 + 3072) & 1) != 0 )
v65 = *(const char **)(*a1 + 3088);
v66 = atof(v65);
if ( !__isnanf(v66) )
{
v67 = 1315859240;
if ( v66 > 1000000000.0 || (v67 = -831624408, v66 < -1000000000.0) )
{
v66 = *(float *)&v67;
if ( !*(_QWORD *)(*a2 + 1032) )
{
LABEL_325:
v69 = 0.0;
goto LABEL_326;
}
}
else if ( !*(_QWORD *)(*a2 + 1032) )
{
LABEL_322:
if ( v66 == 0.0 )
{
LABEL_323:
v64 = *a2;
goto LABEL_291;
}
goto LABEL_325;
}
LABEL_130:
v68 = (const char *)(*a1 + 3097);
if ( (*(_BYTE *)(*a1 + 3096) & 1) != 0 )
v68 = *(const char **)(*a1 + 3112);
v69 = atof(v68);
if ( !__isnanf(v69) )
{
v70 = 1315859240;
if ( v69 > 1000000000.0 || (v70 = -831624408, v69 < -1000000000.0) )
{
v69 = *(float *)&v70;
if ( v66 == 0.0 )
goto LABEL_340;
}
else if ( v66 == 0.0 )
{
goto LABEL_136;
}
LABEL_326:
GameObject::updateCustomScaleX((GameObject *)v17, v66);
LABEL_136:
if ( v69 == 0.0 )
{
v71 = v66 == 0.0;
goto LABEL_138;
}
LABEL_340:
GameObject::updateCustomScaleY((GameObject *)v17, v69);
v71 = v69 == 0.0 && v66 == 0.0;
LABEL_138:
if ( !v71 )
goto LABEL_139;
goto LABEL_323;
}
goto LABEL_322;
}
v64 = *a2;
LABEL_290:
v66 = 0.0;
if ( *(_QWORD *)(v64 + 1032) )
goto LABEL_130;
LABEL_291:
if ( *(_QWORD *)(v64 + 256) )
{
v124 = (const char *)(*a1 + 769);
if ( (*(_BYTE *)(*a1 + 768) & 1) != 0 )
v124 = *(const char **)(*a1 + 784);
v125 = atof(v124);
if ( !__isnanf(v125) )
{
v126 = 1315859240;
if ( v125 > 1000000000.0 || (v126 = -831624408, v125 < -1000000000.0) )
{
v125 = *(float *)&v126;
}
else if ( v125 == 0.0 )
{
goto LABEL_139;
}
GameObject::updateCustomScaleX((GameObject *)v17, v125);
GameObject::updateCustomScaleY((GameObject *)v17, v125);
}
}
LABEL_139:
*(_QWORD *)(v17 + 980) = *(_QWORD *)(v17 + 1152);
v72 = *(_QWORD *)(*a2 + 512);
if ( v72 )
{
v73 = (const char *)(*a1 + 1537);
if ( (*(_BYTE *)(*a1 + 1536) & 1) != 0 )
v73 = *(const char **)(*a1 + 1552);
LOBYTE(v72) = atoi(v73) != 0;
}
*(_BYTE *)(v17 + 1043) = v72;
if ( *(_QWORD *)(*a2 + 536) )
{
v74 = (const char *)(*a1 + 1609);
if ( (*(_BYTE *)(*a1 + 1608) & 1) != 0 )
v74 = *(const char **)(*a1 + 1624);
v75 = atoi(v74) != 0;
}
else
{
v75 = 0;
}
*(_BYTE *)(v17 + 1042) = v75;
if ( !*(_QWORD *)(*a2 + 928) )
{
*(_BYTE *)(v17 + 1044) = 0;
if ( *(_QWORD *)(*a2 + 4056) )
goto LABEL_151;
LABEL_372:
*(_BYTE *)(v17 + 1045) = 0;
if ( *(_QWORD *)(*a2 + 1240) )
goto LABEL_154;
LABEL_373:
*(_DWORD *)(v17 + 1320) = 0;
if ( *(_QWORD *)(*a2 + 1248) )
goto LABEL_157;
LABEL_374:
*(_DWORD *)(v17 + 1324) = 0;
if ( *(_QWORD *)(*a2 + 1072) )
goto LABEL_160;
LABEL_375:
*(_BYTE *)(v17 + 1293) = 0;
if ( *(_QWORD *)(*a2 + 1080) )
goto LABEL_163;
LABEL_376:
*(_BYTE *)(v17 + 1294) = 0;
if ( *(_QWORD *)(*a2 + 1088) )
goto LABEL_166;
LABEL_377:
*(_BYTE *)(v17 + 1295) = 0;
if ( *(_QWORD *)(*a2 + 2312) )
goto LABEL_169;
LABEL_378:
*(_BYTE *)(v17 + 1296) = 0;
if ( *(_QWORD *)(*a2 + 3960) )
goto LABEL_172;
LABEL_379:
*(_BYTE *)(v17 + 1300) = 0;
if ( *(_QWORD *)(*a2 + 3968) )
goto LABEL_175;
LABEL_380:
*(_BYTE *)(v17 + 1301) = 0;
if ( *(_QWORD *)(*a2 + 4072) )
goto LABEL_178;
LABEL_381:
*(_BYTE *)(v17 + 1302) = 0;
if ( *(_QWORD *)(*a2 + 2848) )
goto LABEL_181;
LABEL_382:
*(_BYTE *)(v17 + 1299) = 0;
if ( *(_QWORD *)(*a2 + 1096) )
goto LABEL_184;
LABEL_383:
*(_BYTE *)(v17 + 1297) = 0;
if ( *(_QWORD *)(*a2 + 1544) )
goto LABEL_187;
LABEL_384:
*(_BYTE *)(v17 + 1298) = 0;
if ( *(_QWORD *)(*a2 + 2976) )
goto LABEL_190;
LABEL_385:
*(_BYTE *)(v17 + 969) = 0;
if ( *(_QWORD *)(*a2 + 3976) )
goto LABEL_193;
goto LABEL_386;
}
v76 = (const char *)(*a1 + 2785);
if ( (*(_BYTE *)(*a1 + 2784) & 1) != 0 )
v76 = *(const char **)(*a1 + 2800);
*(_BYTE *)(v17 + 1044) = atoi(v76) != 0;
if ( !*(_QWORD *)(*a2 + 4056) )
goto LABEL_372;
LABEL_151:
v77 = (const char *)(*a1 + 12169);
if ( (*(_BYTE *)(*a1 + 12168) & 1) != 0 )
v77 = *(const char **)(*a1 + 12184);
*(_BYTE *)(v17 + 1045) = atoi(v77) != 0;
if ( !*(_QWORD *)(*a2 + 1240) )
goto LABEL_373;
LABEL_154:
v78 = (const char *)(*a1 + 3721);
if ( (*(_BYTE *)(*a1 + 3720) & 1) != 0 )
v78 = *(const char **)(*a1 + 3736);
*(_DWORD *)(v17 + 1320) = atoi(v78);
if ( !*(_QWORD *)(*a2 + 1248) )
goto LABEL_374;
LABEL_157:
v79 = (const char *)(*a1 + 3745);
if ( (*(_BYTE *)(*a1 + 3744) & 1) != 0 )
v79 = *(const char **)(*a1 + 3760);
*(_DWORD *)(v17 + 1324) = atoi(v79);
if ( !*(_QWORD *)(*a2 + 1072) )
goto LABEL_375;
LABEL_160:
v80 = (const char *)(*a1 + 3217);
if ( (*(_BYTE *)(*a1 + 3216) & 1) != 0 )
v80 = *(const char **)(*a1 + 3232);
*(_BYTE *)(v17 + 1293) = atoi(v80) != 0;
if ( !*(_QWORD *)(*a2 + 1080) )
goto LABEL_376;
LABEL_163:
v81 = (const char *)(*a1 + 3241);
if ( (*(_BYTE *)(*a1 + 3240) & 1) != 0 )
v81 = *(const char **)(*a1 + 3256);
*(_BYTE *)(v17 + 1294) = atoi(v81) != 0;
if ( !*(_QWORD *)(*a2 + 1088) )
goto LABEL_377;
LABEL_166:
v82 = (const char *)(*a1 + 3265);
if ( (*(_BYTE *)(*a1 + 3264) & 1) != 0 )
v82 = *(const char **)(*a1 + 3280);
*(_BYTE *)(v17 + 1295) = atoi(v82) != 0;
if ( !*(_QWORD *)(*a2 + 2312) )
goto LABEL_378;
LABEL_169:
v83 = (const char *)(*a1 + 6937);
if ( (*(_BYTE *)(*a1 + 6936) & 1) != 0 )
v83 = *(const char **)(*a1 + 6952);
*(_BYTE *)(v17 + 1296) = atoi(v83) != 0;
if ( !*(_QWORD *)(*a2 + 3960) )
goto LABEL_379;
LABEL_172:
v84 = (const char *)(*a1 + 11881);
if ( (*(_BYTE *)(*a1 + 11880) & 1) != 0 )
v84 = *(const char **)(*a1 + 11896);
*(_BYTE *)(v17 + 1300) = atoi(v84) != 0;
if ( !*(_QWORD *)(*a2 + 3968) )
goto LABEL_380;
LABEL_175:
v85 = (const char *)(*a1 + 11905);
if ( (*(_BYTE *)(*a1 + 11904) & 1) != 0 )
v85 = *(const char **)(*a1 + 11920);
*(_BYTE *)(v17 + 1301) = atoi(v85) != 0;
if ( !*(_QWORD *)(*a2 + 4072) )
goto LABEL_381;
LABEL_178:
v86 = (const char *)(*a1 + 12217);
if ( (*(_BYTE *)(*a1 + 12216) & 1) != 0 )
v86 = *(const char **)(*a1 + 12232);
*(_BYTE *)(v17 + 1302) = atoi(v86) != 0;
if ( !*(_QWORD *)(*a2 + 2848) )
goto LABEL_382;
LABEL_181:
v87 = (const char *)(*a1 + 8545);
if ( (*(_BYTE *)(*a1 + 8544) & 1) != 0 )
v87 = *(const char **)(*a1 + 8560);
*(_BYTE *)(v17 + 1299) = atoi(v87) != 0;
if ( !*(_QWORD *)(*a2 + 1096) )
goto LABEL_383;
LABEL_184:
v88 = (const char *)(*a1 + 3289);
if ( (*(_BYTE *)(*a1 + 3288) & 1) != 0 )
v88 = *(const char **)(*a1 + 3304);
*(_BYTE *)(v17 + 1297) = atoi(v88) != 0;
if ( !*(_QWORD *)(*a2 + 1544) )
goto LABEL_384;
LABEL_187:
v89 = (const char *)(*a1 + 4633);
if ( (*(_BYTE *)(*a1 + 4632) & 1) != 0 )
v89 = *(const char **)(*a1 + 4648);
*(_BYTE *)(v17 + 1298) = atoi(v89) != 0;
if ( !*(_QWORD *)(*a2 + 2976) )
goto LABEL_385;
LABEL_190:
v90 = (const char *)(*a1 + 8929);
if ( (*(_BYTE *)(*a1 + 8928) & 1) != 0 )
v90 = *(const char **)(*a1 + 8944);
*(_BYTE *)(v17 + 969) = atoi(v90) != 0;
if ( *(_QWORD *)(*a2 + 3976) )
{
LABEL_193:
v91 = (const char *)(*a1 + 11929);
if ( (*(_BYTE *)(*a1 + 11928) & 1) != 0 )
v91 = *(const char **)(*a1 + 11944);
*(_WORD *)(v17 + 1040) = atoi(v91);
if ( *(_QWORD *)(*a2 + 4088) )
goto LABEL_196;
LABEL_387:
v93 = 0;
goto LABEL_199;
}
LABEL_386:
*(_WORD *)(v17 + 1040) = 0;
if ( !*(_QWORD *)(*a2 + 4088) )
goto LABEL_387;
LABEL_196:
v92 = (const char *)(*a1 + 12265);
if ( (*(_BYTE *)(*a1 + 12264) & 1) != 0 )
v92 = *(const char **)(*a1 + 12280);
v93 = atoi(v92) != 0;
LABEL_199:
v94 = *(_QWORD *)v17;
*(_BYTE *)(v17 + 636) = v93;
(*(void (__fastcall **)(__int64))(v94 + 1264))(v17);
(*(void (__fastcall **)(__int64, __int64 *, __int64 *))(*(_QWORD *)v17 + 1384LL))(v17, a1, a2);
v156 = 0;
v157 = 0;
v158 = nullptr;
if ( (v141 & 1) != 0 )
{
std::string::__init(&v156, v143, v142);
}
else
{
v158 = v143;
v156 = v141;
v157 = v142;
}
GameObject::addGlow(v17, (__int64)&v156);
if ( (v156 & 1) != 0 )
operator delete(v158);
v159 = 0;
v160 = 0;
v161 = nullptr;
if ( (v141 & 1) != 0 )
{
std::string::__init(&v159, v143, v142);
}
else
{
v161 = v143;
v159 = v141;
v160 = v142;
}
GameObject::addColorSprite((cocos2d::CCObject **)v17, (unsigned __int8 *)&v159);
if ( (v159 & 1) != 0 )
{
operator delete(v161);
v95 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v17 + 1272LL);
v162 = 0;
v163 = 0;
v164 = nullptr;
if ( (v141 & 1) == 0 )
goto LABEL_207;
}
else
{
v95 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v17 + 1272LL);
v162 = 0;
v163 = 0;
v164 = nullptr;
if ( (v141 & 1) == 0 )
{
LABEL_207:
v164 = v143;
v162 = v141;
v163 = v142;
goto LABEL_208;
}
}
std::string::__init(&v162, v143, v142);
LABEL_208:
v95(v17, &v162);
if ( (v162 & 1) != 0 )
operator delete(v164);
(*(void (__fastcall **)(__int64, _BOOL4))(*(_QWORD *)v17 + 1240LL))(v17, v139);
(*(void (__fastcall **)(__int64, _BOOL4))(*(_QWORD *)v17 + 1248LL))(v17, v137);
*(_BYTE *)(v17 + 996) = v139;
*(_BYTE *)(v17 + 997) = v137;
*(_WORD *)(v17 + 1202) = v136;
*(_WORD *)(v17 + 1204) = v33;
if ( *(_QWORD *)(*a2 + 768) )
{
v96 = (const char *)(*a1 + 2305);
if ( (*(_BYTE *)(*a1 + 2304) & 1) != 0 )
v96 = *(const char **)(*a1 + 2320);
v97 = atoi(v96) != 0;
}
else
{
v97 = 0;
}
*(_BYTE *)(v17 + 1020) = v97;
if ( !(unsigned __int8)GameObject::canRotateFree((GameObject *)v17) && (int)v30 % 90 && !*(_BYTE *)(v17 + 1214) )
v30 = 0.0;
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v17 + 360LL))(v17, v30);
*(float *)(v17 + 972) = v30;
*(float *)(v17 + 976) = v30;
v98 = *a2;
if ( !*(_QWORD *)(*a2 + 1048) )
{
LABEL_316:
v100 = 0.0;
if ( !*(_QWORD *)(v98 + 1056) )
goto LABEL_231;
goto LABEL_225;
}
v99 = (const char *)(*a1 + 3145);
if ( (*(_BYTE *)(*a1 + 3144) & 1) != 0 )
v99 = *(const char **)(*a1 + 3160);
v100 = atof(v99);
if ( __isnanf(v100) )
{
v98 = *a2;
goto LABEL_316;
}
v101 = 1315859240;
if ( v100 <= 1000000000.0 )
{
v101 = -831624408;
if ( v100 >= -1000000000.0 )
{
if ( !*(_QWORD *)(*a2 + 1056) )
{
LABEL_318:
v103 = 0.0;
if ( v100 == 0.0 )
goto LABEL_231;
goto LABEL_319;
}
LABEL_225:
v102 = (const char *)(*a1 + 3169);
if ( (*(_BYTE *)(*a1 + 3168) & 1) != 0 )
v102 = *(const char **)(*a1 + 3184);
v103 = atof(v102);
if ( !__isnanf(v103) )
{
v104 = 1315859240;
if ( v103 > 1000000000.0 || (v104 = -831624408, v103 < -1000000000.0) )
v103 = *(float *)&v104;
if ( v100 == v103 )
goto LABEL_231;
goto LABEL_319;
}
goto LABEL_318;
}
}
v100 = *(float *)&v101;
v103 = 0.0;
if ( *(_QWORD *)(*a2 + 1056) )
goto LABEL_225;
LABEL_319:
if ( (unsigned __int8)GameObject::canRotateFree((GameObject *)v17) )
{
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v17 + 376LL))(v17, v100);
v132 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v17 + 384LL))(v17);
v133 = *(_QWORD *)v17;
*(float *)(v17 + 972) = v132;
(*(void (__fastcall **)(__int64, float))(v133 + 392))(v17, v103);
*(float *)(v17 + 976) = (*(float (__fastcall **)(__int64))(*(_QWORD *)v17 + 400LL))(v17);
if ( (_DWORD)v14 != 142 )
goto LABEL_232;
LABEL_321:
EnhancedGameObject::updateUserCoin((EnhancedGameObject *)v17);
goto LABEL_232;
}
LABEL_231:
if ( (_DWORD)v14 == 142 )
goto LABEL_321;
LABEL_232:
v105 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v17 + 1368LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v140, v23, v26);
v105(v17, v140);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v17 + 1352LL))(v17);
if ( v13 != -1 )
{
if ( v13 == 717 )
{
*(_DWORD *)(v17 + 1024) = 2;
}
else if ( v13 > 717 )
{
if ( v13 == 718 )
{
*(_DWORD *)(v17 + 1024) = 3;
}
else if ( v13 == 743 )
{
*(_DWORD *)(v17 + 1024) = 4;
}
}
else if ( v13 == 104 )
{
*(_BYTE *)(v17 + 1487) = 1;
}
else if ( v13 == 221 )
{
*(_DWORD *)(v17 + 1024) = 1;
}
}
v106 = (_QWORD *)*a2;
if ( *(_QWORD *)(*a2 + 328) )
{
v107 = *a1;
v108 = (const char *)(*a1 + 985);
if ( (*(_BYTE *)(*a1 + 984) & 1) != 0 )
v108 = *(const char **)(v107 + 1000);
if ( atoi(v108) )
{
if ( v106[43] )
{
v162 = 0;
v163 = 0;
v164 = nullptr;
if ( (*(_BYTE *)(v107 + 1032) & 1) != 0 )
{
std::string::__init(&v162, *(void **)(v107 + 1048), *(_QWORD *)(v107 + 1040));
}
else
{
v109 = *(_QWORD *)(v107 + 1040);
v162 = *(_QWORD *)(v107 + 1032);
v163 = v109;
v164 = *(void **)(v107 + 1048);
}
}
else
{
v162 = 0;
v163 = 0;
v164 = nullptr;
std::string::__init(&v162, &byte_11B8890, 0);
}
v110 = GameToolbox::hsvFromString((__int64)&v162, &byte_120B870);
if ( *(float *)&v110 != *(float *)&qword_155C670
|| *((float *)&v110 + 1) != *((float *)&qword_155C670 + 1)
|| *(float *)&v111 != *(float *)&qword_155C678
|| WORD2(v111) != WORD2(qword_155C678) )
{
*(_BYTE *)(*(_QWORD *)(v17 + 1096) + 32LL) = 1;
v112 = *(_QWORD *)(v17 + 1096);
*(_QWORD *)(v112 + 16) = v110;
*(_QWORD *)(v112 + 24) = v111;
}
if ( (v162 & 1) != 0 )
operator delete(v164);
v106 = (_QWORD *)*a2;
}
}
if ( v106[42] )
{
v113 = *a1;
v114 = (const char *)(*a1 + 1009);
if ( (*(_BYTE *)(*a1 + 1008) & 1) != 0 )
v114 = *(const char **)(v113 + 1024);
if ( atoi(v114) && *(_QWORD *)(v17 + 1104) )
{
if ( v106[44] )
{
v162 = 0;
v163 = 0;
v164 = nullptr;
if ( (*(_BYTE *)(v113 + 1056) & 1) != 0 )
{
std::string::__init(&v162, *(void **)(v113 + 1072), *(_QWORD *)(v113 + 1064));
}
else
{
v115 = *(_QWORD *)(v113 + 1064);
v162 = *(_QWORD *)(v113 + 1056);
v163 = v115;
v164 = *(void **)(v113 + 1072);
}
}
else
{
v162 = 0;
v163 = 0;
v164 = nullptr;
std::string::__init(&v162, &byte_11B8890, 0);
}
v116 = GameToolbox::hsvFromString((__int64)&v162, &byte_120B870);
if ( *(float *)&v116 != *(float *)&qword_155C670
|| *((float *)&v116 + 1) != *((float *)&qword_155C670 + 1)
|| *(float *)&v117 != *(float *)&qword_155C678
|| WORD2(v117) != WORD2(qword_155C678) )
{
*(_BYTE *)(*(_QWORD *)(v17 + 1104) + 32LL) = 1;
v118 = *(_QWORD *)(v17 + 1104);
*(_QWORD *)(v118 + 16) = v116;
*(_QWORD *)(v118 + 24) = v117;
}
if ( (v162 & 1) != 0 )
operator delete(v164);
v106 = (_QWORD *)*a2;
}
}
if ( !v106[19] )
goto LABEL_419;
v119 = (const char *)(*a1 + 457);
if ( (*(_BYTE *)(*a1 + 456) & 1) != 0 )
v119 = *(const char **)(*a1 + 472);
v120 = atoi(v119);
if ( v120 )
{
v121 = v120 - 1;
if ( v121 <= 7 )
{
v122 = dword_1141620[v121];
if ( v122 )
{
v123 = *(int **)(v17 + 1104);
if ( !v123 )
v123 = *(int **)(v17 + 1096);
if ( v122 < 0 )
v122 = 0;
*v123 = v122;
}
}
}
else
{
LABEL_419:
if ( v106[21] )
{
v127 = (const char *)(*a1 + 505);
if ( (*(_BYTE *)(*a1 + 504) & 1) != 0 )
v127 = *(const char **)(*a1 + 520);
v128 = atoi(v127);
if ( v128 <= 1100 )
{
if ( v128 < 0 )
v128 = 0;
if ( v128 )
{
**(_DWORD **)(v17 + 1096) = v128;
v106 = (_QWORD *)*a2;
}
}
else
{
**(_DWORD **)(v17 + 1096) = 1101;
v106 = (_QWORD *)*a2;
}
}
if ( v106[22] )
{
v129 = (const char *)(*a1 + 529);
if ( (*(_BYTE *)(*a1 + 528) & 1) != 0 )
v129 = *(const char **)(*a1 + 544);
v130 = atoi(v129);
if ( v130 <= 1100 )
{
if ( v130 < 0 )
v130 = 0;
if ( v130 )
{
v134 = *(int **)(v17 + 1104);
if ( v134 )
*v134 = v130;
}
}
else
{
v131 = *(_DWORD **)(v17 + 1104);
if ( v131 )
*v131 = 1101;
}
}
}
(*(void (__fastcall **)(__int64))(*(_QWORD *)v17 + 1616LL))(v17);
GameObject::resetRScaleForced((GameObject *)v17);
if ( (v150 & 1) != 0 )
operator delete(v152);
if ( (v144 & 1) != 0 )
operator delete(v146);
if ( (v141 & 1) != 0 )
operator delete(v143);
return v17;
}