//
// GJEffectManager::postCollisionCheck from 0x14025c2e0 to 0x14025c421 (321 bytes)
//
// 5 xrefs:
// > GJBaseGameLayer::loadUpToPosition @ 0x140235c18
// > GJBaseGameLayer::update @ 0x14023883d
// > ??> @ 0x140684b4c
// > ??> @ 0x140684b5c
// > ??> @ 0x1406cfdc8
//
// 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
//
void GJEffectManager::postCollisionCheck(GJEffectManager *a1)
{
std::_List_val>>::_Nodeptr Myhead; // rax
_QWORD *v3; // rbx
_QWORD **v4; // rcx
std::_Simple_types>>>>::value_type *v5; // r8
std::_List_unchecked_const_iterator>>, std::_Iterator_base0>::_Nodeptr Ptr; // rax
std::_List_val>>::_Nodeptr v7; // rax
Myhead = a1->m_unkMap288._List._Mypair._Myval2._Myhead;
v3 = *(_QWORD **)Myhead;
if ( *(std::_List_val>>::_Nodeptr *)Myhead != Myhead )
{
do
{
if ( *((_BYTE *)v3 + 20) )
{
v3 = (_QWORD *)*v3;
}
else
{
GJEffectManager::handleObjectCollision(
a1,
0,
(*((_DWORD *)v3 + 4) - 10000000) / 10000,
*((_DWORD *)v3 + 4) - 10000 * ((*((_DWORD *)v3 + 4) - 10000000) / 10000 + 1000));
v4 = (_QWORD **)v3;
v5 = &a1->m_unkMap288._Vec._Mypair._Myval2._Myfirst[2
* (a1->m_unkMap288._Mask
& (0x100000001B3LL
* (*((unsigned __int8 *)v3 + 19)
^ (0x100000001B3LL
* (*((unsigned __int8 *)v3 + 18)
^ (0x100000001B3LL
* (*((unsigned __int8 *)v3 + 17)
^ (0x100000001B3LL
* (*((unsigned __int8 *)v3 + 16)
^ 0xCBF29CE484222325uLL)))))))))];
Ptr = v5->_Ptr;
if ( (_QWORD *)v5[1]._Ptr == v3 )
{
if ( Ptr == (std::_List_unchecked_const_iterator>>, std::_Iterator_base0>::_Nodeptr)v3 )
{
v7 = a1->m_unkMap288._List._Mypair._Myval2._Myhead;
v5->_Ptr = v7;
}
else
{
v7 = (std::_List_val>>::_Nodeptr)v3[1];
}
v5[1]._Ptr = v7;
}
else if ( Ptr == (std::_List_unchecked_const_iterator>>, std::_Iterator_base0>::_Nodeptr)v3 )
{
v5->_Ptr = *(std::_List_unchecked_const_iterator>>, std::_Iterator_base0>::_Nodeptr *)v3;
}
v3 = (_QWORD *)*v3;
--a1->m_unkMap288._List._Mypair._Myval2._Mysize;
*v4[1] = v3;
v3[1] = v4[1];
j_j_free(v4);
}
}
while ( v3 != (_QWORD *)a1->m_unkMap288._List._Mypair._Myval2._Myhead );
}
}