	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function send_dir_listing
_send_dir_listing:                      ## @send_dir_listing
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movq	%rdi, %r13
	movq	%rsi, %rdi
	callq	_opendir
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	leaq	24(%r13), %r12
	movl	28(%r13), %esi
	movq	%r12, %rdi
	movq	%rax, %rdx
	callq	_build_dir_listing_html
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_closedir
	testq	%r15, %r15
	je	LBB0_3
## %bb.4:
	movl	(%r15), %esi
	movl	4(%r15), %edi
	callq	_h2o_iovec_init
	movl	%eax, -48(%rbp)
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_h2o_buffer_link_to_pool
	movl	$200, (%r13)
	leaq	L_.str.2(%rip), %rax
	movq	%rax, 8(%r13)
	leaq	16(%r13), %rbx
	movq	_H2O_TOKEN_CONTENT_TYPE@GOTPCREL(%rip), %rax
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movl	(%rax), %r14d
	leaq	L_.str.3(%rip), %rdi
	callq	_H2O_STRLIT
	xorl	%r15d, %r15d
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	xorl	%ecx, %ecx
	movl	%eax, %r8d
	callq	_h2o_add_header
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_5
## %bb.6:
	leaq	_send_dir_listing.generator(%rip), %rsi
	movq	%r13, %rdi
	callq	_h2o_start_response
	movq	_H2O_SEND_STATE_FINAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-48(%rbp), %rsi
	movq	%r13, %rdi
	movl	$1, %edx
	callq	_h2o_send
	jmp	LBB0_7
LBB0_1:
	movl	$-1, %r15d
	jmp	LBB0_7
LBB0_3:
	leaq	L_.str(%rip), %rsi
	leaq	L_.str.1(%rip), %rdx
	xorl	%r15d, %r15d
	movq	%r13, %rdi
	xorl	%ecx, %ecx
	callq	_h2o_send_error_503
	jmp	LBB0_7
LBB0_5:
	xorl	%r15d, %r15d
	movq	%r13, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_h2o_send_inline
LBB0_7:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_send_dir_listing.generator,16,3 ## @send_dir_listing.generator
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Service Unavailable"

L_.str.1:                               ## @.str.1
	.asciz	"please try again later"

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

	.comm	_H2O_TOKEN_CONTENT_TYPE,4,2     ## @H2O_TOKEN_CONTENT_TYPE
L_.str.3:                               ## @.str.3
	.asciz	"text/html; charset=utf-8"

	.comm	_H2O_SEND_STATE_FINAL,4,2       ## @H2O_SEND_STATE_FINAL
	.no_dead_strip	_send_dir_listing
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function send_dir_listing
_send_dir_listing:                      ; @send_dir_listing
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x3
	mov	x19, x0
	mov	x0, x1
	bl	_opendir
	cbz	x0, LBB0_4
; %bb.1:
	mov	x23, x0
	add	x21, x19, #24
	ldr	w1, [x19, #28]
	mov	x0, x21
	mov	x2, x23
	bl	_build_dir_listing_html
	mov	x22, x0
	mov	x0, x23
	bl	_closedir
	cbz	x22, LBB0_5
; %bb.2:
	ldp	w1, w0, [x22]
	bl	_h2o_iovec_init
	str	w0, [sp, #12]
	mov	x0, x22
	mov	x1, x21
	bl	_h2o_buffer_link_to_pool
	mov	w8, #200
Lloh0:
	adrp	x9, l_.str.2@PAGE
Lloh1:
	add	x9, x9, l_.str.2@PAGEOFF
	str	w8, [x19]
	str	x9, [x19, #8]
	add	x22, x19, #16
Lloh2:
	adrp	x8, _H2O_TOKEN_CONTENT_TYPE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _H2O_TOKEN_CONTENT_TYPE@GOTPAGEOFF]
Lloh4:
	ldr	w23, [x8]
Lloh5:
	adrp	x0, l_.str.3@PAGE
Lloh6:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_H2O_STRLIT
	mov	x4, x0
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	mov	x3, #0
	bl	_h2o_add_header
	cbz	w20, LBB0_6
; %bb.3:
Lloh7:
	adrp	x1, _send_dir_listing.generator@PAGE
Lloh8:
	add	x1, x1, _send_dir_listing.generator@PAGEOFF
	mov	x0, x19
	bl	_h2o_start_response
Lloh9:
	adrp	x8, _H2O_SEND_STATE_FINAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _H2O_SEND_STATE_FINAL@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	add	x1, sp, #12
	mov	x0, x19
	mov	w2, #1
	bl	_h2o_send
	b	LBB0_7
LBB0_4:
	mov	w0, #-1
	b	LBB0_8
LBB0_5:
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
Lloh14:
	adrp	x2, l_.str.1@PAGE
Lloh15:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	w3, #0
	bl	_h2o_send_error_503
	b	LBB0_7
LBB0_6:
	mov	x0, x19
	mov	x1, #0
	mov	w2, #0
	bl	_h2o_send_inline
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_send_dir_listing.generator,16,3 ; @send_dir_listing.generator
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Service Unavailable"

l_.str.1:                               ; @.str.1
	.asciz	"please try again later"

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

	.comm	_H2O_TOKEN_CONTENT_TYPE,4,2     ; @H2O_TOKEN_CONTENT_TYPE
l_.str.3:                               ; @.str.3
	.asciz	"text/html; charset=utf-8"

	.comm	_H2O_SEND_STATE_FINAL,4,2       ; @H2O_SEND_STATE_FINAL
	.no_dead_strip	_send_dir_listing
.subsections_via_symbols
