//
// cocos2d::CCSprite::setFlipX from 0x18008f740 to 0x18008f76c (44 bytes)
//
// 6 xrefs:
// > cocos2d::CCFlipX::update @ 0x180030d78
// > cocos2d::CCTMXLayer::setupTileSprite @ 0x1800b08dd
// > cocos2d::CCTMXLayer::setupTileSprite @ 0x1800b0a7a
// > cocos2d::CCTMXLayer::setupTileSprite @ 0x1800b0a9a
// > cocos2d::CCTMXLayer::setupTileSprite @ 0x1800b0aa8
// > ??> @ 0x18014cf68
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// 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 11:22:07 +0000
//
void __fastcall cocos2d::CCSprite::setFlipX(cocos2d::CCSprite *this, char a2)
{
__int64 v2; // rax
__int64 v3; // r8
if ( *((_BYTE *)this + 557) != a2 )
{
v2 = *(_QWORD *)this;
v3 = *((unsigned __int8 *)this + 440);
*((_BYTE *)this + 557) = a2;
(*(void (__fastcall **)(cocos2d::CCSprite *, char *, __int64, char *))(v2 + 984))(
this,
(char *)this + 424,
v3,
(char *)this + 108);
}
}