//
// GameObject::setScale from 0x44b86e to 0x44b8ba (76 bytes)
//
// 3 xrefs:
// > PlayerObject::setScale @ 0x4344ca
// > RingObject::setScale @ 0x4e6180
// > ParticleGameObject::setScale @ 0x4e7cd0
//
// 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 11:48:34 +0000
//
int __fastcall GameObject::setScale(GameObject *this, float a2)
{
int v4; // r0
int v5; // r0
int result; // r0
*((_BYTE *)this + 733) = 1;
CCSpritePlus::setScale((cocos2d::CCArray **)this, a2);
v4 = *((_DWORD *)this + 160);
if ( v4 )
(*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v4 + 80))(v4, LODWORD(a2));
v5 = *((_DWORD *)this + 189);
if ( v5 && !*((_BYTE *)this + 734) )
(*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v5 + 80))(v5, LODWORD(a2));
result = *((_DWORD *)this + 165);
if ( result )
{
if ( !*((_BYTE *)this + 688) )
return (*(int (__fastcall **)(int, _DWORD))(*(_DWORD *)result + 80))(result, LODWORD(a2));
}
return result;
}