	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ecp_randomize_jac
_ecp_randomize_jac:                     ## @ecp_randomize_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r12
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	leal	7(%rax), %ecx
	addl	$14, %eax
	testl	%ecx, %ecx
	cmovnsl	%ecx, %eax
	sarl	$3, %eax
	movslq	%eax, %r13
	leaq	-48(%rbp), %r14
	movq	%r14, %rdi
	callq	_mbedtls_mpi_init
	leaq	-44(%rbp), %rdi
	callq	_mbedtls_mpi_init
	addq	$4, %rbx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	callq	_mbedtls_mpi_fill_random
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_mbedtls_mpi_cmp_mpi
	testq	%rax, %rax
	js	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_mbedtls_mpi_shift_r
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$11, %r15d
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	incl	%r15d
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_mbedtls_mpi_cmp_int
	testq	%rax, %rax
	jle	LBB0_1
## %bb.7:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	leaq	8(%rbx), %rdi
	leaq	-48(%rbp), %r14
	movq	%rdi, %rsi
	movq	%r14, %rdx
	callq	_mbedtls_mpi_mul_mpi
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	movl	8(%rbx), %edi
	callq	_MOD_MUL
	leaq	-44(%rbp), %r15
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r14, %rdx
	callq	_mbedtls_mpi_mul_mpi
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	movl	-44(%rbp), %edi
	callq	_MOD_MUL
	leaq	4(%rbx), %rdi
	movq	%rdi, %rsi
	movq	%r15, %rdx
	callq	_mbedtls_mpi_mul_mpi
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	movl	4(%rbx), %edi
	callq	_MOD_MUL
	movq	%r15, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_mbedtls_mpi_mul_mpi
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	movl	-44(%rbp), %edi
	callq	_MOD_MUL
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_mbedtls_mpi_mul_mpi
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	movl	(%rbx), %edi
	callq	_MOD_MUL
	movq	%r14, %rdi
	callq	_mbedtls_mpi_free
	movq	%r15, %rdi
	callq	_mbedtls_mpi_free
                                        ## implicit-def: $eax
	jmp	LBB0_8
LBB0_5:
	movq	_MBEDTLS_ERR_ECP_RANDOM_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MBEDTLS_ERR_ECP_RANDOM_FAILED,4,2 ## @MBEDTLS_ERR_ECP_RANDOM_FAILED
	.no_dead_strip	_ecp_randomize_jac
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ecp_randomize_jac
_ecp_randomize_jac:                     ; @ecp_randomize_jac
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x3
	mov	x21, x2
	mov	x19, x1
	mov	x22, x0
	ldr	w8, [x22], #4
	add	w9, w8, #7
	add	w8, w8, #14
	cmp	w9, #0
	csel	w8, w8, w9, lt
	sbfx	x23, x8, #3, #29
	add	x0, sp, #12
	bl	_mbedtls_mpi_init
	add	x0, sp, #8
	bl	_mbedtls_mpi_init
	mov	w24, #0
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_2 Depth 2
	add	x0, sp, #12
	mov	x1, x23
	mov	x2, x21
	mov	x3, x20
	bl	_mbedtls_mpi_fill_random
LBB0_2:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	bl	_MBEDTLS_MPI_CHK
	add	x0, sp, #12
	mov	x1, x22
	bl	_mbedtls_mpi_cmp_mpi
	tbnz	x0, #63, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=2
	add	x0, sp, #12
	mov	w1, #1
	bl	_mbedtls_mpi_shift_r
	b	LBB0_2
LBB0_4:                                 ;   in Loop: Header=BB0_1 Depth=1
	cmp	w24, #11
	b.eq	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	add	w24, w24, #1
	add	x0, sp, #12
	mov	w1, #1
	bl	_mbedtls_mpi_cmp_int
	cmp	x0, #1
	b.lt	LBB0_1
; %bb.6:
	add	x0, x19, #8
	add	x2, sp, #12
	mov	x1, x0
	bl	_mbedtls_mpi_mul_mpi
	bl	_MBEDTLS_MPI_CHK
	ldr	w0, [x19, #8]
	bl	_MOD_MUL
	add	x0, sp, #8
	add	x1, sp, #12
	add	x2, sp, #12
	bl	_mbedtls_mpi_mul_mpi
	bl	_MBEDTLS_MPI_CHK
	ldr	w0, [sp, #8]
	bl	_MOD_MUL
	add	x0, x19, #4
	add	x2, sp, #8
	mov	x1, x0
	bl	_mbedtls_mpi_mul_mpi
	bl	_MBEDTLS_MPI_CHK
	ldr	w0, [x19, #4]
	bl	_MOD_MUL
	add	x0, sp, #8
	add	x1, sp, #8
	add	x2, sp, #12
	bl	_mbedtls_mpi_mul_mpi
	bl	_MBEDTLS_MPI_CHK
	ldr	w0, [sp, #8]
	bl	_MOD_MUL
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x19
	bl	_mbedtls_mpi_mul_mpi
	bl	_MBEDTLS_MPI_CHK
	ldr	w0, [x19]
	bl	_MOD_MUL
	add	x0, sp, #12
	bl	_mbedtls_mpi_free
	add	x0, sp, #8
	bl	_mbedtls_mpi_free
                                        ; implicit-def: $w0
	b	LBB0_8
LBB0_7:
Lloh0:
	adrp	x8, _MBEDTLS_ERR_ECP_RANDOM_FAILED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MBEDTLS_ERR_ECP_RANDOM_FAILED@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
LBB0_8:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MBEDTLS_ERR_ECP_RANDOM_FAILED,4,2 ; @MBEDTLS_ERR_ECP_RANDOM_FAILED
	.no_dead_strip	_ecp_randomize_jac
.subsections_via_symbols
