	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BIO_accept_ex                  ## -- Begin function BIO_accept_ex
	.p2align	4, 0x90
_BIO_accept_ex:                         ## @BIO_accept_ex
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edx, %r14d
	movl	%edi, %ebx
	testq	%rsi, %rsi
	leaq	-24(%rbp), %rdi
	cmovneq	%rsi, %rdi
	movl	$4, -20(%rbp)
	callq	_BIO_ADDR_sockaddr_noconst
	leaq	-20(%rbp), %rdx
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_accept
	cmpl	$-1, %eax
	je	LBB0_1
## %bb.3:
	movl	%eax, %ebx
	movq	_BIO_SOCK_NONBLOCK@GOTPCREL(%rip), %rax
	xorl	%esi, %esi
	andl	(%rax), %r14d
	setne	%sil
	movl	%ebx, %edi
	callq	_BIO_socket_nbio
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:
	movl	%ebx, %edi
	callq	_closesocket
	jmp	LBB0_5
LBB0_1:
	movl	$-1, %edi
	callq	_BIO_sock_should_retry
	testl	%eax, %eax
	jne	LBB0_5
## %bb.2:
	movq	_SYS_F_ACCEPT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_get_last_socket_error
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_SYSerr
	movq	_BIO_F_BIO_ACCEPT_EX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_BIO_R_ACCEPT_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_BIOerr
LBB0_5:
	movq	_INVALID_SOCKET@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SYS_F_ACCEPT,4,2               ## @SYS_F_ACCEPT
	.comm	_BIO_F_BIO_ACCEPT_EX,4,2        ## @BIO_F_BIO_ACCEPT_EX
	.comm	_BIO_R_ACCEPT_ERROR,4,2         ## @BIO_R_ACCEPT_ERROR
	.comm	_INVALID_SOCKET,4,2             ## @INVALID_SOCKET
	.comm	_BIO_SOCK_NONBLOCK,4,2          ## @BIO_SOCK_NONBLOCK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BIO_accept_ex                  ; -- Begin function BIO_accept_ex
	.p2align	2
_BIO_accept_ex:                         ; @BIO_accept_ex
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x2
	mov	x19, x0
	add	x8, sp, #8
	cmp	x1, #0
	csel	x0, x8, x1, eq
	mov	w8, #4
	str	w8, [sp, #12]
	bl	_BIO_ADDR_sockaddr_noconst
	mov	x1, x0
	add	x2, sp, #12
	mov	x0, x19
	bl	_accept
	cmn	w0, #1
	b.eq	LBB0_3
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x8, _BIO_SOCK_NONBLOCK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BIO_SOCK_NONBLOCK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w20
	cset	w1, ne
	bl	_BIO_socket_nbio
	cbnz	w0, LBB0_6
; %bb.2:
	mov	x0, x19
	bl	_closesocket
	b	LBB0_5
LBB0_3:
	bl	_BIO_sock_should_retry
	cbnz	w0, LBB0_5
; %bb.4:
Lloh3:
	adrp	x8, _SYS_F_ACCEPT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SYS_F_ACCEPT@GOTPAGEOFF]
Lloh5:
	ldr	w19, [x8]
	bl	_get_last_socket_error
	mov	x1, x0
	mov	x0, x19
	bl	_SYSerr
Lloh6:
	adrp	x8, _BIO_F_BIO_ACCEPT_EX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BIO_F_BIO_ACCEPT_EX@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _BIO_R_ACCEPT_ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BIO_R_ACCEPT_ERROR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_BIOerr
LBB0_5:
Lloh12:
	adrp	x8, _INVALID_SOCKET@GOTPAGE
Lloh13:
	ldr	x8, [x8, _INVALID_SOCKET@GOTPAGEOFF]
Lloh14:
	ldr	w19, [x8]
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_SYS_F_ACCEPT,4,2               ; @SYS_F_ACCEPT
	.comm	_BIO_F_BIO_ACCEPT_EX,4,2        ; @BIO_F_BIO_ACCEPT_EX
	.comm	_BIO_R_ACCEPT_ERROR,4,2         ; @BIO_R_ACCEPT_ERROR
	.comm	_INVALID_SOCKET,4,2             ; @INVALID_SOCKET
	.comm	_BIO_SOCK_NONBLOCK,4,2          ; @BIO_SOCK_NONBLOCK
.subsections_via_symbols
