//
// sub_140053B90 from 0x140053b90 to 0x140053bf0 (96 bytes)
//
// 2 xrefs:
// > FMODAudioEngine::playEffectAdvanced @ 0x140057751
// > ??> @ 0x1406c4f50
//
// 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
//
__int64 __fastcall sub_140053B90(FMOD::Channel *a1, int a2, int a3)
{
FMODAudioEngine *v4; // rcx
FMODAudioEngine *v6; // [rsp+20h] [rbp-18h]
if ( !a2 && !a3 )
{
v4 = (FMODAudioEngine *)qword_1406C2E88;
if ( !qword_1406C2E88 )
{
v6 = (FMODAudioEngine *)operator new(0x888u);
qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine(v6);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2E88 + 72LL))(qword_1406C2E88);
v4 = (FMODAudioEngine *)qword_1406C2E88;
}
FMODAudioEngine::channelStopped(v4, a1, 0);
}
return 0;
}