//
// PlayerObject::updateCollideLeft from 0x10040d500 to 0x10040d59d (157 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
//
void __fastcall PlayerObject::updateCollideLeft(PlayerObject *a1, float a2, GameObject *a3)
{
int m_uniqueID; // edx
__m128d v4; // xmm1
double v5; // xmm3_8
cocos2d::CCDictionary *m_collisionLogLeft; // rax
if ( a3 )
m_uniqueID = a3->m_uniqueID;
else
m_uniqueID = 0;
v4.f64[0] = a1->m_collidedLeftMaxX;
v5 = _mm_cmpeq_sd((__m128d)0LL, v4).f64[0];
*(_QWORD *)&a1->m_collidedLeftMaxX = *(_QWORD *)&v5 & COERCE_UNSIGNED_INT64(a2)
| ~*(_QWORD *)&v5 & COERCE_UNSIGNED_INT64(fmax(a2, v4.f64[0]));
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;
}
}