//
// sub_1001B84D8 from 0x1001b84d8 to 0x1001b85b0 (216 bytes)
//
// 1 xrefs:
// > ChallengeNode::onClaimReward @ 0x100037614
//
// 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 sub_1001B84D8(__int64 a1, __int64 a2, float a3, float a4, float a5)
{
__int64 v9; // x19
void *__p[2]; // [xsp+20h] [xbp-50h] BYREF
__int64 v12; // [xsp+30h] [xbp-40h]
if ( *(char *)(a2 + 23) < 0 )
{
sub_1000097D0(__p, *(void **)a2, *(_QWORD *)(a2 + 8));
}
else
{
*(_OWORD *)__p = *(_OWORD *)a2;
v12 = *(_QWORD *)(a2 + 16);
}
v9 = FMODAudioEngine::playEffectAdvanced(
a1,
(__int128 *)__p,
0,
0,
0,
0,
0,
0,
a3,
a4,
a5,
0.0,
0.0,
0,
0,
0,
0,
0,
0,
0xFFF0BDC1);
if ( SHIBYTE(v12) < 0 )
operator delete(__p[0]);
return v9;
}