//
// GameObject::setFlipX from 0x6415e4 to 0x641630 (76 bytes)
//
// 48 xrefs:
// > PlayerObject::setFlipX @ 0x620df4
// > ??> @ 0x50220
// > ??> @ 0x1153978
// > ??> @ 0x1154148
// > ??> @ 0x1154948
// > ??> @ 0x11622f8
// > ??> @ 0x1162af8
// > ??> @ 0x11632f8
// > ??> @ 0x1163af8
// > ??> @ 0x11642f8
// > ??> @ 0x1164af8
// > ??> @ 0x11652f8
// > ??> @ 0x1165af8
// > ??> @ 0x11662c8
// > ??> @ 0x1166ac8
// > ??> @ 0x11672c8
// > ??> @ 0x1167ac8
// > ??> @ 0x11682c8
// > ??> @ 0x1168b08
// > ??> @ 0x1169308
// > ??> @ 0x1169b08
// > ??> @ 0x116a308
// > ??> @ 0x116ab08
// > ??> @ 0x116b318
// > ??> @ 0x116bb18
// > ??> @ 0x116c318
// > ??> @ 0x116cb18
// > ??> @ 0x116d318
// > ??> @ 0x116db18
// > ??> @ 0x116e318
// > ??> @ 0x116eb18
// > ??> @ 0x116f318
// > ??> @ 0x116fb18
// > ??> @ 0x1170318
// > ??> @ 0x1170b18
// > ??> @ 0x1171318
// > ??> @ 0x1171b18
// > ??> @ 0x1172318
// > ??> @ 0x1172b18
// > ??> @ 0x1173318
// > ??> @ 0x1173b18
// > ??> @ 0x1174318
// > ??> @ 0x1174b18
// > ??> @ 0x1175318
// > ??> @ 0x1175b18
// > ??> @ 0x1176318
// > ??> @ 0x1176b18
// > ??> @ 0x1177338
//
// 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 *v2; // x2
void (__fastcall *setScaleX)(GameObject *__hidden, float); // x20
float v5; // s0
if ( a1->m_isFlipX != a2 )
{
v2 = a1->CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
a1->m_isFlipX = a2;
setScaleX = v2->setScaleX;
v5 = ((float (*)(void))v2->getScaleX)();
setScaleX(a1, -v5);
}
}