//
// LevelEditorLayer::updateAnimateOnTriggerObjects from 0x140401000 to 0x140401086 (134 bytes)
//
// 5 xrefs:
// > LevelEditorLayer::onPlaytest @ 0x1403fec53
// > LevelEditorLayer::onStopPlaytest @ 0x1404004f2
// > ??> @ 0x1408c6b1c
// > ??> @ 0x1408c6b74
// > ??> @ 0x140925a84
//
// This function is hookable on this platform (idp: pc, 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 11:31:54 +0000
//
__int64 __fastcall LevelEditorLayer::updateAnimateOnTriggerObjects(__int64 a1, unsigned __int8 a2)
{
__int64 result; // rax
unsigned int *v4; // rbx
_QWORD *v5; // rbx
_QWORD *i; // rsi
__int64 v7; // rdi
result = *(_QWORD *)(a1 + 3536);
if ( result )
{
v4 = *(unsigned int **)(result + 56);
result = *v4;
if ( (_DWORD)result )
{
v5 = *((_QWORD **)v4 + 2);
for ( i = &v5[result - 1]; v5 <= i; ++v5 )
{
v7 = *v5;
if ( !*v5 )
break;
result = (*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)v7 + 1576LL))(*v5);
if ( (_BYTE)result )
result = (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v7 + 1704LL))(v7, a2);
}
}
}
return result;
}