	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_verify_final_auth_checks       ## -- Begin function verify_final_auth_checks
	.p2align	4, 0x90
_verify_final_auth_checks:              ## @verify_final_auth_checks
	.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	%rsi, %rbx
	movq	%rdi, %r14
	movq	24(%rsi), %r13
	movq	_KS_PRIMARY@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	cmpq	$0, (%rsi)
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_set_common_name
LBB0_2:
	cmpl	$0, (%r13,%r12,4)
	je	LBB0_19
## %bb.3:
	movq	(%r14), %rsi
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.4:
	movq	(%rbx), %r15
	testq	%r15, %r15
	je	LBB0_7
## %bb.5:
	movq	%r15, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_D_TLS_ERRORS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r14), %rdx
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rcx
	xorl	%eax, %eax
	callq	_msg
	movq	(%r14), %rsi
	movq	%rbx, %rdi
	callq	_set_common_name
	movq	%r14, %rdi
	callq	_tls_deauthenticate
LBB0_7:
	cmpl	$0, (%r13,%r12,4)
	je	LBB0_19
## %bb.8:
	movq	8(%r14), %rsi
	testq	%rsi, %rsi
	je	LBB0_12
## %bb.9:
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.10:
	callq	_cert_hash_compare
	testl	%eax, %eax
	jne	LBB0_12
## %bb.11:
	movq	_D_TLS_ERRORS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rdx
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_msg
	movq	%r14, %rdi
	callq	_tls_deauthenticate
LBB0_12:
	cmpl	$0, (%r13,%r12,4)
	je	LBB0_19
## %bb.13:
	movq	8(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_19
## %bb.14:
	xorl	%eax, %eax
	callq	_gc_new
	movl	%eax, -48(%rbp)
	movq	(%rbx), %r15
	movq	8(%rbx), %rax
	movq	(%rax), %rdi
	leaq	-48(%rbp), %rdx
	movq	%r15, %rsi
	callq	_platform_gen_path
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	testq	%r15, %r15
	je	LBB0_17
## %bb.15:
	movq	_CCD_DEFAULT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r15, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_platform_test_file
	testl	%eax, %eax
	jne	LBB0_18
LBB0_17:
	movl	$0, (%r13,%r12,4)
	movq	%r14, %rdi
	callq	_wipe_auth_token
	movq	_D_TLS_ERRORS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rdx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	leaq	L_.str.4(%rip), %rcx
	cmovneq	%rax, %rcx
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_msg
LBB0_18:
	leaq	-48(%rbp), %rdi
	callq	_gc_free
LBB0_19:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KS_PRIMARY,8,3                 ## @KS_PRIMARY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

	.comm	_D_TLS_ERRORS,4,2               ## @D_TLS_ERRORS
L_.str.1:                               ## @.str.1
	.asciz	"TLS Auth Error: TLS object CN attempted to change from '%s' to '%s' -- tunnel disabled"

L_.str.2:                               ## @.str.2
	.asciz	"TLS Auth Error: TLS object CN=%s client-provided SSL certs unexpectedly changed during mid-session reauth"

	.comm	_CCD_DEFAULT,8,3                ## @CCD_DEFAULT
L_.str.3:                               ## @.str.3
	.asciz	"TLS Auth Error: --client-config-dir authentication failed for common name '%s' file='%s'"

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

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_verify_final_auth_checks       ; -- Begin function verify_final_auth_checks
	.p2align	2
_verify_final_auth_checks:              ; @verify_final_auth_checks
	.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	x19, x1
	mov	x20, x0
	ldr	x23, [x1, #24]
Lloh0:
	adrp	x8, _KS_PRIMARY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KS_PRIMARY@GOTPAGEOFF]
Lloh2:
	ldr	x24, [x8]
	ldr	x8, [x1]
	cbnz	x8, LBB0_2
; %bb.1:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_set_common_name
LBB0_2:
	ldr	w8, [x23, x24, lsl #2]
	cbz	w8, LBB0_19
; %bb.3:
	ldr	x1, [x20]
	cbz	x1, LBB0_7
; %bb.4:
	ldr	x21, [x19]
	cbz	x21, LBB0_7
; %bb.5:
	mov	x0, x21
	bl	_strcmp
	cbz	x0, LBB0_7
; %bb.6:
Lloh5:
	adrp	x8, _D_TLS_ERRORS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _D_TLS_ERRORS@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldr	x2, [x20]
	str	x21, [sp]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_msg
	ldr	x1, [x20]
	mov	x0, x19
	bl	_set_common_name
	mov	x0, x20
	bl	_tls_deauthenticate
LBB0_7:
	ldr	w8, [x23, x24, lsl #2]
	cbz	w8, LBB0_19
; %bb.8:
	ldr	x1, [x20, #8]
	cbz	x1, LBB0_12
; %bb.9:
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_12
; %bb.10:
	bl	_cert_hash_compare
	cbnz	w0, LBB0_12
; %bb.11:
Lloh10:
	adrp	x8, _D_TLS_ERRORS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _D_TLS_ERRORS@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	ldr	x2, [x19]
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_msg
	mov	x0, x20
	bl	_tls_deauthenticate
LBB0_12:
	ldr	w8, [x23, x24, lsl #2]
	cbz	w8, LBB0_19
; %bb.13:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_19
; %bb.14:
	bl	_gc_new
	str	w0, [sp, #8]
	ldp	x22, x8, [x19]
	ldr	x0, [x8]
	add	x2, sp, #8
	mov	x1, x22
	bl	_platform_gen_path
	mov	x21, x0
	cbz	x22, LBB0_17
; %bb.15:
Lloh15:
	adrp	x8, _CCD_DEFAULT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CCD_DEFAULT@GOTPAGEOFF]
Lloh17:
	ldr	x1, [x8]
	mov	x0, x22
	bl	_strcmp
	cbz	x0, LBB0_17
; %bb.16:
	mov	x0, x21
	bl	_platform_test_file
	cbnz	w0, LBB0_18
LBB0_17:
	str	wzr, [x23, x24, lsl #2]
	mov	x0, x20
	bl	_wipe_auth_token
Lloh18:
	adrp	x8, _D_TLS_ERRORS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _D_TLS_ERRORS@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	ldr	x2, [x19]
Lloh21:
	adrp	x8, l_.str.4@PAGE
Lloh22:
	add	x8, x8, l_.str.4@PAGEOFF
	cmp	x21, #0
	csel	x8, x8, x21, eq
	str	x8, [sp]
Lloh23:
	adrp	x1, l_.str.3@PAGE
Lloh24:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_msg
LBB0_18:
	add	x0, sp, #8
	bl	_gc_free
LBB0_19:
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_KS_PRIMARY,8,3                 ; @KS_PRIMARY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

	.comm	_D_TLS_ERRORS,4,2               ; @D_TLS_ERRORS
l_.str.1:                               ; @.str.1
	.asciz	"TLS Auth Error: TLS object CN attempted to change from '%s' to '%s' -- tunnel disabled"

l_.str.2:                               ; @.str.2
	.asciz	"TLS Auth Error: TLS object CN=%s client-provided SSL certs unexpectedly changed during mid-session reauth"

	.comm	_CCD_DEFAULT,8,3                ; @CCD_DEFAULT
l_.str.3:                               ; @.str.3
	.asciz	"TLS Auth Error: --client-config-dir authentication failed for common name '%s' file='%s'"

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

.subsections_via_symbols
