	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function string_to_curve
_string_to_curve:                       ## @string_to_curve
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$32, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -8(%rbp)
	movb	(%rdi), %cl
	testb	%cl, %cl
	je	LBB0_7
## %bb.1:
	incq	%rdi
	xorl	%eax, %eax
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_4 Depth=1
	movb	%cl, -32(%rbp,%rax)
	incq	%rax
	cmpq	$20, %rax
	je	LBB0_12
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	movzbl	(%rdi), %ecx
	incq	%rdi
	testb	%cl, %cl
	je	LBB0_8
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	leal	-48(%rcx), %edx
	cmpb	$10, %dl
	jb	LBB0_2
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	leal	-65(%rcx), %edx
	cmpb	$26, %dl
	jb	LBB0_2
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	leal	-97(%rcx), %edx
	cmpb	$25, %dl
	ja	LBB0_3
	jmp	LBB0_2
LBB0_7:
	xorl	%eax, %eax
LBB0_8:
	movb	$0, -32(%rbp,%rax)
	leaq	L_.str(%rip), %rsi
	leaq	-32(%rbp), %rdi
	callq	_eqstring
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:
	leaq	L_.str.1(%rip), %rsi
	leaq	-32(%rbp), %rdi
	callq	_eqstring
	testq	%rax, %rax
	je	LBB0_15
LBB0_10:
	movq	_BR_EC_secp256r1@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %eax
	jmp	LBB0_13
LBB0_15:
	leaq	L_.str.2(%rip), %rsi
	leaq	-32(%rbp), %rdi
	callq	_eqstring
	testq	%rax, %rax
	jne	LBB0_17
## %bb.16:
	leaq	L_.str.3(%rip), %rsi
	leaq	-32(%rbp), %rdi
	callq	_eqstring
	testq	%rax, %rax
	je	LBB0_18
LBB0_17:
	movq	_BR_EC_secp384r1@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_18:
	leaq	L_.str.4(%rip), %rsi
	leaq	-32(%rbp), %rdi
	callq	_eqstring
	testq	%rax, %rax
	jne	LBB0_20
## %bb.19:
	leaq	L_.str.5(%rip), %rsi
	leaq	-32(%rbp), %rdi
	callq	_eqstring
	testq	%rax, %rax
	je	LBB0_12
LBB0_20:
	movq	_BR_EC_secp521r1@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_12:
	movl	$-1, %eax
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-8(%rbp), %rcx
	jne	LBB0_22
## %bb.14:
	addq	$32, %rsp
	popq	%rbp
	retq
LBB0_22:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"p256"

L_.str.1:                               ## @.str.1
	.asciz	"secp256r1"

	.comm	_BR_EC_secp256r1,4,2            ## @BR_EC_secp256r1
L_.str.2:                               ## @.str.2
	.asciz	"p384"

L_.str.3:                               ## @.str.3
	.asciz	"secp384r1"

	.comm	_BR_EC_secp384r1,4,2            ## @BR_EC_secp384r1
L_.str.4:                               ## @.str.4
	.asciz	"p521"

L_.str.5:                               ## @.str.5
	.asciz	"secp521r1"

	.comm	_BR_EC_secp521r1,4,2            ## @BR_EC_secp521r1
	.no_dead_strip	_string_to_curve
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function string_to_curve
_string_to_curve:                       ; @string_to_curve
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-8]
	ldrb	w11, [x0]
	cbz	w11, LBB0_7
; %bb.1:
	mov	x8, #0
	add	x9, x0, #1
	add	x10, sp, #4
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	strb	w11, [x10, x8]
	add	x11, x8, #1
	mov	x8, x11
	cmp	x11, #20
	b.eq	LBB0_18
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w11, [x9], #1
	cbz	w11, LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	sub	w12, w11, #48
	cmp	w12, #10
	b.lo	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	w12, w11, #65
	cmp	w12, #26
	b.lo	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	w12, w11, #97
	cmp	w12, #25
	b.hi	LBB0_3
	b	LBB0_2
LBB0_7:
	mov	x8, #0
LBB0_8:
	add	x9, sp, #4
	strb	wzr, [x9, x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #4
	bl	_eqstring
	cbnz	x0, LBB0_10
; %bb.9:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #4
	bl	_eqstring
	cbz	x0, LBB0_12
LBB0_10:
Lloh7:
	adrp	x8, _BR_EC_secp256r1@GOTPAGE
Lloh8:
	ldr	x8, [x8, _BR_EC_secp256r1@GOTPAGEOFF]
LBB0_11:
	ldr	w0, [x8]
	b	LBB0_19
LBB0_12:
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x0, sp, #4
	bl	_eqstring
	cbnz	x0, LBB0_14
; %bb.13:
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x0, sp, #4
	bl	_eqstring
	cbz	x0, LBB0_15
LBB0_14:
Lloh13:
	adrp	x8, _BR_EC_secp384r1@GOTPAGE
Lloh14:
	ldr	x8, [x8, _BR_EC_secp384r1@GOTPAGEOFF]
	b	LBB0_11
LBB0_15:
Lloh15:
	adrp	x1, l_.str.4@PAGE
Lloh16:
	add	x1, x1, l_.str.4@PAGEOFF
	add	x0, sp, #4
	bl	_eqstring
	cbnz	x0, LBB0_17
; %bb.16:
Lloh17:
	adrp	x1, l_.str.5@PAGE
Lloh18:
	add	x1, x1, l_.str.5@PAGEOFF
	add	x0, sp, #4
	bl	_eqstring
	cbz	x0, LBB0_18
LBB0_17:
Lloh19:
	adrp	x8, _BR_EC_secp521r1@GOTPAGE
Lloh20:
	ldr	x8, [x8, _BR_EC_secp521r1@GOTPAGEOFF]
	b	LBB0_11
LBB0_18:
	mov	w0, #-1
LBB0_19:
	ldur	x8, [x29, #-8]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_21
; %bb.20:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_21:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"p256"

l_.str.1:                               ; @.str.1
	.asciz	"secp256r1"

	.comm	_BR_EC_secp256r1,4,2            ; @BR_EC_secp256r1
l_.str.2:                               ; @.str.2
	.asciz	"p384"

l_.str.3:                               ; @.str.3
	.asciz	"secp384r1"

	.comm	_BR_EC_secp384r1,4,2            ; @BR_EC_secp384r1
l_.str.4:                               ; @.str.4
	.asciz	"p521"

l_.str.5:                               ; @.str.5
	.asciz	"secp521r1"

	.comm	_BR_EC_secp521r1,4,2            ; @BR_EC_secp521r1
	.no_dead_strip	_string_to_curve
.subsections_via_symbols
