	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ecp_curve
_ecp_curve:                             ## @ecp_curve
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movq	%rbx, %rdi
	callq	_mbedtls_ecp_curve_info_from_name
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:
	movq	_MBEDTLS_ECP_DP_NONE@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_1:
	movq	_MBEDTLS_ECP_DP_SECP256R1@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_3:
	movq	_MBEDTLS_ECP_DP_SECP384R1@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_5:
	movq	_MBEDTLS_ECP_DP_SECP521R1@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"P-256"

	.comm	_MBEDTLS_ECP_DP_SECP256R1,4,2   ## @MBEDTLS_ECP_DP_SECP256R1
L_.str.1:                               ## @.str.1
	.asciz	"P-384"

	.comm	_MBEDTLS_ECP_DP_SECP384R1,4,2   ## @MBEDTLS_ECP_DP_SECP384R1
L_.str.2:                               ## @.str.2
	.asciz	"P-521"

	.comm	_MBEDTLS_ECP_DP_SECP521R1,4,2   ## @MBEDTLS_ECP_DP_SECP521R1
	.comm	_MBEDTLS_ECP_DP_NONE,4,2        ## @MBEDTLS_ECP_DP_NONE
	.no_dead_strip	_ecp_curve
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ecp_curve
_ecp_curve:                             ; @ecp_curve
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_4
; %bb.1:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_strcmp
	cbz	w0, LBB0_5
; %bb.2:
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_strcmp
	cbz	w0, LBB0_6
; %bb.3:
	mov	x0, x19
	bl	_mbedtls_ecp_curve_info_from_name
Lloh6:
	adrp	x8, _MBEDTLS_ECP_DP_NONE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MBEDTLS_ECP_DP_NONE@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x0, eq
	b	LBB0_7
LBB0_4:
Lloh8:
	adrp	x8, _MBEDTLS_ECP_DP_SECP256R1@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MBEDTLS_ECP_DP_SECP256R1@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
Lloh10:
	adrp	x8, _MBEDTLS_ECP_DP_SECP384R1@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MBEDTLS_ECP_DP_SECP384R1@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh12:
	adrp	x8, _MBEDTLS_ECP_DP_SECP521R1@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MBEDTLS_ECP_DP_SECP521R1@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"P-256"

	.comm	_MBEDTLS_ECP_DP_SECP256R1,4,2   ; @MBEDTLS_ECP_DP_SECP256R1
l_.str.1:                               ; @.str.1
	.asciz	"P-384"

	.comm	_MBEDTLS_ECP_DP_SECP384R1,4,2   ; @MBEDTLS_ECP_DP_SECP384R1
l_.str.2:                               ; @.str.2
	.asciz	"P-521"

	.comm	_MBEDTLS_ECP_DP_SECP521R1,4,2   ; @MBEDTLS_ECP_DP_SECP521R1
	.comm	_MBEDTLS_ECP_DP_NONE,4,2        ; @MBEDTLS_ECP_DP_NONE
	.no_dead_strip	_ecp_curve
.subsections_via_symbols
