	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_buffered_input
_handle_buffered_input:                 ## @handle_buffered_input
	.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
	movq	%rsi, %r13
	movq	%rdi, %r12
	callq	_get_conn
	movq	%rax, %r15
	movq	56(%r12), %rdi
	callq	_quicly_recvstate_bytes_available
	movq	%rax, %r14
	movq	72(%r12), %rax
	xorl	%edi, %edi
	cmpq	(%rax), %r14
	setbe	%dil
	callq	_assert
	movq	72(%r12), %rax
	movq	8(%rax), %rax
	movq	%rax, -56(%rbp)
	leaq	(%rax,%r14,4), %rbx
	movq	56(%r12), %rdi
	callq	_quicly_stop_requested
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	%rbx, -56(%rbp)
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movb	$1, %al
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
LBB0_2:
	leaq	72(%r12), %r13
	movq	72(%r12), %rax
	subq	8(%rax), %rbx
	sarq	$2, %rbx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_h2o_buffer_consume
	movq	56(%r12), %rdi
	movq	%rbx, %rsi
	callq	_quicly_stream_sync_recvbuf
	movq	56(%r12), %rdi
	callq	_quicly_stop_requested
	xorl	%r14d, %r14d
	testq	%rax, %rax
	jne	LBB0_27
## %bb.3:
	movq	56(%r12), %rdi
	callq	_quicly_recvstate_transfer_complete
	testq	%rax, %rax
	je	LBB0_15
