	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function huf_read
_huf_read:                              ## @huf_read
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	movl	(%rdi), %ecx
	testl	%ecx, %ecx
	jle	LBB0_1
## %bb.2:
	movq	8(%r12), %rdx
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rdx,%rbx), %ecx
	movl	$-1, %eax
	shll	%cl, %eax
	notl	%eax
	movslq	%eax, %rsi
	movq	%r15, %rdi
	callq	_bit_peek
	movq	8(%r12), %rdx
	cmpq	8(%rdx,%rbx), %rax
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%r13
	movslq	(%r12), %rcx
	addq	$24, %rbx
	cmpq	%rcx, %r13
	jl	LBB0_3
	jmp	LBB0_6
LBB0_1:
	xorl	%r13d, %r13d
	jmp	LBB0_6
LBB0_4:
	movl	(%r12), %ecx
LBB0_6:
	movq	$-1, %rax
	cmpl	%ecx, %r13d
	je	LBB0_9
## %bb.7:
	movq	8(%r12), %rax
	movl	%r13d, %ecx
	shlq	$3, %rcx
	leaq	(%rcx,%rcx,2), %rbx
	movl	(%rax,%rbx), %esi
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_bit_advance
	movq	8(%r12), %rax
	movq	16(%rax,%rbx), %rax
	cmpq	$2, %rax
	jb	LBB0_9
## %bb.8:
	decl	%eax
	movl	$1, %edx
	movl	%eax, %ecx
	shll	%cl, %edx
	movslq	%edx, %rbx
	leaq	-1(%rbx), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	movq	%r14, %rcx
	callq	_bit_read
	orq	%rbx, %rax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_huf_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function huf_read
_huf_read:                              ; @huf_read
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x2
	mov	x20, x1
	mov	x21, x0
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x23, #0
	mov	x22, #0
	ldr	x9, [x21, #8]
	mov	w24, #-1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x9, x23]
	lsl	w8, w24, w8
	mvn	w8, w8
	sxtw	x1, w8
	mov	x0, x20
	bl	_bit_peek
	ldr	x9, [x21, #8]
	add	x8, x9, x23
	ldr	x8, [x8, #8]
	cmp	x0, x8
	b.eq	LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x21]
	add	x23, x23, #24
	cmp	x22, x8
	b.lt	LBB0_2
	b	LBB0_5
LBB0_4:
	mov	w22, #0
LBB0_5:
	cmp	w22, w8
	b.ne	LBB0_8
LBB0_6:
	mov	x0, #-1
	b	LBB0_10
LBB0_7:
	ldr	w8, [x21]
	cmp	w22, w8
	b.eq	LBB0_6
LBB0_8:
	ldr	x8, [x21, #8]
	mov	w23, #24
	umull	x9, w22, w23
	ldr	w1, [x8, x9]
	mov	x0, x20
	mov	x2, x19
	bl	_bit_advance
	ldr	x8, [x21, #8]
	umaddl	x8, w22, w23, x8
	ldr	x0, [x8, #16]
	cmp	x0, #2
	b.lo	LBB0_10
; %bb.9:
	sub	w2, w0, #1
	mov	w8, #1
	lsl	w8, w8, w2
	sxtw	x21, w8
	sub	x1, x21, #1
	mov	x0, x20
	mov	x3, x19
	bl	_bit_read
	orr	x0, x0, x21
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_huf_read
.subsections_via_symbols
