	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mpi_rshift_limbs               ## -- Begin function mpi_rshift_limbs
	.p2align	4, 0x90
_mpi_rshift_limbs:                      ## @mpi_rshift_limbs
	.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
                                        ## kill: def $esi killed $esi def $rsi
	movl	(%rdi), %eax
	xorl	%r8d, %r8d
	cmpl	%esi, %eax
	jbe	LBB0_21
## %bb.1:
	movq	8(%rdi), %rcx
	movl	%eax, %r8d
	subl	%esi, %r8d
	je	LBB0_2
## %bb.3:
	movl	%r8d, %r9d
	movl	%esi, %r11d
	cmpl	$4, %r8d
	jae	LBB0_5
## %bb.4:
	xorl	%edx, %edx
	jmp	LBB0_16
LBB0_2:
	xorl	%r9d, %r9d
	jmp	LBB0_20
LBB0_5:
	leaq	-1(%r9), %rax
	xorl	%edx, %edx
	movl	%esi, %ebx
	addl	%eax, %ebx
	jb	LBB0_16
## %bb.6:
	shrq	$32, %rax
	jne	LBB0_16
## %bb.7:
	leaq	(,%r11,8), %rax
	negq	%rax
	cmpq	$32, %rax
	jb	LBB0_16
## %bb.8:
	movl	%r9d, %edx
	andl	$-4, %edx
	leaq	-4(%rdx), %rax
	movq	%rax, %r14
	shrq	$2, %r14
	incq	%r14
	movl	%r14d, %r10d
	andl	$3, %r10d
	cmpq	$12, %rax
	jae	LBB0_10
## %bb.9:
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_10:
	andq	$-4, %r14
	xorl	%ebx, %ebx
	movl	%esi, %eax
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	%eax, %r15d
	movups	(%rcx,%r15,8), %xmm0
	movups	16(%rcx,%r15,8), %xmm1
	movups	%xmm0, (%rcx,%rbx,8)
	movups	%xmm1, 16(%rcx,%rbx,8)
	leal	4(%rax), %r15d
	movups	(%rcx,%r15,8), %xmm0
	movups	16(%rcx,%r15,8), %xmm1
	movups	%xmm0, 32(%rcx,%rbx,8)
	movups	%xmm1, 48(%rcx,%rbx,8)
	leal	8(%rax), %r15d
	movups	(%rcx,%r15,8), %xmm0
	movups	16(%rcx,%r15,8), %xmm1
	movups	%xmm0, 64(%rcx,%rbx,8)
	movups	%xmm1, 80(%rcx,%rbx,8)
	leal	12(%rax), %r15d
	movups	(%rcx,%r15,8), %xmm0
	movups	16(%rcx,%r15,8), %xmm1
	movups	%xmm0, 96(%rcx,%rbx,8)
	movups	%xmm1, 112(%rcx,%rbx,8)
	addq	$16, %rbx
	addl	$16, %eax
	addq	$-4, %r14
	jne	LBB0_11
LBB0_12:
	testq	%r10, %r10
	je	LBB0_15
## %bb.13:
	leaq	(%rcx,%rbx,8), %r14
	addq	$16, %r14
	addl	%ebx, %esi
	shlq	$2, %r10
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	leal	(%rsi,%rbx), %eax
	movups	(%rcx,%rax,8), %xmm0
	movups	16(%rcx,%rax,8), %xmm1
	movups	%xmm0, -16(%r14,%rbx,8)
	movups	%xmm1, (%r14,%rbx,8)
	addq	$4, %rbx
	cmpq	%rbx, %r10
	jne	LBB0_14
LBB0_15:
	cmpq	%r9, %rdx
	je	LBB0_20
LBB0_16:
	movq	%rdx, %rax
	notq	%rax
	addq	%r9, %rax
	movq	%r9, %rsi
	andq	$3, %rsi
	je	LBB0_18
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	leal	(%r11,%rdx), %ebx
	movq	(%rcx,%rbx,8), %rbx
	movq	%rbx, (%rcx,%rdx,8)
	incq	%rdx
	decq	%rsi
	jne	LBB0_17
LBB0_18:
	cmpq	$3, %rax
	jb	LBB0_20
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	leaq	(%r11,%rdx), %rax
	movl	%eax, %esi
	movq	(%rcx,%rsi,8), %rsi
	movq	%rsi, (%rcx,%rdx,8)
	leal	1(%rax), %esi
	movq	(%rcx,%rsi,8), %rsi
	movq	%rsi, 8(%rcx,%rdx,8)
	leal	2(%rax), %esi
	movq	(%rcx,%rsi,8), %rsi
	movq	%rsi, 16(%rcx,%rdx,8)
	addl	$3, %eax
	movq	(%rcx,%rax,8), %rax
	movq	%rax, 24(%rcx,%rdx,8)
	addq	$4, %rdx
	cmpq	%rdx, %r9
	jne	LBB0_19
LBB0_20:
	movq	$0, (%rcx,%r9,8)
LBB0_21:
	movl	%r8d, (%rdi)
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mpi_rshift_limbs               ; -- Begin function mpi_rshift_limbs
	.p2align	2
_mpi_rshift_limbs:                      ; @mpi_rshift_limbs
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
	subs	w8, w8, w1
	b.ls	LBB0_4
; %bb.1:
	ldr	x9, [x0, #8]
	b.eq	LBB0_5
; %bb.2:
	cmp	w8, #8
	b.hs	LBB0_6
; %bb.3:
	mov	x10, #0
	b	LBB0_12
LBB0_4:
	mov	w8, #0
	str	w8, [x0]
	ret
LBB0_5:
	mov	x10, #0
	b	LBB0_15
LBB0_6:
	mov	x10, #0
	sub	x11, x8, #1
	cmn	w1, w11
	b.hs	LBB0_12
; %bb.7:
	lsr	x11, x11, #32
	cbnz	x11, LBB0_12
; %bb.8:
	sub	x11, x10, w1, uxtw #3
	cmp	x11, #64
	b.lo	LBB0_12
; %bb.9:
	and	x10, x8, #0xfffffff8
	add	x11, x9, #32
	mov	x12, x1
	mov	x13, x10
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	add	x14, x9, w12, uxtw #3
	ldp	q0, q1, [x14]
	ldp	q2, q3, [x14, #32]
	stp	q0, q1, [x11, #-32]
	stp	q2, q3, [x11], #64
	add	w12, w12, #8
	subs	x13, x13, #8
	b.ne	LBB0_10
; %bb.11:
	cmp	x10, x8
	b.eq	LBB0_14
LBB0_12:
	add	x11, x9, x10, lsl #3
	add	w12, w1, w10
	sub	x10, x8, x10
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x13, [x9, w12, uxtw #3]
	str	x13, [x11], #8
	add	w12, w12, #1
	subs	x10, x10, #1
	b.ne	LBB0_13
LBB0_14:
	mov	x10, x8
LBB0_15:
	str	xzr, [x9, x10, lsl #3]
	str	w8, [x0]
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
