//
// FMODAudioEngine::playEffect_1 from 0x1001b85cc to 0x1001b864c (128 bytes)
//
// 32 xrefs:
// > MapPackCell::playCompleteEffect @ 0x100136da8
// > PlayLayer::showCompleteEffect @ 0x1001433e0
// > PlayLayer::showNewBest @ 0x10014427c
// > PlayLayer::showNewBest @ 0x1001444ac
// > PlayLayer::showNewBest @ 0x1001446b0
// > GJShopLayer::didPurchaseItem @ 0x1001cad80
// > DailyLevelNode::onClaimReward @ 0x1002516dc
// > sub_10025B774 @ 0x10025b7a4
// > RewardUnlockLayer::step2 @ 0x10025b818
// > RewardUnlockLayer::playRewardEffect @ 0x10025b9d0
// > RewardUnlockLayer::playRewardEffect @ 0x10025ba04
// > RewardUnlockLayer::playRewardEffect @ 0x10025bbd4
// > RewardUnlockLayer::playRewardEffect @ 0x10025bc34
// > RewardUnlockLayer::playRewardEffect @ 0x10025bc68
// > RewardUnlockLayer::playRewardEffect @ 0x10025bc9c
// > RewardUnlockLayer::playRewardEffect @ 0x10025bcd0
// > RewardUnlockLayer::playRewardEffect @ 0x10025bd04
// > RewardUnlockLayer::playRewardEffect @ 0x10025bd38
// > RewardUnlockLayer::playRewardEffect @ 0x10025c6dc
// > RewardUnlockLayer::playRewardEffect @ 0x10025c71c
// > RewardUnlockLayer::playRewardEffect @ 0x10025c750
// > LevelListLayer::onClaimReward @ 0x1002e32c8
// > sub_100394E80 @ 0x100394ed0
// > sub_100394E80 @ 0x100394f10
// > sub_100394E80 @ 0x100394f50
// > EndLevelLayer::coinEnterFinished @ 0x1003951f4
// > SecretLayer2::onSubmit @ 0x1003a78dc
// > SecretLayer3::onClick @ 0x1003abf18
// > SecretLayer3::onClick @ 0x1003abf4c
// > LevelAreaLayer::onEnterTower @ 0x1003e3c9c
// > sub_100464B28 @ 0x100464f3c
// > LevelBrowserLayer::FLAlert_Clicked @ 0x10049aed8
//
// This function is hookable on this platform (idp: arm, 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 11:00:11 +0000
//
__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;
}