//
// OptionsLayer::volumeChanged from 0x100112a9c to 0x100112af0 (84 bytes)
//
// 2 xrefs:
// > sub_100112AF0 @ 0x100112af4
// > ??> @ 0x1008d09b0
//
// 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 10:59:09 +0000
//
__int64 __fastcall OptionsLayer::volumeChanged(__int64 result)
{
__int64 v1; // x19
__int64 v2; // x20
__int64 v3; // x0
__n128 v4; // q0
__int64 v5; // x19
__int64 v6; // x0
__n128 v7; // q0
v1 = result;
v2 = *(_QWORD *)(result + 648);
if ( v2 )
{
v3 = FMODAudioEngine::sharedEngine(result);
v4.n128_f64[0] = FMODAudioEngine::getBackgroundMusicVolume(v3);
result = Slider::setValue(v2, v4);
}
v5 = *(_QWORD *)(v1 + 656);
if ( v5 )
{
v6 = FMODAudioEngine::sharedEngine(result);
v7.n128_f64[0] = FMODAudioEngine::getEffectsVolume(v6);
return Slider::setValue(v5, v7);
}
return result;
}