	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function opus_fade
LCPI0_0:
	.quad	0x3ff0000000000000              ## double 1
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3
LCPI0_1:
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_opus_fade:                             ## @opus_fade
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	.cfi_offset %rbx, -24
	testl	%r8d, %r8d
	jle	LBB0_15
## %bb.1:
	movl	%r8d, %r9d
	cmpl	$4, %r8d
	jae	LBB0_3
## %bb.2:
	xorl	%ebx, %ebx
LBB0_13:
	movsd	LCPI0_1(%rip), %xmm0            ## xmm0 = mem[0],zero
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movss	(%rcx,%rbx,4), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	movss	(%rdx,%rbx,4), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	mulss	%xmm1, %xmm2
	cvtss2sd	%xmm2, %xmm2
	movss	(%rsi,%rbx,4), %xmm3            ## xmm3 = mem[0],zero,zero,zero
	cvtss2sd	%xmm3, %xmm3
	cvtss2sd	%xmm1, %xmm1
	movapd	%xmm0, %xmm4
	subsd	%xmm1, %xmm4
	mulsd	%xmm3, %xmm4
	addsd	%xmm2, %xmm4
	xorps	%xmm1, %xmm1
	cvtsd2ss	%xmm4, %xmm1
	movss	%xmm1, (%rdi,%rbx,4)
	incq	%rbx
	cmpq	%rbx, %r9
	jne	LBB0_14
LBB0_15:
	popq	%rbx
	popq	%rbp
	retq
LBB0_3:
	movq	%rdi, %r8
	subq	%rdx, %r8
	xorl	%ebx, %ebx
	cmpq	$16, %r8
	jb	LBB0_13
## %bb.4:
	movq	%rdi, %rax
	subq	%rcx, %rax
	cmpq	$16, %rax
	jb	LBB0_13
## %bb.5:
	movq	%rdi, %rax
	subq	%rsi, %rax
	cmpq	$16, %rax
	jb	LBB0_13
## %bb.6:
	movl	%r9d, %ebx
	andl	$-4, %ebx
	leaq	-4(%rbx), %rax
	movq	%rax, %r10
	shrq	$2, %r10
	incq	%r10
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%r10, %r11
	andq	$-2, %r11
	xorl	%r8d, %r8d
	movapd	LCPI0_0(%rip), %xmm0            ## xmm0 = [1.0E+0,1.0E+0]
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movups	(%rdx,%r8,4), %xmm1
	movups	(%rcx,%r8,4), %xmm2
	mulps	%xmm2, %xmm1
	cvtps2pd	%xmm1, %xmm3
	movhlps	%xmm1, %xmm1                    ## xmm1 = xmm1[1,1]
	cvtps2pd	%xmm1, %xmm1
	cvtps2pd	8(%rsi,%r8,4), %xmm4
	cvtps2pd	(%rsi,%r8,4), %xmm5
	cvtps2pd	%xmm2, %xmm2
	movddup	8(%rcx,%r8,4), %xmm6            ## xmm6 = mem[0,0]
	cvtps2pd	%xmm6, %xmm6
	movapd	%xmm0, %xmm7
	subpd	%xmm6, %xmm7
	mulpd	%xmm4, %xmm7
	addpd	%xmm1, %xmm7
	movapd	%xmm0, %xmm1
	subpd	%xmm2, %xmm1
	mulpd	%xmm5, %xmm1
	addpd	%xmm3, %xmm1
	cvtpd2ps	%xmm7, %xmm2
	cvtpd2ps	%xmm1, %xmm1
	unpcklpd	%xmm2, %xmm1                    ## xmm1 = xmm1[0],xmm2[0]
	movupd	%xmm1, (%rdi,%r8,4)
	movups	16(%rdx,%r8,4), %xmm1
	movups	16(%rcx,%r8,4), %xmm2
	mulps	%xmm2, %xmm1
	cvtps2pd	%xmm1, %xmm3
	movhlps	%xmm1, %xmm1                    ## xmm1 = xmm1[1,1]
	cvtps2pd	%xmm1, %xmm1
	cvtps2pd	24(%rsi,%r8,4), %xmm4
	cvtps2pd	16(%rsi,%r8,4), %xmm5
	cvtps2pd	%xmm2, %xmm2
	movddup	24(%rcx,%r8,4), %xmm6           ## xmm6 = mem[0,0]
	cvtps2pd	%xmm6, %xmm6
	movapd	%xmm0, %xmm7
	subpd	%xmm6, %xmm7
	mulpd	%xmm4, %xmm7
	addpd	%xmm1, %xmm7
	movapd	%xmm0, %xmm1
	subpd	%xmm2, %xmm1
	mulpd	%xmm5, %xmm1
	addpd	%xmm3, %xmm1
	cvtpd2ps	%xmm7, %xmm2
	cvtpd2ps	%xmm1, %xmm1
	unpcklpd	%xmm2, %xmm1                    ## xmm1 = xmm1[0],xmm2[0]
	movupd	%xmm1, 16(%rdi,%r8,4)
	addq	$8, %r8
	addq	$-2, %r11
	jne	LBB0_9
