	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function determine_bits
_determine_bits:                        ## @determine_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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	32(%rdi), %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	40(%rdi), %rcx
	xorl	%eax, %eax
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_1 Depth=1
	leal	1(%rbx), %eax
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	cmpl	(%rcx), %eax
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	ja	LBB0_18
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
                                        ##     Child Loop BB0_14 Depth 2
	movl	%eax, %esi
	movq	_INT32_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	_INT32_MIN@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movl	(%rcx), %r8d
	testl	%r8d, %r8d
	jle	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rax
	movq	8(%rcx), %rcx
	movq	(%rcx,%rsi,8), %rcx
	cmpl	$1, %r8d
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	leaq	(%rax,%rsi,8), %rdx
	xorl	%eax, %eax
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movslq	8(%rdx), %r9
	movl	%r8d, %ebx
	andl	$-2, %ebx
	leaq	(%rax,%rsi,8), %rdx
	movq	%r9, %r10
	shlq	$4, %r10
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rdx), %rdi
	sarq	%cl, %rdi
	cmpq	%r12, %rdi
	cmovlq	%rdi, %r12
	cmpq	%r14, %rdi
	cmovgq	%rdi, %r14
	addl	%eax, %edi
	movq	(%rdx,%r9,8), %rax
	sarq	%cl, %rax
	cmpq	%r12, %rax
	cmovlq	%rax, %r12
	cmpq	%r14, %rax
	cmovgq	%rax, %r14
	addl	%edi, %eax
	addq	%r10, %rdx
	addl	$-2, %ebx
	jne	LBB0_6
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	testb	$1, %r8b
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%rdx), %rdx
                                        ## kill: def $cl killed $cl killed $rcx
	sarq	%cl, %rdx
	cmpq	%r12, %rdx
	cmovlq	%rdx, %r12
	cmpq	%r14, %rdx
	cmovgq	%rdx, %r14
	addl	%edx, %eax
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	24(%rcx), %rcx
	movq	(%rcx,%rsi,8), %rcx
	movq	_FIR@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	(%rcx,%rdx,4), %ecx
	movl	%ecx, -56(%rbp)                 ## 4-byte Spill
	testl	%ecx, %ecx
	je	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	(%rdi), %rax
	movq	(%rax,%rsi,8), %r9
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	xorl	%edx, %edx
	movq	%r12, %rcx
	movq	%r14, %r8
	movq	%rsi, %rbx
	callq	_no_codebook_bits_offset
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
                                        ## kill: def $eax killed $eax killed $rax
	cltd
	idivl	%r8d
	movl	%eax, %r13d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	(%rdi), %rax
	movq	(%rax,%rsi,8), %r8
	movq	%r12, %rdx
	movq	%r14, %rcx
	movq	%rsi, %rbx
	callq	_no_codebook_bits
	movq	_HUFF_OFFSET_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HUFF_OFFSET_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r13d, %edi
	callq	_av_clip
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
LBB0_12:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_NUM_CODEBOOKS@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	jl	LBB0_17
## %bb.13:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	$40, %r15d
	xorl	%r13d, %r13d
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_14 Depth=2
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	(%rax,%rbx,8), %rax
	movq	-64(%rbp), %rcx
	movq	%rcx, 32(%rax,%r15)
	movaps	-96(%rbp), %xmm0
	movaps	-80(%rbp), %xmm1
	movups	%xmm1, 16(%rax,%r15)
	movups	%xmm0, (%rax,%r15)
	movq	_NUM_CODEBOOKS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	leaq	1(%r13), %rcx
	addq	$40, %r15
	addq	$2, %r13
	cmpq	%rax, %r13
	movq	%rcx, %r13
	jge	LBB0_17
LBB0_14:                                ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -96(%rbp)
	movaps	%xmm0, -80(%rbp)
	movq	$0, -64(%rbp)
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	%rax, -88(%rbp)
	subq	$8, %rsp
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	movl	%r13d, %edx
	movq	%r12, %rcx
	movq	%r14, %r8
	movl	-52(%rbp), %r9d                 ## 4-byte Reload
	leaq	-96(%rbp), %rax
	pushq	%rax
	callq	_codebook_bits_offset
	addq	$16, %rsp
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=2
	movq	-96(%rbp), %rcx
	movq	-88(%rbp), %rax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	decq	%rcx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	movl	%r13d, %edx
	movq	%r12, %r8
	movq	%r14, %r9
	pushq	$0
	leaq	-96(%rbp), %rax
	pushq	%rax
	callq	_codebook_bits
	addq	$16, %rsp
	movq	-120(%rbp), %rcx                ## 8-byte Reload
	incq	%rcx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	movl	%r13d, %edx
	movq	%r12, %r8
	movq	%r14, %r9
	pushq	$1
	leaq	-96(%rbp), %rax
	pushq	%rax
	callq	_codebook_bits
	addq	$16, %rsp
	jmp	LBB0_16
