	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function no_codebook_bits
_no_codebook_bits:                      ## @no_codebook_bits
	.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	%r8, %r14
	movl	%ecx, %r12d
	movl	%edx, %r15d
	movq	(%rdi), %r13
	movq	_HUFF_OFFSET_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	cmpl	%edx, %esi
	jle	LBB0_2
## %bb.1:
	addl	%esi, %esi
	subl	%r15d, %esi
	incl	%esi
	movl	%r12d, %edi
	callq	_FFMAX
	movl	%eax, %r12d
LBB0_2:
	movq	_HUFF_OFFSET_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %r12d
	jle	LBB0_4
## %bb.3:
	movl	%r12d, %ecx
	notl	%ecx
	leal	(%rcx,%rax,2), %esi
	movl	%r15d, %edi
	callq	_FFMIN
	movl	%eax, %r15d
LBB0_4:
	movl	%r12d, %ebx
	subl	%r15d, %ebx
	movl	%ebx, %edi
	callq	_number_sbits
                                        ## kill: def $eax killed $eax def $rax
	leal	-1(%rax), %edx
	leal	-2(%rax), %ecx
	movl	$1, %eax
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	movl	%ebx, %ecx
	shrl	$31, %ecx
	addl	%ebx, %ecx
	sarl	%ecx
	addl	%r15d, %ecx
	cmpl	$1, %edx
	sbbl	$-1, %ecx
	movl	%ecx, (%r14)
	movl	%edx, 4(%r14)
	imull	(%r13), %edx
	movl	%edx, 8(%r14)
	subl	%eax, %r12d
	incl	%r12d
	movl	%r12d, 12(%r14)
	addl	%r15d, %eax
	movl	%eax, 16(%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HUFF_OFFSET_MIN,4,2            ## @HUFF_OFFSET_MIN
	.comm	_HUFF_OFFSET_MAX,4,2            ## @HUFF_OFFSET_MAX
	.no_dead_strip	_no_codebook_bits
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function no_codebook_bits
_no_codebook_bits:                      ; @no_codebook_bits
	.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, x4
	mov	x21, x3
	mov	x20, x2
	ldr	x23, [x0]
Lloh0:
	adrp	x8, _HUFF_OFFSET_MIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HUFF_OFFSET_MIN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w2
	b.le	LBB0_2
; %bb.1:
	lsl	w8, w8, #1
	sub	w8, w8, w20
	add	w1, w8, #1
	mov	x0, x21
	bl	_FFMAX
	mov	x21, x0
LBB0_2:
Lloh3:
	adrp	x8, _HUFF_OFFSET_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HUFF_OFFSET_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w21, w8
	b.le	LBB0_4
; %bb.3:
	mvn	w9, w21
	add	w1, w9, w8, lsl #1
	mov	x0, x20
	bl	_FFMIN
	mov	x20, x0
LBB0_4:
	sub	w22, w21, w20
	mov	x0, x22
	bl	_number_sbits
	sub	w8, w0, #1
	sub	w9, w0, #2
	mov	w10, #1
	lsl	w9, w10, w9
	cmp	w22, #0
	cinc	w10, w22, lt
	add	w10, w20, w10, asr #1
	cmp	w8, #0
	cinc	w10, w10, ne
	stp	w10, w8, [x19]
	ldr	w10, [x23]
	mul	w8, w10, w8
	sub	w10, w21, w9
	add	w10, w10, #1
	stp	w8, w10, [x19, #8]
	add	w8, w9, w20
	str	w8, [x19, #16]
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_HUFF_OFFSET_MIN,4,2            ; @HUFF_OFFSET_MIN
	.comm	_HUFF_OFFSET_MAX,4,2            ; @HUFF_OFFSET_MAX
	.no_dead_strip	_no_codebook_bits
.subsections_via_symbols
