	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_create_tcp_accept_sock         ## -- Begin function create_tcp_accept_sock
	.p2align	4, 0x90
_create_tcp_accept_sock:                ## @create_tcp_accept_sock
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r12d
	movq	%rdx, %r14
	movq	%rdi, %rbx
	callq	_verbose_print_addr
	movl	$0, (%r14)
	movq	(%rbx), %rdi
	movl	24(%rbx), %esi
	xorl	%edx, %edx
	callq	_socket
	cmpl	$-1, %eax
	je	LBB0_1
## %bb.5:
	movl	%eax, %r15d
	testl	%r12d, %r12d
	jle	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_log_warn
LBB0_7:
	movq	16(%rbx), %rsi
	movl	8(%rbx), %edx
	movl	%r15d, %edi
	callq	_bind
	testq	%rax, %rax
	je	LBB0_12
## %bb.8:
	movq	(%rbx), %rax
	movq	_AF_INET6@GOTPCREL(%rip), %rcx
	movq	_errno@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdi
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.9:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jne	LBB0_11
## %bb.10:
	movl	$1, (%r14)
	jmp	LBB0_15
LBB0_1:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_EAFNOSUPPORT@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	je	LBB0_3
## %bb.2:
	movq	_EPROTONOSUPPORT@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	je	LBB0_3
## %bb.4:
	callq	_strerror
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_log_err
	jmp	LBB0_16
LBB0_12:
	movl	%r15d, %edi
	callq	_fd_set_nonblock
	testl	%eax, %eax
	je	LBB0_15
## %bb.13:
	movq	_TCP_BACKLOG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_listen
	cmpl	$-1, %eax
	jne	LBB0_17
## %bb.14:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_strerror
	leaq	L_.str.3(%rip), %rdi
	movl	%eax, %esi
	callq	_log_err
	jmp	LBB0_15
LBB0_11:
	callq	_strerror
	movq	16(%rbx), %rdx
	movl	8(%rbx), %ecx
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	callq	_log_err_addr
LBB0_15:
	movl	%r15d, %edi
	callq	_close
	jmp	LBB0_16
LBB0_3:
	movl	$1, (%r14)
LBB0_16:
	movl	$-1, %r15d
LBB0_17:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,8,3                      ## @errno
	.comm	_EAFNOSUPPORT,8,3               ## @EAFNOSUPPORT
	.comm	_EPROTONOSUPPORT,8,3            ## @EPROTONOSUPPORT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"can't create socket: %s"

L_.str.1:                               ## @.str.1
	.asciz	" setsockopt(TCP_MAXSEG) unsupported"

	.comm	_AF_INET6,8,3                   ## @AF_INET6
	.comm	_EINVAL,8,3                     ## @EINVAL
L_.str.2:                               ## @.str.2
	.asciz	"can't bind socket"

	.comm	_TCP_BACKLOG,4,2                ## @TCP_BACKLOG
L_.str.3:                               ## @.str.3
	.asciz	"can't listen: %s"

	.comm	_ENOPROTOOPT,8,3                ## @ENOPROTOOPT
	.comm	_EPERM,8,3                      ## @EPERM
	.comm	_IPPROTO_IP,4,2                 ## @IPPROTO_IP
	.comm	_IPPROTO_IPV6,4,2               ## @IPPROTO_IPV6
	.comm	_IPPROTO_TCP,4,2                ## @IPPROTO_TCP
	.comm	_IPV6_BINDANY,4,2               ## @IPV6_BINDANY
	.comm	_IPV6_V6ONLY,4,2                ## @IPV6_V6ONLY
	.comm	_IP_BINDANY,4,2                 ## @IP_BINDANY
	.comm	_IP_FREEBIND,4,2                ## @IP_FREEBIND
	.comm	_IP_TRANSPARENT,4,2             ## @IP_TRANSPARENT
	.comm	_SOL_SOCKET,4,2                 ## @SOL_SOCKET
	.comm	_SO_BINDANY,4,2                 ## @SO_BINDANY
	.comm	_SO_REUSEADDR,4,2               ## @SO_REUSEADDR
	.comm	_SO_REUSEPORT,4,2               ## @SO_REUSEPORT
	.comm	_TCP_FASTOPEN,4,2               ## @TCP_FASTOPEN
	.comm	_TCP_MAXSEG,4,2                 ## @TCP_MAXSEG
	.comm	_VERB_ALGO,4,2                  ## @VERB_ALGO
	.comm	_WSAEAFNOSUPPORT,8,3            ## @WSAEAFNOSUPPORT
	.comm	_WSAEPROTONOSUPPORT,8,3         ## @WSAEPROTONOSUPPORT
	.comm	_verbosity,4,2                  ## @verbosity
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_create_tcp_accept_sock         ; -- Begin function create_tcp_accept_sock
	.p2align	2
