	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_dmix_coeffs
_parse_dmix_coeffs:                     ## @parse_dmix_coeffs
	.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, %rbx
	movq	48(%rsi), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ff_dca_dmix_primary_nch@GOTPCREL(%rip), %rdx
	movq	(%rbx), %rcx
	shlq	$2, %rcx
	addq	(%rdx), %rcx
	jmp	LBB0_3
LBB0_2:
	leaq	8(%rbx), %rcx
LBB0_3:
	movl	(%rcx), %ecx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	testl	%ecx, %ecx
	jle	LBB0_18
## %bb.4:
	movq	16(%rbx), %r14
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	leaq	4(%rdi), %r12
	xorl	%r15d, %r15d
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	testq	%rax, %rax
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r12, %rdi
	movl	$9, %esi
	callq	_get_bits
	movzbl	%al, %edx
	movl	%edx, %ecx
	movq	_FF_DCA_DMIXTABLE_OFFSET@GOTPCREL(%rip), %rsi
	subl	(%rsi), %ecx
	movq	_FF_DCA_INV_DMIXTABLE_SIZE@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %ecx
	jae	LBB0_21
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	sarl	$8, %eax
	decl	%eax
	movq	_ff_dca_dmixtable@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movl	%edx, %edx
	movq	_ff_dca_inv_dmixtable@GOTPCREL(%rip), %rdi
	movq	(%rdi), %rdi
	movl	%ecx, %ecx
	movl	(%rdi,%rcx,4), %edi
	movl	(%rsi,%rdx,4), %ecx
	xorl	%eax, %ecx
	subl	%eax, %ecx
	movq	24(%rbx), %rdx
	movl	%ecx, (%rdx,%r15,4)
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	movl	%edi, %ecx
	xorl	%eax, %ecx
	subl	%eax, %ecx
	movq	32(%rbx), %rax
	movl	%ecx, (%rax,%r15,4)
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	cmpl	$0, 40(%rbx)
	jle	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	xorl	%r13d, %r13d
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_11 Depth=2
	xorl	%r15d, %eax
	subl	%r15d, %eax
	movl	%eax, (%r14)
	addq	$4, %r14
	incl	%r13d
	cmpl	40(%rbx), %r13d
	jge	LBB0_14
LBB0_11:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r12, %rdi
	movl	$9, %esi
	callq	_get_bits
	movl	%eax, %r15d
	movzbl	%r15b, %eax
	movq	_FF_DCA_DMIXTABLE_SIZE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jae	LBB0_16
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=2
	sarl	$8, %r15d
	decl	%r15d
	movq	_ff_dca_dmixtable@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, %eax
	movl	(%rcx,%rax,4), %eax
	cmpq	$0, 48(%rbx)
	jne	LBB0_10
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=2
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%eax, %esi
	callq	_mul16
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	incq	%r15
	cmpq	-64(%rbp), %r15                 ## 8-byte Folded Reload
	je	LBB0_18
## %bb.15:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	48(%rbx), %rax
	jmp	LBB0_5
LBB0_16:
	leaq	L_.str.1(%rip), %rdx
LBB0_17:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_19
LBB0_18:
	xorl	%eax, %eax
LBB0_19:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_ff_dca_dmix_primary_nch,8,3    ## @ff_dca_dmix_primary_nch
	.comm	_FF_DCA_DMIXTABLE_OFFSET,4,2    ## @FF_DCA_DMIXTABLE_OFFSET
	.comm	_FF_DCA_INV_DMIXTABLE_SIZE,4,2  ## @FF_DCA_INV_DMIXTABLE_SIZE
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid XLL downmix scale index\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_ff_dca_dmixtable,8,3           ## @ff_dca_dmixtable
	.comm	_ff_dca_inv_dmixtable,8,3       ## @ff_dca_inv_dmixtable
	.comm	_FF_DCA_DMIXTABLE_SIZE,4,2      ## @FF_DCA_DMIXTABLE_SIZE
L_.str.1:                               ## @.str.1
	.asciz	"Invalid XLL downmix coefficient index\n"

	.no_dead_strip	_parse_dmix_coeffs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_dmix_coeffs
