//
// GJBaseGameLayer::spawnObjectsInOrder from 0x10010a770 to 0x10010a8dc (364 bytes)
//
// 1 xrefs:
// > GJBaseGameLayer::spawnGroup @ 0x10010a6c8
//
// 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 12:21:33 +0000
//
void __fastcall GJBaseGameLayer::spawnObjectsInOrder(
__int64 a1,
__int64 a2,
__int64 a3,
unsigned int a4,
unsigned int a5,
double a6)
{
unsigned int *v6; // rax
_QWORD *v7; // rbx
unsigned __int64 v8; // r14
char v9; // r15
__int64 v10; // r13
float v11; // xmm0_4
float v12; // xmm0_4
float v17; // [rsp+24h] [rbp-2Ch]
if ( a2 )
{
if ( !*(_BYTE *)(a1 + 13096) )
{
v6 = *(unsigned int **)(a2 + 56);
if ( *v6 )
{
v7 = *((_QWORD **)v6 + 2);
v8 = (unsigned __int64)&v7[*v6 - 1];
v9 = 0;
v17 = 0.0;
do
{
v10 = *v7;
if ( !*v7 )
return;
if ( *(_DWORD *)(v10 + 1248) == 1 )
{
if ( !(unsigned __int8)GameObject::isSpawnableTrigger(*v7) )
goto LABEL_18;
}
else if ( *(_DWORD *)(v10 + 1028) != 2065 || *(_BYTE *)(v10 + 1417) != 1 )
{
goto LABEL_18;
}
v11 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v10 + 192LL))(v10);
if ( (v9 & 1) == 0 )
{
v17 = v11;
LABEL_17:
(*(void (__fastcall **)(__int64, __int64, __int64, double))(*(_QWORD *)a1 + 1264LL))(a1, v10, a3, 0.0);
v9 = 1;
if ( *(_BYTE *)(a1 + 13096) )
return;
goto LABEL_18;
}
v12 = (float)(v11 - v17) / 311.5801086425781 - a6;
if ( v12 <= 0.0 )
goto LABEL_17;
GJEffectManager::spawnObject(*(_QWORD *)(a1 + 2152), v10, a3, a4, a5);
v9 = 1;
if ( *(_BYTE *)(a1 + 13096) )
return;
LABEL_18:
++v7;
}
while ( (unsigned __int64)v7 <= v8 );
}
}
}
}