//
// GJEffectManager::spawnGroup from 0x14036c4f0 to 0x14036c5de (238 bytes)
//
// 3 xrefs:
// > GJEffectManager::prepareMoveActions @ 0x14036abc0
// > SpawnTriggerGameObject::triggerObject @ 0x14065a359
// > ??> @ 0x1409219c8
//
// This function is hookable on this platform (idp: pc, 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 11:30:57 +0000
//
// Hidden C++ exception states: #wind=1
__int64 __fastcall GJEffectManager::spawnGroup(
__int64 a1,
int a2,
float a3,
char a4,
char **a5,
int a6,
unsigned int a7)
{
__int64 v7; // rdi
__int64 v8; // rbx
__int64 result; // rax
int v10; // [rsp+68h] [rbp+10h] BYREF
float v11; // [rsp+70h] [rbp+18h] BYREF
char v12; // [rsp+78h] [rbp+20h] BYREF
if ( a2 > 0 )
{
v12 = a4;
v11 = a3;
v10 = a2;
v7 = a1 + 1456;
v8 = *(_QWORD *)(a1 + 1464);
if ( v8 == *(_QWORD *)(a1 + 1472) )
{
return sub_140374F40(
(int)a1 + 1456,
v8,
(unsigned int)&v10,
(unsigned int)&v11,
(__int64)&v12,
(__int64)a5,
(__int64)&a6,
(__int64)&a7);
}
else
{
*(_WORD *)v8 = 0;
*(_QWORD *)(v8 + 16) = 0;
*(_QWORD *)(v8 + 28) = 0;
*(_QWORD *)(v8 + 40) = 0;
*(_QWORD *)(v8 + 48) = 0;
*(_QWORD *)(v8 + 56) = 0;
*(_QWORD *)(v8 + 64) = 0;
*(_DWORD *)(v8 + 24) = a2;
*(double *)(v8 + 8) = a3;
*(_BYTE *)(v8 + 36) = a4;
sub_140099FC0((void **)(v8 + 48), a5);
*(_DWORD *)(v8 + 28) = a6;
result = a7;
*(_DWORD *)(v8 + 32) = a7;
*(_QWORD *)(v7 + 8) += 72LL;
}
}
return result;
}