	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_genpkey_main                   ## -- Begin function genpkey_main
	.p2align	4, 0x90
_genpkey_main:                          ## @genpkey_main
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	$0, -56(%rbp)
	movq	$0, -48(%rbp)
	movq	$0, -96(%rbp)
	movq	$0, -72(%rbp)
	movq	_FORMAT_PEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)
	movq	_genpkey_options@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_opt_init
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	leaq	LJTI0_0(%rip), %r13
	leaq	-48(%rbp), %r14
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movl	$0, -76(%rbp)                   ## 4-byte Folded Spill
	xorl	%ebx, %ebx
	jmp	LBB0_2
LBB0_1:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, -76(%rbp)                   ## 4-byte Folded Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_opt_next
                                        ## kill: def $eax killed $eax def $rax
	addl	$-128, %eax
	cmpl	$12, %eax
	ja	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	(%r13,%rax,4), %rax
	addq	%r13, %rax
	jmpq	*%rax
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %r12
	testq	%r12, %r12
	je	LBB0_30
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_opt_arg
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_pkey_ctrl_string
	testl	%eax, %eax
	jg	LBB0_2
	jmp	LBB0_35
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_opt_arg
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	jmp	LBB0_2
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$1, %ebx
	je	LBB0_31
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_opt_arg
	movq	%r14, %rdi
	movq	%rax, %rsi
	movq	%r15, %rdx
	callq	_init_keygen_file
	testl	%eax, %eax
	jne	LBB0_2
	jmp	LBB0_20
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_opt_arg
	movq	_OPT_FMT_PEMDER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	leaq	-60(%rbp), %rdx
	callq	_opt_format
	testl	%eax, %eax
	jne	LBB0_2
	jmp	LBB0_31
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_opt_arg
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	jmp	LBB0_2
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %ebx
	cmpq	$0, -48(%rbp)
	je	LBB0_2
	jmp	LBB0_31
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_opt_arg
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_setup_engine
	movq	%rax, %r15
	jmp	LBB0_2
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_opt_unknown
	movl	%eax, %edi
	leaq	-72(%rbp), %rsi
	callq	_opt_cipher
	testl	%eax, %eax
	je	LBB0_31
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$1, %ebx
	je	LBB0_31
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-72(%rbp), %rdi
	callq	_EVP_CIPHER_mode
	movq	_EVP_CIPH_GCM_MODE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_21
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-72(%rbp), %rdi
	callq	_EVP_CIPHER_mode
	movq	_EVP_CIPH_CCM_MODE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_21
## %bb.17:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-72(%rbp), %rdi
	callq	_EVP_CIPHER_mode
	movq	_EVP_CIPH_XTS_MODE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_21
## %bb.18:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-72(%rbp), %rdi
	callq	_EVP_CIPHER_mode
	movl	$0, %ebx
	movq	_EVP_CIPH_OCB_MODE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_2
	jmp	LBB0_21
LBB0_19:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_opt_arg
	movq	%r14, %rdi
	movq	%rax, %rsi
	movq	%r15, %rdx
	movl	%ebx, %ecx
	callq	_init_gen_str
	testl	%eax, %eax
	jne	LBB0_2
LBB0_20:
	movl	$1, %r14d
	xorl	%r13d, %r13d
	jmp	LBB0_34
LBB0_21:
	movq	_bio_err@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_32
LBB0_22:
	movq	_genpkey_options@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_opt_help
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	jmp	LBB0_34
LBB0_23:
	xorl	%eax, %eax
	callq	_opt_num_rest
	testl	%eax, %eax
	jne	LBB0_31
## %bb.24:
	cmpq	$0, -48(%rbp)
	je	LBB0_31
## %bb.25:
	leaq	-96(%rbp), %rdx
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_app_passwd
	testl	%eax, %eax
	je	LBB0_36
## %bb.26:
	movl	%ebx, %r12d
	xorl	$1, %r12d
	movl	-60(%rbp), %esi
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	movl	%r12d, %edx
	callq	_bio_open_owner
	movl	$1, %r14d
	testq	%rax, %rax
	je	LBB0_37
