//
// FMOD::ChannelControl::setDelay from 0xae938 to 0xae9da (162 bytes)
//
// 1 xrefs:
// > FMOD::ChannelControl::setDelay @ 0xe08e8
//
// 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:41:39 +0000
//
int __fastcall FMOD::ChannelControl::setDelay(
FMOD::ChannelControl *this,
unsigned __int64 a2,
unsigned __int64 a3,
int a4)
{
unsigned int v5; // r11
int v7; // r10
int v8; // r0
unsigned __int64 v9; // kr00_8
int v10; // r4
_BYTE v12[256]; // [sp+Ch] [bp-124h] BYREF
int v13; // [sp+10Ch] [bp-24h] BYREF
int v14; // [sp+110h] [bp-20h]
v5 = a2;
v13 = 0;
v7 = HIDWORD(a2);
v8 = sub_47C34((int)this);
v9 = a3;
if ( v8
|| (v7 = (v7 << 20) | (v5 >> 12),
v5 <<= 20,
v8 = (*(int (__fastcall **)(int, _DWORD, unsigned int, int, _DWORD, _DWORD, int))(*(_DWORD *)v14 + 112))(
v14,
*(_DWORD *)(*(_DWORD *)v14 + 112),
v5,
v7,
(_DWORD)a3 << 20,
a3 >> 12,
a4),
v9 = a3 << 20,
v8) )
{
v10 = v8;
if ( (*((_BYTE *)&dword_14 + (_DWORD)off_E8000) & 0x80) != 0 )
{
sub_AE9E4(v12, 256, v5, v7, v9, HIDWORD(v9), a4);
sub_BAB40(v10, 4, this, "ChannelControl::setDelay", v12);
}
}
else
{
v10 = 0;
}
sub_444C0(&v13);
return v10;
}