	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BIO_listen                     ## -- Begin function BIO_listen
	.p2align	4, 0x90
_BIO_listen:                            ## @BIO_listen
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$1, -48(%rbp)
	movl	$4, -44(%rbp)
	cmpl	$-1, %edi
	je	LBB0_1
## %bb.2:
	movl	%edx, %r15d
	movq	%rsi, %r12
	movl	%edi, %ebx
	movq	_SOL_SOCKET@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_SO_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-52(%rbp), %rcx
	leaq	-44(%rbp), %r8
	callq	_getsockopt
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	cmpl	$4, -44(%rbp)
	jne	LBB0_4
## %bb.5:
	movq	_BIO_SOCK_NONBLOCK@GOTPCREL(%rip), %rax
	xorl	%esi, %esi
	movl	(%rax), %eax
	andl	%r15d, %eax
	setne	%sil
	movl	%ebx, %edi
	callq	_BIO_socket_nbio
	xorl	%r14d, %r14d
	testl	%eax, %eax
	je	LBB0_17
## %bb.6:
	movq	_BIO_SOCK_KEEPALIVE@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_9
## %bb.7:
	movl	(%r13), %esi
	movq	_SO_KEEPALIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %rcx
	movl	%ebx, %edi
	movl	$4, %r8d
	callq	_setsockopt
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	_SYS_F_SETSOCKOPT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_get_last_socket_error
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_SYSerr
	movq	_BIO_F_BIO_LISTEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_BIO_R_UNABLE_TO_KEEPALIVE@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_1:
	movq	_BIO_F_BIO_LISTEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_BIO_R_INVALID_SOCKET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_BIOerr
	xorl	%r14d, %r14d
	jmp	LBB0_17
LBB0_4:
	movq	_SYS_F_GETSOCKOPT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_get_last_socket_error
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_SYSerr
	movq	_BIO_F_BIO_LISTEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_BIO_R_GETTING_SOCKTYPE@GOTPCREL(%rip), %rax
LBB0_16:
	movl	(%rax), %esi
	callq	_BIOerr
LBB0_17:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_BIO_SOCK_NODELAY@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_12
## %bb.10:
	movq	_IPPROTO_TCP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TCP_NODELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %rcx
	movl	%ebx, %edi
	movl	$4, %r8d
	callq	_setsockopt
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	_SYS_F_SETSOCKOPT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_get_last_socket_error
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_SYSerr
	movq	_BIO_F_BIO_LISTEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_BIO_R_UNABLE_TO_NODELAY@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_12:
	movl	%ebx, %edi
	movq	%r12, %rsi
	movl	%r15d, %edx
	callq	_BIO_bind
	testl	%eax, %eax
	je	LBB0_17
## %bb.13:
	movl	-52(%rbp), %eax
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %rcx
	movl	$1, %r14d
	cmpl	(%rcx), %eax
	je	LBB0_17
## %bb.14:
	movq	_MAX_LISTEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_listen
	cmpl	$-1, %eax
	jne	LBB0_17
## %bb.15:
	movq	_SYS_F_LISTEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_get_last_socket_error
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_SYSerr
	movq	_BIO_F_BIO_LISTEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_BIO_R_UNABLE_TO_LISTEN_SOCKET@GOTPCREL(%rip), %rax
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_BIO_F_BIO_LISTEN,4,2           ## @BIO_F_BIO_LISTEN
	.comm	_BIO_R_INVALID_SOCKET,4,2       ## @BIO_R_INVALID_SOCKET
	.comm	_SOL_SOCKET,4,2                 ## @SOL_SOCKET
	.comm	_SO_TYPE,4,2                    ## @SO_TYPE
	.comm	_SYS_F_GETSOCKOPT,4,2           ## @SYS_F_GETSOCKOPT
	.comm	_BIO_R_GETTING_SOCKTYPE,4,2     ## @BIO_R_GETTING_SOCKTYPE
	.comm	_BIO_SOCK_NONBLOCK,4,2          ## @BIO_SOCK_NONBLOCK
	.comm	_BIO_SOCK_KEEPALIVE,4,2         ## @BIO_SOCK_KEEPALIVE
	.comm	_SO_KEEPALIVE,4,2               ## @SO_KEEPALIVE
	.comm	_SYS_F_SETSOCKOPT,4,2           ## @SYS_F_SETSOCKOPT
	.comm	_BIO_R_UNABLE_TO_KEEPALIVE,4,2  ## @BIO_R_UNABLE_TO_KEEPALIVE
	.comm	_BIO_SOCK_NODELAY,4,2           ## @BIO_SOCK_NODELAY
	.comm	_IPPROTO_TCP,4,2                ## @IPPROTO_TCP
	.comm	_TCP_NODELAY,4,2                ## @TCP_NODELAY
	.comm	_BIO_R_UNABLE_TO_NODELAY,4,2    ## @BIO_R_UNABLE_TO_NODELAY
	.comm	_SOCK_DGRAM,4,2                 ## @SOCK_DGRAM
	.comm	_MAX_LISTEN,4,2                 ## @MAX_LISTEN
	.comm	_SYS_F_LISTEN,4,2               ## @SYS_F_LISTEN
	.comm	_BIO_R_UNABLE_TO_LISTEN_SOCKET,4,2 ## @BIO_R_UNABLE_TO_LISTEN_SOCKET
	.comm	_AF_INET6,8,3                   ## @AF_INET6
	.comm	_BIO_R_LISTEN_V6_ONLY,4,2       ## @BIO_R_LISTEN_V6_ONLY
	.comm	_BIO_SOCK_V6_ONLY,4,2           ## @BIO_SOCK_V6_ONLY
	.comm	_IPPROTO_IPV6,4,2               ## @IPPROTO_IPV6
	.comm	_IPV6_V6ONLY,4,2                ## @IPV6_V6ONLY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BIO_listen                     ; -- Begin function BIO_listen
	.p2align	2
