	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_crypto_read_openvpn_key        ## -- Begin function crypto_read_openvpn_key
	.p2align	4, 0x90
_crypto_read_openvpn_key:               ## @crypto_read_openvpn_key
	.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
	movq	%r9, -64(%rbp)                  ## 8-byte Spill
	movl	%r8d, %r15d
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	_RKF_MUST_SUCCEED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	testq	%rcx, %rcx
	je	LBB0_2
## %bb.1:
	movq	_RKF_INLINE@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	leaq	-48(%rbp), %rdi
	movq	%rcx, %rsi
	jmp	LBB0_3
LBB0_2:
	leaq	-48(%rbp), %rdi
	movq	%rbx, %rsi
LBB0_3:
	callq	_read_key_file
	cmpl	$2, -48(%rbp)
	je	LBB0_5
## %bb.4:
	movq	_M_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	callq	_msg
LBB0_5:
	leaq	-48(%rbp), %r14
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	callq	_verify_fix_key2
	leaq	-56(%rbp), %rdi
	movl	%r15d, %esi
	callq	_key_direction_state_init
	movl	-56(%rbp), %ecx
	movq	%rbx, %rdi
	movq	16(%rbp), %rsi
	movq	%r14, %rdx
	callq	_must_have_n_keys
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	%r15d, %edx
	movq	%r13, %rcx
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	callq	_init_key_ctx_bi
	movq	%r14, %rdi
	movl	$4, %esi
	callq	_secure_memzero
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RKF_MUST_SUCCEED,4,2           ## @RKF_MUST_SUCCEED
	.comm	_RKF_INLINE,4,2                 ## @RKF_INLINE
	.comm	_M_ERR,4,2                      ## @M_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"File '%s' does not have OpenVPN Static Key format.  Using free-form passphrase file is not supported anymore."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_crypto_read_openvpn_key        ; -- Begin function crypto_read_openvpn_key
	.p2align	2
_crypto_read_openvpn_key:               ; @crypto_read_openvpn_key
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x23, x6
	mov	x19, x5
	mov	x20, x4
	mov	x24, x2
	mov	x22, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _RKF_MUST_SUCCEED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RKF_MUST_SUCCEED@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	cbz	x3, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _RKF_INLINE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RKF_INLINE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	orr	w2, w8, w2
	add	x0, sp, #8
	mov	x1, x3
	b	LBB0_3
LBB0_2:
	add	x0, sp, #8
	mov	x1, x24
LBB0_3:
	bl	_read_key_file
	ldr	w8, [sp, #8]
	cmp	w8, #2
	b.eq	LBB0_5
; %bb.4:
Lloh6:
	adrp	x8, _M_ERR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _M_ERR@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x24
	bl	_msg
LBB0_5:
	add	x0, sp, #8
	mov	x1, x21
	mov	x2, x24
	bl	_verify_fix_key2
	mov	x0, sp
	mov	x1, x20
	bl	_key_direction_state_init
	ldr	w3, [sp]
	add	x2, sp, #8
	mov	x0, x24
	mov	x1, x23
	bl	_must_have_n_keys
	add	x1, sp, #8
	mov	x0, x22
	mov	x2, x20
	mov	x3, x21
	mov	x4, x19
	bl	_init_key_ctx_bi
	add	x0, sp, #8
	mov	w1, #4
	bl	_secure_memzero
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_RKF_MUST_SUCCEED,4,2           ; @RKF_MUST_SUCCEED
	.comm	_RKF_INLINE,4,2                 ; @RKF_INLINE
	.comm	_M_ERR,4,2                      ; @M_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"File '%s' does not have OpenVPN Static Key format.  Using free-form passphrase file is not supported anymore."

.subsections_via_symbols
