	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mpi_check_small_factors
_mpi_check_small_factors:               ## @mpi_check_small_factors
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	testb	$1, (%rax)
	jne	LBB0_2
LBB0_1:
	movq	_MBEDTLS_ERR_MPI_NOT_ACCEPTABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_10
LBB0_2:
	movq	_small_prime@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	(%rax), %rsi
	testq	%rsi, %rsi
	jle	LBB0_8
## %bb.3:
	movq	%rdi, %r12
	xorl	%ebx, %ebx
	leaq	-40(%rbp), %r14
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_mbedtls_mpi_cmp_int
	testq	%rax, %rax
	jle	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r15), %rax
	movq	(%rax,%rbx), %rdx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_mbedtls_mpi_mod_int
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	cmpq	$0, -40(%rbp)
	je	LBB0_1
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r15), %rax
	movq	8(%rax,%rbx), %rsi
	addq	$8, %rbx
	testq	%rsi, %rsi
	jg	LBB0_4
LBB0_8:
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_9:
	movl	$1, %eax
LBB0_10:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MBEDTLS_ERR_MPI_NOT_ACCEPTABLE,4,2 ## @MBEDTLS_ERR_MPI_NOT_ACCEPTABLE
	.comm	_small_prime,8,3                ## @small_prime
	.no_dead_strip	_mpi_check_small_factors
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mpi_check_small_factors
_mpi_check_small_factors:               ; @mpi_check_small_factors
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	ldr	x8, [x0]
	ldrb	w8, [x8]
	tbnz	w8, #0, LBB0_2
LBB0_1:
Lloh0:
	adrp	x8, _MBEDTLS_ERR_MPI_NOT_ACCEPTABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MBEDTLS_ERR_MPI_NOT_ACCEPTABLE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_9
LBB0_2:
Lloh3:
	adrp	x20, _small_prime@GOTPAGE
Lloh4:
	ldr	x20, [x20, _small_prime@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	x1, [x8]
	cmp	x1, #1
	b.lt	LBB0_7
; %bb.3:
	mov	x19, x0
	mov	x21, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_mbedtls_mpi_cmp_int
	cmp	x0, #1
	b.lt	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20]
	ldr	x2, [x8, x21]
	add	x0, sp, #8
	mov	x1, x19
	bl	_mbedtls_mpi_mod_int
	bl	_MBEDTLS_MPI_CHK
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_1
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20]
	add	x8, x8, x21
	ldr	x1, [x8, #8]
	add	x21, x21, #8
	cmp	x1, #1
	b.ge	LBB0_4
LBB0_7:
	mov	w0, #0
	b	LBB0_9
LBB0_8:
	mov	w0, #1
LBB0_9:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_MBEDTLS_ERR_MPI_NOT_ACCEPTABLE,4,2 ; @MBEDTLS_ERR_MPI_NOT_ACCEPTABLE
	.comm	_small_prime,8,3                ; @small_prime
	.no_dead_strip	_mpi_check_small_factors
.subsections_via_symbols
