	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_mpi_shift_r            ## -- Begin function mbedtls_mpi_shift_r
	.p2align	4, 0x90
_mbedtls_mpi_shift_r:                   ## @mbedtls_mpi_shift_r
	.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
	movq	_biL@GOTPCREL(%rip), %r8
	movq	(%r8), %rcx
	movq	%rsi, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_2
## %bb.1:
	movq	%rsi, %rax
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_3
LBB0_2:
	movl	%esi, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_3:
	leaq	-1(%rcx), %r9
	andq	%rsi, %r9
	movq	(%rdi), %rbx
	cmpq	%rbx, %rax
	ja	LBB0_6
## %bb.4:
	jne	LBB0_7
## %bb.5:
	testq	%r9, %r9
	je	LBB0_7
LBB0_6:
	xorl	%esi, %esi
	popq	%rbx
	popq	%rbp
	jmp	_mbedtls_mpi_lset               ## TAILCALL
LBB0_7:
	cmpq	%rsi, %rcx
	ja	LBB0_15
## %bb.8:
	cmpq	%rbx, %rax
	jne	LBB0_10
## %bb.9:
	xorl	%ecx, %ecx
	movq	%rax, %rbx
	jmp	LBB0_12
LBB0_10:
	movq	8(%rdi), %rsi
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	leaq	(%rcx,%rax), %rdx
	movq	(%rsi,%rdx,8), %rdx
	movq	%rdx, (%rsi,%rcx,8)
	incq	%rcx
	movq	(%rdi), %rbx
	movq	%rbx, %rdx
	subq	%rax, %rdx
	cmpq	%rdx, %rcx
	jb	LBB0_11
LBB0_12:
	cmpq	%rbx, %rcx
	jae	LBB0_15
## %bb.13:
	movq	8(%rdi), %rax
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	$0, (%rax,%rcx,8)
	incq	%rcx
	movq	(%rdi), %rbx
	cmpq	%rbx, %rcx
	jb	LBB0_14
LBB0_15:
	testq	%r9, %r9
	je	LBB0_29
## %bb.16:
	testq	%rbx, %rbx
	je	LBB0_29
## %bb.17:
	movq	8(%rdi), %rax
	cmpq	$4, %rbx
	jb	LBB0_21
## %bb.19:
	leaq	8(%r8), %rcx
	cmpq	%rcx, %rax
	jae	LBB0_23
## %bb.20:
	leaq	(%rax,%rbx,8), %rcx
	cmpq	_biL@GOTPCREL(%rip), %rcx
	jbe	LBB0_23
LBB0_21:
	xorl	%esi, %esi
	testb	$1, %bl
	jne	LBB0_27
LBB0_22:
	movq	%rbx, %rdi
	cmpq	$1, %rbx
	jne	LBB0_28
	jmp	LBB0_29
LBB0_23:
	movq	%rbx, %r11
	andq	$-4, %r11
	movl	%ebx, %r10d
	andl	$3, %r10d
	movq	%r9, %xmm0
	movq	(%r8), %rcx
	subq	%r9, %rcx
	movq	%rcx, %xmm1
	leaq	(%rax,%rbx,8), %rdi
	addq	$-16, %rdi
	movq	%r11, %rsi
	negq	%rsi
	pxor	%xmm2, %xmm2
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movdqa	%xmm2, %xmm3
	movdqu	-16(%rdi,%rcx,8), %xmm2
	movdqu	(%rdi,%rcx,8), %xmm4
	pshufd	$78, %xmm4, %xmm4               ## xmm4 = xmm4[2,3,0,1]
	pshufd	$78, %xmm2, %xmm5               ## xmm5 = xmm2[2,3,0,1]
	movdqa	%xmm4, %xmm6
	psllq	%xmm1, %xmm6
	movdqa	%xmm5, %xmm2
	psllq	%xmm1, %xmm2
	psrlq	%xmm0, %xmm4
	psrlq	%xmm0, %xmm5
	pblendw	$15, %xmm6, %xmm3               ## xmm3 = xmm6[0,1,2,3],xmm3[4,5,6,7]
	pshufd	$78, %xmm4, %xmm4               ## xmm4 = xmm4[2,3,0,1]
	por	%xmm3, %xmm4
	movdqu	%xmm4, (%rdi,%rcx,8)
	pblendw	$15, %xmm2, %xmm6               ## xmm6 = xmm2[0,1,2,3],xmm6[4,5,6,7]
	pshufd	$78, %xmm5, %xmm3               ## xmm3 = xmm5[2,3,0,1]
	por	%xmm6, %xmm3
	movdqu	%xmm3, -16(%rdi,%rcx,8)
	addq	$-4, %rcx
	cmpq	%rcx, %rsi
	jne	LBB0_24
## %bb.25:
	cmpq	%r11, %rbx
	je	LBB0_29
## %bb.26:
	pextrq	$1, %xmm2, %rsi
	movq	%r10, %rbx
	testb	$1, %bl
	je	LBB0_22
LBB0_27:
	movq	-8(%rax,%rbx,8), %rdx
	movl	(%r8), %ecx
	subl	%r9d, %ecx
	movq	%rdx, %r10
                                        ## kill: def $cl killed $cl killed $ecx
	shlq	%cl, %r10
	movl	%r9d, %ecx
	shrq	%cl, %rdx
	leaq	-1(%rbx), %rdi
	orq	%rsi, %rdx
	movq	%rdx, -8(%rax,%rbx,8)
	movq	%r10, %rsi
	cmpq	$1, %rbx
	je	LBB0_29
	.p2align	4, 0x90
