//
// FMODAudioEngine::playEffect_1 from 0x1003e4020 to 0x1003e408a (106 bytes)
//
// 32 xrefs:
// > PlayLayer::showCompleteEffect @ 0x1000b42b4
// > PlayLayer::showNewBest @ 0x1000b576d
// > PlayLayer::showNewBest @ 0x1000b59c7
// > PlayLayer::showNewBest @ 0x1000b5c26
// > RewardUnlockLayer::playDropSound @ 0x10021cd79
// > RewardUnlockLayer::step2 @ 0x10021cdee
// > RewardUnlockLayer::playRewardEffect @ 0x10021cfb0
// > RewardUnlockLayer::playRewardEffect @ 0x10021d006
// > RewardUnlockLayer::playRewardEffect @ 0x10021d27c
// > RewardUnlockLayer::playRewardEffect @ 0x10021d2e9
// > RewardUnlockLayer::playRewardEffect @ 0x10021d33b
// > RewardUnlockLayer::playRewardEffect @ 0x10021d3a8
// > RewardUnlockLayer::playRewardEffect @ 0x10021d401
// > RewardUnlockLayer::playRewardEffect @ 0x10021d45b
// > RewardUnlockLayer::playRewardEffect @ 0x10021d4b4
// > RewardUnlockLayer::playRewardEffect @ 0x10021d50f
// > RewardUnlockLayer::playRewardEffect @ 0x10021d554
// > RewardUnlockLayer::playRewardEffect @ 0x10021d592
// > DailyLevelNode::onClaimReward @ 0x100233403
// > MapPackCell::playCompleteEffect @ 0x100252a5b
// > LevelAreaLayer::onEnterTower @ 0x1002798d1
// > GJShopLayer::didPurchaseItem @ 0x1003255e9
// > LevelListLayer::onClaimReward @ 0x10035f119
// > ChallengeNode::onClaimReward @ 0x10039f67d
// > SecretLayer2::onSubmit @ 0x10049ead0
// > SecretLayer3::onClick @ 0x1004a4ee4
// > SecretLayer3::onClick @ 0x1004a4f2c
// > EndLevelLayer::playEndEffect @ 0x1004c3367
// > EndLevelLayer::playEndEffect @ 0x1004c33c4
// > EndLevelLayer::playEndEffect @ 0x1004c3406
// > EndLevelLayer::coinEnterFinished @ 0x1004c369d
// > SecretLayer::onSubmit @ 0x1005fbe2e
//
// 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_1(__int64 a1, __int128 *a2, double a3)
{
__int64 result; // rax
unsigned int v4; // ebx
__int128 v5; // [rsp+0h] [rbp-20h] BYREF
void *__p; // [rsp+10h] [rbp-10h]
if ( (*(_BYTE *)a2 & 1) != 0 )
{
sub_100006B70(&v5, *((const void **)a2 + 2), *((_QWORD *)a2 + 1), a3);
}
else
{
__p = *((void **)a2 + 2);
v5 = *a2;
}
result = FMODAudioEngine::playEffect(a1, &v5, 1.0, 0.0, 1.0);
if ( (v5 & 1) != 0 )
{
v4 = result;
operator delete(__p);
return v4;
}
return result;
}