	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function scale_down_mix
_scale_down_mix:                        ## @scale_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	$40, %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	%rsi, -56(%rbp)                 ## 8-byte Spill
	movl	(%rdi), %eax
	testl	%eax, %eax
	jle	LBB0_13
## %bb.1:
	movq	%rdi, %r12
	movq	24(%rdi), %r13
	movslq	-44(%rbp), %rcx                 ## 4-byte Folded Reload
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	-48(%rbp), %r14d                ## 4-byte Reload
	addl	%r15d, %r14d
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpl	16(%rax), %r14d
	jge	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r12), %eax
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	incl	%ebx
	addq	$48, %r13
	cmpl	%eax, %ebx
	jge	LBB0_13
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	cmpl	$0, 40(%r13)
	je	LBB0_12
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edi, %edi
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, (%r13)
	setg	%dil
	callq	_av_assert1
	cmpl	$0, 4(%r13)
	jle	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	movslq	%r14d, %r14
	shlq	$2, %r14
	xorl	%r15d, %r15d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=2
	incq	%r15
	movslq	4(%r13), %rax
	cmpq	%rax, %r15
	jge	LBB0_9
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	addq	%r14, %rax
	movl	(%rax,%r15,4), %ebx
	cmpl	$32768, %ebx                    ## imm = 0x8000
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	8(%r12), %rax
	movq	32(%r13), %rcx
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rcx,%rdx,8), %rcx
	movl	(%rcx,%r15,4), %edi
	movl	16(%r12), %edx
	movl	%ebx, %esi
	callq	*(%rax)
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	8(%r12), %rax
	movq	24(%r13), %rcx
	movl	(%rcx,%r15,4), %edi
	movq	_DCA_XLL_DECI_HISTORY_MAX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%ebx, %esi
	callq	*(%rax)
	jmp	LBB0_8
LBB0_13:
	addq	$40, %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	_scale_down_mix
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function scale_down_mix
_scale_down_mix:                        ; @scale_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_13
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	w23, #0
	mov	w22, #0
	ldr	x25, [x0, #24]
	sxtw	x26, w19
Lloh0:
	adrp	x27, _DCA_XLL_DECI_HISTORY_MAX@GOTPAGE
Lloh1:
	ldr	x27, [x27, _DCA_XLL_DECI_HISTORY_MAX@GOTPAGEOFF]
	b	LBB0_6
LBB0_2:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x22, [sp, #8]                   ; 8-byte Folded Reload
	add	w22, w22, w28
LBB0_3:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x20, #16]
	cmp	w22, w8
	b.ge	LBB0_13
; %bb.4:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x21]
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	w23, w23, #1
	add	x25, x25, #48
	cmp	w23, w8
	b.ge	LBB0_13
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	ldr	w9, [x25, #40]
	cbz	w9, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x25]
	cmp	w8, w19
	cset	w0, gt
	bl	_av_assert1
	ldr	w8, [x25, #4]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x28, #0
	str	x22, [sp, #8]                   ; 8-byte Folded Spill
	sbfiz	x24, x22, #2, #32
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=2
	add	x28, x28, #1
	ldrsw	x8, [x25, #4]
	cmp	x28, x8
	b.ge	LBB0_2
LBB0_10:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x20, #8]
	add	x8, x8, x24
	ldr	w22, [x8, x28, lsl #2]
	cmp	w22, #8, lsl #12                ; =32768
	b.eq	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
	ldr	x9, [x25, #32]
	ldr	x9, [x9, x26, lsl #3]
	ldr	w0, [x9, x28, lsl #2]
	ldr	w2, [x21, #16]
	mov	x1, x22
	blr	x8
	cbz	w19, LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=2
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
	ldr	x9, [x25, #24]
	ldr	w0, [x9, x28, lsl #2]
	ldr	w2, [x27]
	mov	x1, x22
	blr	x8
	b	LBB0_9
LBB0_13:
	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	_scale_down_mix
.subsections_via_symbols
