//
// sub_6365E8 from 0x6365e8 to 0x636668 (128 bytes)
//
// 0 xrefs:
//
// 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_6365E8(int a1, int a2, int a3)
{
int v4; // r3
int v5; // r3
int v6; // r5
void *v7; // r0
void (*v8)(void *); // r3
_BOOL4 v10; // r0
if ( !a2 && (v4 = *(_DWORD *)(a1 + 1132)) != 0 && (v5 = *(unsigned __int8 *)(v4 + 627)) != 0 )
{
v6 = a1 + 1088;
if ( !sub_636178(a1, "LOGOUT", a3, v5) )
{
*(_DWORD *)(a1 + 1144) = 14;
do
{
v10 = sub_63A580(a1 + 1088, 1) == 0;
if ( !*(_DWORD *)(a1 + 1144) )
v10 = 0;
}
while ( v10 );
}
}
else
{
v6 = a1 + 1088;
}
sub_63AB48(v6);
sub_63D640(a1, *(_DWORD *)(a1 + 1168));
off_ABAEB0(*(void **)(a1 + 1192));
v7 = *(void **)(a1 + 1196);
v8 = off_ABAEB0;
*(_DWORD *)(a1 + 1192) = 0;
v8(v7);
*(_DWORD *)(a1 + 1196) = 0;
return 0;
}