	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_control_auth
_read_control_auth:                     ## @read_control_auth
	.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	%rcx, %rbx
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %r13
	xorl	%eax, %eax
	callq	_gc_new
	movl	%eax, -48(%rbp)
	movq	%r13, %rdi
	callq	_BPTR
	movq	(%rax), %rax
	movq	_P_OPCODE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarq	%cl, %rax
	movq	_P_CONTROL_HARD_RESET_CLIENT_V3@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.1:
	movq	%r13, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_tls_crypt_v2_extract_client_key
	testl	%eax, %eax
	je	LBB0_2
LBB0_4:
	movq	(%r14), %rax
	movq	_TLS_WRAP_AUTH@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	jne	LBB0_10
## %bb.5:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_clear_buf
	movq	%rax, %r15
	leaq	16(%r14), %rbx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_swap_hmac
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movq	%r13, %rdi
	callq	_BPTR
	xorl	%r12d, %r12d
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	xorl	%ecx, %ecx
	movq	%rax, %r8
	callq	_openvpn_decrypt
	cmpl	$0, 4(%r13)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	_TLS_WRAP_AUTH@GOTPCREL(%rip), %rbx
	jne	LBB0_13
## %bb.8:
	movq	_D_TLS_ERRORS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	-48(%rbp), %rsi
	callq	_print_link_socket_actual
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_9
LBB0_10:
	movq	_TLS_WRAP_CRYPT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_18
## %bb.11:
	movq	%r13, %rdi
	callq	_buf_forward_capacity_total
	leaq	-48(%rbp), %rsi
	movl	%eax, %edi
	callq	_alloc_buf_gc
	movq	%rax, -64(%rbp)
	leaq	16(%r14), %rdx
	leaq	-64(%rbp), %rsi
	movq	%r13, %rdi
	callq	_tls_crypt_unwrap
	testl	%eax, %eax
	je	LBB0_17
## %bb.12:
	movl	(%r13), %esi
	movq	%r13, %rdi
	callq	_buf_init
	movl	%eax, %edi
	callq	_ASSERT
	movq	%rbx, %r15
	leaq	-64(%rbp), %rbx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_buf_copy
	movl	%eax, %edi
	callq	_ASSERT
	movq	%rbx, %rdi
	movq	%r15, %rbx
	callq	_buf_clear
	jmp	LBB0_13
LBB0_18:
	cmpq	$0, 8(%r14)
	je	LBB0_13
## %bb.19:
	movq	_D_TLS_ERRORS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	_print_link_socket_actual
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_3
LBB0_13:
	movq	(%r14), %rax
	movq	_TLS_WRAP_NONE@GOTPCREL(%rip), %rcx
	movl	$1, %r12d
	cmpq	(%rcx), %rax
	je	LBB0_15
## %bb.14:
	cmpq	(%rbx), %rax
	jne	LBB0_16
LBB0_15:
	movq	_SID_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	incq	%rsi
	movq	%r13, %rdi
	callq	_buf_advance
	jmp	LBB0_16
LBB0_2:
	movq	_D_TLS_ERRORS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	_print_link_socket_actual
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_3
LBB0_6:
	movq	_D_TLS_ERRORS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	-48(%rbp), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_print_link_socket_actual
	leaq	L_.str.1(%rip), %rsi
LBB0_9:
	movl	%ebx, %edi
	movl	%eax, %edx
	callq	_msg
	jmp	LBB0_16
LBB0_17:
	movq	_D_TLS_ERRORS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	_print_link_socket_actual
	leaq	L_.str.3(%rip), %rsi
LBB0_3:
	movl	%ebx, %edi
	movl	%eax, %edx
	callq	_msg
	xorl	%r12d, %r12d
