//
// PlayerObject::updateCollideLeft from 0x140394200 to 0x140394297 (151 bytes)
//
// 4 xrefs:
// > PlayerObject::collidedWithObjectInternal @ 0x140393572
// > PlayerObject::updateCollide @ 0x14039409b
// > ??> @ 0x1406d62b4
// > ??> @ 0x1406d62c0
//
// 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::updateCollideLeft(PlayerObject *a1, float a2, GameObject *a3)
{
int m_uniqueID; // eax
double m_collidedLeftMaxX; // xmm1_8
double v8; // xmm2_8
cocos2d::CCDictionary *m_collisionLogLeft; // rcx
if ( a3 )
m_uniqueID = a3->m_uniqueID;
else
m_uniqueID = 0;
m_collidedLeftMaxX = a1->m_collidedLeftMaxX;
v8 = a2;
if ( m_collidedLeftMaxX != 0.0 )
v8 = fmax(m_collidedLeftMaxX, v8);
a1->m_collidedLeftMaxX = v8;
if ( m_uniqueID )
{
if ( m_uniqueID != a1->m_lastCollisionLeft )
{
a1->m_lastCollisionLeft = m_uniqueID;
m_collisionLogLeft = a1->m_collisionLogLeft;
if ( m_collisionLogLeft )
cocos2d::CCDictionary::setObject(m_collisionLogLeft, a1->m_maybeLastGroundObject, m_uniqueID);
}
a1->m_collidingWithLeft = a3;
a1->m_collidingWithRight = nullptr;
}
}