	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function lzx_read_bitlen
LCPI0_0:
	.quad	8                               ## 0x8
	.quad	8                               ## 0x8
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_lzx_read_bitlen:                       ## @lzx_read_bitlen
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %r13
	movl	(%r13), %r10d
	testl	%r10d, %r10d
	je	LBB0_48
## %bb.1:
	testl	%r15d, %r15d
	js	LBB0_49
LBB0_2:
	movl	$1, %eax
	cmpl	%r15d, %r10d
	jge	LBB0_52
## %bb.3:
	leaq	24(%r13), %r12
	leaq	8(%r13), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_8
LBB0_4:                                 ##   in Loop: Header=BB0_8 Depth=1
	movl	%r14d, %r10d
LBB0_5:                                 ##   in Loop: Header=BB0_8 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movslq	%edx, %rcx
	addl	%r9d, (%rax,%rcx,4)
LBB0_6:                                 ##   in Loop: Header=BB0_8 Depth=1
	movl	-44(%rbp), %r15d                ## 4-byte Reload
LBB0_7:                                 ##   in Loop: Header=BB0_8 Depth=1
	cmpl	%r15d, %r10d
	jge	LBB0_51
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_32 Depth 2
                                        ##     Child Loop BB0_34 Depth 2
                                        ##     Child Loop BB0_37 Depth 2
                                        ##     Child Loop BB0_41 Depth 2
                                        ##     Child Loop BB0_44 Depth 2
                                        ##     Child Loop BB0_47 Depth 2
	movq	%r10, %r14
	movl	%r10d, (%r13)
	movl	8(%r13), %edx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_lzx_br_read_ahead
	testl	%eax, %eax
	je	LBB0_50
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_lzx_br_bits
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_lzx_decode_huffman
	cmpl	$19, %eax
	je	LBB0_17
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	%eax, %ebx
	cmpl	$18, %eax
	je	LBB0_24
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpl	$17, %ebx
	jne	LBB0_27
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	16(%r13), %rax
	movl	68(%rax), %edx
	addl	$4, %edx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_lzx_br_read_ahead
	testl	%eax, %eax
	je	LBB0_50
## %bb.13:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	16(%r13), %rax
	movl	68(%rax), %esi
	movq	%r12, %rdi
	callq	_lzx_br_consume
	movq	%r12, %rdi
	movl	$4, %esi
	callq	_lzx_br_bits
	movl	%eax, %ebx
	movq	%r14, %rax
	leal	(%rbx,%r14), %eax
	addl	$4, %eax
	cmpl	%r15d, %eax
	jg	LBB0_54
## %bb.14:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	%r12, %rdi
	movl	$4, %esi
	callq	_lzx_br_consume
	cmpl	$-3, %ebx
	jl	LBB0_29
## %bb.15:                              ##   in Loop: Header=BB0_8 Depth=1
	addl	$4, %ebx
	movslq	%r14d, %r14
	leaq	(,%r14,4), %rdi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addq	16(%rax), %rdi
	cmpl	$2, %ebx
	movl	$1, %eax
	cmovll	%eax, %ebx
	leaq	(,%rbx,4), %rsi
	callq	___bzero
	xorl	%eax, %eax
	cmpl	$4, %ebx
	jae	LBB0_30
## %bb.16:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	%r14, %r10
	jmp	LBB0_36
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	16(%r13), %rax
	movl	76(%rax), %eax
	movl	8(%r13), %ecx
	leal	(%rax,%rcx), %edx
	incl	%edx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_lzx_br_read_ahead
	testl	%eax, %eax
	je	LBB0_50
## %bb.18:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	16(%r13), %rax
	movl	76(%rax), %esi
	movq	%r12, %rdi
	callq	_lzx_br_consume
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_lzx_br_bits
	movl	%eax, %edx
	movq	%r14, %rax
	leal	(%rdx,%r14), %ecx
	addl	$4, %ecx
	movl	$-1, %eax
	cmpl	%r15d, %ecx
	jg	LBB0_53
