	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_joint_scale
_parse_joint_scale:                     ## @parse_joint_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %edx
	movq	%rdi, %r14
	addq	$4, %rdi
	cmpl	$4, %esi
	jg	LBB0_2
## %bb.1:
	movq	_ff_dca_vlc_scale_factor@GOTPCREL(%rip), %rsi
	callq	_dca_get_vlc
	jmp	LBB0_3
LBB0_2:
	incl	%edx
	movl	%edx, %esi
	callq	_get_bits
LBB0_3:
	movl	%eax, %ebx
	addl	$64, %ebx
	movq	_ff_dca_joint_scale_factors@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_FF_ARRAY_ELEMS
	cmpl	%eax, %ebx
	jae	LBB0_4
## %bb.5:
	movslq	%ebx, %rax
	shlq	$2, %rax
	addq	(%r15), %rax
	jmp	LBB0_6
LBB0_4:
	movl	(%r14), %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_6:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ff_dca_vlc_scale_factor,4,2    ## @ff_dca_vlc_scale_factor
	.comm	_ff_dca_joint_scale_factors,8,3 ## @ff_dca_joint_scale_factors
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid joint scale factor index\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_joint_scale
_parse_joint_scale:                     ; @parse_joint_scale
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x2, x1
	mov	x19, x0
	add	x0, x0, #4
	cmp	w1, #4
	b.gt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, _ff_dca_vlc_scale_factor@GOTPAGE
Lloh1:
	ldr	x1, [x1, _ff_dca_vlc_scale_factor@GOTPAGEOFF]
	bl	_dca_get_vlc
	b	LBB0_3
LBB0_2:
	add	w1, w2, #1
	bl	_get_bits
LBB0_3:
	add	w20, w0, #64
Lloh2:
	adrp	x21, _ff_dca_joint_scale_factors@GOTPAGE
Lloh3:
	ldr	x21, [x21, _ff_dca_joint_scale_factors@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_FF_ARRAY_ELEMS
	cmp	w20, w0
	b.hs	LBB0_5
; %bb.4:
	ldr	x8, [x21]
	add	x8, x8, w20, sxtw #2
	b	LBB0_6
LBB0_5:
	ldr	w0, [x19]
Lloh4:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	adrp	x2, l_.str@PAGE
Lloh8:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
Lloh9:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_ff_dca_vlc_scale_factor,4,2    ; @ff_dca_vlc_scale_factor
	.comm	_ff_dca_joint_scale_factors,8,3 ; @ff_dca_joint_scale_factors
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid joint scale factor index\n"

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