	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function scalarproduct_int16_c
_scalarproduct_int16_c:                 ## @scalarproduct_int16_c
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $edx killed $edx def $rdx
	testl	%edx, %edx
	je	LBB0_1
## %bb.2:
	leal	-1(%rdx), %r9d
	xorl	%eax, %eax
	cmpl	$7, %r9d
	jb	LBB0_11
## %bb.3:
	incq	%r9
	movq	%r9, %r8
	andq	$-8, %r8
	leaq	-8(%r8), %rax
	movq	%rax, %r10
	shrq	$3, %r10
	incq	%r10
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%r10, %rcx
	andq	$-2, %rcx
	pxor	%xmm0, %xmm0
	xorl	%eax, %eax
	pxor	%xmm1, %xmm1
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rdi,%rax,4), %xmm2
	movdqu	16(%rdi,%rax,4), %xmm3
	movdqu	32(%rdi,%rax,4), %xmm4
	movdqu	48(%rdi,%rax,4), %xmm5
	movdqu	(%rsi,%rax,4), %xmm6
	pmulld	%xmm2, %xmm6
	paddd	%xmm0, %xmm6
	movdqu	16(%rsi,%rax,4), %xmm2
	pmulld	%xmm3, %xmm2
	paddd	%xmm1, %xmm2
	movdqu	32(%rsi,%rax,4), %xmm0
	pmulld	%xmm4, %xmm0
	paddd	%xmm6, %xmm0
	movdqu	48(%rsi,%rax,4), %xmm1
	pmulld	%xmm5, %xmm1
	paddd	%xmm2, %xmm1
	addq	$16, %rax
	addq	$-2, %rcx
	jne	LBB0_6
## %bb.7:
	testb	$1, %r10b
	je	LBB0_9
LBB0_8:
	movdqu	(%rdi,%rax,4), %xmm2
	movdqu	16(%rdi,%rax,4), %xmm3
	movdqu	(%rsi,%rax,4), %xmm4
	pmulld	%xmm2, %xmm4
	paddd	%xmm4, %xmm0
	movdqu	16(%rsi,%rax,4), %xmm2
	pmulld	%xmm3, %xmm2
	paddd	%xmm2, %xmm1
LBB0_9:
	paddd	%xmm1, %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	paddd	%xmm0, %xmm1
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	paddd	%xmm1, %xmm0
	movd	%xmm0, %eax
	cmpq	%r8, %r9
	je	LBB0_13
## %bb.10:
	subl	%r8d, %edx
	leaq	(%rsi,%r8,4), %rsi
	leaq	(%rdi,%r8,4), %rdi
LBB0_11:
	movl	%edx, %r8d
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rsi,%rdx,4), %ecx
	imull	(%rdi,%rdx,4), %ecx
	addl	%ecx, %eax
	incq	%rdx
	cmpl	%edx, %r8d
	jne	LBB0_12
LBB0_13:
	popq	%rbp
	retq
LBB0_1:
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_4:
	pxor	%xmm0, %xmm0
	xorl	%eax, %eax
	pxor	%xmm1, %xmm1
	testb	$1, %r10b
	jne	LBB0_8
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_scalarproduct_int16_c
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function scalarproduct_int16_c
_scalarproduct_int16_c:                 ; @scalarproduct_int16_c
	.cfi_startproc
; %bb.0:
	cbz	w2, LBB0_3
; %bb.1:
	mov	x8, x0
	sub	w9, w2, #1
	cmp	w9, #15
	b.hs	LBB0_4
; %bb.2:
	mov	w0, #0
	mov	x9, x1
	mov	x10, x8
	b	LBB0_7
LBB0_3:
	mov	w0, #0
	ret
LBB0_4:
	add	x11, x9, #1
	and	x12, x11, #0x1fffffff0
	sub	w2, w2, w12
	lsl	x10, x12, #2
	add	x9, x1, x10
	add	x10, x8, x10
	add	x13, x1, #32
	add	x8, x8, #32
	movi.2d	v0, #0000000000000000
	mov	x14, x12
	movi.2d	v1, #0000000000000000
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q4, q5, [x8, #-32]
	ldp	q6, q7, [x8], #64
	ldp	q16, q17, [x13, #-32]
	ldp	q18, q19, [x13], #64
	mla.4s	v0, v16, v4
	mla.4s	v1, v17, v5
	mla.4s	v2, v18, v6
	mla.4s	v3, v19, v7
	subs	x14, x14, #16
	b.ne	LBB0_5
; %bb.6:
	add.4s	v0, v1, v0
	add.4s	v0, v2, v0
	add.4s	v0, v3, v0
	addv.4s	s0, v0
	fmov	w0, s0
	cmp	x11, x12
	b.eq	LBB0_8
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x10], #4
	ldr	w11, [x9], #4
	madd	w0, w11, w8, w0
	subs	w2, w2, #1
	b.ne	LBB0_7
LBB0_8:
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_scalarproduct_int16_c
.subsections_via_symbols
