//
// RandTriggerGameObject::triggerObject from 0x898e78 to 0x898f98 (288 bytes)
//
// 2 xrefs:
// > ??> @ 0xcf4a8
// > ??> @ 0x144d240
//
// 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 RandTriggerGameObject::triggerObject(__int64 a1, GJEffectManager **a2, int a3, const void **a4)
{
unsigned int RandomGroupID; // w23
void *v9; // [xsp+50h] [xbp+50h] BYREF
char *v10; // [xsp+58h] [xbp+58h]
__int64 v11; // [xsp+60h] [xbp+60h]
if ( *(_DWORD *)(a1 + 1028) == 2068 )
{
RandomGroupID = RandTriggerGameObject::getRandomGroupID((unsigned int **)a1);
if ( a4 )
{
std::vector::vector((__int64 *)&v9, a4);
}
else
{
v9 = nullptr;
v10 = nullptr;
v11 = 0;
}
GJBaseGameLayer::spawnGroupTriggered(
a2,
RandomGroupID,
0,
&v9,
*(unsigned int *)(a1 + 916),
*(unsigned int *)(a1 + 1672),
0.0);
if ( v9 )
{
if ( v9 != v10 )
v10 += 4 * ~((unsigned __int64)(v10 - 4 - (_BYTE *)v9) >> 2);
operator delete(v9);
}
}
else
{
EffectGameObject::triggerObject((SFXTriggerGameObject *)a1, a2, a3, a4);
}
return _stack_chk_guard;
}