//
// lws_ssl_capable_write_no_ssl from 0xbbd41c to 0xbbd488 (108 bytes)
//
// 3 xrefs:
// > sub_BBD488 @ 0xbbd4fc
// > sub_BC09A4 @ 0xbc0aa8
// > ??> @ 0xa3bf0
//
// 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 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;
}