	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pkcs8_main                     ## -- Begin function pkcs8_main
	.p2align	4, 0x90
_pkcs8_main:                            ## @pkcs8_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	$152, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, %ebx
	movq	%rsp, -64(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	$0, -128(%rbp)
	movq	_APP_PASS_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rax, -184(%rbp)                ## 8-byte Spill
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -192(%rbp)                ## 8-byte Spill
	movq	$0, -176(%rbp)
	movq	$0, -168(%rbp)
	movq	_PKCS12_DEFAULT_ITER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -116(%rbp)
	movq	_FORMAT_PEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -112(%rbp)
	movl	%eax, -108(%rbp)
	movq	$0, -160(%rbp)
	movq	$0, -152(%rbp)
	movq	$0, -144(%rbp)
	movq	_pkcs8_options@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %edi
	movq	%r14, %rsi
	callq	_opt_init
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movl	$-1, %r13d
	leaq	LJTI0_0(%rip), %r14
	xorl	%eax, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	movl	$0, -72(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -80(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -132(%rbp)                  ## 4-byte Folded Spill
	jmp	LBB0_4
LBB0_1:                                 ##   in Loop: Header=BB0_4 Depth=1
	xorl	%eax, %eax
	callq	_opt_arg
	movq	_OPT_FMT_PEMDER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	leaq	-112(%rbp), %rdx
LBB0_2:                                 ##   in Loop: Header=BB0_4 Depth=1
	callq	_opt_format
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	testl	%eax, %eax
	je	LBB0_47
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_opt_next
                                        ## kill: def $eax killed $eax def $rax
	addl	$-128, %eax
	cmpl	$22, %eax
	ja	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movslq	(%r14,%rax,4), %rax
	addq	%r14, %rax
	jmpq	*%rax
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	xorl	%eax, %eax
	callq	_opt_arg
	movq	%rax, %rdi
	callq	_OBJ_txt2nid
	movl	%eax, %r13d
	movq	_EVP_PBE_TYPE_PRF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r13d, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_EVP_PBE_find
	testl	%eax, %eax
	je	LBB0_44
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$0, -128(%rbp)
	jne	LBB0_4
	jmp	LBB0_19
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	xorl	%eax, %eax
	callq	_opt_arg
	movq	%rax, %rdi
	leaq	-128(%rbp), %rsi
	callq	_opt_cipher
	jmp	LBB0_3
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	xorl	%eax, %eax
	callq	_opt_arg
	movq	%rax, %rdi
	callq	_OBJ_txt2nid
	movl	%eax, %r13d
	movq	_NID_undef@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jne	LBB0_4
	jmp	LBB0_45
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	$1, -132(%rbp)                  ## 4-byte Folded Spill
	jmp	LBB0_4
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	$1, -80(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_4
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	xorl	%eax, %eax
	callq	_opt_arg
	movq	%rax, %rdi
	leaq	-152(%rbp), %rsi
	callq	_opt_long
	testl	%eax, %eax
	je	LBB0_47
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$0, -152(%rbp)
	jg	LBB0_4
	jmp	LBB0_47
LBB0_14:                                ##   in Loop: Header=BB0_4 Depth=1
	xorl	%eax, %eax
	callq	_opt_arg
	movq	%rax, %rdi
	leaq	-144(%rbp), %rsi
	callq	_opt_long
	testl	%eax, %eax
	je	LBB0_47
## %bb.15:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$0, -144(%rbp)
	jg	LBB0_4
	jmp	LBB0_47
LBB0_16:                                ##   in Loop: Header=BB0_4 Depth=1
	xorl	%eax, %eax
	callq	_opt_arg
	movq	%rax, %rdi
	leaq	-160(%rbp), %rsi
	callq	_opt_long
	testl	%eax, %eax
	je	LBB0_47
## %bb.17:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$0, -160(%rbp)
	jg	LBB0_4
	jmp	LBB0_47
LBB0_18:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	$16384, -160(%rbp)              ## imm = 0x4000
	movq	$8, -152(%rbp)
	movq	$1, -144(%rbp)
	cmpq	$0, -128(%rbp)
	jne	LBB0_4
LBB0_19:                                ##   in Loop: Header=BB0_4 Depth=1
	xorl	%eax, %eax
	callq	_EVP_aes_256_cbc
	movq	%rax, -128(%rbp)
	jmp	LBB0_4
LBB0_20:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	$137, %edi
	callq	_opt_rand
	testl	%eax, %eax
	jne	LBB0_4
	jmp	LBB0_53
LBB0_21:                                ##   in Loop: Header=BB0_4 Depth=1
	xorl	%eax, %eax
	callq	_opt_arg
	movq	%rax, %rbx
	jmp	LBB0_4
LBB0_22:                                ##   in Loop: Header=BB0_4 Depth=1
	xorl	%eax, %eax
	callq	_opt_arg
	movq	%rax, %r12
	jmp	LBB0_4
LBB0_23:                                ##   in Loop: Header=BB0_4 Depth=1
	xorl	%eax, %eax
	callq	_opt_arg
	movq	_OPT_FMT_PEMDER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	leaq	-108(%rbp), %rdx
	jmp	LBB0_2
LBB0_24:                                ##   in Loop: Header=BB0_4 Depth=1
	xorl	%eax, %eax
	callq	_opt_arg
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
LBB0_25:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	$1, -116(%rbp)
	jmp	LBB0_4
LBB0_26:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	$1, -72(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_4
LBB0_27:                                ##   in Loop: Header=BB0_4 Depth=1
	xorl	%eax, %eax
	callq	_opt_arg
	movq	%rax, %rdi
	leaq	-116(%rbp), %rsi
	callq	_opt_int
	jmp	LBB0_3
LBB0_28:                                ##   in Loop: Header=BB0_4 Depth=1
	xorl	%eax, %eax
	callq	_opt_arg
	movq	%rax, %r15
	jmp	LBB0_4
LBB0_29:                                ##   in Loop: Header=BB0_4 Depth=1
	xorl	%eax, %eax
	callq	_opt_arg
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_setup_engine
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
LBB0_30:
	movq	_pkcs8_options@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_opt_help
	xorl	%eax, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	xorl	%r12d, %r12d
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_50
LBB0_31:
	xorl	%eax, %eax
	callq	_opt_num_rest
	testl	%eax, %eax
	jne	LBB0_47
## %bb.32:
	leaq	-176(%rbp), %rdx
	leaq	-168(%rbp), %rcx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_app_passwd
	testl	%eax, %eax
	je	LBB0_54
## %bb.33:
	cmpl	$-1, %r13d
	jne	LBB0_36
## %bb.34:
	cmpq	$0, -128(%rbp)
	jne	LBB0_36
## %bb.35:
	xorl	%eax, %eax
	callq	_EVP_aes_256_cbc
	movq	%rax, -128(%rbp)
LBB0_36:
	movl	-112(%rbp), %edx
	movq	%r15, %rbx
	movq	%r15, %rdi
	movl	$114, %esi
	callq	_bio_open_default
	testq	%rax, %rax
	je	LBB0_55
## %bb.37:
	movq	%rax, %r14
	movl	-108(%rbp), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	$1, %edx
	callq	_bio_open_owner
	testq	%rax, %rax
	je	LBB0_56
## %bb.38:
	movq	%rax, %r12
	cmpl	$0, -80(%rbp)                   ## 4-byte Folded Reload
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_57
## %bb.39:
	movl	-112(%rbp), %esi
	movq	-176(%rbp), %rcx
	leaq	L_.str.4(%rip), %r9
	movq	%rbx, %rdi
	movl	$1, %edx
	movq	%r15, %r8
	callq	_load_key
	testq	%rax, %rax
	je	LBB0_60
## %bb.40:
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_EVP_PKEY2PKCS8
	testq	%rax, %rax
	je	LBB0_61
## %bb.41:
	cmpl	$0, -72(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_67
## %bb.42:
	movq	%rax, %rbx
	movl	$1, %edi
	callq	_assert
	movl	-108(%rbp), %eax
	movq	_FORMAT_PEM@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	jne	LBB0_72
## %bb.43:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_PEM_write_bio_PKCS8_PRIV_KEY_INFO
	jmp	LBB0_74
LBB0_44:
	leaq	L_.str.2(%rip), %r14
	jmp	LBB0_46
LBB0_45:
	leaq	L_.str.1(%rip), %r14
LBB0_46:
	movq	_bio_err@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_opt_arg
	movl	%ebx, %edi
	movq	%r14, %rsi
	movq	-104(%rbp), %rdx                ## 8-byte Reload
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_BIO_printf
LBB0_47:
	movq	_bio_err@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	-104(%rbp), %rdx                ## 8-byte Reload
	xorl	%eax, %eax
	callq	_BIO_printf
LBB0_48:
	movl	$1, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
LBB0_49:
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	xorl	%r12d, %r12d
	xorl	%r14d, %r14d
LBB0_50:
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	-88(%rbp), %r15                 ## 8-byte Reload
LBB0_51:
	callq	_X509_SIG_free
	movq	%rbx, %rdi
	callq	_PKCS8_PRIV_KEY_INFO_free
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_EVP_PKEY_free
	movq	%r15, %rdi
	callq	_release_engine
	movq	%r12, %rdi
	callq	_BIO_free_all
	movq	%r14, %rdi
	callq	_BIO_free
	movq	-176(%rbp), %rdi
	callq	_OPENSSL_free
	movq	-168(%rbp), %rdi
	callq	_OPENSSL_free
	movq	%r13, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_119
## %bb.52:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
                                        ## kill: def $eax killed $eax killed $rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_53:
	movl	$1, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	xorl	%r12d, %r12d
	xorl	%r14d, %r14d
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	xorl	%eax, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_51
LBB0_54:
	movq	_bio_err@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_BIO_printf
	jmp	LBB0_48
LBB0_55:
	movl	$1, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_49
LBB0_56:
	movl	$1, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	xorl	%r12d, %r12d
	jmp	LBB0_50
LBB0_57:
	movl	-112(%rbp), %eax
	movq	_FORMAT_PEM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	$0, -72(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_63
## %bb.58:
	cmpl	%ecx, %eax
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	jne	LBB0_65
## %bb.59:
	movl	$1, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, -104(%rbp)                ## 8-byte Spill
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_PEM_read_bio_PKCS8_PRIV_KEY_INFO
	jmp	LBB0_80
LBB0_60:
	movl	$1, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	jmp	LBB0_62
LBB0_61:
	movl	$1, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_bio_err@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	leaq	L_.str.5(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_BIO_printf
	movl	(%r13), %edi
	callq	_ERR_print_errors
LBB0_62:
	xorl	%edi, %edi
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_51
LBB0_63:
	cmpl	%ecx, %eax
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	jne	LBB0_75
## %bb.64:
	movl	$1, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_PEM_read_bio_PKCS8
	jmp	LBB0_77
LBB0_65:
	movl	$1, %ecx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	_FORMAT_ASN1@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_85
## %bb.66:
	xorl	%eax, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, -104(%rbp)                ## 8-byte Spill
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_d2i_PKCS8_PRIV_KEY_INFO_bio
	jmp	LBB0_80
LBB0_67:
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	-128(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_92
## %bb.68:
	movq	-160(%rbp), %r8
	testq	%r8, %r8
	je	LBB0_93
## %bb.69:
	movq	-152(%rbp), %r9
	testq	%r9, %r9
	je	LBB0_93
## %bb.70:
	movq	-144(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_93
## %bb.71:
	subq	$8, %rsp
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	pushq	%rax
	callq	_PKCS5_pbe2_set_scrypt
	addq	$16, %rsp
	jmp	LBB0_94
LBB0_72:
	movq	_FORMAT_ASN1@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_91
## %bb.73:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_i2d_PKCS8_PRIV_KEY_INFO_bio
LBB0_74:
	xorl	%edi, %edi
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_51
LBB0_75:
	movl	$1, %ecx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	_FORMAT_ASN1@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_85
## %bb.76:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_d2i_PKCS8_bio
LBB0_77:
	movq	%r14, -104(%rbp)                ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_90
## %bb.78:
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	-176(%rbp), %r14
	testq	%r14, %r14
	je	LBB0_100
LBB0_79:
	movq	%r14, %rdi
	callq	_strlen
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_PKCS8_decrypt
LBB0_80:
	testq	%rax, %rax
	je	LBB0_86
## %bb.81:
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_EVP_PKCS82PKEY
	testq	%rax, %rax
	je	LBB0_87
## %bb.82:
	movq	%rax, %rbx
	movl	$1, %edi
	callq	_assert
	movl	-108(%rbp), %eax
	movq	_FORMAT_PEM@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	jne	LBB0_88
## %bb.83:
	movq	-168(%rbp), %rax
	cmpl	$0, -132(%rbp)                  ## 4-byte Folded Reload
	je	LBB0_106
## %bb.84:
	subq	$8, %rsp
	xorl	%ecx, %ecx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	%rax
	callq	_PEM_write_bio_PrivateKey_traditional
	jmp	LBB0_107
LBB0_85:
	movq	_bio_err@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	xorl	%eax, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_BIO_printf
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	jmp	LBB0_51
LBB0_86:
	movq	_bio_err@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	leaq	L_.str.13(%rip), %rsi
	xorl	%eax, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_BIO_printf
	movl	(%r14), %edi
	callq	_ERR_print_errors
	xorl	%ebx, %ebx
	movq	-104(%rbp), %r14                ## 8-byte Reload
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_110
LBB0_87:
	movq	_bio_err@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leaq	L_.str.5(%rip), %rsi
	xorl	%eax, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_BIO_printf
	movl	(%r15), %edi
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	callq	_ERR_print_errors
	jmp	LBB0_108
LBB0_88:
	movq	_FORMAT_ASN1@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_102
## %bb.89:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_i2d_PrivateKey_bio
	xorl	%eax, %eax
	jmp	LBB0_103
LBB0_90:
	movq	_bio_err@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	L_.str.10(%rip), %rsi
	xorl	%eax, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_BIO_printf
	movl	(%rbx), %edi
	callq	_ERR_print_errors
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	movq	-104(%rbp), %r14                ## 8-byte Reload
	jmp	LBB0_51
LBB0_91:
	movq	_bio_err@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	xorl	%eax, %eax
	callq	_BIO_printf
	xorl	%edi, %edi
	movl	$1, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_51
LBB0_92:
	movl	-116(%rbp), %esi
	movl	%r13d, %edi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_PKCS5_pbe_set
	jmp	LBB0_94
LBB0_93:
	movl	-116(%rbp), %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	movl	%r13d, %r9d
	callq	_PKCS5_pbe2_set_iv
LBB0_94:
	movq	%rax, %r15
	movl	$1, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	testq	%r15, %r15
	je	LBB0_99
## %bb.95:
	movq	-168(%rbp), %rbx
	testq	%rbx, %rbx
	je	LBB0_104
LBB0_96:
	movq	%rbx, %rdi
	callq	_strlen
	movq	%rbx, %rdi
	movl	%eax, %esi
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	movq	%r15, %rcx
	callq	_PKCS8_set0_pbe
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_111
## %bb.97:
	movl	$1, %edi
	callq	_assert
	movl	-108(%rbp), %eax
	movq	_FORMAT_PEM@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_113
## %bb.98:
	movq	%r12, %rdi
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_PEM_write_bio_PKCS8
	jmp	LBB0_115
LBB0_99:
	movq	_bio_err@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leaq	L_.str.7(%rip), %rsi
	jmp	LBB0_112
LBB0_100:
	leaq	L_.str.11(%rip), %rdx
	movq	-192(%rbp), %r14                ## 8-byte Reload
	movq	%r14, %rdi
	movq	-184(%rbp), %rsi                ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	xorl	%ecx, %ecx
	callq	_EVP_read_pw_string
	testq	%rax, %rax
	je	LBB0_79
## %bb.101:
	movq	_bio_err@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.12(%rip), %rsi
	xorl	%eax, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_BIO_printf
	xorl	%ebx, %ebx
	movq	-104(%rbp), %r14                ## 8-byte Reload
	jmp	LBB0_110
LBB0_102:
	movq	_bio_err@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	xorl	%eax, %eax
	callq	_BIO_printf
	movl	$1, %eax
LBB0_103:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_108
LBB0_104:
	leaq	L_.str.8(%rip), %rdx
	movq	-192(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	movq	-184(%rbp), %rsi                ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movl	$1, %ecx
	callq	_EVP_read_pw_string
	testq	%rax, %rax
	je	LBB0_96
## %bb.105:
	movq	%r15, %rdi
	callq	_X509_ALGOR_free
	xorl	%edi, %edi
	movl	$1, %eax
	jmp	LBB0_116
LBB0_106:
	subq	$8, %rsp
	xorl	%ecx, %ecx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	%rax
	callq	_PEM_write_bio_PrivateKey
LBB0_107:
	addq	$16, %rsp
LBB0_108:
	movq	-104(%rbp), %r14                ## 8-byte Reload
LBB0_109:
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
LBB0_110:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_51
LBB0_111:
	movq	%r15, %rdi
	callq	_X509_ALGOR_free
	movq	_bio_err@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leaq	L_.str.9(%rip), %rsi
LBB0_112:
	xorl	%eax, %eax
	callq	_BIO_printf
	movl	(%r15), %edi
	callq	_ERR_print_errors
	xorl	%edi, %edi
	jmp	LBB0_117
LBB0_113:
	movq	_FORMAT_ASN1@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_118
## %bb.114:
	movq	%r12, %rdi
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_i2d_PKCS8_bio
LBB0_115:
	movq	%rbx, %rdi
	xorl	%eax, %eax
LBB0_116:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
LBB0_117:
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_51
LBB0_118:
	movq	_bio_err@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	xorl	%eax, %eax
	callq	_BIO_printf
	movl	$1, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_109
LBB0_119:
	callq	___stack_chk_fail
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_22, LBB0_22-LJTI0_0
.set L0_0_set_23, LBB0_23-LJTI0_0
.set L0_0_set_24, LBB0_24-LJTI0_0
.set L0_0_set_25, LBB0_25-LJTI0_0
.set L0_0_set_26, LBB0_26-LJTI0_0
.set L0_0_set_27, LBB0_27-LJTI0_0
.set L0_0_set_1, LBB0_1-LJTI0_0
.set L0_0_set_28, LBB0_28-LJTI0_0
.set L0_0_set_30, LBB0_30-LJTI0_0
.set L0_0_set_47, LBB0_47-LJTI0_0
.set L0_0_set_31, LBB0_31-LJTI0_0
.set L0_0_set_29, LBB0_29-LJTI0_0
LJTI0_0:
	.long	L0_0_set_6
	.long	L0_0_set_8
	.long	L0_0_set_9
	.long	L0_0_set_10
	.long	L0_0_set_11
	.long	L0_0_set_12
	.long	L0_0_set_14
	.long	L0_0_set_16
	.long	L0_0_set_18
	.long	L0_0_set_20
	.long	L0_0_set_21
	.long	L0_0_set_22
	.long	L0_0_set_23
	.long	L0_0_set_24
	.long	L0_0_set_25
	.long	L0_0_set_26
	.long	L0_0_set_27
	.long	L0_0_set_1
	.long	L0_0_set_28
	.long	L0_0_set_30
	.long	L0_0_set_47
	.long	L0_0_set_31
	.long	L0_0_set_29
	.end_data_region
                                        ## -- End function
	.comm	_APP_PASS_LEN,4,2               ## @APP_PASS_LEN
	.comm	_PKCS12_DEFAULT_ITER,4,2        ## @PKCS12_DEFAULT_ITER
	.comm	_FORMAT_PEM,4,2                 ## @FORMAT_PEM
	.comm	_pkcs8_options,4,2              ## @pkcs8_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
	.comm	_NID_undef,4,2                  ## @NID_undef
L_.str.1:                               ## @.str.1
	.asciz	"%s: Unknown PBE algorithm %s\n"

	.comm	_EVP_PBE_TYPE_PRF,4,2           ## @EVP_PBE_TYPE_PRF
L_.str.2:                               ## @.str.2
	.asciz	"%s: Unknown PRF algorithm %s\n"

L_.str.3:                               ## @.str.3
	.asciz	"Error getting passwords\n"

L_.str.4:                               ## @.str.4
	.asciz	"key"

L_.str.5:                               ## @.str.5
	.asciz	"Error converting key\n"

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

L_.str.7:                               ## @.str.7
	.asciz	"Error setting PBE algorithm\n"

L_.str.8:                               ## @.str.8
	.asciz	"Enter Encryption Password:"

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

L_.str.10:                              ## @.str.10
	.asciz	"Error reading key\n"

L_.str.11:                              ## @.str.11
	.asciz	"Enter Password:"

L_.str.12:                              ## @.str.12
	.asciz	"Can't read Password\n"

L_.str.13:                              ## @.str.13
	.asciz	"Error decrypting key\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pkcs8_main                     ; -- Begin function pkcs8_main
	.p2align	2
_pkcs8_main:                            ; @pkcs8_main
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #112
	mov	x8, sp
	stur	x8, [x29, #-168]                ; 8-byte Folded Spill
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	stur	xzr, [x29, #-96]
Lloh3:
	adrp	x8, _APP_PASS_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _APP_PASS_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w12, [x8]
	mov	x9, x12
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x12, #15
	and	x9, x9, #0x1fffffff0
	sub	x8, x8, x9
	stp	x12, x8, [x29, #-192]           ; 16-byte Folded Spill
	mov	sp, x8
	stp	xzr, xzr, [x29, #-112]
Lloh8:
	adrp	x8, _PKCS12_DEFAULT_ITER@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PKCS12_DEFAULT_ITER@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	stur	w8, [x29, #-116]
Lloh11:
	adrp	x8, _FORMAT_PEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _FORMAT_PEM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	stp	w8, w8, [x29, #-124]
	stp	xzr, xzr, [x29, #-144]
	stur	xzr, [x29, #-152]
Lloh14:
	adrp	x8, _pkcs8_options@GOTPAGE
Lloh15:
	ldr	x8, [x8, _pkcs8_options@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	bl	_opt_init
	stur	x0, [x29, #-176]                ; 8-byte Folded Spill
	mov	x23, #0
	mov	x24, #0
	mov	x21, #0
	mov	x25, #0
	mov	x27, #0
	stur	xzr, [x29, #-160]               ; 8-byte Folded Spill
	mov	w19, #0
Lloh17:
	adrp	x20, lJTI0_0@PAGE
Lloh18:
	add	x20, x20, lJTI0_0@PAGEOFF
	mov	w26, #-1
	mov	w22, #1
Lloh19:
	adrp	x28, _OPT_FMT_PEMDER@GOTPAGE
Lloh20:
	ldr	x28, [x28, _OPT_FMT_PEMDER@GOTPAGEOFF]
	b	LBB0_4
LBB0_1:                                 ;   in Loop: Header=BB0_4 Depth=1
	bl	_opt_arg
	sub	x1, x29, #136
	bl	_opt_long
	cbz	w0, LBB0_47
; %bb.2:                                ;   in Loop: Header=BB0_4 Depth=1
	ldur	x8, [x29, #-136]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	x8, #1
	b.lt	LBB0_47
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	bl	_opt_next
	sub	w8, w0, #128
	cmp	w8, #22
	b.hi	LBB0_4
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	adr	x9, LBB0_1
	ldrb	w10, [x20, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	bl	_opt_arg
	bl	_OBJ_txt2nid
	mov	x26, x0
Lloh21:
	adrp	x8, _EVP_PBE_TYPE_PRF@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EVP_PBE_TYPE_PRF@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	mov	x1, x26
	mov	x2, #0
	mov	x3, #0
	mov	w4, #0
	bl	_EVP_PBE_find
	cbz	w0, LBB0_44
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldur	x8, [x29, #-96]
	cbnz	x8, LBB0_4
	b	LBB0_17
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	bl	_opt_arg
	sub	x1, x29, #96
	bl	_opt_cipher
	cbnz	w0, LBB0_4
	b	LBB0_47
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	bl	_opt_arg
	bl	_OBJ_txt2nid
	mov	x26, x0
Lloh24:
	adrp	x8, _NID_undef@GOTPAGE
Lloh25:
	ldr	x8, [x8, _NID_undef@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_4
	b	LBB0_45
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w8, #1
	stur	w8, [x29, #-160]                ; 4-byte Folded Spill
	b	LBB0_4
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w19, #1
	b	LBB0_4
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_opt_arg
	sub	x1, x29, #144
	bl	_opt_long
	cbz	w0, LBB0_47
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	ldur	x8, [x29, #-144]
	b	LBB0_3
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_opt_arg
	sub	x1, x29, #152
	bl	_opt_long
	cbz	w0, LBB0_47
; %bb.15:                               ;   in Loop: Header=BB0_4 Depth=1
	ldur	x8, [x29, #-152]
	b	LBB0_3
LBB0_16:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w9, #16384
	mov	w8, #8
	stp	x8, x9, [x29, #-144]
	stur	x22, [x29, #-152]
	ldur	x8, [x29, #-96]
	cbnz	x8, LBB0_4
LBB0_17:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_EVP_aes_256_cbc
	stur	x0, [x29, #-96]
	b	LBB0_4
LBB0_18:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #137
	bl	_opt_rand
	cbnz	w0, LBB0_4
	b	LBB0_48
LBB0_19:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_opt_arg
	mov	x27, x0
	b	LBB0_4
LBB0_20:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_opt_arg
	mov	x25, x0
	b	LBB0_4
LBB0_21:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_opt_arg
	ldr	w1, [x28]
	sub	x2, x29, #124
	b	LBB0_27
LBB0_22:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_opt_arg
	mov	x21, x0
	b	LBB0_4
LBB0_23:                                ;   in Loop: Header=BB0_4 Depth=1
	stur	w22, [x29, #-116]
	b	LBB0_4
LBB0_24:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w8, #1
	stur	w8, [x29, #-156]                ; 4-byte Folded Spill
	b	LBB0_4
LBB0_25:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_opt_arg
	sub	x1, x29, #116
	bl	_opt_int
	cbnz	w0, LBB0_4
	b	LBB0_47
LBB0_26:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_opt_arg
	ldr	w1, [x28]
	sub	x2, x29, #120
LBB0_27:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_opt_format
	cbnz	w0, LBB0_4
	b	LBB0_47
LBB0_28:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_opt_arg
	mov	x24, x0
	b	LBB0_4
LBB0_29:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_opt_arg
	mov	w1, #0
	bl	_setup_engine
	mov	x23, x0
	b	LBB0_4
LBB0_30:
Lloh27:
	adrp	x8, _pkcs8_options@GOTPAGE
Lloh28:
	ldr	x8, [x8, _pkcs8_options@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	bl	_opt_help
	mov	x25, #0
	mov	x24, #0
	mov	x26, #0
	mov	x21, #0
	mov	x20, #0
	mov	w27, #0
	b	LBB0_50
LBB0_31:
	bl	_opt_num_rest
	cbnz	w0, LBB0_47
; %bb.32:
	sub	x2, x29, #104
	sub	x3, x29, #112
	mov	x0, x25
	mov	x1, x27
	bl	_app_passwd
	cbz	w0, LBB0_53
; %bb.33:
	cmn	w26, #1
	b.ne	LBB0_36
; %bb.34:
	ldur	x8, [x29, #-96]
	cbnz	x8, LBB0_36
; %bb.35:
	bl	_EVP_aes_256_cbc
	stur	x0, [x29, #-96]
LBB0_36:
	ldur	w2, [x29, #-120]
	mov	x0, x24
	mov	w1, #114
	bl	_bio_open_default
	mov	x20, x0
	cbz	x0, LBB0_54
; %bb.37:
	ldur	w1, [x29, #-124]
	mov	w27, #1
	mov	x0, x21
	mov	w2, #1
	bl	_bio_open_owner
	mov	x21, x0
	cbz	x0, LBB0_55
; %bb.38:
	cbz	w19, LBB0_57
; %bb.39:
	ldur	w1, [x29, #-120]
	ldur	x3, [x29, #-104]
Lloh30:
	adrp	x5, l_.str.4@PAGE
Lloh31:
	add	x5, x5, l_.str.4@PAGEOFF
	mov	w27, #1
	mov	x0, x24
	mov	w2, #1
	mov	x4, x23
	bl	_load_key
	mov	x25, x0
	cbz	x0, LBB0_56
; %bb.40:
	mov	x0, x25
	bl	_EVP_PKEY2PKCS8
	mov	x24, x0
	cbz	x0, LBB0_60
; %bb.41:
	ldur	w8, [x29, #-156]                ; 4-byte Folded Reload
	cbz	w8, LBB0_65
; %bb.42:
	mov	w0, #1
	bl	_assert
	ldur	w8, [x29, #-124]
Lloh32:
	adrp	x9, _FORMAT_PEM@GOTPAGE
Lloh33:
	ldr	x9, [x9, _FORMAT_PEM@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	cmp	w8, w9
	ldur	x22, [x29, #-168]               ; 8-byte Folded Reload
	b.ne	LBB0_70
; %bb.43:
	mov	x0, x21
	mov	x1, x24
	bl	_PEM_write_bio_PKCS8_PRIV_KEY_INFO
	b	LBB0_72
LBB0_44:
Lloh35:
	adrp	x19, l_.str.2@PAGE
Lloh36:
	add	x19, x19, l_.str.2@PAGEOFF
	b	LBB0_46
LBB0_45:
Lloh37:
	adrp	x19, l_.str.1@PAGE
Lloh38:
	add	x19, x19, l_.str.1@PAGEOFF
LBB0_46:
Lloh39:
	adrp	x8, _bio_err@GOTPAGE
Lloh40:
	ldr	x8, [x8, _bio_err@GOTPAGEOFF]
Lloh41:
	ldr	w21, [x8]
	bl	_opt_arg
	sub	sp, sp, #16
	str	x0, [sp, #8]
	ldur	x8, [x29, #-176]                ; 8-byte Folded Reload
	str	x8, [sp]
	mov	x0, x21
	mov	x1, x19
	bl	_BIO_printf
	add	sp, sp, #16
LBB0_47:
Lloh42:
	adrp	x8, _bio_err@GOTPAGE
Lloh43:
	ldr	x8, [x8, _bio_err@GOTPAGEOFF]
Lloh44:
	ldr	w0, [x8]
	ldur	x8, [x29, #-176]                ; 8-byte Folded Reload
	str	x8, [sp, #-16]!
Lloh45:
	adrp	x1, l_.str@PAGE
Lloh46:
	add	x1, x1, l_.str@PAGEOFF
	bl	_BIO_printf
	add	sp, sp, #16
LBB0_48:
	mov	x25, #0
	mov	x24, #0
	mov	x26, #0
	mov	x21, #0
	mov	x20, #0
LBB0_49:
	mov	w27, #1
LBB0_50:
	ldur	x22, [x29, #-168]               ; 8-byte Folded Reload
LBB0_51:
	mov	x0, x26
	bl	_X509_SIG_free
	mov	x0, x24
	bl	_PKCS8_PRIV_KEY_INFO_free
	mov	x0, x25
	bl	_EVP_PKEY_free
	mov	x0, x23
	bl	_release_engine
	mov	x0, x21
	bl	_BIO_free_all
	mov	x0, x20
	bl	_BIO_free
	ldur	x0, [x29, #-104]
	bl	_OPENSSL_free
	ldur	x0, [x29, #-112]
	bl	_OPENSSL_free
	mov	sp, x22
	ldur	x8, [x29, #-88]
Lloh47:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh48:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh49:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_111
; %bb.52:
	mov	x0, x27
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_53:
Lloh50:
	adrp	x8, _bio_err@GOTPAGE
Lloh51:
	ldr	x8, [x8, _bio_err@GOTPAGEOFF]
Lloh52:
	ldr	w0, [x8]
Lloh53:
	adrp	x1, l_.str.3@PAGE
Lloh54:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_BIO_printf
	b	LBB0_48
LBB0_54:
	mov	x25, #0
	mov	x24, #0
	mov	x26, #0
	mov	x21, #0
	b	LBB0_49
LBB0_55:
	mov	x25, #0
LBB0_56:
	mov	x24, #0
	mov	x26, #0
	b	LBB0_50
LBB0_57:
	ldur	w8, [x29, #-120]
Lloh55:
	adrp	x19, _FORMAT_PEM@GOTPAGE
Lloh56:
	ldr	x19, [x19, _FORMAT_PEM@GOTPAGEOFF]
	ldr	w9, [x19]
	ldur	w10, [x29, #-156]               ; 4-byte Folded Reload
	cbz	w10, LBB0_61
; %bb.58:
	cmp	w8, w9
	b.ne	LBB0_63
; %bb.59:
	mov	x0, x20
	mov	x1, #0
	mov	x2, #0
	mov	x3, #0
	bl	_PEM_read_bio_PKCS8_PRIV_KEY_INFO
	mov	x24, x0
	mov	x26, #0
	ldur	x22, [x29, #-168]               ; 8-byte Folded Reload
	b	LBB0_78
LBB0_60:
Lloh57:
	adrp	x19, _bio_err@GOTPAGE
Lloh58:
	ldr	x19, [x19, _bio_err@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh59:
	adrp	x1, l_.str.5@PAGE
Lloh60:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_BIO_printf
	ldr	w0, [x19]
	bl	_ERR_print_errors
	mov	x26, #0
	b	LBB0_49
LBB0_61:
	cmp	w8, w9
	b.ne	LBB0_73
; %bb.62:
	mov	x0, x20
	mov	x1, #0
	mov	x2, #0
	mov	x3, #0
	bl	_PEM_read_bio_PKCS8
	mov	x26, x0
	ldur	x22, [x29, #-168]               ; 8-byte Folded Reload
	b	LBB0_75
LBB0_63:
Lloh61:
	adrp	x9, _FORMAT_ASN1@GOTPAGE
Lloh62:
	ldr	x9, [x9, _FORMAT_ASN1@GOTPAGEOFF]
Lloh63:
	ldr	w9, [x9]
	cmp	w8, w9
	ldur	x22, [x29, #-168]               ; 8-byte Folded Reload
	b.ne	LBB0_83
; %bb.64:
	mov	x0, x20
	mov	x1, #0
	bl	_d2i_PKCS8_PRIV_KEY_INFO_bio
	mov	x24, x0
	mov	x26, #0
	b	LBB0_78
LBB0_65:
	ldur	x0, [x29, #-96]
	cbz	x0, LBB0_90
; %bb.66:
	ldur	x4, [x29, #-136]
	ldur	x22, [x29, #-168]               ; 8-byte Folded Reload
	cbz	x4, LBB0_91
; %bb.67:
	ldur	x5, [x29, #-144]
	cbz	x5, LBB0_91
; %bb.68:
	ldur	x6, [x29, #-152]
	cbz	x6, LBB0_91
; %bb.69:
	mov	x1, #0
	mov	w2, #0
	mov	x3, #0
	bl	_PKCS5_pbe2_set_scrypt
	b	LBB0_92
LBB0_70:
Lloh64:
	adrp	x9, _FORMAT_ASN1@GOTPAGE
Lloh65:
	ldr	x9, [x9, _FORMAT_ASN1@GOTPAGEOFF]
Lloh66:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_89
; %bb.71:
	mov	x0, x21
	mov	x1, x24
	bl	_i2d_PKCS8_PRIV_KEY_INFO_bio
LBB0_72:
	mov	x26, #0
	mov	w27, #0
	b	LBB0_51
LBB0_73:
Lloh67:
	adrp	x9, _FORMAT_ASN1@GOTPAGE
Lloh68:
	ldr	x9, [x9, _FORMAT_ASN1@GOTPAGEOFF]
Lloh69:
	ldr	w9, [x9]
	cmp	w8, w9
	ldur	x22, [x29, #-168]               ; 8-byte Folded Reload
	b.ne	LBB0_83
; %bb.74:
	mov	x0, x20
	mov	x1, #0
	bl	_d2i_PKCS8_bio
	mov	x26, x0
LBB0_75:
	cbz	x26, LBB0_88
; %bb.76:
	ldur	x24, [x29, #-104]
	cbz	x24, LBB0_99
LBB0_77:
	mov	x0, x24
	bl	_strlen
	mov	x2, x0
	mov	x0, x26
	mov	x1, x24
	bl	_PKCS8_decrypt
	mov	x24, x0
LBB0_78:
	cbz	x24, LBB0_84
; %bb.79:
	mov	x0, x24
	bl	_EVP_PKCS82PKEY
	mov	x25, x0
	cbz	x0, LBB0_85
; %bb.80:
	mov	w0, #1
	bl	_assert
	ldur	w8, [x29, #-124]
	ldr	w9, [x19]
	cmp	w8, w9
	b.ne	LBB0_86
; %bb.81:
	ldur	x6, [x29, #-112]
	ldur	w8, [x29, #-160]                ; 4-byte Folded Reload
	cbz	w8, LBB0_104
; %bb.82:
	mov	x0, x21
	mov	x1, x25
	mov	x2, #0
	mov	x3, #0
	mov	w4, #0
	mov	x5, #0
	bl	_PEM_write_bio_PrivateKey_traditional
	mov	w27, #0
	b	LBB0_51
LBB0_83:
Lloh70:
	adrp	x8, _bio_err@GOTPAGE
Lloh71:
	ldr	x8, [x8, _bio_err@GOTPAGEOFF]
Lloh72:
	ldr	w0, [x8]
Lloh73:
	adrp	x1, l_.str.6@PAGE
Lloh74:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_BIO_printf
	mov	x25, #0
	mov	x24, #0
	mov	x26, #0
	b	LBB0_110
LBB0_84:
Lloh75:
	adrp	x19, _bio_err@GOTPAGE
Lloh76:
	ldr	x19, [x19, _bio_err@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh77:
	adrp	x1, l_.str.13@PAGE
Lloh78:
	add	x1, x1, l_.str.13@PAGEOFF
	bl	_BIO_printf
	ldr	w0, [x19]
	bl	_ERR_print_errors
	mov	x25, #0
	b	LBB0_110
LBB0_85:
Lloh79:
	adrp	x19, _bio_err@GOTPAGE
Lloh80:
	ldr	x19, [x19, _bio_err@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh81:
	adrp	x1, l_.str.5@PAGE
Lloh82:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_106
LBB0_86:
Lloh83:
	adrp	x9, _FORMAT_ASN1@GOTPAGE
Lloh84:
	ldr	x9, [x9, _FORMAT_ASN1@GOTPAGEOFF]
Lloh85:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_109
; %bb.87:
	mov	x0, x21
	mov	x1, x25
	bl	_i2d_PrivateKey_bio
	mov	w27, #0
	b	LBB0_51
LBB0_88:
Lloh86:
	adrp	x19, _bio_err@GOTPAGE
Lloh87:
	ldr	x19, [x19, _bio_err@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh88:
	adrp	x1, l_.str.10@PAGE
Lloh89:
	add	x1, x1, l_.str.10@PAGEOFF
	bl	_BIO_printf
	ldr	w0, [x19]
	bl	_ERR_print_errors
	b	LBB0_101
LBB0_89:
Lloh90:
	adrp	x8, _bio_err@GOTPAGE
Lloh91:
	ldr	x8, [x8, _bio_err@GOTPAGEOFF]
Lloh92:
	ldr	w0, [x8]
Lloh93:
	adrp	x1, l_.str.6@PAGE
Lloh94:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_BIO_printf
	mov	x26, #0
	b	LBB0_110
LBB0_90:
	ldur	w1, [x29, #-116]
	mov	x0, x26
	mov	x2, #0
	mov	w3, #0
	bl	_PKCS5_pbe_set
	mov	x27, x0
	ldur	x22, [x29, #-168]               ; 8-byte Folded Reload
	b	LBB0_93
LBB0_91:
	ldur	w1, [x29, #-116]
	mov	x2, #0
	mov	w3, #0
	mov	x4, #0
	mov	x5, x26
	bl	_PKCS5_pbe2_set_iv
LBB0_92:
	mov	x27, x0
LBB0_93:
	cbz	x27, LBB0_98
; %bb.94:
	ldur	x26, [x29, #-112]
	cbz	x26, LBB0_102
LBB0_95:
	mov	x0, x26
	bl	_strlen
	mov	x1, x0
	mov	x0, x26
	mov	x2, x24
	mov	x3, x27
	bl	_PKCS8_set0_pbe
	mov	x26, x0
	cbz	x0, LBB0_105
; %bb.96:
	mov	w0, #1
	bl	_assert
	ldur	w8, [x29, #-124]
Lloh95:
	adrp	x9, _FORMAT_PEM@GOTPAGE
Lloh96:
	ldr	x9, [x9, _FORMAT_PEM@GOTPAGEOFF]
Lloh97:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_107
; %bb.97:
	mov	x0, x21
	mov	x1, x26
	bl	_PEM_write_bio_PKCS8
	mov	w27, #0
	b	LBB0_51
LBB0_98:
Lloh98:
	adrp	x19, _bio_err@GOTPAGE
Lloh99:
	ldr	x19, [x19, _bio_err@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh100:
	adrp	x1, l_.str.7@PAGE
Lloh101:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_BIO_printf
	ldr	w0, [x19]
	bl	_ERR_print_errors
	mov	x26, #0
	b	LBB0_110
LBB0_99:
Lloh102:
	adrp	x2, l_.str.11@PAGE
Lloh103:
	add	x2, x2, l_.str.11@PAGEOFF
	ldp	x1, x24, [x29, #-192]           ; 16-byte Folded Reload
	mov	x0, x24
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	w3, #0
	bl	_EVP_read_pw_string
	cbz	x0, LBB0_77
; %bb.100:
Lloh104:
	adrp	x8, _bio_err@GOTPAGE
Lloh105:
	ldr	x8, [x8, _bio_err@GOTPAGEOFF]
Lloh106:
	ldr	w0, [x8]
Lloh107:
	adrp	x1, l_.str.12@PAGE
Lloh108:
	add	x1, x1, l_.str.12@PAGEOFF
	bl	_BIO_printf
LBB0_101:
	mov	x25, #0
	mov	x24, #0
	b	LBB0_110
LBB0_102:
Lloh109:
	adrp	x2, l_.str.8@PAGE
Lloh110:
	add	x2, x2, l_.str.8@PAGEOFF
	ldp	x1, x26, [x29, #-192]           ; 16-byte Folded Reload
	mov	x0, x26
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	w3, #1
	bl	_EVP_read_pw_string
	cbz	x0, LBB0_95
; %bb.103:
	mov	x0, x27
	bl	_X509_ALGOR_free
	mov	x26, #0
	b	LBB0_110
LBB0_104:
	mov	x0, x21
	mov	x1, x25
	mov	x2, #0
	mov	x3, #0
	mov	w4, #0
	mov	x5, #0
	bl	_PEM_write_bio_PrivateKey
	mov	w27, #0
	b	LBB0_51
LBB0_105:
	mov	x0, x27
	bl	_X509_ALGOR_free
Lloh111:
	adrp	x19, _bio_err@GOTPAGE
Lloh112:
	ldr	x19, [x19, _bio_err@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh113:
	adrp	x1, l_.str.9@PAGE
Lloh114:
	add	x1, x1, l_.str.9@PAGEOFF
LBB0_106:
	bl	_BIO_printf
	ldr	w0, [x19]
	bl	_ERR_print_errors
	b	LBB0_110
LBB0_107:
Lloh115:
	adrp	x9, _FORMAT_ASN1@GOTPAGE
Lloh116:
	ldr	x9, [x9, _FORMAT_ASN1@GOTPAGEOFF]
Lloh117:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_109
; %bb.108:
	mov	x0, x21
	mov	x1, x26
	bl	_i2d_PKCS8_bio
	mov	w27, #0
	b	LBB0_51
LBB0_109:
Lloh118:
	adrp	x8, _bio_err@GOTPAGE
Lloh119:
	ldr	x8, [x8, _bio_err@GOTPAGEOFF]
Lloh120:
	ldr	w0, [x8]
Lloh121:
	adrp	x1, l_.str.6@PAGE
Lloh122:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_BIO_printf
LBB0_110:
	mov	w27, #1
	b	LBB0_51
LBB0_111:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh55, Lloh56
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpLdrGot	Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpAdd	Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpAdd	Lloh77, Lloh78
	.loh AdrpLdrGot	Lloh75, Lloh76
	.loh AdrpAdd	Lloh81, Lloh82
	.loh AdrpLdrGot	Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.loh AdrpAdd	Lloh88, Lloh89
	.loh AdrpLdrGot	Lloh86, Lloh87
	.loh AdrpAdd	Lloh93, Lloh94
	.loh AdrpLdrGotLdr	Lloh90, Lloh91, Lloh92
	.loh AdrpLdrGotLdr	Lloh95, Lloh96, Lloh97
	.loh AdrpAdd	Lloh100, Lloh101
	.loh AdrpLdrGot	Lloh98, Lloh99
	.loh AdrpAdd	Lloh102, Lloh103
	.loh AdrpAdd	Lloh107, Lloh108
	.loh AdrpLdrGotLdr	Lloh104, Lloh105, Lloh106
	.loh AdrpAdd	Lloh109, Lloh110
	.loh AdrpAdd	Lloh113, Lloh114
	.loh AdrpLdrGot	Lloh111, Lloh112
	.loh AdrpLdrGotLdr	Lloh115, Lloh116, Lloh117
	.loh AdrpAdd	Lloh121, Lloh122
	.loh AdrpLdrGotLdr	Lloh118, Lloh119, Lloh120
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_1)>>2
	.byte	(LBB0_8-LBB0_1)>>2
	.byte	(LBB0_9-LBB0_1)>>2
	.byte	(LBB0_10-LBB0_1)>>2
	.byte	(LBB0_11-LBB0_1)>>2
	.byte	(LBB0_12-LBB0_1)>>2
	.byte	(LBB0_14-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_18-LBB0_1)>>2
	.byte	(LBB0_19-LBB0_1)>>2
	.byte	(LBB0_20-LBB0_1)>>2
	.byte	(LBB0_21-LBB0_1)>>2
	.byte	(LBB0_22-LBB0_1)>>2
	.byte	(LBB0_23-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_25-LBB0_1)>>2
	.byte	(LBB0_26-LBB0_1)>>2
	.byte	(LBB0_28-LBB0_1)>>2
	.byte	(LBB0_30-LBB0_1)>>2
	.byte	(LBB0_47-LBB0_1)>>2
	.byte	(LBB0_31-LBB0_1)>>2
	.byte	(LBB0_29-LBB0_1)>>2
                                        ; -- End function
	.comm	_APP_PASS_LEN,4,2               ; @APP_PASS_LEN
	.comm	_PKCS12_DEFAULT_ITER,4,2        ; @PKCS12_DEFAULT_ITER
	.comm	_FORMAT_PEM,4,2                 ; @FORMAT_PEM
	.comm	_pkcs8_options,4,2              ; @pkcs8_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
	.comm	_NID_undef,4,2                  ; @NID_undef
l_.str.1:                               ; @.str.1
	.asciz	"%s: Unknown PBE algorithm %s\n"

	.comm	_EVP_PBE_TYPE_PRF,4,2           ; @EVP_PBE_TYPE_PRF
l_.str.2:                               ; @.str.2
	.asciz	"%s: Unknown PRF algorithm %s\n"

l_.str.3:                               ; @.str.3
	.asciz	"Error getting passwords\n"

l_.str.4:                               ; @.str.4
	.asciz	"key"

l_.str.5:                               ; @.str.5
	.asciz	"Error converting key\n"

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

l_.str.7:                               ; @.str.7
	.asciz	"Error setting PBE algorithm\n"

l_.str.8:                               ; @.str.8
	.asciz	"Enter Encryption Password:"

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

l_.str.10:                              ; @.str.10
	.asciz	"Error reading key\n"

l_.str.11:                              ; @.str.11
	.asciz	"Enter Password:"

l_.str.12:                              ; @.str.12
	.asciz	"Can't read Password\n"

l_.str.13:                              ; @.str.13
	.asciz	"Error decrypting key\n"

.subsections_via_symbols
