//
// sub_636570 from 0x636570 to 0x6365d6 (102 bytes)
//
// 1 xrefs:
// > sub_6378F4 @ 0x638222
//
// 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
//
int __fastcall sub_636570(int a1)
{
char *v2; // r7
char *v3; // r0
char *v4; // r2
char *v5; // r6
char *v6; // r3
int v7; // r8
v2 = sub_6362D8(*(char **)(a1 + 376), 0);
v3 = sub_6362D8(*(char **)(a1 + 380), 0);
v4 = v2;
v5 = v3;
if ( v2 )
{
v6 = v3;
if ( v3 )
goto LABEL_3;
}
else
{
v6 = v3;
v4 = &byte_9B1912;
if ( v3 )
goto LABEL_3;
}
v6 = &byte_9B1912;
LABEL_3:
v7 = sub_636178(a1, "LOGIN %s %s", (int)v4, (int)v6);
off_ABAEB0(v2);
off_ABAEB0(v5);
if ( !v7 )
*(_DWORD *)(a1 + 1144) = 6;
return v7;
}