//
// PlayerObject::updateCollideBottom from 0x62332c to 0x62338c (96 bytes)
//
// 8 xrefs:
// > PlayerObject::updateCollide @ 0x624404
// > PlayerObject::collidedWithObjectInternal @ 0x62f538
// > PlayerObject::collidedWithObjectInternal @ 0x62f78c
// > PlayerObject::collidedWithObjectInternal @ 0x62ff84
// > PlayerObject::collidedWithObjectInternal @ 0x6301c0
// > PlayerObject::collidedWithObjectInternal @ 0x6301f0
// > PlayerObject::collidedWithObjectInternal @ 0x630328
// > ??> @ 0x2e5a8
//
// 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 PlayerObject::updateCollideBottom(PlayerObject *a1, float a2, GameObject *a3)
{
int m_uniqueID; // w2
double m_collidedBottomMaxY; // d1
double v5; // d0
if ( a3 )
m_uniqueID = a3->m_uniqueID;
else
m_uniqueID = 0;
m_collidedBottomMaxY = a1->m_collidedBottomMaxY;
if ( m_collidedBottomMaxY == 0.0 )
{
a1->m_collidedBottomMaxY = a2;
if ( !m_uniqueID )
return;
LABEL_10:
PlayerObject::storeCollision(a1, (PlayerCollisionDirection)1, m_uniqueID);
return;
}
v5 = a2;
if ( a1->m_isUpsideDown )
{
if ( m_collidedBottomMaxY > v5 )
m_collidedBottomMaxY = v5;
}
else if ( m_collidedBottomMaxY < v5 )
{
m_collidedBottomMaxY = v5;
}
a1->m_collidedBottomMaxY = m_collidedBottomMaxY;
if ( m_uniqueID )
goto LABEL_10;
}