	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dot_prods
_dot_prods:                             ## @dot_prods
	.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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	testl	%r8d, %r8d
	jle	LBB0_14
## %bb.1:
	movl	%r8d, %eax
	movq	16(%rbp), %r15
	movl	%r9d, %edx
	imull	%r8d, %edx
	movslq	%edx, %rdx
	movq	-56(%rbp), %r10                 ## 8-byte Reload
	leaq	(%r10,%rdx,4), %r13
	movslq	%r9d, %rdx
	movl	%r8d, %eax
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	movl	%edx, %r8d
	movl	%r8d, %eax
	andl	$-8, %eax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	addq	$-8, %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	shrq	$3, %rdi
	incq	%rdi
	movq	%rdi, %rax
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	andq	$-2, %rdi
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	leaq	48(%r10), %rbx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	leaq	(,%rdx,4), %rax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	xorl	%r12d, %r12d
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	movq	%rcx, -112(%rbp)                ## 8-byte Spill
	movq	%r13, -104(%rbp)                ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	xorps	%xmm0, %xmm0
	cvtsi2ss	%edi, %xmm0
	leal	(%r11,%r14,2), %eax
	cltq
	mulss	(%r13,%rax,4), %xmm0
	orl	$4, %eax
	mulss	(%r15), %xmm0
	cltq
	addss	(%r13,%rax,4), %xmm0
	movss	%xmm0, (%rcx,%r12,4)
	incq	%r12
	movq	-120(%rbp), %rax                ## 8-byte Reload
	addq	%rax, %rbx
	addq	%rax, %r10
	cmpq	-128(%rbp), %r12                ## 8-byte Folded Reload
	je	LBB0_14
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
                                        ##     Child Loop BB0_12 Depth 2
	movl	%r12d, %r14d
	andl	$-4, %r14d
	movl	%r12d, %r11d
	andl	$3, %r11d
	movl	$0, %edi
	testl	%r9d, %r9d
	jle	LBB0_13
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$8, %r9d
	jae	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edx, %edx
	xorl	%edi, %edi
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, -88(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	pxor	%xmm0, %xmm0
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	xorl	%r15d, %r15d
	pxor	%xmm1, %xmm1
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movdqu	(%rsi,%r15,4), %xmm2
	movdqu	16(%rsi,%r15,4), %xmm3
	movdqu	32(%rsi,%r15,4), %xmm4
	movdqu	48(%rsi,%r15,4), %xmm5
	movdqu	-48(%rbx,%r15,4), %xmm6
	pmulld	%xmm2, %xmm6
	paddd	%xmm0, %xmm6
	movdqu	-32(%rbx,%r15,4), %xmm2
	pmulld	%xmm3, %xmm2
	paddd	%xmm1, %xmm2
	movdqu	-16(%rbx,%r15,4), %xmm0
	pmulld	%xmm4, %xmm0
	paddd	%xmm6, %xmm0
	movdqu	(%rbx,%r15,4), %xmm1
	pmulld	%xmm5, %xmm1
	paddd	%xmm2, %xmm1
	addq	$16, %r15
	addq	$-2, %r13
	jne	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	testb	$1, -80(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_11
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rcx
	imulq	-64(%rbp), %rcx                 ## 8-byte Folded Reload
	movdqu	(%rsi,%r15,4), %xmm2
	movdqu	16(%rsi,%r15,4), %xmm3
	addq	%r15, %rcx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movdqu	(%rax,%rcx,4), %xmm4
	pmulld	%xmm2, %xmm4
	paddd	%xmm4, %xmm0
	movdqu	16(%rax,%rcx,4), %xmm2
	pmulld	%xmm3, %xmm2
	paddd	%xmm2, %xmm1
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	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, %edi
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, %rdx
	cmpq	%r8, %rax
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	movq	16(%rbp), %r15
	movq	-104(%rbp), %r13                ## 8-byte Reload
	je	LBB0_13
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r10,%rdx,4), %eax
	imull	(%rsi,%rdx,4), %eax
	addl	%eax, %edi
	incq	%rdx
	cmpq	%rdx, %r8
	jne	LBB0_12
	jmp	LBB0_13
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	pxor	%xmm0, %xmm0
	xorl	%r15d, %r15d
	pxor	%xmm1, %xmm1
	testb	$1, -80(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_10
	jmp	LBB0_11
LBB0_14:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_dot_prods
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dot_prods
_dot_prods:                             ; @dot_prods
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	.cfi_offset w19, -8
	.cfi_offset w20, -16
	.cfi_offset w21, -24
	.cfi_offset w22, -32
                                        ; kill: def $w5 killed $w5 def $x5
	cmp	w4, #1
	b.lt	LBB0_12
; %bb.1:
	mov	x8, #0
	mov	x9, #0
	mul	w10, w5, w4
	add	x10, x2, w10, sxtw #2
	mov	w11, w4
	mov	w12, w5
	sxtw	x13, w5
	and	x14, x12, #0xfffffff0
	add	x15, x2, #32
	sbfiz	x16, x5, #2, #32
	add	x17, x1, #32
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #0
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	lsr	w4, w9, #2
	and	w7, w9, #0x3
	bfi	w7, w4, #3, #29
	scvtf	s0, w0
	sbfiz	x0, x7, #2, #32
	ldr	s1, [x10, x0]
	fmul	s0, s1, s0
	ldr	s1, [x6]
	orr	x0, x0, #0x10
	ldr	s2, [x10, x0]
	fmadd	s0, s0, s1, s2
	str	s0, [x3, x9, lsl #2]
	add	x9, x9, #1
	add	x15, x15, x16
	add	x8, x8, x13
	cmp	x9, x11
	b.eq	LBB0_12
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
                                        ;     Child Loop BB0_11 Depth 2
	cmp	w5, #1
	b.lt	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w5, #16
	b.hs	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x19, #0
	mov	w0, #0
	b	LBB0_10
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	movi.2d	v0, #0000000000000000
	mov	x0, x17
	mov	x4, x15
	mov	x7, x14
	movi.2d	v1, #0000000000000000
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_8:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	q4, q5, [x0, #-32]
	ldp	q6, q7, [x0], #64
	ldp	q16, q17, [x4, #-32]
	ldp	q18, q19, [x4], #64
	mla.4s	v0, v16, v4
	mla.4s	v1, v17, v5
	mla.4s	v2, v18, v6
	mla.4s	v3, v19, v7
	subs	x7, x7, #16
	b.ne	LBB0_8
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	add.4s	v0, v1, v0
	add.4s	v0, v2, v0
	add.4s	v0, v3, v0
	addv.4s	s0, v0
	fmov	w0, s0
	mov	x19, x14
	cmp	x14, x12
	b.eq	LBB0_3
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x4, x19, x8
	add	x4, x2, x4, lsl #2
	add	x7, x1, x19, lsl #2
	sub	x19, x12, x19
LBB0_11:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w20, [x7], #4
	ldr	w21, [x4], #4
	madd	w0, w21, w20, w0
	subs	x19, x19, #1
	b.ne	LBB0_11
	b	LBB0_3
LBB0_12:
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_dot_prods
.subsections_via_symbols
