//
// cocos2d::CCSprite::setScaleX from 0x1002d5808 to 0x1002d5888 (128 bytes)
//
// 27 xrefs:
// > CCPartAnimSprite::setScaleX @ 0x100087bd8
// > CCSpritePlus::setScaleX @ 0x10024dc80
// > ??> @ 0x1008ae8f0
// > ??> @ 0x1008bfdf0
// > ??> @ 0x1008c0748
// > ??> @ 0x1008c1958
// > ??> @ 0x1008c3f20
// > ??> @ 0x1008d41e0
// > ??> @ 0x1008dfce8
// > ??> @ 0x1008eea58
// > ??> @ 0x100903dd0
// > ??> @ 0x100904398
// > ??> @ 0x1009105c0
// > ??> @ 0x1009117d0
// > ??> @ 0x10091c990
// > ??> @ 0x10091f998
// > ??> @ 0x100920498
// > ??> @ 0x100921d18
// > ??> @ 0x1009222e0
// > ??> @ 0x10093c9c0
// > ??> @ 0x100942208
// > ??> @ 0x1009427d0
// > ??> @ 0x100944500
// > ??> @ 0x100944a98
// > ??> @ 0x100963920
// > ??> @ 0x100969d38
// > ??> @ 0x10098c720
//
// This function is hookable on this platform (idp: arm, 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:02:40 +0000
//
__int64 __fastcall cocos2d::CCSprite::setScaleX(__int64 result, float a2)
{
__int64 v2; // x19
if ( *(float *)(result + 64) != a2 )
{
v2 = result;
result = cocos2d::CCNode::setScaleX();
if ( *(_QWORD *)(v2 + 368) )
{
if ( (*(_BYTE *)(v2 + 377) & 1) == 0 )
{
*(_BYTE *)(v2 + 377) = 1;
result = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v2 + 1200LL))(v2, 1);
if ( *(_BYTE *)(v2 + 378) == 1 )
return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v2 + 1232LL))(v2, 1);
}
}
}
return result;
}