## %bb.4:
	cmpb	$0, -48(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_24
## %bb.5:
	movq	(%r13), %rax
	cmpq	$0, (%rax)
	jne	LBB0_8
## %bb.6:
	movq	64(%r12), %rax
	cmpq	_handle_input_expect_data@GOTPCREL(%rip), %rax
	je	LBB0_31
## %bb.7:
	cmpq	_handle_input_post_trailers@GOTPCREL(%rip), %rax
	je	LBB0_31
LBB0_8:
	movq	56(%r12), %rdi
	movq	_H2O_HTTP3_ERROR_REQUEST_INCOMPLETE@GOTPCREL(%rip), %rax
	jmp	LBB0_26
LBB0_9:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movb	$1, %al
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	testq	%r14, %r14
	je	LBB0_2
## %bb.10:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	leaq	-56(%rbp), %r15
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	movq	%r13, %rcx
	callq	*64(%r12)
	testl	%eax, %eax
	jne	LBB0_28
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	56(%r12), %rdi
	callq	_quicly_stop_requested
	testq	%rax, %rax
	jne	LBB0_30
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpq	%rbx, -56(%rbp)
	jne	LBB0_11
## %bb.14:
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_2
LBB0_15:
	cmpl	$130, (%r12)
	jne	LBB0_18
## %bb.16:
	movq	16(%r12), %rax
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	movq	(%rax), %rax
	movq	_H2O_HTTP3_REQUEST_BODY_MIN_BYTES_TO_BLOCK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_39
LBB0_18:
	cmpq	$0, 40(%r12)
	je	LBB0_27
## %bb.19:
	movq	16(%r12), %rax
	cmpq	$0, (%rax)
	je	LBB0_27
LBB0_20:
	addq	$8, %r12
	movq	%r12, %rdi
	callq	_h2o_linklist_is_linked
	testl	%eax, %eax
	jne	LBB0_23
## %bb.21:
	movq	%r15, %rdi
LBB0_22:
	movq	%r12, %rsi
	callq	_h2o_linklist_insert
LBB0_23:
	movq	%r15, %rdi
	callq	_request_run_delayed
	jmp	LBB0_27
LBB0_24:
	movq	_H2O_HTTP3_ERROR_INCOMPLETE@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpl	(%rax), %ecx
	sete	%dil
	callq	_assert
	movq	56(%r12), %rdi
LBB0_25:
	movq	_H2O_HTTP3_ERROR_GENERAL_PROTOCOL@GOTPCREL(%rip), %rax
LBB0_26:
	movl	(%rax), %esi
	callq	_quicly_reset_stream
	movq	_H2O_HTTP3_SERVER_STREAM_STATE_CLOSE_WAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_set_state
LBB0_27:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_28:
	movl	%eax, %r14d
	movq	_H2O_HTTP3_ERROR_INCOMPLETE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	jne	LBB0_27
## %bb.29:
	movq	-56(%rbp), %rbx
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	jmp	LBB0_2
LBB0_30:
	movq	%rbx, -56(%rbp)
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_2
LBB0_31:
	movq	24(%r12), %rax
	movq	_SIZE_MAX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_33
## %bb.32:
	movq	32(%r12), %rcx
	cmpq	%rcx, %rax
	jne	LBB0_40
LBB0_33:
	cmpq	$0, 40(%r12)
	jne	LBB0_20
## %bb.34:
	cmpl	$0, 48(%r12)
	jne	LBB0_27
## %bb.35:
	movl	(%r12), %eax
	movq	_H2O_HTTP3_SERVER_STREAM_STATE_SEND_HEADERS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jge	LBB0_27
## %bb.36:
	addl	$-128, %eax
	cmpl	$3, %eax
	jb	LBB0_38
## %bb.37:
	xorl	%edi, %edi
	callq	_assert
LBB0_38:
	movq	_H2O_HTTP3_SERVER_STREAM_STATE_REQ_PENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_set_state
	movq	%r15, %rdi
	addq	$8, %rdi
	addq	$8, %r12
	jmp	LBB0_22
LBB0_39:
	movl	$1, 4(%r12)
	movq	%r15, %rdi
	addq	$4, %rdi
	leaq	8(%r12), %rsi
	callq	_h2o_linklist_insert
	movq	_H2O_HTTP3_SERVER_STREAM_STATE_RECV_BODY_BLOCKED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_set_state
	movq	%r15, %rdi
	callq	_check_run_blocked
	jmp	LBB0_27
LBB0_40:
	movq	56(%r12), %rdi
	jle	LBB0_25
## %bb.41:
	movq	_H2O_HTTP3_ERROR_INCOMPLETE@GOTPCREL(%rip), %rax
	jmp	LBB0_26
	.cfi_endproc
                                        ## -- End function
	.comm	_H2O_HTTP3_ERROR_INCOMPLETE,4,2 ## @H2O_HTTP3_ERROR_INCOMPLETE
	.comm	_H2O_HTTP3_ERROR_GENERAL_PROTOCOL,4,2 ## @H2O_HTTP3_ERROR_GENERAL_PROTOCOL
	.comm	_H2O_HTTP3_SERVER_STREAM_STATE_CLOSE_WAIT,4,2 ## @H2O_HTTP3_SERVER_STREAM_STATE_CLOSE_WAIT
	.comm	_SIZE_MAX,8,3                   ## @SIZE_MAX
	.comm	_H2O_HTTP3_SERVER_STREAM_STATE_SEND_HEADERS,4,2 ## @H2O_HTTP3_SERVER_STREAM_STATE_SEND_HEADERS
	.comm	_H2O_HTTP3_SERVER_STREAM_STATE_REQ_PENDING,4,2 ## @H2O_HTTP3_SERVER_STREAM_STATE_REQ_PENDING
	.comm	_H2O_HTTP3_ERROR_REQUEST_INCOMPLETE,4,2 ## @H2O_HTTP3_ERROR_REQUEST_INCOMPLETE
	.comm	_H2O_HTTP3_REQUEST_BODY_MIN_BYTES_TO_BLOCK,8,3 ## @H2O_HTTP3_REQUEST_BODY_MIN_BYTES_TO_BLOCK
	.comm	_H2O_HTTP3_SERVER_STREAM_STATE_RECV_BODY_BLOCKED,4,2 ## @H2O_HTTP3_SERVER_STREAM_STATE_RECV_BODY_BLOCKED
	.no_dead_strip	_handle_buffered_input
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_buffered_input
_handle_buffered_input:                 ; @handle_buffered_input
	.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	x24, x1
	mov	x19, x0
	bl	_get_conn
	mov	x20, x0
	ldr	x0, [x19, #56]
	bl	_quicly_recvstate_bytes_available
	mov	x22, x0
	mov	x21, x19
	ldr	x8, [x21, #72]!
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w0, ls
	bl	_assert
	ldr	x8, [x21]
	ldr	x8, [x8, #8]
	str	x8, [sp, #8]
	add	x23, x8, x22, lsl #2
	ldr	x0, [x19, #56]
	bl	_quicly_stop_requested
	cbz	x0, LBB0_10
LBB0_1:
	mov	w22, #0
	str	x23, [sp, #8]
LBB0_2:
	mov	w24, #1
LBB0_3:
	ldr	x8, [x19, #72]
	ldr	x8, [x8, #8]
	sub	x8, x23, x8
	asr	x23, x8, #2
	mov	x0, x21
	mov	x1, x23
	bl	_h2o_buffer_consume
	ldr	x0, [x19, #56]
	mov	x1, x23
	bl	_quicly_stream_sync_recvbuf
	ldr	x0, [x19, #56]
	bl	_quicly_stop_requested
	cbnz	x0, LBB0_26
; %bb.4:
	ldr	x0, [x19, #56]
	bl	_quicly_recvstate_transfer_complete
	cbz	x0, LBB0_15
; %bb.5:
	tbz	w24, #0, LBB0_24
; %bb.6:
	ldr	x8, [x21]
	ldr	x8, [x8]
	cbnz	x8, LBB0_9
; %bb.7:
	ldr	x8, [x19, #64]
Lloh0:
	adrp	x9, _handle_input_expect_data@GOTPAGE
Lloh1:
	ldr	x9, [x9, _handle_input_expect_data@GOTPAGEOFF]
	cmp	x8, x9
	b.eq	LBB0_30
; %bb.8:
Lloh2:
	adrp	x9, _handle_input_post_trailers@GOTPAGE
Lloh3:
	ldr	x9, [x9, _handle_input_post_trailers@GOTPAGEOFF]
	cmp	x8, x9
	b.eq	LBB0_30
LBB0_9:
	ldr	x0, [x19, #56]
Lloh4:
	adrp	x8, _H2O_HTTP3_ERROR_REQUEST_INCOMPLETE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _H2O_HTTP3_ERROR_REQUEST_INCOMPLETE@GOTPAGEOFF]
	b	LBB0_25
LBB0_10:
	cbz	x22, LBB0_2
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #64]
	add	x1, sp, #8
	mov	x0, x19
	mov	x2, x23
	mov	x3, x24
	blr	x8
	cbnz	w0, LBB0_28
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x0, [x19, #56]
	bl	_quicly_stop_requested
	cbnz	x0, LBB0_1
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [sp, #8]
	cmp	x8, x23
	b.ne	LBB0_11
; %bb.14:
	mov	w22, #0
	b	LBB0_2
LBB0_15:
	ldr	w8, [x19]
	cmp	w8, #130
	b.ne	LBB0_18
; %bb.16:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_18
; %bb.17:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _H2O_HTTP3_REQUEST_BODY_MIN_BYTES_TO_BLOCK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _H2O_HTTP3_REQUEST_BODY_MIN_BYTES_TO_BLOCK@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_38
LBB0_18:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_26
; %bb.19:
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_26
LBB0_20:
	add	x19, x19, #8
	mov	x0, x19
	bl	_h2o_linklist_is_linked
	cbnz	w0, LBB0_23
; %bb.21:
	mov	x0, x20
	mov	x1, x19
LBB0_22:
	bl	_h2o_linklist_insert
LBB0_23:
	mov	x0, x20
	bl	_request_run_delayed
	b	LBB0_26
LBB0_24:
Lloh9:
	adrp	x8, _H2O_HTTP3_ERROR_INCOMPLETE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _H2O_HTTP3_ERROR_INCOMPLETE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w22, w8
	cset	w0, eq
	bl	_assert
	ldr	x0, [x19, #56]
Lloh12:
	adrp	x8, _H2O_HTTP3_ERROR_GENERAL_PROTOCOL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _H2O_HTTP3_ERROR_GENERAL_PROTOCOL@GOTPAGEOFF]
LBB0_25:
	ldr	w1, [x8]
	bl	_quicly_reset_stream
Lloh14:
	adrp	x8, _H2O_HTTP3_SERVER_STREAM_STATE_CLOSE_WAIT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _H2O_HTTP3_SERVER_STREAM_STATE_CLOSE_WAIT@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_set_state
LBB0_26:
	mov	w22, #0
LBB0_27:
	mov	x0, x22
	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
LBB0_28:
	mov	x22, x0
Lloh17:
	adrp	x8, _H2O_HTTP3_ERROR_INCOMPLETE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _H2O_HTTP3_ERROR_INCOMPLETE@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_27
; %bb.29:
	mov	w24, #0
	ldr	x23, [sp, #8]
	b	LBB0_3
LBB0_30:
	ldr	x8, [x19, #24]
Lloh20:
	adrp	x9, _SIZE_MAX@GOTPAGE
Lloh21:
	ldr	x9, [x9, _SIZE_MAX@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_32
; %bb.31:
	ldr	x9, [x19, #32]
	cmp	x8, x9
	b.ne	LBB0_39
LBB0_32:
	ldr	x8, [x19, #40]
	cbnz	x8, LBB0_20
; %bb.33:
	ldr	w8, [x19, #48]
	cbnz	w8, LBB0_26
; %bb.34:
	ldr	w8, [x19]
Lloh23:
	adrp	x9, _H2O_HTTP3_SERVER_STREAM_STATE_SEND_HEADERS@GOTPAGE
Lloh24:
	ldr	x9, [x9, _H2O_HTTP3_SERVER_STREAM_STATE_SEND_HEADERS@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ge	LBB0_26
; %bb.35:
	sub	w8, w8, #128
	cmp	w8, #3
	b.lo	LBB0_37
; %bb.36:
	mov	w0, #0
	bl	_assert
LBB0_37:
Lloh26:
	adrp	x8, _H2O_HTTP3_SERVER_STREAM_STATE_REQ_PENDING@GOTPAGE
Lloh27:
	ldr	x8, [x8, _H2O_HTTP3_SERVER_STREAM_STATE_REQ_PENDING@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_set_state
	add	x0, x20, #8
	add	x1, x19, #8
	b	LBB0_22
LBB0_38:
	mov	w8, #1
	str	w8, [x19, #4]
	add	x0, x20, #4
	add	x1, x19, #8
	bl	_h2o_linklist_insert
Lloh29:
	adrp	x8, _H2O_HTTP3_SERVER_STREAM_STATE_RECV_BODY_BLOCKED@GOTPAGE
Lloh30:
	ldr	x8, [x8, _H2O_HTTP3_SERVER_STREAM_STATE_RECV_BODY_BLOCKED@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_set_state
	mov	x0, x20
	bl	_check_run_blocked
	b	LBB0_26
LBB0_39:
Lloh32:
	adrp	x10, _H2O_HTTP3_ERROR_INCOMPLETE@GOTPAGE
Lloh33:
	ldr	x10, [x10, _H2O_HTTP3_ERROR_INCOMPLETE@GOTPAGEOFF]
	ldr	x0, [x19, #56]
Lloh34:
	adrp	x11, _H2O_HTTP3_ERROR_GENERAL_PROTOCOL@GOTPAGE
Lloh35:
	ldr	x11, [x11, _H2O_HTTP3_ERROR_GENERAL_PROTOCOL@GOTPAGEOFF]
	cmp	x9, x8
	csel	x8, x10, x11, lt
	b	LBB0_25
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_H2O_HTTP3_ERROR_INCOMPLETE,4,2 ; @H2O_HTTP3_ERROR_INCOMPLETE
	.comm	_H2O_HTTP3_ERROR_GENERAL_PROTOCOL,4,2 ; @H2O_HTTP3_ERROR_GENERAL_PROTOCOL
	.comm	_H2O_HTTP3_SERVER_STREAM_STATE_CLOSE_WAIT,4,2 ; @H2O_HTTP3_SERVER_STREAM_STATE_CLOSE_WAIT
	.comm	_SIZE_MAX,8,3                   ; @SIZE_MAX
	.comm	_H2O_HTTP3_SERVER_STREAM_STATE_SEND_HEADERS,4,2 ; @H2O_HTTP3_SERVER_STREAM_STATE_SEND_HEADERS
	.comm	_H2O_HTTP3_SERVER_STREAM_STATE_REQ_PENDING,4,2 ; @H2O_HTTP3_SERVER_STREAM_STATE_REQ_PENDING
	.comm	_H2O_HTTP3_ERROR_REQUEST_INCOMPLETE,4,2 ; @H2O_HTTP3_ERROR_REQUEST_INCOMPLETE
	.comm	_H2O_HTTP3_REQUEST_BODY_MIN_BYTES_TO_BLOCK,8,3 ; @H2O_HTTP3_REQUEST_BODY_MIN_BYTES_TO_BLOCK
	.comm	_H2O_HTTP3_SERVER_STREAM_STATE_RECV_BODY_BLOCKED,4,2 ; @H2O_HTTP3_SERVER_STREAM_STATE_RECV_BODY_BLOCKED
	.no_dead_strip	_handle_buffered_input
.subsections_via_symbols
