//
// cocos2d::CCSprite::setScale from 0xd8811c to 0xd881a0 (132 bytes)
//
// 32 xrefs:
// > CCPartAnimSprite::setScale @ 0x694024
// > CCSpritePlus::setScale @ 0x6c8840
// > ??> @ 0xde400
// > ??> @ 0x1413680
// > ??> @ 0x1413c40
// > ??> @ 0x14149f0
// > ??> @ 0x141b120
// > ??> @ 0x141b750
// > ??> @ 0x141cbd0
// > ??> @ 0x1421db0
// > ??> @ 0x1423770
// > ??> @ 0x1423d20
// > ??> @ 0x14242f0
// > ??> @ 0x1428cd0
// > ??> @ 0x1433b40
// > ??> @ 0x143a0b0
// > ??> @ 0x145ae60
// > ??> @ 0x145b400
// > ??> @ 0x14774f0
// > ??> @ 0x14795a0
// > ??> @ 0x1486a00
// > ??> @ 0x1486fb0
// > ??> @ 0x1496d20
// > ??> @ 0x1499270
// > ??> @ 0x14c1ba0
// > ??> @ 0x14d95a0
// > ??> @ 0x150c9c0
// > ??> @ 0x1517880
// > ??> @ 0x1517e20
// > ??> @ 0x15189a0
// > ??> @ 0x152e400
// > ??> @ 0x152fc00
//
// 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::setScale(__int64 this, float a2)
{
__int64 v2; // x19
__int64 v3; // x2
if ( *(float *)(this + 64) != a2 || *(float *)(this + 68) != a2 )
{
v2 = this;
cocos2d::CCNode::setScale(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;
}