	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ecp_add_mixed
_ecp_add_mixed:                         ## @ecp_add_mixed
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rdx, %rdi
	xorl	%esi, %esi
	callq	_mbedtls_mpi_cmp_int
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	cmpq	$0, (%r15)
	je	LBB0_6
## %bb.2:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_mbedtls_mpi_cmp_int
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:
	cmpq	$0, (%r15)
	je	LBB0_6
## %bb.4:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_mbedtls_mpi_cmp_int
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_MBEDTLS_ERR_ECP_BAD_INPUT_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_16
LBB0_6:
	movq	%r14, -96(%rbp)                 ## 8-byte Spill
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	leaq	-64(%rbp), %r13
	movq	%r13, %rdi
	callq	_mbedtls_mpi_init
	leaq	-56(%rbp), %r14
	movq	%r14, %rdi
	callq	_mbedtls_mpi_init
	leaq	-48(%rbp), %rdi
	callq	_mbedtls_mpi_init
	leaq	-88(%rbp), %rdi
	callq	_mbedtls_mpi_init
	leaq	-72(%rbp), %rdi
	callq	_mbedtls_mpi_init
	leaq	-112(%rbp), %rdi
	callq	_mbedtls_mpi_init
	leaq	-80(%rbp), %rdi
	callq	_mbedtls_mpi_init
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%r12, %rdx
	callq	_mbedtls_mpi_mul_mpi
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	movq	-64(%rbp), %rdi
	callq	_MOD_MUL
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	_mbedtls_mpi_mul_mpi
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	movq	-56(%rbp), %rdi
	callq	_MOD_MUL
	leaq	16(%r15), %rdx
	movq	%r13, %rdi
	movq	%r13, %rsi
	callq	_mbedtls_mpi_mul_mpi
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	movq	-64(%rbp), %rdi
	callq	_MOD_MUL
	addq	$8, %r15
	movq	%r14, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_mbedtls_mpi_mul_mpi
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	movq	-56(%rbp), %rdi
	callq	_MOD_MUL
	leaq	16(%r12), %r15
	movq	%r13, %rdi
	movq	%r13, %rsi
	movq	%r15, %rdx
	callq	_mbedtls_mpi_sub_mpi
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	movq	-64(%rbp), %rdi
	callq	_MOD_SUB
	leaq	8(%r12), %rbx
	movq	%r14, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_mbedtls_mpi_sub_mpi
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	movq	-56(%rbp), %rdi
	callq	_MOD_SUB
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_mbedtls_mpi_cmp_int
	testq	%rax, %rax
	je	LBB0_11
## %bb.7:
	leaq	-80(%rbp), %rdi
	leaq	-64(%rbp), %r14
	movq	%r12, %rsi
	movq	%r14, %rdx
	callq	_mbedtls_mpi_mul_mpi
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	movq	-80(%rbp), %rdi
	callq	_MOD_MUL
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r14, %rdx
	callq	_mbedtls_mpi_mul_mpi
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	movq	-48(%rbp), %rdi
	callq	_MOD_MUL
	leaq	-88(%rbp), %r13
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_mbedtls_mpi_mul_mpi
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	movq	-88(%rbp), %rdi
	callq	_MOD_MUL
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_mbedtls_mpi_mul_mpi
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	movq	-48(%rbp), %rdi
	callq	_MOD_MUL
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	$2, %edx
	callq	_mbedtls_mpi_mul_int
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	movq	-64(%rbp), %rdi
	callq	_MOD_ADD
	leaq	-72(%rbp), %r12
	leaq	-56(%rbp), %r15
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%r15, %rdx
	callq	_mbedtls_mpi_mul_mpi
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	movq	-72(%rbp), %rdi
	callq	_MOD_MUL
	movq	%r12, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	callq	_mbedtls_mpi_sub_mpi
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	movq	-72(%rbp), %rdi
	callq	_MOD_SUB
	movq	%r12, %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	callq	_mbedtls_mpi_sub_mpi
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	movq	-72(%rbp), %rdi
	callq	_MOD_SUB
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_mbedtls_mpi_sub_mpi
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	movq	-48(%rbp), %rdi
	callq	_MOD_SUB
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_mbedtls_mpi_mul_mpi
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	movq	-48(%rbp), %rdi
	callq	_MOD_MUL
	movq	%r13, %rdi
	movq	%r13, %rsi
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	callq	_mbedtls_mpi_mul_mpi
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	movq	-88(%rbp), %rdi
	callq	_MOD_MUL
	leaq	-112(%rbp), %r14
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	callq	_mbedtls_mpi_sub_mpi
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	movq	-112(%rbp), %rdi
	callq	_MOD_SUB
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	leaq	16(%rbx), %rdi
	movq	%r12, %rsi
	callq	_mbedtls_mpi_copy
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	leaq	8(%rbx), %rdi
	movq	%r14, %rsi
	callq	_mbedtls_mpi_copy
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	movq	%rbx, %rdi
	leaq	-80(%rbp), %rsi
	callq	_mbedtls_mpi_copy
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
                                        ## implicit-def: $ebx
	jmp	LBB0_15
