//
// FMODAudioEngine::playEffectAsync from 0x1001b8754 to 0x1001b880c (184 bytes)
//
// 1 xrefs:
// > CustomSFXWidget::onPlayback @ 0x10038c578
//
// 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 11:00:11 +0000
//
__int64 __fastcall FMODAudioEngine::playEffectAsync(__int64 a1, __int64 a2)
{
__int64 v3; // x19
void *__p[2]; // [xsp+20h] [xbp-30h] BYREF
__int64 v6; // [xsp+30h] [xbp-20h]
if ( *(char *)(a2 + 23) < 0 )
{
sub_1000097D0(__p, *(void **)a2, *(_QWORD *)(a2 + 8));
}
else
{
*(_OWORD *)__p = *(_OWORD *)a2;
v6 = *(_QWORD *)(a2 + 16);
}
v3 = FMODAudioEngine::playEffectAdvanced(
a1,
(__int128 *)__p,
0,
0,
0,
0,
0,
0,
1.0,
0.0,
1.0,
0.0,
0.0,
0,
0,
0,
1u,
0,
0,
0);
if ( SHIBYTE(v6) < 0 )
operator delete(__p[0]);
return v3;
}