	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_ctx
_init_ctx:                              ## @init_ctx
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r15d
	movl	%ecx, %r13d
	movq	%rdx, %rbx
	movq	%rdi, %r14
	movl	16(%rbp), %r12d
	movq	$0, -48(%rbp)
	cmpl	$134, %r12d
	sete	%al
	movl	%r12d, %ecx
	andl	$-2, %ecx
	cmpl	$136, %ecx
	sete	%cl
	testq	%rdi, %rdi
	jne	LBB0_5
## %bb.1:
	cmpl	$129, %r15d
	je	LBB0_5
## %bb.2:
	orb	%cl, %al
	je	LBB0_5
## %bb.3:
	movq	_bio_err@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_4
LBB0_5:
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	leaq	-48(%rbp), %rdx
	movq	%r9, %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_app_passwd
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movl	32(%rbp), %ecx
	cmpl	$128, %r15d
	je	LBB0_12
## %bb.8:
	cmpl	$131, %r15d
	je	LBB0_14
## %bb.9:
	cmpl	$129, %r15d
	jne	LBB0_10
## %bb.11:
	movl	%ecx, %r15d
	movq	-48(%rbp), %rcx
	leaq	L_.str.2(%rip), %r9
	movq	%rbx, %rdi
	movl	%r13d, %esi
	xorl	%edx, %edx
	movq	24(%rbp), %rbx
	movq	%rbx, %r8
	callq	_load_key
	jmp	LBB0_13
LBB0_6:
	movq	_bio_err@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_4:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_BIO_printf
	jmp	LBB0_37
LBB0_12:
	leaq	L_.str.3(%rip), %r9
	movq	%rbx, %rdi
	movl	%r13d, %esi
	xorl	%edx, %edx
	movl	%ecx, %r15d
	xorl	%ecx, %ecx
	movq	24(%rbp), %rbx
	movq	%rbx, %r8
	callq	_load_pubkey
LBB0_13:
	movl	%r15d, %ecx
	movq	%rax, %r15
	jmp	LBB0_18
LBB0_14:
	leaq	L_.str.4(%rip), %rdx
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_load_cert
	testq	%rax, %rax
	je	LBB0_15
## %bb.16:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_X509_get_pubkey
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_X509_free
	jmp	LBB0_17
LBB0_10:
	xorl	%r15d, %r15d
	movq	24(%rbp), %rbx
	jmp	LBB0_18
LBB0_15:
	xorl	%r15d, %r15d
LBB0_17:
	movq	24(%rbp), %rbx
	movl	32(%rbp), %ecx
LBB0_18:
	xorl	%eax, %eax
	testl	%ecx, %ecx
	cmoveq	%rax, %rbx
	testq	%r14, %r14
	je	LBB0_23
## %bb.19:
	movq	%r14, %rdi
	callq	_OBJ_sn2nid
	movq	_NID_undef@GOTPCREL(%rip), %r15
	cmpl	(%r15), %eax
	jne	LBB0_21
## %bb.20:
	movq	%r14, %rdi
	callq	_OBJ_ln2nid
	cmpl	(%r15), %eax
	jne	LBB0_21
## %bb.22:
	movq	_bio_err@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_BIO_printf
	jmp	LBB0_37
LBB0_21:
	movl	%eax, %edi
	movq	%rbx, %rsi
	callq	_EVP_PKEY_CTX_new_id
	movq	%rax, %rbx
	testq	%rbx, %rbx
	jne	LBB0_26
	jmp	LBB0_36
LBB0_23:
	testq	%r15, %r15
	je	LBB0_36
## %bb.24:
	movq	%r15, %rdi
	callq	_EVP_PKEY_size
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_EVP_PKEY_CTX_new
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_EVP_PKEY_free
	testq	%rbx, %rbx
	je	LBB0_36
LBB0_26:
	addl	$-132, %r12d
	cmpl	$5, %r12d
	ja	LBB0_35
## %bb.27:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%r12,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_30:
	movq	%rbx, %rdi
	callq	_EVP_PKEY_verify_recover_init
	jmp	LBB0_34
LBB0_29:
	movq	%rbx, %rdi
	callq	_EVP_PKEY_verify_init
	jmp	LBB0_34
