	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_h2o_hpack_decode_header        ## -- Begin function h2o_hpack_decode_header
	.p2align	4, 0x90
_h2o_hpack_decode_header:               ## @h2o_hpack_decode_header
	.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, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	(%r8), %rax
	cmpq	%r9, %rax
	jae	LBB0_27
## %bb.1:
	movq	%r9, %r13
	movq	%r8, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r14
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r15), %rax
	cmpq	%r13, %rax
	jae	LBB0_27
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_24 Depth 2
	movl	(%rax), %r12d
	cmpl	$128, %r12d
	jge	LBB0_3
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$64, %r12d
	jge	LBB0_12
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$31, %r12d
	jle	LBB0_15
## %bb.20:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	$5, %edx
	callq	_h2o_hpack_decode_int
	testq	%rax, %rax
	js	LBB0_27
## %bb.21:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpq	(%rbx), %rax
	jg	LBB0_27
## %bb.22:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, 8(%rbx)
	cmpq	$0, 16(%rbx)
	je	LBB0_26
## %bb.23:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%rax, 24(%rbx)
	jbe	LBB0_26
	.p2align	4, 0x90
LBB0_24:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %rdi
	callq	_header_table_evict_one
	cmpq	$0, 16(%rbx)
	je	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_24 Depth=2
	movq	24(%rbx), %rax
	cmpq	8(%rbx), %rax
	ja	LBB0_24
	jmp	LBB0_26
LBB0_3:
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	$7, %edx
	callq	_h2o_hpack_decode_int
	testq	%rax, %rax
	jle	LBB0_27
## %bb.4:
	movq	_HEADER_TABLE_OFFSET@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rax
	jge	LBB0_5
## %bb.28:
	movq	_h2o_hpack_static_table@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	shlq	$4, %rax
	leaq	(%rax,%rcx), %r15
	addq	$-16, %r15
	movq	-8(%rax,%rcx), %r13
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_42
LBB0_12:
	je	LBB0_29
## %bb.13:
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	$6, %edx
	jmp	LBB0_17
LBB0_15:
	testb	$15, %r12b
	je	LBB0_29
## %bb.16:
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	$4, %edx
LBB0_17:
	callq	_h2o_hpack_decode_int
	testq	%rax, %rax
	jle	LBB0_27
## %bb.18:
	cmpl	$64, %r12d
	setl	%dl
	movq	_HEADER_TABLE_OFFSET@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rax
	jge	LBB0_6
## %bb.19:
	movb	%dl, -41(%rbp)                  ## 1-byte Spill
	movq	_h2o_hpack_static_table@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	shlq	$4, %rax
	movq	-8(%rax,%rcx), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_34
LBB0_29:
	cmpl	$64, %r12d
	setl	-41(%rbp)                       ## 1-byte Folded Spill
	addq	$4, %rax
	movq	%rax, (%r15)
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	movl	$1, %ecx
	movq	16(%rbp), %r12
	movq	%r12, %r8
	callq	_decode_string
	movq	(%r12), %rdx
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_30
## %bb.32:
	testq	%rdx, %rdx
	jne	LBB0_34
## %bb.33:
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movl	8(%r12), %edi
	movq	(%r12), %rsi
	callq	_h2o_lookup_token
	testq	%rax, %rax
	cmovneq	%rax, %r12
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_34
LBB0_5:
	movb	$1, %dl
LBB0_6:
	subq	%rcx, %rax
	cmpq	16(%rbx), %rax
	jge	LBB0_27
## %bb.7:
	movb	%dl, -41(%rbp)                  ## 1-byte Spill
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_h2o_hpack_header_table_get
	movq	(%rax), %rdx
	movq	16(%rbp), %rcx
	movq	%rdx, (%rcx)
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	16(%rax), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_h2o_iovec_is_token
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_h2o_mem_link_shared
LBB0_9:
	cmpl	$128, %r12d
	jl	LBB0_34
## %bb.10:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %r15
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_h2o_mem_link_shared
	jmp	LBB0_36
