//
// CCSpritePlus::setFlipX from 0x140048080 to 0x14004815f (223 bytes)
//
// 6 xrefs:
// > ??> @ 0x14052f650
// > ??> @ 0x14052fa98
// > ??> @ 0x140544030
// > ??> @ 0x140663018
// > ??> @ 0x140663028
// > ??> @ 0x1406c4aa0
//
// 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::setFlipX(CCSpritePlus *a1, bool a2)
{
unsigned int v4; // edi
cocos2d::CCArray *m_pChildren; // rcx
unsigned int v6; // esi
cocos2d::CCSprite *v7; // rax
cocos2d::CCSprite *v8; // rax
cocos2d::CCSprite::setFlipX(a1, a2);
v4 = 0;
if ( a1->m_propagateFlipChanges )
{
m_pChildren = a1->m_pChildren;
if ( m_pChildren )
{
v6 = 0;
if ( cocos2d::CCArray::count(m_pChildren) )
{
do
{
v7 = (cocos2d::CCSprite *)cocos2d::CCArray::objectAtIndex(a1->m_pChildren, v6);
cocos2d::CCSprite::setFlipX(v7, a2);
++v6;
}
while ( v6 < cocos2d::CCArray::count(a1->m_pChildren) );
}
}
}
if ( a1->m_hasFollower && cocos2d::CCArray::count(a1->m_followers) )
{
do
{
v8 = (cocos2d::CCSprite *)cocos2d::CCArray::objectAtIndex(a1->m_followers, v4);
cocos2d::CCSprite::setFlipX(v8, a2);
++v4;
}
while ( v4 < cocos2d::CCArray::count(a1->m_followers) );
}
}