//
// PlayerObject::updateCollideRight from 0x10040d460 to 0x10040d4fd (157 bytes)
//
// 1 xrefs:
// > PlayerObject::collidedWithObjectInternal @ 0x10040adfa
//
// 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::updateCollideRight(PlayerObject *a1, float a2, GameObject *a3)
{
int m_uniqueID; // edx
__m128d v4; // xmm1
double v5; // xmm3_8
cocos2d::CCDictionary *m_collisionLogRight; // rax
if ( a3 )
m_uniqueID = a3->m_uniqueID;
else
m_uniqueID = 0;
v4.f64[0] = a1->m_collidedRightMinX;
v5 = _mm_cmpeq_sd((__m128d)0LL, v4).f64[0];
*(_QWORD *)&a1->m_collidedRightMinX = *(_QWORD *)&v5 & COERCE_UNSIGNED_INT64(a2)
| ~*(_QWORD *)&v5 & COERCE_UNSIGNED_INT64(fmin(a2, v4.f64[0]));
if ( m_uniqueID )
{
if ( a1->m_lastCollisionRight != m_uniqueID )
{
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;
}
}