//
// FMODAudioEngine::playEffect from 0x1003d1620 to 0x1003d16f1 (209 bytes)
//
// 30 xrefs:
// > PlayLayer::destroyPlayer @ 0x100087f52
// > EditLevelLayer::onPlay @ 0x1001de82a
// > MapSelectLayer::checkTouchMonster @ 0x10025344d
// > CCMenuItemSpriteExtra::activate @ 0x10026347c
// > CCMenuItemSpriteExtra::selected @ 0x1002635d4
// > LevelAreaInnerLayer::onDoor @ 0x1002671c3
// > LevelInfoLayer::onPlay @ 0x1002ac6b4
// > GJPathPage::playUnlockAnimation @ 0x1002ebbf9
// > GJShopLayer::dialogClosed @ 0x100312825
// > AnimatedShopKeeper::playReactAnimation @ 0x100312c37
// > GJWorldNode::playStep1 @ 0x1003ae17b
// > PauseLayer::onQuit @ 0x1003c31bc
// > FMODAudioEngine::playEffect_1 @ 0x1003d15db
// > LevelPage::onPlay @ 0x1004224ca
// > SecretLayer5::onSubmit @ 0x10046ff28
// > SecretLayer5::animateHead @ 0x100470cd8
// > SecretLayer5::showSuccessAnimation @ 0x10047162b
// > SecretLayer5::showSuccessAnimation @ 0x1004716a6
// > SecretLayer5::showSuccessAnimation @ 0x10047171e
// > SecretLayer5::showSuccessAnimation @ 0x10047178d
// > SecretLayer5::showFailAnimation @ 0x100471c8f
// > SecretLayer5::showFailAnimation @ 0x100471d1b
// > SecretLayer5::playWinSFX @ 0x100472005
// > EndLevelLayer::onReplay @ 0x1004baebc
// > EndLevelLayer::onMenu @ 0x1004bafef
// > EndLevelLayer::onRestartCheckpoint @ 0x1004bb15c
// > RetryLevelLayer::onMenu @ 0x1004f7f9d
// > MenuGameLayer::destroyPlayer @ 0x1004f9e3c
// > GauntletSelectLayer::playUnlockAnimation @ 0x1005a06f4
// > AchievementNotifier::showNextAchievement @ 0x1008aa56b
//
// This function is hookable on this platform (idp: pc, 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:29:39 +0000
//
__int64 __fastcall FMODAudioEngine::playEffect(__int64 a1, __int64 a2, __m128 a3, float a4, float a5)
{
unsigned __int64 v5; // rdx
const void *v6; // rsi
__int64 result; // rax
unsigned int v8; // ebx
__int128 v9; // [rsp+50h] [rbp-30h] BYREF
void *__p; // [rsp+60h] [rbp-20h]
float v11; // [rsp+6Ch] [rbp-14h]
float v12; // [rsp+70h] [rbp-10h]
unsigned __int32 v13; // [rsp+74h] [rbp-Ch]
if ( (*(_BYTE *)a2 & 1) != 0 )
{
v5 = *(_QWORD *)(a2 + 8);
v6 = *(const void **)(a2 + 16);
v11 = a5;
v12 = a4;
v13 = a3.i32[0];
sub_10001AD30(&v9, v6, v5);
a3 = (__m128)v13;
a4 = v12;
a5 = v11;
}
else
{
__p = *(void **)(a2 + 16);
v9 = *(_OWORD *)a2;
}
result = FMODAudioEngine::playEffectAdvanced(a1, &v9, 0, 0, 0, 0, a3, a4, a5, 0.0, 0.0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
if ( (v9 & 1) != 0 )
{
v8 = result;
operator delete(__p);
return v8;
}
return result;
}