//
// PlayerObject::updateCollideRight from 0x1403942a0 to 0x140394337 (151 bytes)
//
// 3 xrefs:
// > PlayerObject::collidedWithObjectInternal @ 0x1403934ae
// > PlayerObject::updateCollide @ 0x140394077
// > ??> @ 0x1406d62cc
//
// 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::updateCollideRight(PlayerObject *a1, float a2, GameObject *a3)
{
int m_uniqueID; // eax
double m_collidedRightMinX; // xmm1_8
double v8; // xmm2_8
cocos2d::CCDictionary *m_collisionLogRight; // rcx
if ( a3 )
m_uniqueID = a3->m_uniqueID;
else
m_uniqueID = 0;
m_collidedRightMinX = a1->m_collidedRightMinX;
v8 = a2;
if ( m_collidedRightMinX != 0.0 )
v8 = fmin(m_collidedRightMinX, v8);
a1->m_collidedRightMinX = v8;
if ( m_uniqueID )
{
if ( m_uniqueID != a1->m_lastCollisionRight )
{
a1->m_lastCollisionRight = m_uniqueID;
m_collisionLogRight = a1->m_collisionLogRight;
if ( m_collisionLogRight )
cocos2d::CCDictionary::setObject(m_collisionLogRight, a1->m_maybeLastGroundObject, m_uniqueID);
}
a1->m_collidingWithRight = a3;
a1->m_collidingWithLeft = nullptr;
}
}