	.file	"extr_tncs.c_tncs_derive_recommendation.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"allow"
.LC1:
	.string	"isolate"
.LC2:
	.string	"none"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC3:
	.string	"TNC: No more messages from IMVs"
	.section	.rodata.str1.1
.LC4:
	.string	"TNC: Recommendation: %d"
	.section	.rodata.str1.8
	.align 8
.LC5:
	.string	"<TNCC-TNCS-Message><Type>%08X</Type><XML><TNCCS-Recommendation type=\"%s\"></TNCCS-Recommendation></XML></TNCC-TNCS-Message>"
	.text
	.p2align 4
	.type	tncs_derive_recommendation, @function
tncs_derive_recommendation:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	lea	rsi, .LC3[rip]
	xor	eax, eax
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	call	wpa_printf@PLT
	mov	eax, DWORD PTR [r12]
	test	eax, eax
	je	.L2
	mov	eax, DWORD PTR TNCCS_PROCESS_OK_NO_RECOMMENDATION[rip]
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rdi, r12
	call	tncs_solicit_recommendation@PLT
	mov	rax, QWORD PTR 16[r12]
	test	rax, rax
	je	.L4
	mov	rcx, QWORD PTR 32[r12]
	mov	ebp, 128
	mov	esi, 131
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L46:
	cmp	rdx, 130
	jne	.L24
	cmp	ebp, 129
	je	.L24
	mov	ebp, 130
.L5:
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	je	.L45
.L8:
	mov	rdx, QWORD PTR [rax]
	mov	rdx, QWORD PTR [rcx+rdx*8]
	cmp	rdx, 129
	jne	.L46
	mov	rax, QWORD PTR 8[rax]
	mov	ebp, 129
	test	rax, rax
	jne	.L8
.L45:
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	mov	edx, ebp
	lea	rsi, .LC4[rip]
	xor	eax, eax
	lea	rbx, .LC2[rip]
	call	wpa_printf@PLT
	mov	DWORD PTR 4[r12], ebp
	mov	r13d, DWORD PTR TNC_CONNECTION_STATE_ACCESS_NONE[rip]
	mov	DWORD PTR [r12], 1
	cmp	ebp, 129
	je	.L13
	mov	r13d, DWORD PTR TNC_CONNECTION_STATE_ACCESS_ISOLATED[rip]
	lea	rbx, .LC1[rip]
	cmp	ebp, 130
	jne	.L10
.L13:
	mov	rdi, QWORD PTR 24[r12]
	call	os_free@PLT
	mov	edi, 200
	call	os_zalloc@PLT
	mov	QWORD PTR 24[r12], rax
	test	rax, rax
	jne	.L47
.L14:
	mov	rbx, QWORD PTR 16[r12]
	test	rbx, rbx
	je	.L15
	.p2align 4,,10
	.p2align 3
.L16:
	mov	esi, DWORD PTR 8[r12]
	mov	rdi, rbx
	mov	edx, r13d
	call	tncs_imv_notify_connection_change@PLT
	mov	rbx, QWORD PTR 8[rbx]
	test	rbx, rbx
	jne	.L16
