//
// lws_ssl_capable_read_no_ssl from 0xe3355c to 0xe335dc (128 bytes)
//
// 4 xrefs:
// > lws_service_fd @ 0xe32e70
// > sub_E36B64 @ 0xe36d28
// > lws_server_socket_service @ 0xe39d28
// > ??> @ 0xb9020
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:09:56 +0000
//
__int64 __fastcall lws_ssl_capable_read_no_ssl(__int64 a1, void *a2, int a3)
{
unsigned int v3; // w1
_DWORD *v5; // x0
v3 = recv(*(_DWORD *)(a1 + 88), a2, a3, 0);
if ( (v3 & 0x80000000) == 0 )
return v3;
v5 = (_DWORD *)__errno();
if ( *v5 == 11 )
return (unsigned int)-2;
v3 = -2;
if ( *v5 == 4 )
return v3;
lws_log(2, "error on reading from skt\n");
return 0xFFFFFFFFLL;
}