	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function codebook_bits
_codebook_bits:                         ## @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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r14d
	movl	%ecx, %r15d
	movl	%edx, -72(%rbp)                 ## 4-byte Spill
	movl	%esi, -68(%rbp)                 ## 4-byte Spill
	movq	%rdi, %rbx
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_HUFF_OFFSET_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r8d, -76(%rbp)                 ## 4-byte Spill
	movl	%r8d, %edi
	callq	_FFMAX
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	_HUFF_OFFSET_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, -80(%rbp)                ## 4-byte Spill
	movl	%r14d, %edi
	callq	_FFMIN
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r13d, %r12d
	leaq	-56(%rbp), %rax
	movq	%rax, (%rsp)
	movq	%rbx, %rdi
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	movl	-72(%rbp), %edx                 ## 4-byte Reload
	movl	-76(%rbp), %ecx                 ## 4-byte Reload
	movl	-80(%rbp), %r8d                 ## 4-byte Reload
	movl	%r15d, %r9d
	callq	_codebook_bits_offset
	movl	-56(%rbp), %r13d
	cmpl	%r12d, %r13d
	jge	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%r14d, %r14d
	movq	16(%rbp), %rcx
	cmpl	(%rcx), %r13d
	jge	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	-48(%rbp), %eax
	movl	%eax, 8(%rcx)
	movq	-56(%rbp), %rax
	movq	%rax, (%rcx)
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	incl	%r14d
	cmpl	(%rbx), %r14d
	jge	LBB0_10
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$0, 24(%rbp)
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	-52(%rbp), %r15d
	cmpl	-64(%rbp), %r15d                ## 4-byte Folded Reload
	jge	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	incl	%r15d
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	-48(%rbp), %r15d
	cmpl	-60(%rbp), %r15d                ## 4-byte Folded Reload
	jle	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	decl	%r15d
	jmp	LBB0_1
LBB0_10:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.comm	_HUFF_OFFSET_MIN,4,2            ## @HUFF_OFFSET_MIN
	.comm	_HUFF_OFFSET_MAX,4,2            ## @HUFF_OFFSET_MAX
	.no_dead_strip	_codebook_bits
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function codebook_bits
_codebook_bits:                         ; @codebook_bits
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x19, x7
	mov	x20, x6
	mov	x21, x5
	mov	x22, x4
	mov	x28, x3
	mov	x23, x2
	mov	x24, x1
	mov	x25, x0
Lloh0:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w27, [x8]
Lloh3:
	adrp	x8, _HUFF_OFFSET_MIN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HUFF_OFFSET_MIN@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x4
	bl	_FFMAX
	str	w0, [sp, #8]                    ; 4-byte Folded Spill
Lloh6:
	adrp	x8, _HUFF_OFFSET_MAX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HUFF_OFFSET_MAX@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_FFMIN
	str	w0, [sp, #12]                   ; 4-byte Folded Spill
	mov	w26, #0
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	add	x6, sp, #16
	mov	x0, x25
	mov	x1, x24
	mov	x2, x23
	mov	x3, x22
	mov	x4, x21
	mov	x5, x28
	bl	_codebook_bits_offset
	ldr	w8, [sp, #16]
	cmp	w8, w27
	b.ge	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w9, [x20]
	cmp	w8, w9
	b.ge	LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w26, #0
	ldr	x9, [sp, #16]
	str	x9, [x20]
	ldr	w9, [sp, #24]
	str	w9, [x20, #8]
	cbnz	w19, LBB0_6
	b	LBB0_9
LBB0_4:                                 ;   in Loop: Header=BB0_1 Depth=1
	add	w26, w26, #1
	ldr	w9, [x25]
	cmp	w26, w9
	b.ge	LBB0_11
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	cbz	w19, LBB0_9
LBB0_6:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	w9, [sp, #20]
	ldr	w10, [sp, #12]                  ; 4-byte Folded Reload
	cmp	w9, w10
	b.ge	LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_1 Depth=1
	add	w28, w9, #1
	mov	x27, x8
	b	LBB0_1
LBB0_8:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	w26, #0
	cbnz	w19, LBB0_6
LBB0_9:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	w9, [sp, #24]
	ldr	w10, [sp, #8]                   ; 4-byte Folded Reload
	cmp	w9, w10
	b.le	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_1 Depth=1
	sub	w28, w9, #1
	mov	x27, x8
	b	LBB0_1
LBB0_11:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.comm	_HUFF_OFFSET_MIN,4,2            ; @HUFF_OFFSET_MIN
	.comm	_HUFF_OFFSET_MAX,4,2            ; @HUFF_OFFSET_MAX
	.no_dead_strip	_codebook_bits
.subsections_via_symbols
