//
// GameObject::updateCustomScaleY from 0x1005a9cd0 to 0x1005a9d4b (123 bytes)
//
// 21 xrefs:
// > EditorUI::onCreateObject @ 0x100034f70
// > EditorUI::createObject @ 0x10003a542
// > EditorUI::scaleObjects @ 0x10003f9fe
// > EditorUI::scaleYChanged @ 0x10003fd87
// > sub_10003FE00 @ 0x10003fe36
// > EditorUI::transformObjects @ 0x100040b32
// > EditorUI::addObjectsToSmartTemplate @ 0x1000425d7
// > EditorUI::createPrefab @ 0x100043a55
// > EditorUI::createPrefab @ 0x100043aa4
// > EditorUI::processSmartObjectsFromType @ 0x1000442b4
// > EditorUI::processSmartObjectsFromType @ 0x100044538
// > EditorUI::createNewKeyframeAnim @ 0x100045634
// > EditorUI::createLoop @ 0x100045b79
// > EditorUI::createLoop @ 0x100045d55
// > PlayLayer::addObject @ 0x1000b246d
// > PlayLayer::addObject @ 0x1000b296b
// > GameObjectCopy::resetObject @ 0x1000e33d7
// > EditorUI::createOutlines @ 0x100614e3e
// > EditorUI::createOutlines @ 0x100614ef9
// > EditorUI::createRockBases @ 0x100615c1b
// > EditorUI::createRockBases @ 0x100615d38
//
// 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::updateCustomScaleY(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_scaleY) = v2.i32[0];
LODWORD(a1->m_customScaleY) = v2.i32[0];
a1->m_fScaleY = 0.0;
((void (__fastcall *)(GameObject *, float))a1->setRScaleY)(a1, 1.0);
a1->m_isDirty = 1;
a1->m_isObjectRectDirty = 1;
}