LBB0_28:                                ## =>This Inner Loop Header: Depth=1
	movq	-8(%rax,%rdi,8), %rdx
	movl	(%r8), %ecx
	subl	%r9d, %ecx
	movq	%rdx, %rbx
                                        ## kill: def $cl killed $cl killed $ecx
	shlq	%cl, %rbx
	movl	%r9d, %ecx
	shrq	%cl, %rdx
	orq	%rsi, %rdx
	movq	%rdx, -8(%rax,%rdi,8)
	movq	-16(%rax,%rdi,8), %rdx
	movl	(%r8), %ecx
	subl	%r9d, %ecx
	movq	%rdx, %rsi
                                        ## kill: def $cl killed $cl killed $ecx
	shlq	%cl, %rsi
	movl	%r9d, %ecx
	shrq	%cl, %rdx
	orq	%rbx, %rdx
	movq	%rdx, -16(%rax,%rdi,8)
	leaq	-2(%rdi), %rcx
	movq	%rcx, %rdi
	testq	%rcx, %rcx
	jne	LBB0_28
LBB0_29:
	xorl	%eax, %eax
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_biL,8,3                        ## @biL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_mpi_shift_r            ; -- Begin function mbedtls_mpi_shift_r
	.p2align	2
_mbedtls_mpi_shift_r:                   ; @mbedtls_mpi_shift_r
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _biL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _biL@GOTPAGEOFF]
	ldr	x11, [x8]
	udiv	x12, x1, x11
	sub	x9, x11, #1
	ldr	x10, [x0]
	cmp	x12, x10
	b.hi	LBB0_5
; %bb.1:
	and	x9, x9, x1
	ccmp	x9, #0, #4, eq
	b.ne	LBB0_5
; %bb.2:
	cmp	x11, x1
	b.hi	LBB0_11
; %bb.3:
	cmp	x12, x10
	b.ne	LBB0_6
; %bb.4:
	mov	x11, #0
	mov	x10, x12
	b	LBB0_8
LBB0_5:
	mov	w1, #0
	b	_mbedtls_mpi_lset
LBB0_6:
	mov	x11, #0
	ldr	x13, [x0, #8]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	add	x10, x11, x12
	ldr	x10, [x13, x10, lsl #3]
	str	x10, [x13, x11, lsl #3]
	add	x11, x11, #1
	ldr	x10, [x0]
	sub	x14, x10, x12
	cmp	x11, x14
	b.lo	LBB0_7
LBB0_8:
	cmp	x11, x10
	b.hs	LBB0_11
; %bb.9:
	ldr	x12, [x0, #8]
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	str	xzr, [x12, x11, lsl #3]
	add	x11, x11, #1
	ldr	x10, [x0]
	cmp	x11, x10
	b.lo	LBB0_10
LBB0_11:
	cbz	x9, LBB0_22
; %bb.12:
	cbz	x10, LBB0_22
; %bb.13:
	ldr	x11, [x0, #8]
	cmp	x10, #8
	b.lo	LBB0_19
; %bb.14:
	add	x14, x11, x10, lsl #3
	add	x12, x8, #8
	cmp	x11, x12
	ccmp	x14, x8, #0, lo
	b.hi	LBB0_19
; %bb.15:
	and	x13, x10, #0xfffffffffffffff8
	and	x12, x10, #0x7
	dup.2d	v1, x9
	ldr	x15, [x8]
	sub	x15, x15, x9
	dup.2d	v0, x15
	sub	x14, x14, #32
	movi.2d	v2, #0000000000000000
	neg.2d	v1, v1
	mov	x15, x13
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldp	q4, q3, [x14]
	ext.16b	v3, v3, v3, #8
	ext.16b	v4, v4, v4, #8
	ldp	q6, q5, [x14, #-32]
	ext.16b	v5, v5, v5, #8
	ext.16b	v6, v6, v6, #8
	ushl.2d	v7, v3, v0
	ushl.2d	v16, v4, v0
	ushl.2d	v17, v5, v0
	mov.16b	v18, v17
	mov.d	v18[1], v16[1]
	mov.d	v16[1], v7[1]
	mov.d	v7[1], v2[1]
	ushl.2d	v2, v6, v0
	ushl.2d	v3, v3, v1
	ushl.2d	v4, v4, v1
	ushl.2d	v5, v5, v1
	ushl.2d	v6, v6, v1
	ext.16b	v3, v3, v3, #8
	orr.16b	v3, v3, v7
	ext.16b	v4, v4, v4, #8
	orr.16b	v4, v4, v16
	stp	q4, q3, [x14]
	ext.16b	v3, v5, v5, #8
	orr.16b	v3, v3, v18
	mov.16b	v4, v2
	mov.d	v4[1], v17[1]
	ext.16b	v5, v6, v6, #8
	orr.16b	v4, v5, v4
	stp	q4, q3, [x14, #-32]
	sub	x14, x14, #64
	sub	x15, x15, #8
	cbnz	x15, LBB0_16
; %bb.17:
	cmp	x10, x13
	b.eq	LBB0_22
; %bb.18:
	mov.d	x13, v2[1]
	mov	x10, x12
	b	LBB0_20
LBB0_19:
	mov	x13, #0
LBB0_20:
	sub	x11, x11, #8
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	lsl	x12, x10, #3
	ldr	x14, [x11, x12]
	ldr	x15, [x8]
	sub	x15, x15, x9
	lsr	x16, x14, x9
	orr	x13, x16, x13
	lsl	x14, x14, x15
	str	x13, [x11, x12]
	mov	x13, x14
	sub	x12, x10, #1
	mov	x10, x12
	cbnz	x12, LBB0_21
LBB0_22:
	mov	w0, #0
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_biL,8,3                        ; @biL
.subsections_via_symbols