LBB0_28:
	movq	%rbx, %rdi
	callq	_EVP_PKEY_sign_init
	jmp	LBB0_34
LBB0_31:
	movq	%rbx, %rdi
	callq	_EVP_PKEY_encrypt_init
	jmp	LBB0_34
LBB0_33:
	movq	%rbx, %rdi
	callq	_EVP_PKEY_derive_init
	jmp	LBB0_34
LBB0_32:
	movq	%rbx, %rdi
	callq	_EVP_PKEY_decrypt_init
LBB0_34:
	testl	%eax, %eax
	jg	LBB0_37
LBB0_35:
	movq	%rbx, %rdi
	callq	_EVP_PKEY_CTX_free
LBB0_36:
	xorl	%ebx, %ebx
LBB0_37:
	movq	-48(%rbp), %rdi
	callq	_OPENSSL_free
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_30, LBB0_30-LJTI0_0
.set L0_0_set_29, LBB0_29-LJTI0_0
.set L0_0_set_28, LBB0_28-LJTI0_0
.set L0_0_set_31, LBB0_31-LJTI0_0
.set L0_0_set_33, LBB0_33-LJTI0_0
.set L0_0_set_32, LBB0_32-LJTI0_0
LJTI0_0:
	.long	L0_0_set_30
	.long	L0_0_set_29
	.long	L0_0_set_28
	.long	L0_0_set_31
	.long	L0_0_set_33
	.long	L0_0_set_32
	.end_data_region
                                        ## -- End function
	.comm	_bio_err,4,2                    ## @bio_err
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"A private key is needed for this operation\n"

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

L_.str.2:                               ## @.str.2
	.asciz	"Private Key"

L_.str.3:                               ## @.str.3
	.asciz	"Public Key"

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

	.comm	_NID_undef,4,2                  ## @NID_undef
L_.str.5:                               ## @.str.5
	.asciz	"The given KDF \"%s\" is unknown.\n"

	.no_dead_strip	_init_ctx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_ctx
