//
// SpawnTriggerGameObject::triggerObject from 0x1001b3dd0 to 0x1001b3e8a (186 bytes)
//
// 1 xrefs:
// > ??> @ 0x100acac28
//
// This function is hookable on this platform (idp: pc, 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:26:11 +0000
//
__int64 __fastcall SpawnTriggerGameObject::triggerObject(__int64 a1, __int64 a2)
{
float v2; // xmm2_4
float v3; // xmm0_4
__int64 result; // rax
v2 = *(float *)(a1 + 1904);
if ( a2 && *(float *)(a1 + 1908) != 0.0 && (*(_BYTE *)(a2 + 12236) != 1 || *(_DWORD *)(a2 + 1972) == 1) )
v2 = fmaxf(0.0, *(float *)(a1 + 1904) + (float)(GameToolbox::fast_rand_minus1_1() * *(float *)(a1 + 1908)));
v3 = v2 - *(double *)(a1 + 1896);
result = GJBaseGameLayer::spawnGroupTriggered(a2, *(unsigned int *)(a1 + 1464), *(_BYTE *)(a1 + 1666), v3);
*(_QWORD *)(a1 + 1896) = 0;
return result;
}