//
// sub_100552B4C from 0x100552b4c to 0x100552c0c (192 bytes)
//
// 2 xrefs:
// > sub_10055CD64 @ 0x10055e388
// > sub_100587770 @ 0x1005877a0
//
// 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_100552B4C(__int64 *a1, int a2, void *a3, size_t a4, int *a5)
{
ssize_t v7; // x20
__int64 v8; // x22
int v9; // w8
__int64 v10; // x23
const char *v11; // x0
v7 = recv(*((_DWORD *)a1 + a2 + 116), a3, a4, 0);
*a5 = 0;
if ( v7 == -1 )
{
v8 = (unsigned int)*__error();
if ( (_DWORD)v8 == 4 || (_DWORD)v8 == 35 )
{
v9 = 81;
}
else
{
v10 = *a1;
v11 = (const char *)sub_100570168(a1, v8);
sub_100552734(v10, "Recv failure: %s", v11);
*(_DWORD *)(*a1 + 35236) = v8;
v9 = 56;
}
*a5 = v9;
}
return v7;
}