	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ac3_downmix_5_to_1_symmetric_c
_ac3_downmix_5_to_1_symmetric_c:        ## @ac3_downmix_5_to_1_symmetric_c
	.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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testl	%edx, %edx
	jle	LBB0_11
## %bb.1:
	movq	(%rsi), %rax
	movss	(%rax), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	movss	4(%rax), %xmm1                  ## xmm1 = mem[0],zero,zero,zero
	movss	12(%rax), %xmm2                 ## xmm2 = mem[0],zero,zero,zero
	movq	(%rdi), %rax
	movq	8(%rdi), %r8
	movq	16(%rdi), %r11
	movq	24(%rdi), %rcx
	movq	32(%rdi), %rdi
	movl	%edx, %r9d
	cmpl	$4, %edx
	jae	LBB0_3
## %bb.2:
	xorl	%edx, %edx
	jmp	LBB0_10
LBB0_3:
	leaq	(%rax,%r9,4), %rdx
	leaq	(%r8,%r9,4), %rsi
	leaq	(%r11,%r9,4), %rbx
	leaq	(%rcx,%r9,4), %r10
	leaq	(%rdi,%r9,4), %r12
	cmpq	%rsi, %rax
	setb	%r13b
	cmpq	%rdx, %r8
	setb	%r15b
	cmpq	%rbx, %rax
	setb	%sil
	cmpq	%rdx, %r11
	setb	%r14b
	cmpq	%r10, %rax
	setb	%r10b
	cmpq	%rdx, %rcx
	setb	-41(%rbp)                       ## 1-byte Folded Spill
	cmpq	%r12, %rax
	setb	%bl
	cmpq	%rdx, %rdi
	setb	%r12b
	xorl	%edx, %edx
	testb	%r15b, %r13b
	jne	LBB0_10
## %bb.4:
	andb	%r14b, %sil
	jne	LBB0_10
## %bb.5:
	andb	-41(%rbp), %r10b                ## 1-byte Folded Reload
	jne	LBB0_10
## %bb.6:
	andb	%r12b, %bl
	jne	LBB0_10
## %bb.7:
	movl	%r9d, %edx
	andl	$-4, %edx
	movaps	%xmm1, %xmm3
	shufps	$0, %xmm1, %xmm3                ## xmm3 = xmm3[0,0],xmm1[0,0]
	movaps	%xmm0, %xmm4
	shufps	$0, %xmm0, %xmm4                ## xmm4 = xmm4[0,0],xmm0[0,0]
	movaps	%xmm2, %xmm5
	shufps	$0, %xmm2, %xmm5                ## xmm5 = xmm5[0,0],xmm2[0,0]
	leaq	(,%r9,4), %r10
	andq	$-16, %r10
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movups	(%rax,%rsi), %xmm6
	movups	(%r8,%rsi), %xmm7
	mulps	%xmm3, %xmm7
	mulps	%xmm4, %xmm6
	addps	%xmm7, %xmm6
	movups	(%r11,%rsi), %xmm7
	mulps	%xmm4, %xmm7
	addps	%xmm6, %xmm7
	movups	(%rcx,%rsi), %xmm6
	mulps	%xmm5, %xmm6
	addps	%xmm7, %xmm6
	movups	(%rdi,%rsi), %xmm7
	mulps	%xmm5, %xmm7
	addps	%xmm6, %xmm7
	movups	%xmm7, (%rax,%rsi)
	addq	$16, %rsi
	cmpq	%rsi, %r10
	jne	LBB0_8
## %bb.9:
	cmpq	%r9, %rdx
	je	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movss	(%r8,%rdx,4), %xmm3             ## xmm3 = mem[0],zero,zero,zero
	mulss	%xmm1, %xmm3
	movss	(%rax,%rdx,4), %xmm4            ## xmm4 = mem[0],zero,zero,zero
	mulss	%xmm0, %xmm4
	addss	%xmm3, %xmm4
	movss	(%r11,%rdx,4), %xmm3            ## xmm3 = mem[0],zero,zero,zero
	mulss	%xmm0, %xmm3
	addss	%xmm4, %xmm3
	movss	(%rcx,%rdx,4), %xmm4            ## xmm4 = mem[0],zero,zero,zero
	mulss	%xmm2, %xmm4
	addss	%xmm3, %xmm4
	movss	(%rdi,%rdx,4), %xmm3            ## xmm3 = mem[0],zero,zero,zero
	mulss	%xmm2, %xmm3
	addss	%xmm4, %xmm3
	movss	%xmm3, (%rax,%rdx,4)
	incq	%rdx
	cmpq	%rdx, %r9
	jne	LBB0_10