## %bb.27:
	movq	%rax, %r13
	movq	-48(%rbp), %rdi
	movq	_genpkey_cb@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_EVP_PKEY_CTX_set_cb
	movq	-48(%rbp), %rdi
	movq	_bio_err@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_EVP_PKEY_CTX_set_app_data
	movq	-48(%rbp), %rdi
	leaq	-56(%rbp), %rsi
	testl	%ebx, %ebx
	je	LBB0_38
## %bb.28:
	callq	_EVP_PKEY_paramgen
	testq	%rax, %rax
	jle	LBB0_41
## %bb.29:
	movq	-56(%rbp), %rsi
	movq	%r13, %rdi
	callq	_PEM_write_bio_Parameters
	jmp	LBB0_45
LBB0_30:
	movq	_bio_err@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_BIO_printf
LBB0_31:
	movq	_bio_err@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
LBB0_32:
	xorl	%r13d, %r13d
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_BIO_printf
LBB0_33:
	movl	$1, %r14d
LBB0_34:
	movq	-56(%rbp), %rdi
	callq	_EVP_PKEY_free
	movq	-48(%rbp), %rdi
	callq	_EVP_PKEY_CTX_free
	movq	%r13, %rdi
	callq	_BIO_free_all
	xorl	%edi, %edi
	callq	_BIO_free
	movq	%r15, %rdi
	callq	_release_engine
	movq	-96(%rbp), %rdi
	callq	_OPENSSL_free
	movl	%r14d, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_35:
	movq	_bio_err@GOTPCREL(%rip), %r14
	movl	(%r14), %ebx
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_opt_arg
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %edi
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_BIO_printf
	movl	(%r14), %edi
	callq	_ERR_print_errors
	jmp	LBB0_33
LBB0_36:
	movq	_bio_err@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_BIO_puts
	jmp	LBB0_20
LBB0_37:
	xorl	%r13d, %r13d
	jmp	LBB0_34
LBB0_38:
	callq	_EVP_PKEY_keygen
	testq	%rax, %rax
	jle	LBB0_42
## %bb.39:
	movl	-60(%rbp), %eax
	movq	_FORMAT_PEM@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_43
## %bb.40:
	movl	%r12d, %edi
	callq	_assert
	movq	-56(%rbp), %rsi
	movq	-72(%rbp), %rdx
	movq	-96(%rbp), %rax
	movq	%rax, (%rsp)
	movq	%r13, %rdi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_PEM_write_bio_PrivateKey
	jmp	LBB0_45
LBB0_41:
	movq	_bio_err@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_53
LBB0_42:
	movq	_bio_err@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_53
LBB0_43:
	movq	_FORMAT_ASN1@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_54
## %bb.44:
	movl	%r12d, %edi
	callq	_assert
	movq	-56(%rbp), %rsi
	movq	%r13, %rdi
	callq	_i2d_PrivateKey_bio
LBB0_45:
	testl	%eax, %eax
	jg	LBB0_47
## %bb.46:
	movq	_bio_err@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	leaq	L_.str.8(%rip), %rsi
	callq	_BIO_puts
	movl	(%r14), %edi
	callq	_ERR_print_errors
