//
// GameObject::updateCustomScaleX from 0x10067b3a0 to 0x10067b41b (123 bytes)
//
// 23 xrefs:
// > EditorUI::onCreateObject @ 0x10001118f
// > EditorUI::createObject @ 0x100011d02
// > EditorUI::addObjectsToSmartTemplate @ 0x100013797
// > EditorUI::createPrefab @ 0x1000149da
// > EditorUI::createPrefab @ 0x100014a23
// > EditorUI::processSmartObjectsFromType @ 0x100015373
// > EditorUI::processSmartObjectsFromType @ 0x1000155f8
// > EditorUI::createNewKeyframeAnim @ 0x100016703
// > EditorUI::createLoop @ 0x100016c49
// > EditorUI::createLoop @ 0x100016e23
// > EditorUI::createGradientFromSelection @ 0x1000176f3
// > PlayLayer::addObject @ 0x10007f9eb
// > PlayLayer::addObject @ 0x10007fed9
// > GameObjectCopy::resetObject @ 0x1000b2f29
// > EditorUI::scaleObjects @ 0x10061042d
// > EditorUI::scaleObjects @ 0x100610471
// > EditorUI::transformObjects @ 0x100610b35
// > EditorUI::scaleXChanged @ 0x100613127
// > sub_1006131A0 @ 0x1006131d6
// > EditorUI::createOutlines @ 0x1006f18be
// > EditorUI::createOutlines @ 0x1006f1979
// > EditorUI::createRockBases @ 0x1006f266d
// > EditorUI::createRockBases @ 0x1006f278f
//
// 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 12:35:03 +0000
//
__int64 __fastcall GameObject::updateCustomScaleX(__int64 a1, __m128 a2)
{
__m128 v2; // xmm2
float v3; // xmm0_4
__int64 result; // rax
a2.f32[0] = a2.f32[0] * 1000.0;
v2 = _mm_or_ps(_mm_and_ps((__m128)xmmword_100A035F0, a2), (__m128)xmmword_100A03600);
v2.f32[0] = v2.f32[0] + a2.f32[0];
v3 = _mm_cvtepi32_ps(_mm_cvttps_epi32(_mm_round_ss((__m128)0LL, v2, 11))).f32[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;
}