	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function dv_guess_qnos
LCPI0_0:
	.long	16777216                        ## 0x1000000
	.long	16777216                        ## 0x1000000
	.long	16777216                        ## 0x1000000
	.long	16777216                        ## 0x1000000
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_dv_guess_qnos:                         ## @dv_guess_qnos
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	$16777216, -64(%rbp)            ## imm = 0x1000000
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = [16777216,16777216,16777216,16777216]
	movdqa	%xmm0, -80(%rbp)
	xorl	%r11d, %r11d
	movq	_ff_dv_quant_shifts@GOTPCREL(%rip), %r9
	movq	_ff_dv_quant_offset@GOTPCREL(%rip), %r10
	movq	_mb_area_start@GOTPCREL(%rip), %r15
	movq	%rdi, -120(%rbp)                ## 8-byte Spill
	movq	%rdi, %r8
	movq	%rsi, -144(%rbp)                ## 8-byte Spill
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
                                        ##       Child Loop BB0_4 Depth 3
                                        ##         Child Loop BB0_11 Depth 4
                                        ##           Child Loop BB0_17 Depth 5
	movl	(%rsi,%r11,4), %eax
	testl	%eax, %eax
	je	LBB0_31
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	decl	%eax
	movl	%eax, (%rsi,%r11,4)
	movl	$0, -80(%rbp,%r11,4)
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	movq	%r11, -128(%rbp)                ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_29:                                ##   in Loop: Header=BB0_3 Depth=2
	movl	-108(%rbp), %eax                ## 4-byte Reload
	incl	%eax
	addq	$48, %r8
	cmpl	$6, %eax
	je	LBB0_30
LBB0_3:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_4 Depth 3
                                        ##         Child Loop BB0_11 Depth 4
                                        ##           Child Loop BB0_17 Depth 5
	movl	%eax, -108(%rbp)                ## 4-byte Spill
	movl	$1, %edi
	xorl	%ecx, %ecx
	movq	%r8, -88(%rbp)                  ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_4 Depth=3
	leaq	1(%rbx), %rdx
	movq	%rax, %r8
LBB0_28:                                ##   in Loop: Header=BB0_4 Depth=3
	movq	16(%r8), %rax
	addl	(%rax,%rbx,4), %r14d
	movl	%r14d, -80(%rbp,%r11,4)
	incq	%rdi
	movq	%rdx, %rcx
	cmpq	$4, %rdx
	je	LBB0_29
LBB0_4:                                 ##   Parent Loop BB0_1 Depth=1
                                        ##     Parent Loop BB0_3 Depth=2
                                        ## =>    This Loop Header: Depth=3
                                        ##         Child Loop BB0_11 Depth 4
                                        ##           Child Loop BB0_17 Depth 5
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movq	%r8, %rax
	movq	(%r8), %r8
	movq	8(%rax), %rdx
	movq	(%r8,%rcx,8), %rcx
	movq	(%r9), %r12
	movslq	(%rsi,%r11,4), %r13
	movq	(%r10), %rbx
	movslq	(%rbx,%rdx,4), %rdx
	addq	%r13, %rdx
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	movq	(%r12,%rdx,8), %rdx
	cmpq	(%rdx,%rbx,8), %rcx
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=3
	movq	%rdi, -136(%rbp)                ## 8-byte Spill
	movq	16(%rax), %rdx
	movl	$1, (%rdx,%rbx,4)
	incq	%rcx
	movq	%rcx, (%r8,%rbx,8)
	movq	24(%rax), %rdx
	movq	32(%rax), %rcx
	movl	(%rdx,%rbx,4), %r12d
	movslq	%r12d, %r13
	movl	(%rcx,%r13,4), %esi
	movq	(%r15), %rdx
	leaq	1(%rbx), %rcx
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	movb	$1, %cl
	cmpl	4(%rdx,%rbx,4), %esi
	jge	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=3
	movq	%rax, %rdx
	movq	40(%rax), %rax
	cmpl	$0, (%rax,%r13,4)
	setne	%cl
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=3
	movzbl	%cl, %edi
	callq	_av_assert2
	movq	-88(%rbp), %r8                  ## 8-byte Reload
	movq	32(%r8), %rax
	movl	(%rax,%r13,4), %r13d
	movq	(%r15), %rcx
	movq	-104(%rbp), %r9                 ## 8-byte Reload
	cmpl	(%rcx,%r9,4), %r13d
	jge	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=3
	leaq	(%rcx,%r9,4), %rdx
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	addq	$2, %rsi
	movq	%rsi, -152(%rbp)                ## 8-byte Spill
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_11 Depth=4
	notl	%r12d
	addl	%r13d, %r12d
	movl	%r12d, %edi
	callq	_dv_rl2vlc_size
	movq	-104(%rbp), %r9                 ## 8-byte Reload
	movq	-88(%rbp), %r8                  ## 8-byte Reload
	movq	16(%r8), %rcx
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	addl	%eax, (%rcx,%rdx,4)
	movq	32(%r8), %rax
	movl	%r13d, %r12d