## %bb.19:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_lzx_br_consume
	movl	8(%r13), %esi
	movq	%r12, %rdi
	callq	_lzx_br_bits
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	callq	_lzx_decode_huffman
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%r13, %r15
	movq	16(%r13), %rcx
	movslq	%eax, %r13
	movl	(%rcx,%r13,4), %esi
	movq	%r12, %rdi
	callq	_lzx_br_consume
	movq	%r14, %r10
	movq	16(%rbx), %r8
	movslq	%r10d, %r14
	movl	(%r8,%r14,4), %ecx
	subl	%r13d, %ecx
	addl	$17, %ecx
	movslq	%ecx, %rdx
	imulq	$2021161081, %rdx, %rcx         ## imm = 0x78787879
	movq	%rcx, %rsi
	shrq	$63, %rsi
	sarq	$35, %rcx
	addl	%esi, %ecx
	movl	%ecx, %esi
	shll	$4, %esi
	addl	%ecx, %esi
	movl	$-1, %eax
	subl	%esi, %edx
	js	LBB0_53
## %bb.20:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	leal	4(%rax), %r9d
	cmpl	$-3, %eax
	movq	%r15, %r13
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	jl	LBB0_5
## %bb.21:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpl	$2, %r9d
	movl	$1, %edi
	cmovgel	%r9d, %edi
	leal	-1(%rdi), %eax
	xorl	%r10d, %r10d
	cmpl	$7, %eax
	jb	LBB0_46
## %bb.22:                              ##   in Loop: Header=BB0_8 Depth=1
	incq	%rax
	movq	%rax, %r10
	andq	$-8, %r10
	movd	%edx, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	leaq	-8(%r10), %rcx
	movq	%rcx, %rsi
	shrq	$3, %rsi
	incq	%rsi
	movl	%esi, %r11d
	andl	$3, %r11d
	cmpq	$24, %rcx
	jae	LBB0_40
## %bb.23:                              ##   in Loop: Header=BB0_8 Depth=1
	xorl	%ebx, %ebx
	jmp	LBB0_42
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	16(%r13), %rax
	movl	72(%rax), %edx
	addl	$5, %edx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_lzx_br_read_ahead
	testl	%eax, %eax
	je	LBB0_50
## %bb.25:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	16(%r13), %rax
	movl	72(%rax), %esi
	movq	%r12, %rdi
	callq	_lzx_br_consume
	movq	%r12, %rdi
	movl	$5, %esi
	callq	_lzx_br_bits
	movl	%eax, %ebx
	movq	%r14, %rcx
	addl	%ebx, %r14d
	addl	$20, %r14d
	cmpl	%r15d, %r14d
	jg	LBB0_54
## %bb.26:                              ##   in Loop: Header=BB0_8 Depth=1
	addl	$20, %ebx
	movq	%r12, %rdi
	movl	$5, %esi
	movq	%rcx, %r15
	callq	_lzx_br_consume
	movslq	%r15d, %rdi
	shlq	$2, %rdi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addq	16(%rax), %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_memset
	movl	%r14d, %r10d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	16(%r13), %rax
	movslq	%ebx, %rcx
	movl	(%rax,%rcx,4), %esi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_lzx_br_consume
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rax
	movq	%r14, %r10
	movslq	%r10d, %rcx
	movl	(%rax,%rcx,4), %edx
	subl	%ebx, %edx
	addl	$17, %edx
	movslq	%edx, %rdx
	imulq	$2021161081, %rdx, %rsi         ## imm = 0x78787879
	movq	%rsi, %rdi
	shrq	$63, %rdi
	sarq	$35, %rsi
	addl	%edi, %esi
	movl	%esi, %edi
	shll	$4, %edi
	addl	%esi, %edi
	subl	%edi, %edx
	js	LBB0_54
## %bb.28:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	(%rsi), %rsi
	movl	%edx, %edi
	incl	(%rsi,%rdi,4)
	incl	%r10d
	movl	%edx, (%rax,%rcx,4)
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_7
LBB0_29:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movq	%r14, %r10
	jmp	LBB0_7
LBB0_30:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	%ebx, %eax
	andl	$2147483644, %eax               ## imm = 0x7FFFFFFC
	movq	%r14, %xmm0
	leal	-4(%rax), %esi
	movl	%esi, %edx
	shrl	$2, %edx
	incl	%edx
	movl	%edx, %ecx
	andl	$7, %ecx
	pxor	%xmm1, %xmm1
	cmpl	$28, %esi
	pcmpeqd	%xmm2, %xmm2
	movdqa	LCPI0_0(%rip), %xmm3            ## xmm3 = [8,8]
	jb	LBB0_33
## %bb.31:                              ##   in Loop: Header=BB0_8 Depth=1
	andl	$-8, %edx
	pxor	%xmm1, %xmm1
	.p2align	4, 0x90
