	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ecp_double_jac
_ecp_double_jac:                        ## @ecp_double_jac
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	leaq	-64(%rbp), %rdi
	callq	_mbedtls_mpi_init
	leaq	-48(%rbp), %rdi
	callq	_mbedtls_mpi_init
	leaq	-56(%rbp), %rdi
	callq	_mbedtls_mpi_init
	leaq	-72(%rbp), %rdi
	callq	_mbedtls_mpi_init
	cmpq	$0, (%rbx)
	je	LBB0_1
## %bb.2:
	leaq	16(%r15), %rdx
	leaq	-48(%rbp), %r14
	movq	%r14, %rdi
	movq	%rdx, %rsi
	callq	_mbedtls_mpi_mul_mpi
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	movq	-48(%rbp), %rdi
	callq	_MOD_MUL
	leaq	-64(%rbp), %rdi
	movq	%r14, %rsi
	movl	$3, %edx
	callq	_mbedtls_mpi_mul_int
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	movq	-64(%rbp), %rdi
	callq	_MOD_ADD
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_mbedtls_mpi_cmp_int
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	leaq	-48(%rbp), %r14
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r15, %rdx
	callq	_mbedtls_mpi_mul_mpi
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	movq	-48(%rbp), %rdi
	callq	_MOD_MUL
	leaq	-56(%rbp), %r12
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%r14, %rdx
	callq	_mbedtls_mpi_mul_mpi
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	movq	-56(%rbp), %rdi
	callq	_MOD_MUL
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_mbedtls_mpi_mul_mpi
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	movq	-48(%rbp), %rdi
	callq	_MOD_MUL
	leaq	-64(%rbp), %rdi
	movq	%rdi, %rsi
	movq	%r14, %rdx
	callq	_mbedtls_mpi_add_mpi
	jmp	LBB0_4
LBB0_1:
	leaq	-48(%rbp), %r12
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%r15, %rdx
	callq	_mbedtls_mpi_mul_mpi
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	movq	-48(%rbp), %rdi
	callq	_MOD_MUL
	leaq	16(%r15), %rbx
	leaq	-56(%rbp), %r14
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_mbedtls_mpi_add_mpi
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	movq	-56(%rbp), %rdi
	callq	_MOD_ADD
	leaq	-72(%rbp), %r13
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_mbedtls_mpi_sub_mpi
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	movq	-72(%rbp), %rdi
	callq	_MOD_SUB
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%r13, %rdx
	callq	_mbedtls_mpi_mul_mpi
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	movq	-48(%rbp), %rdi
	callq	_MOD_MUL
	leaq	-64(%rbp), %rdi
	movq	%r12, %rsi
	movl	$3, %edx
	callq	_mbedtls_mpi_mul_int
LBB0_4:
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	movq	-64(%rbp), %rdi
	callq	_MOD_ADD
