//
// SetupMoveCommandPopup::updateControlVisibility from 0x14038ff10 to 0x1403900cf (447 bytes)
//
// 4 xrefs:
// > SetupMoveCommandPopup::init @ 0x14038f8de
// > SetupMoveCommandPopup::valueDidChange @ 0x14038fd81
// > ??> @ 0x140922f58
// > ??> @ 0x140922f64
//
// 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 11:31:11 +0000
//
__int64 __fastcall SetupMoveCommandPopup::updateControlVisibility(__int64 a1)
{
bool v2; // si
bool v3; // di
bool v4; // bp
__int64 v5; // r8
__int64 result; // rax
bool v7; // di
bool v8; // di
v2 = (*(float (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1168LL))(a1, 100) != 0.0;
v3 = (*(float (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1168LL))(a1, 394) != 0.0;
v4 = !v2 && !v3;
(*(void (__fastcall **)(__int64, __int64, bool))(*(_QWORD *)a1 + 1088LL))(a1, 9002, v2);
(*(void (__fastcall **)(__int64, __int64, bool))(*(_QWORD *)a1 + 1088LL))(a1, 9003, v3);
if ( v2 || v3 )
LOBYTE(v5) = 1;
else
v5 = 0;
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 1088LL))(a1, 9004, v5);
result = (*(__int64 (__fastcall **)(__int64, __int64, bool))(*(_QWORD *)a1 + 1088LL))(a1, 9001, v4);
if ( v4 )
{
v7 = (*(float (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1168LL))(a1, 58) != 0.0
|| (*(float (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1168LL))(a1, 141) != 0.0;
(*(void (__fastcall **)(__int64, __int64, bool))(*(_QWORD *)a1 + 1088LL))(a1, 28, !v7);
(*(void (__fastcall **)(__int64, __int64, bool))(*(_QWORD *)a1 + 1088LL))(a1, 143, v7);
v8 = (*(float (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1168LL))(a1, 59) != 0.0
|| (*(float (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1168LL))(a1, 142) != 0.0;
(*(void (__fastcall **)(__int64, __int64, bool))(*(_QWORD *)a1 + 1088LL))(a1, 29, !v8);
return (*(__int64 (__fastcall **)(__int64, __int64, bool))(*(_QWORD *)a1 + 1088LL))(a1, 144, v8);
}
return result;
}