//
// cocos2d::CCSprite::setFlipY from 0x7f165c to 0x7f1686 (42 bytes)
//
// 59 xrefs:
// > CCPartAnimSprite::setFlipY @ 0x3c7194
// > GhostTrailEffect::trailSnapshot @ 0x3e4d80
// > CCSpritePlus::setFlipY @ 0x3e670c
// > CCSpritePlus::setFlipY @ 0x3e6740
// > CCSpritePlus::setFlipY @ 0x3e6762
// > PlayLayer::playGravityEffect @ 0x402a62
// > CreatorLayer::init @ 0x4948ba
// > CreatorLayer::init @ 0x49492a
// > LevelInfoLayer::init @ 0x49e432
// > EditLevelLayer::init @ 0x4a17e2
// > GJGarageLayer::init @ 0x510050
// > GJListLayer::init @ 0x5153a8
// > GJCommentListLayer::init @ 0x5d9502
// > ChallengesPage::init @ 0x600378
// > ChallengesPage::init @ 0x60038e
// > GauntletSelectLayer::init @ 0x60d156
// > GauntletSelectLayer::init @ 0x60d1dc
// > RewardsPage::init @ 0x617588
// > RewardsPage::init @ 0x61759e
// > ShardsPage::init @ 0x62b732
// > ShardsPage::init @ 0x62b748
// > WorldLevelPage::init @ 0x62ed02
// > WorldLevelPage::init @ 0x62ed18
// > FollowRewardPage::init @ 0x630748
// > FollowRewardPage::init @ 0x63075e
// > CommunityCreditsPage::init @ 0x637a44
// > CommunityCreditsPage::init @ 0x637a5a
// > GameObject::setupCustomSprites @ 0x64581a
// > GameObject::setupCustomSprites @ 0x64b108
// > GameObject::setupCustomSprites @ 0x64b150
// > GameObject::setupCustomSprites @ 0x6542d2
// > GameObject::setupCustomSprites @ 0x6543ac
// > GameObject::setupCustomSprites @ 0x6544a6
// > GameObject::setupCustomSprites @ 0x654542
// > GameObject::setupCustomSprites @ 0x6546ac
// > GameObject::setupCustomSprites @ 0x654724
// > GameObject::setupCustomSprites @ 0x6548fc
// > GameObject::setupCustomSprites @ 0x65497e
// > GameObject::setupCustomSprites @ 0x654a00
// > GameObject::setupCustomSprites @ 0x654b14
// > SetupRandAdvTriggerPopup::init @ 0x65c764
// > GJSmartTemplate::applyTransformationsForType @ 0x66eb6c
// > GJSmartTemplate::applyTransformationsForType @ 0x66eb96
// > ShaderLayer::setupShader @ 0x6850cc
// > ExplodeItemNode::createSprites @ 0x69eb4e
// > NewsPopup::init @ 0x6c31b8
// > NewsPopup::init @ 0x6c31ce
// > EditorUI::createDpadMoveMenu @ 0x6f7116
// > MessageThreadsPage::init @ 0x750c46
// > cocos2d::extension::CCControlSwitchSprite::needsLayout @ 0x7aa2be
// > cocos2d::CCFlipY::update @ 0x7bb95e
// > cocos2d::CCTransitionProgressRadialCCW::progressTimerNodeWithRenderTexture @ 0x7db330
// > cocos2d::CCTransitionProgressRadialCW::progressTimerNodeWithRenderTexture @ 0x7db3e4
// > cocos2d::CCTransitionProgressHorizontal::progressTimerNodeWithRenderTexture @ 0x7db498
// > cocos2d::CCTransitionProgressVertical::progressTimerNodeWithRenderTexture @ 0x7db574
// > cocos2d::CCTransitionProgressInOut::progressTimerNodeWithRenderTexture @ 0x7db64c
// > cocos2d::CCTransitionProgressOutIn::progressTimerNodeWithRenderTexture @ 0x7db724
// > cocos2d::CCTMXLayer::setupTileSprite @ 0x803fee
// > cocos2d::CCTMXLayer::setupTileSprite @ 0x8040da
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:01:04 +0000
//
int __fastcall cocos2d::CCSprite::setFlipY(int this, int a2)
{
int v2; // r2
if ( *(unsigned __int8 *)(this + 470) != a2 )
{
v2 = *(_DWORD *)this;
*(_BYTE *)(this + 470) = a2;
return (*(int (__fastcall **)(int, int, _DWORD, int))(v2 + 572))(
this,
this + 336,
*(unsigned __int8 *)(this + 352),
this + 104);
}
return this;
}