//
// sub_10061C984 from 0x10061c984 to 0x10061ca1c (152 bytes)
//
// 1 xrefs:
// > sub_10061C6FC @ 0x10061c80c
//
// 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_10061C984(__int64 a1, unsigned int a2, const void *a3)
{
int v6; // w8
int v7; // w9
int v8; // w8
unsigned int v9; // w8
v6 = 8 * a2;
if ( (int)(8 * a2) <= 2147483584 )
{
v7 = v6 + 63;
v8 = v6 + 126;
if ( v7 >= 0 )
v8 = v7;
if ( v8 >> 6 > *(_DWORD *)(a1 + 12) )
sub_1005AAF94(a1, v8 >> 6);
}
v9 = a2 >> 3;
if ( (a2 & 7) != 0 )
++v9;
*(_DWORD *)(a1 + 8) = v9;
bzero(*(void **)a1, (int)(8 * v9));
memcpy(*(void **)a1, a3, a2);
return 0;
}