//
// EndTriggerGameObject::triggerObject from 0x1001bcbb0 to 0x1001bcc56 (166 bytes)
//
// 1 xrefs:
// > ??> @ 0x100ad5fd0
//
// 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 12:26:14 +0000
//
void __fastcall EndTriggerGameObject::triggerObject(__int64 a1, __int64 a2, __int64 a3, __int64 a4)
{
const void *v4; // r15
signed __int64 v5; // r12
void *__p[2]; // [rsp+0h] [rbp-40h] BYREF
char *v7; // [rsp+10h] [rbp-30h]
if ( a4 )
{
*(_OWORD *)__p = 0;
v7 = nullptr;
v4 = *(const void **)a4;
v5 = *(_QWORD *)(a4 + 8) - *(_QWORD *)a4;
if ( v5 )
{
if ( v5 < 0 )
sub_100093980();
__p[0] = operator new(v5);
v7 = (char *)__p[0] + v5;
memcpy(__p[0], v4, v5);
__p[1] = (char *)__p[0] + v5;
}
}
else
{
*(_OWORD *)__p = 0;
v7 = nullptr;
}
(*(void (__fastcall **)(__int64, __int64, void **, double))(*(_QWORD *)a2 + 1280LL))(a2, a1, __p, 0.0);
if ( __p[0] )
{
__p[1] = __p[0];
operator delete(__p[0]);
}
}