	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function ff_dca_downmix_to_stereo_float
LCPI0_0:
	.long	0x38000000                      ## float 3.05175781E-5
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_ff_dca_downmix_to_stereo_float
	.p2align	4, 0x90
_ff_dca_downmix_to_stereo_float:        ## @ff_dca_downmix_to_stereo_float
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r15d
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	%r8d, %edi
	callq	_av_log2
	movl	%eax, %r14d
	movl	%r15d, %edi
	callq	_av_popcount
	cltq
	leaq	(%rbx,%rax,4), %r13
	movl	%r15d, %edi
	callq	_DCA_HAS_STEREO
	movl	%eax, %edi
	callq	_av_assert0
	movq	_DCA_SPEAKER_MASK_C@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r15d, %eax
	movslq	%eax, %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	_DCA_SPEAKER_L@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r12,%rax,8), %rdi
	cvtsi2ssl	(%rbx,%rcx,4), %xmm0
	mulss	LCPI0_0(%rip), %xmm0
	cvttss2si	%xmm0, %edx
	movq	%rdi, %rsi
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %ecx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	callq	*8(%rax)
	movq	_DCA_SPEAKER_R@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	xorps	%xmm0, %xmm0
	cvtsi2ssl	4(%r13,%rcx,4), %xmm0
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx,%rax,8), %rdi
	mulss	LCPI0_0(%rip), %xmm0
	cvttss2si	%xmm0, %edx
	movq	%rdi, %rsi
	movl	%r12d, %ecx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	callq	*8(%rax)
	testl	%r14d, %r14d
	js	LBB0_11
## %bb.1:
	incl	%r14d
	xorl	%r12d, %r12d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	$4, %rbx
	addq	$4, %r13
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	cmpq	%r12, %r14
	je	LBB0_11
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	btl	%r12d, %r15d
	jae	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rbx), %eax
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_DCA_SPEAKER_L@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %r12
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rdx,%rcx,8), %rdi
	xorps	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm0
	movq	(%rdx,%r12,8), %rsi
	mulss	LCPI0_0(%rip), %xmm0
	cvttss2si	%xmm0, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	callq	*(%rax)
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r13), %eax
	testl	%eax, %eax
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_DCA_SPEAKER_R@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %r12
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rdx,%rcx,8), %rdi
	xorps	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm0
	movq	(%rdx,%r12,8), %rsi
	mulss	LCPI0_0(%rip), %xmm0
	cvttss2si	%xmm0, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	callq	*(%rax)
	jmp	LBB0_9
LBB0_11:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DCA_SPEAKER_MASK_C,4,2         ## @DCA_SPEAKER_MASK_C
	.comm	_DCA_SPEAKER_L,8,3              ## @DCA_SPEAKER_L
	.comm	_DCA_SPEAKER_R,8,3              ## @DCA_SPEAKER_R
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_dca_downmix_to_stereo_float ; -- Begin function ff_dca_downmix_to_stereo_float
	.p2align	2
_ff_dca_downmix_to_stereo_float:        ; @ff_dca_downmix_to_stereo_float
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-112]!            ; 16-byte Folded Spill
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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 w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	mov	x0, x4
	bl	_av_log2
	mov	x24, x0
	mov	x0, x19
	bl	_av_popcount
	add	x25, x21, w0, sxtw #2
	mov	x0, x19
	bl	_DCA_HAS_STEREO
	bl	_av_assert0
Lloh0:
	adrp	x8, _DCA_SPEAKER_MASK_C@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DCA_SPEAKER_MASK_C@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w8, w8, w19
Lloh3:
	adrp	x26, _DCA_SPEAKER_L@GOTPAGE
Lloh4:
	ldr	x26, [x26, _DCA_SPEAKER_L@GOTPAGEOFF]
	ldr	x9, [x26]
	ldr	x0, [x22, x9, lsl #3]
	sbfiz	x28, x8, #2, #32
	ldr	s0, [x21, x28]
	ldr	x8, [x23, #8]
	scvtf	s0, s0
	movi.2s	v8, #56, lsl #24
	fmul	s0, s0, s8
	fcvtzs	w2, s0
	mov	x1, x0
	mov	x3, x20
	blr	x8
	ldr	x8, [x23, #8]
Lloh5:
	adrp	x27, _DCA_SPEAKER_R@GOTPAGE
Lloh6:
	ldr	x27, [x27, _DCA_SPEAKER_R@GOTPAGEOFF]
	ldr	x9, [x27]
	ldr	x0, [x22, x9, lsl #3]
	add	x9, x28, x25
	ldr	s0, [x9, #4]
	scvtf	s0, s0
	fmul	s0, s0, s8
	fcvtzs	w2, s0
	mov	x1, x0
	mov	x3, x20
	blr	x8
	tbnz	w24, #31, LBB0_11
; %bb.1:
	mov	x28, #0
	add	w24, w24, #1
	movi.2s	v8, #56, lsl #24
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x21, x21, #4
	add	x25, x25, #4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x28, x28, #1
	cmp	x24, x28
	b.eq	LBB0_11
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	lsr	w8, w19, w28
	tbz	w8, #0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x21]
	cbz	w8, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x26]
	cmp	x28, x9
	b.eq	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x22, x9, lsl #3]
	ldr	x1, [x22, x28, lsl #3]
	ldr	x9, [x23]
	scvtf	s0, w8
	fmul	s0, s0, s8
	fcvtzs	w2, s0
	mov	x3, x20
	blr	x9
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x25]
	cbz	w8, LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x27]
	cmp	x28, x9
	b.eq	LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x22, x9, lsl #3]
	ldr	x1, [x22, x28, lsl #3]
	ldr	x9, [x23]
	scvtf	s0, w8
	fmul	s0, s0, s8
	fcvtzs	w2, s0
	mov	x3, x20
	blr	x9
	b	LBB0_2
LBB0_11:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #112              ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DCA_SPEAKER_MASK_C,4,2         ; @DCA_SPEAKER_MASK_C
	.comm	_DCA_SPEAKER_L,8,3              ; @DCA_SPEAKER_L
	.comm	_DCA_SPEAKER_R,8,3              ; @DCA_SPEAKER_R
.subsections_via_symbols
