//
// GameObject::updateCustomScaleX from 0x1002f3220 to 0x1002f3280 (96 bytes)
//
// 12 xrefs:
// > EditorUI::createOutlines @ 0x10008160c
// > EditorUI::createOutlines @ 0x1000816d0
// > EditorUI::createRockBases @ 0x100082200
// > EditorUI::createRockBases @ 0x100082314
// > PlayLayer::addObject @ 0x1001418dc
// > PlayLayer::addObject @ 0x100141f3c
// > EditorUI::scaleObjects @ 0x10015ea54
// > EditorUI::scaleObjects @ 0x10015ea8c
// > sub_10015EB98 @ 0x10015ee70
// > EditorUI::scaleXChanged @ 0x1001602d4
// > sub_1003FC4A8 @ 0x1003fc534
// > EditorUI::createObject @ 0x100477b68
//
// 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:57 +0000
//
__int64 __fastcall GameObject::updateCustomScaleX(__int64 a1, float a2)
{
float v3; // s0
__int64 result; // x0
v3 = (float)(int)roundf(a2 * 1000.0) / 1000.0;
*(float *)(a1 + 1152) = v3;
*(float *)(a1 + 988) = v3;
*(_DWORD *)(a1 + 64) = 0;
result = (*(__int64 (__fastcall **)(__int64, float))(*(_QWORD *)a1 + 1440LL))(a1, 1.0);
*(_BYTE *)(a1 + 840) = 1;
*(_BYTE *)(a1 + 864) = 1;
return result;
}