//
// sub_1006A1F50 from 0x1006a1f50 to 0x1006a1fa4 (84 bytes)
//
// 2 xrefs:
// > sub_10069F558 @ 0x10069f6a8
// > sub_1006A45A8 @ 0x1006a4650
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:11:40 +0000
//
__int64 __fastcall sub_1006A1F50(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;
}