	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function undo_down_mix
_undo_down_mix:                         ## @undo_down_mix
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	(%rdi), %ecx
	testl	%ecx, %ecx
	jle	LBB0_16
## %bb.1:
	movq	%rsi, %r12
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	24(%rax), %rsi
	movq	(%r12), %r14
	movslq	-44(%rbp), %rax                 ## 4-byte Folded Reload
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	xorl	%edx, %edx
	xorl	%eax, %eax
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	addl	-68(%rbp), %eax                 ## 4-byte Folded Reload
	cmpl	16(%r12), %eax
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	jge	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %ecx
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	incl	%edx
	addq	$48, %rsi
	cmpl	%ecx, %edx
	jge	LBB0_16
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
                                        ##       Child Loop BB0_7 Depth 3
	cmpl	$0, 40(%rsi)
	je	LBB0_15
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	xorl	%edi, %edi
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, 8(%rsi)
	setg	%dil
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	callq	_av_assert1
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	12(%rsi), %eax
	testl	%eax, %eax
	jle	LBB0_13
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	12(%r12), %ecx
	xorl	%r13d, %r13d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=2
	movl	12(%rsi), %eax
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=2
	incq	%r13
	movslq	%eax, %rdx
	cmpq	%rdx, %r13
	jge	LBB0_13
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_7 Depth 3
	testl	%ecx, %ecx
	jle	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	xorl	%r15d, %r15d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=3
	addq	$4, %r14
	incq	%r15
	movslq	12(%r12), %rcx
	cmpq	%rcx, %r15
	jge	LBB0_11
LBB0_7:                                 ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_5 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	(%r14), %ebx
	testl	%ebx, %ebx
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=3
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	8(%rdx), %rax
	movq	32(%rsi), %rcx
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movq	(%rcx,%rsi,8), %rcx
	movl	(%rcx,%r13,4), %edi
	movq	32(%r12), %rcx
	movq	(%rcx,%rsi,8), %rcx
	movl	(%rcx,%r15,4), %esi
	movl	16(%rdx), %ecx
	movl	%ebx, %edx
	callq	*(%rax)
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=3
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movq	24(%rsi), %rcx
	movl	(%rcx,%r13,4), %edi
	movq	24(%r12), %rcx
	movl	(%rcx,%r15,4), %esi
	movq	_DCA_XLL_DECI_HISTORY_MAX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ebx, %edx
	callq	*(%rax)
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	jmp	LBB0_10
LBB0_16:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DCA_XLL_DECI_HISTORY_MAX,4,2   ## @DCA_XLL_DECI_HISTORY_MAX
	.no_dead_strip	_undo_down_mix
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function undo_down_mix
_undo_down_mix:                         ; @undo_down_mix
	.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
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	w10, #0
	mov	w11, #0
	ldr	x25, [x0, #24]
	ldr	x26, [x1]
	sxtw	x9, w19
	lsl	x27, x9, #3
Lloh0:
	adrp	x28, _DCA_XLL_DECI_HISTORY_MAX@GOTPAGE
Lloh1:
	ldr	x28, [x28, _DCA_XLL_DECI_HISTORY_MAX@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w9, [x20, #16]
	ldp	w11, w10, [sp, #8]              ; 8-byte Folded Reload
	add	w11, w8, w11
	cmp	w11, w9
	b.ge	LBB0_16
; %bb.3:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x21]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w10, w10, #1
	add	x25, x25, #48
	cmp	w10, w8
	b.ge	LBB0_16
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
                                        ;       Child Loop BB0_13 Depth 3
	ldr	w9, [x25, #40]
	cbz	w9, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	stp	w11, w10, [sp, #8]              ; 8-byte Folded Spill
	ldr	w8, [x25, #8]
	cmp	w8, w19
	cset	w0, gt
	bl	_av_assert1
	ldr	w8, [x25, #12]
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x24, #0
	ldr	w9, [x20, #12]
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=2
	ldr	w8, [x25, #12]
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=2
	add	x24, x24, #1
	cmp	x24, w8, sxtw
	b.ge	LBB0_2
LBB0_10:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_13 Depth 3
	cmp	w9, #1
	b.lt	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	mov	x23, #0
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=3
	add	x23, x23, #1
	ldrsw	x9, [x20, #12]
	cmp	x23, x9
	b.ge	LBB0_8
LBB0_13:                                ;   Parent Loop BB0_5 Depth=1
                                        ;     Parent Loop BB0_10 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	w22, [x26], #4
	cbz	w22, LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=3
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
	ldr	x9, [x25, #32]
	ldr	x9, [x9, x27]
	ldr	w0, [x9, x24, lsl #2]
	ldr	x9, [x20, #32]
	ldr	x9, [x9, x27]
	ldr	w1, [x9, x23, lsl #2]
	ldr	w3, [x21, #16]
	mov	x2, x22
	blr	x8
	cbz	w19, LBB0_12
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=3
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
	ldr	x9, [x25, #24]
	ldr	w0, [x9, x24, lsl #2]
	ldr	x9, [x20, #24]
	ldr	w1, [x9, x23, lsl #2]
	ldr	w3, [x28]
	mov	x2, x22
	blr	x8
	b	LBB0_12
LBB0_16:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_DCA_XLL_DECI_HISTORY_MAX,4,2   ; @DCA_XLL_DECI_HISTORY_MAX
	.no_dead_strip	_undo_down_mix
.subsections_via_symbols
