	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ac3_downmix_c_fixed
_ac3_downmix_c_fixed:                   ## @ac3_downmix_c_fixed
	.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
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	cmpl	$2, %edx
	je	LBB0_7
## %bb.1:
	cmpl	$1, %edx
	jne	LBB0_21
## %bb.2:
	testl	%r8d, %r8d
	jle	LBB0_21
## %bb.3:
	movq	(%rdi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	%r8d, %r10d
	movl	%ecx, %r11d
	leaq	-1(%r11), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	%r11d, %r14d
	andl	$3, %r14d
	andl	$-4, %r11d
	xorl	%r15d, %r15d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_4 Depth=1
	addl	$2048, %ebx                     ## imm = 0x800
	sarl	$12, %ebx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%ebx, (%rax,%r15,4)
	incq	%r15
	cmpq	%r10, %r15
	je	LBB0_21
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_16 Depth 2
                                        ##     Child Loop BB0_19 Depth 2
	movl	$0, %ebx
	testl	%ecx, %ecx
	jle	LBB0_20
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r12
	cmpq	$3, -48(%rbp)                   ## 8-byte Folded Reload
	jae	LBB0_15
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	xorl	%edx, %edx
	xorl	%ebx, %ebx
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_4 Depth=1
	xorl	%edx, %edx
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_16:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rdi,%rdx,8), %rax
	movq	8(%rdi,%rdx,8), %r13
	movl	(%r12,%rdx,4), %r8d
	movl	4(%r12,%rdx,4), %r9d
	imull	(%rax,%r15,4), %r8d
	addl	%ebx, %r8d
	imull	(%r13,%r15,4), %r9d
	addl	%r8d, %r9d
	movq	16(%rdi,%rdx,8), %rax
	movl	8(%r12,%rdx,4), %esi
	imull	(%rax,%r15,4), %esi
	movq	24(%rdi,%rdx,8), %rax
	movl	12(%r12,%rdx,4), %ebx
	imull	(%rax,%r15,4), %ebx
	addl	%r9d, %esi
	addl	%esi, %ebx
	addq	$4, %rdx
	cmpq	%rdx, %r11
	jne	LBB0_16
LBB0_17:                                ##   in Loop: Header=BB0_4 Depth=1
	testq	%r14, %r14
	je	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_4 Depth=1
	leaq	(%r12,%rdx,4), %r12
	leaq	(%rdi,%rdx,8), %r8
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_19:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r8,%rax,8), %rsi
	movl	(%r12,%rax,4), %edx
	imull	(%rsi,%r15,4), %edx
	addl	%edx, %ebx
	incq	%rax
	cmpq	%rax, %r14
	jne	LBB0_19
	jmp	LBB0_20
LBB0_7:
	testl	%r8d, %r8d
	jle	LBB0_21
