	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mpShiftRight
_mpShiftRight:                          ## @mpShiftRight
	.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
	movq	_BITS_PER_DIGIT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	xorl	%eax, %eax
	subl	%edx, %r8d
	jbe	LBB0_20
## %bb.1:
	movl	%edx, %r9d
	movl	$1, %r11d
	cmpl	$2, %edx
	jb	LBB0_8
## %bb.2:
	leal	-1(%r9), %r11d
	leal	-2(%r9), %ebx
	movl	%r11d, %r10d
	andl	$7, %r10d
	cmpl	$7, %ebx
	jae	LBB0_4
## %bb.3:
	movl	$1, %ebx
	jmp	LBB0_6
LBB0_4:
	andl	$-8, %r11d
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%rbx,%rbx), %edx
	orl	%ebx, %edx
	leal	(%rdx,%rdx), %ebx
	orl	%edx, %ebx
	leal	(%rbx,%rbx), %edx
	orl	%ebx, %edx
	leal	(%rdx,%rdx), %ebx
	orl	%edx, %ebx
	leal	(%rbx,%rbx), %edx
	orl	%ebx, %edx
	leal	(%rdx,%rdx), %ebx
	orl	%edx, %ebx
	leal	(%rbx,%rbx), %edx
	orl	%ebx, %edx
	leal	(%rdx,%rdx), %ebx
	orl	%edx, %ebx
	addl	$-8, %r11d
	jne	LBB0_5
LBB0_6:
	movl	%ebx, %r11d
	testl	%r10d, %r10d
	je	LBB0_8
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%rbx,%rbx), %r11d
	orl	%ebx, %r11d
	movl	%r11d, %ebx
	decl	%r10d
	jne	LBB0_7
LBB0_8:
	testl	%r9d, %r9d
	cmovel	%r9d, %r11d
	testl	%ecx, %ecx
	je	LBB0_20
## %bb.9:
	movl	%ecx, %r15d
	xorl	%eax, %eax
	cmpl	$8, %ecx
	jb	LBB0_10
## %bb.11:
	leaq	(%rsi,%r15,4), %rcx
	leaq	(%rdi,%r15,4), %rdx
	subq	%rdx, %rcx
	cmpq	$32, %rcx
	jae	LBB0_13
LBB0_10:
	movq	%r15, %r10
LBB0_16:
	testb	$1, %r10b
	jne	LBB0_18
## %bb.17:
	movq	%r10, %r15
	cmpl	$1, %r10d
	jne	LBB0_19
	jmp	LBB0_20
LBB0_18:
	movl	-4(%rsi,%r10,4), %ebx
	movl	%ebx, %r14d
	andl	%r11d, %r14d
	movl	%r8d, %ecx
	shll	%cl, %r14d
	movl	%r9d, %ecx
	sarl	%cl, %ebx
	leaq	-1(%r10), %r15
	orl	%eax, %ebx
	movl	%ebx, -4(%rdi,%r10,4)
	movl	%r14d, %eax
	cmpl	$1, %r10d
	je	LBB0_20
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movl	-4(%rsi,%r15,4), %ebx
	movl	%ebx, %edx
	andl	%r11d, %edx
	movl	%r8d, %ecx
	shll	%cl, %edx
	movl	%r9d, %ecx
	sarl	%cl, %ebx
	orl	%eax, %ebx
	movl	%ebx, -4(%rdi,%r15,4)
	movl	-8(%rsi,%r15,4), %ebx
	movl	%ebx, %eax
	andl	%r11d, %eax
	movl	%r8d, %ecx
	shll	%cl, %eax
	movl	%r9d, %ecx
	sarl	%cl, %ebx
	orl	%edx, %ebx
	movl	%ebx, -8(%rdi,%r15,4)
	addq	$-2, %r15
	jne	LBB0_19
	jmp	LBB0_20
LBB0_13:
	movl	%r15d, %r14d
	andl	$-8, %r14d
	movl	%r15d, %r10d
	andl	$7, %r10d
	movd	%r11d, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	movd	%r8d, %xmm1
	movd	%r9d, %xmm2
	leaq	(%rsi,%r15,4), %rax
	addq	$-16, %rax
	leaq	(%rdi,%r15,4), %rbx
	addq	$-16, %rbx
	movq	%r14, %rcx
	negq	%rcx
	pxor	%xmm3, %xmm3
	xorl	%edx, %edx
	pmovzxdq	%xmm1, %xmm1                    ## xmm1 = xmm1[0],zero,xmm1[1],zero
	pmovzxdq	%xmm2, %xmm2                    ## xmm2 = xmm2[0],zero,xmm2[1],zero
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movdqu	-16(%rax,%rdx,4), %xmm4
	movdqu	(%rax,%rdx,4), %xmm5
	pshufd	$27, %xmm5, %xmm5               ## xmm5 = xmm5[3,2,1,0]
	movdqa	%xmm5, %xmm6
	pand	%xmm0, %xmm6
	pslld	%xmm1, %xmm6
	pshufd	$27, %xmm4, %xmm4               ## xmm4 = xmm4[3,2,1,0]
	pshufd	$198, %xmm6, %xmm7              ## xmm7 = xmm6[2,1,0,3]
	pblendw	$192, %xmm3, %xmm7              ## xmm7 = xmm7[0,1,2,3,4,5],xmm3[6,7]
	movdqa	%xmm4, %xmm3
	pand	%xmm0, %xmm3
	pslld	%xmm1, %xmm3
	psrad	%xmm2, %xmm5
	psrad	%xmm2, %xmm4
	pshufd	$27, %xmm5, %xmm5               ## xmm5 = xmm5[3,2,1,0]
	por	%xmm7, %xmm5
	movdqu	%xmm5, (%rbx,%rdx,4)
	pshufd	$198, %xmm3, %xmm5              ## xmm5 = xmm3[2,1,0,3]
	pblendw	$192, %xmm6, %xmm5              ## xmm5 = xmm5[0,1,2,3,4,5],xmm6[6,7]
	pshufd	$27, %xmm4, %xmm4               ## xmm4 = xmm4[3,2,1,0]
	por	%xmm5, %xmm4
	movdqu	%xmm4, -16(%rbx,%rdx,4)
	addq	$-8, %rdx
	cmpq	%rdx, %rcx
	jne	LBB0_14
