//
// GJBaseGameLayer::checkCollision from 0x140219090 to 0x140219162 (210 bytes)
//
// 2 xrefs:
// > EffectGameObject::triggerObject @ 0x1404a7c55
// > EffectGameObject::triggerObject @ 0x1404a7c7b
//
// 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
//
bool GJBaseGameLayer::checkCollision(GJBaseGameLayer *a1, int a2, int a3)
{
GJEffectManager *m_effectManager; // r9
int v4; // eax
int v5; // ecx
int v6; // r8d
std::_Simple_types>>>>::value_type *v7; // rcx
std::_List_unchecked_const_iterator>>, std::_Iterator_base0>::_Nodeptr Ptr; // rax
std::_List_unchecked_const_iterator>>, std::_Iterator_base0>::_Nodeptr v9; // rcx
m_effectManager = a1->m_effectManager;
if ( a2 <= 10001 )
{
v4 = a2;
if ( a2 <= a3 )
v4 = a3;
v5 = 10000 * v4;
if ( a2 >= a3 )
a2 = a3;
v6 = v5 + a2 + 10000000;
v7 = &m_effectManager->m_unkMap288._Vec._Mypair._Myval2._Myfirst[2
* ((0x100000001B3LL
* (HIBYTE(v6)
^ (0x100000001B3LL
* (BYTE2(v6)
^ (0x100000001B3LL
* ((unsigned __int8)((unsigned __int16)(v5 + a2 - 27008) >> 8)
^ (0x100000001B3LL
* ((unsigned __int8)(v5 + a2 + 0x80)
^ 0xCBF29CE484222325uLL))))))))
& m_effectManager->m_unkMap288._Mask)];
Ptr = v7[1]._Ptr;
if ( Ptr != m_effectManager->m_unkMap288._List._Mypair._Myval2._Myhead )
{
v9 = v7->_Ptr;
if ( v6 == *((_DWORD *)Ptr + 4) )
return Ptr != nullptr;
while ( Ptr != v9 )
{
Ptr = *((std::_List_unchecked_const_iterator>>, std::_Iterator_base0>::_Nodeptr *)Ptr
+ 1);
if ( v6 == *((_DWORD *)Ptr + 4) )
return Ptr != nullptr;
}
}
Ptr = nullptr;
return Ptr != nullptr;
}
return 0;
}