//
// sub_1005530CC from 0x1005530cc to 0x100553124 (88 bytes)
//
// 5 xrefs:
// > sub_1005730E4 @ 0x1005733fc
// > sub_1005735E0 @ 0x1005738b4
// > sub_1005735E0 @ 0x100573aa0
// > sub_1005735E0 @ 0x100573d48
// > sub_1005735E0 @ 0x100573f3c
//
// 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
//
__int64 __fastcall sub_1005530CC(int a1, void *a2, size_t a3, ssize_t *a4)
{
ssize_t v5; // x0
int v7; // w8
unsigned int v8; // w9
v5 = recv(a1, a2, a3, 0);
if ( v5 == -1 )
{
v7 = *__error();
if ( v7 == 4 )
v8 = 81;
else
v8 = 56;
if ( v7 == 35 )
return 81;
else
return v8;
}
else
{
*a4 = v5;
return 0;
}
}