//
// SetupMoveCommandPopup::updateControlVisibility from 0xa3da60 to 0xa3dc20 (448 bytes)
//
// 3 xrefs:
// > SetupMoveCommandPopup::valueDidChange @ 0xa3dd00
// > SetupMoveCommandPopup::init @ 0xa3ebe4
// > ??> @ 0xdf858
//
// This function is hookable on this platform (idp: arm, 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:59:55 +0000
//
__int64 __fastcall SetupMoveCommandPopup::updateControlVisibility(SetupMoveCommandPopup *this)
{
_BOOL4 v2; // w21
float v3; // s0
_BOOL4 v4; // w22
unsigned int v5; // w20
__int64 result; // x0
_BOOL8 v7; // x2
_BOOL4 v8; // w20
_BOOL8 v9; // x2
_BOOL4 v10; // w20
v2 = (*(float (__fastcall **)(SetupMoveCommandPopup *, __int64))(*(_QWORD *)this + 1464LL))(this, 100) != 0.0;
v3 = (*(float (__fastcall **)(SetupMoveCommandPopup *, __int64))(*(_QWORD *)this + 1464LL))(this, 394);
v4 = v3 != 0.0;
v5 = v3 == 0.0 && !v2;
(*(void (__fastcall **)(SetupMoveCommandPopup *, __int64, _BOOL4))(*(_QWORD *)this + 1352LL))(this, 9002, v2);
(*(void (__fastcall **)(SetupMoveCommandPopup *, __int64, _BOOL4))(*(_QWORD *)this + 1352LL))(this, 9003, v4);
(*(void (__fastcall **)(SetupMoveCommandPopup *, __int64, _QWORD))(*(_QWORD *)this + 1352LL))(
this,
9004,
v4 | (unsigned int)v2);
result = (*(__int64 (__fastcall **)(SetupMoveCommandPopup *, __int64, _QWORD))(*(_QWORD *)this + 1352LL))(
this,
9001,
v5);
if ( v5 )
{
if ( (*(float (__fastcall **)(SetupMoveCommandPopup *, __int64))(*(_QWORD *)this + 1464LL))(this, 58) == 0.0 )
{
v8 = (*(float (__fastcall **)(SetupMoveCommandPopup *, __int64))(*(_QWORD *)this + 1464LL))(this, 141) != 0.0;
v7 = !v8;
}
else
{
v7 = 0;
v8 = 1;
}
(*(void (__fastcall **)(SetupMoveCommandPopup *, __int64, _BOOL8))(*(_QWORD *)this + 1352LL))(this, 28, v7);
(*(void (__fastcall **)(SetupMoveCommandPopup *, __int64, _BOOL4))(*(_QWORD *)this + 1352LL))(this, 143, v8);
if ( (*(float (__fastcall **)(SetupMoveCommandPopup *, __int64))(*(_QWORD *)this + 1464LL))(this, 59) == 0.0 )
{
v10 = (*(float (__fastcall **)(SetupMoveCommandPopup *, __int64))(*(_QWORD *)this + 1464LL))(this, 142) != 0.0;
v9 = !v10;
}
else
{
v9 = 0;
v10 = 1;
}
(*(void (__fastcall **)(SetupMoveCommandPopup *, __int64, _BOOL8))(*(_QWORD *)this + 1352LL))(this, 29, v9);
return (*(__int64 (__fastcall **)(SetupMoveCommandPopup *, __int64, _BOOL4))(*(_QWORD *)this + 1352LL))(
this,
144,
v10);
}
return result;
}