.L15:
	cmp	ebp, 130
	je	.L17
	mov	eax, DWORD PTR TNCCS_RECOMMENDATION_ALLOW[rip]
	cmp	ebp, 131
	je	.L1
	cmp	ebp, 129
	mov	eax, DWORD PTR TNCCS_RECOMMENDATION_NO_RECOMMENDATION[rip]
	cmove	eax, DWORD PTR TNCCS_RECOMMENDATION_NO_ACCESS[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L24:
	.cfi_restore_state
	cmp	rdx, 131
	jne	.L5
	cmp	ebp, 128
	cmove	ebp, esi
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L4:
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	mov	edx, 128
	lea	rsi, .LC4[rip]
	xor	eax, eax
	mov	ebp, 128
	call	wpa_printf@PLT
	movabs	rax, 549755813889
	mov	QWORD PTR [r12], rax
.L10:
	mov	r13d, DWORD PTR TNC_CONNECTION_STATE_ACCESS_ALLOWED[rip]
	lea	rbx, .LC0[rip]
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L47:
	mov	ecx, DWORD PTR TNC_TNCCS_RECOMMENDATION[rip]
	mov	r8, rbx
	mov	esi, 199
	mov	rdi, rax
	lea	rdx, .LC5[rip]
	call	os_snprintf@PLT
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L17:
	mov	eax, DWORD PTR TNCCS_RECOMMENDATION_ISOLATE[rip]
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	tncs_derive_recommendation, .-tncs_derive_recommendation
	.comm	TNC_TNCCS_RECOMMENDATION,4,4
	.comm	TNC_CONNECTION_STATE_ACCESS_NONE,4,4
	.comm	TNC_CONNECTION_STATE_ACCESS_ISOLATED,4,4
	.comm	TNC_CONNECTION_STATE_ACCESS_ALLOWED,4,4
	.comm	TNCCS_RECOMMENDATION_NO_RECOMMENDATION,4,4
	.comm	TNCCS_RECOMMENDATION_NO_ACCESS,4,4
	.comm	TNCCS_RECOMMENDATION_ISOLATE,4,4
	.comm	TNCCS_RECOMMENDATION_ALLOW,4,4
	.comm	TNCCS_PROCESS_OK_NO_RECOMMENDATION,4,4
	.comm	TNCCS_PROCESS_ERROR,4,4
	.comm	MSG_DEBUG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_tncs.c_tncs_derive_recommendation.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"allow\000"
	.align	2
.LC1:
	.ascii	"isolate\000"
	.align	2
.LC2:
	.ascii	"none\000"
	.align	2
.LC3:
	.ascii	"TNC: No more messages from IMVs\000"
	.align	2
.LC4:
	.ascii	"TNC: Recommendation: %d\000"
	.align	2
.LC5:
	.ascii	"<TNCC-TNCS-Message><Type>%08X</Type><XML><TNCCS-Rec"
	.ascii	"ommendation type=\"%s\"></TNCCS-Recommendation></XM"
	.ascii	"L></TNCC-TNCS-Message>\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	tncs_derive_recommendation, %function
tncs_derive_recommendation:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r6, r0
	ldr	r4, .L36
	ldr	r1, .L36+4
	ldr	r0, [r4]
	sub	sp, sp, #12
	bl	wpa_printf
	ldr	r3, [r6]
	cmp	r3, #0
	beq	.L2
	ldr	r3, .L36+8
	ldr	r0, [r3]
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L2:
	mov	r0, r6
	bl	tncs_solicit_recommendation
	ldr	r3, [r6, #12]
	cmp	r3, #0
	beq	.L4
	mov	r5, #128
	ldr	r0, [r6, #20]
.L6:
	ldr	r2, [r3]
	ldr	r2, [r0, r2, lsl #2]
	cmp	r2, #129
	moveq	r5, r2
	beq	.L5
	sub	r1, r2, #130
	clz	r1, r1
	cmp	r5, #129
	lsr	r1, r1, #5
	moveq	r1, #0
	cmp	r1, #0
	movne	r5, #130
	bne	.L5
	cmp	r2, #131
	cmpeq	r5, #128
	moveq	r5, #131
.L5:
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bne	.L6
	mov	r2, r5
	ldr	r0, [r4]
	ldr	r1, .L36+12
	bl	wpa_printf
	mov	r3, #1
	cmp	r5, #129
	stm	r6, {r3, r5}
	beq	.L9
	cmp	r5, #130
	bne	.L8
	ldr	r3, .L36+16
	ldr	r4, .L36+20
	ldr	r7, [r3]
.L11:
	ldr	r0, [r6, #16]
	bl	os_free
	mov	r0, #200
	bl	os_zalloc
	cmp	r0, #0
	str	r0, [r6, #16]
	bne	.L34
.L12:
	ldr	r4, [r6, #12]
	cmp	r4, #0
	beq	.L13
.L14:
	mov	r0, r4
	mov	r2, r7
	ldr	r1, [r6, #8]
	bl	tncs_imv_notify_connection_change
	ldr	r4, [r4, #4]
	cmp	r4, #0
	bne	.L14
.L13:
	cmp	r5, #130
	beq	.L15
	cmp	r5, #131
	beq	.L16
	cmp	r5, #129
	beq	.L35
	ldr	r3, .L36+24
	ldr	r0, [r3]
	b	.L1
.L9:
	ldr	r3, .L36+28
	ldr	r4, .L36+32
	ldr	r7, [r3]
	b	.L11
.L4:
	mov	r2, #128
	ldr	r0, [r4]
	ldr	r1, .L36+12
	bl	wpa_printf
	mov	r5, #128
	mov	r3, #1
	stm	r6, {r3, r5}
.L8:
	ldr	r3, .L36+36
	ldr	r4, .L36+40
	ldr	r7, [r3]
	b	.L11
.L34:
	ldr	r3, .L36+44
	str	r4, [sp]
	mov	r1, #199
	ldr	r3, [r3]
	ldr	r2, .L36+48
	bl	os_snprintf
	b	.L12
.L35:
	ldr	r3, .L36+52
	ldr	r0, [r3]
	b	.L1
.L16:
	ldr	r3, .L36+56
	ldr	r0, [r3]
	b	.L1
.L15:
	ldr	r3, .L36+60
	ldr	r0, [r3]
	b	.L1
.L37:
	.align	2
.L36:
	.word	MSG_DEBUG
	.word	.LC3
	.word	TNCCS_PROCESS_OK_NO_RECOMMENDATION
	.word	.LC4
	.word	TNC_CONNECTION_STATE_ACCESS_ISOLATED
	.word	.LC1
	.word	TNCCS_RECOMMENDATION_NO_RECOMMENDATION
	.word	TNC_CONNECTION_STATE_ACCESS_NONE
	.word	.LC2
	.word	TNC_CONNECTION_STATE_ACCESS_ALLOWED
	.word	.LC0
	.word	TNC_TNCCS_RECOMMENDATION
	.word	.LC5
	.word	TNCCS_RECOMMENDATION_NO_ACCESS
	.word	TNCCS_RECOMMENDATION_ALLOW
	.word	TNCCS_RECOMMENDATION_ISOLATE
	.size	tncs_derive_recommendation, .-tncs_derive_recommendation
	.comm	TNC_TNCCS_RECOMMENDATION,4,4
	.comm	TNC_CONNECTION_STATE_ACCESS_NONE,4,4
	.comm	TNC_CONNECTION_STATE_ACCESS_ISOLATED,4,4
	.comm	TNC_CONNECTION_STATE_ACCESS_ALLOWED,4,4
	.comm	TNCCS_RECOMMENDATION_NO_RECOMMENDATION,4,4
	.comm	TNCCS_RECOMMENDATION_NO_ACCESS,4,4
	.comm	TNCCS_RECOMMENDATION_ISOLATE,4,4
	.comm	TNCCS_RECOMMENDATION_ALLOW,4,4
	.comm	TNCCS_PROCESS_OK_NO_RECOMMENDATION,4,4
	.comm	TNCCS_PROCESS_ERROR,4,4
	.comm	MSG_DEBUG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
