//
// EndTriggerGameObject::triggerObject from 0x899288 to 0x899378 (240 bytes)
//
// 2 xrefs:
// > ??> @ 0xc7c90
// > ??> @ 0x14522e0
//
// 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:56:11 +0000
//
__int64 __fastcall EndTriggerGameObject::triggerObject(__int64 a1, __int64 a2, __int64 a3, const void **a4)
{
void (__fastcall *v6)(__int64, __int64, void **); // x21
void *v8; // [xsp+40h] [xbp+40h] BYREF
char *v9; // [xsp+48h] [xbp+48h]
__int64 v10; // [xsp+50h] [xbp+50h]
v6 = *(void (__fastcall **)(__int64, __int64, void **))(*(_QWORD *)a2 + 1280LL);
if ( a4 )
{
std::vector::vector((__int64 *)&v8, a4);
}
else
{
v8 = nullptr;
v9 = nullptr;
v10 = 0;
}
v6(a2, a1, &v8);
if ( v8 )
{
if ( v8 != v9 )
v9 += 4 * ~((unsigned __int64)(v9 - 4 - (_BYTE *)v8) >> 2);
operator delete(v8);
}
return _stack_chk_guard;
}