## %bb.10:
	testb	$1, %r10b
	je	LBB0_12
LBB0_11:
	movups	(%rdx,%r8,4), %xmm0
	movups	(%rcx,%r8,4), %xmm1
	mulps	%xmm1, %xmm0
	cvtps2pd	%xmm0, %xmm2
	movhlps	%xmm0, %xmm0                    ## xmm0 = xmm0[1,1]
	cvtps2pd	%xmm0, %xmm0
	cvtps2pd	8(%rsi,%r8,4), %xmm3
	cvtps2pd	(%rsi,%r8,4), %xmm4
	cvtps2pd	%xmm1, %xmm1
	movddup	8(%rcx,%r8,4), %xmm5            ## xmm5 = mem[0,0]
	cvtps2pd	%xmm5, %xmm5
	movapd	LCPI0_0(%rip), %xmm6            ## xmm6 = [1.0E+0,1.0E+0]
	movapd	%xmm6, %xmm7
	subpd	%xmm5, %xmm7
	mulpd	%xmm3, %xmm7
	addpd	%xmm0, %xmm7
	subpd	%xmm1, %xmm6
	mulpd	%xmm4, %xmm6
	addpd	%xmm2, %xmm6
	cvtpd2ps	%xmm7, %xmm0
	cvtpd2ps	%xmm6, %xmm1
	unpcklpd	%xmm0, %xmm1                    ## xmm1 = xmm1[0],xmm0[0]
	movupd	%xmm1, (%rdi,%r8,4)
LBB0_12:
	cmpq	%r9, %rbx
	jne	LBB0_13
	jmp	LBB0_15
LBB0_7:
	xorl	%r8d, %r8d
	testb	$1, %r10b
	jne	LBB0_11
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_opus_fade
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function opus_fade
_opus_fade:                             ; @opus_fade
	.cfi_startproc
; %bb.0:
	cmp	w4, #1
	b.lt	LBB0_11
; %bb.1:
	mov	w8, w4
	cmp	w4, #4
	b.hs	LBB0_3
; %bb.2:
	mov	x9, #0
	b	LBB0_9
LBB0_3:
	mov	x9, #0
	sub	x10, x0, x2
	cmp	x10, #16
	b.lo	LBB0_9
; %bb.4:
	sub	x10, x0, x3
	cmp	x10, #16
	b.lo	LBB0_9
; %bb.5:
	sub	x10, x0, x1
	cmp	x10, #16
	b.lo	LBB0_9
; %bb.6:
	and	x9, x8, #0xfffffffc
	mov	x10, x9
	fmov.2d	v0, #1.00000000
	mov	x11, x0
	mov	x12, x1
	mov	x13, x3
	mov	x14, x2
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	q1, [x14], #16
	ldr	q2, [x13], #16
	fmul.4s	v1, v1, v2
	fcvtl	v3.2d, v1.2s
	fcvtl2	v1.2d, v1.4s
	ldr	q4, [x12], #16
	fcvtl	v5.2d, v4.2s
	fcvtl2	v4.2d, v4.4s
	fcvtl2	v6.2d, v2.4s
	fcvtl	v2.2d, v2.2s
	fsub.2d	v2, v0, v2
	fsub.2d	v6, v0, v6
	fmla.2d	v1, v6, v4
	fmla.2d	v3, v2, v5
	fcvtn	v2.2s, v3.2d
	fcvtn2	v2.4s, v1.2d
	str	q2, [x11], #16
	subs	x10, x10, #4
	b.ne	LBB0_7
; %bb.8:
	cmp	x9, x8
	b.eq	LBB0_11
LBB0_9:
	lsl	x13, x9, #2
	add	x10, x0, x13
	add	x11, x1, x13
	add	x12, x3, x13
	add	x13, x2, x13
	sub	x8, x8, x9
	fmov	d0, #1.00000000
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	s1, [x13], #4
	ldr	s2, [x12], #4
	fmul	s1, s1, s2
	fcvt	d1, s1
	ldr	s3, [x11], #4
	fcvt	d3, s3
	fcvt	d2, s2
	fsub	d2, d0, d2
	fmadd	d1, d3, d2, d1
	fcvt	s1, d1
	str	s1, [x10], #4
	subs	x8, x8, #1
	b.ne	LBB0_10
LBB0_11:
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_opus_fade
.subsections_via_symbols
