//
// sub_D79A74 from 0xd79a74 to 0xd79aec (120 bytes)
//
// 1 xrefs:
// > ??> @ 0x1122518
//
// 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_D79A74(__int64 a1, const void *a2, int a3)
{
int v4; // w19
*(_DWORD *)__errno() = 0;
v4 = write(*(_DWORD *)(a1 + 40), a2, a3);
BIO_clear_flags(a1, 15);
if ( v4 <= 0 && (unsigned int)BIO_sock_should_retry(v4) )
BIO_set_flags(a1, 10);
return (unsigned int)v4;
}