LBB0_32:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	paddq	%xmm3, %xmm0
	paddq	%xmm3, %xmm1
	addl	$-8, %edx
	jne	LBB0_32
LBB0_33:                                ##   in Loop: Header=BB0_8 Depth=1
	testl	%ecx, %ecx
	je	LBB0_35
	.p2align	4, 0x90
LBB0_34:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	psubq	%xmm2, %xmm0
	psubq	%xmm2, %xmm1
	decl	%ecx
	jne	LBB0_34
LBB0_35:                                ##   in Loop: Header=BB0_8 Depth=1
	paddq	%xmm1, %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	paddq	%xmm0, %xmm1
	movq	%xmm1, %r10
	cmpl	%eax, %ebx
	je	LBB0_6
LBB0_36:                                ##   in Loop: Header=BB0_8 Depth=1
	subl	%ebx, %eax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_37:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	decq	%rcx
	cmpl	%ecx, %eax
	jne	LBB0_37
## %bb.38:                              ##   in Loop: Header=BB0_8 Depth=1
	subq	%rcx, %r10
	jmp	LBB0_6
LBB0_40:                                ##   in Loop: Header=BB0_8 Depth=1
	andq	$-4, %rsi
	leaq	(%r8,%r14,4), %rcx
	addq	$112, %rcx
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_41:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movdqu	%xmm0, -112(%rcx,%rbx,4)
	movdqu	%xmm0, -96(%rcx,%rbx,4)
	movdqu	%xmm0, -80(%rcx,%rbx,4)
	movdqu	%xmm0, -64(%rcx,%rbx,4)
	movdqu	%xmm0, -48(%rcx,%rbx,4)
	movdqu	%xmm0, -32(%rcx,%rbx,4)
	movdqu	%xmm0, -16(%rcx,%rbx,4)
	movdqu	%xmm0, (%rcx,%rbx,4)
	addq	$32, %rbx
	addq	$-4, %rsi
	jne	LBB0_41
LBB0_42:                                ##   in Loop: Header=BB0_8 Depth=1
	testq	%r11, %r11
	je	LBB0_45
## %bb.43:                              ##   in Loop: Header=BB0_8 Depth=1
	addq	%r14, %rbx
	leaq	(%r8,%rbx,4), %rcx
	addq	$16, %rcx
	shlq	$5, %r11
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_44:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movdqu	%xmm0, -16(%rcx,%rsi)
	movdqu	%xmm0, (%rcx,%rsi)
	addq	$32, %rsi
	cmpq	%rsi, %r11
	jne	LBB0_44
LBB0_45:                                ##   in Loop: Header=BB0_8 Depth=1
	addq	%r10, %r14
	cmpq	%r10, %rax
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_4
LBB0_46:                                ##   in Loop: Header=BB0_8 Depth=1
	subl	%r10d, %edi
	.p2align	4, 0x90
LBB0_47:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%edx, (%r8,%r14,4)
	incq	%r14
	decl	%edi
	jne	LBB0_47
	jmp	LBB0_4
LBB0_48:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	movq	%r10, %rbx
	callq	_memset
	movq	%rbx, %r10
	testl	%r15d, %r15d
	jns	LBB0_2
LBB0_49:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %r15d
	jmp	LBB0_2
LBB0_50:
	xorl	%eax, %eax
	movq	%r14, %r10
	jmp	LBB0_52
LBB0_51:
	movl	$1, %eax
LBB0_52:
	movl	%r10d, (%r13)
                                        ## kill: def $eax killed $eax killed $rax
LBB0_53:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_54:
	movl	$-1, %eax
	jmp	LBB0_53
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_lzx_read_bitlen
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lzx_read_bitlen
_lzx_read_bitlen:                       ; @lzx_read_bitlen
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	ldr	x26, [x0]
	mov	x22, x26
	ldr	w28, [x22], #24
	cbz	w28, LBB0_3
; %bb.1:
	tbnz	w20, #31, LBB0_4
LBB0_2:
	cmp	w28, w20
	b.lt	LBB0_5
	b	LBB0_40
