//
// SetupMoveCommandPopup::updateControlVisibility from 0x1002748b0 to 0x100274a5c (428 bytes)
//
// 2 xrefs:
// > SetupMoveCommandPopup::init @ 0x100274648
// > SetupMoveCommandPopup::valueDidChange @ 0x100274d24
//
// 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
//
void __fastcall SetupMoveCommandPopup::updateControlVisibility(SetupMoveCommandPopup *a1)
{
_BOOL8 v2; // x20
float v3; // s0
_BOOL8 v4; // x21
__int64 v5; // x22
_BOOL8 v6; // x20
_BOOL8 v7; // x20
v2 = ((float (__fastcall *)(SetupMoveCommandPopup *, __int64))a1->getValue)(a1, 100) != 0.0;
v3 = ((float (__fastcall *)(SetupMoveCommandPopup *, __int64))a1->getValue)(a1, 394);
v4 = v3 != 0.0;
v5 = v3 != 0.0 || v2;
((void (__fastcall *)(SetupMoveCommandPopup *, __int64, _BOOL8))a1->toggleGroup)(a1, 9002, v2);
((void (__fastcall *)(SetupMoveCommandPopup *, __int64, _BOOL8))a1->toggleGroup)(a1, 9003, v4);
((void (__fastcall *)(SetupMoveCommandPopup *, __int64, __int64))a1->toggleGroup)(a1, 9004, v5);
((void (__fastcall *)(SetupMoveCommandPopup *, __int64, _QWORD))a1->toggleGroup)(a1, 9001, (unsigned int)v5 ^ 1);
if ( (v5 & 1) == 0 )
{
v6 = ((float (__fastcall *)(SetupMoveCommandPopup *, __int64))a1->getValue)(a1, 58) != 0.0
|| ((float (__fastcall *)(SetupMoveCommandPopup *, __int64))a1->getValue)(a1, 141) != 0.0;
((void (__fastcall *)(SetupMoveCommandPopup *, __int64, _QWORD))a1->toggleGroup)(a1, 28, (unsigned int)v6 ^ 1);
((void (__fastcall *)(SetupMoveCommandPopup *, __int64, _BOOL8))a1->toggleGroup)(a1, 143, v6);
v7 = ((float (__fastcall *)(SetupMoveCommandPopup *, __int64))a1->getValue)(a1, 59) != 0.0
|| ((float (__fastcall *)(SetupMoveCommandPopup *, __int64))a1->getValue)(a1, 142) != 0.0;
((void (__fastcall *)(SetupMoveCommandPopup *, __int64, _QWORD))a1->toggleGroup)(a1, 29, (unsigned int)v7 ^ 1);
((void (__fastcall *)(SetupMoveCommandPopup *, __int64, _BOOL8))a1->toggleGroup)(a1, 144, v7);
}
}