	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function derive_mpi
_derive_mpi:                            ## @derive_mpi
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	(%rdi), %eax
	leal	7(%rax), %ecx
	addl	$14, %eax
	testl	%ecx, %ecx
	cmovnsl	%ecx, %eax
	sarl	$3, %eax
	cltq
	cmpq	%rbx, %rax
	cmovbq	%rax, %rbx
	movq	%rsi, %rdi
	movq	%rdx, %rsi
	movq	%rbx, %rdx
	callq	_mbedtls_mpi_read_binary
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	shlq	$3, %rbx
	movslq	(%r15), %rax
	subq	%rax, %rbx
	jbe	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_mbedtls_mpi_shift_r
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
LBB0_2:
	addq	$4, %r15
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_mbedtls_mpi_cmp_mpi
	testq	%rax, %rax
	js	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_mbedtls_mpi_sub_mpi
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_derive_mpi
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function derive_mpi
_derive_mpi:                            ; @derive_mpi
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	w8, [x0]
	add	w9, w8, #7
	add	w8, w8, #14
	cmp	w9, #0
	csel	w8, w8, w9, lt
	sbfx	x8, x8, #3, #29
	cmp	x8, x3
	csel	x21, x8, x3, lo
	mov	x0, x1
	mov	x1, x2
	mov	x2, x21
	bl	_mbedtls_mpi_read_binary
	bl	_MBEDTLS_MPI_CHK
	lsl	x8, x21, #3
	ldrsw	x9, [x20]
	subs	x1, x8, x9
	b.ls	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_mbedtls_mpi_shift_r
	bl	_MBEDTLS_MPI_CHK
LBB0_2:
	add	x20, x20, #4
	mov	x0, x19
	mov	x1, x20
	bl	_mbedtls_mpi_cmp_mpi
	tbnz	x0, #63, LBB0_4
; %bb.3:
	mov	x0, x19
	mov	x1, x19
	mov	x2, x20
	bl	_mbedtls_mpi_sub_mpi
	bl	_MBEDTLS_MPI_CHK
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_derive_mpi
.subsections_via_symbols
