//
// GJEffectManager::spawnObject from 0x100014820 to 0x1000148a4 (132 bytes)
//
// 1 xrefs:
// > GJBaseGameLayer::spawnObjectsInOrder @ 0x1001ec38c
//
// 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 GJEffectManager::spawnObject(
GJEffectManager *a1,
GameObject *a2,
float a3,
std::vector *const a4,
int a5,
int a6)
{
std::__vector_base::pointer end; // x20
SpawnTriggerAction *v8; // x0
int v9; // [xsp+Ch] [xbp-24h] BYREF
int v10; // [xsp+10h] [xbp-20h] BYREF
float v11; // [xsp+14h] [xbp-1Ch] BYREF
GameObject *v12; // [xsp+18h] [xbp-18h] BYREF
v12 = a2;
v11 = a3;
v9 = a6;
v10 = a5;
if ( a2 )
{
end = a1->m_spawnTriggerActions.__end_;
if ( end >= a1->m_spawnTriggerActions.__end_cap_.__value_ )
{
v8 = (SpawnTriggerAction *)sub_10001BA00(&a1->m_spawnTriggerActions, &v12, &v11, a4, &v10, &v9);
}
else
{
sub_10001BB78(a1->m_spawnTriggerActions.__end_, a3);
v8 = end + 1;
a1->m_spawnTriggerActions.__end_ = end + 1;
}
a1->m_spawnTriggerActions.__end_ = v8;
}
}