	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tncs_derive_recommendation
_tncs_derive_recommendation:            ## @tncs_derive_recommendation
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	cmpl	$0, (%r14)
	je	LBB0_2
## %bb.1:
	movq	_TNCCS_PROCESS_OK_NO_RECOMMENDATION@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_2:
	movq	%r14, %rdi
	callq	_tncs_solicit_recommendation
	movq	16(%r14), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	32(%r14), %rcx
	movl	$128, %r13d
	movl	$129, %edx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%rax), %rax
	cmpq	$131, %rsi
	cmovel	%edi, %r13d
	testq	%rax, %rax
	je	LBB0_10
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rax), %rsi
	movq	(%rcx,%rsi,8), %rsi
	cmpq	$129, %rsi
	cmovel	%edx, %r13d
	movl	$130, %edi
	cmpl	$129, %r13d
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%r13d, %edi
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$130, %rsi
	cmovel	%edi, %r13d
	movl	$131, %edi
	cmpl	$128, %r13d
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%r13d, %edi
	jmp	LBB0_9
LBB0_10:
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	%r13d, 4(%r14)
	movl	$1, (%r14)
	leal	-128(%r13), %eax
	cmpl	$4, %eax
	jae	LBB0_11
## %bb.12:
	movslq	%eax, %rcx
	leaq	l_switch.table.tncs_derive_recommendation(%rip), %rax
	movq	(%rax,%rcx,8), %rax
	leaq	l_reltable.tncs_derive_recommendation(%rip), %rdx
	movslq	(%rdx,%rcx,4), %r12
	addq	%rdx, %r12
	jmp	LBB0_13
LBB0_3:
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	$128, %r13d
	movl	$128, %edx
	xorl	%eax, %eax
	callq	_wpa_printf
	movabsq	$549755813889, %rax             ## imm = 0x8000000001
	movq	%rax, (%r14)
	leaq	L_.str.2(%rip), %r12
	movq	_TNC_CONNECTION_STATE_ACCESS_ALLOWED@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %r15d
	movq	24(%r14), %rdi
	callq	_os_free
	movl	$200, %edi
	callq	_os_zalloc
	movq	%rax, 24(%r14)
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	_TNC_TNCCS_RECOMMENDATION@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leaq	L_.str.5(%rip), %rdx
	movq	%rax, %rdi
	movl	$199, %esi
	movq	%r12, %r8
	callq	_os_snprintf
LBB0_15:
	movq	16(%r14), %rbx
	jmp	LBB0_17
LBB0_11:
	movq	_TNC_CONNECTION_STATE_ACCESS_ALLOWED@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	16(%r14), %rbx
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_17 Depth=1
	movl	8(%r14), %esi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_tncs_imv_notify_connection_change
	movq	8(%rbx), %rbx
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	testq	%rbx, %rbx
	jne	LBB0_16
## %bb.18:
	addl	$-128, %r13d
	cmpl	$3, %r13d
	ja	LBB0_19
