//
// ItemTriggerGameObject::triggerObject from 0x89948c to 0x8995b8 (300 bytes)
//
// 2 xrefs:
// > ??> @ 0x9d3c0
// > ??> @ 0x1454320
//
// 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 ItemTriggerGameObject::triggerObject(
ItemTriggerGameObject *a1,
GJBaseGameLayer *this,
int a3,
const void **a4)
{
int v5; // w4
void *v7; // [xsp+40h] [xbp+40h] BYREF
char *v8; // [xsp+48h] [xbp+48h]
__int64 v9; // [xsp+50h] [xbp+50h]
v5 = *((_DWORD *)a1 + 257);
switch ( v5 )
{
case 3620:
if ( a4 )
{
std::vector::vector((__int64 *)&v7, a4);
}
else
{
v7 = nullptr;
v8 = nullptr;
v9 = 0;
}
GJBaseGameLayer::activateItemCompareTrigger(this);
if ( v7 )
{
if ( v7 != v8 )
v8 += 4 * ~((unsigned __int64)(v8 - 4 - (_BYTE *)v7) >> 2);
operator delete(v7);
}
break;
case 3641:
GJBaseGameLayer::activatePersistentItemTrigger(this, a1);
break;
case 3619:
GJBaseGameLayer::activateItemEditTrigger(this, a1);
break;
default:
EffectGameObject::triggerObject(a1, (GJEffectManager **)this, a3, a4);
break;
}
return _stack_chk_guard;
}