//
// SetupRotateCommandPopup::updateControlVisibility from 0x100002700 to 0x1000027da (218 bytes)
//
// 0 xrefs:
//
// 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:18:44 +0000
//
__int64 __fastcall SetupRotateCommandPopup::updateControlVisibility(__int64 a1, __m128 a2)
{
int v2; // r15d
__m128 v3; // rt1
unsigned __int8 v4; // r14
LOBYTE(v2) = 1;
if ( (*(float (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1464LL))(a1, 100) == 0.0 )
{
*(double *)a2.i64 = (*(double (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1464LL))(a1, 394);
v3.i32[0] = 0;
v2 = _mm_cvtsi128_si32((__m128i)_mm_cmpneq_ss(a2, v3)) & 1;
}
(*(void (__fastcall **)(__int64, __int64, _QWORD))(*(_QWORD *)a1 + 1352LL))(a1, 9002, (unsigned __int8)v2);
(*(void (__fastcall **)(__int64, __int64, _QWORD))(*(_QWORD *)a1 + 1352LL))(a1, 9001, (unsigned __int8)v2 ^ 1u);
v4 = ((*(float (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1464LL))(a1, 397) != 0.0) & v2;
(*(void (__fastcall **)(__int64, __int64, _QWORD))(*(_QWORD *)a1 + 1352LL))(a1, 9003, v4 ^ 1u);
return (*(__int64 (__fastcall **)(__int64, __int64, _QWORD))(*(_QWORD *)a1 + 1352LL))(a1, 9004, v4);
}