//
// OptionsLayer::volumeChanged from 0x52c25a to 0x52c290 (54 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'OptionsLayer::volumeChanged @ 0x52c294
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:52:01 +0000
//
Slider **__fastcall OptionsLayer::volumeChanged(Slider **this)
{
Slider **v1; // r4
Slider *v2; // r5
FMODAudioEngine *v3; // r0
int BackgroundMusicVolume; // r0
Slider *v5; // r4
FMODAudioEngine *v6; // r0
int EffectsVolume; // r1
v1 = this;
v2 = *(this + 126);
if ( v2 )
{
v3 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine((FMODAudioEngine *)this);
BackgroundMusicVolume = FMODAudioEngine::getBackgroundMusicVolume(v3);
this = (Slider **)Slider::setValue(v2, *(float *)&BackgroundMusicVolume);
}
v5 = v1[127];
if ( v5 )
{
v6 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine((FMODAudioEngine *)this);
EffectsVolume = FMODAudioEngine::getEffectsVolume(v6);
return (Slider **)Slider::setValue(v5, *(float *)&EffectsVolume);
}
return this;
}