// // SpawnTriggerGameObject::customObjectSetup from 0x89c00c to 0x89c3e8 (988 bytes) // // 2 xrefs: // > @ 0xab4a8 // > @ 0x14502f8 // // 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:56:12 +0000 // __int64 __fastcall SpawnTriggerGameObject::customObjectSetup(__int64 a1, __int64 *a2, __int64 a3) { const char *v6; // x0 int v7; // w0 float v8; // s8 int v9; // s0 const char *v10; // x0 float v11; // s8 int v12; // s0 const char *v13; // x0 const char *v14; // x0 const char *v15; // x0 bool v16; // w0 __int64 v17; // x0 __int64 v18; // x2 __int64 v19; // x0 __int64 v20; // x1 cocos2d::CCArray *v22; // x20 unsigned int v23; // w19 cocos2d::CCString *v24; // x0 cocos2d::CCString *v25; // x0 int v26; // w0 _DWORD *v27; // x1 unsigned __int64 v28; // x2 int v29; // w2 int v30; // [xsp+58h] [xbp+58h] BYREF int v31; // [xsp+5Ch] [xbp+5Ch] BYREF __int64 v32; // [xsp+60h] [xbp+60h] BYREF __int64 v33; // [xsp+68h] [xbp+68h] void *v34; // [xsp+70h] [xbp+70h] EffectGameObject::customObjectSetup(a1, a2, a3); if ( *(_QWORD *)(*(_QWORD *)a3 + 408LL) ) { v6 = (const char *)(*a2 + 1225); if ( (*(_BYTE *)(*a2 + 1224) & 1) != 0 ) v6 = *(const char **)(*a2 + 1240); v7 = atoi(v6); } else { v7 = 0; } *(_DWORD *)(a1 + 1464) = v7; if ( !*(_QWORD *)(*(_QWORD *)a3 + 504LL) ) goto LABEL_35; if ( (*(_BYTE *)(*a2 + 1512) & 1) != 0 ) { v8 = atof(*(const char **)(*a2 + 1528)); if ( !__isnanf(v8) ) goto LABEL_8; LABEL_35: *(_DWORD *)(a1 + 1904) = 0; if ( !*(_QWORD *)(*(_QWORD *)a3 + 4448LL) ) goto LABEL_36; goto LABEL_12; } v8 = atof((const char *)(*a2 + 1513)); if ( __isnanf(v8) ) goto LABEL_35; LABEL_8: v9 = 1315859240; if ( v8 > 1000000000.0 || (v9 = -831624408, v8 < -1000000000.0) ) v8 = *(float *)&v9; *(float *)(a1 + 1904) = v8; if ( !*(_QWORD *)(*(_QWORD *)a3 + 4448LL) ) { LABEL_36: *(_DWORD *)(a1 + 1908) = 0; if ( *(_QWORD *)(*(_QWORD *)a3 + 816LL) ) goto LABEL_18; LABEL_37: *(_BYTE *)(a1 + 1665) = 0; if ( *(_QWORD *)(*(_QWORD *)a3 + 3528LL) ) goto LABEL_21; goto LABEL_38; } LABEL_12: v10 = (const char *)(*a2 + 13345); if ( (*(_BYTE *)(*a2 + 13344) & 1) != 0 ) v10 = *(const char **)(*a2 + 13360); v11 = atof(v10); if ( __isnanf(v11) ) goto LABEL_36; v12 = 1315859240; if ( v11 > 1000000000.0 || (v12 = -831624408, v11 < -1000000000.0) ) v11 = *(float *)&v12; *(float *)(a1 + 1908) = v11; if ( !*(_QWORD *)(*(_QWORD *)a3 + 816LL) ) goto LABEL_37; LABEL_18: v13 = (const char *)(*a2 + 2449); if ( (*(_BYTE *)(*a2 + 2448) & 1) != 0 ) v13 = *(const char **)(*a2 + 2464); *(_BYTE *)(a1 + 1665) = atoi(v13) != 0; if ( *(_QWORD *)(*(_QWORD *)a3 + 3528LL) ) { LABEL_21: v14 = (const char *)(*a2 + 10585); if ( (*(_BYTE *)(*a2 + 10584) & 1) != 0 ) v14 = *(const char **)(*a2 + 10600); *(_BYTE *)(a1 + 1666) = atoi(v14) != 0; if ( *(_QWORD *)(*(_QWORD *)a3 + 4648LL) ) goto LABEL_24; LABEL_39: v16 = 0; goto LABEL_27; } LABEL_38: *(_BYTE *)(a1 + 1666) = 0; if ( !*(_QWORD *)(*(_QWORD *)a3 + 4648LL) ) goto LABEL_39; LABEL_24: v15 = (const char *)(*a2 + 13945); if ( (*(_BYTE *)(*a2 + 13944) & 1) != 0 ) v15 = *(const char **)(*a2 + 13960); v16 = atoi(v15) != 0; LABEL_27: *(_BYTE *)(a1 + 1912) = v16; if ( *(_QWORD *)(*(_QWORD *)a3 + 3536LL) ) { v17 = *a2; v32 = 0; v33 = 0; v18 = v17 + 10608; v34 = nullptr; if ( (*(_BYTE *)(v17 + 10608) & 1) != 0 ) { std::string::__init(&v32, *(void **)(v17 + 10624), *(_QWORD *)(v17 + 10616)); } else { v19 = *(_QWORD *)v18; v20 = *(_QWORD *)(v18 + 8); v34 = *(void **)(v18 + 16); v32 = v19; v33 = v20; } } else { v32 = 0; v33 = 0; v34 = nullptr; std::string::__init(&v32, &byte_11B8890, 0); } if ( (v32 & 1) != 0 ) { if ( !v33 ) { LABEL_32: operator delete(v34); return _stack_chk_guard; } } else if ( !((int)(unsigned __int8)v32 >> 1) ) { return _stack_chk_guard; } v22 = sub_897954((unsigned __int8 *)&v32); v23 = 0; while ( v23 < (unsigned int)cocos2d::CCArray::count(v22) ) { v24 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v22, v23); v30 = cocos2d::CCString::intValue(v24); v25 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v22, v23 + 1); v26 = cocos2d::CCString::intValue(v25); v27 = *(_DWORD **)(a1 + 1848); v28 = *(_QWORD *)(a1 + 1856); v31 = v26; if ( (unsigned __int64)v27 >= v28 ) { std::vector::__emplace_back_slow_path((__int16 **)(a1 + 1840), &v30, &v31); v23 += 2; } else { v29 = v30; if ( v27 ) { *v27 = v30; v27[1] = v29; v27[2] = v26; v27[3] = 0; v27 = *(_DWORD **)(a1 + 1848); } v23 += 2; *(_QWORD *)(a1 + 1848) = v27 + 4; } } if ( (v32 & 1) != 0 ) goto LABEL_32; return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source