//
// SetupAudioTriggerPopup::valueDidChange from 0x1004b7a60 to 0x1004b7b91 (305 bytes)
//
// 4 xrefs:
// > SetupSongTriggerPopup::valueDidChange @ 0x1002d4186
// > SetupSFXPopup::valueDidChange @ 0x1004ba60a
// > ??> @ 0x10094b2e0
// > ??> @ 0x10094cb68
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
// local variable allocation has failed, the output may be wrong!
void __fastcall SetupAudioTriggerPopup::valueDidChange(SetupAudioTriggerPopup *a1, int a2, float a3)
{
__m128 v3; // xmm0
int v4; // eax
if ( a2 != 138 )
{
if ( a2 == 428 )
{
((void (__fastcall *)(SetupAudioTriggerPopup *, __int64, _QWORD))a1->toggleGroup)(
a1,
428,
_mm_cvtsi128_si32((__m128i)_mm_cmpneq_ss(*(__m128 *)&a3, (__m128)0LL)) & 1);
if ( a3 != 0.0 )
{
SetupTriggerPopup::updateValue(a1, 138, 0.0);
SetupTriggerPopup::updateValue(a1, 200, 0.0);
}
goto LABEL_10;
}
if ( a2 != 200 )
return;
}
if ( a3 != 0.0 )
SetupTriggerPopup::updateValue(a1, 428, 0.0);
LABEL_10:
if ( ((float (__fastcall *)(SetupAudioTriggerPopup *, __int64))a1->getValue)(a1, 138) == 0.0
&& ((float (__fastcall *)(SetupAudioTriggerPopup *, __int64))a1->getValue)(a1, 200) == 0.0 )
{
v3.f32[0] = ((float (__fastcall *)(SetupAudioTriggerPopup *, __int64))a1->getValue)(a1, 428);
v4 = _mm_cvtsi128_si32((__m128i)_mm_cmpeq_ss((__m128)0LL, v3)) & 1;
}
else
{
LOBYTE(v4) = 0;
}
((void (__fastcall *)(SetupAudioTriggerPopup *, __int64, _QWORD))a1->toggleGroup)(a1, 9, (unsigned __int8)v4);
}