//
// sub_1000182A4 from 0x1000182a4 to 0x1000182e4 (64 bytes)
//
// 1 xrefs:
// > sub_1000181EC @ 0x10001821c
//
// 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
//
void *__fastcall sub_1000182A4(_QWORD *a1, __int64 a2)
{
unsigned __int64 v3; // x1
void *result; // x0
__int64 v5; // x1
if ( a2 < 0 )
sub_10000A5F8();
if ( a2 )
v3 = ((unsigned __int64)(a2 - 1) >> 6) + 1;
else
v3 = 0;
result = sub_1000181B8((__int64)a1, v3);
*a1 = result;
a1[1] = 0;
a1[2] = v5;
return result;
}