//
// PlayerObject::updateCollideLeft from 0x1002249ac to 0x100224a28 (124 bytes)
//
// 2 xrefs:
// > PlayerObject::collidedWithObjectInternal @ 0x100222788
// > PlayerObject::updateCollide @ 0x100223eb8
//
// 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 __fastcall PlayerObject::updateCollideLeft(PlayerObject *a1, float a2, GameObject *a3)
{
int m_uniqueID; // w8
double m_collidedLeftMaxX; // d1
double v7; // d0
cocos2d::CCDictionary *m_collisionLogLeft; // x0
if ( a3 )
m_uniqueID = a3->m_uniqueID;
else
m_uniqueID = 0;
m_collidedLeftMaxX = a1->m_collidedLeftMaxX;
v7 = a2;
if ( m_collidedLeftMaxX >= v7 && m_collidedLeftMaxX != 0.0 )
v7 = a1->m_collidedLeftMaxX;
a1->m_collidedLeftMaxX = v7;
if ( m_uniqueID )
{
if ( a1->m_lastCollisionLeft != m_uniqueID )
{
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;
}
}