//
// FMODAudioEngine::updateSystemPitch from 0x6cabcc to 0x6cac60 (148 bytes)
//
// 3 xrefs:
// > GJBaseGameLayer::applyTimeWarp @ 0x9988d8
// > GJBaseGameLayer::applyTimeWarp @ 0x998910
// > ??> @ 0xfc7c0
//
// 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:51:23 +0000
//
__int64 __fastcall FMODAudioEngine::updateSystemPitch(FMODAudioEngine *this, float a2)
{
FMOD::ChannelControl *v3; // x0
float v6; // [xsp+34h] [xbp+34h] BYREF
v3 = *((FMOD::ChannelControl **)this + 60);
v6 = 1.0;
FMOD::ChannelControl::getPitch(v3, &v6);
if ( a2 != v6 )
{
FMOD::ChannelControl::setPitch(*((FMOD::ChannelControl **)this + 60), a2);
FMOD::ChannelControl::setPitch(*((FMOD::ChannelControl **)this + 64), a2);
FMOD::ChannelControl::setPitch(*((FMOD::ChannelControl **)this + 65), a2);
}
return _stack_chk_guard;
}