//
// SetupShaderEffectPopup::valueDidChange from 0x68e1d0 to 0x68e3b0 (480 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:56:10 +0000
//
cocos2d::CCObject **__fastcall SetupShaderEffectPopup::valueDidChange(cocos2d::CCObject **this, char *a2, float a3)
{
cocos2d::CCObject **v3; // r4
char *v4; // r5
int v6; // r3
unsigned int v7; // r3
int v8; // r8
size_t v9; // r0
int v10[2]; // [sp+4h] [bp-1Ch] BYREF
char *v11; // [sp+Ch] [bp-14h]
int v12[3]; // [sp+10h] [bp-10h] BYREF
v3 = this;
v4 = a2;
if ( a2 == (_BYTE *)&stru_1FC.st_value + 1 )
{
SetupTriggerPopup::toggleDisableButtons((int)this, a3 != 0.0);
if ( a3 == 0.0 )
SetupTriggerPopup::resetDisabledValues(*(float *)&v3);
return (cocos2d::CCObject **)(*((int (__fastcall **)(cocos2d::CCObject **, int, bool))*v3 + 169))(
v3,
103,
a3 != 0.0);
}
v6 = (int)*(this + 182);
if ( (v6 & 0xFFFFFFFD) == 0xB59 || v6 == 2914 || (unsigned int)(v6 - 2916) <= 1 )
{
if ( a2 == (char *)off_BC )
{
(*((void (**)(void))*this + 169))();
this = (cocos2d::CCObject **)(*((int (__fastcall **)(cocos2d::CCObject **, int, bool))*v3 + 169))(
v3,
101,
a3 == 0.0);
}
else if ( a2 == (char *)&dword_B8 )
{
this = (cocos2d::CCObject **)(*((int (__fastcall **)(cocos2d::CCObject **, int, bool))*this + 169))(
this,
102,
a3 != 0.0);
}
}
v7 = (unsigned int)v3[182];
if ( ((v7 & 0xFFFFFFFD) == 0xB59 || v7 - 2913 <= 4) && (v4 == (_BYTE *)&dword_88 + 2 || (unsigned int)(v4 - 200) <= 1) )
{
SetupTriggerPopup::valueChanged(v3, 51, 0.0);
v10[0] = 0;
v10[1] = 0;
v11 = nullptr;
std::string::__init(v10, "0", 1u);
if ( a3 == 0.0 )
{
LABEL_17:
v8 = cocos2d::CCDictionary::objectForKey(v3[144], 51);
if ( v8 )
{
if ( (v10[0] & 1) == 0 )
v4 = (char *)v10 + 1;
v12[0] = 0;
if ( (v10[0] & 1) != 0 )
v4 = v11;
v12[1] = 0;
v12[2] = 0;
v9 = strlen(v4);
std::string::__init(v12, v4, v9);
CCTextInputNode::setString(v8, (int)v12);
std::string::~string((int)v12);
}
return (cocos2d::CCObject **)std::string::~string((int)v10);
}
if ( v4 == (_BYTE *)&dword_88 + 2 )
{
std::string::assign(v10, "P1");
}
else
{
SetupTriggerPopup::updateValue(v3, 138, 0.0);
if ( v4 == (char *)&dword_C8 )
{
std::string::assign(v10, "P2");
LABEL_25:
SetupTriggerPopup::updateValue(v3, 201, 0.0);
goto LABEL_17;
}
}
SetupTriggerPopup::updateValue(v3, 200, 0.0);
if ( v4 == (_BYTE *)&dword_C8 + 1 )
{
std::string::assign(v10, "C");
goto LABEL_17;
}
goto LABEL_25;
}
return this;
}