	.file	"extr_eap_teap.c_eap_teap_decrypt.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"EAP-TEAP: Received %lu bytes encrypted data for Phase 2"
	.align 8
.LC1:
	.string	"EAP-TEAP: Pending Phase 2 request - skip decryption and use old data"
	.align 8
.LC2:
	.string	"EAP-TEAP: Mark authentication completed at full TX of fragments"
	.align 8
.LC3:
	.string	"EAP-TEAP: Decrypted Phase 2 TLV(s)"
	.align 8
.LC4:
	.string	"EAP-TEAP: Too short Phase 2 TLV frame (len=%lu)"
	.text
	.p2align 4
	.type	eap_teap_decrypt, @function
eap_teap_decrypt:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, ecx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	mov	rdi, r8
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, r8
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, r9
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	wpabuf_len@PLT
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	lea	rsi, .LC0[rip]
	movsx	rdx, eax
	xor	eax, eax
	call	wpa_printf@PLT
	cmp	QWORD PTR 24[rbp], 0
	je	.L2
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	lea	rsi, .LC1[rip]
	xor	eax, eax
	call	wpa_printf@PLT
	mov	rdi, rbp
	call	eap_peer_tls_reset_input@PLT
	mov	rdx, QWORD PTR 24[rbp]
	mov	QWORD PTR 24[rbp], 0
	mov	QWORD PTR [rsp], rdx
.L3:
	mov	edi, DWORD PTR MSG_MSGDUMP[rip]
	lea	rsi, .LC3[rip]
	call	wpa_hexdump_buf@PLT
	mov	rdi, QWORD PTR [rsp]
	call	wpabuf_len@PLT
	cmp	eax, 3
	jle	.L11
	mov	r8, QWORD PTR [rsp]
	mov	rdi, r13
	mov	r9, rbx
	mov	ecx, r14d
	mov	rdx, r15
	mov	rsi, rbp
	call	eap_teap_process_decrypted@PLT
	mov	rdi, QWORD PTR [rsp]
	mov	r12d, eax
	call	wpabuf_free@PLT
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L12
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rdi, r12
	call	wpabuf_len@PLT
	test	eax, eax
	je	.L13
	mov	rdx, r12
	mov	rcx, rsp
	mov	rsi, rbp
	mov	rdi, r13
	call	eap_peer_tls_decrypt@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	mov	rdx, QWORD PTR [rsp]
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L13:
	sub	rsp, 8
	.cfi_def_cfa_offset 88
	mov	ecx, DWORD PTR 16[rbp]
	mov	edx, DWORD PTR EAP_TYPE_TEAP[rip]
	xor	r9d, r9d
	push	rbx
	.cfi_def_cfa_offset 96
	mov	r8d, r14d
	mov	rsi, rbp
	mov	rdi, r13
	call	eap_peer_tls_encrypt@PLT
	pop	rdx
	.cfi_def_cfa_offset 88
	pop	rcx
	.cfi_def_cfa_offset 80
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	mov	eax, DWORD PTR 0[rbp]
	test	eax, eax
	jne	.L1
	cmp	QWORD PTR 8[rbp], 0
	je	.L1
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	lea	rsi, .LC2[rip]
	xor	eax, eax
	call	wpa_printf@PLT
	mov	rax, QWORD PTR 8[rbp]
	mov	QWORD PTR 8[r15], rax
	mov	eax, DWORD PTR DECISION_UNCOND_SUCC[rip]
	mov	QWORD PTR 8[rbp], 0
	mov	DWORD PTR [r15], eax
	jmp	.L1
.L11:
	mov	rdi, QWORD PTR [rsp]
	mov	r12d, -1
	call	wpabuf_len@PLT
	mov	edi, DWORD PTR MSG_INFO[rip]
	lea	rsi, .LC4[rip]
	movsx	rdx, eax
	xor	eax, eax
	call	wpa_printf@PLT
	mov	rdi, QWORD PTR [rsp]
	call	wpabuf_free@PLT
	jmp	.L1
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	eap_teap_decrypt, .-eap_teap_decrypt
	.comm	MSG_MSGDUMP,4,4
	.comm	MSG_INFO,4,4
	.comm	MSG_DEBUG,4,4
	.comm	EAP_TYPE_TEAP,4,4
	.comm	DECISION_UNCOND_SUCC,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_eap_teap.c_eap_teap_decrypt.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"EAP-TEAP: Received %lu bytes encrypted data for Pha"
	.ascii	"se 2\000"
	.align	2
