//
// sub_E2EEA8 from 0xe2eea8 to 0xe2ef6c (196 bytes)
//
// 1 xrefs:
// > sub_E30AC8 @ 0xe30ac8
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:09:54 +0000
//
__int64 __fastcall sub_E2EEA8(__int64 a1)
{
unsigned int v1; // w19
ssize_t v2; // x0
int v3; // w0
bool v4; // zf
unsigned int v5; // w0
int v6; // w19
char v8; // [xsp+2Fh] [xbp+2Fh] BYREF
v1 = 0;
v2 = recv(*(_DWORD *)(a1 + 608), &v8, 1u, 2);
if ( !v2 )
return v1;
if ( v2 == 1 )
return 1;
if ( v2 != -1 )
return (unsigned int)-1;
v3 = *(_DWORD *)__errno();
if ( v3 != 11 && v3 != 115 )
{
if ( v3 != 100 && (unsigned int)(v3 - 102) > 2 )
{
v4 = v3 == 110;
v5 = v3 - 107;
v6 = v4;
return -((v6 | (v5 <= 1)) ^ 1);
}
return v1;
}
return 1;
}