	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function convolute_with_sparse
_convolute_with_sparse:                 ## @convolute_with_sparse
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $ecx killed $ecx def $rcx
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	leal	(,%rcx,4), %edx
	xorl	%esi, %esi
	callq	_memset
	movl	(%r15), %r11d
	testl	%r11d, %r11d
	jle	LBB0_15
## %bb.1:
	movq	8(%r15), %r13
	movslq	-56(%rbp), %rdx                 ## 4-byte Folded Reload
	leaq	(%rbx,%rdx,4), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	leaq	(%r12,%rdx,4), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rax
	negq	%rax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	leaq	16(%rbx), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	leaq	4(%r12), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	xorl	%esi, %esi
	movq	%r15, -112(%rbp)                ## 8-byte Spill
	movq	%r11, -104(%rbp)                ## 8-byte Spill
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%r11, %rsi
	je	LBB0_15
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
                                        ##     Child Loop BB0_13 Depth 2
	movq	%rsi, %rax
	incq	%rsi
	movslq	(%r13,%rax,4), %r10
	cmpl	-56(%rbp), %r10d                ## 4-byte Folded Reload
	jge	LBB0_14
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r15), %rcx
	leaq	(%rcx,%rax,4), %rdi
	movq	%rdx, %r8
	subq	%r10, %r8
	movq	%r10, %r9
	cmpq	$8, %r8
	jae	LBB0_4
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
                                        ## kill: def $eax killed $eax killed $rax def $rax
	subl	%r9d, %eax
	movq	%r9, %rcx
	testb	$1, %al
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movss	(%rdi), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	movq	%r9, %rax
	subq	%r10, %rax
	mulss	(%r12,%rax,4), %xmm0
	addss	(%rbx,%r9,4), %xmm0
	movss	%xmm0, (%rbx,%r9,4)
	leaq	1(%r9), %rcx
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	notq	%r9
	cmpq	-120(%rbp), %r9                 ## 8-byte Folded Reload
	je	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	shlq	$2, %r10
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	subq	%r10, %rax
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movss	(%rdi), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	mulss	-4(%rax,%rcx,4), %xmm0
	addss	(%rbx,%rcx,4), %xmm0
	movss	%xmm0, (%rbx,%rcx,4)
	movss	(%rdi), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	mulss	(%rax,%rcx,4), %xmm0
	addss	4(%rbx,%rcx,4), %xmm0
	movss	%xmm0, 4(%rbx,%rcx,4)
	addq	$2, %rcx
	cmpq	%rcx, %rdx
	jne	LBB0_13
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	cmpq	%r12, %r14
	seta	-41(%rbp)                       ## 1-byte Folded Spill
	leaq	(%rbx,%r10,4), %rax
	leaq	(,%r10,4), %r9
	movq	-88(%rbp), %r11                 ## 8-byte Reload
	subq	%r9, %r11
	leaq	(%rcx,%rsi,4), %rcx
	cmpq	%rcx, %rax
	setb	%r15b
	cmpq	%r14, %rdi
	setb	%r14b
	cmpq	%r11, %rax
	movq	-104(%rbp), %r11                ## 8-byte Reload
	setb	%cl
	movq	%r10, %r9
	testb	%r14b, %r15b
	movq	-112(%rbp), %r15                ## 8-byte Reload
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	jne	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r10, %r9
	andb	-41(%rbp), %cl                  ## 1-byte Folded Reload
	jne	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r8, %rcx
	andq	$-8, %rcx
	leaq	(%rcx,%r10), %r9
	movss	(%rdi), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	shufps	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r10,4), %r13
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movups	(%r12,%rax,4), %xmm1
	movups	16(%r12,%rax,4), %xmm2
	movups	-16(%r13,%rax,4), %xmm3
	movups	(%r13,%rax,4), %xmm4
	mulps	%xmm0, %xmm1
	addps	%xmm3, %xmm1
	mulps	%xmm0, %xmm2
	addps	%xmm4, %xmm2
	movups	%xmm1, -16(%r13,%rax,4)
	movups	%xmm2, (%r13,%rax,4)
	addq	$8, %rax
	cmpq	%rax, %rcx
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%rcx, %r8
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_14
	jmp	LBB0_9
LBB0_15:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_convolute_with_sparse
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function convolute_with_sparse
_convolute_with_sparse:                 ; @convolute_with_sparse
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	lsl	w2, w3, #2
	mov	w1, #0
	bl	_memset
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.1:
	mov	x16, #0
	sxtw	x9, w19
	sbfiz	x12, x19, #2, #32
	ldr	x10, [x21, #8]
	add	x11, x22, x12
	add	x12, x20, x12
	add	x13, x22, #32
	add	x14, x20, #32
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x16, x15
	cmp	x15, x8
	b.eq	LBB0_13
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
                                        ;     Child Loop BB0_7 Depth 2
	add	x15, x16, #1
	ldrsw	x17, [x10, x16, lsl #2]
	cmp	w17, w19
	b.ge	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x1, [x21, #16]
	add	x16, x1, x16, lsl #2
	sub	x0, x9, x17
	cmp	x0, #16
	b.hs	LBB0_8
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x1, x17
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x0, x22, x1, lsl #2
	sub	x17, x1, x17
	add	x17, x20, x17, lsl #2
	sub	x1, x9, x1
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	s0, [x17], #4
	ldr	s1, [x16]
	ldr	s2, [x0]
	fmadd	s0, s1, s0, s2
	str	s0, [x0], #4
	subs	x1, x1, #1
	b.ne	LBB0_7
	b	LBB0_2
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	lsl	x2, x17, #2
	add	x3, x22, x2
	add	x1, x1, x15, lsl #2
	sub	x2, x12, x2
	cmp	x3, x2
	ccmp	x11, x20, #0, lo
	cset	w2, hi
	cmp	x16, x11
	ccmp	x3, x1, #2, lo
	b.lo	LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x1, x17
	tbnz	w2, #0, LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	and	x2, x0, #0xfffffffffffffff0
	add	x1, x2, x17
	ld1r.4s	{ v0 }, [x16]
	add	x3, x13, x17, lsl #2
	mov	x4, x14
	mov	x5, x2
LBB0_11:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	q1, q2, [x4, #-32]
	ldp	q3, q4, [x4], #64
	ldp	q5, q6, [x3, #-32]
	ldp	q7, q16, [x3]
	fmla.4s	v5, v1, v0
	fmla.4s	v6, v2, v0
	fmla.4s	v7, v3, v0
	fmla.4s	v16, v4, v0
	stp	q5, q6, [x3, #-32]
	stp	q7, q16, [x3], #64
	subs	x5, x5, #16
	b.ne	LBB0_11
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	cmp	x0, x2
	b.eq	LBB0_2
	b	LBB0_6
LBB0_13:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_convolute_with_sparse
.subsections_via_symbols
