//
// GameObject::updateCustomScaleX from 0x644334 to 0x644390 (92 bytes)
//
// 17 xrefs:
// > PlayLayer::addObject @ 0x5cca0c
// > PlayLayer::addObject @ 0x5ccd90
// > GameObject::resetObject @ 0x647268
// > GameObject::duplicateValues @ 0x64a4fc
// > GameObject::objectFromVector @ 0x65595c
// > GameObject::objectFromVector @ 0x655a7c
// > GameObjectCopy::resetObject @ 0x664cd4
// > EditorUI::createObject @ 0x688f40
// > EditorUI::scaleObjects @ 0x6b7ad8
// > EditorUI::scaleObjects @ 0x6b7bbc
// > EditorUI::scaleXChanged @ 0x6b7c58
// > EditorUI::transformObjects @ 0x6b81a0
// > EditorUI::createOutlines @ 0x9ccabc
// > EditorUI::createOutlines @ 0x9ccb80
// > EditorUI::createRockBases @ 0x9cd46c
// > EditorUI::createRockBases @ 0x9cd590
// > ??> @ 0x70da0
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void GameObject::updateCustomScaleX(GameObject *a1, float a2)
{
void (__fastcall *setRScaleX)(float); // x2
float v4; // s1
setRScaleX = (void (__fastcall *)(float))a1->setRScaleX;
a1->m_fScaleX = 0.0;
v4 = (float)(int)llroundf(a2 * 1000.0) / 1000.0;
a1->m_scaleX = v4;
a1->m_customScaleX = v4;
setRScaleX(1.0);
a1->m_isDirty = 1;
a1->m_isObjectRectDirty = 1;
}