//
// sub_100575D18 from 0x100575d18 to 0x100575dc0 (168 bytes)
//
// 2 xrefs:
// > ??> @ 0x10082e550
// > ??> @ 0x10082e5d0
//
// 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_100575D18(__int64 a1, char a2)
{
__int64 v3; // x8
if ( (a2 & 1) == 0 )
{
v3 = *(_QWORD *)(a1 + 1424);
if ( v3 )
{
if ( *(_BYTE *)(v3 + 748) && !(unsigned int)sub_10057723C(a1, "LOGOUT") )
{
*(_DWORD *)(a1 + 1448) = 14;
while ( !(unsigned int)sub_10057A59C(a1 + 1336, 1) && *(_DWORD *)(a1 + 1448) )
;
}
}
}
sub_10057AC90(a1 + 1336);
sub_10057FDE0(a1, *(unsigned int *)(a1 + 1476));
off_10085DEB8(*(void **)(a1 + 1504));
*(_QWORD *)(a1 + 1504) = 0;
off_10085DEB8(*(void **)(a1 + 1512));
*(_QWORD *)(a1 + 1512) = 0;
return 0;
}