	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_mpi_shift_l            ## -- Begin function mbedtls_mpi_shift_l
	.p2align	4, 0x90
_mbedtls_mpi_shift_l:                   ## @mbedtls_mpi_shift_l
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	_biL@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	%rsi, %rax
	orq	%r13, %rax
	shrq	$32, %rax
	je	LBB0_1
## %bb.2:
	movq	%r12, %rax
	xorl	%edx, %edx
	divq	%r13
	movq	%rax, %rbx
	jmp	LBB0_3
LBB0_1:
	movl	%r12d, %eax
	xorl	%edx, %edx
	divl	%r13d
	movl	%eax, %ebx
LBB0_3:
	leaq	-1(%r13), %r15
	movq	%r14, %rdi
	callq	_mbedtls_mpi_bitlen
	addq	%r12, %rax
	movq	_biL@GOTPCREL(%rip), %r11
	movq	(%r11), %rcx
	imulq	(%r14), %rcx
	cmpq	%rax, %rcx
	jae	LBB0_5
## %bb.4:
	movq	%rax, %rdi
	callq	_BITS_TO_LIMBS
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_mbedtls_mpi_grow
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	movq	_biL@GOTPCREL(%rip), %r11
LBB0_5:
	andq	%r12, %r15
	cmpq	%r12, %r13
	ja	LBB0_23
## %bb.6:
	movq	(%r14), %rsi
	movq	%rsi, %rdi
	subq	%rbx, %rdi
	jbe	LBB0_21
## %bb.7:
	movq	8(%r14), %r9
	movq	%rbx, %r12
	notq	%r12
	cmpq	$4, %rdi
	jae	LBB0_8
	.p2align	4, 0x90
LBB0_28:                                ## =>This Inner Loop Header: Depth=1
	leaq	(%rsi,%r12), %rax
	movq	(%r9,%rax,8), %rax
	movq	%rax, -8(%r9,%rsi,8)
	decq	%rsi
	cmpq	%rbx, %rsi
	ja	LBB0_28
LBB0_21:
	testq	%rsi, %rsi
	je	LBB0_23
## %bb.22:
	movq	8(%r14), %rdi
	shlq	$3, %rsi
	callq	___bzero
	movq	_biL@GOTPCREL(%rip), %r11
LBB0_23:
	testq	%r15, %r15
	je	LBB0_27
## %bb.24:
	cmpq	(%r14), %rbx
	jae	LBB0_27
## %bb.25:
	movq	8(%r14), %rax
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rax,%rbx,8), %rsi
	movl	(%r11), %ecx
	subl	%r15d, %ecx
	movq	%rsi, %rdi
                                        ## kill: def $cl killed $cl killed $ecx
	shrq	%cl, %rdi
	movl	%r15d, %ecx
	shlq	%cl, %rsi
	orq	%rdx, %rsi
	movq	%rsi, (%rax,%rbx,8)
	incq	%rbx
	movq	%rdi, %rdx
	cmpq	(%r14), %rbx
	jb	LBB0_26
LBB0_27:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	leaq	-1(%rsi), %r8
	subq	%rbx, %r8
	movl	$8, %ecx
	movq	%r8, %rax
	mulq	%rcx
	leaq	-8(%r9,%rsi,8), %rcx
	seto	%r10b
	movq	%rcx, %rdx
	subq	%rax, %rdx
	cmpq	%rcx, %rdx
	ja	LBB0_28
## %bb.9:
	testb	%r10b, %r10b
	jne	LBB0_28
## %bb.10:
	leaq	(%r9,%r8,8), %rcx
	movq	%rcx, %rdx
	subq	%rax, %rdx
	cmpq	%rcx, %rdx
	ja	LBB0_28
## %bb.11:
	testb	%r10b, %r10b
	jne	LBB0_28
## %bb.12:
	leaq	(,%rbx,8), %rax
	negq	%rax
	cmpq	$32, %rax
	jb	LBB0_28
## %bb.13:
	movq	%rdi, %rdx
	andq	$-4, %rdx
	leaq	-4(%rdx), %rax
	movq	%rax, %rcx
	shrq	$2, %rcx
	incq	%rcx
	testq	%rax, %rax
	je	LBB0_14
## %bb.15:
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rcx, %r11
	andq	$-2, %r11
	leaq	(%r9,%rsi,8), %r13
	addq	$-16, %r13
	xorl	%eax, %eax
	xorl	%r10d, %r10d
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	%rsi, %r8
	subq	%r10, %r8
	addq	%r12, %r8
	movups	-24(%r9,%r8,8), %xmm0
	movups	-8(%r9,%r8,8), %xmm1
	movups	%xmm1, (%r13,%rax,8)
	movups	%xmm0, -16(%r13,%rax,8)
	movq	%r10, %rcx
	orq	$4, %rcx
	movq	%rsi, %rdi
	subq	%rcx, %rdi
	addq	%r12, %rdi
	movups	-24(%r9,%rdi,8), %xmm0
	movups	-8(%r9,%rdi,8), %xmm1
	movups	%xmm1, -32(%r13,%rax,8)
	movups	%xmm0, -48(%r13,%rax,8)
	addq	$8, %r10
	addq	$2, %rdx
	addq	$-8, %rax
	cmpq	%r11, %rdx
	jne	LBB0_16
