//
// FMOD::ChannelControl::getPitch from 0x100503830 to 0x100503910 (224 bytes)
//
// 4 xrefs:
// > FMODAudioEngine::registerChannel @ 0x10013bd60
// > FMODAudioEngine::startMusic @ 0x10013d788
// > sub_10045339C @ 0x1004533a0
// > sub_1004539F8 @ 0x1004539fc
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
FMOD_RESULT __fastcall FMOD::ChannelControl::getPitch(FMOD::ChannelControl *a1, float *a2)
{
int v4; // w3
int v5; // w4
int v6; // w5
int v7; // w6
int v8; // w7
__int64 v9; // x19
__int64 v11; // [xsp+8h] [xbp-138h] BYREF
__int64 v12; // [xsp+10h] [xbp-130h] BYREF
_BYTE v13[256]; // [xsp+18h] [xbp-128h] BYREF
v11 = 0;
v9 = sub_1005088AC(a1, &v12, &v11);
if ( (_DWORD)v9 || (v9 = (*(__int64 (__fastcall **)(__int64, float *))(*(_QWORD *)v12 + 80LL))(v12, a2), (_DWORD)v9) )
{
if ( (*((_BYTE *)off_1008524C8 + 32) & 0x80) != 0 )
{
sub_1004361AC((int)v13, 0x100u, (__int64)a2, v4, v5, v6, v7, v8);
sub_10048489C(v9, 4, (__int64)a1, (__int64)"ChannelControl::getPitch", (__int64)v13);
}
}
if ( v11 )
sub_100442D80(v11);
return (unsigned int)v9;
}