## %bb.20:
	movslq	%r13d, %rax
	leaq	l_switch.table.tncs_derive_recommendation.7(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	jmp	LBB0_21
LBB0_19:
	movq	_TNCCS_PROCESS_ERROR@GOTPCREL(%rip), %rax
LBB0_21:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TNC: No more messages from IMVs"

	.comm	_TNCCS_PROCESS_OK_NO_RECOMMENDATION,4,2 ## @TNCCS_PROCESS_OK_NO_RECOMMENDATION
L_.str.1:                               ## @.str.1
	.asciz	"TNC: Recommendation: %d"

L_.str.2:                               ## @.str.2
	.asciz	"allow"

	.comm	_TNC_CONNECTION_STATE_ACCESS_ALLOWED,4,2 ## @TNC_CONNECTION_STATE_ACCESS_ALLOWED
L_.str.3:                               ## @.str.3
	.asciz	"isolate"

	.comm	_TNC_CONNECTION_STATE_ACCESS_ISOLATED,4,2 ## @TNC_CONNECTION_STATE_ACCESS_ISOLATED
L_.str.4:                               ## @.str.4
	.asciz	"none"

	.comm	_TNC_CONNECTION_STATE_ACCESS_NONE,4,2 ## @TNC_CONNECTION_STATE_ACCESS_NONE
L_.str.5:                               ## @.str.5
	.asciz	"<TNCC-TNCS-Message><Type>%08X</Type><XML><TNCCS-Recommendation type=\"%s\"></TNCCS-Recommendation></XML></TNCC-TNCS-Message>"

	.comm	_TNC_TNCCS_RECOMMENDATION,4,2   ## @TNC_TNCCS_RECOMMENDATION
	.comm	_TNCCS_RECOMMENDATION_ALLOW,4,2 ## @TNCCS_RECOMMENDATION_ALLOW
	.comm	_TNCCS_RECOMMENDATION_NO_ACCESS,4,2 ## @TNCCS_RECOMMENDATION_NO_ACCESS
	.comm	_TNCCS_RECOMMENDATION_ISOLATE,4,2 ## @TNCCS_RECOMMENDATION_ISOLATE
	.comm	_TNCCS_RECOMMENDATION_NO_RECOMMENDATION,4,2 ## @TNCCS_RECOMMENDATION_NO_RECOMMENDATION
	.comm	_TNCCS_PROCESS_ERROR,4,2        ## @TNCCS_PROCESS_ERROR
	.no_dead_strip	_tncs_derive_recommendation
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.tncs_derive_recommendation
l_switch.table.tncs_derive_recommendation:
	.quad	_TNC_CONNECTION_STATE_ACCESS_ALLOWED
	.quad	_TNC_CONNECTION_STATE_ACCESS_NONE
	.quad	_TNC_CONNECTION_STATE_ACCESS_ISOLATED
	.quad	_TNC_CONNECTION_STATE_ACCESS_ALLOWED

	.section	__TEXT,__const
	.p2align	2                               ## @reltable.tncs_derive_recommendation
l_reltable.tncs_derive_recommendation:
	.long	L_.str.2-l_reltable.tncs_derive_recommendation
	.long	L_.str.4-l_reltable.tncs_derive_recommendation
	.long	L_.str.3-l_reltable.tncs_derive_recommendation
	.long	L_.str.2-l_reltable.tncs_derive_recommendation

	.section	__DATA,__const
	.p2align	3                               ## @switch.table.tncs_derive_recommendation.7
l_switch.table.tncs_derive_recommendation.7:
	.quad	_TNCCS_RECOMMENDATION_NO_RECOMMENDATION
	.quad	_TNCCS_RECOMMENDATION_NO_ACCESS
	.quad	_TNCCS_RECOMMENDATION_ISOLATE
	.quad	_TNCCS_RECOMMENDATION_ALLOW

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function tncs_derive_recommendation
lCPI0_0:
	.long	1                               ; 0x1
	.long	128                             ; 0x80
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_tncs_derive_recommendation:            ; @tncs_derive_recommendation
	.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	x19, x0
Lloh0:
	adrp	x20, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x20, [x20, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	ldr	w8, [x19]
	cbz	w8, LBB0_2
; %bb.1:
Lloh4:
	adrp	x8, _TNCCS_PROCESS_OK_NO_RECOMMENDATION@GOTPAGE
Lloh5:
	ldr	x8, [x8, _TNCCS_PROCESS_OK_NO_RECOMMENDATION@GOTPAGEOFF]
	b	LBB0_15
LBB0_2:
	mov	x0, x19
	bl	_tncs_solicit_recommendation
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_7
; %bb.3:
	ldr	x9, [x19, #32]
	mov	w22, #128
	mov	w10, #129
	mov	w11, #130
	mov	w12, #131
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x13, x8, [x8]
	ldr	x13, [x9, x13, lsl #3]
	cmp	x13, #129
	csel	w14, w10, w22, eq
	cmp	w14, #129
	ccmp	x13, x11, #0, ne
	csel	w14, w11, w14, eq
	cmp	w14, #128
	ccmp	x13, x12, #0, eq
	csel	w22, w12, w14, eq
	cbnz	x8, LBB0_4
; %bb.5:
	ldr	w0, [x20]
	str	x22, [sp]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
	mov	w8, #1
	stp	w8, w22, [x19]
	sub	w8, w22, #128
	cmp	w8, #4
	b.hs	LBB0_16
; %bb.6:
	sbfiz	x9, x8, #3, #32
Lloh8:
	adrp	x8, l_switch.table.tncs_derive_recommendation@PAGE
Lloh9:
	add	x8, x8, l_switch.table.tncs_derive_recommendation@PAGEOFF
	ldr	x8, [x8, x9]
Lloh10:
	adrp	x10, l_switch.table.tncs_derive_recommendation.6@PAGE
Lloh11:
	add	x10, x10, l_switch.table.tncs_derive_recommendation.6@PAGEOFF
	ldr	x21, [x10, x9]
	b	LBB0_8
LBB0_7:
	ldr	w0, [x20]
	mov	w22, #128
	str	x22, [sp]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
Lloh14:
	adrp	x8, lCPI0_0@PAGE
Lloh15:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x19]
Lloh16:
	adrp	x21, l_.str.2@PAGE
Lloh17:
	add	x21, x21, l_.str.2@PAGEOFF
Lloh18:
	adrp	x8, _TNC_CONNECTION_STATE_ACCESS_ALLOWED@GOTPAGE
Lloh19:
	ldr	x8, [x8, _TNC_CONNECTION_STATE_ACCESS_ALLOWED@GOTPAGEOFF]
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
LBB0_8:
	ldr	w20, [x8]
	ldr	x0, [x19, #24]
	bl	_os_free
	mov	w0, #200
	bl	_os_zalloc
	str	x0, [x19, #24]
	cbz	x0, LBB0_10
; %bb.9:
Lloh20:
	adrp	x8, _TNC_TNCCS_RECOMMENDATION@GOTPAGE
Lloh21:
	ldr	x8, [x8, _TNC_TNCCS_RECOMMENDATION@GOTPAGEOFF]
Lloh22:
	ldr	w3, [x8]
Lloh23:
	adrp	x2, l_.str.5@PAGE
Lloh24:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	w1, #199
	mov	x4, x21
	bl	_os_snprintf
LBB0_10:
	ldr	x21, [x19, #16]
	cbz	x21, LBB0_12
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x19, #8]
	mov	x0, x21
	mov	x2, x20
	bl	_tncs_imv_notify_connection_change
	ldr	x21, [x21, #8]
	cbnz	x21, LBB0_11
LBB0_12:
	sub	w8, w22, #128
	cmp	w8, #3
	b.hi	LBB0_14
; %bb.13:
Lloh25:
	adrp	x9, l_switch.table.tncs_derive_recommendation.7@PAGE
Lloh26:
	add	x9, x9, l_switch.table.tncs_derive_recommendation.7@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	b	LBB0_15
LBB0_14:
Lloh27:
	adrp	x8, _TNCCS_PROCESS_ERROR@GOTPAGE
Lloh28:
	ldr	x8, [x8, _TNCCS_PROCESS_ERROR@GOTPAGEOFF]
LBB0_15:
	ldr	w0, [x8]
	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
LBB0_16:
Lloh29:
	adrp	x8, _TNC_CONNECTION_STATE_ACCESS_ALLOWED@GOTPAGE
Lloh30:
	ldr	x8, [x8, _TNC_CONNECTION_STATE_ACCESS_ALLOWED@GOTPAGEOFF]
Lloh31:
	ldr	w20, [x8]
	ldr	x21, [x19, #16]
	cbnz	x21, LBB0_11
	b	LBB0_12
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdrp	Lloh14, Lloh18
	.loh AdrpLdr	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TNC: No more messages from IMVs"

	.comm	_TNCCS_PROCESS_OK_NO_RECOMMENDATION,4,2 ; @TNCCS_PROCESS_OK_NO_RECOMMENDATION
l_.str.1:                               ; @.str.1
	.asciz	"TNC: Recommendation: %d"

l_.str.2:                               ; @.str.2
	.asciz	"allow"

	.comm	_TNC_CONNECTION_STATE_ACCESS_ALLOWED,4,2 ; @TNC_CONNECTION_STATE_ACCESS_ALLOWED
l_.str.3:                               ; @.str.3
	.asciz	"isolate"

	.comm	_TNC_CONNECTION_STATE_ACCESS_ISOLATED,4,2 ; @TNC_CONNECTION_STATE_ACCESS_ISOLATED
l_.str.4:                               ; @.str.4
	.asciz	"none"

	.comm	_TNC_CONNECTION_STATE_ACCESS_NONE,4,2 ; @TNC_CONNECTION_STATE_ACCESS_NONE
l_.str.5:                               ; @.str.5
	.asciz	"<TNCC-TNCS-Message><Type>%08X</Type><XML><TNCCS-Recommendation type=\"%s\"></TNCCS-Recommendation></XML></TNCC-TNCS-Message>"

	.comm	_TNC_TNCCS_RECOMMENDATION,4,2   ; @TNC_TNCCS_RECOMMENDATION
	.comm	_TNCCS_RECOMMENDATION_ALLOW,4,2 ; @TNCCS_RECOMMENDATION_ALLOW
	.comm	_TNCCS_RECOMMENDATION_NO_ACCESS,4,2 ; @TNCCS_RECOMMENDATION_NO_ACCESS
	.comm	_TNCCS_RECOMMENDATION_ISOLATE,4,2 ; @TNCCS_RECOMMENDATION_ISOLATE
	.comm	_TNCCS_RECOMMENDATION_NO_RECOMMENDATION,4,2 ; @TNCCS_RECOMMENDATION_NO_RECOMMENDATION
	.comm	_TNCCS_PROCESS_ERROR,4,2        ; @TNCCS_PROCESS_ERROR
	.no_dead_strip	_tncs_derive_recommendation
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.tncs_derive_recommendation
l_switch.table.tncs_derive_recommendation:
	.quad	_TNC_CONNECTION_STATE_ACCESS_ALLOWED
	.quad	_TNC_CONNECTION_STATE_ACCESS_NONE
	.quad	_TNC_CONNECTION_STATE_ACCESS_ISOLATED
	.quad	_TNC_CONNECTION_STATE_ACCESS_ALLOWED

	.p2align	3                               ; @switch.table.tncs_derive_recommendation.6
l_switch.table.tncs_derive_recommendation.6:
	.quad	l_.str.2
	.quad	l_.str.4
	.quad	l_.str.3
	.quad	l_.str.2

	.p2align	3                               ; @switch.table.tncs_derive_recommendation.7
l_switch.table.tncs_derive_recommendation.7:
	.quad	_TNCCS_RECOMMENDATION_NO_RECOMMENDATION
	.quad	_TNCCS_RECOMMENDATION_NO_ACCESS
	.quad	_TNCCS_RECOMMENDATION_ISOLATE
	.quad	_TNCCS_RECOMMENDATION_ALLOW

.subsections_via_symbols
