//
// EndTriggerGameObject::triggerObject from 0x1001dbc00 to 0x1001dbca6 (166 bytes)
//
// 1 xrefs:
// > ??> @ 0x1008d27c0
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall EndTriggerGameObject::triggerObject(
EndTriggerGameObject *a1,
GJBaseGameLayer *a2,
int a3,
std::vector *const a4)
{
std::__vector_base::pointer begin; // 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;
begin = a4->__begin_;
v5 = (char *)a4->__end_ - (char *)a4->__begin_;
if ( v5 )
{
if ( v5 < 0 )
sub_1000C40D0();
__p[0] = operator new(v5);
v7 = (char *)__p[0] + v5;
memcpy(__p[0], begin, v5);
__p[1] = (char *)__p[0] + v5;
}
}
else
{
*(_OWORD *)__p = 0;
v7 = nullptr;
}
((void (__fastcall *)(GJBaseGameLayer *, EndTriggerGameObject *, void **, double))a2->activatePlatformerEndTrigger)(
a2,
a1,
__p,
0.0);
if ( __p[0] )
{
__p[1] = __p[0];
operator delete(__p[0]);
}
}