//
// sub_FF7DD4 from 0xff7dd4 to 0xff7e4c (120 bytes)
//
// 1 xrefs:
// > ??> @ 0x13ffaa8
//
// 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:15:49 +0000
//
__int64 __fastcall sub_FF7DD4(__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;
}