// // GJBaseGameLayer::checkSpawnObjects from 0x5a8c28 to 0x5a8dec (452 bytes) // // 6 xrefs: // > PlayLayer::setupHasCompleted @ 0x40a87c // > PlayLayer::resetLevel @ 0x412892 // > LevelEditorLayer::onPlaytest @ 0x468474 // > GJBaseGameLayer::loadUpToPosition @ 0x5bcaa8 // > GJBaseGameLayer::loadUpToPosition @ 0x5bcab6 // > GJBaseGameLayer::update @ 0x5bdfe6 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:53:23 +0000 // int __fastcall GJBaseGameLayer::checkSpawnObjects(GJBaseGameLayer *this) { _BYTE *v2; // r0 float v3; // s15 const cocos2d::CCPoint *v4; // r0 int ActiveOrderSpawnObjects; // r0 cocos2d::CCArray *v6; // r5 int v7; // r10 int v8; // r3 _BYTE *v9; // r0 int v10; // r5 const cocos2d::CCPoint *v11; // r1 float v12; // s15 float v13; // s14 _BOOL4 v14; // r3 int v15; // r3 float v16; // s15 float v17; // s14 _DWORD *v18; // r0 void *v20; // [sp+0h] [bp-2Ch] unsigned int v21; // [sp+4h] [bp-28h] unsigned int v22; // [sp+Ch] [bp-20h] BYREF float v23; // [sp+10h] [bp-1Ch] BYREF float v24; // [sp+14h] [bp-18h] char *v25; // [sp+18h] [bp-14h] BYREF float v26; // [sp+1Ch] [bp-10h] int v27; // [sp+20h] [bp-Ch] v2 = *((_BYTE **)this + 519); v20 = &_stack_chk_guard; if ( v2[2320] ) { v3 = *((double *)this + 99); (*(void (__fastcall **)(float *, GJBaseGameLayer *, _DWORD))(*(_DWORD *)this + 708))(&v23, this, LODWORD(v3)); } else { v4 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(_BYTE *))(*(_DWORD *)v2 + 96))(v2); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v23, v4); } do { ActiveOrderSpawnObjects = GJBaseGameLayer::getActiveOrderSpawnObjects(this); v22 = *((_DWORD *)this + 183); v6 = (cocos2d::CCArray *)ActiveOrderSpawnObjects; v21 = *std::unordered_map::operator[]((int)this + 740, &v22); v7 = *(unsigned __int8 *)std::unordered_map::operator[]((int)this + 760, &v22); if ( cocos2d::CCArray::count(v6) <= v21 ) { LABEL_5: v8 = 0; continue; } v9 = (_BYTE *)cocos2d::CCArray::objectAtIndex(v6, v21); v10 = (int)v9; if ( v9[1292] ) { if ( !v9[1263] ) goto LABEL_5; v15 = 1; goto LABEL_20; } v11 = (const cocos2d::CCPoint *)(v9 + 1600); if ( *((_BYTE *)this + 10614) ) goto LABEL_13; if ( !*(_BYTE *)(*((_DWORD *)this + 519) + 1963) ) { if ( !v7 ) { LABEL_13: cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v25, v11); v12 = v23; v13 = *(float *)&v25; goto LABEL_11; } cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v25, v11); v16 = v23; v17 = *(float *)&v25; LABEL_17: v14 = v17 >= v16; goto LABEL_18; } if ( v7 ) { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v25, v11); v16 = v24; v17 = v26; goto LABEL_17; } cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v25, v11); v12 = v24; v13 = v26; LABEL_11: v14 = v13 <= v12; LABEL_18: if ( !v14 ) goto LABEL_5; v15 = 0; LABEL_20: if ( !*(_BYTE *)(v10 + 550) && !v15 && (!*((_BYTE *)this + 11181) || !*(_BYTE *)(v10 + 1095)) ) { if ( *(_DWORD *)(v10 + 892) == 1268 ) { v25 = nullptr; v26 = 0.0; v27 = 0; SpawnTriggerGameObject::updateRemapKeys(v10, &v25); std::__vector_base::~__vector_base(&v25); } (*(void (__fastcall **)(int, GJBaseGameLayer *, _DWORD, _DWORD, void *))(*(_DWORD *)v10 + 648))( v10, this, 0, 0, v20); } v18 = std::unordered_map::operator[]((int)this + 740, &v22); ++*v18; v8 = 1; } while ( !*((_BYTE *)this + 11140) && v8 ); return (*(int (__fastcall **)(GJBaseGameLayer *, _DWORD))(*(_DWORD *)this + 736))(this, *((_DWORD *)this + 180)); }
GD Web Decomp Icon

GD Web Decomp

Raw Source