	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_scale_factors
_decode_scale_factors:                  ## @decode_scale_factors
	.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
	cmpl	$0, (%rdi)
	jle	LBB0_25
## %bb.1:
	movq	%rdi, %r15
	leaq	44(%rdi), %r12
	movq	32(%rdi), %rcx
	xorl	%r14d, %r14d
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	movslq	(%r15), %rax
	cmpq	%rax, %r14
	jge	LBB0_25
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
                                        ##     Child Loop BB0_11 Depth 2
                                        ##     Child Loop BB0_16 Depth 2
                                        ##     Child Loop BB0_23 Depth 2
	movq	8(%r15), %rax
	movslq	(%rax,%r14,4), %rax
	imulq	$56, %rax, %r13
	movq	8(%rcx,%r13), %rsi
	movq	16(%rcx,%r13), %rdi
	xorl	%eax, %eax
	testq	%rdi, %rdi
	sete	%al
	movq	(%rsi,%rax,8), %rax
	movq	%rax, (%rcx,%r13)
	movslq	16(%r15), %r9
	cmpl	$0, 24(%rcx,%r13)
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%r9d, %r9d
	jle	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	24(%r15), %r8
	movq	48(%r15), %rbx
	movq	(%rbx,%r8,8), %r8
	movq	32(%rcx,%r13), %rbx
	movq	(%r8,%rbx,8), %rbx
	movq	(%rsi,%rdi,8), %rsi
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movslq	(%rbx,%rdi,4), %rdx
	movl	(%rsi,%rdx,4), %edx
	movl	%edx, (%rax,%rdi,4)
	incq	%rdi
	movslq	16(%r15), %rdx
	cmpq	%rdx, %rdi
	jl	LBB0_5
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%rax,%r9,4), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	cmpl	$0, 48(%rcx,%r13)
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_get_bits1
	movq	32(%r15), %rcx
	testl	%eax, %eax
	je	LBB0_21
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	cmpl	$0, 24(%rcx,%r13)
	je	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, 16(%r15)
	jle	LBB0_20
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	_sf_rl_vlc@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_VLCBITS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_SCALERLMAXDEPTH@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	callq	_get_vlc2
	testl	%eax, %eax
	je	LBB0_17
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=2
	cmpl	$1, %eax
	je	LBB0_20
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=2
	movq	_scale_rl_run@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cltq
	movl	(%rcx,%rax,4), %ebx
	movq	_scale_rl_level@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%r12, %rdi
	movl	(%rcx,%rax,4), %r12d
	callq	_get_bits1
                                        ## kill: def $eax killed $eax def $rax
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_11 Depth=2
	movq	%r12, %rdi
	movl	$14, %esi
	callq	_get_bits
	movq	%rax, %rbx
	movl	%ebx, %r12d
	sarl	$6, %r12d
	andl	$1, %eax
	shrl	%ebx
	andl	$31, %ebx
LBB0_18:                                ##   in Loop: Header=BB0_11 Depth=2
	addl	%r14d, %ebx
	cmpl	16(%r15), %ebx
	jge	LBB0_27
## %bb.19:                              ##   in Loop: Header=BB0_11 Depth=2
	leal	-1(%rax), %ecx
	xorl	%r12d, %ecx
	subl	%eax, %ecx
	movq	32(%r15), %rax
	movq	(%rax,%r13), %rax
	movslq	%ebx, %rdx
	movl	(%rax,%rdx,4), %esi
	addl	%esi, %ecx
	incl	%ecx
	movl	%ecx, (%rax,%rdx,4)
	incl	%ebx
	movl	%ebx, %r14d
	cmpl	16(%r15), %ebx
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	jl	LBB0_11
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	movl	$2, %esi
	callq	_get_bits
	movq	%rax, %rcx
	incl	%ecx
	movq	32(%r15), %rax
	movl	%ecx, 40(%rax,%r13)
	movq	(%rax,%r13), %rbx
	cmpq	-48(%rbp), %rbx                 ## 8-byte Folded Reload
	jae	LBB0_20
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	$45, %eax
	xorl	%edx, %edx
	idivl	%ecx
	movl	%eax, %r14d
	.p2align	4, 0x90
LBB0_16:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	_sf_vlc@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SCALEVLCBITS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_SCALEMAXDEPTH@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	callq	_get_vlc2
                                        ## kill: def $eax killed $eax def $rax
	addl	%eax, %r14d
	addl	$-60, %r14d
	movl	%r14d, (%rbx)
	addq	$4, %rbx
	cmpq	-48(%rbp), %rbx                 ## 8-byte Folded Reload
	jb	LBB0_16
