//
// GJEffectManager::registerCollisionTrigger from 0x140366710 to 0x140366819 (265 bytes)
//
// 4 xrefs:
// > EffectGameObject::triggerObject @ 0x140648ade
// > EffectGameObject::triggerObject @ 0x140648bb0
// > EffectGameObject::triggerObject @ 0x140648c71
// > ??> @ 0x140921764
//
// 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 11:30:55 +0000
//
// Hidden C++ exception states: #wind=1
__int64 __fastcall GJEffectManager::registerCollisionTrigger(
__int64 a1,
int a2,
unsigned int a3,
unsigned int a4,
unsigned __int8 a5,
char a6,
char **a7,
int a8,
int a9)
{
unsigned int v10; // esi
__int64 v11; // rdi
__int64 v12; // rbx
__int64 result; // rax
int v14; // [rsp+88h] [rbp+10h] BYREF
unsigned int v15; // [rsp+90h] [rbp+18h] BYREF
unsigned int v16; // [rsp+98h] [rbp+20h] BYREF
v16 = a4;
v15 = a3;
v14 = a2;
v10 = a3;
v11 = a1 + 584;
v12 = *(_QWORD *)(a1 + 592);
if ( v12 == *(_QWORD *)(a1 + 600) )
return sub_1403741E0(
(int)a1 + 584,
v12,
(unsigned int)&v14,
(unsigned int)&v15,
(__int64)&v16,
(__int64)&a6,
(__int64)&a5,
(__int64)a7,
(__int64)&a8,
(__int64)&a9);
*(_BYTE *)v12 = 0;
*(_QWORD *)(v12 + 4) = 0;
*(_QWORD *)(v12 + 32) = 0;
*(_QWORD *)(v12 + 40) = 0;
*(_QWORD *)(v12 + 48) = 0;
*(_DWORD *)(v12 + 12) = a2;
*(_DWORD *)(v12 + 24) = a8;
*(_DWORD *)(v12 + 28) = a9;
*(_BYTE *)(v12 + 20) = a6;
*(_DWORD *)(v12 + 16) = a5;
sub_140099FC0((void **)(v12 + 32), a7);
result = a4;
if ( (int)v10 < (int)a4 )
{
result = v10;
v10 = a4;
}
*(_DWORD *)(v12 + 4) = v10;
*(_DWORD *)(v12 + 8) = result;
*(_QWORD *)(v11 + 8) += 56LL;
return result;
}