_parse_dmix_coeffs:                     ; @parse_dmix_coeffs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x20, x1
	ldr	x8, [x1, #48]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x9, _ff_dca_dmix_primary_nch@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ff_dca_dmix_primary_nch@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	x10, [x20]
	add	x9, x9, x10, lsl #2
	b	LBB0_3
LBB0_2:
	add	x9, x20, #8
LBB0_3:
	ldr	w24, [x9]
	cmp	w24, #1
	b.lt	LBB0_18
; %bb.4:
	mov	x25, #0
	ldr	x26, [x20, #16]
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	add	x22, x0, #4
Lloh3:
	adrp	x27, _ff_dca_dmixtable@GOTPAGE
Lloh4:
	ldr	x27, [x27, _ff_dca_dmixtable@GOTPAGEOFF]
Lloh5:
	adrp	x28, _FF_DCA_DMIXTABLE_SIZE@GOTPAGE
Lloh6:
	ldr	x28, [x28, _FF_DCA_DMIXTABLE_SIZE@GOTPAGEOFF]
	cbz	x8, LBB0_6
LBB0_5:
	mov	w23, #0
	b	LBB0_8
LBB0_6:
	mov	x0, x22
	mov	w1, #9
	bl	_get_bits
	and	w8, w0, #0xff
Lloh7:
	adrp	x9, _FF_DCA_DMIXTABLE_OFFSET@GOTPAGE
Lloh8:
	ldr	x9, [x9, _FF_DCA_DMIXTABLE_OFFSET@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
Lloh10:
	adrp	x10, _FF_DCA_INV_DMIXTABLE_SIZE@GOTPAGE
Lloh11:
	ldr	x10, [x10, _FF_DCA_INV_DMIXTABLE_SIZE@GOTPAGEOFF]
Lloh12:
	ldr	w10, [x10]
	sub	w9, w8, w9
	cmp	w9, w10
	b.hs	LBB0_20
; %bb.7:
	asr	w10, w0, #8
	ldr	x11, [x27]
	ldr	w8, [x11, w8, uxtw #2]
Lloh13:
	adrp	x11, _ff_dca_inv_dmixtable@GOTPAGE
Lloh14:
	ldr	x11, [x11, _ff_dca_inv_dmixtable@GOTPAGEOFF]
Lloh15:
	ldr	x11, [x11]
	ldr	w23, [x11, w9, uxtw #2]
	sub	w9, w10, #1
	eor	w8, w8, w9
	sub	w8, w8, w9
	lsl	x10, x25, #2
	ldp	x11, x12, [x20, #24]
	str	w8, [x11, x10]
	eor	w8, w23, w9
	sub	w8, w8, w9
	str	w8, [x12, x10]
LBB0_8:
	ldr	w8, [x20, #40]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.9:
	mov	w21, #0
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	eor	w8, w1, w19
	sub	w8, w8, w19
	str	w8, [x26], #4
	add	w21, w21, #1
	ldr	w8, [x20, #40]
	cmp	w21, w8
	b.ge	LBB0_14
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	w1, #9
	bl	_get_bits
	and	w8, w0, #0xff
	ldr	w9, [x28]
	cmp	w8, w9
	b.hs	LBB0_16
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	asr	w9, w0, #8
	sub	w19, w9, #1
	ldr	x9, [x27]
	ldr	w1, [x9, w8, uxtw #2]
	ldr	x8, [x20, #48]
	cbnz	x8, LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x23
	bl	_mul16
	mov	x1, x0
	b	LBB0_10
LBB0_14:
	add	x25, x25, #1
	cmp	x25, x24
	b.eq	LBB0_18
; %bb.15:
	ldr	x8, [x20, #48]
	cbnz	x8, LBB0_5
	b	LBB0_6
LBB0_16:
Lloh16:
	adrp	x2, l_.str.1@PAGE
Lloh17:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_17:
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldr	w0, [x8]
Lloh18:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	bl	_av_log
Lloh21:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh22:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	b	LBB0_19
LBB0_18:
	mov	w0, #0
LBB0_19:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_20:
Lloh24:
	adrp	x2, l_.str@PAGE
Lloh25:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_17
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_ff_dca_dmix_primary_nch,8,3    ; @ff_dca_dmix_primary_nch
	.comm	_FF_DCA_DMIXTABLE_OFFSET,4,2    ; @FF_DCA_DMIXTABLE_OFFSET
	.comm	_FF_DCA_INV_DMIXTABLE_SIZE,4,2  ; @FF_DCA_INV_DMIXTABLE_SIZE
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid XLL downmix scale index\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_ff_dca_dmixtable,8,3           ; @ff_dca_dmixtable
	.comm	_ff_dca_inv_dmixtable,8,3       ; @ff_dca_inv_dmixtable
	.comm	_FF_DCA_DMIXTABLE_SIZE,4,2      ; @FF_DCA_DMIXTABLE_SIZE
l_.str.1:                               ; @.str.1
	.asciz	"Invalid XLL downmix coefficient index\n"

	.no_dead_strip	_parse_dmix_coeffs
.subsections_via_symbols