LBB0_3:
	ldr	x0, [x19]
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	tbz	w20, #31, LBB0_2
LBB0_4:
	ldr	w20, [x19, #8]
	cmp	w28, w20
	b.ge	LBB0_40
LBB0_5:
	add	x23, x26, #8
	b	LBB0_9
LBB0_6:                                 ;   in Loop: Header=BB0_9 Depth=1
                                        ; kill: def $w28 killed $w28 killed $x28 def $x28
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	x9, [x19]
	sbfiz	x8, x8, #2, #32
	ldr	w10, [x9, x8]
	add	w10, w10, w27
	str	w10, [x9, x8]
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	cmp	w28, w20
	b.ge	LBB0_40
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_30 Depth 2
                                        ;     Child Loop BB0_33 Depth 2
                                        ;     Child Loop BB0_36 Depth 2
                                        ;     Child Loop BB0_39 Depth 2
	str	w28, [x26]
	ldr	w2, [x26, #8]
	mov	x0, x21
	mov	x1, x22
	bl	_lzx_br_read_ahead
	cbz	w0, LBB0_41
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w1, [x23]
	mov	x0, x22
	bl	_lzx_br_bits
	mov	x1, x0
	mov	x0, x23
	bl	_lzx_decode_huffman
	cmp	w0, #19
	b.eq	LBB0_18
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x24, x0
	cmp	w0, #18
	b.eq	LBB0_24
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	cmp	w24, #17
	b.ne	LBB0_27
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x26, #16]
	ldr	w8, [x8, #68]
	add	w2, w8, #4
	mov	x0, x21
	mov	x1, x22
	bl	_lzx_br_read_ahead
	cbz	w0, LBB0_41
; %bb.14:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x26, #16]
	ldr	w1, [x8, #68]
	mov	x0, x22
	bl	_lzx_br_consume
	mov	x0, x22
	mov	w1, #4
	bl	_lzx_br_bits
	add	w27, w0, #4
	add	w8, w27, w28
	cmp	w8, w20
	b.gt	LBB0_43
; %bb.15:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x24, x0
	mov	x0, x22
	mov	w1, #4
	bl	_lzx_br_consume
	cmn	w24, #3
	b.lt	LBB0_8
; %bb.16:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x19, #16]
	sxtw	x25, w28
	add	x0, x8, w28, sxtw #2
	cmp	w27, #1
	csinc	w24, w27, wzr, gt
	lsl	x1, x24, #2
	bl	_bzero
	cmp	w24, #8
	b.hs	LBB0_29
; %bb.17:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	w8, #0
	b	LBB0_32
LBB0_18:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x26, #16]
	ldr	w8, [x8, #76]
	ldr	w9, [x26, #8]
	add	w8, w8, w9
	add	w2, w8, #1
	mov	x0, x21
	mov	x1, x22
	bl	_lzx_br_read_ahead
	cbz	w0, LBB0_41
; %bb.19:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x26, #16]
	ldr	w1, [x8, #76]
	mov	x0, x22
	bl	_lzx_br_consume
	mov	x0, x22
	mov	w1, #1
	bl	_lzx_br_bits
	add	w27, w0, #4
	add	w8, w27, w28
	cmp	w8, w20
	b.gt	LBB0_43
; %bb.20:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x24, x0
	mov	x0, x22
	mov	w1, #1
	bl	_lzx_br_consume
	ldr	w1, [x26, #8]
	mov	x0, x22
	bl	_lzx_br_bits
	mov	x1, x0
	mov	x0, x23
	bl	_lzx_decode_huffman
	mov	x25, x0
	ldr	x8, [x26, #16]
	ldr	w1, [x8, w0, sxtw #2]
	mov	x0, x22
	bl	_lzx_br_consume
	ldr	x9, [x19, #16]
	ldr	w8, [x9, w28, sxtw #2]
	sub	w8, w8, w25
	add	w8, w8, #17
	mov	w10, #30841
	movk	w10, #30840, lsl #16
	smull	x10, w8, w10
	lsr	x11, x10, #63
	asr	x10, x10, #35
	add	w10, w10, w11
	add	w10, w10, w10, lsl #4
	subs	w8, w8, w10
	b.mi	LBB0_43
; %bb.21:                               ;   in Loop: Header=BB0_9 Depth=1
	cmn	w24, #3
	b.lt	LBB0_7
; %bb.22:                               ;   in Loop: Header=BB0_9 Depth=1
                                        ; kill: def $w28 killed $w28 killed $x28 def $x28
	sxtw	x13, w28
	cmp	w27, #1
	csinc	w10, w27, wzr, gt
	sub	w11, w10, #1
	cmp	w11, #15
	b.hs	LBB0_35
; %bb.23:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	w11, #0
	mov	x28, x13
	b	LBB0_38
LBB0_24:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x26, #16]
	ldr	w8, [x8, #72]
	add	w2, w8, #5
	mov	x0, x21
	mov	x1, x22
	bl	_lzx_br_read_ahead
	cbz	w0, LBB0_41
; %bb.25:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x26, #16]
	ldr	w1, [x8, #72]
	mov	x0, x22
	bl	_lzx_br_consume
	mov	x0, x22
	mov	w1, #5
	bl	_lzx_br_bits
	add	w24, w0, #20
	add	w25, w24, w28
	cmp	w25, w20
	b.gt	LBB0_43
; %bb.26:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x22
	mov	w1, #5
	bl	_lzx_br_consume
	ldr	x8, [x19, #16]
	add	x0, x8, w28, sxtw #2
	mov	w1, #0
	mov	x2, x24
	bl	_memset
	mov	x28, x25
	b	LBB0_8
LBB0_27:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x26, #16]
	ldr	w1, [x8, w24, sxtw #2]
	mov	x0, x22
	bl	_lzx_br_consume
	ldr	x8, [x19, #16]
	ldr	w9, [x8, w28, sxtw #2]
	sub	w9, w9, w24
	add	w9, w9, #17
	mov	w10, #30841
	movk	w10, #30840, lsl #16
	smull	x10, w9, w10
	lsr	x11, x10, #63
	asr	x10, x10, #35
	add	w10, w10, w11
	add	w10, w10, w10, lsl #4
	subs	w9, w9, w10
	b.mi	LBB0_43
; %bb.28:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x10, x28
	sxtw	x10, w10
	ldr	x11, [x19]
	lsl	x12, x9, #2
	ldr	w13, [x11, x12]
	add	w13, w13, #1
	str	w13, [x11, x12]
	add	w28, w28, #1
	str	w9, [x8, x10, lsl #2]
	b	LBB0_8
LBB0_29:                                ;   in Loop: Header=BB0_9 Depth=1
	and	w8, w24, #0x7ffffff8
	movi.2d	v0, #0000000000000000
	movi.2d	v1, #0000000000000000
	mov.d	v1[0], x25
	mov	x9, x8
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
	mov	w10, #1
LBB0_30:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	dup.2d	v4, x10
	add.2d	v1, v1, v4
	add.2d	v0, v0, v4
	add.2d	v2, v2, v4
	add.2d	v3, v3, v4
	subs	w9, w9, #8
	b.ne	LBB0_30
; %bb.31:                               ;   in Loop: Header=BB0_9 Depth=1
	add.2d	v0, v0, v1
	add.2d	v0, v2, v0
	add.2d	v0, v3, v0
	addp.2d	d0, v0
	fmov	x25, d0
	cmp	w24, w8
	b.eq	LBB0_34
LBB0_32:                                ;   in Loop: Header=BB0_9 Depth=1
	sub	w8, w24, w8
LBB0_33:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x25, x25, #1
	subs	w8, w8, #1
	b.ne	LBB0_33
LBB0_34:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	x28, x25
	b	LBB0_8
LBB0_35:                                ;   in Loop: Header=BB0_9 Depth=1
	add	x12, x11, #1
	and	x11, x12, #0x1fffffff0
	add	x28, x11, x13
	dup.4s	v0, w8
	add	x13, x9, x13, lsl #2
	add	x13, x13, #32
	mov	x14, x11
LBB0_36:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	stp	q0, q0, [x13, #-32]
	stp	q0, q0, [x13], #64
	subs	x14, x14, #16
	b.ne	LBB0_36
; %bb.37:                               ;   in Loop: Header=BB0_9 Depth=1
	cmp	x12, x11
	b.eq	LBB0_6
LBB0_38:                                ;   in Loop: Header=BB0_9 Depth=1
	sub	w10, w10, w11
	mov	x11, x28
LBB0_39:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x28, x11, #1
	str	w8, [x9, x11, lsl #2]
	mov	x11, x28
	subs	w10, w10, #1
	b.ne	LBB0_39
	b	LBB0_6
LBB0_40:
	mov	w0, #1
LBB0_41:
	str	w28, [x26]
LBB0_42:
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_43:
	mov	w0, #-1
	b	LBB0_42
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_lzx_read_bitlen
.subsections_via_symbols
