	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_listener
_create_listener:                       ## @create_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	$1, -20(%rbp)
	leaq	-32(%rbp), %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	movq	_AF_INET@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	movl	%eax, -24(%rbp)
	movl	$2130706433, %edi               ## imm = 0x7F000001
	callq	_htonl
	movl	%eax, -28(%rbp)
	movl	$7890, %edi                     ## imm = 0x1ED2
	callq	_htons
	movl	%eax, -32(%rbp)
	movl	(%rbx), %edi
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_socket
	movl	$-1, %r14d
	cmpl	$-1, %eax
	je	LBB0_5
## %bb.1:
	movl	%eax, %ebx
	movq	_SOL_SOCKET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SO_REUSEADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-20(%rbp), %rcx
	movl	%ebx, %edi
	movl	$4, %r8d
	callq	_setsockopt
	testq	%rax, %rax
	jne	LBB0_5
## %bb.2:
	leaq	-32(%rbp), %rsi
	movl	%ebx, %edi
	movl	$12, %edx
	callq	_bind
	testq	%rax, %rax
	jne	LBB0_5
## %bb.3:
	movq	_SOMAXCONN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_listen
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movq	_ctx@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_H2O_SOCKET_FLAG_DONT_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %esi
	callq	_h2o_evloop_socket_create
	movq	_on_accept@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_h2o_socket_read_start
	xorl	%r14d, %r14d
LBB0_5:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AF_INET,4,2                    ## @AF_INET
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
	.comm	_SOL_SOCKET,4,2                 ## @SOL_SOCKET
	.comm	_SO_REUSEADDR,4,2               ## @SO_REUSEADDR
	.comm	_SOMAXCONN,4,2                  ## @SOMAXCONN
	.comm	_ctx,4,2                        ## @ctx
	.comm	_H2O_SOCKET_FLAG_DONT_READ,4,2  ## @H2O_SOCKET_FLAG_DONT_READ
	.comm	_on_accept,4,2                  ## @on_accept
	.no_dead_strip	_create_listener
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_listener
_create_listener:                       ; @create_listener
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	w8, #1
	str	w8, [sp, #12]
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #12
	bl	_memset
Lloh0:
	adrp	x19, _AF_INET@GOTPAGE
Lloh1:
	ldr	x19, [x19, _AF_INET@GOTPAGEOFF]
	ldr	w8, [x19]
	str	w8, [sp, #24]
	mov	w0, #1
	movk	w0, #32512, lsl #16
	bl	_htonl
	str	w0, [sp, #20]
	mov	w0, #7890
	bl	_htons
	str	w0, [sp, #16]
	ldr	w0, [x19]
Lloh2:
	adrp	x8, _SOCK_STREAM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SOCK_STREAM@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_socket
	cmn	w0, #1
	b.eq	LBB0_5
; %bb.1:
	mov	x19, x0
Lloh5:
	adrp	x8, _SOL_SOCKET@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SOL_SOCKET@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _SO_REUSEADDR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SO_REUSEADDR@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	add	x3, sp, #12
	mov	w4, #4
	bl	_setsockopt
	cbnz	x0, LBB0_4
; %bb.2:
	add	x1, sp, #16
	mov	x0, x19
	mov	w2, #12
	bl	_bind
	cbnz	x0, LBB0_4
; %bb.3:
Lloh11:
	adrp	x8, _SOMAXCONN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SOMAXCONN@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_listen
	cbz	x0, LBB0_6
LBB0_4:
	mov	w0, #-1
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_6:
Lloh14:
	adrp	x8, _ctx@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ctx@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x8, _H2O_SOCKET_FLAG_DONT_READ@GOTPAGE
Lloh18:
	ldr	x8, [x8, _H2O_SOCKET_FLAG_DONT_READ@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	mov	x1, x19
	bl	_h2o_evloop_socket_create
Lloh20:
	adrp	x8, _on_accept@GOTPAGE
Lloh21:
	ldr	x8, [x8, _on_accept@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	bl	_h2o_socket_read_start
	mov	w0, #0
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_AF_INET,4,2                    ; @AF_INET
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
	.comm	_SOL_SOCKET,4,2                 ; @SOL_SOCKET
	.comm	_SO_REUSEADDR,4,2               ; @SO_REUSEADDR
	.comm	_SOMAXCONN,4,2                  ; @SOMAXCONN
	.comm	_ctx,4,2                        ; @ctx
	.comm	_H2O_SOCKET_FLAG_DONT_READ,4,2  ; @H2O_SOCKET_FLAG_DONT_READ
	.comm	_on_accept,4,2                  ; @on_accept
	.no_dead_strip	_create_listener
.subsections_via_symbols
