//
// sub_846668 from 0x846668 to 0x8466e8 (128 bytes)
//
// 0 xrefs:
//
// 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:24 +0000
//
int __fastcall sub_846668(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_8461F8(a1, "LOGOUT", a3, v5) )
{
*(_DWORD *)(a1 + 1144) = 14;
do
{
v10 = sub_84A600(a1 + 1088, 1) == 0;
if ( !*(_DWORD *)(a1 + 1144) )
v10 = 0;
}
while ( v10 );
}
}
else
{
v6 = a1 + 1088;
}
sub_84ABC8(v6);
sub_84D6C0(a1, *(_DWORD *)(a1 + 1168));
off_D200B0(*(void **)(a1 + 1192));
v7 = *(void **)(a1 + 1196);
v8 = off_D200B0;
*(_DWORD *)(a1 + 1192) = 0;
v8(v7);
*(_DWORD *)(a1 + 1196) = 0;
return 0;
}