//
// cocos2d::CCSprite::setScaleX from 0x7f1f92 to 0x7f1fe2 (80 bytes)
//
// 2 xrefs:
// > CCPartAnimSprite::setScaleX @ 0x3c7e08
// > CCSpritePlus::setScaleX @ 0x3e6772
//
// 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:05 +0000
//
int __fastcall cocos2d::CCSprite::setScaleX(int this, float a2)
{
int v2; // r4
int v3; // r3
v2 = this;
if ( *(float *)(this + 60) != a2 )
{
this = cocos2d::CCNode::setScaleX(this, a2);
if ( *(_DWORD *)(v2 + 292) )
{
if ( !*(_BYTE *)(v2 + 297) )
{
v3 = *(_DWORD *)v2;
*(_BYTE *)(v2 + 297) = 1;
this = (*(int (__fastcall **)(int, int))(v3 + 600))(v2, 1);
if ( *(_BYTE *)(v2 + 298) )
return (*(int (__fastcall **)(int, int))(*(_DWORD *)v2 + 616))(v2, 1);
}
}
}
return this;
}