//
// GameObject::updateCustomScaleX from 0x1005a9c50 to 0x1005a9ccb (123 bytes)
//
// 22 xrefs:
// > EditorUI::onCreateObject @ 0x100034f5f
// > EditorUI::createObject @ 0x10003a532
// > EditorUI::scaleXChanged @ 0x10003f657
// > EditorUI::scaleObjects @ 0x10003f9ad
// > EditorUI::scaleObjects @ 0x10003f9f1
// > sub_10003FCC0 @ 0x10003fcf6
// > EditorUI::transformObjects @ 0x100040b25
// > EditorUI::addObjectsToSmartTemplate @ 0x1000425c7
// > EditorUI::createPrefab @ 0x100043a44
// > EditorUI::createPrefab @ 0x100043a93
// > EditorUI::processSmartObjectsFromType @ 0x1000442a3
// > EditorUI::processSmartObjectsFromType @ 0x100044528
// > EditorUI::createNewKeyframeAnim @ 0x100045623
// > EditorUI::createLoop @ 0x100045b69
// > EditorUI::createLoop @ 0x100045d43
// > PlayLayer::addObject @ 0x1000b245d
// > PlayLayer::addObject @ 0x1000b295b
// > GameObjectCopy::resetObject @ 0x1000e33c9
// > EditorUI::createOutlines @ 0x100614e2e
// > EditorUI::createOutlines @ 0x100614ee9
// > EditorUI::createRockBases @ 0x100615c0b
// > EditorUI::createRockBases @ 0x100615d28
//
// 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
//
// local variable allocation has failed, the output may be wrong!
void __fastcall GameObject::updateCustomScaleX(GameObject *a1, float a2)
{
__m128 v2; // xmm0
__m128 v3; // xmm2
v2.f32[0] = a2 * 1000.0;
v3 = _mm_or_ps(_mm_and_ps((__m128)xmmword_1008150B0, v2), (__m128)xmmword_1008150C0);
v3.f32[0] = v3.f32[0] + v2.f32[0];
v2.f32[0] = _mm_cvtepi32_ps(_mm_cvttps_epi32(_mm_round_ss((__m128)0LL, v3, 11))).f32[0] / 1000.0;
LODWORD(a1->m_scaleX) = v2.i32[0];
LODWORD(a1->m_customScaleX) = v2.i32[0];
a1->m_fScaleX = 0.0;
((void (__fastcall *)(GameObject *, float))a1->setRScaleX)(a1, 1.0);
a1->m_isDirty = 1;
a1->m_isObjectRectDirty = 1;
}