//
// LevelEditorLayer::getDelayedSpawnNode from 0x467604 to 0x467684 (128 bytes)
//
// 1 xrefs:
// > LevelEditorLayer::addDelayedSpawn @ 0x4676a0
//
// 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:48:57 +0000
//
int __fastcall LevelEditorLayer::getDelayedSpawnNode(LevelEditorLayer *this, int a2, int a3)
{
int v4; // r0
int v5; // r0
int v6; // t1
_DWORD *v7; // r2
_DWORD *v8; // r0
_DWORD *v9; // r3
_DWORD v11[3]; // [sp+0h] [bp-Ch] BYREF
v11[0] = this;
v11[1] = a2;
v11[2] = a3;
v4 = *((_DWORD *)this + 3062);
if ( *((_DWORD *)this + 3061) == v4 )
{
v8 = (_DWORD *)operator new(8u);
*v8 = 0;
v11[0] = v8;
v8[1] = 0;
}
else
{
v6 = *(_DWORD *)(v4 - 4);
v5 = v4 - 4;
v7 = (_DWORD *)((char *)this + 12248);
v11[0] = v6;
while ( v5 != *v7 )
*v7 -= 4;
}
v9 = *((_DWORD **)this + 3059);
if ( v9 == *((_DWORD **)this + 3060) )
{
std::vector::__push_back_slow_path((int)this + 12232, v11);
}
else
{
if ( v9 )
*v9 = v11[0];
*((_DWORD *)this + 3059) += 4;
}
return v11[0];
}