	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function server_on_receive
_server_on_receive:                     ## @server_on_receive
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdi, %r12
	callq	_quicly_streambuf_ingress_receive
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_17
## %bb.1:
	movq	%r12, %rdi
	callq	_quicly_streambuf_ingress_get
	leaq	-48(%rbp), %rsi
	leaq	-36(%rbp), %rdx
	movl	%eax, %edi
	callq	_parse_request
	movl	%eax, %ebx
	leaq	4(%r12), %rdi
	callq	_quicly_recvstate_transfer_complete
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.4:
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	xorl	%edi, %edi
	callq	_QUICLY_ERROR_FROM_APPLICATION_ERROR_CODE
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_quicly_request_stop
LBB0_6:
	movq	-48(%rbp), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_7
LBB0_8:
	movq	-48(%rbp), %rdi
	leaq	L_.str.5(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_9
LBB0_10:
	movq	-48(%rbp), %rsi
	movl	-36(%rbp), %edx
	movq	%r12, %rdi
	callq	_send_sized_text
	testq	%rax, %rax
	jne	LBB0_16
## %bb.11:
	movq	-48(%rbp), %rdi
	callq	_validate_path
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movl	-36(%rbp), %esi
	movq	-48(%rbp), %rdx
	incq	%rdx
	leaq	L_.str.7(%rip), %rcx
	movq	%r12, %rdi
	callq	_send_file
	testq	%rax, %rax
	jne	LBB0_16
LBB0_13:
	movq	%r12, %rdi
	callq	_quicly_sendstate_is_open
	testl	%eax, %eax
	je	LBB0_17
## %bb.14:
	movl	-36(%rbp), %esi
	leaq	L_.str(%rip), %rcx
	movq	%r12, %rdi
	movl	$404, %edx                      ## imm = 0x194
	callq	_send_header
	leaq	L_.str.8(%rip), %rsi
	jmp	LBB0_15
LBB0_2:
	testl	%eax, %eax
	je	LBB0_17
## %bb.3:
	leaq	L_.str(%rip), %rcx
	movq	%r12, %rdi
	movl	$1, %esi
	movl	$500, %edx                      ## imm = 0x1F4
	callq	_send_header
	leaq	L_.str.1(%rip), %rsi
LBB0_15:
	movq	%r12, %rdi
	callq	_send_str
	jmp	LBB0_16
LBB0_7:
	movl	-36(%rbp), %esi
	leaq	L_.str.3(%rip), %rdx
	leaq	L_.str.4(%rip), %rcx
	movq	%r12, %rdi
	callq	_send_file
	testq	%rax, %rax
	jne	LBB0_16
	jmp	LBB0_8
LBB0_9:
	movl	-36(%rbp), %esi
	leaq	L_.str.6(%rip), %rdx
	leaq	L_.str.4(%rip), %rcx
	movq	%r12, %rdi
	callq	_send_file
	testq	%rax, %rax
	je	LBB0_10
LBB0_16:
	movq	%r12, %rdi
	callq	_quicly_streambuf_egress_shutdown
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_quicly_streambuf_ingress_shift
LBB0_17:
	movl	%r15d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"text/plain; charset=utf-8"

L_.str.1:                               ## @.str.1
	.asciz	"failed to parse HTTP request\n"

L_.str.2:                               ## @.str.2
	.asciz	"/logo.jpg"

L_.str.3:                               ## @.str.3
	.asciz	"assets/logo.jpg"

L_.str.4:                               ## @.str.4
	.asciz	"image/jpeg"

L_.str.5:                               ## @.str.5
	.asciz	"/main.jpg"

L_.str.6:                               ## @.str.6
	.asciz	"assets/main.jpg"

L_.str.7:                               ## @.str.7
	.asciz	"text/plain"

L_.str.8:                               ## @.str.8
	.asciz	"not found\n"

	.no_dead_strip	_server_on_receive
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function server_on_receive
_server_on_receive:                     ; @server_on_receive
	.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	x19, x3
	mov	x20, x0
	bl	_quicly_streambuf_ingress_receive
	mov	x21, x0
	cbnz	w0, LBB0_17
; %bb.1:
	mov	x0, x20
	bl	_quicly_streambuf_ingress_get
	add	x1, sp, #8
	add	x2, sp, #4
	bl	_parse_request
	mov	x22, x0
	add	x0, x20, #4
	bl	_quicly_recvstate_transfer_complete
	cbz	w22, LBB0_11
; %bb.2:
	cbnz	w0, LBB0_4
; %bb.3:
	bl	_QUICLY_ERROR_FROM_APPLICATION_ERROR_CODE
	mov	x1, x0
	mov	x0, x20
	bl	_quicly_request_stop
LBB0_4:
	ldr	x0, [sp, #8]
Lloh0:
	adrp	x1, l_.str.2@PAGE
Lloh1:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_14
LBB0_5:
	ldr	x0, [sp, #8]
Lloh2:
	adrp	x1, l_.str.5@PAGE
Lloh3:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_15
LBB0_6:
	ldr	x1, [sp, #8]
	ldr	w2, [sp, #4]
	mov	x0, x20
	bl	_send_sized_text
	cbnz	x0, LBB0_16
; %bb.7:
	ldr	x0, [sp, #8]
	bl	_validate_path
	cbz	x0, LBB0_9
; %bb.8:
	ldr	w1, [sp, #4]
	ldr	x8, [sp, #8]
	add	x2, x8, #1
Lloh4:
	adrp	x3, l_.str.7@PAGE
Lloh5:
	add	x3, x3, l_.str.7@PAGEOFF
	mov	x0, x20
	bl	_send_file
	cbnz	x0, LBB0_16
LBB0_9:
	mov	x0, x20
	bl	_quicly_sendstate_is_open
	cbz	w0, LBB0_17
; %bb.10:
	ldr	w1, [sp, #4]
Lloh6:
	adrp	x3, l_.str@PAGE
Lloh7:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x20
	mov	w2, #404
	bl	_send_header
Lloh8:
	adrp	x1, l_.str.8@PAGE
Lloh9:
	add	x1, x1, l_.str.8@PAGEOFF
	b	LBB0_13
LBB0_11:
	cbz	w0, LBB0_17
; %bb.12:
Lloh10:
	adrp	x3, l_.str@PAGE
Lloh11:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x20
	mov	w1, #1
	mov	w2, #500
	bl	_send_header
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_13:
	mov	x0, x20
	bl	_send_str
	b	LBB0_16
LBB0_14:
	ldr	w1, [sp, #4]
Lloh14:
	adrp	x2, l_.str.3@PAGE
Lloh15:
	add	x2, x2, l_.str.3@PAGEOFF
Lloh16:
	adrp	x3, l_.str.4@PAGE
Lloh17:
	add	x3, x3, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_send_file
	cbnz	x0, LBB0_16
	b	LBB0_5
LBB0_15:
	ldr	w1, [sp, #4]
Lloh18:
	adrp	x2, l_.str.6@PAGE
Lloh19:
	add	x2, x2, l_.str.6@PAGEOFF
Lloh20:
	adrp	x3, l_.str.4@PAGE
Lloh21:
	add	x3, x3, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_send_file
	cbz	x0, LBB0_6
LBB0_16:
	mov	x0, x20
	bl	_quicly_streambuf_egress_shutdown
	mov	x0, x20
	mov	x1, x19
	bl	_quicly_streambuf_ingress_shift
LBB0_17:
	mov	x0, x21
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"text/plain; charset=utf-8"

l_.str.1:                               ; @.str.1
	.asciz	"failed to parse HTTP request\n"

l_.str.2:                               ; @.str.2
	.asciz	"/logo.jpg"

l_.str.3:                               ; @.str.3
	.asciz	"assets/logo.jpg"

l_.str.4:                               ; @.str.4
	.asciz	"image/jpeg"

l_.str.5:                               ; @.str.5
	.asciz	"/main.jpg"

l_.str.6:                               ; @.str.6
	.asciz	"assets/main.jpg"

l_.str.7:                               ; @.str.7
	.asciz	"text/plain"

l_.str.8:                               ; @.str.8
	.asciz	"not found\n"

	.no_dead_strip	_server_on_receive
.subsections_via_symbols
