//
// sub_BA5378 from 0xba5378 to 0xba5428 (176 bytes)
//
// 1 xrefs:
// > sub_BA67C0 @ 0xba6c84
//
// 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_BA5378(__int64 a1)
{
char *v2; // x19
char *v3; // x0
char *v4; // x21
const char *v5; // x2
const char *v6; // x3
unsigned int v7; // w22
v2 = sub_BA4F44(*(char **)(a1 + 536), 0);
v3 = sub_BA4F44(*(char **)(a1 + 544), 0);
v4 = v3;
if ( v2 )
{
v5 = v2;
if ( v3 )
{
LABEL_3:
v6 = v3;
goto LABEL_4;
}
}
else
{
v5 = &byte_F288A0;
if ( v3 )
goto LABEL_3;
}
v6 = &byte_F288A0;
LABEL_4:
v7 = sub_BA4CFC(a1, "LOGIN %s %s", v5, v6);
off_1231008(v2);
off_1231008(v4);
if ( !v7 )
*(_DWORD *)(a1 + 1672) = 6;
return v7;
}