//
// SpawnTriggerGameObject::triggerObject from 0x100435490 to 0x100435534 (164 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009508a0
//
// 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 11:05:08 +0000
//
__int64 __fastcall SpawnTriggerGameObject::triggerObject(__int64 a1, __int64 a2)
{
float v4; // s8
float v5; // s0
float v6; // s0
__int64 result; // x0
v4 = *(float *)(a1 + 1904);
if ( a2 && *(float *)(a1 + 1908) != 0.0 && (*(_BYTE *)(a2 + 12236) != 1 || *(_DWORD *)(a2 + 1972) == 1) )
{
v5 = v4 + (float)(sub_10004BDF0() * *(float *)(a1 + 1908));
if ( v5 >= 0.0 )
v4 = v5;
else
v4 = 0.0;
}
v6 = v4 - *(double *)(a1 + 1896);
result = GJBaseGameLayer::spawnGroupTriggered(
a2,
*(_DWORD *)(a1 + 1464),
*(_BYTE *)(a1 + 1666),
a1 + 1872,
*(_DWORD *)(a1 + 916),
*(_DWORD *)(a1 + 1672),
v6);
*(_QWORD *)(a1 + 1896) = 0;
return result;
}