//
// SetupMoveCommandPopup::valueDidChange from 0xa3dc20 to 0xa3ddd0 (432 bytes)
//
// 2 xrefs:
// > ??> @ 0x77398
// > ??> @ 0x1487a90
//
// 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
//
SetupMoveCommandPopup *__fastcall SetupMoveCommandPopup::valueDidChange(SetupMoveCommandPopup *this, int a2, float a3)
{
SetupMoveCommandPopup *v3; // x19
int v4; // w1
int v5; // w1
v3 = this;
if ( a2 == 141 )
{
if ( a3 != 0.0 )
SetupTriggerPopup::updateValue(this, 58, 0.0);
return (SetupMoveCommandPopup *)SetupMoveCommandPopup::updateControlVisibility(v3);
}
if ( a2 > 141 )
{
if ( a2 == 393 )
{
*((_BYTE *)this + 1012) = a3 != 0.0;
SetupTriggerPopup::updateValue(this, 28, 0.0);
SetupTriggerPopup::updateValue(v3, 29, 0.0);
return (SetupMoveCommandPopup *)SetupTriggerPopup::updateValue(v3, 396, 0.0);
}
if ( a2 > 393 )
{
if ( a2 != 394 )
{
if ( a2 == 544 && a3 != 0.0 )
{
v5 = 10;
return (SetupMoveCommandPopup *)SetupTriggerPopup::updateValue(this, v5, 0.0);
}
return this;
}
if ( a3 != 0.0 )
SetupTriggerPopup::updateValue(this, 100, 0.0);
}
else
{
if ( a2 != 142 )
{
if ( a2 == 200 && a3 != 0.0 )
{
v4 = 138;
LABEL_9:
SetupTriggerPopup::updateValue(this, v4, 0.0);
this = v3;
v5 = 71;
return (SetupMoveCommandPopup *)SetupTriggerPopup::updateValue(this, v5, 0.0);
}
return this;
}
if ( a3 != 0.0 )
SetupTriggerPopup::updateValue(this, 59, 0.0);
}
return (SetupMoveCommandPopup *)SetupMoveCommandPopup::updateControlVisibility(v3);
}
if ( a2 == 59 )
{
if ( a3 != 0.0 )
SetupTriggerPopup::updateValue(this, 142, 0.0);
return (SetupMoveCommandPopup *)SetupMoveCommandPopup::updateControlVisibility(v3);
}
if ( a2 <= 59 )
{
if ( a2 != 58 )
return this;
if ( a3 != 0.0 )
SetupTriggerPopup::updateValue(this, 141, 0.0);
return (SetupMoveCommandPopup *)SetupMoveCommandPopup::updateControlVisibility(v3);
}
if ( a2 == 100 )
{
if ( a3 != 0.0 )
SetupTriggerPopup::updateValue(this, 394, 0.0);
return (SetupMoveCommandPopup *)SetupMoveCommandPopup::updateControlVisibility(v3);
}
if ( a2 == 138 && a3 != 0.0 )
{
v4 = 200;
goto LABEL_9;
}
return this;
}