//
// UIPOptionsLayer::valueDidChange from 0x1003810bc to 0x100381170 (180 bytes)
//
// 1 xrefs:
// > ??> @ 0x10093b828
//
// 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 11:03:30 +0000
//
__int64 __fastcall UIPOptionsLayer::valueDidChange(__int64 result, int a2, float a3)
{
__int64 v4; // x19
__int64 v5; // x0
__n128 v6; // q0
unsigned int v7; // w20
__int64 v8; // x0
__int64 v9; // x0
__int64 v10; // x0
if ( a2 == -29 )
{
v4 = result;
*(float *)(GameManager::sharedState(result) + 1712) = a3;
v5 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(v4 + 1016) + 488LL))(*(_QWORD *)(v4 + 1016));
result = sub_1002E757C(v5);
if ( (_DWORD)result )
{
v7 = 0;
v6.n128_f32[0] = a3 * 255.0;
do
{
v8 = (*(__int64 (__fastcall **)(_QWORD, __n128))(**(_QWORD **)(v4 + 1016) + 488LL))(*(_QWORD *)(v4 + 1016), v6);
v9 = sub_1002E75A0(v8, v7);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v9 + 912LL))(v9, (unsigned int)(int)(float)(a3 * 255.0));
++v7;
v10 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(v4 + 1016) + 488LL))(*(_QWORD *)(v4 + 1016));
result = sub_1002E757C(v10);
}
while ( v7 < (unsigned int)result );
}
}
return result;
}