//
// cocos2d::CCSprite::setFlipX from 0x5e6d8c to 0x5e6db6 (42 bytes)
//
// 122 xrefs:
// > CCAnimatedSprite::switchToMode @ 0x2e4258
// > CCPartAnimSprite::setFlipX @ 0x2e6fe8
// > BoomListLayer::init @ 0x2f5fae
// > GhostTrailEffect::trailSnapshot @ 0x2fb836
// > CCSpritePlus::setFlipX @ 0x2fd07a
// > CCSpritePlus::setFlipX @ 0x2fd0ae
// > CCSpritePlus::setFlipX @ 0x2fd0d0
// > ListButtonBar::init @ 0x2fd8e6
// > GJSongBrowser::customSetup @ 0x307d5c
// > GJUINode::init @ 0x30dd46
// > AchievementsLayer::customSetup @ 0x32d820
// > PlayerObject::setFlipX @ 0x33c206
// > PlayerObject::setFlipX @ 0x33c210
// > PlayerObject::setFlipX @ 0x33c21a
// > PlayerObject::setFlipX @ 0x33c224
// > PlayerObject::setFlipX @ 0x33c22e
// > PlayerObject::setFlipX @ 0x33c23c
// > EditorUI::init @ 0x3a24e6
// > CreatorLayer::init @ 0x3ab82c
// > CreatorLayer::init @ 0x3ab908
// > LevelSearchLayer::init @ 0x3ade06
// > LevelInfoLayer::init @ 0x3b3ec4
// > EditLevelLayer::init @ 0x3b6cf2
// > LevelBrowserLayer::init @ 0x3bc298
// > LevelBrowserLayer::init @ 0x3bc43a
// > LevelBrowserLayer::init @ 0x3bcfc2
// > LevelBrowserLayer::init @ 0x3bcfca
// > EditButtonBar::loadFromItems @ 0x3d963a
// > GJGarageLayer::setupIconSelect @ 0x406d5c
// > GJGarageLayer::init @ 0x4070c8
// > LevelSelectLayer::init @ 0x40a160
// > LevelSelectLayer::init @ 0x40a3cc
// > GJListLayer::init @ 0x40be3a
// > GJListLayer::init @ 0x40be6c
// > GJListLayer::init @ 0x40bf90
// > MoreOptionsLayer::init @ 0x42424a
// > MoreVideoOptionsLayer::init @ 0x426116
// > ParentalOptionsLayer::init @ 0x427190
// > EndLevelLayer::customSetup @ 0x429352
// > InfoLayer::init @ 0x430d96
// > GJGroundLayer::init @ 0x434724
// > LeaderboardsLayer::init @ 0x452690
// > KeybindingsLayer::init @ 0x46b0b8
// > GJColorSetupLayer::init @ 0x49856a
// > SelectFontLayer::init @ 0x4aa61a
// > GJOptionsLayer::init @ 0x4ab6ec
// > GJCommentListLayer::init @ 0x4aba90
// > EditorOptionsLayer::setupOptions @ 0x4b4948
// > EditorOptionsLayer::setupOptions @ 0x4b4c5a
// > MessagesProfilePage::init @ 0x4c18f2
// > sub_4C275C @ 0x4c2de2
// > ProfilePage::setupComments @ 0x4c6c04
// > ChallengesPage::init @ 0x4cc996
// > ChallengesPage::init @ 0x4cc9ac
// > ConfigureValuePopup::init @ 0x4cffa4
// > GauntletSelectLayer::init @ 0x4d966c
// > GauntletSelectLayer::init @ 0x4d9766
// > GauntletSelectLayer::init @ 0x4d97d2
// > GJRotateCommandLayer::init @ 0x4dfa72
// > RewardsPage::init @ 0x4e70f2
// > RewardsPage::init @ 0x4e7108
// > GJChestSprite::switchToState @ 0x4e842e
// > ShardsPage::init @ 0x4fb49e
// > ShardsPage::init @ 0x4fb4b4
// > ShardsPage::init @ 0x4fc426
// > WorldSelectLayer::init @ 0x4fe4b4
// > WorldSelectLayer::init @ 0x4fe518
// > WorldLevelPage::init @ 0x4feaf0
// > WorldLevelPage::init @ 0x4feb06
// > FollowRewardPage::init @ 0x4ffd9e
// > FollowRewardPage::init @ 0x4ffdb4
// > TopArtistsLayer::init @ 0x500fe2
// > SetupCameraOffsetTrigger::init @ 0x50243e
// > CommunityCreditsPage::init @ 0x506e86
// > CommunityCreditsPage::init @ 0x506e9c
// > CommunityCreditsPage::init @ 0x508132
// > SetGroupIDLayer::createTextInput @ 0x509444
// > GameObject::setupCustomSprites @ 0x513742
// > GameObject::setupCustomSprites @ 0x513de6
// > GameObject::setupCustomSprites @ 0x513ea0
// > GameObject::setupCustomSprites @ 0x5184ac
// > GameObject::setupCustomSprites @ 0x5184e4
// > GameObject::setupCustomSprites @ 0x518526
// > GameObject::setupCustomSprites @ 0x518dd2
// > GameObject::setupCustomSprites @ 0x518e1a
// > GameObject::setupCustomSprites @ 0x51a5b8
// > GameObject::setupCustomSprites @ 0x51a68e
// > GameObject::setupCustomSprites @ 0x51a702
// > GameObject::setupCustomSprites @ 0x52108e
// > GameObject::setupCustomSprites @ 0x521138
// > GameObject::setupCustomSprites @ 0x5211da
// > GameObject::setupCustomSprites @ 0x521254
// > GameObject::setupCustomSprites @ 0x5213b0
// > GameObject::setupCustomSprites @ 0x521410
// > GameObject::setupCustomSprites @ 0x521596
// > GameObject::setupCustomSprites @ 0x521618
// > GameObject::setupCustomSprites @ 0x521694
// > GameObject::setupCustomSprites @ 0x521708
// > GameObject::setupCustomSprites @ 0x52177c
// > SetupCameraRotatePopup::init @ 0x526d4c
// > EnhancedGameObject::updateSyncedAnimation @ 0x52961a
// > EnhancedGameObject::updateSyncedAnimation @ 0x529668
// > GJSmartTemplate::applyTransformationsForType @ 0x539e30
// > GJSmartTemplate::applyTransformationsForType @ 0x539e50
// > BrowseSmartTemplateLayer::baseSetup @ 0x53edfc
// > SetupTriggerPopup::createPageButtons @ 0x5414f6
// > SetupTriggerPopup::createEasingControls @ 0x54596e
// > SetupTriggerPopup::createCustomEasingControls @ 0x546132
// > SetupGradientPopup::init @ 0x5513aa
// > SetupMGTrigger::init @ 0x5630fc
// > CustomSFXWidget::init @ 0x56ec26
// > SetupReverbPopup::init @ 0x575d66
// > sub_581CB4 @ 0x581f80
// > sub_5836C8 @ 0x583c46
// > SecretRewardsLayer::init @ 0x5860e6
// > SecretRewardsLayer::init @ 0x58711c
// > LevelListLayer::init @ 0x590a4e
// > cocos2d::extension::CCControlColourPicker::init @ 0x5a290e
// > cocos2d::CCFlipX::update @ 0x5b510a
// > cocos2d::CCTMXLayer::setupTileSprite @ 0x5f7800
// > cocos2d::CCTMXLayer::setupTileSprite @ 0x5f78da
// > cocos2d::CCTMXLayer::setupTileSprite @ 0x5f78e8
//
// 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 cocos2d::CCSprite::setFlipX(cocos2d::CCSprite *a1, bool a2)
{
cocos2d::CCSprite_vtbl *v2; // r2
if ( a1->m_bFlipX != a2 )
{
v2 = a1->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
a1->m_bFlipX = a2;
v2->setTextureRect_0(a1, &a1->m_obRect, a1->m_bRectRotated, &a1->m_obContentSize);
}
}