//
// FMOD::ChannelControl::isPlaying from 0x10050419c to 0x100504288 (236 bytes)
//
// 3 xrefs:
// > sub_100453478 @ 0x100453494
// > sub_100453AD8 @ 0x100453af4
// > sub_10045AB84 @ 0x10045abf0
//
// 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::isPlaying(FMOD::ChannelControl *a1, bool *a2)
{
int v4; // w3
int v5; // w4
int v6; // w5
int v7; // w6
int v8; // w7
__int64 v9; // x20
__int64 v11; // [xsp+8h] [xbp-138h] BYREF
__int64 v12; // [xsp+10h] [xbp-130h] BYREF
_BYTE v13[256]; // [xsp+18h] [xbp-128h] BYREF
if ( a2 )
*a2 = 0;
v11 = 0;
v9 = sub_1005088AC(a1, &v12, &v11);
if ( (_DWORD)v9 || (v9 = (*(__int64 (__fastcall **)(__int64, bool *))(*(_QWORD *)v12 + 168LL))(v12, a2), (_DWORD)v9) )
{
if ( (*((_BYTE *)off_1008524C8 + 32) & 0x80) != 0 )
{
sub_1004361F4((int)v13, 0x100u, (__int64)a2, v4, v5, v6, v7, v8);
sub_10048489C(v9, 4, (__int64)a1, (__int64)"ChannelControl::isPlaying", (__int64)v13);
}
}
if ( v11 )
sub_100442D80(v11);
return (unsigned int)v9;
}