_BIO_listen:                            ; @BIO_listen
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	w8, #1
	str	w8, [sp, #12]
	mov	w8, #4
	str	w8, [sp, #4]
	cmn	w0, #1
	b.eq	LBB0_3
; %bb.1:
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _SOL_SOCKET@GOTPAGE
Lloh1:
	ldr	x22, [x22, _SOL_SOCKET@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh2:
	adrp	x8, _SO_TYPE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SO_TYPE@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	add	x3, sp, #8
	add	x4, sp, #4
	bl	_getsockopt
	ldr	w8, [sp, #4]
	cmp	x0, #0
	ccmp	w8, #4, #0, eq
	b.eq	LBB0_6
; %bb.2:
Lloh5:
	adrp	x8, _SYS_F_GETSOCKOPT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SYS_F_GETSOCKOPT@GOTPAGEOFF]
Lloh7:
	ldr	w19, [x8]
	bl	_get_last_socket_error
	mov	x1, x0
	mov	x0, x19
	bl	_SYSerr
Lloh8:
	adrp	x8, _BIO_F_BIO_LISTEN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BIO_F_BIO_LISTEN@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x8, _BIO_R_GETTING_SOCKTYPE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BIO_R_GETTING_SOCKTYPE@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh13:
	adrp	x8, _BIO_F_BIO_LISTEN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _BIO_F_BIO_LISTEN@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
Lloh16:
	adrp	x8, _BIO_R_INVALID_SOCKET@GOTPAGE
Lloh17:
	ldr	x8, [x8, _BIO_R_INVALID_SOCKET@GOTPAGEOFF]
LBB0_4:
	ldr	w1, [x8]
	bl	_BIOerr
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_6:
Lloh18:
	adrp	x8, _BIO_SOCK_NONBLOCK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _BIO_SOCK_NONBLOCK@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	tst	w8, w20
	cset	w1, ne
	mov	x0, x19
	bl	_BIO_socket_nbio
	cbz	w0, LBB0_5
; %bb.7:
Lloh21:
	adrp	x8, _BIO_SOCK_KEEPALIVE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _BIO_SOCK_KEEPALIVE@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_10
; %bb.8:
	ldr	w1, [x22]
Lloh24:
	adrp	x8, _SO_KEEPALIVE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SO_KEEPALIVE@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
	add	x3, sp, #12
	mov	x0, x19
	mov	w4, #4
	bl	_setsockopt
	cbz	x0, LBB0_10
; %bb.9:
Lloh27:
	adrp	x8, _SYS_F_SETSOCKOPT@GOTPAGE
Lloh28:
	ldr	x8, [x8, _SYS_F_SETSOCKOPT@GOTPAGEOFF]
Lloh29:
	ldr	w19, [x8]
	bl	_get_last_socket_error
	mov	x1, x0
	mov	x0, x19
	bl	_SYSerr
Lloh30:
	adrp	x8, _BIO_F_BIO_LISTEN@GOTPAGE
Lloh31:
	ldr	x8, [x8, _BIO_F_BIO_LISTEN@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
Lloh33:
	adrp	x8, _BIO_R_UNABLE_TO_KEEPALIVE@GOTPAGE
Lloh34:
	ldr	x8, [x8, _BIO_R_UNABLE_TO_KEEPALIVE@GOTPAGEOFF]
	b	LBB0_4
LBB0_10:
Lloh35:
	adrp	x8, _BIO_SOCK_NODELAY@GOTPAGE
Lloh36:
	ldr	x8, [x8, _BIO_SOCK_NODELAY@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_13
; %bb.11:
Lloh38:
	adrp	x8, _IPPROTO_TCP@GOTPAGE
Lloh39:
	ldr	x8, [x8, _IPPROTO_TCP@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
Lloh41:
	adrp	x8, _TCP_NODELAY@GOTPAGE
Lloh42:
	ldr	x8, [x8, _TCP_NODELAY@GOTPAGEOFF]
Lloh43:
	ldr	w2, [x8]
	add	x3, sp, #12
	mov	x0, x19
	mov	w4, #4
	bl	_setsockopt
	cbz	x0, LBB0_13
; %bb.12:
Lloh44:
	adrp	x8, _SYS_F_SETSOCKOPT@GOTPAGE
Lloh45:
	ldr	x8, [x8, _SYS_F_SETSOCKOPT@GOTPAGEOFF]
Lloh46:
	ldr	w19, [x8]
	bl	_get_last_socket_error
	mov	x1, x0
	mov	x0, x19
	bl	_SYSerr
Lloh47:
	adrp	x8, _BIO_F_BIO_LISTEN@GOTPAGE
Lloh48:
	ldr	x8, [x8, _BIO_F_BIO_LISTEN@GOTPAGEOFF]
Lloh49:
	ldr	w0, [x8]
Lloh50:
	adrp	x8, _BIO_R_UNABLE_TO_NODELAY@GOTPAGE
Lloh51:
	ldr	x8, [x8, _BIO_R_UNABLE_TO_NODELAY@GOTPAGEOFF]
	b	LBB0_4
LBB0_13:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_BIO_bind
	cbz	w0, LBB0_5
; %bb.14:
	ldr	w8, [sp, #8]
Lloh52:
	adrp	x9, _SOCK_DGRAM@GOTPAGE
Lloh53:
	ldr	x9, [x9, _SOCK_DGRAM@GOTPAGEOFF]
Lloh54:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_16
; %bb.15:
Lloh55:
	adrp	x8, _MAX_LISTEN@GOTPAGE
Lloh56:
	ldr	x8, [x8, _MAX_LISTEN@GOTPAGEOFF]
Lloh57:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_listen
	cmn	w0, #1
	b.eq	LBB0_17
LBB0_16:
	mov	w0, #1
	b	LBB0_5
LBB0_17:
Lloh58:
	adrp	x8, _SYS_F_LISTEN@GOTPAGE
Lloh59:
	ldr	x8, [x8, _SYS_F_LISTEN@GOTPAGEOFF]
Lloh60:
	ldr	w19, [x8]
	bl	_get_last_socket_error
	mov	x1, x0
	mov	x0, x19
	bl	_SYSerr
Lloh61:
	adrp	x8, _BIO_F_BIO_LISTEN@GOTPAGE
Lloh62:
	ldr	x8, [x8, _BIO_F_BIO_LISTEN@GOTPAGEOFF]
Lloh63:
	ldr	w0, [x8]
Lloh64:
	adrp	x8, _BIO_R_UNABLE_TO_LISTEN_SOCKET@GOTPAGE
Lloh65:
	ldr	x8, [x8, _BIO_R_UNABLE_TO_LISTEN_SOCKET@GOTPAGEOFF]
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGot	Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.cfi_endproc
                                        ; -- End function
	.comm	_BIO_F_BIO_LISTEN,4,2           ; @BIO_F_BIO_LISTEN
	.comm	_BIO_R_INVALID_SOCKET,4,2       ; @BIO_R_INVALID_SOCKET
	.comm	_SOL_SOCKET,4,2                 ; @SOL_SOCKET
	.comm	_SO_TYPE,4,2                    ; @SO_TYPE
	.comm	_SYS_F_GETSOCKOPT,4,2           ; @SYS_F_GETSOCKOPT
	.comm	_BIO_R_GETTING_SOCKTYPE,4,2     ; @BIO_R_GETTING_SOCKTYPE
	.comm	_BIO_SOCK_NONBLOCK,4,2          ; @BIO_SOCK_NONBLOCK
	.comm	_BIO_SOCK_KEEPALIVE,4,2         ; @BIO_SOCK_KEEPALIVE
	.comm	_SO_KEEPALIVE,4,2               ; @SO_KEEPALIVE
	.comm	_SYS_F_SETSOCKOPT,4,2           ; @SYS_F_SETSOCKOPT
	.comm	_BIO_R_UNABLE_TO_KEEPALIVE,4,2  ; @BIO_R_UNABLE_TO_KEEPALIVE
	.comm	_BIO_SOCK_NODELAY,4,2           ; @BIO_SOCK_NODELAY
	.comm	_IPPROTO_TCP,4,2                ; @IPPROTO_TCP
	.comm	_TCP_NODELAY,4,2                ; @TCP_NODELAY
	.comm	_BIO_R_UNABLE_TO_NODELAY,4,2    ; @BIO_R_UNABLE_TO_NODELAY
	.comm	_SOCK_DGRAM,4,2                 ; @SOCK_DGRAM
	.comm	_MAX_LISTEN,4,2                 ; @MAX_LISTEN
	.comm	_SYS_F_LISTEN,4,2               ; @SYS_F_LISTEN
	.comm	_BIO_R_UNABLE_TO_LISTEN_SOCKET,4,2 ; @BIO_R_UNABLE_TO_LISTEN_SOCKET
	.comm	_AF_INET6,8,3                   ; @AF_INET6
	.comm	_BIO_R_LISTEN_V6_ONLY,4,2       ; @BIO_R_LISTEN_V6_ONLY
	.comm	_BIO_SOCK_V6_ONLY,4,2           ; @BIO_SOCK_V6_ONLY
	.comm	_IPPROTO_IPV6,4,2               ; @IPPROTO_IPV6
	.comm	_IPV6_V6ONLY,4,2                ; @IPV6_V6ONLY
.subsections_via_symbols
