//
// cocos2d::CCSprite::setFlipX from 0xb15e78 to 0xb15eb4 (60 bytes)
//
// 124 xrefs:
// > CCAnimatedSprite::switchToMode @ 0x5712c8
// > CCPartAnimSprite::setFlipX @ 0x5770f0
// > BoomListLayer::init @ 0x594e28
// > GhostTrailEffect::trailSnapshot @ 0x5a5a50
// > CCSpritePlus::setFlipX @ 0x5a82b4
// > CCSpritePlus::setFlipX @ 0x5a82dc
// > CCSpritePlus::setFlipX @ 0x5a8314
// > ListButtonBar::init @ 0x5a9050
// > GJSongBrowser::customSetup @ 0x5be6a8
// > GJUINode::init @ 0x5c7aec
// > AchievementsLayer::customSetup @ 0x6087b4
// > PlayerObject::setFlipX @ 0x620e00
// > PlayerObject::setFlipX @ 0x620e0c
// > PlayerObject::setFlipX @ 0x620e18
// > PlayerObject::setFlipX @ 0x620e24
// > PlayerObject::setFlipX @ 0x620e30
// > PlayerObject::setFlipX @ 0x620e44
// > EditorUI::init @ 0x6bd7ec
// > CreatorLayer::init @ 0x6cc75c
// > CreatorLayer::init @ 0x6cc868
// > LevelSearchLayer::init @ 0x6d1638
// > LevelInfoLayer::init @ 0x6db520
// > EditLevelLayer::init @ 0x6e0658
// > LevelBrowserLayer::init @ 0x6eae44
// > LevelBrowserLayer::init @ 0x6eb8cc
// > LevelBrowserLayer::init @ 0x6eb8d8
// > LevelBrowserLayer::init @ 0x6ec1a8
// > EditButtonBar::loadFromItems @ 0x73b25c
// > GJGarageLayer::setupIconSelect @ 0x798be0
// > GJGarageLayer::init @ 0x7991b4
// > LevelSelectLayer::init @ 0x79df80
// > LevelSelectLayer::init @ 0x79e4a8
// > GJListLayer::init @ 0x7a0a38
// > GJListLayer::init @ 0x7a0cf0
// > GJListLayer::init @ 0x7a0d8c
// > MoreOptionsLayer::init @ 0x7cbe10
// > MoreVideoOptionsLayer::init @ 0x7d03ec
// > ParentalOptionsLayer::init @ 0x7d29b8
// > EndLevelLayer::customSetup @ 0x7d6830
// > InfoLayer::init @ 0x7e4130
// > GJGroundLayer::init @ 0x7ebf6c
// > LeaderboardsLayer::init @ 0x81f03c
// > KeybindingsLayer::init @ 0x853c68
// > GJColorSetupLayer::init @ 0x8a2174
// > SelectFontLayer::init @ 0x8c6fa4
// > GJOptionsLayer::init @ 0x8c9304
// > GJCommentListLayer::init @ 0x8c9c88
// > EditorOptionsLayer::setupOptions @ 0x8db7fc
// > EditorOptionsLayer::setupOptions @ 0x8dbac0
// > MessagesProfilePage::init @ 0x8f38d8
// > FRequestProfilePage::init @ 0x8f5b78
// > ProfilePage::setupComments @ 0x8fced8
// > ChallengesPage::init @ 0x908090
// > ChallengesPage::init @ 0x9085dc
// > ConfigureValuePopup::init @ 0x90d2a8
// > GauntletSelectLayer::init @ 0x91c7ec
// > GauntletSelectLayer::init @ 0x91c92c
// > GauntletSelectLayer::init @ 0x91c9c8
// > GJRotateCommandLayer::init @ 0x926f1c
// > RewardsPage::init @ 0x935618
// > RewardsPage::init @ 0x935bfc
// > GJChestSprite::switchToState @ 0x93753c
// > ShardsPage::init @ 0x95c664
// > ShardsPage::init @ 0x95d2dc
// > ShardsPage::init @ 0x95dd0c
// > WorldSelectLayer::init @ 0x96143c
// > WorldSelectLayer::init @ 0x9614d0
// > WorldLevelPage::init @ 0x961cf8
// > WorldLevelPage::init @ 0x9627a0
// > FollowRewardPage::init @ 0x963ce4
// > FollowRewardPage::init @ 0x964860
// > TopArtistsLayer::init @ 0x9660d4
// > SetupCameraOffsetTrigger::init @ 0x968614
// > CommunityCreditsPage::init @ 0x970564
// > CommunityCreditsPage::init @ 0x97209c
// > CommunityCreditsPage::init @ 0x9721c0
// > SetGroupIDLayer::createTextInput @ 0x975e20
// > GameObject::setupCustomSprites @ 0x986a1c
// > GameObject::setupCustomSprites @ 0x986a90
// > GameObject::setupCustomSprites @ 0x987f64
// > GameObject::setupCustomSprites @ 0x988084
// > GameObject::setupCustomSprites @ 0x98a8e8
// > GameObject::setupCustomSprites @ 0x98a994
// > GameObject::setupCustomSprites @ 0x98aa5c
// > GameObject::setupCustomSprites @ 0x98b23c
// > GameObject::setupCustomSprites @ 0x98b29c
// > GameObject::setupCustomSprites @ 0x98b30c
// > GameObject::setupCustomSprites @ 0x990ba8
// > GameObject::setupCustomSprites @ 0x990c70
// > GameObject::setupCustomSprites @ 0x991200
// > GameObject::setupCustomSprites @ 0x991ea0
// > GameObject::setupCustomSprites @ 0x995528
// > GameObject::setupCustomSprites @ 0x9969fc
// > GameObject::setupCustomSprites @ 0x996aa4
// > GameObject::setupCustomSprites @ 0x997a58
// > GameObject::setupCustomSprites @ 0x997bf8
// > GameObject::setupCustomSprites @ 0x997cac
// > GameObject::setupCustomSprites @ 0x997d58
// > GameObject::setupCustomSprites @ 0x99b754
// > SetupCameraRotatePopup::init @ 0x9acd1c
// > EnhancedGameObject::updateSyncedAnimation @ 0x9b0fa8
// > EnhancedGameObject::updateSyncedAnimation @ 0x9b1128
// > EnhancedGameObject::updateSyncedAnimation @ 0x9b11a0
// > GJSmartTemplate::applyTransformationsForType @ 0x9d153c
// > GJSmartTemplate::applyTransformationsForType @ 0x9d15c8
// > BrowseSmartTemplateLayer::baseSetup @ 0x9df220
// > SetupTriggerPopup::createPageButtons @ 0x9e4638
// > SetupTriggerPopup::createEasingControls @ 0x9ea268
// > SetupTriggerPopup::createCustomEasingControls @ 0x9eaf6c
// > SetupGradientPopup::init @ 0x9fad74
// > SetupMGTrigger::init @ 0xa205e0
// > CustomSFXWidget::init @ 0xa33294
// > SetupReverbPopup::init @ 0xa3f650
// > MusicBrowser::init @ 0xa5b974
// > sub_A5DEA4 @ 0xa5e5e8
// > SecretRewardsLayer::init @ 0xa62704
// > SecretRewardsLayer::init @ 0xa637dc
// > LevelListLayer::init @ 0xa75ea8
// > cocos2d::extension::CCControlColourPicker::init @ 0xa9cc68
// > cocos2d::CCFlipX::update @ 0xabd068
// > cocos2d::CCTMXLayer::setupTileSprite @ 0xb3927c
// > cocos2d::CCTMXLayer::setupTileSprite @ 0xb393f8
// > cocos2d::CCTMXLayer::setupTileSprite @ 0xb39408
// > ??> @ 0xc4c80
//
// 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; // x6
_BOOL8 m_bRectRotated; // x2
if ( a1->m_bFlipX != a2 )
{
v2 = a1->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
m_bRectRotated = a1->m_bRectRotated;
a1->m_bFlipX = a2;
v2->setTextureRect_0(a1, &a1->m_obRect, m_bRectRotated, &a1->m_obContentSize);
}
}