	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_scale_factors
_parse_scale_factors:                   ## @parse_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	$20, %esi
	callq	_ensure_bits
	xorl	%ecx, %ecx
	testq	%rax, %rax
	jne	LBB0_28
## %bb.1:
	movq	_ff_dca_vlc_fst_rsd_amp@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	movl	$2, %edx
	callq	_parse_vlc
	movl	%eax, %r10d
	leaq	4(%r14), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r11d, %r11d
	movq	%r14, %rdi
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
LBB0_22:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%r15d, %eax
	subl	%r10d, %eax
	sarl	%eax
	subl	%eax, %r15d
LBB0_23:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%r15d, %eax
LBB0_24:                                ##   in Loop: Header=BB0_2 Depth=1
	addl	%r12d, %r13d
	movslq	%r13d, %rcx
	movl	%eax, (%rdi,%rcx,4)
LBB0_25:                                ##   in Loop: Header=BB0_2 Depth=1
	addl	%r12d, %r11d
	cmpl	$7, %r11d
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	jge	LBB0_26
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_14 Depth 2
	movl	%r11d, %r12d
	movl	%r10d, %r15d
	movslq	%r11d, %rax
	movq	%rdi, %r14
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	%r10d, (%rdi,%rax,4)
	movq	%rbx, %rdi
	movl	$20, %esi
	callq	_ensure_bits
	testq	%rax, %rax
	jne	LBB0_27
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movq	_ff_dca_vlc_rsd_apprx@GOTPCREL(%rip), %rsi
	movl	$1, %edx
	callq	_parse_vlc
	movl	%eax, %r13d
	movl	$7, %eax
	subl	%r12d, %eax
	cmpl	%eax, %r13d
	jge	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movl	$20, %esi
	callq	_ensure_bits
	testq	%rax, %rax
	jne	LBB0_27
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movq	_ff_dca_vlc_rsd_amp@GOTPCREL(%rip), %rsi
	movl	$2, %edx
	callq	_parse_vlc
	movl	%eax, %r10d
	testb	$1, %r10b
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	sarl	%r10d
	movl	%r15d, %eax
	subl	%r10d, %eax
	movl	%eax, %r10d
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%r10d
	sarl	%r10d
	addl	%r15d, %r10d
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	leal	1(%r13), %r11d
	cmpl	$1, %r13d
	je	LBB0_17
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$3, %r13d
	jne	LBB0_11
## %bb.19:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	%r10d, %eax
	subl	%r15d, %eax
	jle	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %ecx
	sarl	$2, %ecx
	addl	%r15d, %ecx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	%ecx, 4(%rdi,%rdx,4)
	movl	%eax, %ecx
	sarl	%ecx
	addl	%r15d, %ecx
	movl	%ecx, 8(%rdi,%rdx,4)
	leal	(%rax,%rax,2), %eax
	sarl	$2, %eax
	addl	%r15d, %eax
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%r10d, %eax
	subl	%r15d, %eax
	jle	LBB0_22
## %bb.18:                              ##   in Loop: Header=BB0_2 Depth=1
	sarl	%eax
	addl	%r15d, %eax
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	testl	%r13d, %r13d
	jle	LBB0_25
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	%r10d, %r14d
	subl	%r15d, %r14d
	movl	%r11d, %r8d
	decq	%r8
	movl	$1, %ecx
	cmpl	$2, %r11d
	je	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	leal	(%r10,%r10), %r13d
	subl	%r15d, %r13d
	subl	%r15d, %r13d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rax,%rcx,4), %rbx
	movq	%r8, %r9
	andq	$-2, %r9
	negq	%r9
	movl	$1, %ecx
	movl	%r13d, %edi
	movl	%r14d, %esi
	.p2align	4, 0x90
