//
// FMODAudioEngine::playEffectAsync from 0x6db950 to 0x6dba74 (292 bytes)
//
// 2 xrefs:
// > CustomSFXWidget::onPlayback @ 0xb5e2cc
// > ??> @ 0x91ac8
//
// 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:51:34 +0000
//
__int64 __fastcall FMODAudioEngine::playEffectAsync(__int64 a1, char *a2)
{
char v4; // w0
__int64 v5; // x0
__int64 v6; // x1
unsigned int v7; // w20
__int64 v9; // [xsp+70h] [xbp+30h] BYREF
__int64 v10; // [xsp+78h] [xbp+38h]
void *v11; // [xsp+80h] [xbp+40h]
v9 = 0;
v4 = *a2;
v10 = 0;
v11 = nullptr;
if ( (v4 & 1) != 0 )
{
std::string::__init(&v9, *((void **)a2 + 2), *((_QWORD *)a2 + 1));
}
else
{
v5 = *(_QWORD *)a2;
v6 = *((_QWORD *)a2 + 1);
v11 = *((void **)a2 + 2);
v9 = v5;
v10 = v6;
}
v7 = FMODAudioEngine::playEffectAdvanced(
a1,
(__int64)&v9,
0,
0,
0,
0,
0,
0,
1.0,
0.0,
1.0,
0.0,
0.0,
0,
0,
0,
1,
0,
0,
0);
if ( (v9 & 1) != 0 )
operator delete(v11);
return v7;
}