	.file	"extr_eap_server_tnc.c_eap_tnc_process.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"EAP-TNC: Peer acknowledged the last message"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"EAP-TNC: Message underflow"
	.section	.rodata.str1.8
	.align 8
.LC2:
	.string	"EAP-TNC: Invalid Message Length (%d; %ld remaining in this msg)"
	.align 8
.LC3:
	.string	"EAP-TNC: Received packet: Flags 0x%x Message Length %u"
	.align 8
.LC4:
	.string	"EAP-TNC: Unexpected payload in WAIT_FRAG_ACK state"
	.align 8
.LC5:
	.string	"EAP-TNC: Fragment acknowledged"
	.align 8
.LC6:
	.string	"EAP-TNC: All fragments received"
	.section	.rodata.str1.1
.LC7:
	.string	"EAP-TNC: Received payload"
	.text
	.p2align 4
	.type	eap_tnc_process, @function
eap_tnc_process:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 32
	.cfi_def_cfa_offset 80
	mov	esi, DWORD PTR EAP_TYPE_TNC[rip]
	mov	edi, DWORD PTR EAP_VENDOR_IETF[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	lea	rcx, 16[rsp]
	call	eap_hdr_validate@PLT
	test	rax, rax
	je	.L1
	mov	r12, rax
	mov	rax, QWORD PTR 16[rsp]
	lea	rdx, 0[0+rax*4]
	lea	rbx, [r12+rdx]
	cmp	rax, 1
	je	.L35
	xor	r14d, r14d
	xor	r13d, r13d
	test	rax, rax
	jne	.L36
.L6:
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	mov	ecx, r13d
	mov	edx, r14d
	xor	eax, eax
	lea	rsi, .LC3[rip]
	call	wpa_printf@PLT
	mov	rax, QWORD PTR WAIT_FRAG_ACK[rip]
	cmp	QWORD PTR 0[rbp], rax
	je	.L37
	cmp	QWORD PTR 8[rbp], 0
	je	.L11
	mov	rdx, rbx
	mov	rsi, r12
	mov	rdi, rbp
	sub	rdx, r12
	sar	rdx, 2
	call	eap_tnc_process_cont@PLT
	test	rax, rax
	js	.L33
.L11:
	test	DWORD PTR EAP_TNC_FLAGS_MORE_FRAGMENTS[rip], r14d
	jne	.L38
	mov	rax, QWORD PTR FRAG_ACK[rip]
	cmp	QWORD PTR 0[rbp], rax
	je	.L39
.L14:
	mov	rdi, QWORD PTR 8[rbp]
	lea	r13, 12[rsp]
	test	rdi, rdi
	je	.L40
.L15:
	call	wpabuf_len@PLT
	mov	rdi, QWORD PTR 8[rbp]
	mov	r12d, eax
	call	wpabuf_head@PLT
	mov	edi, DWORD PTR MSG_MSGDUMP[rip]
	mov	ecx, r12d
	lea	rsi, .LC7[rip]
	mov	edx, eax
	call	wpa_hexdump_ascii@PLT
	mov	rsi, QWORD PTR 8[rbp]
	mov	rdi, rbp
	call	tncs_process@PLT
	mov	rdi, QWORD PTR 8[rbp]
	cmp	rdi, r13
	je	.L16
	call	wpabuf_free@PLT
.L16:
	mov	QWORD PTR 8[rbp], 0
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L41
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L36:
	.cfi_restore_state
	mov	r14d, DWORD PTR [r12]
	lea	rdi, 4[r12]
	mov	r13d, r14d
	and	r13d, DWORD PTR EAP_TNC_FLAGS_LENGTH_INCLUDED[rip]
	je	.L21
	cmp	rdx, 16
	jle	.L18
	call	WPA_GET_BE32@PLT
	add	r12, 20
	mov	rcx, rbx
	sub	rcx, r12
	mov	r13d, eax
	sar	rcx, 2
	cmp	eax, 75000
	jg	.L22
	cmp	eax, ecx
	jge	.L6
.L22:
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	mov	edx, r13d
	lea	rsi, .LC2[rip]
	xor	eax, eax
	call	wpa_printf@PLT
	mov	rsi, QWORD PTR FAIL[rip]
	mov	rdi, rbp
	call	eap_tnc_set_state@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L35:
	mov	rax, QWORD PTR 0[rbp]
	cmp	rax, QWORD PTR DONE[rip]
	je	.L4
	cmp	rax, QWORD PTR FAIL[rip]
	je	.L4
	mov	r14d, DWORD PTR [r12]
	lea	rax, 4[r12]
	mov	r13d, r14d
	and	r13d, DWORD PTR EAP_TNC_FLAGS_LENGTH_INCLUDED[rip]
	je	.L42
.L18:
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	lea	rsi, .LC1[rip]
.L32:
	xor	eax, eax
	call	wpa_printf@PLT
.L33:
	mov	rsi, QWORD PTR FAIL[rip]
	mov	rdi, rbp
	call	eap_tnc_set_state@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	lea	rsi, .LC0[rip]
	xor	eax, eax
	call	wpa_printf@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L37:
	cmp	QWORD PTR 16[rsp], 1
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	jbe	.L10
	lea	rsi, .LC4[rip]
	jmp	.L32
	.p2align 4,,10
	.p2align 3
.L10:
	lea	rsi, .LC5[rip]
	xor	eax, eax
	call	wpa_printf@PLT
	mov	rsi, QWORD PTR CONTINUE[rip]
	mov	rdi, rbp
	call	eap_tnc_set_state@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L38:
	sub	rbx, r12
	mov	rcx, r12
	mov	edx, r13d
	mov	esi, r14d
	mov	r8, rbx
	mov	rdi, rbp
	sar	r8, 2
	call	eap_tnc_process_fragment@PLT
	test	rax, rax
	js	.L33
	mov	rsi, QWORD PTR FRAG_ACK[rip]
	mov	rdi, rbp
	call	eap_tnc_set_state@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L39:
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	lea	rsi, .LC6[rip]
	xor	eax, eax
	call	wpa_printf@PLT
	mov	rsi, QWORD PTR CONTINUE[rip]
	mov	rdi, rbp
	call	eap_tnc_set_state@PLT
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L40:
	sub	rbx, r12
	mov	rdi, r13
	mov	rsi, r12
	mov	rdx, rbx
	sar	rdx, 2
	call	wpabuf_set@PLT
	mov	QWORD PTR 8[rbp], r13
	mov	rdi, r13
	jmp	.L15
.L41:
	call	__stack_chk_fail@PLT
.L42:
	mov	r12, rax
	jmp	.L6
.L21:
	mov	r12, rdi
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	eap_tnc_process, .-eap_tnc_process
	.comm	WAIT_FRAG_ACK,8,8
	.comm	MSG_MSGDUMP,4,4
	.comm	MSG_DEBUG,4,4
	.comm	FRAG_ACK,8,8
	.comm	FAIL,8,8
	.comm	EAP_VENDOR_IETF,4,4
	.comm	EAP_TYPE_TNC,4,4
	.comm	EAP_TNC_FLAGS_MORE_FRAGMENTS,4,4
	.comm	EAP_TNC_FLAGS_LENGTH_INCLUDED,4,4
	.comm	DONE,8,8
	.comm	CONTINUE,8,8
	.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_eap_server_tnc.c_eap_tnc_process.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"EAP-TNC: Peer acknowledged the last message\000"
	.align	2
.LC1:
	.ascii	"EAP-TNC: Message underflow\000"
	.align	2
.LC2:
	.ascii	"EAP-TNC: Invalid Message Length (%d; %ld remaining "
	.ascii	"in this msg)\000"
	.align	2
.LC3:
	.ascii	"EAP-TNC: Received packet: Flags 0x%x Message Length"
	.ascii	" %u\000"
	.align	2
.LC4:
	.ascii	"EAP-TNC: Unexpected payload in WAIT_FRAG_ACK state\000"
	.align	2
.LC5:
	.ascii	"EAP-TNC: Fragment acknowledged\000"
	.align	2
.LC6:
	.ascii	"EAP-TNC: All fragments received\000"
	.align	2
.LC7:
	.ascii	"EAP-TNC: Received payload\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	eap_tnc_process, %function
eap_tnc_process:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r3, .L43
	mov	r7, r1
	ldr	r1, .L43+4
	sub	sp, sp, #28
	ldr	ip, .L43+8
	ldr	r0, [r3]
	ldr	r1, [r1]
	add	r3, sp, #12
	ldr	ip, [ip]
	str	ip, [sp, #20]
	mov	ip,#0
	bl	eap_hdr_validate
	subs	r4, r0, #0
	beq	.L1
	ldr	r2, [sp, #12]
	cmp	r2, #1
	lsl	r3, r2, #2
	add	r8, r4, r2, lsl #2
	beq	.L35
	cmp	r2, #0
	moveq	r6, r2
	moveq	r5, r6
	bne	.L36
.L6:
	ldr	r9, .L43+12
	mov	r3, r5
	mov	r2, r6
	ldr	r0, [r9]
	ldr	r1, .L43+16
	bl	wpa_printf
	ldr	r3, .L43+20
	ldr	r2, [r7]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L37
	ldr	r3, [r7, #4]
	cmp	r3, #0
	beq	.L10
	sub	r2, r8, r4
	mov	r1, r4
	mov	r0, r7
	asr	r2, r2, #2
	bl	eap_tnc_process_cont
	cmp	r0, #0
	blt	.L33
.L10:
	ldr	r3, .L43+24
	ldr	r3, [r3]
	tst	r6, r3
	bne	.L38
	ldr	r3, .L43+28
	ldr	r2, [r7]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L39
.L13:
	ldr	r0, [r7, #4]
	cmp	r0, #0
	addne	r5, sp, #16
	beq	.L40
.L14:
	ldr	r3, .L43+32
	ldr	r6, [r3]
	bl	wpabuf_head
	mov	r4, r0
	ldr	r0, [r7, #4]
	bl	wpabuf_len
	mov	r2, r4
	mov	r3, r0
	ldr	r1, .L43+36
	mov	r0, r6
	bl	wpa_hexdump_ascii
	mov	r0, r7
	ldr	r1, [r7, #4]
	bl	tncs_process
	ldr	r0, [r7, #4]
	cmp	r0, r5
	beq	.L15
	bl	wpabuf_free
.L15:
	mov	r3, #0
	str	r3, [r7, #4]
.L1:
	ldr	r3, .L43+8
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L41
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L36:
	mov	r0, r4
	ldr	r2, .L43+40
	ldr	r6, [r0], #4
	ldr	r5, [r2]
	ands	r5, r6, r5
	beq	.L20
	cmp	r3, #16
	ble	.L42
	bl	WPA_GET_BE32
	add	r4, r4, #20
	sub	r3, r8, r4
	ldr	r1, .L43+44
	asr	r2, r3, #2
	cmp	r2, r0
	cmple	r0, r1
	mov	r5, r0
	mov	r3, r2
	ble	.L6
	ldr	r1, .L43+12
	mov	r2, r0
	ldr	r0, [r1]
	ldr	r1, .L43+48
	bl	wpa_printf
	ldr	r3, .L43+52
	mov	r0, r7
	ldr	r1, [r3]
	bl	eap_tnc_set_state
	b	.L1
.L35:
	ldr	r2, .L43+56
	ldr	r3, [r7]
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L4
	ldr	r9, .L43+52
	ldr	r2, [r9]
	cmp	r3, r2
	beq	.L4
	ldr	r3, .L43+40
	ldr	r6, [r4], #4
	ldr	r5, [r3]
	ands	r5, r6, r5
	beq	.L6
.L17:
	ldr	r3, .L43+12
	ldr	r1, .L43+60
	ldr	r0, [r3]
	bl	wpa_printf
	mov	r0, r7
	ldr	r1, [r9]
	bl	eap_tnc_set_state
	b	.L1
.L4:
	ldr	r3, .L43+12
	ldr	r1, .L43+64
	ldr	r0, [r3]
	bl	wpa_printf
	b	.L1
.L37:
	ldr	r3, [sp, #12]
	ldr	r0, [r9]
	cmp	r3, #1
	bls	.L9
	ldr	r1, .L43+68
	bl	wpa_printf
	ldr	r3, .L43+52
	mov	r0, r7
	ldr	r1, [r3]
	bl	eap_tnc_set_state
	b	.L1
.L9:
	ldr	r1, .L43+72
	bl	wpa_printf
	ldr	r3, .L43+76
	mov	r0, r7
	ldr	r1, [r3]
	bl	eap_tnc_set_state
	b	.L1
.L38:
	sub	r8, r8, r4
	asr	r8, r8, #2
	mov	r3, r4
	mov	r2, r5
	mov	r1, r6
	mov	r0, r7
	str	r8, [sp]
	bl	eap_tnc_process_fragment
	cmp	r0, #0
	blt	.L33
	ldr	r3, .L43+28
	mov	r0, r7
	ldr	r1, [r3]
	bl	eap_tnc_set_state
	b	.L1
.L39:
	ldr	r0, [r9]
	ldr	r1, .L43+80
	bl	wpa_printf
	ldr	r3, .L43+76
	mov	r0, r7
	ldr	r1, [r3]
	bl	eap_tnc_set_state
	b	.L13
.L40:
	add	r5, sp, #16
	sub	r2, r8, r4
	mov	r1, r4
	mov	r0, r5
	asr	r2, r2, #2
	bl	wpabuf_set
	mov	r0, r5
	str	r5, [r7, #4]
	b	.L14
.L33:
	ldr	r3, .L43+52
	mov	r0, r7
	ldr	r1, [r3]
	bl	eap_tnc_set_state
	b	.L1
.L41:
	bl	__stack_chk_fail
.L20:
	mov	r4, r0
	b	.L6
.L42:
	ldr	r9, .L43+52
	b	.L17
.L44:
	.align	2
.L43:
	.word	EAP_VENDOR_IETF
	.word	EAP_TYPE_TNC
	.word	.LC8
	.word	MSG_DEBUG
	.word	.LC3
	.word	WAIT_FRAG_ACK
	.word	EAP_TNC_FLAGS_MORE_FRAGMENTS
	.word	FRAG_ACK
	.word	MSG_MSGDUMP
	.word	.LC7
	.word	EAP_TNC_FLAGS_LENGTH_INCLUDED
	.word	75000
	.word	.LC2
	.word	FAIL
	.word	DONE
	.word	.LC1
	.word	.LC0
	.word	.LC4
	.word	.LC5
	.word	CONTINUE
	.word	.LC6
	.size	eap_tnc_process, .-eap_tnc_process
	.comm	WAIT_FRAG_ACK,4,4
	.comm	MSG_MSGDUMP,4,4
	.comm	MSG_DEBUG,4,4
	.comm	FRAG_ACK,4,4
	.comm	FAIL,4,4
	.comm	EAP_VENDOR_IETF,4,4
	.comm	EAP_TYPE_TNC,4,4
	.comm	EAP_TNC_FLAGS_MORE_FRAGMENTS,4,4
	.comm	EAP_TNC_FLAGS_LENGTH_INCLUDED,4,4
	.comm	DONE,4,4
	.comm	CONTINUE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
