//
// FMODAudioEngine::playEffect from 0x10013b7ec to 0x10013b8bc (208 bytes)
//
// 28 xrefs:
// > LevelInfoLayer::onPlay @ 0x1000266c0
// > SecretLayer5::onSubmit @ 0x100075018
// > SecretLayer5::animateHead @ 0x100075964
// > SecretLayer5::showSuccessAnimation @ 0x100076134
// > SecretLayer5::showSuccessAnimation @ 0x100076184
// > SecretLayer5::showSuccessAnimation @ 0x1000761cc
// > SecretLayer5::showSuccessAnimation @ 0x100076214
// > SecretLayer5::showFailAnimation @ 0x100076688
// > SecretLayer5::showFailAnimation @ 0x1000766ec
// > SecretLayer5::playWinSFX @ 0x100076968
// > EditLevelLayer::onPlay @ 0x1000ea3c8
// > PlayLayer::destroyPlayer @ 0x10011ed74
// > FMODAudioEngine::playEffect_1 @ 0x10013b7a4
// > PauseLayer::onQuit @ 0x100143748
// > GJShopLayer::dialogClosed @ 0x10014d620
// > AnimatedShopKeeper::playReactAnimation @ 0x10014d9b0
// > RetryLevelLayer::onMenu @ 0x1001b3aa0
// > GauntletSelectLayer::playUnlockAnimation @ 0x1001c00e8
// > CCMenuItemSpriteExtra::activate @ 0x1002139f0
// > CCMenuItemSpriteExtra::selected @ 0x100213ab8
// > AchievementNotifier::showNextAchievement @ 0x100216704
// > EndLevelLayer::onReplay @ 0x1002f728c
// > EndLevelLayer::onMenu @ 0x1002f73d0
// > EndLevelLayer::onRestartCheckpoint @ 0x1002f7514
// > LevelAreaInnerLayer::onDoor @ 0x1003462f8
// > MenuGameLayer::destroyPlayer @ 0x10039b698
// > GJPathPage::playUnlockAnimation @ 0x1003ba3e4
// > LevelPage::onPlay @ 0x100403a90
//
// 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 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;
}