LBB0_8:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	jmp	LBB0_10
LBB0_9:
	movq	%rbx, %rdi
	movq	%r12, %rsi
LBB0_10:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mbedtls_ecp_copy               ## TAILCALL
LBB0_11:
	leaq	-56(%rbp), %rdi
	xorl	%esi, %esi
	callq	_mbedtls_mpi_cmp_int
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	callq	_mbedtls_ecp_set_zero
	jmp	LBB0_14
LBB0_13:
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	movq	%r12, %rdx
	callq	_ecp_double_jac
LBB0_14:
	movl	%eax, %ebx
LBB0_15:
	leaq	-64(%rbp), %rdi
	callq	_mbedtls_mpi_free
	leaq	-56(%rbp), %rdi
	callq	_mbedtls_mpi_free
	leaq	-48(%rbp), %rdi
	callq	_mbedtls_mpi_free
	leaq	-88(%rbp), %rdi
	callq	_mbedtls_mpi_free
	leaq	-72(%rbp), %rdi
	callq	_mbedtls_mpi_free
	leaq	-112(%rbp), %rdi
	callq	_mbedtls_mpi_free
	leaq	-80(%rbp), %rdi
	callq	_mbedtls_mpi_free
LBB0_16:
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MBEDTLS_ERR_ECP_BAD_INPUT_DATA,4,2 ## @MBEDTLS_ERR_ECP_BAD_INPUT_DATA
	.comm	_add_count,4,2                  ## @add_count
	.no_dead_strip	_ecp_add_mixed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ecp_add_mixed
_ecp_add_mixed:                         ; @ecp_add_mixed
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x21, x3
	mov	x20, x2
	mov	x19, x1
	mov	x22, x0
	mov	x0, x2
	mov	w1, #0
	bl	_mbedtls_mpi_cmp_int
	cbz	x0, LBB0_8
; %bb.1:
	ldr	x8, [x21]
	cbz	x8, LBB0_6
; %bb.2:
	mov	x0, x21
	mov	w1, #0
	bl	_mbedtls_mpi_cmp_int
	cbz	x0, LBB0_9
; %bb.3:
	ldr	x8, [x21]
	cbz	x8, LBB0_6
; %bb.4:
	mov	x0, x21
	mov	w1, #1
	bl	_mbedtls_mpi_cmp_int
	cbz	x0, LBB0_6
; %bb.5:
Lloh0:
	adrp	x8, _MBEDTLS_ERR_ECP_BAD_INPUT_DATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MBEDTLS_ERR_ECP_BAD_INPUT_DATA@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
	b	LBB0_16
