	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ecp_modp
_ecp_modp:                              ## @ecp_modp
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	cmpq	$0, 8(%rsi)
	je	LBB0_13
## %bb.1:
	cmpq	$0, (%rbx)
	js	LBB0_2
LBB0_3:
	movq	%rbx, %rdi
	callq	_mbedtls_mpi_bitlen
	movl	(%r14), %ecx
	addl	%ecx, %ecx
	cmpl	%ecx, %eax
	jg	LBB0_4
## %bb.5:
	movq	%rbx, %rdi
	callq	*8(%r14)
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	cmpq	$0, (%rbx)
	jns	LBB0_9
## %bb.6:
	leaq	4(%r14), %r15
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_mbedtls_mpi_cmp_int
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_mbedtls_mpi_add_mpi
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	cmpq	$0, (%rbx)
	js	LBB0_7
LBB0_9:
	addq	$4, %r14
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_mbedtls_mpi_cmp_mpi
	testq	%rax, %rax
	js	LBB0_10
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_mbedtls_mpi_sub_abs
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_mbedtls_mpi_cmp_mpi
	movq	%rax, %rcx
                                        ## implicit-def: $eax
	testq	%rcx, %rcx
	jns	LBB0_11
	jmp	LBB0_12
LBB0_13:
	addq	$4, %r14
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mbedtls_mpi_mod_mpi            ## TAILCALL
LBB0_2:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_mbedtls_mpi_cmp_int
	testq	%rax, %rax
	je	LBB0_3
LBB0_4:
	movq	_MBEDTLS_ERR_ECP_BAD_INPUT_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_12
LBB0_10:
                                        ## implicit-def: $eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	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
	.no_dead_strip	_ecp_modp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ecp_modp
_ecp_modp:                              ; @ecp_modp
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x8, [x1, #8]
	cbz	x8, LBB0_9
; %bb.1:
	ldr	x8, [x19]
	tbnz	x8, #63, LBB0_10
LBB0_2:
	mov	x0, x19
	bl	_mbedtls_mpi_bitlen
	ldr	w8, [x20]
	cmp	w0, w8, lsl #1
	b.gt	LBB0_11
; %bb.3:
	ldr	x8, [x20, #8]
	mov	x0, x19
	blr	x8
	bl	_MBEDTLS_MPI_CHK
	ldr	x8, [x19]
	tbz	x8, #63, LBB0_7
; %bb.4:
	add	x21, x20, #4
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	w1, #0
	bl	_mbedtls_mpi_cmp_int
	cbz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	mov	x1, x19
	mov	x2, x21
	bl	_mbedtls_mpi_add_mpi
	bl	_MBEDTLS_MPI_CHK
	ldr	x8, [x19]
	tbnz	x8, #63, LBB0_5
LBB0_7:
	add	x20, x20, #4
	mov	x0, x19
	mov	x1, x20
	bl	_mbedtls_mpi_cmp_mpi
	tbnz	x0, #63, LBB0_12
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x19
	mov	x2, x20
	bl	_mbedtls_mpi_sub_abs
	bl	_MBEDTLS_MPI_CHK
	mov	x0, x19
	mov	x1, x20
	bl	_mbedtls_mpi_cmp_mpi
	mov	x8, x0
                                        ; implicit-def: $w0
	tbz	x8, #63, LBB0_8
	b	LBB0_13
LBB0_9:
	add	x2, x20, #4
	mov	x0, x19
	mov	x1, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_mbedtls_mpi_mod_mpi
LBB0_10:
	mov	x0, x19
	mov	w1, #0
	bl	_mbedtls_mpi_cmp_int
	cbz	x0, LBB0_2
LBB0_11:
Lloh0:
	adrp	x8, _MBEDTLS_ERR_ECP_BAD_INPUT_DATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MBEDTLS_ERR_ECP_BAD_INPUT_DATA@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_13
LBB0_12:
                                        ; implicit-def: $w0
LBB0_13:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	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
	.no_dead_strip	_ecp_modp
.subsections_via_symbols
