//
// FMODAudioEngine::updateSystemPitch from 0x3e7fd8 to 0x3e8048 (112 bytes)
//
// 1 xrefs:
// > GJBaseGameLayer::applyTimeWarp @ 0x58b5e4
//
// 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:47:05 +0000
//
int __fastcall FMODAudioEngine::updateSystemPitch(FMODAudioEngine *this, float a2)
{
FMOD::ChannelControl *v4; // r0
int result; // r0
float v6; // [sp+0h] [bp-Ch] BYREF
v4 = *((FMOD::ChannelControl **)this + 90);
v6 = 1.0;
result = FMOD::ChannelControl::getPitch(v4, &v6);
if ( a2 != v6 )
{
FMOD::ChannelControl::setPitch(*((FMOD::ChannelControl **)this + 90), a2);
FMOD::ChannelControl::setPitch(*((FMOD::ChannelControl **)this + 94), a2);
return FMOD::ChannelControl::setPitch(*((FMOD::ChannelControl **)this + 95), a2);
}
return result;
}