	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function open_inet_listener
_open_inet_listener:                    ## @open_inet_listener
	.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	%r8d, %edi
	movq	%rcx, %r14
	movq	%rdx, %r12
	movq	%rsi, %r15
	movl	16(%rbp), %r13d
	movl	%r9d, %esi
	movl	%r13d, %edx
	callq	_socket
	cmpl	$-1, %eax
	je	LBB0_8
## %bb.1:
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_set_cloexec
	movl	$1, -44(%rbp)
	movq	_SOL_SOCKET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SO_REUSEADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-44(%rbp), %rcx
	movl	%ebx, %edi
	movl	$4, %r8d
	callq	_setsockopt
	testq	%rax, %rax
	jne	LBB0_7
## %bb.2:
	movl	32(%rbp), %edx
	movq	24(%rbp), %rsi
	movl	%ebx, %edi
	callq	_bind
	testq	%rax, %rax
	je	LBB0_3
LBB0_7:
	movl	%ebx, %edi
	callq	_close
LBB0_8:
	movq	_IPPROTO_TCP@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.3(%rip), %r13
	cmoveq	%rax, %r13
	testq	%r12, %r12
	leaq	L_.str.4(%rip), %rbx
	cmovneq	%r12, %rbx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	movq	%rax, (%rsp)
	leaq	L_.str.1(%rip), %rdx
	xorl	%edi, %edi
	movq	%r15, %rsi
	movq	%r13, %rcx
	movq	%rbx, %r8
	movq	%r14, %r9
	callq	_h2o_configurator_errprintf
	movl	$-1, %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_IPPROTO_TCP@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	jne	LBB0_9
## %bb.4:
	movq	_H2O_SOMAXCONN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_listen
	testq	%rax, %rax
	jne	LBB0_7
## %bb.5:
	movq	_conf@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_9
## %bb.6:
	xorl	%edi, %edi
	callq	_assert
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_SOL_SOCKET,4,2                 ## @SOL_SOCKET
	.comm	_SO_REUSEADDR,4,2               ## @SO_REUSEADDR
	.comm	_IPPROTO_TCP,4,2                ## @IPPROTO_TCP
	.comm	_H2O_SOMAXCONN,4,2              ## @H2O_SOMAXCONN
	.comm	_conf,4,2                       ## @conf
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"failed to listen to %s port %s:%s: %s"

L_.str.2:                               ## @.str.2
	.asciz	"TCP"

L_.str.3:                               ## @.str.3
	.asciz	"UDP"

L_.str.4:                               ## @.str.4
	.asciz	"ANY"

	.comm	_errno,4,2                      ## @errno
	.comm	_AF_INET6,4,2                   ## @AF_INET6
	.comm	_IPPROTO_IPV6,4,2               ## @IPPROTO_IPV6
	.comm	_IPV6_V6ONLY,4,2                ## @IPV6_V6ONLY
	.comm	_TCP_DEFER_ACCEPT,4,2           ## @TCP_DEFER_ACCEPT
	.comm	_TCP_FASTOPEN,4,2               ## @TCP_FASTOPEN
	.comm	_stderr,4,2                     ## @stderr
	.no_dead_strip	_open_inet_listener
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function open_inet_listener
_open_inet_listener:                    ; @open_inet_listener
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x24, x7
	mov	x23, x6
	mov	x0, x4
	mov	x19, x3
	mov	x22, x2
	mov	x20, x1
	mov	x1, x5
	mov	x2, x6
	bl	_socket
Lloh0:
	adrp	x25, _IPPROTO_TCP@GOTPAGE
Lloh1:
	ldr	x25, [x25, _IPPROTO_TCP@GOTPAGEOFF]
	cmn	w0, #1
	b.eq	LBB0_4
; %bb.1:
	mov	x21, x0
	bl	_set_cloexec
	mov	w8, #1
	str	w8, [sp, #12]
Lloh2:
	adrp	x8, _SOL_SOCKET@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SOL_SOCKET@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _SO_REUSEADDR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SO_REUSEADDR@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	add	x3, sp, #12
	mov	x0, x21
	mov	w4, #4
	bl	_setsockopt
	cbnz	x0, LBB0_3
; %bb.2:
	ldr	w2, [x29, #16]
	mov	x0, x21
	mov	x1, x24
	bl	_bind
	cbz	x0, LBB0_6
LBB0_3:
	mov	x0, x21
	bl	_close
LBB0_4:
Lloh8:
	adrp	x8, l_.str.3@PAGE
Lloh9:
	add	x8, x8, l_.str.3@PAGEOFF
	ldr	w9, [x25]
Lloh10:
	adrp	x10, l_.str.2@PAGE
Lloh11:
	add	x10, x10, l_.str.2@PAGEOFF
	cmp	w9, w23
Lloh12:
	adrp	x9, l_.str.4@PAGE
Lloh13:
	add	x9, x9, l_.str.4@PAGEOFF
	csel	x21, x10, x8, eq
	cmp	x22, #0
	csel	x22, x9, x22, eq
Lloh14:
	adrp	x8, _errno@GOTPAGE
Lloh15:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_strerror
	mov	x6, x0
Lloh17:
	adrp	x2, l_.str.1@PAGE
Lloh18:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, #0
	mov	x1, x20
	mov	x3, x21
	mov	x4, x22
	mov	x5, x19
	bl	_h2o_configurator_errprintf
	mov	w21, #-1
LBB0_5:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_6:
	ldr	w8, [x25]
	cmp	w8, w23
	b.ne	LBB0_5
; %bb.7:
Lloh19:
	adrp	x8, _H2O_SOMAXCONN@GOTPAGE
Lloh20:
	ldr	x8, [x8, _H2O_SOMAXCONN@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_listen
	cbnz	x0, LBB0_3
; %bb.8:
Lloh22:
	adrp	x8, _conf@GOTPAGE
Lloh23:
	ldr	x8, [x8, _conf@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.9:
	mov	w0, #0
	bl	_assert
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_SOL_SOCKET,4,2                 ; @SOL_SOCKET
	.comm	_SO_REUSEADDR,4,2               ; @SO_REUSEADDR
	.comm	_IPPROTO_TCP,4,2                ; @IPPROTO_TCP
	.comm	_H2O_SOMAXCONN,4,2              ; @H2O_SOMAXCONN
	.comm	_conf,4,2                       ; @conf
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"failed to listen to %s port %s:%s: %s"

l_.str.2:                               ; @.str.2
	.asciz	"TCP"

l_.str.3:                               ; @.str.3
	.asciz	"UDP"

l_.str.4:                               ; @.str.4
	.asciz	"ANY"

	.comm	_errno,4,2                      ; @errno
	.comm	_AF_INET6,4,2                   ; @AF_INET6
	.comm	_IPPROTO_IPV6,4,2               ; @IPPROTO_IPV6
	.comm	_IPV6_V6ONLY,4,2                ; @IPV6_V6ONLY
	.comm	_TCP_DEFER_ACCEPT,4,2           ; @TCP_DEFER_ACCEPT
	.comm	_TCP_FASTOPEN,4,2               ; @TCP_FASTOPEN
	.comm	_stderr,4,2                     ; @stderr
	.no_dead_strip	_open_inet_listener
.subsections_via_symbols
