//
// SetupMoveCommandPopup::valueDidChange from 0x1006e05a0 to 0x1006e07a4 (516 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b92f70
//
// This function is hookable on this platform (idp: pc, 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:35:44 +0000
//
__int64 __fastcall SetupMoveCommandPopup::valueDidChange(__int64 a1, int a2, __m128 a3)
{
__int64 v3; // rbx
unsigned int v4; // esi
__int64 result; // rax
_QWORD *v6; // rbx
unsigned int v7; // esi
if ( a2 > 141 )
{
if ( a2 > 392 )
{
if ( a2 == 393 )
{
*(_BYTE *)(a1 + 1012) = a3.f32[0] != 0.0;
SetupTriggerPopup::updateValue((_QWORD *)a1, 0x1Cu, 0.0);
SetupTriggerPopup::updateValue((_QWORD *)a1, 0x1Du, 0.0);
return SetupTriggerPopup::updateValue((_QWORD *)a1, 0x18Cu, 0.0);
}
if ( a2 == 394 )
{
if ( a3.f32[0] != 0.0 )
{
a3 = 0;
v3 = a1;
v4 = 100;
goto LABEL_35;
}
return SetupMoveCommandPopup::updateControlVisibility(a1, a3);
}
if ( a2 == 544 && a3.f32[0] != 0.0 )
return SetupTriggerPopup::updateValue((_QWORD *)a1, 0xAu, 0.0);
return result;
}
if ( a2 == 142 )
{
if ( a3.f32[0] != 0.0 )
{
a3 = 0;
v3 = a1;
v4 = 59;
goto LABEL_35;
}
return SetupMoveCommandPopup::updateControlVisibility(a1, a3);
}
if ( a2 == 200 && a3.f32[0] != 0.0 )
{
v6 = (_QWORD *)a1;
v7 = 138;
goto LABEL_31;
}
}
else
{
if ( a2 > 99 )
{
if ( a2 == 100 )
{
if ( a3.f32[0] != 0.0 )
{
a3 = 0;
v3 = a1;
v4 = 394;
goto LABEL_35;
}
return SetupMoveCommandPopup::updateControlVisibility(a1, a3);
}
if ( a2 != 138 )
{
if ( a2 == 141 )
{
if ( a3.f32[0] != 0.0 )
{
a3 = 0;
v3 = a1;
v4 = 58;
LABEL_35:
SetupTriggerPopup::updateValue((_QWORD *)a1, v4, a3.f32[0]);
a1 = v3;
return SetupMoveCommandPopup::updateControlVisibility(a1, a3);
}
return SetupMoveCommandPopup::updateControlVisibility(a1, a3);
}
return result;
}
if ( a3.f32[0] == 0.0 )
return result;
v6 = (_QWORD *)a1;
v7 = 200;
LABEL_31:
SetupTriggerPopup::updateValue((_QWORD *)a1, v7, 0.0);
return SetupTriggerPopup::updateValue(v6, 0x47u, 0.0);
}
if ( a2 == 58 )
{
if ( a3.f32[0] != 0.0 )
{
a3 = 0;
v3 = a1;
v4 = 141;
goto LABEL_35;
}
return SetupMoveCommandPopup::updateControlVisibility(a1, a3);
}
if ( a2 == 59 )
{
if ( a3.f32[0] != 0.0 )
{
a3 = 0;
v3 = a1;
v4 = 142;
goto LABEL_35;
}
return SetupMoveCommandPopup::updateControlVisibility(a1, a3);
}
}
return result;
}