//
// GJEffectManager::storeTriggeredID from 0x1002d4060 to 0x1002d4120 (192 bytes)
//
// 3 xrefs:
// > GJBaseGameLayer::collisionCheckObjects @ 0x100104ae0
// > GJBaseGameLayer::collisionCheckObjects @ 0x1001054d8
// > GJBaseGameLayer::playerTouchedTrigger @ 0x10010612d
//
// 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:28:14 +0000
//
void __fastcall GJEffectManager::storeTriggeredID(__int64 a1, signed int a2, signed int a3)
{
__int64 **v3; // rax
__int64 **v4; // r13
__int64 **v5; // r12
unsigned __int64 v6; // r14
__int64 *v7; // rax
__int64 v8; // rcx
v3 = *(__int64 ***)(a1 + 1080);
if ( v3 )
{
while ( 1 )
{
v5 = v3;
if ( *((_DWORD *)v3 + 7) > a2 )
goto LABEL_3;
if ( *((_DWORD *)v3 + 7) < a2 )
{
LABEL_8:
v3 = (__int64 **)v3[1];
if ( !v3 )
{
v4 = v5 + 1;
goto LABEL_10;
}
}
else
{
if ( *((_DWORD *)v3 + 8) <= a3 )
{
if ( *((_DWORD *)v3 + 8) >= a3 )
return;
goto LABEL_8;
}
LABEL_3:
v3 = (__int64 **)*v3;
v4 = v5;
if ( !*v5 )
goto LABEL_10;
}
}
}
v4 = (__int64 **)(a1 + 1080);
v5 = (__int64 **)(a1 + 1080);
LABEL_10:
v6 = (unsigned __int64)(unsigned int)a3 << 32;
v7 = (__int64 *)operator new(0x28u);
*(__int64 *)((char *)v7 + 28) = v6 | (unsigned int)a2;
*(_OWORD *)v7 = 0;
v7[2] = (__int64)v5;
*v4 = v7;
v8 = **(_QWORD **)(a1 + 1072);
if ( v8 )
*(_QWORD *)(a1 + 1072) = v8;
sub_10001B680(*(__int64 **)(a1 + 1080), v7);
++*(_QWORD *)(a1 + 1088);
}