## %bb.17:
	negq	%rax
	movq	_biL@GOTPCREL(%rip), %r11
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	testb	$1, %cl
	je	LBB0_20
LBB0_19:
	movq	%rsi, %rcx
	subq	%rax, %rcx
	leaq	(%rcx,%r12), %rax
	movups	-24(%r9,%rax,8), %xmm0
	movups	-8(%r9,%rax,8), %xmm1
	movups	%xmm1, -16(%r9,%rcx,8)
	movups	%xmm0, -32(%r9,%rcx,8)
LBB0_20:
	subq	%rdx, %rsi
	cmpq	%rdx, %rdi
	jne	LBB0_28
	jmp	LBB0_21
LBB0_14:
	xorl	%eax, %eax
	testb	$1, %cl
	jne	LBB0_19
	jmp	LBB0_20
	.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_l            ; -- Begin function mbedtls_mpi_shift_l
	.p2align	2
_mbedtls_mpi_shift_l:                   ; @mbedtls_mpi_shift_l
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x21, _biL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _biL@GOTPAGEOFF]
	ldr	x24, [x21]
	sub	x8, x24, #1
	and	x22, x8, x1
	bl	_mbedtls_mpi_bitlen
	ldr	x8, [x19]
	ldr	x9, [x21]
	mul	x8, x9, x8
	add	x0, x0, x20
	cmp	x8, x0
	b.hs	LBB0_2
; %bb.1:
	bl	_BITS_TO_LIMBS
	mov	x1, x0
	mov	x0, x19
	bl	_mbedtls_mpi_grow
	bl	_MBEDTLS_MPI_CHK
LBB0_2:
	udiv	x23, x20, x24
	cmp	x24, x20
	b.hi	LBB0_17
; %bb.3:
	ldr	x8, [x19]
	subs	x11, x8, x23
	b.ls	LBB0_22
; %bb.4:
	ldr	x9, [x19, #8]
	mvn	x10, x23
	cmp	x11, #8
	b.lo	LBB0_13
; %bb.5:
	sub	x12, x8, #1
	sub	x13, x12, x23
	add	x14, x9, x12, lsl #3
	cmp	xzr, x13, lsr #61
	cset	w12, ne
	lsl	x13, x13, #3
	sub	x15, x14, x13
	cmp	x15, x14
	b.hi	LBB0_13
; %bb.6:
	tbnz	w12, #0, LBB0_13
; %bb.7:
	add	x13, x9, x13
	cmp	x9, x13
	b.hi	LBB0_13
; %bb.8:
	tbnz	w12, #0, LBB0_13
; %bb.9:
	neg	x12, x23, lsl #3
	cmp	x12, #64
	b.lo	LBB0_13
; %bb.10:
	mov	x14, #0
	and	x13, x11, #0xfffffffffffffff8
	sub	x12, x8, x13
	add	x15, x9, x8, lsl #3
	sub	x15, x15, #32
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	sub	x16, x8, x14
	add	x16, x16, x10
	add	x16, x9, x16, lsl #3
	ldur	q0, [x16, #-8]
	ldur	q1, [x16, #-24]
	ldur	q2, [x16, #-40]
	ldur	q3, [x16, #-56]
	stp	q1, q0, [x15]
	stp	q3, q2, [x15, #-32]
	add	x14, x14, #8
	sub	x15, x15, #64
	cmp	x14, x13
	b.ne	LBB0_11
; %bb.12:
	mov	x8, x12
	cmp	x11, x13
	b.eq	LBB0_15
LBB0_13:
	sub	x11, x9, #8
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	add	x12, x8, x10
	ldr	x13, [x9, x12, lsl #3]
	sub	x12, x8, #1
	str	x13, [x11, x8, lsl #3]
	mov	x8, x12
	cmp	x12, x23
	b.hi	LBB0_14
LBB0_15:
	cbz	x12, LBB0_17
LBB0_16:
	ldr	x0, [x19, #8]
	lsl	x1, x12, #3
	bl	_bzero
LBB0_17:
	cbz	x22, LBB0_21
; %bb.18:
	ldr	x8, [x19]
	cmp	x23, x8
	b.hs	LBB0_21
; %bb.19:
	mov	x9, #0
	ldr	x8, [x19, #8]
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	lsl	x10, x23, #3
	ldr	x11, [x8, x10]
	ldr	x12, [x21]
	sub	x12, x12, x22
	lsl	x13, x11, x22
	orr	x9, x13, x9
	lsr	x11, x11, x12
	str	x9, [x8, x10]
	add	x23, x23, #1
	ldr	x10, [x19]
	mov	x9, x11
	cmp	x23, x10
	b.lo	LBB0_20
LBB0_21:
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_22:
	mov	x12, x8
	cbnz	x12, LBB0_16
	b	LBB0_17
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_biL,8,3                        ; @biL
.subsections_via_symbols
