//
// GJBaseGameLayer::spawnObjectsInOrder from 0x10012cdc0 to 0x10012cef6 (310 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall GJBaseGameLayer::spawnObjectsInOrder(
GJBaseGameLayer *a1,
cocos2d::CCArray *a2,
double a3,
std::vector *const a4,
int a5,
int a6)
{
cocos2d::ccArray *data; // rax
GameObject **arr; // rbx
unsigned __int64 v8; // r14
char v9; // r15
GameObject *v10; // r13
float v11; // xmm0_4
float v12; // xmm0_4
float v17; // [rsp+24h] [rbp-2Ch]
if ( a2 )
{
data = a2->data;
if ( data->num )
{
arr = (GameObject **)data->arr;
v8 = (unsigned __int64)&arr[data->num - 1];
v9 = 0;
v17 = 0.0;
while ( 1 )
{
v10 = *arr;
if ( !*arr )
return;
if ( v10->m_classType == Effect )
{
if ( !GameObject::isSpawnableTrigger(*arr) )
goto LABEL_6;
}
else if ( v10->m_objectID != 2065 || BYTE1(v10[1].m_fScaleX) != 1 )
{
goto LABEL_6;
}
v11 = *(float *)((__int64 (__fastcall *)(GameObject *))v10->getPosition)(v10);
if ( (v9 & 1) == 0 )
break;
v12 = (float)(v11 - v17) / 311.5801086425781 - a3;
if ( v12 <= 0.0 )
goto LABEL_17;
GJEffectManager::spawnObject(a1->m_effectManager, v10, v12, a4, a5, a6);
LABEL_5:
v9 = 1;
LABEL_6:
if ( (unsigned __int64)++arr > v8 )
return;
}
v17 = v11;
LABEL_17:
((void (__fastcall *)(GJBaseGameLayer *, GameObject *, std::vector *const, double))a1->spawnObject)(
a1,
v10,
a4,
0.0);
goto LABEL_5;
}
}
}