//
// OptionsLayer::musicSliderChanged from 0x100113738 to 0x1001137a4 (108 bytes)
//
// 1 xrefs:
// > OptionsLayer::customSetup @ 0x100113190
//
// 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::musicSliderChanged(__int64 a1, __int64 a2)
{
__int64 v2; // x0
float Value; // s0
float v4; // s8
__int64 v5; // x0
double BackgroundMusicVolume; // d0
float v7; // s9
__int64 v8; // x0
__int64 v9; // x0
__int64 result; // x0
__int64 v11; // x0
Value = SliderThumb::getValue(a2);
if ( Value >= 0.03 )
v4 = Value;
else
v4 = 0.0;
v5 = FMODAudioEngine::sharedEngine(v2);
BackgroundMusicVolume = FMODAudioEngine::getBackgroundMusicVolume(v5);
v7 = *(float *)&BackgroundMusicVolume;
v9 = FMODAudioEngine::sharedEngine(v8);
result = FMODAudioEngine::setBackgroundMusicVolume(v9, v4);
if ( v7 <= 0.0 && v4 > 0.0 )
{
v11 = GameManager::sharedState(result);
return GameManager::playMenuMusic(v11);
}
return result;
}