LBB0_18:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INT32_MAX,8,3                  ## @INT32_MAX
	.comm	_INT32_MIN,8,3                  ## @INT32_MIN
	.comm	_FIR,8,3                        ## @FIR
	.comm	_HUFF_OFFSET_MIN,4,2            ## @HUFF_OFFSET_MIN
	.comm	_HUFF_OFFSET_MAX,4,2            ## @HUFF_OFFSET_MAX
	.comm	_NUM_CODEBOOKS,4,2              ## @NUM_CODEBOOKS
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.no_dead_strip	_determine_bits
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function determine_bits
_determine_bits:                        ; @determine_bits
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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, x0
	mov	w8, #0
	ldp	x9, x11, [x0, #32]
	str	x9, [sp, #8]                    ; 8-byte Folded Spill
Lloh0:
	adrp	x26, _NUM_CODEBOOKS@GOTPAGE
Lloh1:
	ldr	x26, [x26, _NUM_CODEBOOKS@GOTPAGEOFF]
Lloh2:
	adrp	x27, _INT_MAX@GOTPAGE
Lloh3:
	ldr	x27, [x27, _INT_MAX@GOTPAGEOFF]
	str	x11, [sp, #16]                  ; 8-byte Folded Spill
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	w8, w20, #1
	ldp	x9, x11, [sp, #8]               ; 16-byte Folded Reload
	ldr	w9, [x9]
	cmp	w8, w9
	b.hi	LBB0_14
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
                                        ;     Child Loop BB0_12 Depth 2
	mov	w20, w8
Lloh4:
	adrp	x9, _INT32_MAX@GOTPAGE
Lloh5:
	ldr	x9, [x9, _INT32_MAX@GOTPAGEOFF]
Lloh6:
	ldr	x21, [x9]
Lloh7:
	adrp	x9, _INT32_MIN@GOTPAGE
Lloh8:
	ldr	x9, [x9, _INT32_MIN@GOTPAGEOFF]
Lloh9:
	ldr	x22, [x9]
	ldr	w9, [x11]
	cmp	w9, #1
	b.lt	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w10, #0
	ldr	x12, [x19, #16]
	ldr	x11, [x11, #8]
	ldr	x11, [x11, x20, lsl #3]
	ldrsw	x13, [x19, #8]
	add	x12, x12, x20, lsl #3
	lsl	x13, x13, #3
	mov	x14, x9
LBB0_4:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x15, [x12]
	asr	x15, x15, x11
	cmp	x15, x21
	csel	x21, x15, x21, lt
	cmp	x15, x22
	csel	x22, x15, x22, gt
	add	w10, w10, w15
	add	x12, x12, x13
	subs	w14, w14, #1
	b.ne	LBB0_4
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	w10, #0
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x11, [x19, #24]
	ldr	x8, [x11, w8, uxtw #3]
Lloh10:
	adrp	x11, _FIR@GOTPAGE
Lloh11:
	ldr	x11, [x11, _FIR@GOTPAGEOFF]
Lloh12:
	ldr	x11, [x11]
	ldr	w25, [x8, x11, lsl #2]
	cbz	w25, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x19]
	ldr	x5, [x8, x20, lsl #3]
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	mov	x3, x21
	mov	x4, x22
	bl	_no_codebook_bits_offset
	mov	w23, #0
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x19]
	ldr	x4, [x8, x20, lsl #3]
	sdiv	w23, w10, w9
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	x3, x22
	bl	_no_codebook_bits
Lloh13:
	adrp	x8, _HUFF_OFFSET_MIN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _HUFF_OFFSET_MIN@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x8, _HUFF_OFFSET_MAX@GOTPAGE
Lloh17:
	ldr	x8, [x8, _HUFF_OFFSET_MAX@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	mov	x0, x23
	bl	_av_clip
	mov	x23, x0
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x26]
	cmp	w8, #2
	b.lt	LBB0_1
; %bb.10:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x24, #0
	mov	w28, #40
	str	w23, [sp, #28]                  ; 4-byte Folded Spill
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=2
	ldr	x8, [x19]
	ldr	x8, [x8, x20, lsl #3]
	add	x8, x8, x28
	ldp	q0, q1, [sp, #32]
	ldr	x9, [sp, #64]
	str	x9, [x8, #32]
	stp	q0, q1, [x8]
	ldrsw	x8, [x26]
	add	x9, x24, #2
	add	x24, x24, #1
	add	x28, x28, #40
	cmp	x9, x8
	b.ge	LBB0_1
LBB0_12:                                ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #32]
	ldrsw	x8, [x27]
	str	xzr, [sp, #64]
	str	x8, [sp, #40]
	add	x6, sp, #32
	mov	x0, x19
	mov	x1, x20
	mov	x2, x24
	mov	x3, x21
	mov	x4, x22
	mov	x5, x23
	bl	_codebook_bits_offset
	cbnz	w25, LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=2
	mov	x23, x25
	mov	x25, x26
	mov	x26, x27
	ldp	x8, x27, [sp, #32]
	sub	x3, x8, #1
	add	x6, sp, #32
	mov	x0, x19
	mov	x1, x20
	mov	x2, x24
	mov	x4, x21
	mov	x5, x22
	mov	w7, #0
	bl	_codebook_bits
	add	x3, x27, #1
	mov	x27, x26
	mov	x26, x25
	mov	x25, x23
	ldr	w23, [sp, #28]                  ; 4-byte Folded Reload
	add	x6, sp, #32
	mov	x0, x19
	mov	x1, x20
	mov	x2, x24
	mov	x4, x21
	mov	x5, x22
	mov	w7, #1
	bl	_codebook_bits
	b	LBB0_11
LBB0_14:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_INT32_MAX,8,3                  ; @INT32_MAX
	.comm	_INT32_MIN,8,3                  ; @INT32_MIN
	.comm	_FIR,8,3                        ; @FIR
	.comm	_HUFF_OFFSET_MIN,4,2            ; @HUFF_OFFSET_MIN
	.comm	_HUFF_OFFSET_MAX,4,2            ; @HUFF_OFFSET_MAX
	.comm	_NUM_CODEBOOKS,4,2              ; @NUM_CODEBOOKS
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.no_dead_strip	_determine_bits
.subsections_via_symbols
