//
// PauseLayer::volumeChanged from 0x7d47b8 to 0x7d480c (84 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'PauseLayer::volumeChanged @ 0x7d4810
// > ??> @ 0xfb890
// > ??> @ 0x14380c8
//
// 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:54:20 +0000
//
_QWORD *__fastcall PauseLayer::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 + 80);
if ( v2 )
{
v3 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine((FMODAudioEngine *)this);
BackgroundMusicVolume = FMODAudioEngine::getBackgroundMusicVolume(v3);
this = (_QWORD *)Slider::setValue(v2, BackgroundMusicVolume);
}
v5 = (Slider *)v1[81];
if ( v5 )
{
v6 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine((FMODAudioEngine *)this);
EffectsVolume = FMODAudioEngine::getEffectsVolume(v6);
return (_QWORD *)Slider::setValue(v5, EffectsVolume);
}
return this;
}