//
// sub_84B9D0 from 0x84b9d0 to 0x84b9fa (42 bytes)
//
// 2 xrefs:
// > sub_849348 @ 0x84937c
// > sub_851270 @ 0x8512e0
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:02:28 +0000
//
char *__fastcall sub_84B9D0(char *a1, size_t a2)
{
char *result; // r0
*a1 = 0;
result = (char *)gethostname(a1, a2);
a1[a2 - 1] = 0;
if ( !result )
{
result = strchr(a1, 46);
if ( result )
{
*result = 0;
return nullptr;
}
}
return result;
}