//
// sub_E21ED4 from 0xe21ed4 to 0xe21f2c (88 bytes)
//
// 2 xrefs:
// > sub_E1EAEC @ 0xe1eb78
// > sub_E2A004 @ 0xe2a0d4
//
// 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 13:09:47 +0000
//
__int64 __fastcall sub_E21ED4(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;
}