//
// GJEffectManager::registerCollisionTrigger from 0x14025c430 to 0x14025c539 (265 bytes)
//
// 4 xrefs:
// > EffectGameObject::triggerObject @ 0x1404a6fd6
// > EffectGameObject::triggerObject @ 0x1404a70eb
// > EffectGameObject::triggerObject @ 0x1404a71b3
// > ??> @ 0x1406cfdec
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
// Hidden C++ exception states: #wind=1
void GJEffectManager::registerCollisionTrigger(
GJEffectManager *a1,
int a2,
int a3,
int a4,
bool a5,
bool a6,
std::vector *const a7,
int a8,
int a9)
{
int v9; // esi
std::vector *p_m_unkVector230; // rdi
std::_Vector_val>::pointer Mylast; // rbx
int v13; // eax
int v14; // [rsp+88h] [rbp+10h] BYREF
int v15; // [rsp+90h] [rbp+18h] BYREF
int v16; // [rsp+98h] [rbp+20h] BYREF
v16 = a4;
v15 = a3;
v14 = a2;
v9 = a4;
p_m_unkVector230 = &a1->m_unkVector230;
Mylast = a1->m_unkVector230._Mypair._Myval2._Mylast;
if ( Mylast == a1->m_unkVector230._Mypair._Myval2._Myend )
{
sub_14026B070(
(_DWORD)a1 + 584,
(_DWORD)Mylast,
(unsigned int)&v14,
(unsigned int)&v15,
(__int64)&v16,
(__int64)&a6,
(__int64)&a5,
(__int64)a7,
(__int64)&a8,
(__int64)&a9);
}
else
{
Mylast->m_disabled = 0;
*(_QWORD *)&Mylast->m_blockAID = 0;
Mylast->m_remapKeys._Mypair._Myval2._Myfirst = nullptr;
Mylast->m_remapKeys._Mypair._Myval2._Mylast = nullptr;
Mylast->m_remapKeys._Mypair._Myval2._Myend = nullptr;
Mylast->m_targetGroupID = a2;
Mylast->m_triggerUniqueID = a8;
Mylast->m_controlID = a9;
Mylast->m_activateGroup = a6;
Mylast->m_triggerOnExit = a5;
sub_1400846D0((void **)&Mylast->m_remapKeys._Mypair._Myval2._Myfirst, (char **)a7);
v13 = a3;
if ( a3 < v9 )
v13 = v9;
Mylast->m_blockAID = v13;
if ( a3 < v9 )
v9 = a3;
Mylast->m_blockBID = v9;
++p_m_unkVector230->_Mypair._Myval2._Mylast;
}
}