//
// FMODAudioEngine::playEffect_1 from 0x1003d1590 to 0x1003d15fa (106 bytes)
//
// 32 xrefs:
// > PlayLayer::showCompleteEffect @ 0x100081b54
// > PlayLayer::showNewBest @ 0x10008302d
// > PlayLayer::showNewBest @ 0x100083287
// > PlayLayer::showNewBest @ 0x1000834e6
// > RewardUnlockLayer::playDropSound @ 0x100200489
// > RewardUnlockLayer::step2 @ 0x1002004fe
// > RewardUnlockLayer::playRewardEffect @ 0x1002006c0
// > RewardUnlockLayer::playRewardEffect @ 0x100200716
// > RewardUnlockLayer::playRewardEffect @ 0x10020098c
// > RewardUnlockLayer::playRewardEffect @ 0x1002009f9
// > RewardUnlockLayer::playRewardEffect @ 0x100200a4b
// > RewardUnlockLayer::playRewardEffect @ 0x100200ab8
// > RewardUnlockLayer::playRewardEffect @ 0x100200b11
// > RewardUnlockLayer::playRewardEffect @ 0x100200b6b
// > RewardUnlockLayer::playRewardEffect @ 0x100200bc4
// > RewardUnlockLayer::playRewardEffect @ 0x100200c1f
// > RewardUnlockLayer::playRewardEffect @ 0x100200c64
// > RewardUnlockLayer::playRewardEffect @ 0x100200ca2
// > DailyLevelNode::onClaimReward @ 0x100217a53
// > MapPackCell::playCompleteEffect @ 0x10023b6ab
// > LevelAreaLayer::onEnterTower @ 0x100265ed1
// > GJShopLayer::didPurchaseItem @ 0x100310cf9
// > LevelListLayer::onClaimReward @ 0x10034a739
// > LevelBrowserLayer::FLAlert_Clicked @ 0x100487ff2
// > SecretLayer2::onSubmit @ 0x100497aa0
// > SecretLayer3::onClick @ 0x10049deb4
// > SecretLayer3::onClick @ 0x10049defc
// > EndLevelLayer::playEndEffect @ 0x1004bc3a7
// > EndLevelLayer::playEndEffect @ 0x1004bc404
// > EndLevelLayer::playEndEffect @ 0x1004bc446
// > EndLevelLayer::coinEnterFinished @ 0x1004bc6dd
// > SecretLayer::onSubmit @ 0x1006d2c2e
//
// 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_1(__int64 a1, __int128 *a2)
{
__int64 result; // rax
unsigned int v3; // ebx
__int128 v4; // [rsp+0h] [rbp-20h] BYREF
void *__p; // [rsp+10h] [rbp-10h]
if ( (*(_BYTE *)a2 & 1) != 0 )
{
sub_10001AD30(&v4, *((const void **)a2 + 2), *((_QWORD *)a2 + 1));
}
else
{
__p = *((void **)a2 + 2);
v4 = *a2;
}
result = FMODAudioEngine::playEffect(a1, &v4, 1.0, 0.0, 1.0);
if ( (v4 & 1) != 0 )
{
v3 = result;
operator delete(__p);
return v3;
}
return result;
}