LBB0_20:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	32(%r15), %rcx
	xorl	%eax, %eax
	cmpq	$0, 16(%rcx,%r13)
	sete	%al
	movq	%rax, 16(%rcx,%r13)
	movq	24(%r15), %rax
	movq	%rax, 32(%rcx,%r13)
	movl	$1, 24(%rcx,%r13)
	movq	-56(%rbp), %r14                 ## 8-byte Reload
LBB0_21:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rcx,%r13), %rbx
	movl	(%rbx), %eax
	.p2align	4, 0x90
LBB0_23:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%eax, 44(%rcx,%r13)
	addq	$4, %rbx
	cmpq	-48(%rbp), %rbx                 ## 8-byte Folded Reload
	jae	LBB0_24
## %bb.22:                              ##   in Loop: Header=BB0_23 Depth=2
	movl	(%rbx), %esi
	movl	%eax, %edi
	callq	_FFMAX
	movq	32(%r15), %rcx
	jmp	LBB0_23
LBB0_25:
	xorl	%eax, %eax
	jmp	LBB0_26
LBB0_27:
	movl	40(%r15), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_26:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sf_vlc,4,2                     ## @sf_vlc
	.comm	_SCALEVLCBITS,4,2               ## @SCALEVLCBITS
	.comm	_SCALEMAXDEPTH,4,2              ## @SCALEMAXDEPTH
	.comm	_sf_rl_vlc,4,2                  ## @sf_rl_vlc
	.comm	_VLCBITS,4,2                    ## @VLCBITS
	.comm	_SCALERLMAXDEPTH,4,2            ## @SCALERLMAXDEPTH
	.comm	_scale_rl_run,8,3               ## @scale_rl_run
	.comm	_scale_rl_level,8,3             ## @scale_rl_level
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid scale factor coding\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.no_dead_strip	_decode_scale_factors
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_scale_factors
_decode_scale_factors:                  ; @decode_scale_factors
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_24
; %bb.1:
	mov	x19, x0
	mov	x21, #0
	add	x20, x0, #44
	ldr	x8, [x0, #32]
	mov	w22, #56
Lloh0:
	adrp	x25, _SCALEMAXDEPTH@GOTPAGE
Lloh1:
	ldr	x25, [x25, _SCALEMAXDEPTH@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x21, #1
	ldrsw	x9, [x19]
	cmp	x21, x9
	b.ge	LBB0_24
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
                                        ;     Child Loop BB0_11 Depth 2
                                        ;     Child Loop BB0_19 Depth 2
                                        ;     Child Loop BB0_22 Depth 2
	ldr	x9, [x19, #8]
	ldrsw	x28, [x9, x21, lsl #2]
	madd	x11, x28, x22, x8
	ldp	x12, x13, [x11, #8]
	cmp	x13, #0
	cset	w9, eq
	ldr	x9, [x12, w9, uxtw #3]
	str	x9, [x11]
	ldrsw	x10, [x19, #16]
	ldr	w11, [x11, #24]
	cmp	w11, #0
	ccmp	w10, #1, #8, ne
	b.lt	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x11, #0
	ldr	x14, [x19, #48]
	ldr	x15, [x19, #24]
	ldr	x14, [x14, x15, lsl #3]
	madd	x15, x28, x22, x8
	ldr	x15, [x15, #32]
	ldr	x14, [x14, x15, lsl #3]
	ldr	x12, [x12, x13, lsl #3]
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsl	x13, x11, #2
	ldrsw	x15, [x14, x13]
	ldr	w15, [x12, x15, lsl #2]
	str	w15, [x9, x13]
	add	x11, x11, #1
	ldrsw	x13, [x19, #16]
	cmp	x11, x13
	b.lt	LBB0_5
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x26, x9, x10, lsl #2
	madd	x9, x28, x22, x8
	ldr	w9, [x9, #48]
	cbz	w9, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	bl	_get_bits1
	ldr	x8, [x19, #32]
	cbz	w0, LBB0_21
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	madd	x8, x28, x22, x8
	ldr	w8, [x8, #24]
	cbz	w8, LBB0_17
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x19, #16]
	cmp	w8, #1
	b.lt	LBB0_20
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	w27, #0
LBB0_11:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
Lloh2:
	adrp	x8, _sf_rl_vlc@GOTPAGE
Lloh3:
	ldr	x8, [x8, _sf_rl_vlc@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _VLCBITS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _VLCBITS@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
Lloh8:
	adrp	x8, _SCALERLMAXDEPTH@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SCALERLMAXDEPTH@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
	mov	x0, x20
	bl	_get_vlc2
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	cmp	w0, #1
	b.eq	LBB0_20
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=2
Lloh11:
	adrp	x8, _scale_rl_run@GOTPAGE
Lloh12:
	ldr	x8, [x8, _scale_rl_run@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	sbfiz	x9, x0, #2, #32
	ldr	w24, [x8, x9]
Lloh14:
	adrp	x8, _scale_rl_level@GOTPAGE
Lloh15:
	ldr	x8, [x8, _scale_rl_level@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	ldr	w23, [x8, x9]
	mov	x0, x20
	bl	_get_bits1
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_11 Depth=2
	mov	x0, x20
	mov	w1, #14
	bl	_get_bits
	mov	x8, x0
	asr	w23, w8, #6
	and	w0, w8, #0x1
	ubfx	w24, w8, #1, #5
LBB0_15:                                ;   in Loop: Header=BB0_11 Depth=2
	ldr	w9, [x19, #16]
	add	w8, w24, w27
	cmp	w8, w9
	b.ge	LBB0_25
; %bb.16:                               ;   in Loop: Header=BB0_11 Depth=2
	sub	w9, w0, #1
	ldr	x10, [x19, #32]
	mul	x11, x28, x22
	ldr	x10, [x10, x11]
	eor	w9, w9, w23
	sbfiz	x11, x8, #2, #32
	ldr	w12, [x10, x11]
	sub	w9, w9, w0
	add	w9, w9, w12
	add	w9, w9, #1
	str	w9, [x10, x11]
	add	w27, w8, #1
	ldr	w8, [x19, #16]
	cmp	w27, w8
	b.lt	LBB0_11
	b	LBB0_20
LBB0_17:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	mov	w1, #2
	bl	_get_bits
	add	w8, w0, #1
	ldr	x9, [x19, #32]
	madd	x9, x28, x22, x9
	str	w8, [x9, #40]
	ldr	x23, [x9]
	cmp	x23, x26
	b.hs	LBB0_20
; %bb.18:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	w9, #45
	sdiv	w27, w9, w8
LBB0_19:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
Lloh17:
	adrp	x8, _sf_vlc@GOTPAGE
Lloh18:
	ldr	x8, [x8, _sf_vlc@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	adrp	x8, _SCALEVLCBITS@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SCALEVLCBITS@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	ldr	w3, [x25]
	mov	x0, x20
	bl	_get_vlc2
	add	w8, w27, w0
	sub	w27, w8, #60
	str	w27, [x23], #4
	cmp	x23, x26
	b.lo	LBB0_19
LBB0_20:                                ;   in Loop: Header=BB0_3 Depth=1
	mul	x9, x28, x22
	ldp	x10, x8, [x19, #24]
	add	x9, x8, x9
	ldr	x11, [x9, #16]
	cmp	x11, #0
	cset	w11, eq
	str	x11, [x9, #16]
	str	x10, [x9, #32]
	mov	w10, #1
	str	w10, [x9, #24]
LBB0_21:                                ;   in Loop: Header=BB0_3 Depth=1
	mul	x9, x28, x22
	add	x9, x8, x9
	ldr	x23, [x9]
	ldr	w0, [x23], #4
LBB0_22:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	str	w0, [x9, #44]
	cmp	x23, x26
	b.hs	LBB0_2
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=2
	ldr	w1, [x23], #4
	bl	_FFMAX
	ldr	x8, [x19, #32]
	mul	x9, x28, x22
	add	x9, x8, x9
	b	LBB0_22
LBB0_24:
	mov	w0, #0
	b	LBB0_26
LBB0_25:
	ldr	w0, [x19, #40]
Lloh23:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
Lloh26:
	adrp	x2, l_.str@PAGE
Lloh27:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
Lloh28:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh29:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
LBB0_26:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_sf_vlc,4,2                     ; @sf_vlc
	.comm	_SCALEVLCBITS,4,2               ; @SCALEVLCBITS
	.comm	_SCALEMAXDEPTH,4,2              ; @SCALEMAXDEPTH
	.comm	_sf_rl_vlc,4,2                  ; @sf_rl_vlc
	.comm	_VLCBITS,4,2                    ; @VLCBITS
	.comm	_SCALERLMAXDEPTH,4,2            ; @SCALERLMAXDEPTH
	.comm	_scale_rl_run,8,3               ; @scale_rl_run
	.comm	_scale_rl_level,8,3             ; @scale_rl_level
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid scale factor coding\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.no_dead_strip	_decode_scale_factors
.subsections_via_symbols
