//
// GameObject::setFlipX from 0x353206 to 0x35322e (40 bytes)
//
// 1 xrefs:
// > PlayerObject::setFlipX @ 0x33c1fc
//
// 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 GameObject::setFlipX(GameObject *a1, bool a2)
{
GameObject_vtbl *v3; // r3
void (__fastcall *setScaleX)(GameObject *__hidden, float); // r5
int v5; // r0
if ( a1->m_isFlipX != a2 )
{
v3 = a1->CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
a1->m_isFlipX = a2;
setScaleX = v3->setScaleX;
v5 = ((int (*)(void))v3->getScaleX)();
((void (__fastcall *)(GameObject *, unsigned int))setScaleX)(a1, v5 ^ 0x80000000);
}
}