//
// sub_7D3AE4 from 0x7d3ae4 to 0x7d3b50 (108 bytes)
//
// 1 xrefs:
// > ??> @ 0xa30858
//
// 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_7D3AE4(int a1, const void *a2, size_t a3)
{
ssize_t v6; // r4
*(_DWORD *)_errno() = 0;
v6 = write(*(_DWORD *)(a1 + 28), a2, a3);
BIO_clear_flags(a1, 15);
if ( v6 <= 0 && BIO_sock_should_retry(v6) )
BIO_set_flags(a1, 10);
return v6;
}