//
// PauseLayer::volumeChanged from 0x1001bdfe8 to 0x1001be03c (84 bytes)
//
// 2 xrefs:
// > sub_1001BE03C @ 0x1001be040
// > ??> @ 0x1008e8320
//
// 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:00:13 +0000
//
double __fastcall PauseLayer::volumeChanged(__int64 a1)
{
__int64 v2; // x20
__int64 v3; // x0
__n128 v4; // q0
double result; // d0
__int64 v6; // x19
__int64 v7; // x0
__n128 v8; // q0
v2 = *(_QWORD *)(a1 + 640);
if ( v2 )
{
v3 = FMODAudioEngine::sharedEngine();
v4.n128_f32[0] = FMODAudioEngine::getBackgroundMusicVolume(v3);
*(_QWORD *)&result = Slider::setValue(v2, v4).n128_u64[0];
}
v6 = *(_QWORD *)(a1 + 648);
if ( v6 )
{
v7 = FMODAudioEngine::sharedEngine();
v8.n128_f32[0] = FMODAudioEngine::getEffectsVolume(v7);
*(_QWORD *)&result = Slider::setValue(v6, v8).n128_u64[0];
}
return result;
}