	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ac3_downmix_c
_ac3_downmix_c:                         ## @ac3_downmix_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
	cmpl	$2, %edx
	je	LBB0_6
## %bb.1:
	cmpl	$1, %edx
	jne	LBB0_24
## %bb.2:
	testl	%r8d, %r8d
	jle	LBB0_24
## %bb.3:
	movq	(%rdi), %r9
	movl	%r8d, %r10d
	movl	%ecx, %r11d
	leaq	-1(%r11), %r8
	movl	%r11d, %r14d
	andl	$3, %r14d
	andl	$-4, %r11d
	xorl	%r12d, %r12d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_4 Depth=1
	xorps	%xmm0, %xmm0
LBB0_23:                                ##   in Loop: Header=BB0_4 Depth=1
	movss	%xmm0, (%r9,%r12,4)
	incq	%r12
	cmpq	%r10, %r12
	je	LBB0_24
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_19 Depth 2
                                        ##     Child Loop BB0_22 Depth 2
	testl	%ecx, %ecx
	jle	LBB0_5
## %bb.18:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	(%rsi), %r15
	xorps	%xmm0, %xmm0
	xorl	%eax, %eax
	cmpq	$3, %r8
	jb	LBB0_20
	.p2align	4, 0x90
LBB0_19:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rdi,%rax,8), %rdx
	movq	8(%rdi,%rax,8), %rbx
	movss	(%rdx,%r12,4), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	mulss	(%r15,%rax,4), %xmm1
	addss	%xmm0, %xmm1
	movss	(%rbx,%r12,4), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	mulss	4(%r15,%rax,4), %xmm2
	addss	%xmm1, %xmm2
	movq	16(%rdi,%rax,8), %rdx
	movss	(%rdx,%r12,4), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	mulss	8(%r15,%rax,4), %xmm1
	movq	24(%rdi,%rax,8), %rdx
	movss	(%rdx,%r12,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	mulss	12(%r15,%rax,4), %xmm0
	addss	%xmm2, %xmm1
	addss	%xmm1, %xmm0
	addq	$4, %rax
	cmpq	%rax, %r11
	jne	LBB0_19
LBB0_20:                                ##   in Loop: Header=BB0_4 Depth=1
	testq	%r14, %r14
	je	LBB0_23
## %bb.21:                              ##   in Loop: Header=BB0_4 Depth=1
	leaq	(%r15,%rax,4), %r15
	leaq	(%rdi,%rax,8), %rax
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_22:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rax,%rbx,8), %rdx
	movss	(%rdx,%r12,4), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	mulss	(%r15,%rbx,4), %xmm1
	addss	%xmm1, %xmm0
	incq	%rbx
	cmpq	%rbx, %r14
	jne	LBB0_22
	jmp	LBB0_23
LBB0_6:
	testl	%r8d, %r8d
	jle	LBB0_24
## %bb.7:
	movq	(%rdi), %r9
	movq	8(%rdi), %r10
	movl	%r8d, %r11d
	movl	%ecx, %r8d
	movl	%r8d, %r14d
	andl	$-2, %r14d
	xorl	%r13d, %r13d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_8 Depth=1
	xorps	%xmm1, %xmm1
