//
// FMODAudioEngine::playEffect_1 from 0x10013b750 to 0x10013b7d0 (128 bytes)
//
// 32 xrefs:
// > ChallengeNode::onClaimReward @ 0x100033b08
// > MapPackCell::playCompleteEffect @ 0x10010f5ac
// > PlayLayer::showCompleteEffect @ 0x10011a3e4
// > PlayLayer::showNewBest @ 0x10011b280
// > PlayLayer::showNewBest @ 0x10011b4b0
// > PlayLayer::showNewBest @ 0x10011b6b4
// > GJShopLayer::didPurchaseItem @ 0x10014c480
// > DailyLevelNode::onClaimReward @ 0x1001bba40
// > RewardUnlockLayer::playDropSound @ 0x1001c5bec
// > RewardUnlockLayer::step2 @ 0x1001c5c60
// > RewardUnlockLayer::playRewardEffect @ 0x1001c5e18
// > RewardUnlockLayer::playRewardEffect @ 0x1001c5e4c
// > RewardUnlockLayer::playRewardEffect @ 0x1001c601c
// > RewardUnlockLayer::playRewardEffect @ 0x1001c607c
// > RewardUnlockLayer::playRewardEffect @ 0x1001c60b0
// > RewardUnlockLayer::playRewardEffect @ 0x1001c60e4
// > RewardUnlockLayer::playRewardEffect @ 0x1001c6118
// > RewardUnlockLayer::playRewardEffect @ 0x1001c614c
// > RewardUnlockLayer::playRewardEffect @ 0x1001c6180
// > RewardUnlockLayer::playRewardEffect @ 0x1001c6b24
// > RewardUnlockLayer::playRewardEffect @ 0x1001c6b64
// > RewardUnlockLayer::playRewardEffect @ 0x1001c6b98
// > LevelListLayer::onClaimReward @ 0x100246180
// > EndLevelLayer::playEndEffect @ 0x1002f85ac
// > EndLevelLayer::playEndEffect @ 0x1002f85ec
// > EndLevelLayer::playEndEffect @ 0x1002f862c
// > EndLevelLayer::coinEnterFinished @ 0x1002f88d0
// > SecretLayer2::onSubmit @ 0x10030abc0
// > SecretLayer3::onClick @ 0x10030f200
// > SecretLayer3::onClick @ 0x10030f234
// > LevelAreaLayer::onEnterTower @ 0x100345520
// > SecretLayer::onSubmit @ 0x1003be20c
//
// 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, __int64 a2)
{
__int64 v3; // x19
void *__p[2]; // [xsp+0h] [xbp-30h] BYREF
__int64 v6; // [xsp+10h] [xbp-20h]
if ( *(char *)(a2 + 23) < 0 )
{
sub_1000097D0(__p, *(void **)a2, *(_QWORD *)(a2 + 8));
}
else
{
*(_OWORD *)__p = *(_OWORD *)a2;
v6 = *(_QWORD *)(a2 + 16);
}
v3 = FMODAudioEngine::playEffect(a1, __p, 1.0, 0.0, 1.0);
if ( SHIBYTE(v6) < 0 )
operator delete(__p[0]);
return v3;
}