//
// sub_1005928D0 from 0x1005928d0 to 0x10059295c (140 bytes)
//
// 1 xrefs:
// > sub_1005E9050 @ 0x1005e905c
//
// 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_1005928D0(_QWORD *a1, unsigned int *a2)
{
__int64 v4; // x8
unsigned int v5; // w9
bool v6; // zf
char *v7; // x9
v4 = *a2;
v5 = a2[7];
if ( (_DWORD)v4 )
v6 = 1;
else
v6 = v5 == 2;
if ( v6 )
{
if ( v5 == 2 )
{
v7 = (char *)a2 + v4;
LODWORD(v4) = v4 + 1;
v7[4] = 0x80;
}
bzero((char *)a2 + (unsigned int)v4 + 4, (unsigned int)(8 - v4));
sub_100592708((__int64)a2, (__int64)(a2 + 1), 8u);
}
*a1 = *(_QWORD *)(a2 + 3);
a1[1] = *(_QWORD *)(a2 + 5);
return 1;
}