	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_weighted_vector_sumf        ## -- Begin function ff_weighted_vector_sumf
	.p2align	4, 0x90
_ff_weighted_vector_sumf:               ## @ff_weighted_vector_sumf
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testl	%ecx, %ecx
	jle	LBB0_16
## %bb.1:
	movl	%ecx, %r8d
	cmpl	$8, %ecx
	jae	LBB0_3
## %bb.2:
	xorl	%ecx, %ecx
LBB0_12:
	movq	%rcx, %rax
	notq	%rax
	testb	$1, %r8b
	je	LBB0_14
## %bb.13:
	movss	(%rdx,%rcx,4), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	mulss	%xmm1, %xmm2
	movss	(%rsi,%rcx,4), %xmm3            ## xmm3 = mem[0],zero,zero,zero
	mulss	%xmm0, %xmm3
	addss	%xmm2, %xmm3
	movss	%xmm3, (%rdi,%rcx,4)
	orq	$1, %rcx
LBB0_14:
	addq	%r8, %rax
	je	LBB0_16
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movss	(%rdx,%rcx,4), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	mulss	%xmm1, %xmm2
	movss	(%rsi,%rcx,4), %xmm3            ## xmm3 = mem[0],zero,zero,zero
	mulss	%xmm0, %xmm3
	addss	%xmm2, %xmm3
	movss	%xmm3, (%rdi,%rcx,4)
	movss	4(%rdx,%rcx,4), %xmm2           ## xmm2 = mem[0],zero,zero,zero
	mulss	%xmm1, %xmm2
	movss	4(%rsi,%rcx,4), %xmm3           ## xmm3 = mem[0],zero,zero,zero
	mulss	%xmm0, %xmm3
	addss	%xmm2, %xmm3
	movss	%xmm3, 4(%rdi,%rcx,4)
	addq	$2, %rcx
	cmpq	%rcx, %r8
	jne	LBB0_15
	jmp	LBB0_16
LBB0_3:
	movq	%rdi, %rax
	subq	%rsi, %rax
	xorl	%ecx, %ecx
	cmpq	$32, %rax
	jb	LBB0_12
## %bb.4:
	movq	%rdi, %rax
	subq	%rdx, %rax
	cmpq	$32, %rax
	jb	LBB0_12
## %bb.5:
	movl	%r8d, %ecx
	andl	$-8, %ecx
	movaps	%xmm1, %xmm3
	shufps	$0, %xmm1, %xmm3                ## xmm3 = xmm3[0,0],xmm1[0,0]
	movaps	%xmm0, %xmm2
	shufps	$0, %xmm0, %xmm2                ## xmm2 = xmm2[0,0],xmm0[0,0]
	leaq	-8(%rcx), %rax
	movq	%rax, %r9
	shrq	$3, %r9
	incq	%r9
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%r9, %r10
	andq	$-2, %r10
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movups	(%rsi,%rax,4), %xmm4
	movups	16(%rsi,%rax,4), %xmm5
	movups	(%rdx,%rax,4), %xmm6
	movups	16(%rdx,%rax,4), %xmm7
	mulps	%xmm3, %xmm6
	mulps	%xmm3, %xmm7
	mulps	%xmm2, %xmm4
	addps	%xmm6, %xmm4
	mulps	%xmm2, %xmm5
	addps	%xmm7, %xmm5
	movups	%xmm4, (%rdi,%rax,4)
	movups	%xmm5, 16(%rdi,%rax,4)
	movups	32(%rsi,%rax,4), %xmm4
	movups	48(%rsi,%rax,4), %xmm5
	movups	32(%rdx,%rax,4), %xmm6
	movups	48(%rdx,%rax,4), %xmm7
	mulps	%xmm3, %xmm6
	mulps	%xmm3, %xmm7
	mulps	%xmm2, %xmm4
	addps	%xmm6, %xmm4
	mulps	%xmm2, %xmm5
	addps	%xmm7, %xmm5
	movups	%xmm4, 32(%rdi,%rax,4)
	movups	%xmm5, 48(%rdi,%rax,4)
	addq	$16, %rax
	addq	$-2, %r10
	jne	LBB0_8
## %bb.9:
	testb	$1, %r9b
	je	LBB0_11
LBB0_10:
	movups	(%rsi,%rax,4), %xmm4
	movups	16(%rsi,%rax,4), %xmm5
	movups	(%rdx,%rax,4), %xmm6
	movups	16(%rdx,%rax,4), %xmm7
	mulps	%xmm3, %xmm6
	mulps	%xmm3, %xmm7
	mulps	%xmm2, %xmm4
	addps	%xmm6, %xmm4
	mulps	%xmm2, %xmm5
	addps	%xmm7, %xmm5
	movups	%xmm4, (%rdi,%rax,4)
	movups	%xmm5, 16(%rdi,%rax,4)
LBB0_11:
	cmpq	%r8, %rcx
	jne	LBB0_12
LBB0_16:
	popq	%rbp
	retq
LBB0_6:
	xorl	%eax, %eax
	testb	$1, %r9b
	jne	LBB0_10
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_weighted_vector_sumf        ; -- Begin function ff_weighted_vector_sumf
	.p2align	2
_ff_weighted_vector_sumf:               ; @ff_weighted_vector_sumf
	.cfi_startproc
; %bb.0:
                                        ; kill: def $s1 killed $s1 def $q1
                                        ; kill: def $s0 killed $s0 def $q0
	cmp	w3, #1
	b.lt	LBB0_10
; %bb.1:
	mov	w8, w3
	cmp	w3, #16
	b.hs	LBB0_3
; %bb.2:
	mov	x9, #0
	b	LBB0_8
LBB0_3:
	mov	x9, #0
	sub	x10, x0, x1
	cmp	x10, #64
	b.lo	LBB0_8
; %bb.4:
	sub	x10, x0, x2
	cmp	x10, #64
	b.lo	LBB0_8
; %bb.5:
	and	x9, x8, #0xfffffff0
	dup.4s	v2, v1[0]
	dup.4s	v3, v0[0]
	add	x10, x0, #32
	add	x11, x1, #32
	add	x12, x2, #32
	mov	x13, x9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q4, q5, [x11, #-32]
	ldp	q6, q7, [x11], #64
	ldp	q16, q17, [x12, #-32]
	ldp	q18, q19, [x12], #64
	fmul.4s	v16, v16, v2
	fmul.4s	v17, v17, v2
	fmul.4s	v18, v18, v2
	fmul.4s	v19, v19, v1[0]
	fmla.4s	v16, v4, v3
	fmla.4s	v17, v5, v3
	fmla.4s	v18, v6, v3
	fmla.4s	v19, v7, v3
	stp	q16, q17, [x10, #-32]
	stp	q18, q19, [x10], #64
	subs	x13, x13, #16
	b.ne	LBB0_6
; %bb.7:
	cmp	x9, x8
	b.eq	LBB0_10
LBB0_8:
	lsl	x12, x9, #2
	add	x10, x0, x12
	add	x11, x2, x12
	add	x12, x1, x12
	sub	x8, x8, x9
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	s2, [x12], #4
	ldr	s3, [x11], #4
	fmul	s3, s3, s1
	fmadd	s2, s0, s2, s3
	str	s2, [x10], #4
	subs	x8, x8, #1
	b.ne	LBB0_9
LBB0_10:
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
