//
// OptionsLayer::volumeChanged from 0x8ed610 to 0x8ed664 (84 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'OptionsLayer::volumeChanged @ 0x8ed668
// > ??> @ 0xe7c58
// > ??> @ 0x145f880
//
// 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:56:56 +0000
//
_QWORD *__fastcall OptionsLayer::volumeChanged(_QWORD *this)
{
_QWORD *v1; // x19
Slider *v2; // x20
FMODAudioEngine *v3; // x0
float BackgroundMusicVolume; // s0
Slider *v5; // x19
FMODAudioEngine *v6; // x0
float EffectsVolume; // s0
v1 = this;
v2 = (Slider *)*(this + 81);
if ( v2 )
{
v3 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine((FMODAudioEngine *)this);
BackgroundMusicVolume = FMODAudioEngine::getBackgroundMusicVolume(v3);
this = (_QWORD *)Slider::setValue(v2, BackgroundMusicVolume);
}
v5 = (Slider *)v1[82];
if ( v5 )
{
v6 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine((FMODAudioEngine *)this);
EffectsVolume = FMODAudioEngine::getEffectsVolume(v6);
return (_QWORD *)Slider::setValue(v5, EffectsVolume);
}
return this;
}