//
// sub_180084310 from 0x180084310 to 0x180084369 (89 bytes)
//
// 2 xrefs:
// > sub_180085450 @ 0x180085545
// > ??> @ 0x1801b5508
//
// 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_180084310(__int64 a1, __int64 *a2, __int64 a3)
{
__int64 result; // rax
if ( *(_QWORD *)a1 )
memmove((void *)(*(_QWORD *)a1 - *(_QWORD *)(a1 + 8)), *(const void **)a1, *a2 - *(_QWORD *)a1);
*a2 += a3;
result = *a2;
*(_QWORD *)(a1 + 8) += a3;
*(_QWORD *)a1 = result;
return result;
}