//
// cocos2d::CCSprite::setScaleX from 0xd8802c to 0xd880a4 (120 bytes)
//
// 32 xrefs:
// > CCPartAnimSprite::setScaleX @ 0x69404c
// > CCSpritePlus::setScaleX @ 0x6c8740
// > ??> @ 0xe0bc0
// > ??> @ 0x1413660
// > ??> @ 0x1413c20
// > ??> @ 0x14149d0
// > ??> @ 0x141b100
// > ??> @ 0x141b730
// > ??> @ 0x141cbb0
// > ??> @ 0x1421d90
// > ??> @ 0x1423750
// > ??> @ 0x1423d00
// > ??> @ 0x14242d0
// > ??> @ 0x1428cb0
// > ??> @ 0x1433b20
// > ??> @ 0x143a090
// > ??> @ 0x145ae40
// > ??> @ 0x145b3e0
// > ??> @ 0x14774d0
// > ??> @ 0x1479580
// > ??> @ 0x14869e0
// > ??> @ 0x1486f90
// > ??> @ 0x1496d00
// > ??> @ 0x1499250
// > ??> @ 0x14c1b80
// > ??> @ 0x14d9580
// > ??> @ 0x150c9a0
// > ??> @ 0x1517860
// > ??> @ 0x1517e00
// > ??> @ 0x1518980
// > ??> @ 0x152e3e0
// > ??> @ 0x152fbe0
//
// 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 13:08:14 +0000
//
__int64 __fastcall cocos2d::CCSprite::setScaleX(__int64 this, float a2)
{
__int64 v2; // x19
__int64 v3; // x2
if ( *(float *)(this + 64) != a2 )
{
v2 = this;
cocos2d::CCNode::setScaleX(this, a2);
this = *(_QWORD *)(v2 + 368);
if ( this )
{
this = *(unsigned __int8 *)(v2 + 377);
if ( !*(_BYTE *)(v2 + 377) )
{
v3 = *(_QWORD *)v2;
*(_BYTE *)(v2 + 377) = 1;
(*(void (__fastcall **)(__int64, __int64))(v3 + 1200))(v2, 1);
this = *(unsigned __int8 *)(v2 + 378);
if ( *(_BYTE *)(v2 + 378) )
return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v2 + 1232LL))(v2, 1);
}
}
}
return this;
}