	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_mpi_is_prime           ## -- Begin function mbedtls_mpi_is_prime
	.p2align	4, 0x90
_mbedtls_mpi_is_prime:                  ## @mbedtls_mpi_is_prime
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movl	$1, -40(%rbp)
	movl	8(%rdi), %eax
	movl	%eax, -32(%rbp)
	movl	4(%rdi), %eax
	movl	%eax, -36(%rbp)
	leaq	-40(%rbp), %rdi
	xorl	%esi, %esi
	callq	_mbedtls_mpi_cmp_int
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	-40(%rbp), %rdi
	movl	$1, %esi
	callq	_mbedtls_mpi_cmp_int
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	leaq	-40(%rbp), %rdi
	movl	$2, %esi
	callq	_mbedtls_mpi_cmp_int
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	leaq	-40(%rbp), %rdi
	callq	_mpi_check_small_factors
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	cmpl	$1, %eax
	je	LBB0_8
	jmp	LBB0_7
LBB0_2:
	movq	_MBEDTLS_ERR_MPI_NOT_ACCEPTABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_8
LBB0_6:
	leaq	-40(%rbp), %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_mpi_miller_rabin
LBB0_7:
	movl	%eax, %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MBEDTLS_ERR_MPI_NOT_ACCEPTABLE,4,2 ## @MBEDTLS_ERR_MPI_NOT_ACCEPTABLE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_mpi_is_prime           ; -- Begin function mbedtls_mpi_is_prime
	.p2align	2
_mbedtls_mpi_is_prime:                  ; @mbedtls_mpi_is_prime
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x2
	mov	x20, x1
	mov	w8, #1
	str	w8, [sp]
	ldur	d0, [x0, #4]
	stur	d0, [sp, #4]
	mov	x0, sp
	mov	w1, #0
	bl	_mbedtls_mpi_cmp_int
	cbz	x0, LBB0_5
; %bb.1:
	mov	x0, sp
	mov	w1, #1
	bl	_mbedtls_mpi_cmp_int
	cbz	x0, LBB0_5
; %bb.2:
	mov	x0, sp
	mov	w1, #2
	bl	_mbedtls_mpi_cmp_int
	cbz	x0, LBB0_6
; %bb.3:
	mov	x0, sp
	bl	_mpi_check_small_factors
	cbz	w0, LBB0_7
; %bb.4:
	cmp	w0, #1
	csel	w0, wzr, w0, eq
	b	LBB0_6
LBB0_5:
Lloh0:
	adrp	x8, _MBEDTLS_ERR_MPI_NOT_ACCEPTABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MBEDTLS_ERR_MPI_NOT_ACCEPTABLE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_7:
	mov	x0, sp
	mov	x1, x20
	mov	x2, x19
	bl	_mpi_miller_rabin
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MBEDTLS_ERR_MPI_NOT_ACCEPTABLE,4,2 ; @MBEDTLS_ERR_MPI_NOT_ACCEPTABLE
.subsections_via_symbols