LBB0_25:                                ##   in Loop: Header=BB0_11 Depth=4
	movl	(%rax,%r14,4), %r13d
	movq	(%r15), %rcx
	leaq	(%rcx,%r9,4), %rdx
	cmpl	(%rcx,%r9,4), %r13d
	jge	LBB0_26
LBB0_11:                                ##   Parent Loop BB0_1 Depth=1
                                        ##     Parent Loop BB0_3 Depth=2
                                        ##       Parent Loop BB0_4 Depth=3
                                        ## =>      This Loop Header: Depth=4
                                        ##           Child Loop BB0_17 Depth 5
	movq	40(%r8), %rdi
	movslq	%r13d, %r14
	movl	(%rdi,%r14,4), %ebx
	movl	%ebx, %esi
	sarl	%esi
	movl	%esi, (%rdi,%r14,4)
	cmpl	$2, %ebx
	jae	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=4
	movl	(%rax,%r14,4), %esi
	cmpl	$63, %esi
	jg	LBB0_24
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=4
	cmpl	(%rdx), %esi
	jl	LBB0_24
## %bb.15:                              ##   in Loop: Header=BB0_11 Depth=4
	movq	-152(%rbp), %rdi                ## 8-byte Reload
	movq	%r9, %r15
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	cmpl	8(%rcx,%rdx,4), %esi
	jl	LBB0_19
## %bb.16:                              ##   in Loop: Header=BB0_11 Depth=4
	movq	24(%r8), %rdx
	movq	-136(%rbp), %r15                ## 8-byte Reload
	.p2align	4, 0x90
LBB0_17:                                ##   Parent Loop BB0_1 Depth=1
                                        ##     Parent Loop BB0_3 Depth=2
                                        ##       Parent Loop BB0_4 Depth=3
                                        ##         Parent Loop BB0_11 Depth=4
                                        ## =>        This Inner Loop Header: Depth=5
	movq	%r15, %rsi
	movl	%r12d, (%rdx,%r15,4)
	incq	%r15
	movl	(%rax,%r14,4), %edi
	cmpl	8(%rcx,%rsi,4), %edi
	jge	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_11 Depth=4
	leaq	1(%r15), %rdi
LBB0_19:                                ##   in Loop: Header=BB0_11 Depth=4
	movq	%rdi, -160(%rbp)                ## 8-byte Spill
	xorl	%edi, %edi
	cmpl	$4, %r15d
	setb	%dil
	callq	_av_assert2
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	32(%rax), %rax
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	40(%rcx), %rcx
	movslq	(%rax,%r14,4), %rax
	movl	(%rcx,%rax,4), %edi
	callq	_av_assert2
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	32(%rax), %rax
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	40(%rcx), %rcx
	movslq	(%rax,%r14,4), %rax
	movl	%r12d, %edi
	notl	%edi
	addl	%eax, %edi
	movl	(%rcx,%rax,4), %esi
	callq	_dv_rl2vlc_size
	movq	%rax, %rbx
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	32(%rax), %rax
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	40(%rcx), %rcx
	movslq	(%rax,%r14,4), %rax
	movl	%r14d, %edi
	notl	%edi
	addl	%eax, %edi
	movl	(%rcx,%rax,4), %esi
	callq	_dv_rl2vlc_size
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	subl	%eax, %ebx
	movq	16(%rcx), %rax
	movl	%r15d, %edx
	addl	%ebx, (%rax,%rdx,4)
	movq	%rdx, %rbx
	movq	24(%rcx), %rax
	cmpl	%r14d, (%rax,%rdx,4)
	jne	LBB0_20
