//
// SetupRotateCommandPopup::valueDidChange from 0x100002840 to 0x100002b76 (822 bytes)
//
// 1 xrefs:
// > ??> @ 0x100ab45d0
//
// 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:18:45 +0000
//
__int64 __fastcall SetupRotateCommandPopup::valueDidChange(__int64 a1, int a2, __m128 a3)
{
int v3; // r15d
__m128 v4; // rt1
__int64 v5; // rsi
__int64 result; // rax
__m128 v7; // xmm0
unsigned __int8 v8; // r14
int v9; // r12d
__m128 v10; // xmm0
unsigned __int8 v11; // r15
unsigned __int32 v12; // [rsp+Ch] [rbp-24h]
if ( a2 <= 199 )
{
if ( a2 == 100 )
{
v12 = a3.i32[0];
if ( a3.f32[0] != 0.0 )
SetupTriggerPopup::updateValue(a1, 394, 0.0);
LOBYTE(v9) = 1;
if ( (*(float (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1464LL))(a1, 100) == 0.0 )
{
v10.f32[0] = (*(float (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1464LL))(a1, 394);
v9 = _mm_cvtsi128_si32((__m128i)_mm_cmpneq_ss((__m128)0LL, v10)) & 1;
}
(*(void (__fastcall **)(__int64, __int64, _QWORD))(*(_QWORD *)a1 + 1352LL))(a1, 9002, (unsigned __int8)v9);
(*(void (__fastcall **)(__int64, __int64, _QWORD))(*(_QWORD *)a1 + 1352LL))(a1, 9001, (unsigned __int8)v9 ^ 1u);
v11 = ((*(float (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1464LL))(a1, 397) != 0.0) & v9;
(*(void (__fastcall **)(__int64, __int64, _QWORD))(*(_QWORD *)a1 + 1352LL))(a1, 9003, v11 ^ 1u);
(*(void (__fastcall **)(__int64, __int64, _QWORD))(*(_QWORD *)a1 + 1352LL))(a1, 9004, v11);
return SetupTriggerPopup::togglePageArrows(
a1,
_mm_cvtsi128_si32((__m128i)_mm_cmpneq_ss((__m128)v12, (__m128)0LL)) & 1);
}
if ( a2 != 138 || a3.f32[0] == 0.0 )
return result;
v5 = 200;
LABEL_14:
SetupTriggerPopup::updateValue(a1, v5, 0.0);
return SetupTriggerPopup::updateValue(a1, 401, 0.0);
}
switch ( a2 )
{
case 200:
if ( a3.f32[0] == 0.0 )
return result;
v5 = 138;
goto LABEL_14;
case 394:
if ( a3.f32[0] != 0.0 )
SetupTriggerPopup::updateValue(a1, 100, 0.0);
LOBYTE(v3) = 1;
if ( (*(float (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1464LL))(a1, 100) == 0.0 )
{
v7.f32[0] = (*(float (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1464LL))(a1, 394);
v3 = _mm_cvtsi128_si32((__m128i)_mm_cmpneq_ss((__m128)0LL, v7)) & 1;
}
goto LABEL_20;
case 397:
LOBYTE(v3) = 1;
if ( (*(float (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1464LL))(a1, 100) == 0.0 )
{
*(double *)a3.i64 = (*(double (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1464LL))(a1, 394);
v4.i32[0] = 0;
v3 = _mm_cvtsi128_si32((__m128i)_mm_cmpneq_ss(a3, v4)) & 1;
}
LABEL_20:
(*(void (__fastcall **)(__int64, __int64, _QWORD))(*(_QWORD *)a1 + 1352LL))(a1, 9002, (unsigned __int8)v3);
(*(void (__fastcall **)(__int64, __int64, _QWORD))(*(_QWORD *)a1 + 1352LL))(a1, 9001, (unsigned __int8)v3 ^ 1u);
v8 = ((*(float (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1464LL))(a1, 397) != 0.0) & v3;
(*(void (__fastcall **)(__int64, __int64, bool))(*(_QWORD *)a1 + 1352LL))(a1, 9003, !v8);
return (*(__int64 (__fastcall **)(__int64, __int64, _QWORD))(*(_QWORD *)a1 + 1352LL))(a1, 9004, v8);
}
return result;
}