//
// sub_61846C from 0x61846c to 0x6184d0 (100 bytes)
//
// 0 xrefs:
//
// 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
//
ssize_t __fastcall sub_61846C(int *a1, int a2, void *a3, size_t a4, _DWORD *a5)
{
ssize_t v6; // r0
ssize_t v7; // r4
_DWORD *v9; // r0
int v10; // r7
bool v11; // zf
int v12; // r8
const char *v13; // r0
v6 = recv(a1[a2 + 104], a3, a4, 0);
*a5 = 0;
v7 = v6;
if ( v6 == -1 )
{
v9 = (_DWORD *)_errno();
v10 = *v9;
v11 = *v9 == 11;
if ( *v9 != 11 )
v11 = v10 == 4;
if ( v11 )
{
*a5 = 81;
}
else
{
v12 = *a1;
v13 = (const char *)sub_6325A4(a1, *v9);
sub_6180F8(v12, "Recv failure: %s", v13);
*(_DWORD *)(*a1 + 34488) = v10;
*a5 = 56;
}
}
return v7;
}