//
// PlayerObject::testForMoving from 0x33d43c to 0x33d514 (216 bytes)
//
// 1 xrefs:
// > GJBaseGameLayer::checkCollisions @ 0x493e10
//
// 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
//
bool PlayerObject::testForMoving(PlayerObject *a1, float a2, GameObject *a3)
{
const cocos2d::CCPoint *LastPosition; // r0
int v7; // r0
float v8; // s16
const cocos2d::CCRect *v9; // r0
_BOOL4 m_isUpsideDown; // r3
cocos2d::CCRect *v11; // r0
cocos2d::CCPoint v13; // [sp+4h] [bp-28h] BYREF
float v14; // [sp+Ch] [bp-20h] BYREF
float v15; // [sp+10h] [bp-1Ch]
cocos2d::CCRect v16; // [sp+14h] [bp-18h] BYREF
LastPosition = GameObject::getLastPosition(a3);
cocos2d::CCPoint::CCPoint(&v13, LastPosition);
a3->getRealPosition((cocos2d::CCPoint *)&v14, a3);
if ( v14 == v13.x && v15 == v13.y )
goto LABEL_11;
LOBYTE(v7) = a1->m_isUpsideDown;
if ( !(_BYTE)v7 )
{
if ( v13.y <= v15 )
return v7;
goto LABEL_7;
}
if ( v13.y >= v15 )
{
LABEL_11:
LOBYTE(v7) = 0;
return v7;
}
LABEL_7:
v8 = a2 * 5.0;
v9 = a3->getObjectRect(a3);
cocos2d::CCRect::CCRect(&v16, v9);
m_isUpsideDown = a1->m_isUpsideDown;
v16.size.height = v16.size.height + v8;
if ( m_isUpsideDown )
v16.origin.y = v16.origin.y - v8;
v11 = (cocos2d::CCRect *)a1->getObjectRect(a1);
v7 = cocos2d::CCRect::intersectsRect(v11, &v16);
if ( v7 )
a1->m_collidedObject = a3;
return v7;
}