// // GJBaseGameLayer::checkSpawnObjects from 0x9c960c to 0x9c98e8 (732 bytes) // // 7 xrefs: // > PlayLayer::setupHasCompleted @ 0x7082d8 // > PlayLayer::resetLevel @ 0x711b58 // > LevelEditorLayer::onPlaytest @ 0x796878 // > GJBaseGameLayer::loadUpToPosition @ 0x9ebe58 // > GJBaseGameLayer::loadUpToPosition @ 0x9ebe68 // > GJBaseGameLayer::update @ 0x9ee054 // > @ 0xa7140 // // 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:58:35 +0000 // __int64 __fastcall GJBaseGameLayer::checkSpawnObjects(GJBaseGameLayer *this) { _BYTE *v2; // x1 float v3; // s0 cocos2d::CCArray *ActiveOrderSpawnObjects; // x20 unsigned int v5; // w26 int v6; // w23 __int64 v8; // x20 _BOOL4 v9; // w0 _DWORD *v10; // x0 const cocos2d::CCPoint *v11; // x1 const cocos2d::CCPoint *v12; // x0 int v13; // [xsp+74h] [xbp+74h] BYREF __int64 v14; // [xsp+78h] [xbp+78h] BYREF void *v15; // [xsp+80h] [xbp+80h] BYREF char *v16; // [xsp+88h] [xbp+88h] __int64 v17; // [xsp+90h] [xbp+90h] v2 = *((_BYTE **)this + 407); if ( v2[2832] ) { v3 = *((double *)this + 116); (*(void (__fastcall **)(__int64 *__return_ptr, float))(*(_QWORD *)this + 1416LL))(&v14, v3); } else { v12 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)v2 + 192LL))(*((_QWORD *)this + 407)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v14, v12); } do { ActiveOrderSpawnObjects = (cocos2d::CCArray *)GJBaseGameLayer::getActiveOrderSpawnObjects((cocos2d::CCDictionary **)this); v13 = *((_DWORD *)this + 207); v5 = *(_DWORD *)std::unordered_map::operator[]((__int64)this + 840, &v13); v6 = *(unsigned __int8 *)std::unordered_map::operator[]((__int64)this + 880, &v13); if ( (unsigned int)cocos2d::CCArray::count(ActiveOrderSpawnObjects) <= v5 ) break; v8 = cocos2d::CCArray::objectAtIndex(ActiveOrderSpawnObjects, v5); if ( !*(_BYTE *)(v8 + 1472) ) { if ( *((_BYTE *)this + 12238) ) { v11 = (const cocos2d::CCPoint *)(v8 + 1784); } else { if ( *(_BYTE *)(*((_QWORD *)this + 407) + 2427LL) ) { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v15, (const cocos2d::CCPoint *)(v8 + 1784)); if ( v6 ) v9 = *((float *)&v15 + 1) >= *((float *)&v14 + 1); else v9 = *((float *)&v15 + 1) <= *((float *)&v14 + 1); goto LABEL_10; } v11 = (const cocos2d::CCPoint *)(v8 + 1784); if ( v6 ) { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v15, v11); v9 = *(float *)&v15 >= *(float *)&v14; LABEL_10: if ( !v9 ) break; if ( !*(_BYTE *)(v8 + 650) && (!*((_BYTE *)this + 13169) || !*(_BYTE *)(v8 + 1259)) ) { if ( *(_DWORD *)(v8 + 1028) == 1268 ) { v15 = nullptr; v16 = nullptr; v17 = 0; SpawnTriggerGameObject::updateRemapKeys(v8, (char **)&v15); if ( v15 ) { if ( v15 != v16 ) v16 += 4 * ~((unsigned __int64)(v16 - 4 - (_BYTE *)v15) >> 2); operator delete(v15); } } (*(void (__fastcall **)(__int64, GJBaseGameLayer *, _QWORD, _QWORD))(*(_QWORD *)v8 + 1296LL))( v8, this, 0, 0); } goto LABEL_16; } } cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v15, v11); v9 = *(float *)&v15 <= *(float *)&v14; goto LABEL_10; } if ( !*(_BYTE *)(v8 + 1443) ) break; LABEL_16: v10 = (_DWORD *)std::unordered_map::operator[]((__int64)this + 840, &v13); ++*v10; } while ( !*((_BYTE *)this + 13096) ); (*(void (__fastcall **)(GJBaseGameLayer *, float))(*(_QWORD *)this + 1472LL))(this, *((float *)this + 204)); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source