.LC1:
	.ascii	"EAP-TEAP: Pending Phase 2 request - skip decryption"
	.ascii	" and use old data\000"
	.align	2
.LC2:
	.ascii	"EAP-TEAP: Mark authentication completed at full TX "
	.ascii	"of fragments\000"
	.align	2
.LC3:
	.ascii	"EAP-TEAP: Decrypted Phase 2 TLV(s)\000"
	.align	2
.LC4:
	.ascii	"EAP-TEAP: Too short Phase 2 TLV frame (len=%lu)\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	eap_teap_decrypt, %function
eap_teap_decrypt:
	@ args = 8, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #28
	ldr	r5, [sp, #64]
	mov	r7, r3
	ldr	r9, .L16
	ldr	r3, .L16+4
	mov	r6, r0
	mov	r0, r5
	mov	r4, r1
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	mov	r8, r2
	ldr	fp, [r9]
	ldr	r10, [sp, #68]
	bl	wpabuf_len
	ldr	r1, .L16+8
	mov	r2, r0
	mov	r0, fp
	bl	wpa_printf
	ldr	r3, [r4, #12]
	cmp	r3, #0
	beq	.L2
	ldr	r1, .L16+12
	ldr	r0, [r9]
	bl	wpa_printf
	mov	r0, r4
	bl	eap_peer_tls_reset_input
	mov	r3, #0
	ldr	r2, [r4, #12]
	str	r3, [r4, #12]
	str	r2, [sp, #16]
.L3:
	ldr	r3, .L16+16
	ldr	r1, .L16+20
	ldr	r0, [r3]
	bl	wpa_hexdump_buf
	ldr	r0, [sp, #16]
	bl	wpabuf_len
	cmp	r0, #3
	ble	.L13
	ldr	ip, [sp, #16]
	mov	r3, r7
	mov	r2, r8
	mov	r1, r4
	mov	r0, r6
	str	r10, [sp, #4]
	str	ip, [sp]
	bl	eap_teap_process_decrypted
	mov	r5, r0
	ldr	r0, [sp, #16]
	bl	wpabuf_free
.L1:
	ldr	r3, .L16+4
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	mov	r0, r5
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	mov	r0, r5
	bl	wpabuf_len
	cmp	r0, #0
	beq	.L15
	mov	r2, r5
	mov	r1, r4
	mov	r0, r6
	add	r3, sp, #16
	bl	eap_peer_tls_decrypt
	subs	r5, r0, #0
	bne	.L1
	ldr	r2, [sp, #16]
	b	.L3
.L15:
	stmib	sp, {r0, r10}
	ldr	r3, .L16+24
	str	r7, [sp]
	ldr	r2, [r3]
	mov	r0, r6
	mov	r1, r4
	ldr	r3, [r4, #8]
	bl	eap_peer_tls_encrypt
	subs	r5, r0, #0
	bne	.L1
	ldr	r6, [r4]
	cmp	r6, #0
	bne	.L1
	ldr	r5, [r4, #4]
	cmp	r5, #0
	beq	.L1
	ldr	r0, [r9]
	ldr	r1, .L16+28
	bl	wpa_printf
	ldr	r3, .L16+32
	ldr	r2, [r4, #4]
	ldr	r3, [r3]
	str	r2, [r8, #4]
	mov	r5, r6
	str	r6, [r4, #4]
	str	r3, [r8]
	b	.L1
.L13:
	ldr	r3, .L16+36
	ldr	r0, [sp, #16]
	ldr	r4, [r3]
	bl	wpabuf_len
	ldr	r1, .L16+40
	mov	r2, r0
	mov	r0, r4
	bl	wpa_printf
	ldr	r0, [sp, #16]
	bl	wpabuf_free
	mvn	r5, #0
	b	.L1
.L14:
	bl	__stack_chk_fail
.L17:
	.align	2
.L16:
	.word	MSG_DEBUG
	.word	.LC5
	.word	.LC0
	.word	.LC1
	.word	MSG_MSGDUMP
	.word	.LC3
	.word	EAP_TYPE_TEAP
	.word	.LC2
	.word	DECISION_UNCOND_SUCC
	.word	MSG_INFO
	.word	.LC4
	.size	eap_teap_decrypt, .-eap_teap_decrypt
	.comm	MSG_MSGDUMP,4,4
	.comm	MSG_INFO,4,4
	.comm	MSG_DEBUG,4,4
	.comm	EAP_TYPE_TEAP,4,4
	.comm	DECISION_UNCOND_SUCC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
