//
// sub_100510588 from 0x100510588 to 0x100510634 (172 bytes)
//
// 1 xrefs:
// > ??> @ 0x1008587b8
//
// 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_100510588(__int64 *a1)
{
__int64 v1; // x19
__int64 v2; // x8
__int64 v3; // x0
int v4; // w9
int v5; // w10
__int64 result; // x0
int *v7; // x1
int *v8; // [xsp+8h] [xbp-18h] BYREF
v1 = *a1;
v2 = *a1 + 600;
*(_QWORD *)(v1 + 608) = v2;
*(_QWORD *)(v1 + 600) = v2;
*(_QWORD *)(v1 + 616) = 0;
v3 = *(_QWORD *)(v1 + 168);
v4 = *(_DWORD *)(v3 + 73992);
if ( v4 == 0x7FFFFFFF )
v5 = 0;
else
v5 = v4 + 1;
*(_DWORD *)(v3 + 73992) = v5;
*(_DWORD *)(v1 + 624) = v4;
*(_QWORD *)(v1 + 576) = 0;
*(_QWORD *)(v1 + 544) = 0;
*(_QWORD *)(v1 + 560) = 0;
*(_QWORD *)(v1 + 552) = 0;
*(_DWORD *)(v1 + 568) = 0;
*(_DWORD *)(v1 + 628) = 1065353216;
*(_DWORD *)(v1 + 592) = 0;
result = sub_10043E710(v3, &v8, 16, 1);
if ( !(_DWORD)result )
{
*(_BYTE *)v8 = 8;
v7 = v8;
*((_QWORD *)v8 + 1) = v1;
return sub_10043E7B4(*(_QWORD *)(v1 + 168), (__int64)v7, 1);
}
return result;
}