//
// UIPOptionsLayer::valueDidChange from 0xa1ebc4 to 0xa1ec7c (184 bytes)
//
// 2 xrefs:
// > ??> @ 0x556c0
// > ??> @ 0x1485b40
//
// 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 12:59:39 +0000
//
GameManager *__fastcall UIPOptionsLayer::valueDidChange(GameManager *this, int a2, float a3)
{
GameManager *v4; // x20
unsigned int v5; // w19
cocos2d::CCArray *v6; // x0
unsigned int v7; // w1
__int64 v8; // x0
cocos2d::CCArray *v9; // x0
if ( a2 == -29 )
{
v4 = this;
v5 = 0;
*(float *)(GameManager::sharedState(this) + 1712) = a3;
while ( 1 )
{
v9 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)v4 + 127) + 488LL))(*((_QWORD *)v4 + 127));
this = (GameManager *)cocos2d::CCArray::count(v9);
if ( v5 >= (unsigned int)this )
break;
v6 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)v4 + 127) + 488LL))(*((_QWORD *)v4 + 127));
v7 = v5++;
v8 = cocos2d::CCArray::objectAtIndex(v6, v7);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v8 + 912LL))(v8, (unsigned int)(float)(a3 * 255.0));
}
}
return this;
}