	.file	"extr_eap_sake.c_eap_sake_process_confirm.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"EAP-SAKE: Received Request/Confirm"
	.align 8
.LC1:
	.string	"EAP-SAKE: Request/Confirm did not include AT_MIC_S"
	.align 8
.LC2:
	.string	"EAP-SAKE: Failed to compute MIC"
	.align 8
.LC3:
	.string	"EAP-SAKE: Sending Response/Auth-Reject"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC4:
	.string	"EAP-SAKE: Incorrect AT_MIC_S"
	.section	.rodata.str1.8
	.align 8
.LC5:
	.string	"EAP-SAKE: Sending Response/Confirm"
	.section	.rodata.str1.1
.LC6:
	.string	"EAP-SAKE: * AT_MIC_P"
	.text
	.p2align 4
	.type	eap_sake_process_confirm, @function
eap_sake_process_confirm:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	.cfi_offset 15, -24
	mov	r15, r8
	push	r14
	.cfi_offset 14, -32
	mov	r14d, ecx
	push	r13
	.cfi_offset 13, -40
	mov	r13, r9
	push	r12
	.cfi_offset 12, -48
	mov	r12, rsi
	push	rbx
	.cfi_offset 3, -56
	mov	rbx, rdx
	sub	rsp, 40
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR EAP_SAKE_MIC_LEN[rip]
	mov	rcx, rsp
	lea	rax, 15[0+rax*4]
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L24:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L24
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L25
.L4:
	mov	QWORD PTR -72[rbp], rsp
	mov	rax, QWORD PTR CONFIRM[rip]
	cmp	QWORD PTR [r12], rax
	jne	.L26
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	lea	rsi, .LC0[rip]
	call	wpa_printf@PLT
	mov	rsi, QWORD PTR 16[rbp]
	lea	rdx, -64[rbp]
	mov	rdi, r13
	call	eap_sake_parse_attributes@PLT
	test	rax, rax
	jne	.L21
	mov	r13, QWORD PTR -64[rbp]
	test	r13, r13
	je	.L27
	mov	rdi, r15
	call	wpabuf_len@PLT
	mov	rdi, r15
	mov	DWORD PTR -76[rbp], eax
	call	wpabuf_head@PLT
	mov	r8d, DWORD PTR -76[rbp]
	push	QWORD PTR -72[rbp]
	mov	esi, DWORD PTR 28[r12]
	push	r13
	mov	ecx, DWORD PTR 20[r12]
	mov	edx, DWORD PTR 24[r12]
	push	r8
	mov	edi, DWORD PTR 32[r12]
	mov	r9d, DWORD PTR 12[r12]
	push	rax
	mov	eax, DWORD PTR 8[r12]
	mov	r8d, DWORD PTR 16[r12]
	push	0
	push	rax
	call	eap_sake_compute_mic@PLT
	add	rsp, 48
	lea	rsi, .LC2[rip]
	test	rax, rax
	jne	.L22
	mov	edx, DWORD PTR EAP_SAKE_MIC_LEN[rip]
	mov	rsi, QWORD PTR -72[rbp]
	mov	rdi, QWORD PTR -64[rbp]
	call	os_memcmp_const@PLT
	test	rax, rax
	jne	.L28
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	lea	rsi, .LC5[rip]
	call	wpa_printf@PLT
	mov	eax, DWORD PTR EAP_SAKE_MIC_LEN[rip]
	mov	esi, r14d
	mov	rdi, r12
	mov	ecx, DWORD PTR EAP_SAKE_SUBTYPE_CONFIRM[rip]
	lea	edx, 2[rax]
	call	eap_sake_build_msg@PLT
	mov	r13, rax
	test	rax, rax
	je	.L21
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	lea	rsi, .LC6[rip]
	call	wpa_printf@PLT
	mov	esi, DWORD PTR EAP_SAKE_AT_MIC_P[rip]
	mov	rdi, r13
	call	wpabuf_put_u8@PLT
	mov	eax, DWORD PTR EAP_SAKE_MIC_LEN[rip]
	mov	rdi, r13
	lea	esi, 2[rax]
	call	wpabuf_put_u8@PLT
	mov	esi, DWORD PTR EAP_SAKE_MIC_LEN[rip]
	mov	rdi, r13
	call	wpabuf_put@PLT
	mov	rdi, r13
	mov	r14, rax
	call	wpabuf_len@PLT
	mov	rdi, r13
	mov	r15d, eax
	call	wpabuf_head@PLT
	push	r14
	mov	ecx, DWORD PTR 20[r12]
	mov	edx, DWORD PTR 24[r12]
	mov	esi, DWORD PTR 28[r12]
	push	r14
	mov	edi, DWORD PTR 32[r12]
	mov	r9d, DWORD PTR 12[r12]
	push	r15
	push	rax
	mov	eax, DWORD PTR 8[r12]
	push	1
	mov	r8d, DWORD PTR 16[r12]
	push	rax
	call	eap_sake_compute_mic@PLT
	add	rsp, 48
	test	rax, rax
	jne	.L29
	mov	esi, DWORD PTR SUCCESS[rip]
	mov	rdi, r12
	call	eap_sake_state@PLT
	mov	rax, QWORD PTR METHOD_DONE[rip]
	mov	QWORD PTR 16[rbx], rax
	mov	rax, QWORD PTR DECISION_UNCOND_SUCC[rip]
	mov	QWORD PTR 8[rbx], rax
	mov	rax, QWORD PTR FALSE[rip]
	mov	QWORD PTR [rbx], rax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L26:
	mov	eax, DWORD PTR TRUE[rip]
	xor	r13d, r13d
	mov	DWORD PTR 24[rbx], eax