LBB0_11:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ac3_downmix_5_to_1_symmetric_c
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ac3_downmix_5_to_1_symmetric_c
_ac3_downmix_5_to_1_symmetric_c:        ; @ac3_downmix_5_to_1_symmetric_c
	.cfi_startproc
; %bb.0:
	cmp	w2, #1
	b.lt	LBB0_12
; %bb.1:
	ldr	x8, [x1]
	ldp	s0, s1, [x8]
	ldr	s2, [x8, #12]
	ldp	x8, x10, [x0]
	ldp	x11, x12, [x0, #16]
	ldr	x14, [x0, #32]
	mov	w9, w2
	cmp	w2, #16
	b.hs	LBB0_3
; %bb.2:
	mov	x13, #0
	b	LBB0_10
LBB0_3:
	mov	x13, #0
	lsl	x0, x9, #2
	add	x1, x8, x0
	add	x15, x11, x0
	cmp	x8, x15
	ccmp	x11, x1, #2, lo
	cset	w15, lo
	add	x16, x12, x0
	cmp	x8, x16
	ccmp	x12, x1, #2, lo
	cset	w16, lo
	add	x17, x14, x0
	cmp	x8, x17
	ccmp	x14, x1, #2, lo
	cset	w17, lo
	cmp	x10, x1
	add	x0, x10, x0
	ccmp	x8, x0, #2, lo
	b.lo	LBB0_10
; %bb.4:
	tbnz	w15, #0, LBB0_10
; %bb.5:
	tbnz	w16, #0, LBB0_10
; %bb.6:
	tbnz	w17, #0, LBB0_10
; %bb.7:
	and	x13, x9, #0xfffffff0
	dup.4s	v3, v1[0]
	dup.4s	v4, v0[0]
	add	x15, x14, #32
	add	x16, x8, #32
	dup.4s	v5, v2[0]
	add	x17, x12, #32
	add	x0, x11, #32
	add	x1, x10, #32
	mov	x2, x13
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q6, q7, [x16, #-32]
	ldp	q16, q17, [x16]
	ldp	q18, q19, [x1, #-32]
	ldp	q20, q21, [x1], #64
	fmul.4s	v18, v3, v18
	fmul.4s	v19, v3, v19
	fmul.4s	v20, v3, v20
	fmul.4s	v21, v21, v1[0]
	fmla.4s	v18, v4, v6
	fmla.4s	v19, v4, v7
	fmla.4s	v20, v4, v16
	fmla.4s	v21, v4, v17
	ldp	q6, q7, [x0, #-32]
	ldp	q16, q17, [x0], #64
	fmla.4s	v18, v4, v6
	fmla.4s	v19, v4, v7
	fmla.4s	v20, v4, v16
	fmla.4s	v21, v4, v17
	ldp	q6, q7, [x17, #-32]
	ldp	q16, q17, [x17], #64
	fmla.4s	v18, v5, v6
	fmla.4s	v19, v5, v7
	fmla.4s	v20, v5, v16
	fmla.4s	v21, v5, v17
	ldp	q6, q7, [x15, #-32]
	ldp	q16, q17, [x15], #64
	fmla.4s	v18, v5, v6
	fmla.4s	v19, v5, v7
	fmla.4s	v20, v5, v16
	fmla.4s	v21, v5, v17
	stp	q18, q19, [x16, #-32]
	stp	q20, q21, [x16], #64
	subs	x2, x2, #16
	b.ne	LBB0_8
; %bb.9:
	cmp	x13, x9
	b.eq	LBB0_12
LBB0_10:
	lsl	x15, x13, #2
	add	x14, x14, x15
	add	x12, x12, x15
	add	x11, x11, x15
	add	x10, x10, x15
	add	x8, x8, x15
	sub	x9, x9, x13
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	s3, [x8]
	ldr	s4, [x10], #4
	fmul	s4, s1, s4
	fmadd	s3, s3, s0, s4
	ldr	s4, [x11], #4
	fmadd	s3, s4, s0, s3
	ldr	s4, [x12], #4
	fmadd	s3, s4, s2, s3
	ldr	s4, [x14], #4
	fmadd	s3, s4, s2, s3
	str	s3, [x8], #4
	subs	x9, x9, #1
	b.ne	LBB0_11
LBB0_12:
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ac3_downmix_5_to_1_symmetric_c
.subsections_via_symbols
