//
// sub_618894 from 0x618894 to 0x6188be (42 bytes)
//
// 2 xrefs:
// > sub_634F0C @ 0x634f4a
// > sub_634F80 @ 0x6351c6
//
// 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_618894(int a1, void *a2, size_t a3, ssize_t *a4)
{
ssize_t v5; // r2
int v7; // r3
bool v8; // zf
v5 = recv(a1, a2, a3, 0);
if ( v5 == -1 )
{
v7 = *(_DWORD *)_errno();
v8 = v7 == 11;
if ( v7 != 11 )
v8 = v7 == 4;
if ( v8 )
return 81;
else
return 56;
}
else
{
*a4 = v5;
return 0;
}
}