	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dokey                          ## -- Begin function dokey
	.p2align	4, 0x90
_dokey:                                 ## @dokey
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r12d
	movq	_MBEDTLS_ECP_DP_SECP256R1@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	(%rsi), %r14
	movl	$512, %eax                      ## imm = 0x200
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	testq	%r14, %r14
	je	LBB0_11
## %bb.1:
	movq	%rsi, %r13
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movl	$65537, %ecx                    ## imm = 0x10001
	movl	$1, %ebx
	xorl	%eax, %eax
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	cmovel	%eax, %ebx
	movl	%r12d, %ecx
LBB0_3:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rax
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%r13), %r14
	addq	$8, %r13
	testq	%r14, %r14
	je	LBB0_14
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	$45, (%r14)
	jne	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, %r15
	movl	%ecx, %r12d
	movq	%r14, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_9
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	jne	LBB0_2
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	$3, %ecx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%r13), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	addq	$8, %r13
	movl	%r12d, %ecx
	jmp	LBB0_4
LBB0_11:
	movl	$1, %ebx
	movl	$65537, %ecx                    ## imm = 0x10001
	xorl	%eax, %eax
	jmp	LBB0_15
LBB0_12:
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	testl	%r12d, %r12d
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	movl	%ecx, %r14d
	je	LBB0_18
## %bb.13:
	callq	_atoi
	movl	%r14d, %ecx
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	jmp	LBB0_16
LBB0_14:
	xorl	%r15d, %r15d
	movl	-44(%rbp), %r12d                ## 4-byte Reload
LBB0_15:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
LBB0_16:
	leaq	-76(%rbp), %r14
	movq	%r14, %rdi
	movl	%r12d, %esi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	movl	%ebx, %r9d
	callq	_gen_key
	movq	%r14, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%ebx, %edx
	callq	_write_key
	movq	%r14, %rdi
	callq	_mbedtls_pk_free
LBB0_17:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	callq	_ecp_curve
	movq	_MBEDTLS_ECP_DP_NONE@GOTPCREL(%rip), %rcx
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	cmpq	(%rcx), %rax
	movl	%r14d, %ecx
	movl	$0, %r15d
	jne	LBB0_16
## %bb.19:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r13), %rdx
	leaq	L_.str.3(%rip), %rsi
	callq	_fprintf
	movl	$1, %r15d
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_MBEDTLS_ECP_DP_SECP256R1,8,3   ## @MBEDTLS_ECP_DP_SECP256R1
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"-out"

L_.str.1:                               ## @.str.1
	.asciz	"-3"

L_.str.2:                               ## @.str.2
	.asciz	"-der"

	.comm	_MBEDTLS_ECP_DP_NONE,8,3        ## @MBEDTLS_ECP_DP_NONE
	.comm	_stderr,4,2                     ## @stderr
L_.str.3:                               ## @.str.3
	.asciz	"error: invalid curve name: %s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dokey                          ; -- Begin function dokey
	.p2align	2
_dokey:                                 ; @dokey
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	mov	w20, #65537
Lloh0:
	adrp	x8, _MBEDTLS_ECP_DP_SECP256R1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MBEDTLS_ECP_DP_SECP256R1@GOTPAGEOFF]
Lloh2:
	ldr	x23, [x8]
	ldr	x28, [x1]
	cbz	x28, LBB0_10
; %bb.1:
	mov	x24, x1
	mov	x22, #0
	mov	w21, #1
Lloh3:
	adrp	x25, l_.str@PAGE
Lloh4:
	add	x25, x25, l_.str@PAGEOFF
Lloh5:
	adrp	x26, l_.str.1@PAGE
Lloh6:
	add	x26, x26, l_.str.1@PAGEOFF
Lloh7:
	adrp	x27, l_.str.2@PAGE
Lloh8:
	add	x27, x27, l_.str.2@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x28
	mov	x1, x27
	bl	_strcmp
	cmp	w0, #0
	csel	w21, wzr, w21, eq
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x28, [x24, #8]!
	cbz	x28, LBB0_16
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x28]
	cmp	w8, #45
	b.ne	LBB0_11
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x28
	mov	x1, x25
	bl	_strcmp
	cbz	w0, LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x28
	mov	x1, x26
	bl	_strcmp
	cbnz	w0, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w20, #3
	b	LBB0_3
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x9, x24
	ldr	x8, [x9, #8]!
	cbz	x8, LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x24, x9
	mov	x22, x8
	b	LBB0_3
LBB0_10:
	mov	x22, #0
	mov	w2, #512
	mov	w21, #1
	b	LBB0_17
LBB0_11:
	mov	x0, x28
	cbz	w19, LBB0_13
; %bb.12:
	bl	_atoi
	mov	x2, x0
	b	LBB0_17
LBB0_13:
	bl	_ecp_curve
Lloh9:
	adrp	x8, _MBEDTLS_ECP_DP_NONE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MBEDTLS_ECP_DP_NONE@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_15
; %bb.14:
Lloh12:
	adrp	x8, _stderr@GOTPAGE
Lloh13:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ldr	x2, [x24]
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_fprintf
	mov	w0, #1
	b	LBB0_18
LBB0_15:
	mov	x23, x0
LBB0_16:
	mov	w2, #512
LBB0_17:
	add	x0, sp, #12
	mov	x1, x19
                                        ; kill: def $w2 killed $w2 killed $x2
	mov	x3, x20
	mov	x4, x23
	mov	x5, x21
	bl	_gen_key
	add	x0, sp, #12
	mov	x1, x22
	mov	x2, x21
	bl	_write_key
	add	x0, sp, #12
	bl	_mbedtls_pk_free
	mov	w0, #0
LBB0_18:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_MBEDTLS_ECP_DP_SECP256R1,8,3   ; @MBEDTLS_ECP_DP_SECP256R1
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"-out"

l_.str.1:                               ; @.str.1
	.asciz	"-3"

l_.str.2:                               ; @.str.2
	.asciz	"-der"

	.comm	_MBEDTLS_ECP_DP_NONE,8,3        ; @MBEDTLS_ECP_DP_NONE
	.comm	_stderr,4,2                     ; @stderr
l_.str.3:                               ; @.str.3
	.asciz	"error: invalid curve name: %s\n"

.subsections_via_symbols
