//
// cocos2d::CCSprite::setScale from 0x1002d5908 to 0x1002d5998 (144 bytes)
//
// 27 xrefs:
// > CCPartAnimSprite::setScale @ 0x100087bb0
// > CCSpritePlus::setScale @ 0x10024dd88
// > ??> @ 0x1008ae910
// > ??> @ 0x1008bfe10
// > ??> @ 0x1008c0768
// > ??> @ 0x1008c1978
// > ??> @ 0x1008c3f40
// > ??> @ 0x1008d4200
// > ??> @ 0x1008dfd08
// > ??> @ 0x1008eea78
// > ??> @ 0x100903df0
// > ??> @ 0x1009043b8
// > ??> @ 0x1009105e0
// > ??> @ 0x1009117f0
// > ??> @ 0x10091c9b0
// > ??> @ 0x10091f9b8
// > ??> @ 0x1009204b8
// > ??> @ 0x100921d38
// > ??> @ 0x100922300
// > ??> @ 0x10093c9e0
// > ??> @ 0x100942228
// > ??> @ 0x1009427f0
// > ??> @ 0x100944520
// > ??> @ 0x100944ab8
// > ??> @ 0x100963940
// > ??> @ 0x100969d58
// > ??> @ 0x10098c740
//
// 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::setScale(__int64 result, float a2)
{
__int64 v2; // x19
v2 = result;
if ( *(float *)(result + 64) != a2 || *(float *)(result + 68) != a2 )
{
result = cocos2d::CCNode::setScale_1(result);
if ( *(_QWORD *)(v2 + 368) && (*(_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;
}