	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_h2o_hpack_encode_huffman       ## -- Begin function h2o_hpack_encode_huffman
	.p2align	4, 0x90
_h2o_hpack_encode_huffman:              ## @h2o_hpack_encode_huffman
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	leaq	(%rdi,%rdx,4), %rcx
	testq	%rdx, %rdx
	je	LBB0_1
## %bb.4:
	leaq	(%rsi,%rdx,4), %r8
	movq	_huff_sym_table@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	movl	$40, %edx
	movq	%rdi, %rax
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	movslq	(%rsi), %r10
	addq	$4, %rsi
	shlq	$4, %r10
	subl	(%r9,%r10), %edx
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	$32, %edx
	jg	LBB0_5
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	addq	$4, %rax
	addl	$8, %edx
	cmpq	%rcx, %rax
	jne	LBB0_7
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=1
	cmpq	%r8, %rsi
	jne	LBB0_6
	jmp	LBB0_2
LBB0_1:
	movl	$40, %edx
	movq	%rdi, %rax
LBB0_2:
	xorl	%esi, %esi
	cmpl	$40, %edx
	setne	%sil
	leaq	(%rax,%rsi,4), %rax
	cmpq	%rcx, %rax
	je	LBB0_9
## %bb.3:
	subq	%rdi, %rax
	sarq	$2, %rax
	popq	%rbp
	retq
LBB0_9:
	movq	_SIZE_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_huff_sym_table,8,3             ## @huff_sym_table
	.comm	_SIZE_MAX,8,3                   ## @SIZE_MAX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_h2o_hpack_encode_huffman       ; -- Begin function h2o_hpack_encode_huffman
	.p2align	2
_h2o_hpack_encode_huffman:              ; @h2o_hpack_encode_huffman
	.cfi_startproc
; %bb.0:
	lsl	x9, x2, #2
	add	x8, x0, x9
	cbz	x2, LBB0_6
; %bb.1:
	add	x10, x1, x9
Lloh0:
	adrp	x9, _huff_sym_table@GOTPAGE
Lloh1:
	ldr	x9, [x9, _huff_sym_table@GOTPAGEOFF]
Lloh2:
	ldr	x12, [x9]
	mov	w9, #40
	mov	x11, x0
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_3 Depth 2
	ldrsw	x13, [x1], #4
	lsl	x13, x13, #4
	ldr	w13, [x12, x13]
	sub	w9, w9, w13
LBB0_3:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	w9, #32
	b.gt	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=2
	add	x11, x11, #4
	add	w9, w9, #8
	cmp	x11, x8
	b.ne	LBB0_3
	b	LBB0_9
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	cmp	x1, x10
	b.ne	LBB0_2
	b	LBB0_7
LBB0_6:
	mov	w9, #40
	mov	x11, x0
LBB0_7:
	cmp	w9, #40
	cset	w9, ne
	add	x9, x11, w9, uxtw #2
	cmp	x9, x8
	b.eq	LBB0_9
; %bb.8:
	sub	x8, x9, x0
	asr	x0, x8, #2
	ret
LBB0_9:
Lloh3:
	adrp	x8, _SIZE_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SIZE_MAX@GOTPAGEOFF]
Lloh5:
	ldr	x0, [x8]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_huff_sym_table,8,3             ; @huff_sym_table
	.comm	_SIZE_MAX,8,3                   ; @SIZE_MAX
.subsections_via_symbols
