	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function codebook_bits_offset
_codebook_bits_offset:                  ## @codebook_bits_offset
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_codebook_extremes@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%edx, %r15
	movq	(%rax,%r15,8), %rax
	movq	(%rax), %rbx
	movq	8(%rax), %rax
	movq	8(%rdi), %r12
	movq	_INT_MAX@GOTPCREL(%rip), %r11
	subq	%r9, %rcx
	movq	%r9, -56(%rbp)                  ## 8-byte Spill
	subq	%r9, %r8
	cmpq	%rbx, %rcx
	jl	LBB0_2
## %bb.1:
	xorl	%r9d, %r9d
	cmpq	%rax, %r8
	jle	LBB0_5
LBB0_2:
	xorl	%r9d, %r9d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	incl	%r9d
	sarq	%rcx
	sarq	%r8
	cmpq	%rbx, %rcx
	jl	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%rax, %r8
	jg	LBB0_3
LBB0_5:
	movl	$1, %r8d
	movl	%r9d, %ecx
	shll	%cl, %r8d
	movl	(%r11), %ebx
	xorl	%eax, %eax
	xorl	%r10d, %r10d
	cmpl	$2, %edx
	movl	$0, %ecx
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	cmovel	%r8d, %ecx
	sete	%r10b
	addl	%r9d, %r10d
	movl	(%r12), %r9d
	testl	%r9d, %r9d
	movl	%r10d, -48(%rbp)                ## 4-byte Spill
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	jle	LBB0_6
## %bb.7:
	movl	%esi, %eax
	leaq	(,%rax,8), %rsi
	movl	$9, %r8d
	addq	16(%rdi), %rsi
	subl	%r15d, %r8d
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	leal	-1(%rdx), %r13d
	movslq	%ecx, %r14
	subq	-56(%rbp), %r14                 ## 8-byte Folded Reload
	movq	8(%r12), %rcx
	movq	(%rcx,%rax,8), %r12
	movl	%r10d, %r11d
	movq	_ff_mlp_huffman_tables@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r15,8), %rdx
	movslq	%r8d, %r15
	movslq	(%rdi), %r8
	shlq	$3, %r8
	xorl	%eax, %eax
	movl	%ebx, %edi
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rsi), %r10
	movl	%r12d, %ecx
	sarq	%cl, %r10
	addq	%r14, %r10
	movl	%r13d, %ecx
	andl	%r10d, %ecx
	cmpl	%edi, %ecx
	cmovll	%ecx, %edi
	notl	%ecx
	addl	-64(%rbp), %ecx                 ## 4-byte Folded Reload
	cmpl	%ebx, %ecx
	cmovll	%ecx, %ebx
	movl	%r11d, %ecx
	sarq	%cl, %r10
	addq	%r15, %r10
	movq	(%rdx,%r10,8), %rcx
	addl	8(%rcx), %eax
	addq	%r8, %rsi
	decl	%r9d
	jne	LBB0_8
	jmp	LBB0_9
LBB0_6:
	movl	%ebx, %edi
LBB0_9:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	16(%rbp), %r15
	movq	%r14, 16(%r15)
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%r15)
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	imull	%ecx, %edx
	addl	%eax, %edx
	movl	%edx, 4(%r15)
	movslq	%edi, %rax
	movq	%r14, %rdi
	subq	%rax, %rdi
	movq	_HUFF_OFFSET_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_FFMAX
	movl	%eax, 12(%r15)
	movslq	%ebx, %rdi
	addq	%r14, %rdi
	movq	_HUFF_OFFSET_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_FFMIN
	movl	%eax, 8(%r15)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_codebook_extremes,8,3          ## @codebook_extremes
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.comm	_ff_mlp_huffman_tables,8,3      ## @ff_mlp_huffman_tables
	.comm	_HUFF_OFFSET_MIN,4,2            ## @HUFF_OFFSET_MIN
	.comm	_HUFF_OFFSET_MAX,4,2            ## @HUFF_OFFSET_MAX
	.no_dead_strip	_codebook_bits_offset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function codebook_bits_offset