## %bb.15:
	pextrd	$3, %xmm3, %eax
	cmpq	%r15, %r14
	jne	LBB0_16
LBB0_20:
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BITS_PER_DIGIT,4,2             ## @BITS_PER_DIGIT
	.no_dead_strip	_mpShiftRight
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mpShiftRight
_mpShiftRight:                          ; @mpShiftRight
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _BITS_PER_DIGIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BITS_PER_DIGIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	subs	w9, w8, w2
	b.ls	LBB0_12
; %bb.1:
	cmp	w2, #2
	b.lo	LBB0_4
; %bb.2:
	sub	w10, w2, #1
	mov	w8, #1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	orr	w8, w8, w8, lsl #1
	subs	w10, w10, #1
	b.ne	LBB0_3
	b	LBB0_5
LBB0_4:
	mov	w8, #1
LBB0_5:
	cmp	w2, #0
	csel	w10, wzr, w8, eq
	cbz	w3, LBB0_12
; %bb.6:
	mov	w12, w3
	cmp	w3, #16
	b.lo	LBB0_8
; %bb.7:
	lsl	x8, x12, #2
	add	x11, x8, x1
	add	x13, x8, x0
	sub	x11, x11, x13
	cmp	x11, #64
	b.hs	LBB0_13
LBB0_8:
	mov	w14, #0
	mov	x11, x12
LBB0_9:
	sub	x12, x1, #4
	sub	x13, x0, #4
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	lsl	x15, x11, #2
	ldr	w16, [x12, x15]
	and	w8, w16, w10
	lsl	w8, w8, w9
	asr	w16, w16, w2
	orr	w14, w16, w14
	str	w14, [x13, x15]
	mov	x14, x8
	subs	x11, x11, #1
	b.ne	LBB0_10
LBB0_11:
	mov	x0, x8
	ret
LBB0_12:
	mov	w0, #0
	ret
LBB0_13:
	and	x13, x12, #0xfffffff0
	and	x11, x12, #0xf
	dup.4s	v0, w10
	dup.4s	v1, w9
	dup.4s	v2, w2
	sub	x14, x8, #32
	add	x8, x0, x14
	add	x14, x1, x14
	movi.2d	v3, #0000000000000000
	neg.4s	v2, v2
	mov	x15, x13
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldp	q5, q4, [x14]
	rev64.4s	v4, v4
	ext.16b	v4, v4, v4, #8
	rev64.4s	v5, v5
	ext.16b	v5, v5, v5, #8
	ldp	q7, q6, [x14, #-32]
	rev64.4s	v6, v6
	ext.16b	v6, v6, v6, #8
	rev64.4s	v7, v7
	ext.16b	v7, v7, v7, #8
	and.16b	v16, v4, v0
	and.16b	v17, v5, v0
	and.16b	v18, v6, v0
	and.16b	v19, v7, v0
	ushl.4s	v16, v16, v1
	ushl.4s	v17, v17, v1
	ushl.4s	v18, v18, v1
	ext.16b	v20, v3, v16, #12
	ushl.4s	v3, v19, v1
	ext.16b	v16, v16, v17, #12
	ext.16b	v17, v17, v18, #12
	ext.16b	v18, v18, v3, #12
	sshl.4s	v4, v4, v2
	sshl.4s	v5, v5, v2
	sshl.4s	v6, v6, v2
	sshl.4s	v7, v7, v2
	orr.16b	v4, v4, v20
	orr.16b	v5, v5, v16
	orr.16b	v6, v6, v17
	orr.16b	v7, v7, v18
	rev64.4s	v4, v4
	ext.16b	v4, v4, v4, #8
	rev64.4s	v5, v5
	ext.16b	v5, v5, v5, #8
	stp	q5, q4, [x8]
	rev64.4s	v4, v6
	ext.16b	v4, v4, v4, #8
	rev64.4s	v5, v7
	ext.16b	v5, v5, v5, #8
	stp	q5, q4, [x8, #-32]
	sub	x8, x8, #64
	sub	x14, x14, #64
	sub	x15, x15, #16
	cbnz	x15, LBB0_14
; %bb.15:
	mov.s	w14, v3[3]
	mov	x8, x14
	cmp	x13, x12
	b.ne	LBB0_9
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BITS_PER_DIGIT,4,2             ; @BITS_PER_DIGIT
	.no_dead_strip	_mpShiftRight
.subsections_via_symbols
