	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vector_rmultiplication
_vector_rmultiplication:                ## @vector_rmultiplication
	.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	%ecx, %ecx
	jle	LBB0_13
## %bb.1:
	movl	%ecx, %r9d
	cmpl	$8, %ecx
	jae	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_3:
	leaq	(%rdi,%r9,4), %rax
	leaq	(%rsi,%r9,4), %r10
	movl	$1, %ecx
	subq	%r9, %rcx
	cmpq	%rdi, %r10
	seta	%r11b
	leaq	(%rdx,%rcx,4), %r10
	cmpq	%rsi, %rax
	seta	%bl
	leaq	4(%rdx), %rcx
	cmpq	%rdi, %rcx
	seta	%cl
	cmpq	%rax, %r10
	setb	%r10b
	xorl	%eax, %eax
	testb	%bl, %r11b
	jne	LBB0_8
## %bb.4:
	andb	%r10b, %cl
	jne	LBB0_8
## %bb.5:
	movl	%r9d, %eax
	andl	$-8, %eax
	movd	%r8d, %xmm0
	leaq	-12(%rdx), %r11
	leaq	(,%r9,4), %r10
	andq	$-32, %r10
	xorl	%ecx, %ecx
	pmovzxdq	%xmm0, %xmm0                    ## xmm0 = xmm0[0],zero,xmm0[1],zero
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rsi,%rcx), %xmm1
	movdqu	16(%rsi,%rcx), %xmm2
	movdqu	-16(%r11), %xmm3
	movdqu	(%r11), %xmm4
	pshufd	$27, %xmm4, %xmm4               ## xmm4 = xmm4[3,2,1,0]
	pmulld	%xmm1, %xmm4
	pshufd	$27, %xmm3, %xmm1               ## xmm1 = xmm3[3,2,1,0]
	psrad	%xmm0, %xmm4
	pmulld	%xmm2, %xmm1
	psrad	%xmm0, %xmm1
	movdqu	%xmm4, (%rdi,%rcx)
	movdqu	%xmm1, 16(%rdi,%rcx)
	addq	$32, %rcx
	addq	$-32, %r11
	cmpq	%rcx, %r10
	jne	LBB0_6
## %bb.7:
	cmpq	%r9, %rax
	je	LBB0_13
LBB0_8:
	movq	%rax, %r10
	notq	%r10
	testb	$1, %r9b
	je	LBB0_10
## %bb.9:
	leaq	(,%rax,4), %rcx
	movq	%rdx, %rbx
	subq	%rcx, %rbx
	movl	(%rbx), %ebx
	imull	(%rsi,%rax,4), %ebx
	movl	%r8d, %ecx
	sarl	%cl, %ebx
	movl	%ebx, (%rdi,%rax,4)
	orq	$1, %rax
LBB0_10:
	addq	%r9, %r10
	je	LBB0_13
## %bb.11:
	leaq	(,%rax,4), %rcx
	subq	%rcx, %rdx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rdx), %ebx
	imull	(%rsi,%rax,4), %ebx
	movl	%r8d, %ecx
	sarl	%cl, %ebx
	movl	%ebx, (%rdi,%rax,4)
	movl	-4(%rdx), %ebx
	imull	4(%rsi,%rax,4), %ebx
	sarl	%cl, %ebx
	movl	%ebx, 4(%rdi,%rax,4)
	addq	$2, %rax
	addq	$-8, %rdx
	cmpq	%rax, %r9
	jne	LBB0_12
LBB0_13:
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_vector_rmultiplication
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vector_rmultiplication
_vector_rmultiplication:                ; @vector_rmultiplication
	.cfi_startproc
; %bb.0:
	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
	lsl	x10, x8, #2
	add	x11, x1, x10
	mov	w12, #1
	sub	x12, x12, x8
	add	x12, x2, x12, lsl #2
	add	x13, x2, #4
	cmp	x13, x0
	add	x13, x0, x10
	ccmp	x12, x13, #2, hi
	cset	w10, lo
	cmp	x13, x1
	ccmp	x11, x0, #0, hi
	b.hi	LBB0_8
; %bb.4:
	tbnz	w10, #0, LBB0_8
; %bb.5:
	dup.4s	v0, w4
	and	x9, x8, #0xfffffff0
	add	x10, x0, #32
	add	x11, x1, #32
	sub	x12, x2, #28
	neg.4s	v0, v0
	mov	x13, x9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q1, q2, [x11, #-32]
	ldp	q3, q4, [x11], #64
	ldp	q6, q5, [x12]
	rev64.4s	v5, v5
	ext.16b	v5, v5, v5, #8
	rev64.4s	v6, v6
	ext.16b	v6, v6, v6, #8
	ldp	q16, q7, [x12, #-32]
	rev64.4s	v7, v7
	ext.16b	v7, v7, v7, #8
	rev64.4s	v16, v16
	ext.16b	v16, v16, v16, #8
	mul.4s	v1, v5, v1
	mul.4s	v2, v6, v2
	mul.4s	v3, v7, v3
	mul.4s	v4, v16, v4
	sshl.4s	v1, v1, v0
	sshl.4s	v2, v2, v0
	sshl.4s	v3, v3, v0
	sshl.4s	v4, v4, v0
	stp	q1, q2, [x10, #-32]
	stp	q3, q4, [x10], #64
	sub	x12, x12, #64
	sub	x13, x13, #16
	cbnz	x13, LBB0_6
; %bb.7:
	cmp	x9, x8
	b.eq	LBB0_10
LBB0_8:
	lsl	x12, x9, #2
	sub	x10, x2, x12
	add	x11, x0, x12
	add	x12, x1, x12
	sub	x8, x8, x9
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x12], #4
	ldr	w13, [x10], #-4
	mul	w9, w13, w9
	asr	w9, w9, w4
	str	w9, [x11], #4
	subs	x8, x8, #1
	b.ne	LBB0_9
LBB0_10:
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_vector_rmultiplication
.subsections_via_symbols
