//
// SetupAreaTintTriggerPopup::valueDidChange from 0x140410340 to 0x1404104f5 (437 bytes)
//
// 2 xrefs:
// > ??> @ 0x1405dd258
// > ??> @ 0x1406d8c48
//
// 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
//
void SetupAreaTintTriggerPopup::valueDidChange(SetupAreaTintTriggerPopup *a1, int a2, float a3)
{
_BOOL8 v3; // r8
int v5; // edx
int v6; // edx
__int64 v7; // rdx
if ( a2 == 241 )
{
a1->toggleGroup(a1, 1, a3 == 0.0);
if ( a3 == 0.0 )
{
v3 = 0;
goto LABEL_28;
}
LABEL_27:
LOBYTE(v3) = 1;
goto LABEL_28;
}
if ( a2 == 261 )
{
if ( a3 == 0.0 )
v3 = 0;
else
LOBYTE(v3) = 1;
v7 = 9;
goto LABEL_29;
}
v5 = a2 - 65;
if ( v5 )
{
v6 = v5 - 1;
if ( v6 )
{
if ( v6 != 212 )
return;
if ( a3 == 0.0 )
LOBYTE(v3) = 1;
else
v3 = 0;
a1->toggleGroup(a1, 1, v3);
if ( a3 == 0.0 )
{
v3 = 0;
LABEL_28:
v7 = 2;
LABEL_29:
a1->toggleGroup(a1, v7, v3);
return;
}
goto LABEL_27;
}
if ( a3 != 0.0 )
{
if ( cocos2d::CCDictionary::objectForKey(a1->m_valueToggles, 65) )
a1->updateToggleItem(a1, 65, 0);
else
SetupTriggerPopup::updateValueControls(a1, 65, 0.0);
SetupTriggerPopup::valueChanged(a1, 65, 0.0);
}
}
else if ( a3 != 0.0 )
{
if ( cocos2d::CCDictionary::objectForKey(a1->m_valueToggles, 66) )
a1->updateToggleItem(a1, 66, 0);
else
SetupTriggerPopup::updateValueControls(a1, 66, 0.0);
SetupTriggerPopup::valueChanged(a1, 66, 0.0);
}
}