//
// lws_ssl_capable_write_no_ssl from 0xe335dc to 0xe33648 (108 bytes)
//
// 3 xrefs:
// > sub_E33648 @ 0xe336bc
// > sub_E36B64 @ 0xe36c68
// > ??> @ 0xd7410
//
// 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_write_no_ssl(__int64 a1, const void *a2, int a3)
{
unsigned int v3; // w1
_DWORD *v5; // x0
v3 = send(*(_DWORD *)(a1 + 88), a2, a3, 0x4000);
if ( (v3 & 0x80000000) != 0 && ((v5 = (_DWORD *)__errno(), *v5 == 11) || (v3 = -1, *v5 == 4)) )
return 4294967294LL;
else
return v3;
}