//
// GameObject::setScaleX from 0x140295420 to 0x140295502 (226 bytes)
//
// 50 xrefs:
// > PlayerObject::setScaleX @ 0x140501f40
// > ParticleGameObject::setScaleX @ 0x140642d31
// > ??> @ 0x1407546e0
// > ??> @ 0x140754e60
// > ??> @ 0x14075e228
// > ??> @ 0x14075e930
// > ??> @ 0x14081f468
// > ??> @ 0x14081fcb0
// > ??> @ 0x140820408
// > ??> @ 0x140820ac0
// > ??> @ 0x140821228
// > ??> @ 0x1408218e0
// > ??> @ 0x140821fc0
// > ??> @ 0x140822678
// > ??> @ 0x140822f88
// > ??> @ 0x1408236d0
// > ??> @ 0x140823d88
// > ??> @ 0x140824580
// > ??> @ 0x140824c38
// > ??> @ 0x1408252f0
// > ??> @ 0x140825b60
// > ??> @ 0x140826358
// > ??> @ 0x140826b00
// > ??> @ 0x140827230
// > ??> @ 0x1408278e8
// > ??> @ 0x140828040
// > ??> @ 0x140828888
// > ??> @ 0x140828f40
// > ??> @ 0x1408296c0
// > ??> @ 0x140829e40
// > ??> @ 0x14082a4f8
// > ??> @ 0x14082abb0
// > ??> @ 0x14082b5c0
// > ??> @ 0x14082bcf0
// > ??> @ 0x14082c3a8
// > ??> @ 0x14082ca60
// > ??> @ 0x14082d118
// > ??> @ 0x14082d8e8
// > ??> @ 0x14082e090
// > ??> @ 0x14082e748
// > ??> @ 0x14082ee00
// > ??> @ 0x14082f4b8
// > ??> @ 0x14082fb70
// > ??> @ 0x140830228
// > ??> @ 0x1408308e0
// > ??> @ 0x140831100
// > ??> @ 0x140831880
// > ??> @ 0x1408af1f8
// > ??> @ 0x1408af208
// > ??> @ 0x14091d51c
//
// This function is hookable on this platform (idp: pc, 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:29:10 +0000
//
void __fastcall GameObject::setScaleX(__int64 a1, float a2)
{
unsigned int i; // edi
struct cocos2d::CCObject *v4; // rax
__int64 v5; // rcx
__int64 v6; // rcx
__int64 v7; // rcx
*(_BYTE *)(a1 + 873) = 1;
cocos2d::CCSprite::setScaleX((cocos2d::CCSprite *)a1, a2);
if ( *(_BYTE *)(a1 + 616) )
{
if ( *(_BYTE *)(a1 + 617) )
{
for ( i = 0; i < cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 600)); ++i )
{
v4 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 600), i);
(*(void (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v4 + 120LL))(v4);
}
}
}
v5 = *(_QWORD *)(a1 + 752);
if ( v5 )
(*(void (__fastcall **)(__int64))(*(_QWORD *)v5 + 120LL))(v5);
v6 = *(_QWORD *)(a1 + 896);
if ( v6 && !*(_BYTE *)(a1 + 874) )
(*(void (__fastcall **)(__int64))(*(_QWORD *)v6 + 120LL))(v6);
v7 = *(_QWORD *)(a1 + 776);
if ( v7 )
{
if ( !*(_BYTE *)(a1 + 828) )
(*(void (__fastcall **)(__int64))(*(_QWORD *)v7 + 120LL))(v7);
}
}