//
// BIO_accept_ex from 0x9e4680 to 0x9e4754 (212 bytes)
//
// 2 xrefs:
// > BIO_accept @ 0x9e3d00
// > ??> @ 0x7910c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:07:22 +0000
//
int __fastcall BIO_accept_ex(int a1)
{
struct sockaddr *v2; // r0
int v3; // r0
int v4; // r4
bool v5; // zf
int result; // r0
_DWORD *v7; // r0
socklen_t v8; // [sp+Ch] [bp-74h] BYREF
v8 = 112;
BIO_ADDR_sockaddr_noconst();
v3 = accept(a1, v2, &v8);
v4 = v3;
if ( v3 == -1 )
{
if ( !BIO_sock_should_retry() )
{
v7 = (_DWORD *)_errno();
ERR_put_error(2, 8, *v7, "crypto/bio/b_sock2.c", 246);
ERR_put_error(32, 137, 100, "crypto/bio/b_sock2.c", 247);
return -1;
}
return -1;
}
v5 = !BIO_socket_nbio(v3);
result = v4;
if ( v5 )
{
close(v4);
return -1;
}
return result;
}