## %bb.21:                              ##   in Loop: Header=BB0_11 Depth=4
	movb	$1, %cl
	cmpl	$2, %r15d
	movq	_mb_area_start@GOTPCREL(%rip), %r15
	ja	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_11 Depth=4
	movl	-160(%rbp), %ecx                ## 4-byte Reload
	cmpl	%r13d, (%rax,%rcx,4)
	setne	%cl
	jmp	LBB0_23
LBB0_20:                                ##   in Loop: Header=BB0_11 Depth=4
	xorl	%ecx, %ecx
	movq	_mb_area_start@GOTPCREL(%rip), %r15
LBB0_23:                                ##   in Loop: Header=BB0_11 Depth=4
	movzbl	%cl, %edi
	callq	_av_assert2
	movq	-88(%rbp), %r8                  ## 8-byte Reload
	movq	24(%r8), %rax
	movl	%r12d, (%rax,%rbx,4)
	movq	32(%r8), %rax
	movl	(%rax,%r14,4), %esi
	movq	-104(%rbp), %r9                 ## 8-byte Reload
LBB0_24:                                ##   in Loop: Header=BB0_11 Depth=4
	movslq	%r12d, %rcx
	movl	%esi, (%rax,%rcx,4)
	jmp	LBB0_25
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=3
	movq	-128(%rbp), %r11                ## 8-byte Reload
	jmp	LBB0_27
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_4 Depth=3
	movq	-128(%rbp), %r11                ## 8-byte Reload
	movl	-80(%rbp,%r11,4), %r14d
LBB0_27:                                ##   in Loop: Header=BB0_4 Depth=3
	movq	24(%r8), %rax
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	movl	%r12d, 4(%rax,%rbx,4)
	movq	-144(%rbp), %rsi                ## 8-byte Reload
	movq	_ff_dv_quant_shifts@GOTPCREL(%rip), %r9
	movq	_ff_dv_quant_offset@GOTPCREL(%rip), %r10
	movq	-136(%rbp), %rdi                ## 8-byte Reload
	movq	-104(%rbp), %rdx                ## 8-byte Reload
	jmp	LBB0_28
	.p2align	4, 0x90
LBB0_30:                                ##   in Loop: Header=BB0_1 Depth=1
	movdqa	-80(%rbp), %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	paddd	%xmm0, %xmm1
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	paddd	%xmm1, %xmm0
	movd	%xmm0, %eax
	addl	-64(%rbp), %eax
	movq	_vs_total_ac_bits@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	jge	LBB0_43
LBB0_31:                                ##   in Loop: Header=BB0_1 Depth=1
	incq	%r11
	cmpq	$5, %r11
	jne	LBB0_1
## %bb.32:                              ##   in Loop: Header=BB0_1 Depth=1
	movdqu	(%rsi), %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	por	%xmm0, %xmm1
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	por	%xmm1, %xmm0
	movd	%xmm0, %eax
	orl	16(%rsi), %eax
	movl	$0, %r11d
	movq	-120(%rbp), %r8                 ## 8-byte Reload
	jne	LBB0_1
## %bb.33:
	movl	$2, %r14d
	jmp	LBB0_34
	.p2align	4, 0x90
LBB0_42:                                ##   in Loop: Header=BB0_34 Depth=1
	addl	%r14d, %r14d
	movq	_vs_total_ac_bits@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	jge	LBB0_43
LBB0_34:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_35 Depth 2
                                        ##       Child Loop BB0_36 Depth 3
	movl	%r14d, %eax
	negl	%eax
	movl	%eax, -88(%rbp)                 ## 4-byte Spill
	movl	$120, %r13d
	xorl	%eax, %eax
	movq	-120(%rbp), %rbx                ## 8-byte Reload
	jmp	LBB0_35
	.p2align	4, 0x90
LBB0_41:                                ##   in Loop: Header=BB0_35 Depth=2
	movl	-96(%rbp), %eax                 ## 4-byte Reload
	incl	%eax
	addq	$48, %rbx
	cmpl	$30, %eax
	je	LBB0_42
