//
// CCSpritePlus::setFlipX from 0x14004c120 to 0x14004c1ff (223 bytes)
//
// 6 xrefs:
// > ??> @ 0x14070a288
// > ??> @ 0x14070a6e0
// > ??> @ 0x140738988
// > ??> @ 0x1408860a4
// > ??> @ 0x1408860b4
// > ??> @ 0x14090ff8c
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:25:33 +0000
//
void __fastcall CCSpritePlus::setFlipX(__int64 a1, bool a2)
{
unsigned int v4; // edi
cocos2d::CCArray *v5; // rcx
unsigned int v6; // esi
cocos2d::CCSprite *v7; // rax
cocos2d::CCSprite *v8; // rax
cocos2d::CCSprite::setFlipX((cocos2d::CCSprite *)a1, a2);
v4 = 0;
if ( *(_BYTE *)(a1 + 618) )
{
v5 = *(cocos2d::CCArray **)(a1 + 208);
if ( v5 )
{
v6 = 0;
if ( cocos2d::CCArray::count(v5) )
{
do
{
v7 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 208), v6);
cocos2d::CCSprite::setFlipX(v7, a2);
++v6;
}
while ( v6 < cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 208)) );
}
}
}
if ( *(_BYTE *)(a1 + 616) && cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 600)) )
{
do
{
v8 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 600), v4);
cocos2d::CCSprite::setFlipX(v8, a2);
++v4;
}
while ( v4 < cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 600)) );
}
}