//
// FMODAudioEngine::playEffect from 0x1001b8668 to 0x1001b8738 (208 bytes)
//
// 28 xrefs:
// > LevelInfoLayer::onPlay @ 0x100029e80
// > SecretLayer5::onSubmit @ 0x10007d7cc
// > SecretLayer5::animateHead @ 0x10007e118
// > SecretLayer5::showSuccessAnimation @ 0x10007e8e8
// > SecretLayer5::showSuccessAnimation @ 0x10007e938
// > SecretLayer5::showSuccessAnimation @ 0x10007e980
// > SecretLayer5::showSuccessAnimation @ 0x10007e9c8
// > SecretLayer5::showFailAnimation @ 0x10007ee3c
// > SecretLayer5::showFailAnimation @ 0x10007eea0
// > sub_10007F0DC @ 0x10007f11c
// > EditLevelLayer::onPlay @ 0x100110480
// > PlayLayer::destroyPlayer @ 0x100147fdc
// > FMODAudioEngine::playEffect_1 @ 0x1001b8620
// > PauseLayer::onQuit @ 0x1001c1168
// > GJShopLayer::dialogClosed @ 0x1001cbf20
// > sub_1001CC218 @ 0x1001cc2b0
// > sub_1002487E0 @ 0x100248844
// > GauntletSelectLayer::playUnlockAnimation @ 0x100255c60
// > CCMenuItemSpriteExtra::activate @ 0x1002b03f0
// > CCMenuItemSpriteExtra::selected @ 0x1002b04b8
// > AchievementNotifier::showNextAchievement @ 0x1002b31c4
// > EndLevelLayer::onReplay @ 0x100393b5c
// > sub_100393BF4 @ 0x100393ca0
// > EndLevelLayer::onRestartCheckpoint @ 0x100393e04
// > LevelAreaInnerLayer::onDoor @ 0x1003e4a74
// > MenuGameLayer::destroyPlayer @ 0x100442c70
// > GJPathPage::playUnlockAnimation @ 0x10046109c
// > LevelPage::onPlay @ 0x100484458
//
// 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::playEffect(__int64 a1, __int64 a2, float a3, float a4, float a5)
{
__int64 v9; // x19
void *__p[2]; // [xsp+20h] [xbp-50h] BYREF
__int64 v12; // [xsp+30h] [xbp-40h]
if ( *(char *)(a2 + 23) < 0 )
{
sub_1000097D0(__p, *(void **)a2, *(_QWORD *)(a2 + 8));
}
else
{
*(_OWORD *)__p = *(_OWORD *)a2;
v12 = *(_QWORD *)(a2 + 16);
}
v9 = FMODAudioEngine::playEffectAdvanced(
a1,
(__int128 *)__p,
0,
0,
0,
0,
0,
0,
a3,
a4,
a5,
0.0,
0.0,
0,
0,
0,
0,
0,
0,
0);
if ( SHIBYTE(v12) < 0 )
operator delete(__p[0]);
return v9;
}