//
// GJBaseGameLayer::playerWasTouchingObject from 0x100129fd0 to 0x10012a019 (73 bytes)
//
// 0 xrefs:
//
// 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 __fastcall GJBaseGameLayer::playerWasTouchingObject(GJBaseGameLayer *a1, PlayerObject *a2, GameObject *a3)
{
std::__tree_end_node *>::pointer left; // rax
int m_uniqueID; // ecx
int v5; // edx
int v6; // esi
int v7; // esi
left = a1->m_gameState.m_activatedObjectIDs.__tree_.__pair1_.__value_.__left_;
if ( left )
{
m_uniqueID = a3->m_uniqueID;
v5 = a2->m_uniqueID;
while ( 1 )
{
v6 = *((_DWORD *)left + 7);
if ( m_uniqueID >= v6 )
{
if ( m_uniqueID <= v6 )
{
v7 = *((_DWORD *)left + 8);
if ( v5 < v7 )
goto LABEL_4;
if ( v5 <= v7 )
return 1;
}
left = (std::__tree_end_node *>::pointer)((char *)left + 8);
}
LABEL_4:
left = *(std::__tree_end_node *>::pointer *)left;
if ( !left )
return 0;
}
}
return 0;
}