//
// CCSpritePlus::setFlipX from 0x100481dc0 to 0x100481e87 (199 bytes)
//
// 3 xrefs:
// > ??> @ 0x10091e168
// > ??> @ 0x10093ca90
// > ??> @ 0x100991ae0
//
// 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; // rdi
unsigned int v4; // r15d
cocos2d::CCSprite *v5; // rax
unsigned int v6; // r15d
cocos2d::CCSprite *v7; // rax
cocos2d::CCSprite::setFlipX(a1, a2);
if ( a1->m_propagateFlipChanges )
{
m_pChildren = a1->m_pChildren;
if ( m_pChildren )
{
if ( (unsigned int)sub_100720070(m_pChildren) )
{
v4 = 0;
do
{
v5 = (cocos2d::CCSprite *)sub_1007200C0(a1->m_pChildren, v4);
cocos2d::CCSprite::setFlipX(v5, a2);
++v4;
}
while ( v4 < (unsigned int)sub_100720070(a1->m_pChildren) );
}
}
}
if ( a1->m_hasFollower && (unsigned int)sub_100720070(a1->m_followers) )
{
v6 = 0;
do
{
v7 = (cocos2d::CCSprite *)sub_1007200C0(a1->m_followers, v6);
cocos2d::CCSprite::setFlipX(v7, a2);
++v6;
}
while ( v6 < (unsigned int)sub_100720070(a1->m_followers) );
}
}