// // GJEffectManager::spawnGroup from 0x5c801c to 0x5c8184 (360 bytes) // // 2 xrefs: // > GJBaseGameLayer::spawnGroupTriggered @ 0x58fb92 // > GJEffectManager::prepareMoveActions @ 0x5ce39e // // 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:54 +0000 // _DWORD *__fastcall GJEffectManager::spawnGroup(_DWORD *result, int a2, float a3, char a4, char **a5, int a6, int a7) { _DWORD *v9; // r5 unsigned int v10; // r4 double v11; // d8 unsigned int v12; // r8 int v13; // r3 int v14; // r0 int v15; // r2 unsigned int v16; // r1 int v17; // r4 _DWORD v18[2]; // [sp+0h] [bp-1Ch] BYREF int v19; // [sp+8h] [bp-14h] v9 = result; if ( a2 > 0 ) { v10 = result[169]; v11 = a3; v12 = result[170]; if ( v10 >= v12 ) { v13 = (int)(result + 170); v14 = result[168]; v15 = -1227133513 * ((int)(v10 - v14) >> 3); v16 = v15 + 1; if ( (unsigned int)(v15 + 1) > 0x4924924 ) sub_388B90(); if ( (unsigned int)(-1227133513 * ((int)(v12 - v14) >> 3)) > 0x2492491 ) { v16 = 76695844; } else if ( v16 < 1840700270 * ((int)(v12 - v14) >> 3) ) { v16 = 1840700270 * ((int)(v12 - v14) >> 3); } std::__split_buffer::__split_buffer(v18, v16, v15, v13); v17 = v19; if ( v19 ) { *(_BYTE *)(v19 + 36) = a4; *(_BYTE *)v17 = 0; *(_BYTE *)(v17 + 1) = 0; *(_QWORD *)(v17 + 16) = 0; *(_DWORD *)(v17 + 28) = 0; *(_DWORD *)(v17 + 32) = 0; *(_DWORD *)(v17 + 40) = 0; *(_DWORD *)(v17 + 44) = 0; *(_DWORD *)(v17 + 48) = 0; *(_DWORD *)(v17 + 52) = 0; *(_DWORD *)(v17 + 24) = a2; *(double *)(v17 + 8) = v11; if ( (char **)(v17 + 44) != a5 ) std::vector::assign((_DWORD *)(v17 + 44), *a5, a5[1]); *(_DWORD *)(v17 + 32) = a7; *(_DWORD *)(v17 + 28) = a6; } v19 += 56; std::vector::__swap_out_circular_buffer(v9 + 168, v18); return (_DWORD *)std::__split_buffer::~__split_buffer((int)v18); } else { if ( v10 ) { result = nullptr; *(_BYTE *)v10 = 0; *(_BYTE *)(v10 + 1) = 0; *(_QWORD *)(v10 + 16) = 0; *(_DWORD *)(v10 + 28) = 0; *(_DWORD *)(v10 + 32) = 0; *(_DWORD *)(v10 + 40) = 0; *(_DWORD *)(v10 + 44) = 0; *(_DWORD *)(v10 + 48) = 0; *(_DWORD *)(v10 + 52) = 0; *(_DWORD *)(v10 + 24) = a2; *(double *)(v10 + 8) = v11; *(_BYTE *)(v10 + 36) = a4; if ( (char **)(v10 + 44) != a5 ) result = std::vector::assign((_DWORD *)(v10 + 44), *a5, a5[1]); *(_DWORD *)(v10 + 32) = a7; *(_DWORD *)(v10 + 28) = a6; } v9[169] += 56; } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source