// // GJBaseGameLayer::spawnGroup from 0x9c1064 to 0x9c1250 (492 bytes) // // 5 xrefs: // > `non-virtual thunk to'GJBaseGameLayer::spawnGroup @ 0x9c1254 // > @ 0x85a20 // > @ 0x1428928 // > @ 0x1435e88 // > @ 0x1475758 // // 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:29 +0000 // __int64 __fastcall GJBaseGameLayer::spawnGroup( __int64 a1, int a2, unsigned __int8 a3, _QWORD *a4, int a5, unsigned int a6, double a7) { int v8; // w23 char isGroupEnabled; // w0 unsigned int v13; // w4 __int64 v15; // x0 int v16; // w3 int v17; // w1 __int64 *v18; // x0 int v19; // w2 int v20; // w1 int v21; // w1 int v22; // w1 int v23; // w0 cocos2d::CCObject *Group; // x0 unsigned int *v25; // x1 _QWORD *v26; // x19 _QWORD *i; // x23 unsigned int v29; // [xsp+50h] [xbp+50h] unsigned int v31; // [xsp+58h] [xbp+58h] int v32[4]; // [xsp+68h] [xbp+68h] BYREF v8 = a3; isGroupEnabled = GJEffectManager::isGroupEnabled(*(GJEffectManager **)(a1 + 2152), a2); v13 = a5; if ( isGroupEnabled && !*(_BYTE *)(a1 + 13096) ) { v15 = a4[1]; if ( *a4 == v15 ) v16 = 0; else v16 = -*(_DWORD *)(v15 - 4); v17 = *(unsigned __int8 *)(a1 + 1979); v18 = *(__int64 **)(a1 + 4088); v32[0] = a2; if ( v17 ) v19 = a5; else v19 = 0; v32[2] = v16; v32[1] = v19; while ( 2 ) { if ( v18 ) { while ( 1 ) { v20 = *((_DWORD *)v18 + 7); if ( a2 >= v20 ) { if ( a2 > v20 ) goto LABEL_28; v21 = *((_DWORD *)v18 + 8); if ( v19 >= v21 ) { if ( v19 > v21 ) goto LABEL_28; v22 = *((_DWORD *)v18 + 9); if ( v16 >= v22 ) break; } } v18 = (__int64 *)*v18; if ( !v18 ) goto LABEL_20; } if ( v16 > v22 ) { LABEL_28: v18 = (__int64 *)v18[1]; continue; } v23 = *(_DWORD *)(a1 + 13092) + 1; *(_DWORD *)(a1 + 13092) = v23; if ( v23 > 10000 ) *(_BYTE *)(a1 + 13096) = 1; } else { LABEL_20: v29 = a6; v31 = v13; std::__tree>::__emplace_unique_key_args,std::tuple const&>( (__int64 **)(a1 + 4080), v32, (__int64)v32); Group = GJBaseGameLayer::getGroup((GJBaseGameLayer *)a1, a2); if ( v8 ) { GJBaseGameLayer::spawnObjectsInOrder(a1, (__int64)Group, (__int64)a4, v31, v29, a7); } else if ( Group ) { v25 = *((unsigned int **)Group + 7); if ( *v25 ) { v26 = *((_QWORD **)v25 + 2); for ( i = &v26[*v25 - 1]; i >= v26; ++v26 ) { if ( !*v26 ) break; (*(void (__fastcall **)(__int64, _QWORD, _QWORD *, double))(*(_QWORD *)a1 + 1264LL))(a1, *v26, a4, a7); if ( *(_BYTE *)(a1 + 13096) ) break; } } } } break; } } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source