_codebook_bits_offset:                  ; @codebook_bits_offset
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x6
	mov	x20, x5
                                        ; kill: def $w2 killed $w2 def $x2
Lloh0:
	adrp	x8, _codebook_extremes@GOTPAGE
Lloh1:
	ldr	x8, [x8, _codebook_extremes@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x8, [x8, w2, sxtw #3]
	ldp	x9, x10, [x8]
Lloh3:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
	ldr	x13, [x0, #8]
Lloh5:
	ldr	w8, [x8]
	sub	x12, x4, x5
	sub	x14, x3, x5
	cmp	x14, x9
	mov	w11, #0
	ccmp	x12, x10, #0, ge
	b.le	LBB0_3
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	add	w11, w11, #1
	asr	x14, x14, #1
	asr	x12, x12, #1
	cmp	x14, x9
	b.lt	LBB0_1
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	cmp	x12, x10
	b.gt	LBB0_1
LBB0_3:
	mov	w9, #1
	lsl	w12, w9, w11
	cmp	w2, #2
	csel	w16, w12, wzr, eq
	cinc	w9, w11, eq
	ldr	w10, [x13]
	cmp	w10, #1
	b.lt	LBB0_6
; %bb.4:
	mov	w11, #0
	ldr	x14, [x0, #16]
	mov	w17, w1
	add	x14, x14, w1, uxtw #3
	mov	w15, #9
	sxtw	x1, w2
	sub	w2, w15, w2
	sub	w15, w12, #1
	ldr	x13, [x13, #8]
	ldr	x13, [x13, x17, lsl #3]
	sxtw	x17, w16
Lloh6:
	adrp	x16, _ff_mlp_huffman_tables@GOTPAGE
Lloh7:
	ldr	x16, [x16, _ff_mlp_huffman_tables@GOTPAGEOFF]
Lloh8:
	ldr	x16, [x16]
	ldr	x16, [x16, x1, lsl #3]
	sub	x17, x17, x20
	sxtw	x1, w2
	ldrsw	x0, [x0]
	lsl	x0, x0, #3
	mov	x2, x10
	mov	x21, x8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x3, [x14]
	asr	x3, x3, x13
	add	x3, x3, x17
	and	w4, w15, w3
	cmp	w4, w8
	csel	w8, w4, w8, lt
	mvn	w4, w4
	add	w4, w12, w4
	cmp	w4, w21
	csel	w21, w4, w21, lt
	asr	x3, x3, x9
	add	x3, x3, x1
	ldr	x3, [x16, x3, lsl #3]
	ldr	w3, [x3, #8]
	add	w11, w11, w3
	add	x14, x14, x0
	subs	w2, w2, #1
	b.ne	LBB0_5
	b	LBB0_7
LBB0_6:
	mov	w11, #0
	mov	x21, x8
LBB0_7:
	str	x20, [x19, #16]
	madd	w10, w10, w9, w11
	stp	w9, w10, [x19]
	sub	x0, x20, w8, sxtw
Lloh9:
	adrp	x8, _HUFF_OFFSET_MIN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HUFF_OFFSET_MIN@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_FFMAX
	str	w0, [x19, #12]
	add	x0, x20, w21, sxtw
Lloh12:
	adrp	x8, _HUFF_OFFSET_MAX@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HUFF_OFFSET_MAX@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_FFMIN
	str	w0, [x19, #8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_codebook_extremes,8,3          ; @codebook_extremes
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.comm	_ff_mlp_huffman_tables,8,3      ; @ff_mlp_huffman_tables
	.comm	_HUFF_OFFSET_MIN,4,2            ; @HUFF_OFFSET_MIN
	.comm	_HUFF_OFFSET_MAX,4,2            ; @HUFF_OFFSET_MAX
	.no_dead_strip	_codebook_bits_offset
.subsections_via_symbols
