//
// sub_100616364 from 0x100616364 to 0x1006163c0 (92 bytes)
//
// 2 xrefs:
// > sub_10052A8DC @ 0x10052a8fc
// > sub_10052ACA8 @ 0x10052af1c
//
// 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 sub_100616364(_QWORD *a1, __int64 a2, __int64 a3, __int64 a4, __int64 a5)
{
int v5; // w20
__int64 (__fastcall *v7)(_QWORD *, __int64, __int64, __int64, __int64); // x8
__int64 result; // x0
__int64 v9; // x9
v5 = a5;
v7 = *(__int64 (__fastcall **)(_QWORD *, __int64, __int64, __int64, __int64))(*a1 + 32LL);
if ( !v7 )
return 0xFFFFFFFFLL;
result = v7(a1, a2, a3, a4, a5);
if ( (int)result >= 1 )
{
v9 = a1[2];
a1[1] += v5;
a1[2] = v9 + (int)result;
}
return result;
}