LBB0_35:                                ##   Parent Loop BB0_34 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_36 Depth 3
	movl	%eax, -96(%rbp)                 ## 4-byte Spill
	movq	24(%rbx), %rcx
	movq	32(%rbx), %rax
	movslq	(%rcx), %rdi
	movl	(%rax,%rdi,4), %r12d
	cmpl	$63, %r12d
	jle	LBB0_36
	jmp	LBB0_41
	.p2align	4, 0x90
LBB0_39:                                ##   in Loop: Header=BB0_36 Depth=3
	notl	%edi
	addl	%r12d, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_dv_rl2vlc_size
	addl	%eax, %r13d
	movq	32(%rbx), %rax
LBB0_40:                                ##   in Loop: Header=BB0_36 Depth=3
	movl	%r12d, %edi
	movl	(%rax,%r15,4), %r12d
	cmpl	$64, %r12d
	jge	LBB0_41
LBB0_36:                                ##   Parent Loop BB0_34 Depth=1
                                        ##     Parent Loop BB0_35 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	40(%rbx), %rcx
	movslq	%r12d, %r15
	movl	(%rcx,%r15,4), %esi
	cmpl	%r14d, %esi
	jge	LBB0_39
## %bb.37:                              ##   in Loop: Header=BB0_36 Depth=3
	cmpl	-88(%rbp), %esi                 ## 4-byte Folded Reload
	jle	LBB0_39
## %bb.38:                              ##   in Loop: Header=BB0_36 Depth=3
	movl	(%rax,%r15,4), %ecx
	movslq	%edi, %rdx
	movl	%ecx, (%rax,%rdx,4)
	movl	%edi, %r12d
	jmp	LBB0_40
