//
// sub_1005E58F8 from 0x1005e58f8 to 0x1005e5948 (80 bytes)
//
// 4 xrefs:
// > ??> @ 0x10083bd60
// > ??> @ 0x10083bdb8
// > ??> @ 0x10083be10
// > ??> @ 0x10083be68
//
// 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_1005E58F8(__int64 a1, unsigned __int8 *a2)
{
__int64 v3; // x20
v3 = *(_QWORD *)(a1 + 120);
*(_QWORD *)(v3 + 384) = 0;
sub_10059640C(a2, (int *)v3);
sub_10059640C(a2 + 8, (int *)(v3 + 128));
memcpy((void *)(v3 + 256), (const void *)v3, 0x80u);
return 1;
}