//
// PlayerObject::collidedWithObject from 0x1002201a4 to 0x100220250 (172 bytes)
//
// 2 xrefs:
// > PlayerObject::postCollision @ 0x10021f734
// > PlayerObject::collidedWithObject_1 @ 0x1002244a0
//
// 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
//
// local variable allocation has failed, the output may be wrong!
bool __fastcall PlayerObject::collidedWithObject(
PlayerObject *a1,
float a2,
GameObject *a3,
cocos2d::CCRect a4,
bool a5)
{
bool v5; // w3
bool v6; // w19
_QWORD v11[2]; // [xsp+0h] [xbp-50h] BYREF
_QWORD v12[2]; // [xsp+10h] [xbp-40h] BYREF
cocos2d::CCRect v13; // 0:s1.4,4:s2.4,8:s3.4,12:s4.4
cocos2d::CCRect v14; // 0:s1.4,4:s2.4,8:s3.4,12:s4.4
v6 = v5;
if ( a1->m_isSideways )
{
sub_100022B98(v11, a5);
sub_100022B98(v12, (__int64)v11);
return PlayerObject::handleRotatedCollisionInternal(a1, a2, a3, v13, (bool)v12, v6, 0);
}
else
{
sub_100022B98(v12, a5);
return PlayerObject::collidedWithObjectInternal(a1, a2, a3, v14, (bool)v12);
}
}