//
// UIPOptionsLayer::valueDidChange from 0x1402a6040 to 0x1402a6140 (256 bytes)
//
// 2 xrefs:
// > ??> @ 0x14057ae08
// > ??> @ 0x1406d20b4
//
// 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
//
// Hidden C++ exception states: #wind=1
void UIPOptionsLayer::valueDidChange(UIPOptionsLayer *a1, int a2, float a3)
{
__int64 v4; // rax
unsigned int v5; // ebx
cocos2d::CCArray *v6; // rax
cocos2d::CCArray *v7; // rax
struct cocos2d::CCObject *v8; // rax
cocos2d::CCArray *v9; // rax
void *v10; // [rsp+58h] [rbp+20h]
if ( a2 == -29 )
{
v4 = qword_1406C2ED8;
if ( !qword_1406C2ED8 )
{
v10 = operator new(0x668u);
qword_1406C2ED8 = sub_14017AB00((__int64)v10);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);
v4 = qword_1406C2ED8;
}
*(float *)(v4 + 1632) = a3;
v5 = 0;
v6 = a1->m_practiceNode->getChildren(a1->m_practiceNode);
if ( cocos2d::CCArray::count(v6) )
{
do
{
v7 = a1->m_practiceNode->getChildren(a1->m_practiceNode);
v8 = cocos2d::CCArray::objectAtIndex(v7, v5);
(*(void (__fastcall **)(int *, _QWORD))(*(_QWORD *)&v8[5].m_unknown2 + 40LL))(
&v8[5].m_unknown2,
(unsigned __int8)(int)(float)(a3 * 255.0));
++v5;
v9 = a1->m_practiceNode->getChildren(a1->m_practiceNode);
}
while ( v5 < cocos2d::CCArray::count(v9) );
}
}
}