	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function expect_continuation_of_headers
_expect_continuation_of_headers:        ## @expect_continuation_of_headers
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdi, %r14
	movq	_H2O_HTTP2_SETTINGS_HOST_MAX_FRAME_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-72(%rbp), %rdi
	movq	%r15, %r8
	callq	_h2o_http2_decode_frame
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_15
## %bb.1:
	movq	-72(%rbp), %rax
	movq	_H2O_HTTP2_FRAME_TYPE_CONTINUATION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.4:
	movl	-48(%rbp), %esi
	movq	%r14, %rdi
	callq	_h2o_http2_conn_get_stream
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	%rax, %r12
	movq	(%rax), %rax
	movq	_H2O_HTTP2_STREAM_STATE_RECV_HEADERS@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	je	LBB0_8
## %bb.6:
	movq	_H2O_HTTP2_STREAM_STATE_RECV_BODY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_8
LBB0_7:
	leaq	L_.str.1(%rip), %rax
	jmp	LBB0_3
LBB0_2:
	leaq	L_.str(%rip), %rax
LBB0_3:
	movq	%rax, (%r15)
	movq	_H2O_HTTP2_ERROR_PROTOCOL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_15:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	(%r14), %rax
	movq	-64(%rbp), %rsi
	movq	(%rax), %rax
	addq	%rsi, %rax
	movq	_H2O_MAX_REQLEN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_9
## %bb.14:
	movl	8(%r12), %esi
	movq	_H2O_HTTP2_ERROR_REFUSED_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_stream_send_error
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_h2o_http2_stream_reset
	jmp	LBB0_15
LBB0_9:
	movq	%r14, %rdi
	callq	_h2o_buffer_reserve
	movq	(%r14), %rax
	movq	(%rax), %rdi
	addq	8(%rax), %rdi
	movl	-52(%rbp), %esi
	movq	-64(%rbp), %rdx
	callq	_memcpy
	movq	(%r14), %rax
	movq	(%rax), %rcx
	addq	-64(%rbp), %rcx
	movq	%rcx, (%rax)
	movq	_H2O_HTTP2_FRAME_FLAG_END_HEADERS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, -56(%rbp)
	je	LBB0_15
## %bb.10:
	movq	_expect_default@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, 8(%r14)
	movq	(%r12), %rsi
	movq	8(%rax), %rdx
	cmpq	(%r13), %rsi
	jne	LBB0_12
## %bb.11:
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%r15, %r8
	callq	_handle_incoming_request
	jmp	LBB0_13
LBB0_12:
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%r15, %r8
	callq	_handle_trailing_headers
LBB0_13:
	testl	%eax, %eax
	cmovnel	%eax, %ebx
	movq	%r14, %rdi
	callq	_h2o_buffer_dispose
	movq	$0, (%r14)
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_H2O_HTTP2_SETTINGS_HOST_MAX_FRAME_SIZE,4,2 ## @H2O_HTTP2_SETTINGS_HOST_MAX_FRAME_SIZE
	.comm	_H2O_HTTP2_FRAME_TYPE_CONTINUATION,8,3 ## @H2O_HTTP2_FRAME_TYPE_CONTINUATION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"expected CONTINUATION frame"

	.comm	_H2O_HTTP2_ERROR_PROTOCOL,4,2   ## @H2O_HTTP2_ERROR_PROTOCOL
	.comm	_H2O_HTTP2_STREAM_STATE_RECV_HEADERS,8,3 ## @H2O_HTTP2_STREAM_STATE_RECV_HEADERS
	.comm	_H2O_HTTP2_STREAM_STATE_RECV_BODY,8,3 ## @H2O_HTTP2_STREAM_STATE_RECV_BODY
L_.str.1:                               ## @.str.1
	.asciz	"unexpected stream id in CONTINUATION frame"

	.comm	_H2O_MAX_REQLEN,8,3             ## @H2O_MAX_REQLEN
	.comm	_H2O_HTTP2_FRAME_FLAG_END_HEADERS,4,2 ## @H2O_HTTP2_FRAME_FLAG_END_HEADERS
	.comm	_expect_default,4,2             ## @expect_default
	.comm	_H2O_HTTP2_ERROR_REFUSED_STREAM,4,2 ## @H2O_HTTP2_ERROR_REFUSED_STREAM
	.no_dead_strip	_expect_continuation_of_headers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function expect_continuation_of_headers
_expect_continuation_of_headers:        ; @expect_continuation_of_headers
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x21, x3
	mov	x20, x0
Lloh0:
	adrp	x8, _H2O_HTTP2_SETTINGS_HOST_MAX_FRAME_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _H2O_HTTP2_SETTINGS_HOST_MAX_FRAME_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	x0, sp
	mov	x4, x21
	bl	_h2o_http2_decode_frame
	mov	x19, x0
	tbnz	w0, #31, LBB0_9
; %bb.1:
	ldr	x8, [sp]
Lloh3:
	adrp	x9, _H2O_HTTP2_FRAME_TYPE_CONTINUATION@GOTPAGE
