//
// sub_8549C4 from 0x8549c4 to 0x854a2a (102 bytes)
//
// 1 xrefs:
// > sub_855B78 @ 0x855b78
//
// 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:35 +0000
//
int __fastcall sub_8549C4(int a1)
{
ssize_t v1; // r0
int v3; // r0
bool v4; // zf
bool v5; // zf
int v6; // r0
_BYTE v7[5]; // [sp+7h] [bp-5h] BYREF
v1 = recv(*(_DWORD *)(a1 + 416), v7, 1u, 2);
if ( !v1 )
return 0;
if ( v1 == 1 )
return 1;
if ( v1 != -1 )
return -1;
v3 = *(_DWORD *)_errno();
v4 = v3 == 115;
if ( v3 != 115 )
v4 = v3 == 11;
if ( v4 )
return 1;
if ( (v3 & 0xFFFFFFF7) == 0x64 || (unsigned int)(v3 - 102) <= 2 )
return 0;
v5 = v3 == 110;
if ( v3 != 110 )
v5 = v3 == 107;
v6 = v5;
return -(v6 ^ 1);
}