LBB0_5:
	leaq	8(%r15), %r14
	leaq	-56(%rbp), %r12
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%r14, %rdx
	callq	_mbedtls_mpi_mul_mpi
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	movq	-56(%rbp), %rdi
	callq	_MOD_MUL
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_mbedtls_mpi_shift_l
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	movq	-56(%rbp), %rdi
	callq	_MOD_ADD
	leaq	16(%r15), %rsi
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	leaq	-48(%rbp), %r15
	movq	%r15, %rdi
	movq	%r12, %rdx
	callq	_mbedtls_mpi_mul_mpi
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	movq	-48(%rbp), %rdi
	callq	_MOD_MUL
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_mbedtls_mpi_shift_l
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	movq	-48(%rbp), %rdi
	callq	_MOD_ADD
	leaq	-72(%rbp), %r13
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%r12, %rdx
	callq	_mbedtls_mpi_mul_mpi
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	movq	-72(%rbp), %rdi
	callq	_MOD_MUL
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_mbedtls_mpi_shift_l
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	movq	-72(%rbp), %rdi
	callq	_MOD_ADD
	leaq	-64(%rbp), %rbx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%rbx, %rdx
	callq	_mbedtls_mpi_mul_mpi
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	movq	-56(%rbp), %rdi
	callq	_MOD_MUL
	movq	%r12, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_mbedtls_mpi_sub_mpi
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	movq	-56(%rbp), %rdi
	callq	_MOD_SUB
	movq	%r12, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_mbedtls_mpi_sub_mpi
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	movq	-56(%rbp), %rdi
	callq	_MOD_SUB
	movq	%r15, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_mbedtls_mpi_sub_mpi
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	movq	-48(%rbp), %rdi
	callq	_MOD_SUB
	movq	%r15, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_mbedtls_mpi_mul_mpi
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	movq	-48(%rbp), %rdi
	callq	_MOD_MUL
	movq	%r15, %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	callq	_mbedtls_mpi_sub_mpi
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	movq	-48(%rbp), %rdi
	callq	_MOD_SUB
	movq	%r13, %rdi
	movq	%r14, %rsi
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	callq	_mbedtls_mpi_mul_mpi
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	movq	-72(%rbp), %rdi
	callq	_MOD_MUL
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_mbedtls_mpi_shift_l
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	movq	-72(%rbp), %rdi
	callq	_MOD_ADD
	movq	-88(%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	%r15, %rsi
	callq	_mbedtls_mpi_copy
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_mbedtls_mpi_copy
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	leaq	-64(%rbp), %rdi
	callq	_mbedtls_mpi_free
	movq	%r15, %rdi
	callq	_mbedtls_mpi_free
	movq	%r12, %rdi
	callq	_mbedtls_mpi_free
	movq	%r13, %rdi
	callq	_mbedtls_mpi_free
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dbl_count,4,2                  ## @dbl_count
	.no_dead_strip	_ecp_double_jac
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ecp_double_jac
_ecp_double_jac:                        ; @ecp_double_jac
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x2
	mov	x19, x1
	mov	x21, x0
	add	x0, sp, #24
	bl	_mbedtls_mpi_init
	add	x0, sp, #16
	bl	_mbedtls_mpi_init
	add	x0, sp, #8
	bl	_mbedtls_mpi_init
	mov	x0, sp
	bl	_mbedtls_mpi_init
	ldr	x8, [x21]
	cbz	x8, LBB0_3
; %bb.1:
	add	x1, x20, #16
	add	x0, sp, #16
	mov	x2, x1
	bl	_mbedtls_mpi_mul_mpi
	bl	_MBEDTLS_MPI_CHK
	ldr	x0, [sp, #16]
	bl	_MOD_MUL
	add	x0, sp, #24
	add	x1, sp, #16
	mov	w2, #3
	bl	_mbedtls_mpi_mul_int
	bl	_MBEDTLS_MPI_CHK
	ldr	x0, [sp, #24]
	bl	_MOD_ADD
	mov	x0, x21
	mov	w1, #0
	bl	_mbedtls_mpi_cmp_int
	cbz	x0, LBB0_5
; %bb.2:
	add	x0, sp, #16
	mov	x1, x20
	mov	x2, x20
	bl	_mbedtls_mpi_mul_mpi
	bl	_MBEDTLS_MPI_CHK
	ldr	x0, [sp, #16]
	bl	_MOD_MUL
	add	x0, sp, #8
	add	x1, sp, #16
	add	x2, sp, #16
	bl	_mbedtls_mpi_mul_mpi
	bl	_MBEDTLS_MPI_CHK
	ldr	x0, [sp, #8]
	bl	_MOD_MUL
	add	x0, sp, #16
	add	x1, sp, #8
	mov	x2, x21
	bl	_mbedtls_mpi_mul_mpi
	bl	_MBEDTLS_MPI_CHK
	ldr	x0, [sp, #16]
	bl	_MOD_MUL
	add	x0, sp, #24
	add	x1, sp, #24
	add	x2, sp, #16
	bl	_mbedtls_mpi_add_mpi
	b	LBB0_4
LBB0_3:
	add	x0, sp, #16
	mov	x1, x20
	mov	x2, x20
	bl	_mbedtls_mpi_mul_mpi
	bl	_MBEDTLS_MPI_CHK
	ldr	x0, [sp, #16]
	bl	_MOD_MUL
	add	x21, x20, #16
	add	x0, sp, #8
	add	x2, sp, #16
	mov	x1, x21
	bl	_mbedtls_mpi_add_mpi
	bl	_MBEDTLS_MPI_CHK
	ldr	x0, [sp, #8]
	bl	_MOD_ADD
	mov	x0, sp
	add	x2, sp, #16
	mov	x1, x21
	bl	_mbedtls_mpi_sub_mpi
	bl	_MBEDTLS_MPI_CHK
	ldr	x0, [sp]
	bl	_MOD_SUB
	add	x0, sp, #16
	add	x1, sp, #8
	mov	x2, sp
	bl	_mbedtls_mpi_mul_mpi
	bl	_MBEDTLS_MPI_CHK
	ldr	x0, [sp, #16]
	bl	_MOD_MUL
	add	x0, sp, #24
	add	x1, sp, #16
	mov	w2, #3
	bl	_mbedtls_mpi_mul_int
LBB0_4:
	bl	_MBEDTLS_MPI_CHK
	ldr	x0, [sp, #24]
	bl	_MOD_ADD
LBB0_5:
	add	x21, x20, #8
	add	x0, sp, #8
	mov	x1, x21
	mov	x2, x21
	bl	_mbedtls_mpi_mul_mpi
	bl	_MBEDTLS_MPI_CHK
	ldr	x0, [sp, #8]
	bl	_MOD_MUL
	add	x0, sp, #8
	mov	w1, #1
	bl	_mbedtls_mpi_shift_l
	bl	_MBEDTLS_MPI_CHK
	ldr	x0, [sp, #8]
	bl	_MOD_ADD
	add	x1, x20, #16
	add	x0, sp, #16
	add	x2, sp, #8
	bl	_mbedtls_mpi_mul_mpi
	bl	_MBEDTLS_MPI_CHK
	ldr	x0, [sp, #16]
	bl	_MOD_MUL
	add	x0, sp, #16
	mov	w1, #1
	bl	_mbedtls_mpi_shift_l
	bl	_MBEDTLS_MPI_CHK
	ldr	x0, [sp, #16]
	bl	_MOD_ADD
	mov	x0, sp
	add	x1, sp, #8
	add	x2, sp, #8
	bl	_mbedtls_mpi_mul_mpi
	bl	_MBEDTLS_MPI_CHK
	ldr	x0, [sp]
	bl	_MOD_MUL
	mov	x0, sp
	mov	w1, #1
	bl	_mbedtls_mpi_shift_l
	bl	_MBEDTLS_MPI_CHK
	ldr	x0, [sp]
	bl	_MOD_ADD
	add	x0, sp, #8
	add	x1, sp, #24
	add	x2, sp, #24
	bl	_mbedtls_mpi_mul_mpi
	bl	_MBEDTLS_MPI_CHK
	ldr	x0, [sp, #8]
	bl	_MOD_MUL
	add	x0, sp, #8
	add	x1, sp, #8
	add	x2, sp, #16
	bl	_mbedtls_mpi_sub_mpi
	bl	_MBEDTLS_MPI_CHK
	ldr	x0, [sp, #8]
	bl	_MOD_SUB
	add	x0, sp, #8
	add	x1, sp, #8
	add	x2, sp, #16
	bl	_mbedtls_mpi_sub_mpi
	bl	_MBEDTLS_MPI_CHK
	ldr	x0, [sp, #8]
	bl	_MOD_SUB
	add	x0, sp, #16
	add	x1, sp, #16
	add	x2, sp, #8
	bl	_mbedtls_mpi_sub_mpi
	bl	_MBEDTLS_MPI_CHK
	ldr	x0, [sp, #16]
	bl	_MOD_SUB
	add	x0, sp, #16
	add	x1, sp, #16
	add	x2, sp, #24
	bl	_mbedtls_mpi_mul_mpi
	bl	_MBEDTLS_MPI_CHK
	ldr	x0, [sp, #16]
	bl	_MOD_MUL
	add	x0, sp, #16
	add	x1, sp, #16
	mov	x2, sp
	bl	_mbedtls_mpi_sub_mpi
	bl	_MBEDTLS_MPI_CHK
	ldr	x0, [sp, #16]
	bl	_MOD_SUB
	mov	x0, sp
	mov	x1, x21
	mov	x2, x20
	bl	_mbedtls_mpi_mul_mpi
	bl	_MBEDTLS_MPI_CHK
	ldr	x0, [sp]
	bl	_MOD_MUL
	mov	x0, sp
	mov	w1, #1
	bl	_mbedtls_mpi_shift_l
	bl	_MBEDTLS_MPI_CHK
	ldr	x0, [sp]
	bl	_MOD_ADD
	add	x0, x19, #16
	add	x1, sp, #8
	bl	_mbedtls_mpi_copy
	bl	_MBEDTLS_MPI_CHK
	add	x0, x19, #8
	add	x1, sp, #16
	bl	_mbedtls_mpi_copy
	bl	_MBEDTLS_MPI_CHK
	mov	x1, sp
	mov	x0, x19
	bl	_mbedtls_mpi_copy
	bl	_MBEDTLS_MPI_CHK
	add	x0, sp, #24
	bl	_mbedtls_mpi_free
	add	x0, sp, #16
	bl	_mbedtls_mpi_free
	add	x0, sp, #8
	bl	_mbedtls_mpi_free
	mov	x0, sp
	bl	_mbedtls_mpi_free
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.cfi_endproc
                                        ; -- End function
	.comm	_dbl_count,4,2                  ; @dbl_count
	.no_dead_strip	_ecp_double_jac
.subsections_via_symbols
