// // GJBaseGameLayer::spawnGroup from 0x5a4528 to 0x5a4648 (288 bytes) // // 1 xrefs: // > `non-virtual thunk to'GJBaseGameLayer::spawnGroup @ 0x5a4650 // // 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:19 +0000 // cocos2d::CCObject *__fastcall GJBaseGameLayer::spawnGroup( int a1, int a2, int a3, int a4, double a5, _DWORD *a6, int a7, int a8) { cocos2d::CCObject *result; // r0 int v12; // r3 int v13; // r2 int v14; // r2 bool v15; // zf _DWORD *v16; // r2 int v17; // r1 int v18; // r0 int v19; // r0 _DWORD *v20; // r2 int *v21; // r7 int *v22; // r8 int v23; // r1 int v24; // t1 int v25; // r3 _BYTE v26[8]; // [sp+10h] [bp-1Ch] BYREF int v27[3]; // [sp+18h] [bp-14h] BYREF result = (cocos2d::CCObject *)GJEffectManager::isGroupEnabled(*(GJEffectManager **)(a1 + 1524), a2); if ( !result ) return result; v12 = *(unsigned __int8 *)(a1 + 11140); if ( *(_BYTE *)(a1 + 11140) ) return result; v13 = a6[1]; if ( *a6 != v13 ) v12 = -*(_DWORD *)(v13 - 4); v14 = *(unsigned __int8 *)(a1 + 1435); v27[0] = a2; v15 = v14 == 0; v16 = *(_DWORD **)(a1 + 2520); v27[2] = v12; if ( v15 ) v17 = 0; else v17 = a7; v27[1] = v17; while ( v16 ) { v18 = v16[4]; if ( a2 < v18 ) goto LABEL_25; if ( v18 < a2 ) goto LABEL_26; v19 = v16[5]; if ( v17 < v19 ) goto LABEL_25; if ( v19 < v17 ) goto LABEL_26; result = (cocos2d::CCObject *)v16[6]; if ( v12 < (int)result ) { LABEL_25: v16 = (_DWORD *)*v16; } else { if ( (int)result >= v12 ) { v25 = *(_DWORD *)(a1 + 11136) + 1; *(_DWORD *)(a1 + 11136) = v25; if ( v25 > 10000 ) *(_BYTE *)(a1 + 11140) = 1; return result; } LABEL_26: v16 = (_DWORD *)v16[1]; } } std::__tree>::__emplace_unique_key_args,std::tuple const&>( (int)v26, (int **)(a1 + 2516), v27, v27); result = GJBaseGameLayer::getGroup((GJBaseGameLayer *)a1, a2); if ( a3 ) return (cocos2d::CCObject *)GJBaseGameLayer::spawnObjectsInOrder(a1, (int)result, a5, (int)a6, a7, a8); if ( result ) { v20 = *((_DWORD **)result + 13); if ( *v20 ) { v21 = (int *)v20[3]; v22 = &v21[*v20 - 1]; do { if ( v21 > v22 ) break; v24 = *v21++; v23 = v24; if ( !v24 ) break; result = (cocos2d::CCObject *)(*(int (__fastcall **)(int, int, _DWORD, _DWORD, _DWORD *))(*(_DWORD *)a1 + 632))( a1, v23, LODWORD(a5), HIDWORD(a5), a6); } while ( !*(_BYTE *)(a1 + 11140) ); } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source