//
// sub_10058C008 from 0x10058c008 to 0x10058c02c (36 bytes)
//
// 14 xrefs:
// > sub_1005F03B8 @ 0x1005f0420
// > sub_1005F2B0C @ 0x1005f2b28
// > sub_100602724 @ 0x10060278c
// > sub_100602CF4 @ 0x100602d5c
// > sub_100608F10 @ 0x100608fb0
// > sub_100608F10 @ 0x100608ffc
// > sub_10060FCA4 @ 0x10060fcb4
// > sub_10060FCC4 @ 0x10060fcdc
// > sub_10060FD38 @ 0x10060fd94
// > sub_10060FEC0 @ 0x10060ff10
// > sub_10060FEC0 @ 0x10060ff3c
// > sub_100614938 @ 0x100614990
// > sub_1006164BC @ 0x1006164e0
// > sub_1006169A0 @ 0x100616d10
//
// 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_10058C008(__int64 a1, __int64 a2)
{
size_t v2; // x2
int v3; // w8
v2 = *(int *)(a1 + 20);
v3 = *(_DWORD *)(a2 + 20);
if ( (_DWORD)v2 == v3 )
return memcmp(*(const void **)(a1 + 24), *(const void **)(a2 + 24), v2);
else
return (unsigned int)(v2 - v3);
}