Lloh4:
	ldr	x9, [x9, _H2O_HTTP2_FRAME_TYPE_CONTINUATION@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.2:
	ldr	w1, [sp, #24]
	mov	x0, x20
	bl	_h2o_http2_conn_get_stream
	cbz	x0, LBB0_7
; %bb.3:
	mov	x22, x0
	ldr	x8, [x0]
Lloh6:
	adrp	x23, _H2O_HTTP2_STREAM_STATE_RECV_HEADERS@GOTPAGE
Lloh7:
	ldr	x23, [x23, _H2O_HTTP2_STREAM_STATE_RECV_HEADERS@GOTPAGEOFF]
	ldr	x9, [x23]
Lloh8:
	adrp	x10, _H2O_HTTP2_STREAM_STATE_RECV_BODY@GOTPAGE
Lloh9:
	ldr	x10, [x10, _H2O_HTTP2_STREAM_STATE_RECV_BODY@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_7
; %bb.4:
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	x1, [sp, #8]
Lloh11:
	adrp	x9, _H2O_MAX_REQLEN@GOTPAGE
Lloh12:
	ldr	x9, [x9, _H2O_MAX_REQLEN@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	add	x8, x1, x8
	cmp	x8, x9
	b.le	LBB0_10
; %bb.5:
	ldr	w1, [x22, #8]
Lloh14:
	adrp	x8, _H2O_HTTP2_ERROR_REFUSED_STREAM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _H2O_HTTP2_ERROR_REFUSED_STREAM@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_stream_send_error
	mov	x0, x20
	mov	x1, x22
	bl	_h2o_http2_stream_reset
	b	LBB0_9
LBB0_6:
Lloh17:
	adrp	x8, l_.str@PAGE
Lloh18:
	add	x8, x8, l_.str@PAGEOFF
	b	LBB0_8
LBB0_7:
Lloh19:
	adrp	x8, l_.str.1@PAGE
Lloh20:
	add	x8, x8, l_.str.1@PAGEOFF
LBB0_8:
	str	x8, [x21]
Lloh21:
	adrp	x8, _H2O_HTTP2_ERROR_PROTOCOL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _H2O_HTTP2_ERROR_PROTOCOL@GOTPAGEOFF]
Lloh23:
	ldr	w19, [x8]
LBB0_9:
	mov	x0, x19
	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
	add	sp, sp, #96
	ret
LBB0_10:
	mov	x0, x20
	bl	_h2o_buffer_reserve
	ldr	x8, [x20]
	ldp	x8, x9, [x8]
	add	x0, x8, x9
	ldr	w1, [sp, #20]
	ldr	x2, [sp, #8]
	bl	_memcpy
	ldr	x9, [sp, #8]
	ldr	x8, [x20]
	ldr	x10, [x8]
	add	x3, x10, x9
	str	x3, [x8]
	ldr	w9, [sp, #16]
Lloh24:
	adrp	x10, _H2O_HTTP2_FRAME_FLAG_END_HEADERS@GOTPAGE
Lloh25:
	ldr	x10, [x10, _H2O_HTTP2_FRAME_FLAG_END_HEADERS@GOTPAGEOFF]
Lloh26:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_9
; %bb.11:
Lloh27:
	adrp	x9, _expect_default@GOTPAGE
Lloh28:
	ldr	x9, [x9, _expect_default@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	str	w9, [x20, #8]
	ldr	x9, [x22]
	ldr	x10, [x23]
	ldr	x2, [x8, #8]
	mov	x0, x20
	mov	x1, x22
	mov	x4, x21
	cmp	x9, x10
	b.ne	LBB0_13
; %bb.12:
	bl	_handle_incoming_request
	b	LBB0_14
LBB0_13:
	bl	_handle_trailing_headers
LBB0_14:
	cmp	w0, #0
	csel	w19, w19, w0, eq
	mov	x0, x20
	bl	_h2o_buffer_dispose
	str	xzr, [x20]
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_H2O_HTTP2_SETTINGS_HOST_MAX_FRAME_SIZE,4,2 ; @H2O_HTTP2_SETTINGS_HOST_MAX_FRAME_SIZE
	.comm	_H2O_HTTP2_FRAME_TYPE_CONTINUATION,8,3 ; @H2O_HTTP2_FRAME_TYPE_CONTINUATION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"expected CONTINUATION frame"

	.comm	_H2O_HTTP2_ERROR_PROTOCOL,4,2   ; @H2O_HTTP2_ERROR_PROTOCOL
	.comm	_H2O_HTTP2_STREAM_STATE_RECV_HEADERS,8,3 ; @H2O_HTTP2_STREAM_STATE_RECV_HEADERS
	.comm	_H2O_HTTP2_STREAM_STATE_RECV_BODY,8,3 ; @H2O_HTTP2_STREAM_STATE_RECV_BODY
l_.str.1:                               ; @.str.1
	.asciz	"unexpected stream id in CONTINUATION frame"

	.comm	_H2O_MAX_REQLEN,8,3             ; @H2O_MAX_REQLEN
	.comm	_H2O_HTTP2_FRAME_FLAG_END_HEADERS,4,2 ; @H2O_HTTP2_FRAME_FLAG_END_HEADERS
	.comm	_expect_default,4,2             ; @expect_default
	.comm	_H2O_HTTP2_ERROR_REFUSED_STREAM,4,2 ; @H2O_HTTP2_ERROR_REFUSED_STREAM
	.no_dead_strip	_expect_continuation_of_headers
.subsections_via_symbols
