	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function key_method_1_read
_key_method_1_read:                     ## @key_method_1_read
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	(%rsi), %rax
	movq	16(%rsi), %r15
	movq	_KS_PRIMARY@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r12
	xorl	%edi, %edi
	cmpl	$1, (%rax)
	sete	%dil
	callq	_ASSERT
	cmpl	$0, 8(%rbx)
	je	LBB0_1
## %bb.2:
	movq	(%rbx), %rsi
	addq	$4, %rsi
	leaq	-40(%rbp), %rdi
	movq	%r14, %rdx
	callq	_read_key
	cmpl	$1, %eax
	jne	LBB0_3
## %bb.4:
	movq	(%rbx), %rsi
	addq	$4, %rsi
	leaq	-40(%rbp), %rdi
	callq	_check_key
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	cmpl	$0, (%r14)
	jle	LBB0_7
## %bb.10:
	movq	%r14, %rdi
	callq	_buf_clear
	leaq	(%r15,%r12,8), %rdi
	addq	$4, %rdi
	movq	(%rbx), %rdx
	addq	$4, %rdx
	movq	_OPENVPN_OP_DECRYPT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.4(%rip), %r8
	leaq	-40(%rbp), %rbx
	movq	%rbx, %rsi
	callq	_init_key_ctx
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_secure_memzero
	movl	$1, (%r15,%r12,8)
	movl	$1, %eax
	jmp	LBB0_9
LBB0_1:
	movq	_D_TLS_ERRORS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_8
LBB0_3:
	movq	_D_TLS_ERRORS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_8
LBB0_5:
	movq	_D_TLS_ERRORS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_8
LBB0_7:
	movq	_D_TLS_ERRORS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
LBB0_8:
	callq	_msg
	movq	%r14, %rdi
	callq	_buf_clear
	leaq	-40(%rbp), %rdi
	movl	$4, %esi
	callq	_secure_memzero
	xorl	%eax, %eax
LBB0_9:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KS_PRIMARY,8,3                 ## @KS_PRIMARY
	.comm	_D_TLS_ERRORS,4,2               ## @D_TLS_ERRORS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TLS Error: Certificate verification failed (key-method 1)"

L_.str.1:                               ## @.str.1
	.asciz	"TLS Error: Error reading data channel key from plaintext buffer"

L_.str.2:                               ## @.str.2
	.asciz	"TLS Error: Bad decrypting key received from peer"

L_.str.3:                               ## @.str.3
	.asciz	"TLS Error: Missing options string"

	.comm	_OPENVPN_OP_DECRYPT,4,2         ## @OPENVPN_OP_DECRYPT
L_.str.4:                               ## @.str.4
	.asciz	"Data Channel Decrypt"

	.no_dead_strip	_key_method_1_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function key_method_1_read
_key_method_1_read:                     ; @key_method_1_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _KS_PRIMARY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KS_PRIMARY@GOTPAGEOFF]
	ldr	x21, [x1, #16]
Lloh2:
	ldr	x22, [x8]
	ldr	x8, [x1]
	ldr	w8, [x8]
	cmp	w8, #1
	cset	w0, eq
	bl	_ASSERT
	ldr	w8, [x20, #8]
	cbz	w8, LBB0_5
; %bb.1:
	ldr	x8, [x20]
	add	x1, x8, #4
	add	x0, sp, #8
	mov	x2, x19
	bl	_read_key
	cmp	w0, #1
	b.ne	LBB0_6
; %bb.2:
	ldr	x8, [x20]
	add	x1, x8, #4
	add	x0, sp, #8
	bl	_check_key
	cbz	w0, LBB0_7
; %bb.3:
	ldr	w8, [x19]
	cmp	w8, #0
	b.le	LBB0_8
; %bb.4:
	mov	x0, x19
	bl	_buf_clear
	add	x19, x21, x22, lsl #3
	add	x0, x19, #4
	ldr	x8, [x20]
	add	x2, x8, #4
Lloh3:
	adrp	x8, _OPENVPN_OP_DECRYPT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OPENVPN_OP_DECRYPT@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
Lloh6:
	adrp	x4, l_.str.4@PAGE
Lloh7:
	add	x4, x4, l_.str.4@PAGEOFF
	add	x1, sp, #8
	bl	_init_key_ctx
	add	x0, sp, #8
	mov	w1, #4
	bl	_secure_memzero
	mov	w0, #1
	str	w0, [x19]
	b	LBB0_10
LBB0_5:
Lloh8:
	adrp	x8, _D_TLS_ERRORS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _D_TLS_ERRORS@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_9
LBB0_6:
Lloh13:
	adrp	x8, _D_TLS_ERRORS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _D_TLS_ERRORS@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_7:
Lloh18:
	adrp	x8, _D_TLS_ERRORS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _D_TLS_ERRORS@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_9
LBB0_8:
Lloh23:
	adrp	x8, _D_TLS_ERRORS@GOTPAGE
Lloh24:
	ldr	x8, [x8, _D_TLS_ERRORS@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
Lloh26:
	adrp	x1, l_.str.3@PAGE
Lloh27:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_9:
	bl	_msg
	mov	x0, x19
	bl	_buf_clear
	add	x0, sp, #8
	mov	w1, #4
	bl	_secure_memzero
	mov	w0, #0
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_KS_PRIMARY,8,3                 ; @KS_PRIMARY
	.comm	_D_TLS_ERRORS,4,2               ; @D_TLS_ERRORS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TLS Error: Certificate verification failed (key-method 1)"

l_.str.1:                               ; @.str.1
	.asciz	"TLS Error: Error reading data channel key from plaintext buffer"

l_.str.2:                               ; @.str.2
	.asciz	"TLS Error: Bad decrypting key received from peer"

l_.str.3:                               ; @.str.3
	.asciz	"TLS Error: Missing options string"

	.comm	_OPENVPN_OP_DECRYPT,4,2         ; @OPENVPN_OP_DECRYPT
l_.str.4:                               ; @.str.4
	.asciz	"Data Channel Decrypt"

	.no_dead_strip	_key_method_1_read
.subsections_via_symbols
