//
// SetupShaderEffectPopup::valueDidChange from 0xb3af5c to 0xb3b234 (728 bytes)
//
// 2 xrefs:
// > ??> @ 0x61d50
// > ??> @ 0x14b7f20
//
// This function is hookable on this platform (idp: arm, 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 13:01:48 +0000
//
__int64 __fastcall SetupShaderEffectPopup::valueDidChange(cocos2d::CCDictionary **this, int a2, float a3)
{
int v6; // w0
_QWORD *v8; // x20
const char *v9; // x1
size_t v10; // x0
_BOOL4 v11; // w20
_BOOL4 v12; // w20
char *v13; // [xsp+48h] [xbp+48h]
__int64 v14[2]; // [xsp+58h] [xbp+58h] BYREF
void *v15; // [xsp+68h] [xbp+68h]
__int64 v16[2]; // [xsp+70h] [xbp+70h] BYREF
void *v17; // [xsp+80h] [xbp+80h]
if ( a2 == 513 )
{
v11 = a3 != 0.0;
SetupTriggerPopup::toggleDisableButtons((__int64)this, v11);
if ( a3 == 0.0 )
SetupTriggerPopup::resetDisabledValues((SetupTriggerPopup *)this);
(*((void (__fastcall **)(cocos2d::CCDictionary **, __int64, _BOOL4))*this + 169))(this, 103, v11);
}
else
{
v6 = *((_DWORD *)this + 259);
if ( (v6 & 0xFFFFFFFD) == 2905 || v6 == 2914 || (unsigned int)(v6 - 2916) <= 1 )
{
if ( a2 == 188 )
{
v12 = a3 != 0.0;
(*((void (__fastcall **)(cocos2d::CCDictionary **, __int64, bool))*this + 169))(this, 100, a3 != 0.0);
(*((void (__fastcall **)(cocos2d::CCDictionary **, __int64, bool))*this + 169))(this, 101, !v12);
return _stack_chk_guard;
}
if ( a2 == 184 )
{
(*((void (__fastcall **)(cocos2d::CCDictionary **, __int64, bool))*this + 169))(this, 102, a3 != 0.0);
return _stack_chk_guard;
}
}
if ( ((unsigned int)(v6 - 2913) <= 4 || (v6 & 0xFFFFFFFD) == 0xB59) && (unsigned int)(a2 - 200) <= 1 )
{
SetupTriggerPopup::valueChanged((SetupTriggerPopup *)this, 51, 0.0);
v14[0] = 0;
v14[1] = 0;
v15 = nullptr;
std::string::__init(v14, "0", 1u);
if ( a3 == 0.0 )
{
LABEL_13:
v8 = (_QWORD *)cocos2d::CCDictionary::objectForKey(*(this + 95), 51);
if ( v8 )
{
v9 = (char *)v14 + 1;
if ( (v14[0] & 1) != 0 )
v9 = (const char *)v15;
v13 = (char *)v9;
v16[0] = 0;
v16[1] = 0;
v17 = nullptr;
v10 = strlen(v9);
std::string::__init(v16, v13, v10);
CCTextInputNode::setString(v8, (char *)v16);
if ( (v16[0] & 1) != 0 )
operator delete(v17);
}
if ( (v14[0] & 1) != 0 )
operator delete(v15);
return _stack_chk_guard;
}
if ( a2 == 138 )
{
std::string::assign(v14, "P1");
}
else
{
SetupTriggerPopup::updateValue(this, 0x8Au, 0.0);
if ( a2 == 200 )
{
std::string::assign(v14, "P2");
LABEL_12:
SetupTriggerPopup::updateValue(this, 0xC9u, 0.0);
goto LABEL_13;
}
}
SetupTriggerPopup::updateValue(this, 0xC8u, 0.0);
if ( a2 == 201 )
{
std::string::assign(v14, "C");
goto LABEL_13;
}
goto LABEL_12;
}
}
return _stack_chk_guard;
}