	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ecp_check_pubkey_sw
_ecp_check_pubkey_sw:                   ## @ecp_check_pubkey_sw
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	%rsi, %rdi
	xorl	%esi, %esi
	callq	_mbedtls_mpi_cmp_int
	testq	%rax, %rax
	js	LBB0_4
## %bb.1:
	leaq	4(%r15), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_mbedtls_mpi_cmp_int
	testq	%rax, %rax
	js	LBB0_4
## %bb.2:
	leaq	16(%r14), %rbx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_mbedtls_mpi_cmp_mpi
	testq	%rax, %rax
	jns	LBB0_4
## %bb.3:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_mbedtls_mpi_cmp_mpi
	testq	%rax, %rax
	js	LBB0_5
LBB0_4:
	movq	_MBEDTLS_ERR_ECP_INVALID_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_mbedtls_mpi_init
	leaq	-44(%rbp), %r13
	movq	%r13, %rdi
	callq	_mbedtls_mpi_init
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%r12, %rdx
	callq	_mbedtls_mpi_mul_mpi
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	movl	-48(%rbp), %edi
	callq	_MOD_MUL
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%r15, %rdx
	callq	_mbedtls_mpi_mul_mpi
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	movl	-44(%rbp), %edi
	callq	_MOD_MUL
	cmpq	$0, 8(%r14)
	je	LBB0_6
## %bb.7:
	leaq	8(%r14), %rdx
	leaq	-44(%rbp), %rdi
	movq	%rdi, %rsi
	callq	_mbedtls_mpi_add_mpi
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	movl	-44(%rbp), %edi
	callq	_MOD_ADD
	jmp	LBB0_8
LBB0_6:
	leaq	-44(%rbp), %rdi
	movq	%rdi, %rsi
	movl	$3, %edx
	callq	_mbedtls_mpi_sub_int
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	movl	-44(%rbp), %edi
	callq	_MOD_SUB
LBB0_8:
	leaq	-44(%rbp), %r12
	movq	%r12, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_mbedtls_mpi_mul_mpi
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	movl	-44(%rbp), %edi
	callq	_MOD_MUL
	movq	%r12, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	callq	_mbedtls_mpi_add_mpi
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	movl	-44(%rbp), %edi
	callq	_MOD_ADD
	leaq	-48(%rbp), %r14
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_mbedtls_mpi_cmp_mpi
	movq	_MBEDTLS_ERR_ECP_INVALID_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_mbedtls_mpi_free
	movq	%r12, %rdi
	callq	_mbedtls_mpi_free
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_MBEDTLS_ERR_ECP_INVALID_KEY,4,2 ## @MBEDTLS_ERR_ECP_INVALID_KEY
	.no_dead_strip	_ecp_check_pubkey_sw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ecp_check_pubkey_sw
_ecp_check_pubkey_sw:                   ; @ecp_check_pubkey_sw
	.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
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	mov	w1, #0
	bl	_mbedtls_mpi_cmp_int
	tbnz	x0, #63, LBB0_4
; %bb.1:
	add	x21, x20, #4
	mov	x0, x21
	mov	w1, #0
	bl	_mbedtls_mpi_cmp_int
	tbnz	x0, #63, LBB0_4
; %bb.2:
	add	x22, x19, #16
	mov	x0, x20
	mov	x1, x22
	bl	_mbedtls_mpi_cmp_mpi
	tbz	x0, #63, LBB0_4
; %bb.3:
	mov	x0, x21
	mov	x1, x22
	bl	_mbedtls_mpi_cmp_mpi
	tbnz	x0, #63, LBB0_6
LBB0_4:
Lloh0:
	adrp	x8, _MBEDTLS_ERR_ECP_INVALID_KEY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MBEDTLS_ERR_ECP_INVALID_KEY@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
LBB0_5:
	mov	x0, x19
	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
LBB0_6:
	add	x0, sp, #12
	bl	_mbedtls_mpi_init
	add	x0, sp, #8
	bl	_mbedtls_mpi_init
	add	x0, sp, #12
	mov	x1, x21
	mov	x2, x21
	bl	_mbedtls_mpi_mul_mpi
	bl	_MBEDTLS_MPI_CHK
	ldr	w0, [sp, #12]
	bl	_MOD_MUL
	add	x0, sp, #8
	mov	x1, x20
	mov	x2, x20
	bl	_mbedtls_mpi_mul_mpi
	bl	_MBEDTLS_MPI_CHK
	ldr	w0, [sp, #8]
	bl	_MOD_MUL
	mov	x2, x19
	ldr	x8, [x2, #8]!
	cbz	x8, LBB0_8
; %bb.7:
	add	x0, sp, #8
	add	x1, sp, #8
	bl	_mbedtls_mpi_add_mpi
	bl	_MBEDTLS_MPI_CHK
	ldr	w0, [sp, #8]
	bl	_MOD_ADD
	b	LBB0_9
LBB0_8:
	add	x0, sp, #8
	add	x1, sp, #8
	mov	w2, #3
	bl	_mbedtls_mpi_sub_int
	bl	_MBEDTLS_MPI_CHK
	ldr	w0, [sp, #8]
	bl	_MOD_SUB
LBB0_9:
	add	x0, sp, #8
	add	x1, sp, #8
	mov	x2, x20
	bl	_mbedtls_mpi_mul_mpi
	bl	_MBEDTLS_MPI_CHK
	ldr	w0, [sp, #8]
	bl	_MOD_MUL
	add	x0, sp, #8
	add	x1, sp, #8
	mov	x2, x19
	bl	_mbedtls_mpi_add_mpi
	bl	_MBEDTLS_MPI_CHK
	ldr	w0, [sp, #8]
	bl	_MOD_ADD
	add	x0, sp, #12
	add	x1, sp, #8
	bl	_mbedtls_mpi_cmp_mpi
Lloh3:
	adrp	x8, _MBEDTLS_ERR_ECP_INVALID_KEY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MBEDTLS_ERR_ECP_INVALID_KEY@GOTPAGEOFF]
Lloh5:
	ldr	w19, [x8]
	add	x0, sp, #12
	bl	_mbedtls_mpi_free
	add	x0, sp, #8
	bl	_mbedtls_mpi_free
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MBEDTLS_ERR_ECP_INVALID_KEY,4,2 ; @MBEDTLS_ERR_ECP_INVALID_KEY
	.no_dead_strip	_ecp_check_pubkey_sw
.subsections_via_symbols