LBB0_14:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%esi, %eax
	cltd
	idivl	%r11d
	addl	%r15d, %eax
	movl	%eax, -4(%rbx,%rcx,4)
	movl	%edi, %eax
	cltd
	idivl	%r11d
	addl	%r15d, %eax
	movl	%eax, (%rbx,%rcx,4)
	addl	%r13d, %esi
	addl	%r13d, %edi
	leaq	(%r9,%rcx), %rax
	addq	$2, %rax
	addq	$2, %rcx
	cmpq	$1, %rax
	jne	LBB0_14
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	testb	$1, %r8b
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	je	LBB0_25
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=1
	imull	%ecx, %r14d
	movl	%r14d, %eax
	cltd
	idivl	%r11d
	addl	%r15d, %eax
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	addq	%rcx, %rdx
	movl	%eax, (%rdi,%rdx,4)
	jmp	LBB0_25
LBB0_21:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%r15d, %eax
	subl	%r10d, %eax
	movl	%eax, %ecx
	leal	(%rax,%rax,2), %edx
                                        ## kill: def $eax killed $eax killed $rax
	sarl	$2, %eax
	movl	%r15d, %esi
	subl	%eax, %esi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	%esi, 4(%rdi,%rbx,4)
	sarl	%ecx
	movl	%r15d, %eax
	subl	%ecx, %eax
	movl	%eax, 8(%rdi,%rbx,4)
	sarl	$2, %edx
	subl	%edx, %r15d
	jmp	LBB0_23
LBB0_26:
	movl	%r11d, %eax
	movl	%r10d, (%rdi,%rax,4)
LBB0_27:
	xorl	%ecx, %ecx
	jmp	LBB0_28
LBB0_4:
	movl	4(%rbx), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_av_log
	movl	$-1, %ecx
LBB0_28:
	movl	%ecx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ff_dca_vlc_fst_rsd_amp,4,2     ## @ff_dca_vlc_fst_rsd_amp
	.comm	_ff_dca_vlc_rsd_apprx,4,2       ## @ff_dca_vlc_rsd_apprx
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid scale factor distance\n"

	.comm	_ff_dca_vlc_rsd_amp,4,2         ## @ff_dca_vlc_rsd_amp
	.no_dead_strip	_parse_scale_factors
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_scale_factors
_parse_scale_factors:                   ; @parse_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
	mov	x19, x1
	mov	x20, x0
	mov	w1, #20
	bl	_ensure_bits
	cbz	x0, LBB0_3
LBB0_1:
	mov	w8, #0
LBB0_2:
	mov	x0, x8
	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
LBB0_3:
Lloh0:
	adrp	x1, _ff_dca_vlc_fst_rsd_amp@GOTPAGE
Lloh1:
	ldr	x1, [x1, _ff_dca_vlc_fst_rsd_amp@GOTPAGEOFF]
	mov	x0, x20
	mov	w2, #2
	bl	_parse_vlc
	mov	w23, #0
	add	x24, x19, #8
Lloh2:
	adrp	x21, _ff_dca_vlc_rsd_apprx@GOTPAGE
Lloh3:
	ldr	x21, [x21, _ff_dca_vlc_rsd_apprx@GOTPAGEOFF]
	mov	w25, #7
Lloh4:
	adrp	x22, _ff_dca_vlc_rsd_amp@GOTPAGE
