	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function set_downmix_coeffs
LCPI0_0:
	.long	0x3f800000                      ## float 1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_set_downmix_coeffs:                    ## @set_downmix_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_gain_levels@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	(%rdi), %rcx
	movq	8(%rdi), %rdx
	movss	(%rax,%rcx,4), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	movss	(%rax,%rdx,4), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	movq	_AC3_MAX_CHANNELS@GOTPCREL(%rip), %r13
	movl	(%r13), %ebx
	leaq	(,%rbx,8), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	40(%r14), %rax
	cmpq	$0, (%rax)
	jne	LBB0_3
## %bb.1:
	movss	%xmm2, -52(%rbp)                ## 4-byte Spill
	movss	%xmm1, -56(%rbp)                ## 4-byte Spill
	leal	(%rbx,%rbx), %edi
	movl	$8, %esi
	callq	_av_malloc_array
	movq	40(%r14), %rcx
	movq	%rax, (%rcx)
	movq	40(%r14), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_33
## %bb.2:
	movslq	(%r13), %rdx
	leaq	(%rcx,%rdx,8), %rcx
	movq	%rcx, 8(%rax)
	movss	-56(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	movss	-52(%rbp), %xmm2                ## 4-byte Reload
                                        ## xmm2 = mem[0],zero,zero,zero
LBB0_3:
	movl	16(%r14), %r9d
	testl	%r9d, %r9d
	jle	LBB0_6
## %bb.4:
	movq	%rbx, %r13
	movq	(%r12), %rdx
	movq	_ac3_default_coeffs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	24(%r14), %r8
	movq	(%rax,%r8,8), %r11
	cmpl	$1, %r9d
	jne	LBB0_7
## %bb.5:
	xorl	%esi, %esi
	jmp	LBB0_9
LBB0_6:
	movq	24(%r14), %r8
	cmpq	$2, %r8
	jae	LBB0_12
	jmp	LBB0_14
LBB0_7:
	movl	%r9d, %r10d
	andl	$-2, %r10d
	leaq	4(%r15), %rbx
	leaq	(%r15,%r13,4), %rcx
	addq	$4, %rcx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r11,%rsi,8), %rdi
	movq	(%rdi), %rax
	movss	(%rdx,%rax,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, -4(%rbx,%rsi,4)
	movq	8(%rdi), %rax
	movss	(%rdx,%rax,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, -4(%rcx,%rsi,4)
	movq	8(%r11,%rsi,8), %rax
	movq	(%rax), %rdi
	movss	(%rdx,%rdi,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, (%rbx,%rsi,4)
	movq	8(%rax), %rax
	movss	(%rdx,%rax,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, (%rcx,%rsi,4)
	addq	$2, %rsi
	cmpq	%rsi, %r10
	jne	LBB0_8
LBB0_9:
	testb	$1, %r9b
	jne	LBB0_11
## %bb.10:
	movq	%r13, %rbx
	cmpq	$2, %r8
	jae	LBB0_12
	jmp	LBB0_14
LBB0_11:
	movq	%r13, %rbx
	leaq	(%r15,%r13,4), %rax
	movq	(%r11,%rsi,8), %rcx
	movq	(%rcx), %rdi
	movss	(%rdx,%rdi,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, (%r15,%rsi,4)
	movq	8(%rcx), %rcx
	movss	(%rdx,%rcx,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, (%rax,%rsi,4)
	cmpq	$2, %r8
	jb	LBB0_14
LBB0_12:
	movl	%r8d, %eax
	andl	$1, %eax
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movss	%xmm2, 4(%r15,%rbx,4)
	movss	%xmm2, 4(%r15)
LBB0_14:
	movq	_AC3_CHMODE_2F1R@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %r8
	je	LBB0_16
## %bb.15:
	movq	_AC3_CHMODE_3F1R@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %r8
	jne	LBB0_17
LBB0_16:
	movq	_LEVEL_MINUS_3DB@GOTPCREL(%rip), %rax
	movss	(%rax), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	mulss	%xmm1, %xmm0
	leaq	(%r15,%rbx,4), %rax
	movq	%r8, %rcx
	shlq	$32, %rcx
	movabsq	$-8589934592, %rdx              ## imm = 0xFFFFFFFE00000000
	addq	%rcx, %rdx
	sarq	$30, %rdx
	movss	%xmm0, (%rdx,%rax)
	movss	%xmm0, (%r15,%rdx)
LBB0_17:
	movq	_AC3_CHMODE_2F2R@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %r8
	je	LBB0_19
## %bb.18:
	movq	_AC3_CHMODE_3F2R@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %r8
	jne	LBB0_20
LBB0_19:
	leaq	(%r15,%rbx,4), %rax
	shlq	$32, %r8
	movabsq	$-12884901888, %rcx             ## imm = 0xFFFFFFFD00000000
	addq	%r8, %rcx
	sarq	$30, %rcx
	movss	%xmm1, (%rcx,%rax)
	movabsq	$-17179869184, %rax             ## imm = 0xFFFFFFFC00000000
	addq	%r8, %rax
	sarq	$30, %rax
	movss	%xmm1, (%r15,%rax)
LBB0_20:
	testl	%r9d, %r9d
	jle	LBB0_65
## %bb.21:
	leaq	-1(%r9), %rax
	movl	%r9d, %ecx
	andl	$3, %ecx
	cmpq	$3, %rax
	jae	LBB0_23
## %bb.22:
	xorps	%xmm2, %xmm2
	xorl	%edx, %edx
	xorps	%xmm3, %xmm3
	jmp	LBB0_25
LBB0_23:
	movl	%r9d, %eax
	andl	$-4, %eax
	leaq	12(%r15), %rsi
	leaq	(%r15,%rbx,4), %rdi
	addq	$12, %rdi
	xorps	%xmm2, %xmm2
	xorl	%edx, %edx
	xorps	%xmm3, %xmm3
	.p2align	4, 0x90
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	addss	-12(%rsi,%rdx,4), %xmm2
	addss	-12(%rdi,%rdx,4), %xmm3
	addss	-8(%rsi,%rdx,4), %xmm2
	addss	-8(%rdi,%rdx,4), %xmm3
	addss	-4(%rsi,%rdx,4), %xmm2
	addss	-4(%rdi,%rdx,4), %xmm3
	addss	(%rsi,%rdx,4), %xmm2
	addss	(%rdi,%rdx,4), %xmm3
	addq	$4, %rdx
	cmpq	%rdx, %rax
	jne	LBB0_24
LBB0_25:
	testq	%rcx, %rcx
	je	LBB0_28
## %bb.26:
	leaq	(%rdx,%rbx), %rax
	leaq	(%r15,%rax,4), %rax
	leaq	(%r15,%rdx,4), %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_27:                                ## =>This Inner Loop Header: Depth=1
	addss	(%rdx,%rsi,4), %xmm2
	addss	(%rax,%rsi,4), %xmm3
	incq	%rsi
	cmpq	%rsi, %rcx
	jne	LBB0_27
LBB0_28:
	leaq	(%r15,%rbx,4), %r12
	movss	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movaps	%xmm0, %xmm1
	divss	%xmm2, %xmm1
	divss	%xmm3, %xmm0
	cmpl	$8, %r9d
	jb	LBB0_29
## %bb.30:
	leaq	(%r9,%rbx), %rax
	leaq	(%r15,%rax,4), %rax
	cmpq	%rax, %r15
	jae	LBB0_35
## %bb.31:
	leaq	(%r15,%r9,4), %rax
	cmpq	%rax, %r12
	jae	LBB0_35
LBB0_29:
	xorl	%ecx, %ecx
LBB0_41:
	movq	%rcx, %rax
	notq	%rax
	testb	$1, %r9b
	je	LBB0_43
## %bb.42:
	movss	(%r15,%rcx,4), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	mulss	%xmm1, %xmm2
	movss	%xmm2, (%r15,%rcx,4)
	movss	(%r12,%rcx,4), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	mulss	%xmm0, %xmm2
	movss	%xmm2, (%r12,%rcx,4)
	orq	$1, %rcx
LBB0_43:
	addq	%r9, %rax
	je	LBB0_46
## %bb.44:
	leaq	(%r15,%rbx,4), %rax
	addq	$4, %rax
	.p2align	4, 0x90
LBB0_45:                                ## =>This Inner Loop Header: Depth=1
	movss	(%r15,%rcx,4), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	mulss	%xmm1, %xmm2
	movss	%xmm2, (%r15,%rcx,4)
	movss	-4(%rax,%rcx,4), %xmm2          ## xmm2 = mem[0],zero,zero,zero
	mulss	%xmm0, %xmm2
	movss	%xmm2, -4(%rax,%rcx,4)
	movss	4(%r15,%rcx,4), %xmm2           ## xmm2 = mem[0],zero,zero,zero
	mulss	%xmm1, %xmm2
	movss	%xmm2, 4(%r15,%rcx,4)
	movss	(%rax,%rcx,4), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	mulss	%xmm0, %xmm2
	movss	%xmm2, (%rax,%rcx,4)
	addq	$2, %rcx
	cmpq	%rcx, %r9
	jne	LBB0_45
	jmp	LBB0_46
LBB0_33:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_69
## %bb.34:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_35:
	movl	%r9d, %ecx
	andl	$-8, %ecx
	movaps	%xmm1, %xmm3
	shufps	$0, %xmm1, %xmm3                ## xmm3 = xmm3[0,0],xmm1[0,0]
	movaps	%xmm0, %xmm2
	shufps	$0, %xmm0, %xmm2                ## xmm2 = xmm2[0,0],xmm0[0,0]
	leaq	-8(%rcx), %rax
	movq	%rax, %r8
	shrq	$3, %r8
	incq	%r8
	testq	%rax, %rax
	je	LBB0_67
## %bb.36:
	movq	%r8, %rdi
	andq	$-2, %rdi
	leaq	48(%r15), %rsi
	leaq	(%r15,%rbx,4), %rax
	addq	$48, %rax
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_37:                                ## =>This Inner Loop Header: Depth=1
	movaps	-48(%rsi,%rdx,4), %xmm4
	mulps	%xmm3, %xmm4
	movaps	-32(%rsi,%rdx,4), %xmm5
	mulps	%xmm3, %xmm5
	movaps	%xmm4, -48(%rsi,%rdx,4)
	movaps	%xmm5, -32(%rsi,%rdx,4)
	movups	-48(%rax,%rdx,4), %xmm4
	movups	-32(%rax,%rdx,4), %xmm5
	mulps	%xmm2, %xmm4
	mulps	%xmm2, %xmm5
	movups	%xmm4, -48(%rax,%rdx,4)
	movups	%xmm5, -32(%rax,%rdx,4)
	movaps	-16(%rsi,%rdx,4), %xmm4
	mulps	%xmm3, %xmm4
	movaps	(%rsi,%rdx,4), %xmm5
	mulps	%xmm3, %xmm5
	movaps	%xmm4, -16(%rsi,%rdx,4)
	movaps	%xmm5, (%rsi,%rdx,4)
	movups	-16(%rax,%rdx,4), %xmm4
	movups	(%rax,%rdx,4), %xmm5
	mulps	%xmm2, %xmm4
	mulps	%xmm2, %xmm5
	movups	%xmm4, -16(%rax,%rdx,4)
	movups	%xmm5, (%rax,%rdx,4)
	addq	$16, %rdx
	addq	$-2, %rdi
	jne	LBB0_37
## %bb.38:
	testb	$1, %r8b
	je	LBB0_40
LBB0_39:
	movaps	%xmm3, %xmm4
	mulps	(%r15,%rdx,4), %xmm4
	movaps	16(%r15,%rdx,4), %xmm5
	mulps	%xmm3, %xmm5
	movaps	%xmm4, (%r15,%rdx,4)
	movaps	%xmm5, 16(%r15,%rdx,4)
	movups	(%r12,%rdx,4), %xmm3
	movups	16(%r12,%rdx,4), %xmm4
	mulps	%xmm2, %xmm3
	mulps	%xmm2, %xmm4
	movups	%xmm3, (%r12,%rdx,4)
	movups	%xmm4, 16(%r12,%rdx,4)
LBB0_40:
	cmpq	%r9, %rcx
	jne	LBB0_41
LBB0_46:
	movq	32(%r14), %rax
	movq	_AC3_CHMODE_MONO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_63
## %bb.47:
	movq	_LEVEL_MINUS_3DB@GOTPCREL(%rip), %rax
	movss	(%rax), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	cmpl	$8, %r9d
	jb	LBB0_48
## %bb.49:
	leaq	(%r9,%rbx), %rax
	leaq	(%r15,%rax,4), %rax
	cmpq	%rax, %r15
	jae	LBB0_52
## %bb.50:
	leaq	(%r15,%r9,4), %rax
	cmpq	%rax, %r12
	jae	LBB0_52
LBB0_48:
	xorl	%ecx, %ecx
LBB0_58:
	movq	%rcx, %rax
	notq	%rax
	testb	$1, %r9b
	je	LBB0_60
## %bb.59:
	movss	(%r15,%rcx,4), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	addss	(%r12,%rcx,4), %xmm1
	mulss	%xmm0, %xmm1
	movss	%xmm1, (%r15,%rcx,4)
	orq	$1, %rcx
LBB0_60:
	addq	%r9, %rax
	je	LBB0_63
## %bb.61:
	leaq	(%r15,%rbx,4), %rax
	addq	$4, %rax
	.p2align	4, 0x90
LBB0_62:                                ## =>This Inner Loop Header: Depth=1
	movss	(%r15,%rcx,4), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	movss	4(%r15,%rcx,4), %xmm2           ## xmm2 = mem[0],zero,zero,zero
	addss	-4(%rax,%rcx,4), %xmm1
	mulss	%xmm0, %xmm1
	movss	%xmm1, (%r15,%rcx,4)
	addss	(%rax,%rcx,4), %xmm2
	mulss	%xmm0, %xmm2
	movss	%xmm2, 4(%r15,%rcx,4)
	addq	$2, %rcx
	cmpq	%rcx, %r9
	jne	LBB0_62
	jmp	LBB0_63
LBB0_52:
	movl	%r9d, %ecx
	andl	$-8, %ecx
	movaps	%xmm0, %xmm1
	shufps	$0, %xmm0, %xmm1                ## xmm1 = xmm1[0,0],xmm0[0,0]
	leaq	-8(%rcx), %rax
	movq	%rax, %r8
	shrq	$3, %r8
	incq	%r8
	testq	%rax, %rax
	je	LBB0_68
## %bb.53:
	movq	%r8, %rax
	andq	$-2, %rax
	leaq	48(%r15), %rdi
	leaq	(%r15,%rbx,4), %rsi
	addq	$48, %rsi
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_54:                                ## =>This Inner Loop Header: Depth=1
	movups	-48(%rsi,%rdx,4), %xmm2
	movups	-32(%rsi,%rdx,4), %xmm3
	addps	-48(%rdi,%rdx,4), %xmm2
	addps	-32(%rdi,%rdx,4), %xmm3
	mulps	%xmm1, %xmm2
	mulps	%xmm1, %xmm3
	movaps	%xmm2, -48(%rdi,%rdx,4)
	movaps	%xmm3, -32(%rdi,%rdx,4)
	movups	-16(%rsi,%rdx,4), %xmm2
	movups	(%rsi,%rdx,4), %xmm3
	addps	-16(%rdi,%rdx,4), %xmm2
	addps	(%rdi,%rdx,4), %xmm3
	mulps	%xmm1, %xmm2
	mulps	%xmm1, %xmm3
	movaps	%xmm2, -16(%rdi,%rdx,4)
	movaps	%xmm3, (%rdi,%rdx,4)
	addq	$16, %rdx
	addq	$-2, %rax
	jne	LBB0_54
## %bb.55:
	testb	$1, %r8b
	je	LBB0_57
LBB0_56:
	movups	(%r12,%rdx,4), %xmm2
	movups	16(%r12,%rdx,4), %xmm3
	addps	(%r15,%rdx,4), %xmm2
	addps	16(%r15,%rdx,4), %xmm3
	mulps	%xmm1, %xmm2
	mulps	%xmm1, %xmm3
	movaps	%xmm2, (%r15,%rdx,4)
	movaps	%xmm3, 16(%r15,%rdx,4)
LBB0_57:
	cmpq	%r9, %rcx
	jne	LBB0_58
LBB0_63:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_64:                                ## =>This Inner Loop Header: Depth=1
	movss	(%r15,%rbx,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	callq	_FIXR12
	movq	40(%r14), %rcx
	movq	(%rcx), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movss	(%r12,%rbx,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	callq	_FIXR12
	movq	40(%r14), %rcx
	movq	8(%rcx), %rcx
	movq	%rax, (%rcx,%rbx,8)
	incq	%rbx
	movslq	16(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_64
LBB0_65:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_69
## %bb.66:
	xorl	%eax, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_67:
	xorl	%edx, %edx
	testb	$1, %r8b
	jne	LBB0_39
	jmp	LBB0_40
LBB0_68:
	xorl	%edx, %edx
	testb	$1, %r8b
	jne	LBB0_56
	jmp	LBB0_57
LBB0_69:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_gain_levels,8,3                ## @gain_levels
	.comm	_AC3_MAX_CHANNELS,4,2           ## @AC3_MAX_CHANNELS
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ac3_default_coeffs,8,3         ## @ac3_default_coeffs
	.comm	_AC3_CHMODE_2F1R,4,2            ## @AC3_CHMODE_2F1R
	.comm	_AC3_CHMODE_3F1R,4,2            ## @AC3_CHMODE_3F1R
	.comm	_LEVEL_MINUS_3DB,4,2            ## @LEVEL_MINUS_3DB
	.comm	_AC3_CHMODE_2F2R,4,2            ## @AC3_CHMODE_2F2R
	.comm	_AC3_CHMODE_3F2R,4,2            ## @AC3_CHMODE_3F2R
	.comm	_AC3_CHMODE_MONO,8,3            ## @AC3_CHMODE_MONO
	.no_dead_strip	_set_downmix_coeffs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_downmix_coeffs
_set_downmix_coeffs:                    ; @set_downmix_coeffs
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-80]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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 b8, -72
	.cfi_offset b9, -80
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x22, _gain_levels@GOTPAGE
Lloh4:
	ldr	x22, [x22, _gain_levels@GOTPAGEOFF]
	stur	x8, [x29, #-72]
	ldr	x8, [x22]
	ldp	x9, x10, [x0]
	ldr	s9, [x8, x9, lsl #2]
	ldr	s8, [x8, x10, lsl #2]
Lloh5:
	adrp	x23, _AC3_MAX_CHANNELS@GOTPAGE
Lloh6:
	ldr	x23, [x23, _AC3_MAX_CHANNELS@GOTPAGEOFF]
	ldr	w21, [x23]
	lsl	x8, x21, #3
	mov	x9, x8
Lloh7:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh8:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x20, x9, x8
	mov	sp, x20
	ldr	x8, [x0, #40]
	ldr	x8, [x8]
	cbnz	x8, LBB0_3
; %bb.1:
	lsl	w0, w21, #1
	mov	w1, #8
	bl	_av_malloc_array
	ldr	x8, [x19, #40]
	str	x0, [x8]
	ldr	x8, [x19, #40]
	ldr	x9, [x8]
	cbz	x9, LBB0_39
; %bb.2:
	ldrsw	x10, [x23]
	add	x9, x9, x10, lsl #3
	str	x9, [x8, #8]
LBB0_3:
	ldr	w8, [x19, #16]
	cmp	w8, #0
	b.le	LBB0_7
; %bb.4:
	ldr	x10, [x22]
Lloh9:
	adrp	x9, _ac3_default_coeffs@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ac3_default_coeffs@GOTPAGEOFF]
Lloh11:
	ldr	x11, [x9]
	ldr	x9, [x19, #24]
	ldr	x11, [x11, x9, lsl #3]
	mov	x12, x8
	mov	x13, x20
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x14, [x11], #8
	ldp	x15, x14, [x14]
	ldr	s0, [x10, x15, lsl #2]
	str	s0, [x13]
	ldr	s0, [x10, x14, lsl #2]
	str	s0, [x13, x21, lsl #2]
	add	x13, x13, #4
	subs	x12, x12, #1
	b.ne	LBB0_5
; %bb.6:
	cmp	x9, #2
	b.hs	LBB0_8
	b	LBB0_10
LBB0_7:
	ldr	x9, [x19, #24]
	cmp	x9, #2
	b.lo	LBB0_10
LBB0_8:
	tbz	w9, #0, LBB0_10
; %bb.9:
	add	x10, x20, x21, lsl #2
	str	s9, [x10, #4]
	str	s9, [x20, #4]
LBB0_10:
Lloh12:
	adrp	x10, _AC3_CHMODE_2F1R@GOTPAGE
Lloh13:
	ldr	x10, [x10, _AC3_CHMODE_2F1R@GOTPAGEOFF]
Lloh14:
	ldrsw	x10, [x10]
Lloh15:
	adrp	x11, _AC3_CHMODE_3F1R@GOTPAGE
Lloh16:
	ldr	x11, [x11, _AC3_CHMODE_3F1R@GOTPAGEOFF]
Lloh17:
	ldrsw	x11, [x11]
	cmp	x9, x10
	ccmp	x9, x11, #4, ne
	b.ne	LBB0_12
; %bb.11:
Lloh18:
	adrp	x10, _LEVEL_MINUS_3DB@GOTPAGE
Lloh19:
	ldr	x10, [x10, _LEVEL_MINUS_3DB@GOTPAGEOFF]
Lloh20:
	ldr	s0, [x10]
	fmul	s0, s8, s0
	add	x10, x20, x21, lsl #2
	mov	x11, #-8589934592
	add	x11, x11, x9, lsl #32
	asr	x11, x11, #30
	str	s0, [x10, x11]
	str	s0, [x20, x11]
LBB0_12:
Lloh21:
	adrp	x10, _AC3_CHMODE_2F2R@GOTPAGE
Lloh22:
	ldr	x10, [x10, _AC3_CHMODE_2F2R@GOTPAGEOFF]
Lloh23:
	ldrsw	x10, [x10]
Lloh24:
	adrp	x11, _AC3_CHMODE_3F2R@GOTPAGE
Lloh25:
	ldr	x11, [x11, _AC3_CHMODE_3F2R@GOTPAGEOFF]
Lloh26:
	ldrsw	x11, [x11]
	cmp	x9, x10
	ccmp	x9, x11, #4, ne
	b.ne	LBB0_14
; %bb.13:
	add	x10, x20, x21, lsl #2
	lsl	x9, x9, #32
	mov	x11, #281462091808768
	movk	x11, #65535, lsl #48
	add	x11, x9, x11
	asr	x11, x11, #30
	str	s8, [x10, x11]
	mov	x10, #-17179869184
	add	x9, x9, x10
	asr	x9, x9, #30
	str	s8, [x20, x9]
LBB0_14:
	cmp	w8, #1
	b.lt	LBB0_37
; %bb.15:
	lsl	x9, x21, #2
	cmp	w8, #4
	b.hs	LBB0_17
; %bb.16:
	mov	x10, #0
	movi	d0, #0000000000000000
	movi	d1, #0000000000000000
	b	LBB0_20
LBB0_17:
	and	x10, x8, #0xfffffffc
	movi	d0, #0000000000000000
	mov	x11, x20
	mov	x12, x10
	movi	d1, #0000000000000000
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldp	s2, s3, [x11]
	ldp	s4, s5, [x11, #8]
	fadd	s0, s0, s2
	fadd	s0, s0, s3
	fadd	s0, s0, s4
	fadd	s0, s0, s5
	add	x13, x11, x9
	ldp	s2, s3, [x13]
	ldp	s4, s5, [x13, #8]
	fadd	s1, s1, s2
	fadd	s1, s1, s3
	fadd	s1, s1, s4
	fadd	s1, s1, s5
	add	x11, x11, #16
	subs	x12, x12, #4
	b.ne	LBB0_18
; %bb.19:
	cmp	x10, x8
	b.eq	LBB0_22
LBB0_20:
	add	x11, x20, x10, lsl #2
	sub	x10, x8, x10
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	ldr	s2, [x11]
	fadd	s0, s0, s2
	ldr	s2, [x11, x21, lsl #2]
	fadd	s1, s1, s2
	add	x11, x11, #4
	subs	x10, x10, #1
	b.ne	LBB0_21
LBB0_22:
	add	x22, x20, x21, lsl #2
	fmov	s2, #1.00000000
	fdiv	s0, s2, s0
	fdiv	s1, s2, s1
	cmp	w8, #8
	b.lo	LBB0_25
; %bb.23:
	add	x10, x8, x21
	add	x10, x20, x10, lsl #2
	cmp	x20, x10
	b.hs	LBB0_41
; %bb.24:
	add	x10, x20, x8, lsl #2
	cmp	x22, x10
	b.hs	LBB0_41
LBB0_25:
	mov	x10, #0
LBB0_26:
	add	x11, x20, x10, lsl #2
	sub	x10, x8, x10
LBB0_27:                                ; =>This Inner Loop Header: Depth=1
	ldr	s2, [x11]
	fmul	s2, s0, s2
	str	s2, [x11]
	ldr	s2, [x11, x9]
	fmul	s2, s1, s2
	str	s2, [x11, x9]
	add	x11, x11, #4
	subs	x10, x10, #1
	b.ne	LBB0_27
LBB0_28:
	ldr	x10, [x19, #32]
Lloh27:
	adrp	x11, _AC3_CHMODE_MONO@GOTPAGE
Lloh28:
	ldr	x11, [x11, _AC3_CHMODE_MONO@GOTPAGEOFF]
Lloh29:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_35
; %bb.29:
Lloh30:
	adrp	x10, _LEVEL_MINUS_3DB@GOTPAGE
Lloh31:
	ldr	x10, [x10, _LEVEL_MINUS_3DB@GOTPAGEOFF]
Lloh32:
	ldr	s0, [x10]
	cmp	w8, #16
	b.lo	LBB0_32
; %bb.30:
	add	x10, x8, x21
	add	x10, x20, x10, lsl #2
	cmp	x20, x10
	b.hs	LBB0_44
; %bb.31:
	add	x10, x20, x8, lsl #2
	cmp	x22, x10
	b.hs	LBB0_44
LBB0_32:
	mov	x10, #0
LBB0_33:
	add	x9, x20, x10, lsl #2
	sub	x8, x8, x10
LBB0_34:                                ; =>This Inner Loop Header: Depth=1
	ldr	s1, [x9, x21, lsl #2]
	ldr	s2, [x9]
	fadd	s1, s2, s1
	fmul	s1, s1, s0
	str	s1, [x9], #4
	subs	x8, x8, #1
	b.ne	LBB0_34
LBB0_35:
	mov	x21, #0
LBB0_36:                                ; =>This Inner Loop Header: Depth=1
	lsl	x23, x21, #2
	ldr	s0, [x20, x23]
	bl	_FIXR12
	ldr	x8, [x19, #40]
	ldr	x8, [x8]
	lsl	x24, x21, #3
	str	x0, [x8, x24]
	ldr	s0, [x22, x23]
	bl	_FIXR12
	ldr	x8, [x19, #40]
	ldr	x8, [x8, #8]
	str	x0, [x8, x24]
	add	x21, x21, #1
	ldrsw	x8, [x19, #16]
	cmp	x21, x8
	b.lt	LBB0_36
LBB0_37:
	ldur	x8, [x29, #-72]
Lloh33:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh34:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh35:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_47
; %bb.38:
	mov	w0, #0
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #80               ; 16-byte Folded Reload
	ret
LBB0_39:
Lloh36:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh37:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
	ldur	x8, [x29, #-72]
Lloh39:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh40:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh41:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_47
; %bb.40:
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #80               ; 16-byte Folded Reload
	b	_AVERROR
LBB0_41:
	and	x10, x8, #0xfffffff8
	dup.4s	v2, v0[0]
	dup.4s	v3, v1[0]
	mov	x11, x10
	mov	x12, x20
LBB0_42:                                ; =>This Inner Loop Header: Depth=1
	ldp	q4, q5, [x12]
	fmul.4s	v4, v2, v4
	fmul.4s	v5, v5, v0[0]
	stp	q4, q5, [x12]
	add	x13, x12, x9
	ldp	q4, q5, [x13]
	fmul.4s	v4, v3, v4
	fmul.4s	v5, v5, v1[0]
	stp	q4, q5, [x13]
	add	x12, x12, #32
	subs	x11, x11, #8
	b.ne	LBB0_42
; %bb.43:
	cmp	x10, x8
	b.eq	LBB0_28
	b	LBB0_26
LBB0_44:
	and	x10, x8, #0xfffffff0
	dup.4s	v1, v0[0]
	add	x11, x20, #32
	mov	x12, x10
LBB0_45:                                ; =>This Inner Loop Header: Depth=1
	ldp	q2, q3, [x11, #-32]
	ldp	q4, q5, [x11]
	add	x13, x11, x9
	ldp	q6, q7, [x13, #-32]
	ldp	q16, q17, [x13]
	fadd.4s	v2, v2, v6
	fadd.4s	v3, v3, v7
	fadd.4s	v4, v4, v16
	fadd.4s	v5, v5, v17
	fmul.4s	v2, v2, v1
	fmul.4s	v3, v3, v1
	fmul.4s	v4, v4, v1
	fmul.4s	v5, v5, v0[0]
	stp	q2, q3, [x11, #-32]
	stp	q4, q5, [x11], #64
	subs	x12, x12, #16
	b.ne	LBB0_45
; %bb.46:
	cmp	x10, x8
	b.eq	LBB0_35
	b	LBB0_33
LBB0_47:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_gain_levels,8,3                ; @gain_levels
	.comm	_AC3_MAX_CHANNELS,4,2           ; @AC3_MAX_CHANNELS
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ac3_default_coeffs,8,3         ; @ac3_default_coeffs
	.comm	_AC3_CHMODE_2F1R,4,2            ; @AC3_CHMODE_2F1R
	.comm	_AC3_CHMODE_3F1R,4,2            ; @AC3_CHMODE_3F1R
	.comm	_LEVEL_MINUS_3DB,4,2            ; @LEVEL_MINUS_3DB
	.comm	_AC3_CHMODE_2F2R,4,2            ; @AC3_CHMODE_2F2R
	.comm	_AC3_CHMODE_3F2R,4,2            ; @AC3_CHMODE_3F2R
	.comm	_AC3_CHMODE_MONO,8,3            ; @AC3_CHMODE_MONO
	.no_dead_strip	_set_downmix_coeffs
.subsections_via_symbols