LBB0_16:
	leaq	-48(%rbp), %rdi
	callq	_gc_free
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_P_OPCODE_SHIFT,8,3             ## @P_OPCODE_SHIFT
	.comm	_P_CONTROL_HARD_RESET_CLIENT_V3,8,3 ## @P_CONTROL_HARD_RESET_CLIENT_V3
	.comm	_D_TLS_ERRORS,4,2               ## @D_TLS_ERRORS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TLS Error: can not extract tls-crypt-v2 client key from %s"

	.comm	_TLS_WRAP_AUTH,8,3              ## @TLS_WRAP_AUTH
L_.str.1:                               ## @.str.1
	.asciz	"TLS Error: cannot locate HMAC in incoming packet from %s"

L_.str.2:                               ## @.str.2
	.asciz	"TLS Error: incoming packet authentication failed from %s"

	.comm	_TLS_WRAP_CRYPT,8,3             ## @TLS_WRAP_CRYPT
L_.str.3:                               ## @.str.3
	.asciz	"TLS Error: tls-crypt unwrapping failed from %s"

L_.str.4:                               ## @.str.4
	.asciz	"TLS Error: could not determine wrapping from %s"

	.comm	_TLS_WRAP_NONE,8,3              ## @TLS_WRAP_NONE
	.comm	_SID_SIZE,8,3                   ## @SID_SIZE
	.no_dead_strip	_read_control_auth
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_control_auth
_read_control_auth:                     ; @read_control_auth
	.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	x22, x3
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	bl	_gc_new
	str	w0, [sp, #8]
	mov	x0, x19
	bl	_BPTR
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _P_OPCODE_SHIFT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _P_OPCODE_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	asr	x8, x8, x9
Lloh3:
	adrp	x9, _P_CONTROL_HARD_RESET_CLIENT_V3@GOTPAGE
Lloh4:
	ldr	x9, [x9, _P_CONTROL_HARD_RESET_CLIENT_V3@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_tls_crypt_v2_extract_client_key
	cbz	w0, LBB0_14
LBB0_2:
	ldr	x8, [x21]
Lloh6:
	adrp	x24, _TLS_WRAP_AUTH@GOTPAGE
Lloh7:
	ldr	x24, [x24, _TLS_WRAP_AUTH@GOTPAGEOFF]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.3:
	bl	_clear_buf
	mov	x22, x0
	add	x23, x21, #16
	mov	x0, x19
	mov	x1, x23
	mov	w2, #1
	bl	_swap_hmac
	cbz	w0, LBB0_15
; %bb.4:
	mov	x0, x19
	bl	_BPTR
	mov	x4, x0
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
	mov	x3, #0
	bl	_openvpn_decrypt
	ldr	w8, [x19, #4]
	cbnz	w8, LBB0_11
; %bb.5:
Lloh8:
	adrp	x8, _D_TLS_ERRORS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _D_TLS_ERRORS@GOTPAGEOFF]
Lloh10:
	ldr	w19, [x8]
	add	x1, sp, #8
	mov	x0, x20
	bl	_print_link_socket_actual
	mov	x2, x0
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_17
LBB0_6:
Lloh13:
	adrp	x9, _TLS_WRAP_CRYPT@GOTPAGE
Lloh14:
	ldr	x9, [x9, _TLS_WRAP_CRYPT@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.7:
	mov	x0, x19
	bl	_buf_forward_capacity_total
	add	x1, sp, #8
	bl	_alloc_buf_gc
	str	x0, [sp]
	add	x2, x21, #16
	mov	x1, sp
	mov	x0, x19
	bl	_tls_crypt_unwrap
	cbz	w0, LBB0_16
; %bb.8:
	ldr	w1, [x19]
	mov	x0, x19
	bl	_buf_init
	bl	_ASSERT
	mov	x1, sp
	mov	x0, x19
	bl	_buf_copy
	bl	_ASSERT
	mov	x0, sp
	bl	_buf_clear
	b	LBB0_11
LBB0_9:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_11
; %bb.10:
Lloh16:
	adrp	x8, _D_TLS_ERRORS@GOTPAGE
Lloh17:
	ldr	x8, [x8, _D_TLS_ERRORS@GOTPAGEOFF]
Lloh18:
	ldr	w19, [x8]
	add	x1, sp, #8
	mov	x0, x20
	bl	_print_link_socket_actual
	mov	x2, x0
Lloh19:
	adrp	x1, l_.str.4@PAGE
Lloh20:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_17
LBB0_11:
	ldr	x8, [x21]
Lloh21:
	adrp	x9, _TLS_WRAP_NONE@GOTPAGE
Lloh22:
	ldr	x9, [x9, _TLS_WRAP_NONE@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	ldr	x10, [x24]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_13
; %bb.12:
Lloh24:
	adrp	x8, _SID_SIZE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SID_SIZE@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	add	x1, x8, #1
	mov	x0, x19
	bl	_buf_advance
LBB0_13:
	mov	w19, #1
	b	LBB0_18
LBB0_14:
Lloh27:
	adrp	x8, _D_TLS_ERRORS@GOTPAGE
Lloh28:
	ldr	x8, [x8, _D_TLS_ERRORS@GOTPAGEOFF]
Lloh29:
	ldr	w19, [x8]
	add	x1, sp, #8
	mov	x0, x20
	bl	_print_link_socket_actual
	mov	x2, x0
Lloh30:
	adrp	x1, l_.str@PAGE
Lloh31:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_17
LBB0_15:
Lloh32:
	adrp	x8, _D_TLS_ERRORS@GOTPAGE
Lloh33:
	ldr	x8, [x8, _D_TLS_ERRORS@GOTPAGEOFF]
Lloh34:
	ldr	w19, [x8]
	add	x1, sp, #8
	mov	x0, x20
	bl	_print_link_socket_actual
	mov	x2, x0
Lloh35:
	adrp	x1, l_.str.1@PAGE
Lloh36:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_17
LBB0_16:
Lloh37:
	adrp	x8, _D_TLS_ERRORS@GOTPAGE
Lloh38:
	ldr	x8, [x8, _D_TLS_ERRORS@GOTPAGEOFF]
Lloh39:
	ldr	w19, [x8]
	add	x1, sp, #8
	mov	x0, x20
	bl	_print_link_socket_actual
	mov	x2, x0
Lloh40:
	adrp	x1, l_.str.3@PAGE
Lloh41:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_17:
	mov	x0, x19
	bl	_msg
	mov	w19, #0
LBB0_18:
	add	x0, sp, #8
	bl	_gc_free
	mov	x0, x19
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_P_OPCODE_SHIFT,8,3             ; @P_OPCODE_SHIFT
	.comm	_P_CONTROL_HARD_RESET_CLIENT_V3,8,3 ; @P_CONTROL_HARD_RESET_CLIENT_V3
	.comm	_D_TLS_ERRORS,4,2               ; @D_TLS_ERRORS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TLS Error: can not extract tls-crypt-v2 client key from %s"

	.comm	_TLS_WRAP_AUTH,8,3              ; @TLS_WRAP_AUTH
l_.str.1:                               ; @.str.1
	.asciz	"TLS Error: cannot locate HMAC in incoming packet from %s"

l_.str.2:                               ; @.str.2
	.asciz	"TLS Error: incoming packet authentication failed from %s"

	.comm	_TLS_WRAP_CRYPT,8,3             ; @TLS_WRAP_CRYPT
l_.str.3:                               ; @.str.3
	.asciz	"TLS Error: tls-crypt unwrapping failed from %s"

l_.str.4:                               ; @.str.4
	.asciz	"TLS Error: could not determine wrapping from %s"

	.comm	_TLS_WRAP_NONE,8,3              ; @TLS_WRAP_NONE
	.comm	_SID_SIZE,8,3                   ; @SID_SIZE
	.no_dead_strip	_read_control_auth
.subsections_via_symbols
