//
// LevelEditorLayer::resetDelayedSpawnNodes from 0x79528c to 0x795370 (228 bytes)
//
// 2 xrefs:
// > LevelEditorLayer::updateGameObjects @ 0x79e4a8
// > ??> @ 0x104d58
//
// This function is hookable on this platform (idp: arm, 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:53:33 +0000
//
__int64 __fastcall LevelEditorLayer::resetDelayedSpawnNodes(LevelEditorLayer *this)
{
__int64 *v2; // x19
__int64 *v3; // x22
_QWORD *v4; // x3
_QWORD *v5; // x0
__int64 v6; // x2
__int64 v7; // x2
__int64 v8; // x1
__int64 v10; // [xsp+50h] [xbp+50h] BYREF
v2 = *((__int64 **)this + 1856);
v3 = *((__int64 **)this + 1857);
if ( v2 != v3 )
{
do
{
v4 = *((_QWORD **)this + 1861);
v5 = *((_QWORD **)this + 1860);
v6 = *v2;
v10 = *v2;
if ( v5 == v4 )
{
std::vector::__push_back_slow_path((__int64)this + 14872, &v10);
}
else
{
if ( v5 )
{
*v5 = v6;
v5 = *((_QWORD **)this + 1860);
}
*((_QWORD *)this + 1860) = v5 + 1;
}
++v2;
}
while ( v3 != v2 );
v7 = *((_QWORD *)this + 1856);
v8 = *((_QWORD *)this + 1857);
if ( v8 != v7 )
*((_QWORD *)this + 1857) = v8 + 8 * ~((unsigned __int64)(v8 - 8 - v7) >> 3);
}
return _stack_chk_guard;
}