LBB0_17:                                ##   in Loop: Header=BB0_8 Depth=1
	movss	%xmm1, (%r9,%r13,4)
	extractps	$1, %xmm1, (%r10,%r13,4)
	incq	%r13
	cmpq	%r11, %r13
	je	LBB0_24
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_13 Depth 2
	testl	%ecx, %ecx
	jle	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	(%rsi), %r12
	movq	8(%rsi), %r15
	xorps	%xmm0, %xmm0
	cmpl	$1, %ecx
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
                                        ## implicit-def: $xmm1
	xorl	%ebx, %ebx
	testb	$1, %r8b
	je	LBB0_17
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rdi,%rbx,8), %rdx
	movq	8(%rdi,%rbx,8), %rax
	movss	(%rdx,%r13,4), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	movsldup	%xmm1, %xmm3                    ## xmm3 = xmm1[0,0,2,2]
	movss	(%r12,%rbx,4), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	movss	4(%r12,%rbx,4), %xmm1           ## xmm1 = mem[0],zero,zero,zero
	insertps	$16, (%r15,%rbx,4), %xmm2       ## xmm2 = xmm2[0],mem[0],xmm2[2,3]
	mulps	%xmm3, %xmm2
	addps	%xmm0, %xmm2
	movss	(%rax,%r13,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movsldup	%xmm0, %xmm0                    ## xmm0 = xmm0[0,0,2,2]
	insertps	$16, 4(%r15,%rbx,4), %xmm1      ## xmm1 = xmm1[0],mem[0],xmm1[2,3]
	mulps	%xmm0, %xmm1
	movaps	%xmm1, %xmm0
	addps	%xmm2, %xmm0
	addq	$2, %rbx
	cmpq	%rbx, %r14
	jne	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_8 Depth=1
	addps	%xmm2, %xmm1
	testb	$1, %r8b
	je	LBB0_17
LBB0_16:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	(%rdi,%rbx,8), %rax
	movss	(%rax,%r13,4), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	movsldup	%xmm1, %xmm2                    ## xmm2 = xmm1[0,0,2,2]
	movss	(%r12,%rbx,4), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	insertps	$16, (%r15,%rbx,4), %xmm1       ## xmm1 = xmm1[0],mem[0],xmm1[2,3]
	mulps	%xmm2, %xmm1
	addps	%xmm0, %xmm1
	jmp	LBB0_17
LBB0_24:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ac3_downmix_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_c
_ac3_downmix_c:                         ; @ac3_downmix_c
	.cfi_startproc
; %bb.0:
	cmp	w2, #2
	b.eq	LBB0_9
; %bb.1:
	cmp	w2, #1
	b.ne	LBB0_16
; %bb.2:
	cmp	w4, #1
	b.lt	LBB0_16
; %bb.3:
	mov	x8, #0
	ldr	x9, [x0]
	mov	w10, w4
	mov	w11, w3
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	movi	d0, #0000000000000000
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	str	s0, [x9, x8, lsl #2]
	add	x8, x8, #1
	cmp	x8, x10
	b.eq	LBB0_16
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	cmp	w3, #1
	b.lt	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x12, [x1]
	movi	d0, #0000000000000000
	mov	x13, x11
	mov	x14, x0
LBB0_8:                                 ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x15, [x14], #8
	ldr	s1, [x15, x8, lsl #2]
	ldr	s2, [x12], #4
	fmadd	s0, s1, s2, s0
	subs	x13, x13, #1
	b.ne	LBB0_8
	b	LBB0_5
LBB0_9:
	cmp	w4, #1
	b.lt	LBB0_16
; %bb.10:
	mov	x8, #0
	ldp	x9, x10, [x0]
	mov	w11, w4
	mov	w12, w3
	b	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_13 Depth=1
	movi	d1, #0000000000000000
	movi	d0, #0000000000000000
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	lsl	x13, x8, #2
	str	s1, [x9, x13]
	str	s0, [x10, x13]
	add	x8, x8, #1
	cmp	x8, x11
	b.eq	LBB0_16
LBB0_13:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_15 Depth 2
	cmp	w3, #1
	b.lt	LBB0_11
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldp	x13, x14, [x1]
	movi	d0, #0000000000000000
	mov	x15, x12
	mov	x16, x0
	movi	d1, #0000000000000000
LBB0_15:                                ;   Parent Loop BB0_13 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x17, [x16], #8
	ldr	s2, [x17, x8, lsl #2]
	ldr	s3, [x13], #4
	fmadd	s1, s2, s3, s1
	ldr	s3, [x14], #4
	fmadd	s0, s2, s3, s0
	subs	x15, x15, #1
	b.ne	LBB0_15
	b	LBB0_12
LBB0_16:
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ac3_downmix_c
.subsections_via_symbols
