//
// CCSpritePlus::setFlipX from 0x1001b7e8c to 0x1001b7f44 (184 bytes)
//
// 3 xrefs:
// > ??> @ 0x10077bc48
// > ??> @ 0x1007b3450
// > ??> @ 0x1007efad0
//
// 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 __fastcall CCSpritePlus::setFlipX(CCSpritePlus *a1, bool a2)
{
cocos2d::CCArray *m_pChildren; // x0
__int64 v5; // x21
cocos2d::CCSprite *v6; // x0
__int64 v7; // x21
cocos2d::CCSprite *v8; // x0
cocos2d::CCSprite::setFlipX(a1, a2);
if ( a1->m_propagateFlipChanges )
{
m_pChildren = a1->m_pChildren;
if ( m_pChildren )
{
if ( (unsigned int)sub_10024A36C(m_pChildren) )
{
v5 = 0;
do
{
v6 = (cocos2d::CCSprite *)sub_10024A388(a1->m_pChildren, v5);
cocos2d::CCSprite::setFlipX(v6, a2);
v5 = (unsigned int)(v5 + 1);
}
while ( (unsigned int)v5 < (unsigned int)sub_10024A36C(a1->m_pChildren) );
}
}
}
if ( a1->m_hasFollower && (unsigned int)sub_10024A36C(a1->m_followers) )
{
v7 = 0;
do
{
v8 = (cocos2d::CCSprite *)sub_10024A388(a1->m_followers, v7);
cocos2d::CCSprite::setFlipX(v8, a2);
v7 = (unsigned int)(v7 + 1);
}
while ( (unsigned int)v7 < (unsigned int)sub_10024A36C(a1->m_followers) );
}
}