//
// CCSpritePlus::setFlipY from 0x5a8340 to 0x5a83e8 (168 bytes)
//
// 4 xrefs:
// > ??> @ 0xc6240
// > ??> @ 0x1139dd0
// > ??> @ 0x1142fd0
// > ??> @ 0x11aab90
//
// 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 CCSpritePlus::setFlipY(CCSpritePlus *a1, bool a2)
{
cocos2d::CCArray *m_pChildren; // x0
unsigned int v5; // w19
cocos2d::CCSprite *v6; // x0
bool v7; // cf
unsigned int v8; // w1
unsigned int v9; // w19
cocos2d::CCSprite *v10; // x0
unsigned int v11; // w1
cocos2d::CCSprite::setFlipY(a1, a2);
if ( a1->m_propagateFlipChanges )
{
m_pChildren = a1->m_pChildren;
if ( m_pChildren )
{
v5 = 0;
while ( 1 )
{
v7 = v5 >= (unsigned int)cocos2d::CCArray::count(m_pChildren);
v8 = v5++;
if ( v7 )
break;
v6 = (cocos2d::CCSprite *)cocos2d::CCArray::objectAtIndex(a1->m_pChildren, v8);
cocos2d::CCSprite::setFlipY(v6, a2);
m_pChildren = a1->m_pChildren;
}
}
}
v9 = 0;
if ( a1->m_hasFollower )
{
while ( 1 )
{
v7 = v9 >= (unsigned int)cocos2d::CCArray::count(a1->m_followers);
v11 = v9++;
if ( v7 )
break;
v10 = (cocos2d::CCSprite *)cocos2d::CCArray::objectAtIndex(a1->m_followers, v11);
cocos2d::CCSprite::setFlipY(v10, a2);
}
}
}