//
// FMOD::ChannelControl::getDSPClock from 0xd0304 to 0xd03d8 (212 bytes)
//
// 4 xrefs:
// > FMOD::ChannelControl::getDSPClock @ 0x10751c
// > ??> @ 0x1df8
// > FMOD::ChannelControl::getDSPClock @ 0x107514
// > ??> @ 0x110350
//
// 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:14:50 +0000
//
__int64 __fastcall FMOD::ChannelControl::getDSPClock(
FMOD::ChannelControl *this,
unsigned __int64 *a2,
unsigned __int64 *a3)
{
char v5; // w19
unsigned int v6; // w22
__int64 v7; // x0
char v8; // w8
__int64 v9; // x0
__int64 v11; // [xsp+108h] [xbp-28h]
v5 = (char)this;
v6 = sub_55F6C((char)this);
if ( v6 )
goto LABEL_8;
v6 = (*(__int64 (__fastcall **)(__int64, unsigned __int64 *, unsigned __int64 *))(*(_QWORD *)v11 + 216LL))(
v11,
a2,
a3);
if ( v6 )
goto LABEL_8;
if ( a2 )
*a2 >>= 20;
if ( a3 )
*a3 >>= 20;
v6 = sub_55F6C(v5);
if ( v6 )
{
LABEL_8:
v7 = sub_D1CCC();
if ( v8 < 0 )
{
v9 = sub_D1E88(v7);
sub_D03D8(v9);
sub_D1D58(v6, 4);
}
}
return v6;
}