//
// sub_849348 from 0x849348 to 0x849390 (72 bytes)
//
// 1 xrefs:
// > sub_84A2BC @ 0x84a3a4
//
// 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:26 +0000
//
int __fastcall sub_849348(int *a1)
{
char *v2; // r1
int v3; // r0
_BYTE v5[1032]; // [sp+Ch] [bp-408h] BYREF
v2 = *(char **)(*a1 + 34676);
v3 = *a1;
if ( !*v2 )
{
if ( sub_84B9D0(v5, 1025) )
{
v3 = *a1;
v2 = "localhost";
}
else
{
v2 = v5;
v3 = *a1;
}
}
return sub_833E74(v3, v2, 0, a1 + 288, nullptr, 1);
}