//
// CCSpritePlus::setFlipX from 0x6c85d8 to 0x6c8680 (168 bytes)
//
// 4 xrefs:
// > ??> @ 0xdcf00
// > ??> @ 0x1417c38
// > ??> @ 0x1421c38
// > ??> @ 0x1491d18
//
// This function is hookable on this platform (idp: arm, 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 12:51:22 +0000
//
__int64 __fastcall CCSpritePlus::setFlipX(cocos2d::CCArray **this, bool a2)
{
cocos2d::CCArray *v4; // x0
unsigned int v5; // w19
cocos2d::CCSprite *v6; // x0
bool v7; // cf
unsigned int v8; // w1
__int64 result; // x0
unsigned int v10; // w19
cocos2d::CCSprite *v11; // x0
unsigned int v12; // w1
cocos2d::CCSprite::setFlipX((cocos2d::CCSprite *)this, a2);
if ( *((_BYTE *)this + 618) )
{
v4 = *(this + 26);
if ( v4 )
{
v5 = 0;
while ( 1 )
{
v7 = v5 >= (unsigned int)cocos2d::CCArray::count(v4);
v8 = v5++;
if ( v7 )
break;
v6 = (cocos2d::CCSprite *)cocos2d::CCArray::objectAtIndex(*(this + 26), v8);
cocos2d::CCSprite::setFlipX(v6, a2);
v4 = *(this + 26);
}
}
}
result = *((unsigned __int8 *)this + 616);
v10 = 0;
if ( *((_BYTE *)this + 616) )
{
while ( 1 )
{
result = cocos2d::CCArray::count(*(this + 75));
v7 = v10 >= (unsigned int)result;
v12 = v10++;
if ( v7 )
break;
v11 = (cocos2d::CCSprite *)cocos2d::CCArray::objectAtIndex(*(this + 75), v12);
cocos2d::CCSprite::setFlipX(v11, a2);
}
}
return result;
}