	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_h2o_hpack_decode_huffman       ## -- Begin function h2o_hpack_decode_huffman
	.p2align	4, 0x90
_h2o_hpack_decode_huffman:              ## @h2o_hpack_decode_huffman
	.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
	movl	$0, -56(%rbp)
	movl	$0, -44(%rbp)
	movl	$1, -48(%rbp)
	movq	%rdi, %rax
	testq	%rdx, %rdx
	jle	LBB0_7
## %bb.1:
	movq	%rsi, %rbx
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	leaq	(%rsi,%rdx,4), %r12
	leaq	-56(%rbp), %r13
	leaq	-48(%rbp), %r14
	leaq	-44(%rbp), %r15
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rax
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %esi
	sarl	$4, %esi
	movq	%rax, %rdi
	movq	%r13, %rdx
	movq	%r14, %rcx
	movq	%r15, %r8
	callq	_huffdecode4
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%rbx), %esi
	andl	$15, %esi
	movq	%rax, %rdi
	movq	%r13, %rdx
	movq	%r14, %rcx
	movq	%r15, %r8
	callq	_huffdecode4
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_4 Depth=1
	addq	$4, %rbx
	cmpq	%r12, %rbx
	jb	LBB0_4
## %bb.6:
	cmpl	$0, -48(%rbp)
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	je	LBB0_5
LBB0_7:
	testl	%ecx, %ecx
	je	LBB0_14
## %bb.8:
	cmpq	%rdi, %rax
	je	LBB0_5
## %bb.9:
	movl	-44(%rbp), %ecx
	movq	_NGHTTP2_HUFF_INVALID_FOR_HEADER_NAME@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_17
## %bb.10:
	cmpb	$58, (%rdi)
	je	LBB0_17
## %bb.11:
	movq	_NGHTTP2_HUFF_UPPER_CASE_CHAR@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_12
## %bb.13:
	movq	_h2o_hpack_err_found_upper_case_in_header_name@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r8)
LBB0_5:
	movq	_SIZE_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_18
LBB0_14:
	movq	_NGHTTP2_HUFF_INVALID_FOR_HEADER_VALUE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, -44(%rbp)
	je	LBB0_17
## %bb.15:
	movq	_h2o_hpack_soft_err_found_invalid_char_in_header_value@GOTPCREL(%rip), %rcx
LBB0_16:
	movq	(%rcx), %rcx
	movq	%rcx, (%r8)
LBB0_17:
	subq	%rdi, %rax
LBB0_18:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	_h2o_hpack_soft_err_found_invalid_char_in_header_name@GOTPCREL(%rip), %rcx
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_SIZE_MAX,8,3                   ## @SIZE_MAX
	.comm	_NGHTTP2_HUFF_INVALID_FOR_HEADER_NAME,4,2 ## @NGHTTP2_HUFF_INVALID_FOR_HEADER_NAME
	.comm	_NGHTTP2_HUFF_UPPER_CASE_CHAR,4,2 ## @NGHTTP2_HUFF_UPPER_CASE_CHAR
	.comm	_h2o_hpack_err_found_upper_case_in_header_name,8,3 ## @h2o_hpack_err_found_upper_case_in_header_name
	.comm	_h2o_hpack_soft_err_found_invalid_char_in_header_name,8,3 ## @h2o_hpack_soft_err_found_invalid_char_in_header_name
	.comm	_NGHTTP2_HUFF_INVALID_FOR_HEADER_VALUE,4,2 ## @NGHTTP2_HUFF_INVALID_FOR_HEADER_VALUE
	.comm	_h2o_hpack_soft_err_found_invalid_char_in_header_value,8,3 ## @h2o_hpack_soft_err_found_invalid_char_in_header_value
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_h2o_hpack_decode_huffman       ; -- Begin function h2o_hpack_decode_huffman
	.p2align	2
