	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_read_key                       ## -- Begin function read_key
	.p2align	4, 0x90
_read_key:                              ## @read_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	(%rdi), %rdi
	movq	8(%rbx), %rsi
	callq	_CLEAR
	leaq	-32(%rbp), %rsi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_buf_read
	testl	%eax, %eax
	je	LBB0_8
## %bb.1:
	leaq	-28(%rbp), %rsi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_buf_read
	testl	%eax, %eax
	je	LBB0_8
## %bb.2:
	movl	-32(%rbp), %r8d
	movl	(%r15), %edx
	cmpl	%edx, %r8d
	jne	LBB0_3
## %bb.5:
	movl	-28(%rbp), %r9d
	movl	4(%r15), %ecx
	cmpl	%ecx, %r9d
	jne	LBB0_4
## %bb.6:
	movq	(%rbx), %rsi
	movq	%r14, %rdi
	movl	%r8d, %edx
	callq	_buf_read
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movq	8(%rbx), %rsi
	movl	-28(%rbp), %edx
	movq	%r14, %rdi
	callq	_buf_read
	movl	$1, %ebx
	testl	%eax, %eax
	jne	LBB0_9
LBB0_8:
	movq	_D_TLS_ERRORS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_msg
	movl	$-1, %ebx
	jmp	LBB0_9
LBB0_3:
	movl	4(%r15), %ecx
	movl	-28(%rbp), %r9d
LBB0_4:
	movq	_D_TLS_ERRORS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_msg
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_D_TLS_ERRORS,4,2               ## @D_TLS_ERRORS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TLS Error: error reading key from remote"

L_.str.1:                               ## @.str.1
	.asciz	"TLS Error: key length mismatch, local cipher/hmac %d/%d, remote cipher/hmac %d/%d"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_read_key                       ; -- Begin function read_key
	.p2align	2
_read_key:                              ; @read_key
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	ldr	x0, [x0]
	ldr	x1, [x20, #8]
	bl	_CLEAR
	sub	x1, x29, #36
	mov	x0, x19
	mov	w2, #1
	bl	_buf_read
	cbz	w0, LBB0_7
; %bb.1:
	add	x1, sp, #40
	mov	x0, x19
	mov	w2, #1
	bl	_buf_read
	cbz	w0, LBB0_7
; %bb.2:
	ldur	w2, [x29, #-36]
	ldr	w8, [x21]
	cmp	w2, w8
	b.ne	LBB0_8
; %bb.3:
	ldr	w10, [sp, #40]
	ldr	w9, [x21, #4]
	cmp	w10, w9
	b.ne	LBB0_9
; %bb.4:
	ldr	x1, [x20]
	mov	x0, x19
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_buf_read
	cbz	w0, LBB0_7
; %bb.5:
	ldr	x1, [x20, #8]
	ldr	w2, [sp, #40]
	mov	x0, x19
	bl	_buf_read
	cbz	w0, LBB0_7
; %bb.6:
	mov	w0, #1
	b	LBB0_10
LBB0_7:
Lloh0:
	adrp	x8, _D_TLS_ERRORS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _D_TLS_ERRORS@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_msg
	mov	w0, #-1
	b	LBB0_10
LBB0_8:
	ldr	w9, [x21, #4]
	ldr	w10, [sp, #40]
LBB0_9:
Lloh5:
	adrp	x11, _D_TLS_ERRORS@GOTPAGE
Lloh6:
	ldr	x11, [x11, _D_TLS_ERRORS@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x11]
	stp	x2, x10, [sp, #16]
	stp	x8, x9, [sp]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_msg
	mov	w0, #0
LBB0_10:
	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
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_D_TLS_ERRORS,4,2               ; @D_TLS_ERRORS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TLS Error: error reading key from remote"

l_.str.1:                               ; @.str.1
	.asciz	"TLS Error: key length mismatch, local cipher/hmac %d/%d, remote cipher/hmac %d/%d"

.subsections_via_symbols
