//
// UIPOptionsLayer::valueDidChange from 0x1403ac130 to 0x1403ac230 (256 bytes)
//
// 2 xrefs:
// > ??> @ 0x14077e050
// > ??> @ 0x140923a74
//
// 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:31:21 +0000
//
// Hidden C++ exception states: #wind=1
void __fastcall UIPOptionsLayer::valueDidChange(__int64 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_14090BFD0;
if ( !qword_14090BFD0 )
{
v10 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager((__int64)v10);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v4 = qword_14090BFD0;
}
*(float *)(v4 + 1760) = a3;
v5 = 0;
v6 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1008) + 480LL))(*(_QWORD *)(a1 + 1008));
if ( cocos2d::CCArray::count(v6) )
{
do
{
v7 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1008) + 480LL))(*(_QWORD *)(a1 + 1008));
v8 = cocos2d::CCArray::objectAtIndex(v7, v5);
(*(void (__fastcall **)(__int64, _QWORD))(*((_QWORD *)v8 + 40) + 40LL))(
(__int64)v8 + 320,
(unsigned __int8)(int)(float)(a3 * 255.0));
++v5;
v9 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1008) + 480LL))(*(_QWORD *)(a1 + 1008));
}
while ( v5 < cocos2d::CCArray::count(v9) );
}
}
}