//
// EditorUI::scaleXChanged from 0x140202ff0 to 0x1402030ee (254 bytes)
//
// 2 xrefs:
// > ??> @ 0x1407517c8
// > ??> @ 0x14091afcc
//
// 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:28:14 +0000
//
int __fastcall EditorUI::scaleXChanged(__int64 a1, float a2, char a3)
{
float *v3; // rbx
float v6; // xmm0_4
__int64 v7; // rax
float v8; // xmm1_4
int result; // eax
cocos2d::CCPoint *v10; // rax
char v11; // [rsp+60h] [rbp+8h] BYREF
v3 = *(float **)(a1 + 1136);
if ( v3 )
{
v6 = roundf((float)(a2 * v3[330]) * 1000.0);
v3[16] = 0.0;
v7 = *(_QWORD *)v3;
v8 = (float)(int)v6 / 1000.0;
v3[290] = v8;
v3[249] = v8;
result = (*(__int64 (__fastcall **)(float *))(v7 + 1288))(v3);
*((_BYTE *)v3 + 848) = 1;
*((_BYTE *)v3 + 872) = 1;
}
else
{
result = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 512));
if ( result )
{
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v11, (const struct cocos2d::CCPoint *)(a1 + 384));
return EditorUI::scaleObjects(a1 - 432, *(cocos2d::CCArray **)(a1 + 512), a2, 0.0, v10, 1, a3);
}
}
return result;
}