.L1:
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L30
	lea	rsp, -40[rbp]
	mov	rax, r13
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L28:
	.cfi_restore_state
	lea	rsi, .LC4[rip]
.L22:
	mov	edi, DWORD PTR MSG_INFO[rip]
	call	wpa_printf@PLT
	mov	esi, DWORD PTR FAILURE[rip]
	mov	rdi, r12
	call	eap_sake_state@PLT
	mov	rax, QWORD PTR METHOD_DONE[rip]
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	lea	rsi, .LC3[rip]
	mov	QWORD PTR 16[rbx], rax
	mov	rax, QWORD PTR DECISION_FAIL[rip]
	mov	QWORD PTR 8[rbx], rax
	mov	rax, QWORD PTR FALSE[rip]
	mov	QWORD PTR [rbx], rax
	call	wpa_printf@PLT
	mov	ecx, DWORD PTR EAP_SAKE_SUBTYPE_AUTH_REJECT[rip]
	xor	edx, edx
	mov	esi, r14d
	mov	rdi, r12
	call	eap_sake_build_msg@PLT
	mov	r13, rax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L25:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L29:
	mov	edi, DWORD PTR MSG_INFO[rip]
	lea	rsi, .LC2[rip]
	call	wpa_printf@PLT
	mov	rdi, r13
	call	wpabuf_free@PLT
	.p2align 4,,10
	.p2align 3
.L21:
	xor	r13d, r13d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L27:
	mov	edi, DWORD PTR MSG_INFO[rip]
	lea	rsi, .LC1[rip]
	call	wpa_printf@PLT
	jmp	.L1
.L30:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	eap_sake_process_confirm, .-eap_sake_process_confirm
	.comm	TRUE,4,4
	.comm	SUCCESS,4,4
	.comm	MSG_INFO,4,4
	.comm	MSG_DEBUG,4,4
	.comm	METHOD_DONE,8,8
	.comm	FALSE,8,8
	.comm	FAILURE,4,4
	.comm	EAP_SAKE_SUBTYPE_CONFIRM,4,4
	.comm	EAP_SAKE_SUBTYPE_AUTH_REJECT,4,4
	.comm	EAP_SAKE_MIC_LEN,4,4
	.comm	EAP_SAKE_AT_MIC_P,4,4
	.comm	DECISION_UNCOND_SUCC,8,8
	.comm	DECISION_FAIL,8,8
	.comm	CONFIRM,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_sake.c_eap_sake_process_confirm.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"EAP-SAKE: Received Request/Confirm\000"
	.align	2
.LC1:
	.ascii	"EAP-SAKE: Request/Confirm did not include AT_MIC_S\000"
	.align	2
.LC2:
	.ascii	"EAP-SAKE: Failed to compute MIC\000"
	.align	2
.LC3:
	.ascii	"EAP-SAKE: Sending Response/Auth-Reject\000"
	.align	2
.LC4:
	.ascii	"EAP-SAKE: Incorrect AT_MIC_S\000"
	.align	2
.LC5:
	.ascii	"EAP-SAKE: Sending Response/Confirm\000"
	.align	2
.LC6:
	.ascii	"EAP-SAKE: * AT_MIC_P\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	eap_sake_process_confirm, %function
