//
// SetupMoveCommandPopup::updateControlVisibility from 0x4b8b30 to 0x4b8c82 (338 bytes)
//
// 2 xrefs:
// > SetupMoveCommandPopup::valueDidChange @ 0x4b8d1a
// > SetupMoveCommandPopup::init @ 0x4b9780
//
// 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 SetupMoveCommandPopup::updateControlVisibility(SetupMoveCommandPopup *a1)
{
float v2; // s15
float v3; // r0
_BOOL4 v4; // r6
_BOOL4 v5; // r5
_BOOL4 v6; // r2
_BOOL4 v7; // r5
_BOOL4 v8; // r5
v2 = COERCE_FLOAT(((int (__fastcall *)(SetupMoveCommandPopup *, int))a1->getValue)(a1, 100));
v3 = a1->getValue(a1, 394);
v4 = v3 != 0.0;
v5 = v2 == 0.0 && v3 == 0.0;
a1->toggleGroup(a1, 9002, v2 != 0.0);
a1->toggleGroup(a1, 9003, v4);
v6 = v2 != 0.0 || v4;
a1->toggleGroup(a1, 9004, v6);
a1->toggleGroup(a1, 9001, v5);
if ( v5 )
{
v7 = a1->getValue(a1, 58) != 0.0 || a1->getValue(a1, 141) != 0.0;
a1->toggleGroup(a1, 28, !v7);
a1->toggleGroup(a1, 143, v7);
v8 = a1->getValue(a1, 59) != 0.0 || a1->getValue(a1, 142) != 0.0;
a1->toggleGroup(a1, 29, !v8);
a1->toggleGroup(a1, 144, v8);
}
}