## %bb.8:
	movq	(%rdi), %rsi
	movq	8(%rdi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	%r8d, %r11d
	movl	%ecx, %r14d
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
                                        ## kill: def $r14d killed $r14d killed $r14 def $r14
	andl	$-2, %r14d
	xorl	%r12d, %r12d
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_9 Depth=1
	addl	$2048, %eax                     ## imm = 0x800
	sarl	$12, %eax
	movl	%eax, (%rsi,%r12,4)
	addl	$2048, %ebx                     ## imm = 0x800
	sarl	$12, %ebx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%ebx, (%rax,%r12,4)
	incq	%r12
	cmpq	%r11, %r12
	je	LBB0_21
LBB0_9:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
	movl	$0, %eax
	movl	$0, %ebx
	testl	%ecx, %ecx
	jle	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r13
	movq	8(%rax), %r15
	xorl	%r10d, %r10d
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	cmpl	$1, %ecx
	je	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_9 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rdi,%r10,8), %r8
	movq	8(%rdi,%r10,8), %r9
	movl	(%r8,%r12,4), %edx
	movl	(%r13,%r10,4), %r8d
	imull	%edx, %r8d
	addl	%eax, %r8d
	imull	(%r15,%r10,4), %edx
	addl	%ebx, %edx
	movl	(%r9,%r12,4), %ebx
	movl	4(%r13,%r10,4), %eax
	imull	%ebx, %eax
	imull	4(%r15,%r10,4), %ebx
	addl	%r8d, %eax
	addl	%edx, %ebx
	addq	$2, %r10
	cmpq	%r10, %r14
	jne	LBB0_11
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=1
	testb	$1, -48(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	(%rdi,%r10,8), %rdx
	movl	(%rdx,%r12,4), %r8d
	movl	(%r13,%r10,4), %edx
	imull	%r8d, %edx
	addl	%edx, %eax
	imull	(%r15,%r10,4), %r8d
	addl	%r8d, %ebx
	jmp	LBB0_14
LBB0_21:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ac3_downmix_c_fixed
.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_fixed
_ac3_downmix_c_fixed:                   ; @ac3_downmix_c_fixed
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	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
	.cfi_offset w19, -8
	.cfi_offset w20, -16
	.cfi_offset w21, -24
	.cfi_offset w22, -32
	.cfi_offset w23, -40
	.cfi_offset w24, -48
	.cfi_offset w25, -56
	.cfi_offset w26, -64
	cmp	w2, #2
	b.eq	LBB0_14
; %bb.1:
	cmp	w2, #1
	b.ne	LBB0_26
; %bb.2:
	cmp	w4, #1
	b.lt	LBB0_26
; %bb.3:
	mov	x8, #0
	mov	x9, x0
	ldr	x10, [x9], #8
	mov	w11, w4
	mov	w12, w3
	and	x13, x12, #0xfffffffe
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	w15, #0
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	w14, w15, #2048
	asr	w14, w14, #12
	str	w14, [x10, x8, lsl #2]
	add	x8, x8, #1
	cmp	x8, x11
	b.eq	LBB0_26
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
                                        ;     Child Loop BB0_13 Depth 2
	cmp	w3, #1
	b.lt	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x14, [x1]
	cmp	w3, #1
	b.ne	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x17, #0
	mov	w15, #0
	b	LBB0_12
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	w15, #0
	mov	w16, #0
	add	x17, x14, #4
	mov	x2, x13
	mov	x4, x9
LBB0_10:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	x5, x6, [x4, #-8]
	lsl	x7, x8, #2
	ldr	w5, [x5, x7]
	ldr	w6, [x6, x7]
	ldp	w7, w19, [x17, #-4]
	madd	w15, w7, w5, w15
	madd	w16, w19, w6, w16
	add	x4, x4, #16
	add	x17, x17, #8
	subs	x2, x2, #2
	b.ne	LBB0_10
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	add	w15, w16, w15
	mov	x17, x13
	cmp	x13, x12
	b.eq	LBB0_5
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x14, x14, x17, lsl #2
	sub	x16, x12, x17
	add	x17, x0, x17, lsl #3
LBB0_13:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x2, [x17], #8
	ldr	w2, [x2, x8, lsl #2]
	ldr	w4, [x14], #4
	madd	w15, w4, w2, w15
	subs	x16, x16, #1
	b.ne	LBB0_13
	b	LBB0_5
LBB0_14:
	cmp	w4, #1
	b.lt	LBB0_26
; %bb.15:
	mov	x8, #0
	ldr	x9, [x0]
	mov	x10, x0
	ldr	x11, [x10, #8]!
	mov	w12, w4
	mov	w13, w3
	and	x14, x13, #0xfffffffe
	b	LBB0_18
LBB0_16:                                ;   in Loop: Header=BB0_18 Depth=1
	mov	w4, #0
	mov	w2, #0
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=1
	add	w16, w4, #2048
	asr	w16, w16, #12
	str	w16, [x9, x15]
	add	w16, w2, #2048
	asr	w16, w16, #12
	str	w16, [x11, x15]
	add	x8, x8, #1
	cmp	x8, x12
	b.eq	LBB0_26
LBB0_18:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_22 Depth 2
                                        ;     Child Loop BB0_25 Depth 2
	lsl	x15, x8, #2
	cmp	w3, #1
	b.lt	LBB0_16
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	ldp	x16, x17, [x1]
	cmp	w3, #1
	b.ne	LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_18 Depth=1
	mov	x6, #0
	mov	w2, #0
	mov	w4, #0
	b	LBB0_24
LBB0_21:                                ;   in Loop: Header=BB0_18 Depth=1
	mov	w2, #0
	mov	w5, #0
	mov	w4, #0
	mov	w6, #0
	add	x7, x16, #4
	add	x19, x17, #4
	mov	x20, x10
	mov	x21, x14
LBB0_22:                                ;   Parent Loop BB0_18 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	x22, x23, [x20, #-8]
	ldr	w22, [x22, x15]
	ldr	w23, [x23, x15]
	ldp	w24, w25, [x7, #-4]
	madd	w4, w24, w22, w4
	madd	w6, w25, w23, w6
	ldp	w24, w25, [x19, #-4]
	madd	w2, w24, w22, w2
	madd	w5, w25, w23, w5
	add	x7, x7, #8
	add	x19, x19, #8
	add	x20, x20, #16
	subs	x21, x21, #2
	b.ne	LBB0_22
; %bb.23:                               ;   in Loop: Header=BB0_18 Depth=1
	add	w4, w6, w4
	add	w2, w5, w2
	mov	x6, x14
	cmp	x14, x13
	b.eq	LBB0_17
LBB0_24:                                ;   in Loop: Header=BB0_18 Depth=1
	lsl	x5, x6, #2
	add	x17, x17, x5
	add	x16, x16, x5
	add	x5, x0, x6, lsl #3
	sub	x6, x13, x6
LBB0_25:                                ;   Parent Loop BB0_18 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x7, [x5], #8
	ldr	w7, [x7, x8, lsl #2]
	ldr	w19, [x16], #4
	madd	w4, w19, w7, w4
	ldr	w19, [x17], #4
	madd	w2, w19, w7, w2
	subs	x6, x6, #1
	b.ne	LBB0_25
	b	LBB0_17
LBB0_26:
	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	x26, x25, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ac3_downmix_c_fixed
.subsections_via_symbols
