	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_ecp_check_pub_priv     ## -- Begin function mbedtls_ecp_check_pub_priv
	.p2align	4, 0x90
_mbedtls_ecp_check_pub_priv:            ## @mbedtls_ecp_check_pub_priv
	.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	16(%rdi), %rax
	movq	_MBEDTLS_ECP_DP_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.1:
	movq	%rsi, %r12
	cmpq	16(%rsi), %rax
	jne	LBB0_5
## %bb.2:
	movq	%rdi, %rbx
	addq	$8, %rdi
	leaq	8(%r12), %r14
	movq	%r14, %rsi
	callq	_mbedtls_mpi_cmp_mpi
	testq	%rax, %rax
	jne	LBB0_5
## %bb.3:
	leaq	4(%rbx), %rdi
	leaq	4(%r12), %r15
	movq	%r15, %rsi
	callq	_mbedtls_mpi_cmp_mpi
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_mbedtls_mpi_cmp_mpi
	testq	%rax, %rax
	je	LBB0_6
LBB0_5:
	movq	_MBEDTLS_ERR_ECP_BAD_INPUT_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	leaq	16(%r12), %rbx
	leaq	-56(%rbp), %rdi
	callq	_mbedtls_ecp_point_init
	leaq	-60(%rbp), %r13
	movq	%r13, %rdi
	callq	_mbedtls_ecp_group_init
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_mbedtls_ecp_group_copy
	leaq	32(%r12), %rdx
	leaq	24(%r12), %rcx
	movq	%r13, %rdi
	leaq	-56(%rbp), %rsi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_mbedtls_ecp_mul
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	leaq	-48(%rbp), %rdi
	movq	%r14, %rsi
	callq	_mbedtls_mpi_cmp_mpi
	testq	%rax, %rax
	jne	LBB0_10
## %bb.7:
	leaq	-52(%rbp), %rdi
	movq	%r15, %rsi
	callq	_mbedtls_mpi_cmp_mpi
	testq	%rax, %rax
	jne	LBB0_10
## %bb.8:
	leaq	-56(%rbp), %rdi
	movq	%r12, %rsi
	callq	_mbedtls_mpi_cmp_mpi
	testq	%rax, %rax
	je	LBB0_9
LBB0_10:
	movq	_MBEDTLS_ERR_ECP_BAD_INPUT_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_11:
	leaq	-56(%rbp), %rdi
	callq	_mbedtls_ecp_point_free
	leaq	-60(%rbp), %rdi
	callq	_mbedtls_ecp_group_free
	jmp	LBB0_12
LBB0_9:
                                        ## implicit-def: $ebx
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_MBEDTLS_ECP_DP_NONE,8,3        ## @MBEDTLS_ECP_DP_NONE
	.comm	_MBEDTLS_ERR_ECP_BAD_INPUT_DATA,4,2 ## @MBEDTLS_ERR_ECP_BAD_INPUT_DATA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_ecp_check_pub_priv     ; -- Begin function mbedtls_ecp_check_pub_priv
	.p2align	2
_mbedtls_ecp_check_pub_priv:            ; @mbedtls_ecp_check_pub_priv
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	ldr	x8, [x0, #16]
Lloh0:
	adrp	x9, _MBEDTLS_ECP_DP_NONE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MBEDTLS_ECP_DP_NONE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_5
; %bb.1:
	mov	x19, x1
	mov	x22, x1
	ldr	x9, [x22, #16]!
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.2:
	mov	x23, x0
	add	x0, x0, #8
	add	x20, x19, #8
	mov	x1, x20
	bl	_mbedtls_mpi_cmp_mpi
	cbnz	x0, LBB0_5
; %bb.3:
	add	x0, x23, #4
	add	x21, x19, #4
	mov	x1, x21
	bl	_mbedtls_mpi_cmp_mpi
	cbnz	x0, LBB0_5
; %bb.4:
	mov	x0, x23
	mov	x1, x19
	bl	_mbedtls_mpi_cmp_mpi
	cbz	x0, LBB0_7
LBB0_5:
Lloh3:
	adrp	x8, _MBEDTLS_ERR_ECP_BAD_INPUT_DATA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MBEDTLS_ERR_ECP_BAD_INPUT_DATA@GOTPAGEOFF]
Lloh5:
	ldr	w19, [x8]
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_7:
	add	x23, sp, #16
	add	x0, sp, #16
	bl	_mbedtls_ecp_point_init
	add	x0, sp, #12
	bl	_mbedtls_ecp_group_init
	add	x0, sp, #12
	mov	x1, x22
	bl	_mbedtls_ecp_group_copy
	add	x2, x19, #32
	add	x3, x19, #24
	add	x0, sp, #12
	add	x1, sp, #16
	mov	x4, #0
	mov	x5, #0
	bl	_mbedtls_ecp_mul
	bl	_MBEDTLS_MPI_CHK
	add	x0, x23, #8
	mov	x1, x20
	bl	_mbedtls_mpi_cmp_mpi
	cbnz	x0, LBB0_10
; %bb.8:
	orr	x0, x23, #0x4
	mov	x1, x21
	bl	_mbedtls_mpi_cmp_mpi
	cbnz	x0, LBB0_10
; %bb.9:
	add	x0, sp, #16
	mov	x1, x19
	bl	_mbedtls_mpi_cmp_mpi
	cbz	x0, LBB0_12
LBB0_10:
Lloh6:
	adrp	x8, _MBEDTLS_ERR_ECP_BAD_INPUT_DATA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MBEDTLS_ERR_ECP_BAD_INPUT_DATA@GOTPAGEOFF]
Lloh8:
	ldr	w19, [x8]
LBB0_11:
	add	x0, sp, #16
	bl	_mbedtls_ecp_point_free
	add	x0, sp, #12
	bl	_mbedtls_ecp_group_free
	b	LBB0_6
LBB0_12:
                                        ; implicit-def: $w19
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MBEDTLS_ECP_DP_NONE,8,3        ; @MBEDTLS_ECP_DP_NONE
	.comm	_MBEDTLS_ERR_ECP_BAD_INPUT_DATA,4,2 ; @MBEDTLS_ERR_ECP_BAD_INPUT_DATA
.subsections_via_symbols
