//
// sub_BABD1C from 0xbabd1c to 0xbabd74 (88 bytes)
//
// 2 xrefs:
// > sub_BA8934 @ 0xba89c0
// > sub_BB3E44 @ 0xbb3f14
//
// 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_BABD1C(char *a1, size_t a2)
{
char *v3; // x19
int v4; // w0
unsigned int v5; // w21
char *v6; // x0
v3 = &a1[a2];
*a1 = 0;
v4 = gethostname(a1, a2);
*(v3 - 1) = 0;
v5 = v4;
if ( !v4 )
{
v6 = strchr(a1, 46);
if ( v6 )
*v6 = 0;
}
return v5;
}