//
// sub_1004B58C8 from 0x1004b58c8 to 0x1004b592c (100 bytes)
//
// 1 xrefs:
// > sub_1004B592C @ 0x1004b5a90
//
// 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_1004B58C8(__int64 a1)
{
__int64 v2; // x19
void (__fastcall *v3)(__int64); // x21
v3 = *(void (__fastcall **)(__int64))a1;
v2 = *(_QWORD *)(a1 + 8);
if ( !pthread_setname_np((const char *)(a1 + 16)) )
{
sub_1004B1970(*((_QWORD *)off_1008524C8 + 54), (int *)a1);
v3(v2);
}
return 0;
}