_h2o_hpack_decode_huffman:              ; @h2o_hpack_decode_huffman
	.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	x19, x4
	mov	x21, x3
	mov	x20, x0
	str	xzr, [sp, #8]
	mov	w8, #1
	str	w8, [sp, #4]
	cmp	x2, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x22, x1
	add	x23, x1, x2, lsl #2
	mov	x0, x20
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x22]
	asr	w1, w8, #4
	add	x2, sp, #12
	add	x3, sp, #4
	add	x4, sp, #8
	bl	_huffdecode4
	cbz	x0, LBB0_12
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x22]
	and	w1, w8, #0xf
	add	x2, sp, #12
	add	x3, sp, #4
	add	x4, sp, #8
	bl	_huffdecode4
	cbz	x0, LBB0_12
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x22, x22, #4
	cmp	x22, x23
	b.lo	LBB0_2
; %bb.5:
	ldr	w8, [sp, #4]
	cbz	w8, LBB0_12
LBB0_6:
	cbz	w21, LBB0_13
; %bb.7:
	cmp	x0, x20
	b.eq	LBB0_12
; %bb.8:
	ldr	w8, [sp, #8]
Lloh0:
	adrp	x9, _NGHTTP2_HUFF_INVALID_FOR_HEADER_NAME@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NGHTTP2_HUFF_INVALID_FOR_HEADER_NAME@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_16
; %bb.9:
	ldrb	w9, [x20]
	cmp	w9, #58
	b.eq	LBB0_16
; %bb.10:
Lloh3:
	adrp	x9, _NGHTTP2_HUFF_UPPER_CASE_CHAR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NGHTTP2_HUFF_UPPER_CASE_CHAR@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_18
; %bb.11:
Lloh6:
	adrp	x8, _h2o_hpack_err_found_upper_case_in_header_name@GOTPAGE
Lloh7:
	ldr	x8, [x8, _h2o_hpack_err_found_upper_case_in_header_name@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	str	x8, [x19]
LBB0_12:
Lloh9:
	adrp	x8, _SIZE_MAX@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SIZE_MAX@GOTPAGEOFF]
Lloh11:
	ldr	x0, [x8]
	b	LBB0_17
LBB0_13:
	ldr	w8, [sp, #8]
Lloh12:
	adrp	x9, _NGHTTP2_HUFF_INVALID_FOR_HEADER_VALUE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _NGHTTP2_HUFF_INVALID_FOR_HEADER_VALUE@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_16
; %bb.14:
Lloh15:
	adrp	x8, _h2o_hpack_soft_err_found_invalid_char_in_header_value@GOTPAGE
Lloh16:
	ldr	x8, [x8, _h2o_hpack_soft_err_found_invalid_char_in_header_value@GOTPAGEOFF]
LBB0_15:
	ldr	x8, [x8]
	str	x8, [x19]
LBB0_16:
	sub	x0, x0, x20
LBB0_17:
	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_18:
Lloh17:
	adrp	x8, _h2o_hpack_soft_err_found_invalid_char_in_header_name@GOTPAGE
Lloh18:
	ldr	x8, [x8, _h2o_hpack_soft_err_found_invalid_char_in_header_name@GOTPAGEOFF]
	b	LBB0_15
	.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 AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_SIZE_MAX,8,3                   ; @SIZE_MAX
	.comm	_NGHTTP2_HUFF_INVALID_FOR_HEADER_NAME,4,2 ; @NGHTTP2_HUFF_INVALID_FOR_HEADER_NAME
	.comm	_NGHTTP2_HUFF_UPPER_CASE_CHAR,4,2 ; @NGHTTP2_HUFF_UPPER_CASE_CHAR
	.comm	_h2o_hpack_err_found_upper_case_in_header_name,8,3 ; @h2o_hpack_err_found_upper_case_in_header_name
	.comm	_h2o_hpack_soft_err_found_invalid_char_in_header_name,8,3 ; @h2o_hpack_soft_err_found_invalid_char_in_header_name
	.comm	_NGHTTP2_HUFF_INVALID_FOR_HEADER_VALUE,4,2 ; @NGHTTP2_HUFF_INVALID_FOR_HEADER_VALUE
	.comm	_h2o_hpack_soft_err_found_invalid_char_in_header_value,8,3 ; @h2o_hpack_soft_err_found_invalid_char_in_header_value
.subsections_via_symbols
