	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_scale
_parse_scale:                           ## @parse_scale
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r14
	movq	%rdi, %r15
	cmpl	$6, %edx
	jl	LBB0_3
## %bb.1:
	movq	_ff_dca_scale_factor_quant7@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	%r13, %rdi
	callq	_FF_ARRAY_ELEMS
	movl	%eax, %r12d
	jmp	LBB0_2
LBB0_3:
	movq	_ff_dca_scale_factor_quant6@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	%r13, %rdi
	callq	_FF_ARRAY_ELEMS
	movl	%eax, %r12d
	cmpl	$5, %ebx
	jne	LBB0_4
LBB0_2:
	leaq	4(%r15), %rdi
	incl	%ebx
	movl	%ebx, %esi
	callq	_get_bits
                                        ## kill: def $eax killed $eax def $rax
	jmp	LBB0_5
LBB0_4:
	leaq	4(%r15), %rdi
	movq	_ff_dca_vlc_scale_factor@GOTPCREL(%rip), %rsi
	movl	%ebx, %edx
	callq	_dca_get_vlc
	addl	(%r14), %eax
LBB0_5:
	movl	%eax, (%r14)
	cmpl	%r12d, %eax
	jae	LBB0_6
## %bb.7:
	cltq
	leaq	(,%rax,4), %rax
	addq	%r13, %rax
	jmp	LBB0_8
LBB0_6:
	movl	(%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
LBB0_8:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ff_dca_scale_factor_quant7,8,3 ## @ff_dca_scale_factor_quant7
	.comm	_ff_dca_scale_factor_quant6,8,3 ## @ff_dca_scale_factor_quant6
	.comm	_ff_dca_vlc_scale_factor,4,2    ## @ff_dca_vlc_scale_factor
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid scale factor index\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_scale
_parse_scale:                           ; @parse_scale
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x23, x2
	mov	x20, x1
	mov	x19, x0
	cmp	w2, #6
	b.lt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ff_dca_scale_factor_quant7@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ff_dca_scale_factor_quant7@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
	mov	x0, x21
	bl	_FF_ARRAY_ELEMS
	mov	x22, x0
	b	LBB0_3
LBB0_2:
Lloh3:
	adrp	x8, _ff_dca_scale_factor_quant6@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ff_dca_scale_factor_quant6@GOTPAGEOFF]
Lloh5:
	ldr	x21, [x8]
	mov	x0, x21
	bl	_FF_ARRAY_ELEMS
	mov	x22, x0
	cmp	w23, #5
	b.ne	LBB0_4
LBB0_3:
	add	x0, x19, #4
	add	w1, w23, #1
	bl	_get_bits
	b	LBB0_5
LBB0_4:
	add	x0, x19, #4
Lloh6:
	adrp	x1, _ff_dca_vlc_scale_factor@GOTPAGE
Lloh7:
	ldr	x1, [x1, _ff_dca_vlc_scale_factor@GOTPAGEOFF]
	mov	x2, x23
	bl	_dca_get_vlc
	ldr	w8, [x20]
	add	w0, w8, w0
LBB0_5:
	str	w0, [x20]
	cmp	w0, w22
	b.hs	LBB0_7
; %bb.6:
	add	x8, x21, w0, sxtw #2
	b	LBB0_8
LBB0_7:
	ldr	w0, [x19]
Lloh8:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x2, l_.str@PAGE
Lloh12:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
Lloh13:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ff_dca_scale_factor_quant7,8,3 ; @ff_dca_scale_factor_quant7
	.comm	_ff_dca_scale_factor_quant6,8,3 ; @ff_dca_scale_factor_quant6
	.comm	_ff_dca_vlc_scale_factor,4,2    ; @ff_dca_vlc_scale_factor
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid scale factor index\n"

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