LBB0_6:
	add	x0, sp, #56
	bl	_mbedtls_mpi_init
	add	x0, sp, #48
	bl	_mbedtls_mpi_init
	add	x0, sp, #40
	bl	_mbedtls_mpi_init
	add	x0, sp, #32
	bl	_mbedtls_mpi_init
	add	x0, sp, #24
	bl	_mbedtls_mpi_init
	add	x0, sp, #16
	bl	_mbedtls_mpi_init
	add	x0, sp, #8
	bl	_mbedtls_mpi_init
	add	x0, sp, #56
	mov	x1, x20
	mov	x2, x20
	bl	_mbedtls_mpi_mul_mpi
	bl	_MBEDTLS_MPI_CHK
	ldr	x0, [sp, #56]
	bl	_MOD_MUL
	add	x0, sp, #48
	add	x1, sp, #56
	mov	x2, x20
	bl	_mbedtls_mpi_mul_mpi
	bl	_MBEDTLS_MPI_CHK
	ldr	x0, [sp, #48]
	bl	_MOD_MUL
	add	x2, x21, #16
	add	x0, sp, #56
	add	x1, sp, #56
	bl	_mbedtls_mpi_mul_mpi
	bl	_MBEDTLS_MPI_CHK
	ldr	x0, [sp, #56]
	bl	_MOD_MUL
	add	x2, x21, #8
	add	x0, sp, #48
	add	x1, sp, #48
	bl	_mbedtls_mpi_mul_mpi
	bl	_MBEDTLS_MPI_CHK
	ldr	x0, [sp, #48]
	bl	_MOD_MUL
	add	x23, x20, #16
	add	x0, sp, #56
	add	x1, sp, #56
	mov	x2, x23
	bl	_mbedtls_mpi_sub_mpi
	bl	_MBEDTLS_MPI_CHK
	ldr	x0, [sp, #56]
	bl	_MOD_SUB
	add	x21, x20, #8
	add	x0, sp, #48
	add	x1, sp, #48
	mov	x2, x21
	bl	_mbedtls_mpi_sub_mpi
	bl	_MBEDTLS_MPI_CHK
	ldr	x0, [sp, #48]
	bl	_MOD_SUB
	add	x0, sp, #56
	mov	w1, #0
	bl	_mbedtls_mpi_cmp_int
	cbz	x0, LBB0_11
; %bb.7:
	add	x0, sp, #8
	add	x2, sp, #56
	mov	x1, x20
	bl	_mbedtls_mpi_mul_mpi
	bl	_MBEDTLS_MPI_CHK
	ldr	x0, [sp, #8]
	bl	_MOD_MUL
	add	x0, sp, #40
	add	x1, sp, #56
	add	x2, sp, #56
	bl	_mbedtls_mpi_mul_mpi
	bl	_MBEDTLS_MPI_CHK
	ldr	x0, [sp, #40]
	bl	_MOD_MUL
	add	x0, sp, #32
	add	x1, sp, #40
	add	x2, sp, #56
	bl	_mbedtls_mpi_mul_mpi
	bl	_MBEDTLS_MPI_CHK
	ldr	x0, [sp, #32]
	bl	_MOD_MUL
	add	x0, sp, #40
	add	x1, sp, #40
	mov	x2, x23
	bl	_mbedtls_mpi_mul_mpi
	bl	_MBEDTLS_MPI_CHK
	ldr	x0, [sp, #40]
	bl	_MOD_MUL
	add	x0, sp, #56
	add	x1, sp, #40
	mov	w2, #2
	bl	_mbedtls_mpi_mul_int
	bl	_MBEDTLS_MPI_CHK
	ldr	x0, [sp, #56]
	bl	_MOD_ADD
	add	x0, sp, #24
	add	x1, sp, #48
	add	x2, sp, #48
	bl	_mbedtls_mpi_mul_mpi
	bl	_MBEDTLS_MPI_CHK
	ldr	x0, [sp, #24]
	bl	_MOD_MUL
	add	x0, sp, #24
	add	x1, sp, #24
	add	x2, sp, #56
	bl	_mbedtls_mpi_sub_mpi
	bl	_MBEDTLS_MPI_CHK
	ldr	x0, [sp, #24]
	bl	_MOD_SUB
	add	x0, sp, #24
	add	x1, sp, #24
	add	x2, sp, #32
	bl	_mbedtls_mpi_sub_mpi
	bl	_MBEDTLS_MPI_CHK
	ldr	x0, [sp, #24]
	bl	_MOD_SUB
	add	x0, sp, #40
	add	x1, sp, #40
	add	x2, sp, #24
	bl	_mbedtls_mpi_sub_mpi
	bl	_MBEDTLS_MPI_CHK
	ldr	x0, [sp, #40]
	bl	_MOD_SUB
	add	x0, sp, #40
	add	x1, sp, #40
	add	x2, sp, #48
	bl	_mbedtls_mpi_mul_mpi
	bl	_MBEDTLS_MPI_CHK
	ldr	x0, [sp, #40]
	bl	_MOD_MUL
	add	x0, sp, #32
	add	x1, sp, #32
	mov	x2, x21
	bl	_mbedtls_mpi_mul_mpi
	bl	_MBEDTLS_MPI_CHK
	ldr	x0, [sp, #32]
	bl	_MOD_MUL
	add	x0, sp, #16
	add	x1, sp, #40
	add	x2, sp, #32
	bl	_mbedtls_mpi_sub_mpi
	bl	_MBEDTLS_MPI_CHK
	ldr	x0, [sp, #16]
	bl	_MOD_SUB
	add	x0, x19, #16
	add	x1, sp, #24
	bl	_mbedtls_mpi_copy
	bl	_MBEDTLS_MPI_CHK
	add	x0, x19, #8
	add	x1, sp, #16
	bl	_mbedtls_mpi_copy
	bl	_MBEDTLS_MPI_CHK
	add	x1, sp, #8
	mov	x0, x19
	bl	_mbedtls_mpi_copy
	bl	_MBEDTLS_MPI_CHK
                                        ; implicit-def: $w19
	b	LBB0_15
LBB0_8:
	mov	x0, x19
	mov	x1, x21
	b	LBB0_10
LBB0_9:
	mov	x0, x19
	mov	x1, x20
LBB0_10:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_mbedtls_ecp_copy
LBB0_11:
	add	x0, sp, #48
	mov	w1, #0
	bl	_mbedtls_mpi_cmp_int
	cbz	x0, LBB0_13
; %bb.12:
	mov	x0, x19
	bl	_mbedtls_ecp_set_zero
	b	LBB0_14
LBB0_13:
	mov	x0, x22
	mov	x1, x19
	mov	x2, x20
	bl	_ecp_double_jac
LBB0_14:
	mov	x19, x0
LBB0_15:
	add	x0, sp, #56
	bl	_mbedtls_mpi_free
	add	x0, sp, #48
	bl	_mbedtls_mpi_free
	add	x0, sp, #40
	bl	_mbedtls_mpi_free
	add	x0, sp, #32
	bl	_mbedtls_mpi_free
	add	x0, sp, #24
	bl	_mbedtls_mpi_free
	add	x0, sp, #16
	bl	_mbedtls_mpi_free
	add	x0, sp, #8
	bl	_mbedtls_mpi_free
LBB0_16:
	mov	x0, x19
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MBEDTLS_ERR_ECP_BAD_INPUT_DATA,4,2 ; @MBEDTLS_ERR_ECP_BAD_INPUT_DATA
	.comm	_add_count,4,2                  ; @add_count
	.no_dead_strip	_ecp_add_mixed
.subsections_via_symbols