LBB0_34:
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	xorl	%ecx, %ecx
	movq	16(%rbp), %r8
	callq	_decode_string
	testq	%rax, %rax
	je	LBB0_27
## %bb.35:
	movq	%rax, %r15
LBB0_36:
	cmpb	$0, -41(%rbp)                   ## 1-byte Folded Reload
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	jne	LBB0_42
## %bb.37:
	movq	(%r15), %rsi
	addq	(%r13), %rsi
	movq	_HEADER_TABLE_ENTRY_SIZE_OFFSET@GOTPCREL(%rip), %rax
	addq	(%rax), %rsi
	movq	_SIZE_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_header_table_add
	testq	%rax, %rax
	je	LBB0_42
## %bb.38:
	movq	%rax, %rbx
	movq	16(%rbp), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	movq	%r13, 16(%rbx)
	movq	%r13, %rdi
	callq	_h2o_iovec_is_token
	testl	%eax, %eax
	jne	LBB0_40
## %bb.39:
	movq	16(%rbx), %rdi
	callq	_h2o_mem_addref_shared
LBB0_40:
	movq	%r15, 8(%rbx)
	movq	%r15, %rdi
	callq	_value_is_part_of_static_table
	testl	%eax, %eax
	jne	LBB0_42
## %bb.41:
	movq	8(%rbx), %rdi
	callq	_h2o_mem_addref_shared
LBB0_42:
	movq	%r13, (%r12)
	movups	(%r15), %xmm0
	movups	%xmm0, (%r14)
	xorl	%eax, %eax
	movq	16(%rbp), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_45
## %bb.43:
	movq	_H2O_HTTP2_ERROR_INVALID_HEADER_CHAR@GOTPCREL(%rip), %rax
	jmp	LBB0_44
LBB0_30:
	movq	_h2o_hpack_err_found_upper_case_in_header_name@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdx
	je	LBB0_31
LBB0_27:
	movq	_H2O_HTTP2_ERROR_COMPRESSION@GOTPCREL(%rip), %rax
LBB0_44:
	movl	(%rax), %eax
LBB0_45:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_31:
	movq	_H2O_HTTP2_ERROR_PROTOCOL@GOTPCREL(%rip), %rax
	jmp	LBB0_44
	.cfi_endproc
                                        ## -- End function
	.comm	_H2O_HTTP2_ERROR_COMPRESSION,4,2 ## @H2O_HTTP2_ERROR_COMPRESSION
	.comm	_HEADER_TABLE_OFFSET,8,3        ## @HEADER_TABLE_OFFSET
	.comm	_h2o_hpack_static_table,8,3     ## @h2o_hpack_static_table
	.comm	_h2o_hpack_err_found_upper_case_in_header_name,8,3 ## @h2o_hpack_err_found_upper_case_in_header_name
	.comm	_H2O_HTTP2_ERROR_PROTOCOL,4,2   ## @H2O_HTTP2_ERROR_PROTOCOL
	.comm	_HEADER_TABLE_ENTRY_SIZE_OFFSET,8,3 ## @HEADER_TABLE_ENTRY_SIZE_OFFSET
	.comm	_SIZE_MAX,4,2                   ## @SIZE_MAX
	.comm	_H2O_HTTP2_ERROR_INVALID_HEADER_CHAR,4,2 ## @H2O_HTTP2_ERROR_INVALID_HEADER_CHAR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_h2o_hpack_decode_header        ; -- Begin function h2o_hpack_decode_header
	.p2align	2
_h2o_hpack_decode_header:               ; @h2o_hpack_decode_header
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	x8, [x4]
	cmp	x8, x5
	b.hs	LBB0_42