_init_ctx:                              ; @init_ctx
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x22, x7
	mov	x19, x6
	mov	x25, x4
	mov	x23, x3
	mov	x24, x2
	mov	x21, x1
	mov	x20, x0
	str	xzr, [sp, #8]
	cmp	w6, #134
	and	w8, w6, #0xfffffffe
	mov	w9, #136
	ccmp	w8, w9, #4, ne
	cset	w8, eq
	cbnz	x0, LBB0_4
; %bb.1:
	cmp	w25, #129
	b.eq	LBB0_4
; %bb.2:
	cbz	w8, LBB0_4
; %bb.3:
Lloh0:
	adrp	x8, _bio_err@GOTPAGE
Lloh1:
	ldr	x8, [x8, _bio_err@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_BIO_printf
	b	LBB0_31
LBB0_4:
	add	x2, sp, #8
	mov	x0, x5
	mov	x1, #0
	mov	x3, #0
	bl	_app_passwd
	cbz	w0, LBB0_9
; %bb.5:
	ldr	w26, [x29, #16]
	cmp	w25, #128
	b.eq	LBB0_10
; %bb.6:
	cmp	w25, #131
	b.eq	LBB0_11
; %bb.7:
	cmp	w25, #129
	b.ne	LBB0_13
; %bb.8:
	ldr	x3, [sp, #8]
Lloh5:
	adrp	x5, l_.str.2@PAGE
Lloh6:
	add	x5, x5, l_.str.2@PAGEOFF
	mov	x0, x24
	mov	x1, x23
	mov	w2, #0
	mov	x4, x22
	bl	_load_key
	mov	x23, x0
	b	LBB0_14
LBB0_9:
Lloh7:
	adrp	x8, _bio_err@GOTPAGE
Lloh8:
	ldr	x8, [x8, _bio_err@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_BIO_printf
	b	LBB0_31
LBB0_10:
Lloh12:
	adrp	x5, l_.str.3@PAGE
Lloh13:
	add	x5, x5, l_.str.3@PAGEOFF
	mov	x0, x24
	mov	x1, x23
	mov	w2, #0
	mov	x3, #0
	mov	x4, x22
	bl	_load_pubkey
	mov	x23, x0
	b	LBB0_14
LBB0_11:
Lloh14:
	adrp	x2, l_.str.4@PAGE
Lloh15:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x24
	mov	x1, x23
	bl	_load_cert
	cbz	x0, LBB0_13
; %bb.12:
	mov	x24, x0
	bl	_X509_get_pubkey
	mov	x23, x0
	mov	x0, x24
	bl	_X509_free
	b	LBB0_14
LBB0_13:
	mov	x23, #0
LBB0_14:
	cmp	w26, #0
	csel	x22, xzr, x22, eq
	cbz	x20, LBB0_19
; %bb.15:
	mov	x0, x20
	bl	_OBJ_sn2nid
Lloh16:
	adrp	x21, _NID_undef@GOTPAGE
Lloh17:
	ldr	x21, [x21, _NID_undef@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w0, w8
	b.ne	LBB0_18
; %bb.16:
	mov	x0, x20
	bl	_OBJ_ln2nid
	ldr	w8, [x21]
	cmp	w0, w8
	b.ne	LBB0_18
; %bb.17:
Lloh18:
	adrp	x8, _bio_err@GOTPAGE
Lloh19:
	ldr	x8, [x8, _bio_err@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	str	x20, [sp]
Lloh21:
	adrp	x1, l_.str.5@PAGE
Lloh22:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_BIO_printf
	b	LBB0_31
LBB0_18:
	mov	x1, x22
	bl	_EVP_PKEY_CTX_new_id
	mov	x20, x0
	cbnz	x20, LBB0_21
	b	LBB0_32
LBB0_19:
	cbz	x23, LBB0_31
; %bb.20:
	mov	x0, x23
	bl	_EVP_PKEY_size
	str	w0, [x21]
	mov	x0, x23
	mov	x1, x22
	bl	_EVP_PKEY_CTX_new
	mov	x20, x0
	mov	x0, x23
	bl	_EVP_PKEY_free
	cbz	x20, LBB0_32
LBB0_21:
	sub	w8, w19, #132
	cmp	w8, #5
	b.hi	LBB0_30
; %bb.22:
Lloh23:
	adrp	x9, lJTI0_0@PAGE
Lloh24:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_23
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_23:
	mov	x0, x20
	bl	_EVP_PKEY_verify_recover_init
	b	LBB0_29
LBB0_24:
	mov	x0, x20
	bl	_EVP_PKEY_verify_init
	b	LBB0_29
LBB0_25:
	mov	x0, x20
	bl	_EVP_PKEY_sign_init
	b	LBB0_29
LBB0_26:
	mov	x0, x20
	bl	_EVP_PKEY_encrypt_init
	b	LBB0_29
LBB0_27:
	mov	x0, x20
	bl	_EVP_PKEY_derive_init
	b	LBB0_29
LBB0_28:
	mov	x0, x20
	bl	_EVP_PKEY_decrypt_init
LBB0_29:
	cmp	w0, #0
	b.gt	LBB0_32
LBB0_30:
	mov	x0, x20
	bl	_EVP_PKEY_CTX_free
LBB0_31:
	mov	x20, #0
LBB0_32:
	ldr	x0, [sp, #8]
	bl	_OPENSSL_free
	mov	x0, x20
	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
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_23-LBB0_23)>>2
	.byte	(LBB0_24-LBB0_23)>>2
	.byte	(LBB0_25-LBB0_23)>>2
	.byte	(LBB0_26-LBB0_23)>>2
	.byte	(LBB0_27-LBB0_23)>>2
	.byte	(LBB0_28-LBB0_23)>>2
                                        ; -- End function
	.comm	_bio_err,4,2                    ; @bio_err
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"A private key is needed for this operation\n"

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

l_.str.2:                               ; @.str.2
	.asciz	"Private Key"

l_.str.3:                               ; @.str.3
	.asciz	"Public Key"

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

	.comm	_NID_undef,4,2                  ; @NID_undef
l_.str.5:                               ; @.str.5
	.asciz	"The given KDF \"%s\" is unknown.\n"

	.no_dead_strip	_init_ctx
.subsections_via_symbols
