//
// sub_10057BDE8 from 0x10057bde8 to 0x10057be3c (84 bytes)
//
// 2 xrefs:
// > sub_1005793F0 @ 0x100579540
// > sub_10057E440 @ 0x10057e4e8
//
// 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_10057BDE8(char *a1, size_t a2)
{
char *v3; // x20
__int64 result; // x0
char *v5; // x8
v3 = &a1[a2];
*a1 = 0;
result = gethostname(a1, a2);
*(v3 - 1) = 0;
if ( !(_DWORD)result )
{
v5 = strchr(a1, 46);
if ( v5 )
*v5 = 0;
return 0;
}
return result;
}