; %bb.1:
	mov	x19, x6
	mov	x23, x5
	mov	x25, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x24, x0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x25]
	cmp	x8, x23
	b.hs	LBB0_42
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	ldr	w28, [x8]
	cmp	w28, #128
	b.ge	LBB0_12
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w28, #64
	b.ge	LBB0_15
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w28, #31
	b.le	LBB0_17
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x25
	mov	x1, x23
	mov	w2, #5
	bl	_h2o_hpack_decode_int
	tbnz	x0, #63, LBB0_42
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x22]
	cmp	x0, x8
	b.gt	LBB0_42
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	str	x0, [x22, #8]
	ldr	x8, [x22, #16]
	cbz	x8, LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x22, #24]
	cmp	x8, x0
	b.ls	LBB0_2
LBB0_10:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x22
	bl	_header_table_evict_one
	ldr	x8, [x22, #16]
	cbz	x8, LBB0_2
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	ldr	x8, [x22, #8]
	ldr	x9, [x22, #24]
	cmp	x9, x8
	b.hi	LBB0_10
	b	LBB0_2
LBB0_12:
	mov	x0, x25
	mov	x1, x23
	mov	w2, #7
	bl	_h2o_hpack_decode_int
	cmp	x0, #0
	b.le	LBB0_42
; %bb.13:
Lloh0:
	adrp	x8, _HEADER_TABLE_OFFSET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HEADER_TABLE_OFFSET@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ge	LBB0_25
; %bb.14:
Lloh3:
	adrp	x8, _h2o_hpack_static_table@GOTPAGE
Lloh4:
	ldr	x8, [x8, _h2o_hpack_static_table@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	add	x8, x8, x0, lsl #4
	sub	x23, x8, #16
	ldur	x26, [x8, #-8]
	b	LBB0_41
LBB0_15:
	b.eq	LBB0_22
; %bb.16:
	mov	x0, x25
	mov	x1, x23
	mov	w2, #6
	b	LBB0_19
LBB0_17:
	tst	w28, #0xf
	b.eq	LBB0_22
; %bb.18:
	mov	x0, x25
	mov	x1, x23
	mov	w2, #4
LBB0_19:
	bl	_h2o_hpack_decode_int
	cmp	x0, #0
	b.le	LBB0_42
; %bb.20:
	cmp	w28, #64
	cset	w27, lt
Lloh6:
	adrp	x8, _HEADER_TABLE_OFFSET@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HEADER_TABLE_OFFSET@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ge	LBB0_26
; %bb.21:
Lloh9:
	adrp	x8, _h2o_hpack_static_table@GOTPAGE
Lloh10:
	ldr	x8, [x8, _h2o_hpack_static_table@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	add	x8, x8, x0, lsl #4
	ldur	x26, [x8, #-8]
	b	LBB0_34
LBB0_22:
	cmp	w28, #64
	cset	w27, lt
	add	x8, x8, #4
	str	x8, [x25]
	mov	x0, x24
	mov	x1, x25
	mov	x2, x23
	mov	w3, #1
	mov	x4, x19
	bl	_decode_string
	ldr	x8, [x19]
	cbz	x0, LBB0_31
; %bb.23:
	mov	x26, x0
	cbnz	x8, LBB0_34
; %bb.24:
	ldr	w0, [x26, #8]
	ldr	x1, [x26]
	bl	_h2o_lookup_token
	cmp	x0, #0
	csel	x26, x26, x0, eq
	b	LBB0_34
LBB0_25:
	mov	w27, #1
LBB0_26:
	ldr	x9, [x22, #16]
	sub	x1, x0, x8
	cmp	x1, x9
	b.ge	LBB0_42
; %bb.27:
	str	w27, [sp, #12]                  ; 4-byte Folded Spill
	mov	x0, x22
	bl	_h2o_hpack_header_table_get
	mov	x27, x0
	ldr	x8, [x0]
	str	x8, [x19]
	ldr	x26, [x0, #16]
	mov	x0, x26
	bl	_h2o_iovec_is_token
	cbnz	w0, LBB0_29
; %bb.28:
	mov	x0, x24
	mov	x1, x26
	bl	_h2o_mem_link_shared
LBB0_29:
	cmp	w28, #128
	b.lt	LBB0_33
; %bb.30:
	ldr	x23, [x27, #8]
	mov	x0, x24
	mov	x1, x23
	bl	_h2o_mem_link_shared
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	tbz	w8, #0, LBB0_36
	b	LBB0_41
LBB0_31:
Lloh12:
	adrp	x9, _h2o_hpack_err_found_upper_case_in_header_name@GOTPAGE
Lloh13:
	ldr	x9, [x9, _h2o_hpack_err_found_upper_case_in_header_name@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_42
; %bb.32:
Lloh15:
	adrp	x8, _H2O_HTTP2_ERROR_PROTOCOL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _H2O_HTTP2_ERROR_PROTOCOL@GOTPAGEOFF]
	b	LBB0_43
LBB0_33:
	ldr	w27, [sp, #12]                  ; 4-byte Folded Reload
LBB0_34:
	mov	x0, x24
	mov	x1, x25
	mov	x2, x23
	mov	w3, #0
	mov	x4, x19
	bl	_decode_string
	cbz	x0, LBB0_42
; %bb.35:
	mov	x23, x0
	tbnz	w27, #0, LBB0_41
LBB0_36:
	ldr	x8, [x26]
	ldr	x9, [x23]
Lloh17:
	adrp	x10, _HEADER_TABLE_ENTRY_SIZE_OFFSET@GOTPAGE
Lloh18:
	ldr	x10, [x10, _HEADER_TABLE_ENTRY_SIZE_OFFSET@GOTPAGEOFF]
Lloh19:
	ldr	x10, [x10]
	add	x8, x9, x8
	add	x1, x8, x10
Lloh20:
	adrp	x8, _SIZE_MAX@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SIZE_MAX@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	mov	x0, x22
	bl	_header_table_add
	cbz	x0, LBB0_41
; %bb.37:
	mov	x22, x0
	ldr	x8, [x19]
	str	x8, [x0]
	str	x26, [x0, #16]
	mov	x0, x26
	bl	_h2o_iovec_is_token
	cbnz	w0, LBB0_39
; %bb.38:
	ldr	x0, [x22, #16]
	bl	_h2o_mem_addref_shared
LBB0_39:
	str	x23, [x22, #8]
	mov	x0, x23
	bl	_value_is_part_of_static_table
	cbnz	w0, LBB0_41
; %bb.40:
	ldr	x0, [x22, #8]
	bl	_h2o_mem_addref_shared
LBB0_41:
	str	x26, [x21]
	ldr	q0, [x23]
	str	q0, [x20]
	ldr	x8, [x19]
Lloh23:
	adrp	x9, _H2O_HTTP2_ERROR_INVALID_HEADER_CHAR@GOTPAGE
Lloh24:
	ldr	x9, [x9, _H2O_HTTP2_ERROR_INVALID_HEADER_CHAR@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	cmp	x8, #0
	csel	w0, wzr, w9, eq
	b	LBB0_44
LBB0_42:
Lloh26:
	adrp	x8, _H2O_HTTP2_ERROR_COMPRESSION@GOTPAGE
Lloh27:
	ldr	x8, [x8, _H2O_HTTP2_ERROR_COMPRESSION@GOTPAGEOFF]
LBB0_43:
	ldr	w0, [x8]
LBB0_44:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_H2O_HTTP2_ERROR_COMPRESSION,4,2 ; @H2O_HTTP2_ERROR_COMPRESSION
	.comm	_HEADER_TABLE_OFFSET,8,3        ; @HEADER_TABLE_OFFSET
	.comm	_h2o_hpack_static_table,8,3     ; @h2o_hpack_static_table
	.comm	_h2o_hpack_err_found_upper_case_in_header_name,8,3 ; @h2o_hpack_err_found_upper_case_in_header_name
	.comm	_H2O_HTTP2_ERROR_PROTOCOL,4,2   ; @H2O_HTTP2_ERROR_PROTOCOL
	.comm	_HEADER_TABLE_ENTRY_SIZE_OFFSET,8,3 ; @HEADER_TABLE_ENTRY_SIZE_OFFSET
	.comm	_SIZE_MAX,4,2                   ; @SIZE_MAX
	.comm	_H2O_HTTP2_ERROR_INVALID_HEADER_CHAR,4,2 ; @H2O_HTTP2_ERROR_INVALID_HEADER_CHAR
.subsections_via_symbols
