//
// UIOptionsLayer::valueDidChange from 0x5dd7c0 to 0x5dd99e (478 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:54:13 +0000
//
cocos2d::CCSpriteFrameCache *__fastcall UIOptionsLayer::valueDidChange(
cocos2d::CCSpriteFrameCache *this,
int a2,
float a3)
{
cocos2d::CCSpriteFrameCache *v3; // r4
GJUINode *v4; // r0
GJUINode *v5; // r0
GJUINode *v6; // r0
GJUINode *v7; // r0
unsigned int v8; // s15
int v9; // r0
int v10; // r3
cocos2d::CCSpriteFrameCache *v11; // r0
bool v12; // zf
int v13; // r1
int v14; // r3
GJUINode *v15; // r0
GameManager *v16; // r0
bool v17; // r1
SetupTriggerPopup *v18; // r0
v3 = this;
switch ( a2 )
{
case -28:
*(_BYTE *)(*((_DWORD *)this + 180) + 323) = a3 != 0.0;
v15 = *((GJUINode **)this + 180);
return GJUINode::updateButtonFrames(v15);
case -27:
*(_BYTE *)(*((_DWORD *)this + 179) + 323) = a3 != 0.0;
v15 = *((GJUINode **)this + 179);
return GJUINode::updateButtonFrames(v15);
case -26:
v16 = (GameManager *)GameManager::sharedState(this);
return (cocos2d::CCSpriteFrameCache *)GameManager::toggleGameVariable(v16, "0113");
case -25:
v14 = *((_DWORD *)this + 180);
goto LABEL_36;
case -24:
v14 = *((_DWORD *)this + 179);
LABEL_36:
*(_BYTE *)(v14 + 318) = a3 != 0.0;
return this;
case -23:
(*(void (__fastcall **)(cocos2d::CCSpriteFrameCache *, _DWORD, _DWORD, _DWORD, cocos2d::CCSpriteFrameCache *, int))(*(_DWORD *)this + 684))(
this,
0,
LODWORD(a3),
*(_DWORD *)(*(_DWORD *)this + 684),
this,
a2);
v18 = UIOptionsLayer::create((UIOptionsLayer *)(*((unsigned __int8 *)v3 + 712) ^ 1), v17);
return (cocos2d::CCSpriteFrameCache *)(*(int (__fastcall **)(SetupTriggerPopup *))(*(_DWORD *)v18 + 656))(v18);
case -22:
v10 = *((_DWORD *)this + 180);
goto LABEL_27;
case -21:
v10 = *((_DWORD *)this + 179);
LABEL_27:
*(float *)(v10 + 312) = a3;
return this;
case -20:
v9 = *((_DWORD *)this + 180);
return (cocos2d::CCSpriteFrameCache *)GJUINode::updateDragRadius(v9, a3);
case -19:
v9 = *((_DWORD *)this + 179);
return (cocos2d::CCSpriteFrameCache *)GJUINode::updateDragRadius(v9, a3);
case -18:
v11 = *((cocos2d::CCSpriteFrameCache **)this + 180);
v12 = a3 == 0.0;
goto LABEL_30;
case -17:
v11 = *((cocos2d::CCSpriteFrameCache **)this + 179);
v12 = a3 == 0.0;
LABEL_30:
v13 = !v12;
return GJUINode::toggleModeB(v11, v13);
case -16:
v7 = *((GJUINode **)this + 182);
v8 = (unsigned int)(float)(a3 * 255.0);
return (cocos2d::CCSpriteFrameCache *)GJUINode::setOpacity(v7, (unsigned __int8)v8);
case -15:
v7 = *((GJUINode **)this + 181);
v8 = (unsigned int)(float)(a3 * 255.0);
return (cocos2d::CCSpriteFrameCache *)GJUINode::setOpacity(v7, (unsigned __int8)v8);
case -14:
v7 = *((GJUINode **)this + 180);
v8 = (unsigned int)(float)(a3 * 255.0);
return (cocos2d::CCSpriteFrameCache *)GJUINode::setOpacity(v7, (unsigned __int8)v8);
case -13:
v7 = *((GJUINode **)this + 179);
v8 = (unsigned int)(float)(a3 * 255.0);
return (cocos2d::CCSpriteFrameCache *)GJUINode::setOpacity(v7, (unsigned __int8)v8);
case -12:
v6 = *((GJUINode **)this + 182);
return (cocos2d::CCSpriteFrameCache *)GJUINode::updateButtonScale(v6, a3);
case -11:
v6 = *((GJUINode **)this + 181);
return (cocos2d::CCSpriteFrameCache *)GJUINode::updateButtonScale(v6, a3);
case -10:
v6 = *((GJUINode **)this + 180);
return (cocos2d::CCSpriteFrameCache *)GJUINode::updateButtonScale(v6, a3);
case -9:
v6 = *((GJUINode **)this + 179);
return (cocos2d::CCSpriteFrameCache *)GJUINode::updateButtonScale(v6, a3);
case -8:
v5 = *((GJUINode **)this + 182);
return (cocos2d::CCSpriteFrameCache *)GJUINode::updateHeight(v5, a3);
case -7:
v5 = *((GJUINode **)this + 181);
return (cocos2d::CCSpriteFrameCache *)GJUINode::updateHeight(v5, a3);
case -6:
v5 = *((GJUINode **)this + 180);
return (cocos2d::CCSpriteFrameCache *)GJUINode::updateHeight(v5, a3);
case -5:
v5 = *((GJUINode **)this + 179);
return (cocos2d::CCSpriteFrameCache *)GJUINode::updateHeight(v5, a3);
case -4:
v4 = *((GJUINode **)this + 182);
goto LABEL_4;
case -3:
v4 = *((GJUINode **)this + 181);
goto LABEL_4;
case -2:
v4 = *((GJUINode **)this + 180);
goto LABEL_4;
case -1:
v4 = *((GJUINode **)this + 179);
LABEL_4:
this = (cocos2d::CCSpriteFrameCache *)GJUINode::updateWidth(v4, a3);
break;
default:
return this;
}
return this;
}