LBB0_43:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_45
## %bb.44:
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_45:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ff_dv_quant_shifts,8,3         ## @ff_dv_quant_shifts
	.comm	_ff_dv_quant_offset,8,3         ## @ff_dv_quant_offset
	.comm	_mb_area_start,8,3              ## @mb_area_start
	.comm	_vs_total_ac_bits,4,2           ## @vs_total_ac_bits
	.no_dead_strip	_dv_guess_qnos
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dv_guess_qnos
_dv_guess_qnos:                         ; @dv_guess_qnos
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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	x21, x1
	mov	x22, #0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #88]
	mov	w8, #16777216
	str	w8, [sp, #80]
	movi.4s	v0, #1, lsl #24
	str	q0, [sp, #64]
Lloh3:
	adrp	x23, _ff_dv_quant_shifts@GOTPAGE
Lloh4:
	ldr	x23, [x23, _ff_dv_quant_shifts@GOTPAGEOFF]
Lloh5:
	adrp	x15, _ff_dv_quant_offset@GOTPAGE
Lloh6:
	ldr	x15, [x15, _ff_dv_quant_offset@GOTPAGEOFF]
	add	x16, sp, #64
Lloh7:
	adrp	x19, _mb_area_start@GOTPAGE
Lloh8:
	ldr	x19, [x19, _mb_area_start@GOTPAGEOFF]
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	mov	x28, x0
	str	x1, [sp, #24]                   ; 8-byte Folded Spill
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
                                        ;       Child Loop BB0_7 Depth 3
                                        ;         Child Loop BB0_14 Depth 4
                                        ;           Child Loop BB0_18 Depth 5
	ldr	w8, [x21, x22, lsl #2]
	cbz	w8, LBB0_31
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w20, #0
	mov	w10, #0
	lsl	x9, x22, #2
	sub	w8, w8, #1
	str	w8, [x21, x9]
	str	wzr, [x16, x9]
	str	x22, [sp, #32]                  ; 8-byte Folded Spill
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=2
	ldr	w10, [sp, #20]                  ; 4-byte Folded Reload
	add	w10, w10, #1
	add	x28, x28, #48
	cmp	w10, #6
	b.eq	LBB0_30
LBB0_4:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_7 Depth 3
                                        ;         Child Loop BB0_14 Depth 4
                                        ;           Child Loop BB0_18 Depth 5
	str	w10, [sp, #20]                  ; 4-byte Folded Spill
	mov	x17, #0
	mov	x1, #0
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=3
	add	x24, x1, #1
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=3
	ldr	x8, [x28, #16]
	ldr	w8, [x8, x1, lsl #2]
	add	w20, w20, w8
	str	w20, [x16, x22, lsl #2]
	add	x17, x17, #1
	mov	x1, x24
	cmp	x24, #4
	b.eq	LBB0_3
LBB0_7:                                 ;   Parent Loop BB0_1 Depth=1
                                        ;     Parent Loop BB0_4 Depth=2
                                        ; =>    This Loop Header: Depth=3
                                        ;         Child Loop BB0_14 Depth 4
                                        ;           Child Loop BB0_18 Depth 5
	lsl	x10, x1, #3
	ldp	x8, x11, [x28]
	ldr	x9, [x8, x10]
	ldr	x12, [x23]
	ldr	w13, [x21, x22, lsl #2]
	ldr	x14, [x15]
	ldr	w11, [x14, x11, lsl #2]
	add	w11, w11, w13
	ldr	x11, [x12, w11, sxtw #3]
	ldr	x10, [x11, x10]
	cmp	x9, x10
	b.eq	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=3
	stp	x1, x17, [sp, #40]              ; 16-byte Folded Spill
	ldr	x10, [x28, #16]
	lsl	x25, x1, #2
	mov	w0, #1
	str	w0, [x10, x25]
	add	x9, x9, #1
	str	x9, [x8, x1, lsl #3]
	ldp	x8, x9, [x28, #24]
	ldr	w27, [x8, x25]
	ldr	w8, [x9, w27, sxtw #2]
	mov	x9, x19
	sxtw	x19, w27
	ldr	x9, [x9]
	add	x24, x1, #1
	ldr	w9, [x9, x24, lsl #2]
	cmp	w8, w9
	b.ge	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=3
	ldr	x8, [x28, #40]
	ldr	w8, [x8, x19, lsl #2]
	cmp	w8, #0
	cset	w0, ne
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=3
	bl	_av_assert2
	ldr	x8, [x28, #32]
	ldr	w26, [x8, x19, lsl #2]
Lloh9:
	adrp	x19, _mb_area_start@GOTPAGE
Lloh10:
	ldr	x19, [x19, _mb_area_start@GOTPAGEOFF]
	ldr	x9, [x19]
	add	x10, x9, x24, lsl #2
	ldr	w11, [x10]
	cmp	w26, w11
	b.ge	LBB0_27
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=3
	ldr	x11, [sp, #40]                  ; 8-byte Folded Reload
	add	x11, x11, #2
	str	x11, [sp, #56]                  ; 8-byte Folded Spill
	b	LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_14 Depth=4
	mvn	w8, w27
	add	w0, w26, w8
	bl	_dv_rl2vlc_size
	ldr	x8, [x28, #16]
	ldr	w9, [x8, x25]
	add	w9, w9, w0
	str	w9, [x8, x25]
	ldr	x8, [x28, #32]
	mov	x27, x26
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=4
	ldr	w26, [x8, x23, lsl #2]
	ldr	x9, [x19]
	add	x10, x9, x24, lsl #2
	ldr	w11, [x10]
	cmp	w26, w11
	b.ge	LBB0_28
LBB0_14:                                ;   Parent Loop BB0_1 Depth=1
                                        ;     Parent Loop BB0_4 Depth=2
                                        ;       Parent Loop BB0_7 Depth=3
                                        ; =>      This Loop Header: Depth=4
                                        ;           Child Loop BB0_18 Depth 5
	ldr	x11, [x28, #40]
	sxtw	x23, w26
	sbfiz	x12, x26, #2, #32
	ldr	w13, [x11, x12]
	asr	w1, w13, #1
	str	w1, [x11, x12]
	cmp	w13, #2
	b.hs	LBB0_12
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=4
	ldr	w11, [x8, x23, lsl #2]
	ldr	w10, [x10]
	cmp	w11, #63
	ccmp	w11, w10, #8, le
	b.lt	LBB0_26
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=4
	ldr	x20, [sp, #56]                  ; 8-byte Folded Reload
	ldr	w10, [x9, x20, lsl #2]
	mov	x22, x24
	cmp	w11, w10
	b.lt	LBB0_20
; %bb.17:                               ;   in Loop: Header=BB0_14 Depth=4
	ldr	x10, [x28, #24]
	add	x10, x10, #4
	add	x11, x9, #12
	ldr	x9, [sp, #48]                   ; 8-byte Folded Reload
LBB0_18:                                ;   Parent Loop BB0_1 Depth=1
                                        ;     Parent Loop BB0_4 Depth=2
                                        ;       Parent Loop BB0_7 Depth=3
                                        ;         Parent Loop BB0_14 Depth=4
                                        ; =>        This Inner Loop Header: Depth=5
	lsl	x12, x9, #2
	str	w27, [x10, x12]
	ldr	w13, [x8, x23, lsl #2]
	ldr	w12, [x11, x12]
	add	x9, x9, #1
	cmp	w13, w12
	b.ge	LBB0_18
; %bb.19:                               ;   in Loop: Header=BB0_14 Depth=4
	add	x22, x9, #1
	add	x20, x9, #2
LBB0_20:                                ;   in Loop: Header=BB0_14 Depth=4
	cmp	w22, #4
	cset	w0, lo
	bl	_av_assert2
	ldp	x9, x8, [x28, #32]
	lsl	x19, x23, #2
	ldrsw	x9, [x9, x19]
	ldr	w0, [x8, x9, lsl #2]
	bl	_av_assert2
	ldp	x8, x9, [x28, #32]
	ldrsw	x8, [x8, x19]
	mvn	w10, w27
	add	w0, w8, w10
	ldr	w1, [x9, x8, lsl #2]
	bl	_dv_rl2vlc_size
	mov	x21, x0
	ldp	x8, x9, [x28, #32]
	ldrsw	x8, [x8, x19]
	mvn	w10, w26
	add	w0, w8, w10
	ldr	w1, [x9, x8, lsl #2]
	bl	_dv_rl2vlc_size
	ldr	x8, [x28, #16]
	and	x19, x22, #0xffffffff
	lsl	x9, x19, #2
	ldr	w10, [x8, x9]
	sub	w11, w21, w0
	add	w10, w10, w11
	str	w10, [x8, x9]
	ldr	x8, [x28, #24]
	ldr	w9, [x8, x9]
	cmp	w9, w26
	b.ne	LBB0_23
; %bb.21:                               ;   in Loop: Header=BB0_14 Depth=4
	cmp	w22, #2
	b.ls	LBB0_24
; %bb.22:                               ;   in Loop: Header=BB0_14 Depth=4
	mov	w0, #1
	b	LBB0_25
LBB0_23:                                ;   in Loop: Header=BB0_14 Depth=4
	mov	w0, #0
	b	LBB0_25
LBB0_24:                                ;   in Loop: Header=BB0_14 Depth=4
	and	x9, x20, #0xffffffff
	ldr	w8, [x8, x9, lsl #2]
	cmp	w8, w26
	cset	w0, ne
LBB0_25:                                ;   in Loop: Header=BB0_14 Depth=4
	bl	_av_assert2
	ldr	x8, [x28, #24]
	str	w27, [x8, x19, lsl #2]
	ldr	x8, [x28, #32]
	ldr	w11, [x8, x23, lsl #2]
Lloh11:
	adrp	x19, _mb_area_start@GOTPAGE
Lloh12:
	ldr	x19, [x19, _mb_area_start@GOTPAGEOFF]
LBB0_26:                                ;   in Loop: Header=BB0_14 Depth=4
	str	w11, [x8, w27, sxtw #2]
	b	LBB0_13
LBB0_27:                                ;   in Loop: Header=BB0_7 Depth=3
	add	x16, sp, #64
	b	LBB0_29
LBB0_28:                                ;   in Loop: Header=BB0_7 Depth=3
	ldp	x21, x22, [sp, #24]             ; 16-byte Folded Reload
	add	x16, sp, #64
	ldr	w20, [x16, x22, lsl #2]
Lloh13:
	adrp	x23, _ff_dv_quant_shifts@GOTPAGE
Lloh14:
	ldr	x23, [x23, _ff_dv_quant_shifts@GOTPAGEOFF]
LBB0_29:                                ;   in Loop: Header=BB0_7 Depth=3
	ldr	x8, [x28, #24]
	str	w27, [x8, x24, lsl #2]
Lloh15:
	adrp	x15, _ff_dv_quant_offset@GOTPAGE
Lloh16:
	ldr	x15, [x15, _ff_dv_quant_offset@GOTPAGEOFF]
	ldp	x1, x17, [sp, #40]              ; 16-byte Folded Reload
	b	LBB0_6
LBB0_30:                                ;   in Loop: Header=BB0_1 Depth=1
Lloh17:
	adrp	x8, _vs_total_ac_bits@GOTPAGE
Lloh18:
	ldr	x8, [x8, _vs_total_ac_bits@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	ldr	q0, [sp, #64]
	ldr	w9, [sp, #80]
	addv.4s	s0, v0
	fmov	w10, s0
	add	w9, w10, w9
	cmp	w8, w9
	b.ge	LBB0_42
LBB0_31:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x22, x22, #1
	cmp	x22, #5
	b.ne	LBB0_1
; %bb.32:                               ;   in Loop: Header=BB0_1 Depth=1
	mov	x22, #0
	ldr	q0, [x21]
	ldr	w8, [x21, #16]
	ext.16b	v1, v0, v0, #8
	orr.8b	v0, v0, v1
	mov.s	w9, v0[1]
	fmov	w10, s0
	orr	w9, w10, w9
	ldr	x28, [sp, #8]                   ; 8-byte Folded Reload
	orr	w8, w9, w8
	cbnz	w8, LBB0_1
; %bb.33:
	mov	w19, #2
	b	LBB0_35
LBB0_34:                                ;   in Loop: Header=BB0_35 Depth=1
	lsl	w19, w19, #1
Lloh20:
	adrp	x8, _vs_total_ac_bits@GOTPAGE
Lloh21:
	ldr	x8, [x8, _vs_total_ac_bits@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ge	LBB0_42
LBB0_35:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_37 Depth 2
                                        ;       Child Loop BB0_40 Depth 3
	mov	w21, #0
	neg	w22, w19
	mov	w20, #120
	ldr	x23, [sp, #8]                   ; 8-byte Folded Reload
	b	LBB0_37
LBB0_36:                                ;   in Loop: Header=BB0_37 Depth=2
	add	w21, w21, #1
	add	x23, x23, #48
	cmp	w21, #30
	b.eq	LBB0_34
LBB0_37:                                ;   Parent Loop BB0_35 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_40 Depth 3
	ldp	x9, x8, [x23, #24]
	ldrsw	x9, [x9]
	ldr	w24, [x8, x9, lsl #2]
	cmp	w24, #63
	b.le	LBB0_40
	b	LBB0_36
LBB0_38:                                ;   in Loop: Header=BB0_40 Depth=3
	mvn	w8, w9
	add	w0, w24, w8
	bl	_dv_rl2vlc_size
	add	w20, w20, w0
	ldr	x8, [x23, #32]
	mov	x9, x24
LBB0_39:                                ;   in Loop: Header=BB0_40 Depth=3
	ldr	w24, [x8, x25, lsl #2]
	cmp	w24, #64
	b.ge	LBB0_36
LBB0_40:                                ;   Parent Loop BB0_35 Depth=1
                                        ;     Parent Loop BB0_37 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x10, [x23, #40]
	sxtw	x25, w24
	ldr	w1, [x10, w24, sxtw #2]
	cmp	w1, w19
	ccmp	w1, w22, #4, lt
	b.le	LBB0_38
; %bb.41:                               ;   in Loop: Header=BB0_40 Depth=3
	ldr	w10, [x8, x25, lsl #2]
	str	w10, [x8, w9, sxtw #2]
	b	LBB0_39
LBB0_42:
	ldr	x8, [sp, #88]
Lloh23:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh24:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_44
; %bb.43:
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_44:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_ff_dv_quant_shifts,8,3         ; @ff_dv_quant_shifts
	.comm	_ff_dv_quant_offset,8,3         ; @ff_dv_quant_offset
	.comm	_mb_area_start,8,3              ; @mb_area_start
	.comm	_vs_total_ac_bits,4,2           ; @vs_total_ac_bits
	.no_dead_strip	_dv_guess_qnos
.subsections_via_symbols
