//
// GameObject::isFacingDown from 0x64827c to 0x648334 (184 bytes)
//
// 4 xrefs:
// > PlayerObject::bumpPlayer @ 0x6373fc
// > PlayerObject::ringJump @ 0x63be18
// > GJBaseGameLayer::gravBumpPlayer @ 0x88b648
// > ??> @ 0x45d98
//
// 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 GameObject::isFacingDown(GameObject *a1)
{
float v2; // s0
GameObject_vtbl *v3; // x1
GameObject *v4; // x0
int v5; // w19
_BOOL4 v6; // w2
bool result; // w0
v2 = a1->getObjectRotation(a1);
v3 = a1->CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v4 = a1;
v5 = (int)v2;
v6 = v3->isFlipY(v4);
if ( !(v5 % 90) )
return (abs32(v5) == 180) ^ v6;
result = 1;
if ( (unsigned int)(v5 - 91) > 0xB2 )
result = (unsigned int)(v5 + 269) <= 0xB2;
if ( v6 )
return !result;
return result;
}