Lloh5:
	ldr	x22, [x22, _ff_dca_vlc_rsd_amp@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:                                 ;   in Loop: Header=BB0_7 Depth=1
	sub	w8, w27, w0
	sub	w8, w27, w8, asr #1
	subs	w9, w0, w27
	add	w9, w27, w9, asr #1
	csel	w8, w8, w9, le
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	w9, w26, w23
	str	w8, [x19, w9, sxtw #2]
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	w23, w28, w26
	cmp	w23, #7
	b.ge	LBB0_24
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_19 Depth 2
                                        ;     Child Loop BB0_22 Depth 2
	mov	x27, x0
	str	w0, [x19, w23, sxtw #2]
	mov	x0, x20
	mov	w1, #20
	bl	_ensure_bits
	cbnz	x0, LBB0_1
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	sxtw	x26, w23
	mov	x0, x20
	mov	x1, x21
	mov	w2, #1
	bl	_parse_vlc
	sub	w8, w25, w26
	cmp	w0, w8
	b.ge	LBB0_23
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x23, x0
	mov	x0, x20
	mov	w1, #20
	bl	_ensure_bits
	cbnz	x0, LBB0_1
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	add	w28, w23, #1
	mov	x0, x20
	mov	x1, x22
	mov	w2, #2
	bl	_parse_vlc
	sub	w8, w27, w0, asr #1
	add	w9, w0, #1
	add	w9, w27, w9, asr #1
	tst	w0, #0x1
	csel	w0, w8, w9, eq
	cmp	w23, #1
	b.eq	LBB0_4
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	cmp	w23, #3
	b.ne	LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=1
	subs	w8, w0, w27
	b.le	LBB0_17
; %bb.13:                               ;   in Loop: Header=BB0_7 Depth=1
	add	w9, w27, w8, asr #2
	add	x10, x19, x26, lsl #2
	add	w11, w27, w8, asr #1
	stp	w9, w11, [x10, #4]
	add	w8, w8, w8, lsl #1
	add	w8, w27, w8, asr #2
	b	LBB0_5
LBB0_14:                                ;   in Loop: Header=BB0_7 Depth=1
	cmp	w23, #1
	b.lt	LBB0_6
; %bb.15:                               ;   in Loop: Header=BB0_7 Depth=1
	sub	w8, w0, w27
	sub	x10, x28, #1
	cmp	x10, #4
	b.hs	LBB0_18
; %bb.16:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	w9, #1
	b	LBB0_21
LBB0_17:                                ;   in Loop: Header=BB0_7 Depth=1
	sub	w8, w27, w0
	sub	w9, w27, w8, asr #2
	add	x10, x19, x26, lsl #2
	sub	w11, w27, w8, asr #1
	stp	w9, w11, [x10, #4]
	add	w8, w8, w8, lsl #1
	sub	w8, w27, w8, asr #2
	b	LBB0_5
LBB0_18:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w11, #0
	lsl	w16, w0, #2
	and	x12, x10, #0xfffffffffffffffc
	orr	x9, x12, #0x1
	lsl	w14, w0, #1
	lsl	w15, w27, #1
	add	w13, w14, w0
	add	w17, w15, w27
	sub	w13, w13, w17
	sub	w14, w14, w15
	mov	x15, x12
	sub	w16, w16, w27, lsl #2
	add	x17, x24, x26, lsl #2
LBB0_19:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	w1, w8, w11
	add	w2, w14, w11
	add	w3, w13, w11
	add	w11, w16, w11
	sdiv	w1, w1, w28
	sdiv	w2, w2, w28
	sdiv	w3, w3, w28
	add	w1, w1, w27
	add	w2, w2, w27
	add	w3, w3, w27
	stp	w1, w2, [x17, #-4]
	sdiv	w1, w11, w28
	add	w1, w1, w27
	stp	w3, w1, [x17, #4]
	add	x17, x17, #16
	subs	x15, x15, #4
	b.ne	LBB0_19
; %bb.20:                               ;   in Loop: Header=BB0_7 Depth=1
	cmp	x10, x12
	b.eq	LBB0_6
LBB0_21:                                ;   in Loop: Header=BB0_7 Depth=1
	mul	w10, w8, w9
	add	x11, x9, x26
	add	x11, x19, x11, lsl #2
	sub	x9, x28, x9
LBB0_22:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sdiv	w12, w10, w28
	add	w12, w12, w27
	str	w12, [x11], #4
	add	w10, w10, w8
	subs	x9, x9, #1
	b.ne	LBB0_22
	b	LBB0_6
LBB0_23:
	ldr	w0, [x20, #4]
Lloh6:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
	mov	w8, #-1
	b	LBB0_2
LBB0_24:
	mov	w8, #0
	str	w0, [x19, w23, uxtw #2]
	b	LBB0_2
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ff_dca_vlc_fst_rsd_amp,4,2     ; @ff_dca_vlc_fst_rsd_amp
	.comm	_ff_dca_vlc_rsd_apprx,4,2       ; @ff_dca_vlc_rsd_apprx
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid scale factor distance\n"

	.comm	_ff_dca_vlc_rsd_amp,4,2         ; @ff_dca_vlc_rsd_amp
	.no_dead_strip	_parse_scale_factors
.subsections_via_symbols
