//
// SetupMoveCommandPopup::updateControlVisibility from 0x5e72e8 to 0x5e743a (338 bytes)
//
// 2 xrefs:
// > SetupMoveCommandPopup::valueDidChange @ 0x5e74d2
// > SetupMoveCommandPopup::init @ 0x5e8024
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:54:20 +0000
//
int __fastcall SetupMoveCommandPopup::updateControlVisibility(SetupMoveCommandPopup *this)
{
float v2; // s15
float v3; // r0
_BOOL4 v4; // r6
_BOOL4 v5; // r5
int v6; // r2
int result; // r0
_BOOL4 v8; // r5
_BOOL4 v9; // r5
v2 = COERCE_FLOAT((*(int (__fastcall **)(SetupMoveCommandPopup *, int))(*(_DWORD *)this + 732))(this, 100));
v3 = (*(float (__fastcall **)(SetupMoveCommandPopup *, int))(*(_DWORD *)this + 732))(this, 394);
v4 = v3 != 0.0;
v5 = v2 == 0.0 && v3 == 0.0;
(*(void (__fastcall **)(SetupMoveCommandPopup *, int, bool))(*(_DWORD *)this + 676))(this, 9002, v2 != 0.0);
(*(void (__fastcall **)(SetupMoveCommandPopup *, int, _BOOL4))(*(_DWORD *)this + 676))(this, 9003, v4);
v6 = v2 != 0.0 || v4;
(*(void (__fastcall **)(SetupMoveCommandPopup *, int, int))(*(_DWORD *)this + 676))(this, 9004, v6);
result = (*(int (__fastcall **)(SetupMoveCommandPopup *, int, _BOOL4))(*(_DWORD *)this + 676))(this, 9001, v5);
if ( v5 )
{
v8 = (*(float (__fastcall **)(SetupMoveCommandPopup *, int))(*(_DWORD *)this + 732))(this, 58) != 0.0
|| (*(float (__fastcall **)(SetupMoveCommandPopup *, int))(*(_DWORD *)this + 732))(this, 141) != 0.0;
(*(void (__fastcall **)(SetupMoveCommandPopup *, int, bool))(*(_DWORD *)this + 676))(this, 28, !v8);
(*(void (__fastcall **)(SetupMoveCommandPopup *, int, _BOOL4))(*(_DWORD *)this + 676))(this, 143, v8);
v9 = (*(float (__fastcall **)(SetupMoveCommandPopup *, int))(*(_DWORD *)this + 732))(this, 59) != 0.0
|| (*(float (__fastcall **)(SetupMoveCommandPopup *, int))(*(_DWORD *)this + 732))(this, 142) != 0.0;
(*(void (__fastcall **)(SetupMoveCommandPopup *, int, bool))(*(_DWORD *)this + 676))(this, 29, !v9);
return (*(int (__fastcall **)(SetupMoveCommandPopup *, int, _BOOL4))(*(_DWORD *)this + 676))(this, 144, v9);
}
return result;
}