//
// GJUINode::updateWidth from 0x1004cb410 to 0x1004cb473 (99 bytes)
//
// 4 xrefs:
// > UIOptionsLayer::valueDidChange @ 0x1002b4839
// > UIOptionsLayer::valueDidChange @ 0x1002b48cd
// > UIOptionsLayer::valueDidChange @ 0x1002b48df
// > UIOptionsLayer::valueDidChange @ 0x1002b4a8e
//
// 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 GJUINode::updateWidth(GJUINode *a1, float a2)
{
__m128 v2; // xmm2
__m128 height_low; // xmm3
unsigned __int64 v4[4]; // [rsp+0h] [rbp-20h] BYREF
v2 = *(__m128 *)&a2;
height_low = (__m128)LODWORD(a1->m_rect.size.height);
v2.f32[0] = fmaxf(a2, 10.0);
height_low.f32[0] = fmaxf(height_low.f32[0], 10.0);
sub_10028CC00((__int64)v4, v2.f32[0] * -0.5, -0.5 * height_low.f32[0], v2, height_low);
sub_10028D1A0((__m128 *)&a1->m_rect, v4);
}