//
// FMOD::ChannelControl::isPlaying from 0x18000c4a0 to 0x18000c57c (220 bytes)
//
// 5 xrefs:
// > FMOD_ChannelGroup_IsPlaying @ 0x1800c517c
// > FMOD_Channel_IsPlaying @ 0x1800c575c
// > sub_1800CB310 @ 0x1800cb375
// > ??> @ 0x180194348
// > ??> @ 0x1801f6888
//
// This function is hookable on this platform (idp: pc, 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 10:52:43 +0000
//
__int64 __fastcall FMOD::ChannelControl::isPlaying(__int64 a1, _BYTE *a2)
{
int v3; // esi
unsigned int v4; // ebx
__int64 v6; // [rsp+30h] [rbp-128h] BYREF
__int64 v7; // [rsp+38h] [rbp-120h] BYREF
_BYTE v8[256]; // [rsp+40h] [rbp-118h] BYREF
v3 = a1;
if ( a2 )
*a2 = 0;
v6 = 0;
v4 = sub_180012360(a1, &v7, &v6);
if ( (v4 || (v4 = (*(__int64 (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v7 + 168LL))(v7, a2)) != 0)
&& *((char *)off_1801AED20 + 16) < 0 )
{
sub_1800F32C0(v8, 256, a2);
sub_1800B20E0(v4, 4, v3, (unsigned int)"ChannelControl::isPlaying", (__int64)v8);
}
if ( v6 )
sub_180102320();
return v4;
}