LBB0_47:
	xorl	%r14d, %r14d
	cmpl	$0, -76(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_34
## %bb.48:
	movq	-56(%rbp), %rsi
	movq	%r13, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	testl	%ebx, %ebx
	je	LBB0_50
## %bb.49:
	callq	_EVP_PKEY_print_params
	jmp	LBB0_51
LBB0_50:
	callq	_EVP_PKEY_print_private
LBB0_51:
	testl	%eax, %eax
	jg	LBB0_34
## %bb.52:
	movq	_bio_err@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	L_.str.9(%rip), %rsi
LBB0_53:
	callq	_BIO_puts
	movl	(%rbx), %edi
	callq	_ERR_print_errors
	jmp	LBB0_34
LBB0_54:
	movq	_bio_err@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.7(%rip), %rsi
	xorl	%eax, %eax
	callq	_BIO_printf
	jmp	LBB0_34
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_1, LBB0_1-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_22, LBB0_22-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_31, LBB0_31-LJTI0_0
.set L0_0_set_23, LBB0_23-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
LJTI0_0:
	.long	L0_0_set_1
	.long	L0_0_set_4
	.long	L0_0_set_6
	.long	L0_0_set_7
	.long	L0_0_set_9
	.long	L0_0_set_10
	.long	L0_0_set_22
	.long	L0_0_set_11
	.long	L0_0_set_31
	.long	L0_0_set_23
	.long	L0_0_set_12
	.long	L0_0_set_13
	.long	L0_0_set_19
	.end_data_region
                                        ## -- End function
	.comm	_FORMAT_PEM,4,2                 ## @FORMAT_PEM
	.comm	_genpkey_options,4,2            ## @genpkey_options
	.comm	_bio_err,4,2                    ## @bio_err
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: Use -help for summary.\n"

	.comm	_OPT_FMT_PEMDER,4,2             ## @OPT_FMT_PEMDER
L_.str.1:                               ## @.str.1
	.asciz	"%s: No keytype specified.\n"

L_.str.2:                               ## @.str.2
	.asciz	"%s: Error setting %s parameter:\n"

	.comm	_EVP_CIPH_GCM_MODE,4,2          ## @EVP_CIPH_GCM_MODE
	.comm	_EVP_CIPH_CCM_MODE,4,2          ## @EVP_CIPH_CCM_MODE
	.comm	_EVP_CIPH_XTS_MODE,4,2          ## @EVP_CIPH_XTS_MODE
	.comm	_EVP_CIPH_OCB_MODE,4,2          ## @EVP_CIPH_OCB_MODE
L_.str.3:                               ## @.str.3
	.asciz	"%s: cipher mode not supported\n"

L_.str.4:                               ## @.str.4
	.asciz	"Error getting password\n"

	.comm	_genpkey_cb,4,2                 ## @genpkey_cb
L_.str.5:                               ## @.str.5
	.asciz	"Error generating parameters\n"

L_.str.6:                               ## @.str.6
	.asciz	"Error generating key\n"

	.comm	_FORMAT_ASN1,4,2                ## @FORMAT_ASN1
L_.str.7:                               ## @.str.7
	.asciz	"Bad format specified for key\n"

L_.str.8:                               ## @.str.8
	.asciz	"Error writing key\n"

L_.str.9:                               ## @.str.9
	.asciz	"Error printing key\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_genpkey_main                   ; -- Begin function genpkey_main
	.p2align	2
_genpkey_main:                          ; @genpkey_main
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	stp	xzr, xzr, [sp, #48]
	str	xzr, [sp, #40]
Lloh0:
	adrp	x8, _FORMAT_PEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FORMAT_PEM@GOTPAGEOFF]
	str	xzr, [sp, #32]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #28]
Lloh3:
	adrp	x8, _genpkey_options@GOTPAGE
Lloh4:
	ldr	x8, [x8, _genpkey_options@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_opt_init
	mov	x21, x0
	mov	x19, #0
	mov	x22, #0
	mov	x23, #0
	mov	w25, #0
	mov	w20, #0
Lloh6:
	adrp	x28, _OPT_FMT_PEMDER@GOTPAGE
Lloh7:
	ldr	x28, [x28, _OPT_FMT_PEMDER@GOTPAGEOFF]
Lloh8:
	adrp	x26, _EVP_CIPH_GCM_MODE@GOTPAGE
Lloh9:
	ldr	x26, [x26, _EVP_CIPH_GCM_MODE@GOTPAGEOFF]
Lloh10:
	adrp	x27, lJTI0_0@PAGE
Lloh11:
	add	x27, x27, lJTI0_0@PAGEOFF
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	w25, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	bl	_opt_next
	sub	w8, w0, #128
	cmp	w8, #12
	b.hi	LBB0_2
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	adr	x9, LBB0_1
	ldrb	w10, [x27, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x24, [sp, #48]
	cbz	x24, LBB0_30
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_opt_arg
	mov	x1, x0
	mov	x0, x24
	bl	_pkey_ctrl_string
	cmp	w0, #0
	b.gt	LBB0_2
	b	LBB0_36
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	bl	_opt_arg
	mov	x23, x0
	b	LBB0_2
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	cmp	w20, #1
	b.eq	LBB0_31
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_opt_arg
	mov	x1, x0
	add	x0, sp, #48
	mov	x2, x19
	bl	_init_keygen_file
	mov	w20, #0
	cbnz	w0, LBB0_2
	b	LBB0_33
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	bl	_opt_arg
	ldr	w1, [x28]
	add	x2, sp, #28
	bl	_opt_format
	cbnz	w0, LBB0_2
	b	LBB0_31
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_opt_arg
	mov	x22, x0
	b	LBB0_2
LBB0_11:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [sp, #48]
	mov	w20, #1
	cbz	x8, LBB0_2
	b	LBB0_31
LBB0_12:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_opt_arg
	mov	w1, #0
	bl	_setup_engine
	mov	x19, x0
	b	LBB0_2
LBB0_13:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_opt_unknown
	add	x1, sp, #32
	bl	_opt_cipher
	cbz	w0, LBB0_31
; %bb.14:                               ;   in Loop: Header=BB0_2 Depth=1
	cmp	w20, #1
	b.eq	LBB0_31
; %bb.15:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [sp, #32]
	bl	_EVP_CIPHER_mode
	ldr	w8, [x26]
	cmp	w0, w8
	b.eq	LBB0_20
; %bb.16:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [sp, #32]
	bl	_EVP_CIPHER_mode
Lloh12:
	adrp	x8, _EVP_CIPH_CCM_MODE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EVP_CIPH_CCM_MODE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_20
; %bb.17:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [sp, #32]
	bl	_EVP_CIPHER_mode
Lloh15:
	adrp	x8, _EVP_CIPH_XTS_MODE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EVP_CIPH_XTS_MODE@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_20
; %bb.18:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [sp, #32]
	bl	_EVP_CIPHER_mode
	mov	w20, #0
Lloh18:
	adrp	x8, _EVP_CIPH_OCB_MODE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EVP_CIPH_OCB_MODE@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_2
	b	LBB0_20
LBB0_19:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_opt_arg
	mov	x1, x0
	add	x0, sp, #48
	mov	x2, x19
	mov	x3, x20
	bl	_init_gen_str
	cbnz	w0, LBB0_2
	b	LBB0_33
LBB0_20:
Lloh21:
	adrp	x8, _bio_err@GOTPAGE
Lloh22:
	ldr	x8, [x8, _bio_err@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	str	x21, [sp]
Lloh24:
	adrp	x1, l_.str.3@PAGE
Lloh25:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_32
LBB0_21:
Lloh26:
	adrp	x8, _genpkey_options@GOTPAGE
Lloh27:
	ldr	x8, [x8, _genpkey_options@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	bl	_opt_help
	mov	x21, #0
LBB0_22:
	mov	w20, #0
	b	LBB0_35
LBB0_23:
	bl	_opt_num_rest
	cbnz	w0, LBB0_31
; %bb.24:
	ldr	x8, [sp, #48]
	cbz	x8, LBB0_31
; %bb.25:
	add	x2, sp, #40
	mov	x0, x23
	mov	x1, #0
	mov	x3, #0
	bl	_app_passwd
	cbz	w0, LBB0_37
; %bb.26:
	eor	w23, w20, #0x1
	ldr	w1, [sp, #28]
	mov	x0, x22
	mov	x2, x23
	bl	_bio_open_owner
	mov	x21, x0
	cbz	x0, LBB0_34
; %bb.27:
	ldr	x0, [sp, #48]
Lloh29:
	adrp	x8, _genpkey_cb@GOTPAGE
Lloh30:
	ldr	x8, [x8, _genpkey_cb@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	bl	_EVP_PKEY_CTX_set_cb
	ldr	x0, [sp, #48]
Lloh32:
	adrp	x22, _bio_err@GOTPAGE
Lloh33:
	ldr	x22, [x22, _bio_err@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_EVP_PKEY_CTX_set_app_data
	ldr	x0, [sp, #48]
	add	x1, sp, #56
	cbz	w20, LBB0_38
; %bb.28:
	bl	_EVP_PKEY_paramgen
	cmp	x0, #0
	b.le	LBB0_41
; %bb.29:
	ldr	x1, [sp, #56]
	mov	x0, x21
	bl	_PEM_write_bio_Parameters
	b	LBB0_46
LBB0_30:
Lloh34:
	adrp	x8, _bio_err@GOTPAGE
Lloh35:
	ldr	x8, [x8, _bio_err@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
	str	x21, [sp]
Lloh37:
	adrp	x1, l_.str.1@PAGE
Lloh38:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_BIO_printf
LBB0_31:
Lloh39:
	adrp	x8, _bio_err@GOTPAGE
Lloh40:
	ldr	x8, [x8, _bio_err@GOTPAGEOFF]
Lloh41:
	ldr	w0, [x8]
	str	x21, [sp]
Lloh42:
	adrp	x1, l_.str@PAGE
Lloh43:
	add	x1, x1, l_.str@PAGEOFF
LBB0_32:
	bl	_BIO_printf
LBB0_33:
	mov	x21, #0
LBB0_34:
	mov	w20, #1
LBB0_35:
	ldr	x0, [sp, #56]
	bl	_EVP_PKEY_free
	ldr	x0, [sp, #48]
	bl	_EVP_PKEY_CTX_free
	mov	x0, x21
	bl	_BIO_free_all
	mov	x0, #0
	bl	_BIO_free
	mov	x0, x19
	bl	_release_engine
	ldr	x0, [sp, #40]
	bl	_OPENSSL_free
	mov	x0, x20
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_36:
Lloh44:
	adrp	x22, _bio_err@GOTPAGE
Lloh45:
	ldr	x22, [x22, _bio_err@GOTPAGEOFF]
	ldr	w20, [x22]
	bl	_opt_arg
	stp	x21, x0, [sp]
Lloh46:
	adrp	x1, l_.str.2@PAGE
Lloh47:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_BIO_printf
	ldr	w0, [x22]
	bl	_ERR_print_errors
	b	LBB0_33
LBB0_37:
Lloh48:
	adrp	x8, _bio_err@GOTPAGE
Lloh49:
	ldr	x8, [x8, _bio_err@GOTPAGEOFF]
Lloh50:
	ldr	w0, [x8]
Lloh51:
	adrp	x1, l_.str.4@PAGE
Lloh52:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_BIO_puts
	b	LBB0_33
LBB0_38:
	bl	_EVP_PKEY_keygen
	cmp	x0, #0
	b.le	LBB0_42
; %bb.39:
	ldr	w8, [sp, #28]
Lloh53:
	adrp	x9, _FORMAT_PEM@GOTPAGE
Lloh54:
	ldr	x9, [x9, _FORMAT_PEM@GOTPAGEOFF]
Lloh55:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_44
; %bb.40:
	mov	x0, x23
	bl	_assert
	ldr	x1, [sp, #56]
	ldp	x2, x6, [sp, #32]
	mov	x0, x21
	mov	x3, #0
	mov	w4, #0
	mov	x5, #0
	bl	_PEM_write_bio_PrivateKey
	b	LBB0_46
LBB0_41:
	ldr	w0, [x22]
Lloh56:
	adrp	x1, l_.str.5@PAGE
Lloh57:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_43
LBB0_42:
	ldr	w0, [x22]
Lloh58:
	adrp	x1, l_.str.6@PAGE
Lloh59:
	add	x1, x1, l_.str.6@PAGEOFF
LBB0_43:
	bl	_BIO_puts
	ldr	w0, [x22]
	bl	_ERR_print_errors
	b	LBB0_34
LBB0_44:
Lloh60:
	adrp	x9, _FORMAT_ASN1@GOTPAGE
Lloh61:
	ldr	x9, [x9, _FORMAT_ASN1@GOTPAGEOFF]
Lloh62:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_54
; %bb.45:
	mov	x0, x23
	bl	_assert
	ldr	x1, [sp, #56]
	mov	x0, x21
	bl	_i2d_PrivateKey_bio
LBB0_46:
	cmp	w0, #0
	b.gt	LBB0_48
; %bb.47:
	ldr	w0, [x22]
Lloh63:
	adrp	x1, l_.str.8@PAGE
Lloh64:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_BIO_puts
	ldr	w0, [x22]
	bl	_ERR_print_errors
LBB0_48:
	cbz	w25, LBB0_22
; %bb.49:
	ldr	x1, [sp, #56]
	mov	x0, x21
	mov	w2, #0
	mov	x3, #0
	cbz	w20, LBB0_51
; %bb.50:
	bl	_EVP_PKEY_print_params
	b	LBB0_52
LBB0_51:
	bl	_EVP_PKEY_print_private
LBB0_52:
	cmp	w0, #0
	b.gt	LBB0_22
; %bb.53:
	ldr	w0, [x22]
Lloh65:
	adrp	x1, l_.str.9@PAGE
Lloh66:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_BIO_puts
	ldr	w0, [x22]
	bl	_ERR_print_errors
	b	LBB0_22
LBB0_54:
	ldr	w0, [x22]
Lloh67:
	adrp	x1, l_.str.7@PAGE
Lloh68:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_BIO_printf
	b	LBB0_34
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpAdd	Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpAdd	Lloh63, Lloh64
	.loh AdrpAdd	Lloh65, Lloh66
	.loh AdrpAdd	Lloh67, Lloh68
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_4-LBB0_1)>>2
	.byte	(LBB0_6-LBB0_1)>>2
	.byte	(LBB0_7-LBB0_1)>>2
	.byte	(LBB0_9-LBB0_1)>>2
	.byte	(LBB0_10-LBB0_1)>>2
	.byte	(LBB0_21-LBB0_1)>>2
	.byte	(LBB0_11-LBB0_1)>>2
	.byte	(LBB0_31-LBB0_1)>>2
	.byte	(LBB0_23-LBB0_1)>>2
	.byte	(LBB0_12-LBB0_1)>>2
	.byte	(LBB0_13-LBB0_1)>>2
	.byte	(LBB0_19-LBB0_1)>>2
                                        ; -- End function
	.comm	_FORMAT_PEM,4,2                 ; @FORMAT_PEM
	.comm	_genpkey_options,4,2            ; @genpkey_options
	.comm	_bio_err,4,2                    ; @bio_err
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: Use -help for summary.\n"

	.comm	_OPT_FMT_PEMDER,4,2             ; @OPT_FMT_PEMDER
l_.str.1:                               ; @.str.1
	.asciz	"%s: No keytype specified.\n"

l_.str.2:                               ; @.str.2
	.asciz	"%s: Error setting %s parameter:\n"

	.comm	_EVP_CIPH_GCM_MODE,4,2          ; @EVP_CIPH_GCM_MODE
	.comm	_EVP_CIPH_CCM_MODE,4,2          ; @EVP_CIPH_CCM_MODE
	.comm	_EVP_CIPH_XTS_MODE,4,2          ; @EVP_CIPH_XTS_MODE
	.comm	_EVP_CIPH_OCB_MODE,4,2          ; @EVP_CIPH_OCB_MODE
l_.str.3:                               ; @.str.3
	.asciz	"%s: cipher mode not supported\n"

l_.str.4:                               ; @.str.4
	.asciz	"Error getting password\n"

	.comm	_genpkey_cb,4,2                 ; @genpkey_cb
l_.str.5:                               ; @.str.5
	.asciz	"Error generating parameters\n"

l_.str.6:                               ; @.str.6
	.asciz	"Error generating key\n"

	.comm	_FORMAT_ASN1,4,2                ; @FORMAT_ASN1
l_.str.7:                               ; @.str.7
	.asciz	"Bad format specified for key\n"

l_.str.8:                               ; @.str.8
	.asciz	"Error writing key\n"

l_.str.9:                               ; @.str.9
	.asciz	"Error printing key\n"

.subsections_via_symbols
