//
// SpawnTriggerGameObject::triggerObject from 0x86fee0 to 0x86ff94 (180 bytes)
//
// 2 xrefs:
// > ??> @ 0x57220
// > ??> @ 0x14502a0
//
// 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:55:45 +0000
//
double __fastcall SpawnTriggerGameObject::triggerObject(__int64 a1, GameToolbox *this)
{
GameToolbox *v3; // x0
float v4; // s8
float v5; // s0
float v6; // s0
double v7; // d0
float v8; // s0
v3 = this;
v4 = *(float *)(a1 + 1904);
if ( !this
|| *(float *)(a1 + 1908) == 0.0
|| *((unsigned __int8 *)this + 12236) > (unsigned int)(*((_DWORD *)this + 493) == 1) )
{
v7 = v4;
}
else
{
v5 = GameToolbox::fast_rand_minus1_1(this);
v3 = this;
v6 = v4 + (float)(v5 * *(float *)(a1 + 1908));
if ( v6 < 0.0 )
v7 = 0.0;
else
v7 = v6;
}
v8 = v7 - *(double *)(a1 + 1896);
GJBaseGameLayer::spawnGroupTriggered(
v3,
*(unsigned int *)(a1 + 1464),
*(unsigned __int8 *)(a1 + 1666),
a1 + 1872,
*(unsigned int *)(a1 + 916),
*(unsigned int *)(a1 + 1672),
v8);
*(_QWORD *)(a1 + 1896) = 0;
return 0.0;
}