	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_ac3dsp_downmix              ## -- Begin function ff_ac3dsp_downmix
	.p2align	4, 0x90
_ff_ac3dsp_downmix:                     ## @ff_ac3dsp_downmix
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	cmpl	%r8d, (%rdi)
	jne	LBB0_2
## %bb.1:
	cmpl	%ecx, 4(%r14)
	je	LBB0_14
LBB0_2:
	movl	%r8d, (%r14)
	movl	%ecx, 4(%r14)
	movq	$0, 8(%r14)
	cmpl	$2, %ecx
	jne	LBB0_6
## %bb.3:
	cmpl	$5, %r8d
	jne	LBB0_6
## %bb.4:
	movq	(%rdx), %rax
	movq	8(%rdx), %rbx
	movl	8(%rax), %edi
	orl	(%rbx), %edi
	orl	12(%rbx), %edi
	orl	16(%rax), %edi
	movl	4(%rbx), %esi
	movl	8(%rbx), %ebx
	xorl	4(%rax), %esi
	orl	%edi, %esi
	xorl	(%rax), %ebx
	orl	%esi, %ebx
	jne	LBB0_12
## %bb.5:
	movq	_ac3_downmix_5_to_2_symmetric_c@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_6:
	cmpl	$1, %ecx
	jne	LBB0_12
## %bb.7:
	cmpl	$5, %r8d
	jne	LBB0_12
## %bb.8:
	movq	(%rdx), %rax
	movl	(%rax), %esi
	cmpl	8(%rax), %esi
	jne	LBB0_12
## %bb.9:
	movl	12(%rax), %esi
	cmpl	16(%rax), %esi
	jne	LBB0_12
## %bb.10:
	movq	_ac3_downmix_5_to_1_symmetric_c@GOTPCREL(%rip), %rax
LBB0_11:
	movq	%rax, 8(%r14)
LBB0_12:
	movq	_ARCH_X86@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_14
## %bb.13:
	movq	%r14, %rdi
	movl	%r9d, %r13d
	movq	%rdx, %r12
	movl	%ecx, %ebx
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	callq	_ff_ac3dsp_set_downmix_x86
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movl	%ebx, %ecx
	movq	%r12, %rdx
	movl	%r13d, %r9d
LBB0_14:
	movq	8(%r14), %rax
	movq	%r15, %rdi
	movq	%rdx, %rsi
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movl	%r9d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_16:
	movl	%ecx, %edx
	movl	%r8d, %ecx
	movl	%r9d, %r8d
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ac3_downmix_c                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ARCH_X86,8,3                   ## @ARCH_X86
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_ac3dsp_downmix              ; -- Begin function ff_ac3dsp_downmix
	.p2align	2
_ff_ac3dsp_downmix:                     ; @ff_ac3dsp_downmix
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x5
	mov	x20, x4
	mov	x22, x3
	mov	x21, x2
	mov	x23, x1
	mov	x24, x0
	ldr	w8, [x0]
	cmp	w8, w4
	b.ne	LBB0_2
; %bb.1:
	ldr	w8, [x24, #4]
	cmp	w8, w22
	b.eq	LBB0_14
LBB0_2:
	stp	w20, w22, [x24]
	str	xzr, [x24, #8]
	cmp	w22, #2
	b.ne	LBB0_6
; %bb.3:
	cmp	w20, #5
	b.ne	LBB0_6
; %bb.4:
	ldp	x9, x8, [x21]
	ldr	w10, [x9, #8]
	ldp	w11, w12, [x8]
	orr	w10, w10, w11
	ldp	w8, w11, [x8, #8]
	orr	w10, w10, w11
	ldr	w11, [x9, #16]
	orr	w10, w10, w11
	ldp	w9, w11, [x9]
	eor	w11, w12, w11
	orr	w10, w10, w11
	eor	w8, w8, w9
	orr	w8, w10, w8
	cbnz	w8, LBB0_12
; %bb.5:
Lloh0:
	adrp	x8, _ac3_downmix_5_to_2_symmetric_c@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ac3_downmix_5_to_2_symmetric_c@GOTPAGEOFF]
	b	LBB0_11
LBB0_6:
	cmp	w22, #1
	b.ne	LBB0_12
; %bb.7:
	cmp	w20, #5
	b.ne	LBB0_12
; %bb.8:
	ldr	x8, [x21]
	ldr	w9, [x8]
	ldr	w10, [x8, #8]
	cmp	w9, w10
	b.ne	LBB0_12
; %bb.9:
	ldp	w9, w8, [x8, #12]
	cmp	w9, w8
	b.ne	LBB0_12
; %bb.10:
Lloh2:
	adrp	x8, _ac3_downmix_5_to_1_symmetric_c@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ac3_downmix_5_to_1_symmetric_c@GOTPAGEOFF]
LBB0_11:
	str	x8, [x24, #8]
LBB0_12:
Lloh4:
	adrp	x8, _ARCH_X86@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ARCH_X86@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	cbz	x8, LBB0_14
; %bb.13:
	mov	x0, x24
	bl	_ff_ac3dsp_set_downmix_x86
LBB0_14:
	ldr	x3, [x24, #8]
	cbz	x3, LBB0_16
; %bb.15:
	mov	x0, x23
	mov	x1, x21
	mov	x2, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	br	x3
LBB0_16:
	mov	x0, x23
	mov	x1, x21
	mov	x2, x22
	mov	x3, x20
	mov	x4, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_ac3_downmix_c
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_ARCH_X86,8,3                   ; @ARCH_X86
.subsections_via_symbols
