//
// LevelEditorLayer::addDelayedSpawn from 0x795438 to 0x7954ac (116 bytes)
//
// 3 xrefs:
// > LevelEditorLayer::activateTriggerEffect @ 0x795858
// > LevelEditorLayer::spawnGroupPreview @ 0x795f30
// > ??> @ 0x97bd0
//
// 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
//
unsigned __int64 __fastcall LevelEditorLayer::addDelayedSpawn(LevelEditorLayer *this, EffectGameObject *a2, float a3)
{
char *v3; // x21
unsigned __int64 result; // x0
__int64 DelayedSpawnNode; // x0
v3 = (char *)this + 12288;
if ( !*((_BYTE *)this + 13169) || (result = *((unsigned __int8 *)a2 + 1259), !*((_BYTE *)a2 + 1259)) )
{
DelayedSpawnNode = LevelEditorLayer::getDelayedSpawnNode(this);
*(_QWORD *)DelayedSpawnNode = a2;
*(float *)(DelayedSpawnNode + 8) = a3;
result = *((_QWORD *)this + 1857) - *((_QWORD *)this + 1856);
if ( result > 0xF )
{
v3[1897] = 1;
return 1;
}
}
return result;
}