	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mpihelp_rshift                 ## -- Begin function mpihelp_rshift
	.p2align	4, 0x90
_mpihelp_rshift:                        ## @mpihelp_rshift
	.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	%rbx
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r8d
	movq	_BITS_PER_MPI_LIMB@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	subl	%ecx, %r9d
	movl	(%rsi), %eax
	movl	$1, %ebx
	movl	%eax, %r11d
	cmpq	$2, %rdx
	jb	LBB0_12
## %bb.1:
	leaq	-1(%rdx), %r14
	movl	$1, %r10d
	cmpq	$8, %r14
	jae	LBB0_3
## %bb.2:
	movl	%eax, %r11d
	jmp	LBB0_7
LBB0_3:
	movq	%rdi, %rcx
	subq	%rsi, %rcx
	addq	$-4, %rcx
	movl	%eax, %r11d
	cmpq	$32, %rcx
	jb	LBB0_7
## %bb.4:
	movq	%r14, %rbx
	andq	$-8, %rbx
	leaq	1(%rbx), %r10
	movd	%eax, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	movd	%r8d, %xmm1
	movd	%r9d, %xmm2
	xorl	%ecx, %ecx
	pmovzxdq	%xmm1, %xmm1                    ## xmm1 = xmm1[0],zero,xmm1[1],zero
	pmovzxdq	%xmm2, %xmm2                    ## xmm2 = xmm2[0],zero,xmm2[1],zero
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	4(%rsi,%rcx,4), %xmm3
	movdqa	%xmm3, %xmm4
	palignr	$12, %xmm0, %xmm4               ## xmm4 = xmm0[12,13,14,15],xmm4[0,1,2,3,4,5,6,7,8,9,10,11]
	movdqu	20(%rsi,%rcx,4), %xmm0
	movdqa	%xmm0, %xmm5
	palignr	$12, %xmm3, %xmm5               ## xmm5 = xmm3[12,13,14,15],xmm5[0,1,2,3,4,5,6,7,8,9,10,11]
	psrld	%xmm1, %xmm4
	psrld	%xmm1, %xmm5
	pslld	%xmm2, %xmm3
	por	%xmm4, %xmm3
	movdqa	%xmm0, %xmm4
	pslld	%xmm2, %xmm4
	por	%xmm5, %xmm4
	movdqu	%xmm3, (%rdi,%rcx,4)
	movdqu	%xmm4, 16(%rdi,%rcx,4)
	addq	$8, %rcx
	cmpq	%rcx, %rbx
	jne	LBB0_5
## %bb.6:
	pextrd	$3, %xmm0, %r11d
	cmpq	%rbx, %r14
	je	LBB0_11
LBB0_7:
	movq	%r10, %r15
	notq	%r15
	testb	$1, %dl
	jne	LBB0_9
## %bb.8:
	movl	%r8d, %ecx
	shrl	%cl, %r11d
	movl	(%rsi,%r10,4), %r14d
	movl	%r14d, %ebx
	movl	%r9d, %ecx
	shll	%cl, %ebx
	orl	%r11d, %ebx
	movl	%ebx, -4(%rdi,%r10,4)
	incq	%r10
	movl	%r14d, %r11d
LBB0_9:
	addq	%rdx, %r15
	je	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rsi,%r10,4), %r14d
	movl	%r8d, %ecx
	shrl	%cl, %r11d
	movl	%r14d, %ebx
	movl	%r9d, %ecx
	shll	%cl, %ebx
	orl	%r11d, %ebx
	movl	%ebx, -4(%rdi,%r10,4)
	movl	%r8d, %ecx
	shrl	%cl, %r14d
	movl	4(%rsi,%r10,4), %r11d
	movl	%r11d, %ebx
	movl	%r9d, %ecx
	shll	%cl, %ebx
	orl	%r14d, %ebx
	movl	%ebx, (%rdi,%r10,4)
	addq	$2, %r10
	cmpq	%r10, %rdx
	jne	LBB0_10
LBB0_11:
	movq	%rdx, %rbx
LBB0_12:
	movl	%r9d, %ecx
	shll	%cl, %eax
	movl	%r8d, %ecx
	shrl	%cl, %r11d
	movl	%r11d, -4(%rdi,%rbx,4)
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BITS_PER_MPI_LIMB,4,2          ## @BITS_PER_MPI_LIMB
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mpihelp_rshift                 ; -- Begin function mpihelp_rshift
	.p2align	2
_mpihelp_rshift:                        ; @mpihelp_rshift
	.cfi_startproc
; %bb.0:
	sub	x8, x0, #4
Lloh0:
	adrp	x9, _BITS_PER_MPI_LIMB@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BITS_PER_MPI_LIMB@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	sub	w9, w9, w3
	ldr	w10, [x1]
	cmp	x2, #2
	b.lo	LBB0_5
; %bb.1:
	sub	x12, x2, #1
	cmp	x12, #16
	b.lo	LBB0_3
; %bb.2:
	sub	x11, x0, x1
	sub	x11, x11, #4
	cmp	x11, #64
	b.hs	LBB0_7
LBB0_3:
	mov	w11, #1
	mov	x14, x10
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x12, x11, #2
	lsr	w13, w14, w3
	ldr	w14, [x1, x12]
	lsl	w15, w14, w9
	orr	w13, w15, w13
	str	w13, [x8, x12]
	add	x11, x11, #1
	cmp	x2, x11
	b.ne	LBB0_4
	b	LBB0_6
LBB0_5:
	mov	w2, #1
	mov	x14, x10
LBB0_6:
	lsl	w0, w10, w9
	lsr	w9, w14, w3
	str	w9, [x8, x2, lsl #2]
	ret
LBB0_7:
	and	x13, x12, #0xfffffffffffffff0
	orr	x11, x13, #0x1
	dup.4s	v2, w10
	dup.4s	v1, w3
	dup.4s	v0, w9
	add	x14, x1, #36
	add	x15, x0, #32
	neg.4s	v1, v1
	mov	x16, x13
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q3, q4, [x14, #-32]
	ext.16b	v5, v2, v3, #12
	ldp	q6, q2, [x14], #64
	ext.16b	v7, v3, v4, #12
	ext.16b	v16, v4, v6, #12
	ext.16b	v17, v6, v2, #12
	ushl.4s	v5, v5, v1
	ushl.4s	v7, v7, v1
	ushl.4s	v16, v16, v1
	ushl.4s	v17, v17, v1
	ushl.4s	v3, v3, v0
	ushl.4s	v4, v4, v0
	ushl.4s	v6, v6, v0
	ushl.4s	v18, v2, v0
	orr.16b	v3, v3, v5
	orr.16b	v4, v4, v7
	orr.16b	v5, v6, v16
	stp	q3, q4, [x15, #-32]
	orr.16b	v3, v18, v17
	stp	q5, q3, [x15], #64
	subs	x16, x16, #16
	b.ne	LBB0_8
; %bb.9:
	mov.s	w14, v2[3]
	cmp	x12, x13
	b.ne	LBB0_4
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BITS_PER_MPI_LIMB,4,2          ; @BITS_PER_MPI_LIMB
.subsections_via_symbols