eap_sake_process_confirm:
	@ args = 12, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #76
	mov	r4, r1
	ldr	r8, .L23
	ldr	r0, .L23+4
	ldr	r1, [r8]
	ldr	ip, [r4]
	ldr	r0, [r0]
	lsl	r1, r1, #2
	mov	r7, r3
	add	r1, r1, #7
	ldr	r3, .L23+8
	bic	r1, r1, #7
	cmp	ip, r0
	mov	r6, r2
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	ldr	r10, [fp, #4]
	ldr	r5, [fp, #8]
	sub	sp, sp, r1
	bne	.L17
	ldr	r3, .L23+12
	ldr	r1, .L23+16
	ldr	r0, [r3]
	bl	wpa_printf
	mov	r0, r5
	ldr	r1, [fp, #12]
	sub	r2, fp, #44
	bl	eap_sake_parse_attributes
	subs	r3, r0, #0
	str	r3, [fp, #-48]
	bne	.L8
	ldr	r5, [fp, #-44]
	cmp	r5, #0
	beq	.L18
	ldr	r1, [r4, #24]
	ldr	r2, [r4, #20]
	ldr	r3, [r4, #16]
	ldr	ip, [r4, #4]
	str	r1, [fp, #-76]
	str	r2, [fp, #-72]
	ldr	r1, [r4, #8]
	ldr	r2, [r4, #12]
	mov	r0, r10
	ldr	r5, [r4, #28]
	str	r3, [fp, #-52]
	str	r2, [fp, #-56]
	str	r1, [fp, #-60]
	str	ip, [fp, #-64]
	bl	wpabuf_head
	mov	ip, r0
	mov	r0, r10
	str	ip, [fp, #-68]
	bl	wpabuf_len
	ldr	lr, [fp, #-64]
	ldr	r3, [fp, #-68]
	ldr	r1, [fp, #-60]
	ldr	r2, [fp, #-56]
	ldr	ip, [fp, #-44]
	str	lr, [sp, #8]
	ldr	lr, [fp, #-48]
	add	r9, sp, #32
	str	r3, [sp, #16]
	str	r1, [sp, #4]
	str	r2, [sp]
	str	r0, [sp, #20]
	ldr	r3, [fp, #-52]
	mov	r0, r5
	ldr	r2, [fp, #-72]
	ldr	r1, [fp, #-76]
	str	r9, [sp, #28]
	str	lr, [sp, #12]
	str	ip, [sp, #24]
	bl	eap_sake_compute_mic
	subs	r5, r0, #0
	bne	.L19
	mov	r1, r9
	ldr	r2, [r8]
	ldr	r0, [fp, #-44]
	bl	os_memcmp_const
	subs	r3, r0, #0
	str	r3, [fp, #-68]
	bne	.L20
	ldr	r9, .L23+12
	ldr	r1, .L23+20
	ldr	r0, [r9]
	bl	wpa_printf
	ldr	r2, [r8]
	ldr	r3, .L23+24
	mov	r1, r7
	mov	r0, r4
	ldr	r3, [r3]
	add	r2, r2, #2
	bl	eap_sake_build_msg
	subs	r5, r0, #0
	beq	.L8
	ldr	r0, [r9]
	ldr	r1, .L23+28
	bl	wpa_printf
	ldr	r3, .L23+32
	mov	r0, r5
	ldr	r1, [r3]
	bl	wpabuf_put_u8
	ldr	r1, [r8]
	mov	r0, r5
	add	r1, r1, #2
	bl	wpabuf_put_u8
	ldr	r1, [r8]
	mov	r0, r5
	bl	wpabuf_put
	ldr	r2, [r4, #20]
	ldr	r3, [r4, #16]
	ldr	r1, [r4, #4]
	str	r2, [fp, #-64]
	str	r3, [fp, #-60]
	ldr	r2, [r4, #8]
	ldr	r3, [r4, #12]
	mov	r7, r0
	mov	r0, r5
	str	r3, [fp, #-48]
	str	r2, [fp, #-52]
	str	r1, [fp, #-56]
	ldr	r9, [r4, #28]
	ldr	r10, [r4, #24]
	bl	wpabuf_head
	mov	r8, r0
	mov	r0, r5
	bl	wpabuf_len
	mov	ip, #1
	ldr	r1, [fp, #-56]
	ldr	r2, [fp, #-52]
	ldr	r3, [fp, #-48]
	str	r1, [sp, #8]
	str	r2, [sp, #4]
	str	r3, [sp]
	str	r0, [sp, #20]
	mov	r1, r10
	mov	r0, r9
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #-64]
	str	r8, [sp, #16]
	str	r7, [sp, #28]
	str	r7, [sp, #24]
	str	ip, [sp, #12]
	bl	eap_sake_compute_mic
	cmp	r0, #0
	bne	.L21
	ldr	r3, .L23+36
	mov	r0, r4
	ldr	r1, [r3]
	bl	eap_sake_state
	ldr	r1, .L23+40
	ldr	r2, .L23+44
	ldr	r3, .L23+48
	ldr	r1, [r1]
	ldr	r2, [r2]
	ldr	r3, [r3]
	str	r1, [r6, #8]
	str	r2, [r6, #4]
	str	r3, [r6]
	b	.L1
.L17:
	mov	r5, #0
	ldr	r3, .L23+52
	ldr	r3, [r3]
	str	r3, [r2, #12]
.L1:
	ldr	r3, .L23+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L22
	mov	r0, r5
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L8:
	mov	r5, #0
	b	.L1
.L20:
	ldr	r3, .L23+56
	ldr	r1, .L23+60
	ldr	r0, [r3]
	bl	wpa_printf
	ldr	r3, .L23+64
	mov	r0, r4
	ldr	r1, [r3]
	bl	eap_sake_state
	ldr	r1, .L23+40
	ldr	r2, .L23+68
	ldr	r3, .L23+48
	ldr	r1, [r1]
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r0, .L23+12
	str	r1, [r6, #8]
	ldr	r0, [r0]
	str	r2, [r6, #4]
	str	r3, [r6]
	ldr	r1, .L23+72
	bl	wpa_printf
	mov	r2, r5
	ldr	r3, .L23+76
.L15:
	mov	r1, r7
	mov	r0, r4
	ldr	r3, [r3]
	bl	eap_sake_build_msg
	mov	r5, r0
	b	.L1
.L19:
	ldr	r3, .L23+56
	ldr	r1, .L23+80
	ldr	r0, [r3]
	bl	wpa_printf
	ldr	r3, .L23+64
	mov	r0, r4
	ldr	r1, [r3]
	bl	eap_sake_state
	ldr	r1, .L23+40
	ldr	r2, .L23+68
	ldr	r3, .L23+48
	ldr	r1, [r1]
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r0, .L23+12
	str	r1, [r6, #8]
	ldr	r0, [r0]
	str	r2, [r6, #4]
	str	r3, [r6]
	ldr	r1, .L23+72
	bl	wpa_printf
	ldr	r3, .L23+76
	ldr	r2, [fp, #-48]
	b	.L15
.L18:
	ldr	r3, .L23+56
	ldr	r1, .L23+84
	ldr	r0, [r3]
	bl	wpa_printf
	b	.L1
.L21:
	ldr	r3, .L23+56
	ldr	r1, .L23+80
	ldr	r0, [r3]
	bl	wpa_printf
	mov	r0, r5
	bl	wpabuf_free
	ldr	r5, [fp, #-68]
	b	.L1
.L22:
	bl	__stack_chk_fail
.L24:
	.align	2
.L23:
	.word	EAP_SAKE_MIC_LEN
	.word	CONFIRM
	.word	.LC7
	.word	MSG_DEBUG
	.word	.LC0
	.word	.LC5
	.word	EAP_SAKE_SUBTYPE_CONFIRM
	.word	.LC6
	.word	EAP_SAKE_AT_MIC_P
	.word	SUCCESS
	.word	METHOD_DONE
	.word	DECISION_UNCOND_SUCC
	.word	FALSE
	.word	TRUE
	.word	MSG_INFO
	.word	.LC4
	.word	FAILURE
	.word	DECISION_FAIL
	.word	.LC3
	.word	EAP_SAKE_SUBTYPE_AUTH_REJECT
	.word	.LC2
	.word	.LC1
	.size	eap_sake_process_confirm, .-eap_sake_process_confirm
	.comm	TRUE,4,4
	.comm	SUCCESS,4,4
	.comm	MSG_INFO,4,4
	.comm	MSG_DEBUG,4,4
	.comm	METHOD_DONE,4,4
	.comm	FALSE,4,4
	.comm	FAILURE,4,4
	.comm	EAP_SAKE_SUBTYPE_CONFIRM,4,4
	.comm	EAP_SAKE_SUBTYPE_AUTH_REJECT,4,4
	.comm	EAP_SAKE_MIC_LEN,4,4
	.comm	EAP_SAKE_AT_MIC_P,4,4
	.comm	DECISION_UNCOND_SUCC,4,4
	.comm	DECISION_FAIL,4,4
	.comm	CONFIRM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
