//
// SetupAreaTintTriggerPopup::valueDidChange from 0x1405a79a0 to 0x1405a7b56 (438 bytes)
//
// 2 xrefs:
// > ??> @ 0x1407ebea0
// > ??> @ 0x14092d5d8
//
// 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 11:34:39 +0000
//
void __fastcall SetupAreaTintTriggerPopup::valueDidChange(cocos2d::CCDictionary **a1, int a2, __int64 a3)
{
float v3; // xmm2_4
int v5; // edx
int v6; // edx
__int64 v7; // rdx
if ( a2 == 241 )
{
LOBYTE(a3) = v3 == 0.0;
(*((void (__fastcall **)(cocos2d::CCDictionary **, __int64, __int64))*a1 + 136))(a1, 1, a3);
if ( v3 == 0.0 )
{
a3 = 0;
goto LABEL_28;
}
LABEL_27:
LOBYTE(a3) = 1;
goto LABEL_28;
}
if ( a2 == 261 )
{
if ( v3 == 0.0 )
a3 = 0;
else
LOBYTE(a3) = 1;
v7 = 9;
goto LABEL_29;
}
v5 = a2 - 65;
if ( v5 )
{
v6 = v5 - 1;
if ( v6 )
{
if ( v6 != 212 )
return;
if ( v3 == 0.0 )
LOBYTE(a3) = 1;
else
a3 = 0;
(*((void (__fastcall **)(cocos2d::CCDictionary **, __int64, __int64))*a1 + 136))(a1, 1, a3);
if ( v3 == 0.0 )
{
a3 = 0;
LABEL_28:
v7 = 2;
LABEL_29:
(*((void (__fastcall **)(cocos2d::CCDictionary **, __int64, __int64))*a1 + 136))(a1, v7, a3);
return;
}
goto LABEL_27;
}
if ( v3 != 0.0 )
{
if ( cocos2d::CCDictionary::objectForKey(a1[94], 65) )
(*((void (__fastcall **)(cocos2d::CCDictionary **, __int64, _QWORD))*a1 + 144))(a1, 65, 0);
else
SetupTriggerPopup::updateValueControls(a1, 65);
SetupTriggerPopup::valueChanged(a1, 65);
}
}
else if ( v3 != 0.0 )
{
if ( cocos2d::CCDictionary::objectForKey(a1[94], 66) )
(*((void (__fastcall **)(cocos2d::CCDictionary **, __int64, _QWORD))*a1 + 144))(a1, 66, 0);
else
SetupTriggerPopup::updateValueControls(a1, 66);
SetupTriggerPopup::valueChanged(a1, 66);
}
}