_create_tcp_accept_sock:                ; @create_tcp_accept_sock
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x22, x5
	mov	x20, x2
	mov	x21, x0
	bl	_verbose_print_addr
	str	wzr, [x20]
	ldr	x0, [x21]
	ldr	w1, [x21, #24]
	mov	w2, #0
	bl	_socket
	cmn	w0, #1
	b.eq	LBB0_6
; %bb.1:
	mov	x19, x0
	cmp	w22, #1
	b.lt	LBB0_3
; %bb.2:
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_log_warn
LBB0_3:
	ldr	x1, [x21, #16]
	ldr	w2, [x21, #8]
	mov	x0, x19
	bl	_bind
	cbz	x0, LBB0_8
; %bb.4:
	ldr	x8, [x21]
Lloh2:
	adrp	x9, _AF_INET6@GOTPAGE
Lloh3:
	ldr	x9, [x9, _AF_INET6@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
Lloh5:
	adrp	x10, _errno@GOTPAGE
Lloh6:
	ldr	x10, [x10, _errno@GOTPAGEOFF]
Lloh7:
	ldr	x0, [x10]
Lloh8:
	adrp	x10, _EINVAL@GOTPAGE
Lloh9:
	ldr	x10, [x10, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x0, x10, #0, eq
	b.eq	LBB0_11
; %bb.5:
	bl	_strerror
	mov	x1, x0
	ldr	x2, [x21, #16]
	ldr	w3, [x21, #8]
Lloh11:
	adrp	x0, l_.str.2@PAGE
Lloh12:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_log_err_addr
	b	LBB0_12
LBB0_6:
Lloh13:
	adrp	x8, _errno@GOTPAGE
Lloh14:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh15:
	ldr	x0, [x8]
Lloh16:
	adrp	x8, _EAFNOSUPPORT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EAFNOSUPPORT@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
Lloh19:
	adrp	x9, _EPROTONOSUPPORT@GOTPAGE
Lloh20:
	ldr	x9, [x9, _EPROTONOSUPPORT@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x0, x8
	ccmp	x0, x9, #4, ne
	b.ne	LBB0_13
; %bb.7:
	mov	w8, #1
	str	w8, [x20]
	b	LBB0_14
LBB0_8:
	mov	x0, x19
	bl	_fd_set_nonblock
	cbz	w0, LBB0_12
; %bb.9:
Lloh22:
	adrp	x8, _TCP_BACKLOG@GOTPAGE
Lloh23:
	ldr	x8, [x8, _TCP_BACKLOG@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_listen
	cmn	w0, #1
	b.ne	LBB0_15
; %bb.10:
Lloh25:
	adrp	x8, _errno@GOTPAGE
Lloh26:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh27:
	ldr	x0, [x8]
	bl	_strerror
	mov	x1, x0
Lloh28:
	adrp	x0, l_.str.3@PAGE
Lloh29:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_log_err
	b	LBB0_12
LBB0_11:
	mov	w8, #1
	str	w8, [x20]
LBB0_12:
	mov	x0, x19
	bl	_close
	b	LBB0_14
LBB0_13:
	bl	_strerror
	mov	x1, x0
Lloh30:
	adrp	x0, l_.str@PAGE
Lloh31:
	add	x0, x0, l_.str@PAGEOFF
	bl	_log_err
LBB0_14:
	mov	w19, #-1
LBB0_15:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,8,3                      ; @errno
	.comm	_EAFNOSUPPORT,8,3               ; @EAFNOSUPPORT
	.comm	_EPROTONOSUPPORT,8,3            ; @EPROTONOSUPPORT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"can't create socket: %s"

l_.str.1:                               ; @.str.1
	.asciz	" setsockopt(TCP_MAXSEG) unsupported"

	.comm	_AF_INET6,8,3                   ; @AF_INET6
	.comm	_EINVAL,8,3                     ; @EINVAL
l_.str.2:                               ; @.str.2
	.asciz	"can't bind socket"

	.comm	_TCP_BACKLOG,4,2                ; @TCP_BACKLOG
l_.str.3:                               ; @.str.3
	.asciz	"can't listen: %s"

	.comm	_ENOPROTOOPT,8,3                ; @ENOPROTOOPT
	.comm	_EPERM,8,3                      ; @EPERM
	.comm	_IPPROTO_IP,4,2                 ; @IPPROTO_IP
	.comm	_IPPROTO_IPV6,4,2               ; @IPPROTO_IPV6
	.comm	_IPPROTO_TCP,4,2                ; @IPPROTO_TCP
	.comm	_IPV6_BINDANY,4,2               ; @IPV6_BINDANY
	.comm	_IPV6_V6ONLY,4,2                ; @IPV6_V6ONLY
	.comm	_IP_BINDANY,4,2                 ; @IP_BINDANY
	.comm	_IP_FREEBIND,4,2                ; @IP_FREEBIND
	.comm	_IP_TRANSPARENT,4,2             ; @IP_TRANSPARENT
	.comm	_SOL_SOCKET,4,2                 ; @SOL_SOCKET
	.comm	_SO_BINDANY,4,2                 ; @SO_BINDANY
	.comm	_SO_REUSEADDR,4,2               ; @SO_REUSEADDR
	.comm	_SO_REUSEPORT,4,2               ; @SO_REUSEPORT
	.comm	_TCP_FASTOPEN,4,2               ; @TCP_FASTOPEN
	.comm	_TCP_MAXSEG,4,2                 ; @TCP_MAXSEG
	.comm	_VERB_ALGO,4,2                  ; @VERB_ALGO
	.comm	_WSAEAFNOSUPPORT,8,3            ; @WSAEAFNOSUPPORT
	.comm	_WSAEPROTONOSUPPORT,8,3         ; @WSAEPROTONOSUPPORT
	.comm	_verbosity,4,2                  ; @verbosity
.subsections_via_symbols
