	.file	"extr_eap_gpsk.c_eap_gpsk_validate_gpsk_3_mic.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"EAP-GPSK: Message too short for MIC (left=%lu miclen=%lu)"
	.align 8
.LC1:
	.string	"EAP-GPSK: Failed to compute MIC"
	.align 8
.LC2:
	.string	"EAP-GPSK: Incorrect MIC in GPSK-3"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC3:
	.string	"EAP-GPSK: Received MIC"
.LC4:
	.string	"EAP-GPSK: Computed MIC"
	.text
	.p2align 4
	.type	eap_gpsk_validate_gpsk_3_mic, @function
eap_gpsk_validate_gpsk_3_mic:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	r8, rsi
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	mov	r13, rdx
	push	r12
	.cfi_offset 12, -48
	mov	r12, rcx
	push	rbx
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 40
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR EAP_GPSK_MAX_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
.L17:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L17
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L18
.L4:
	mov	QWORD PTR -72[rbp], r8
	mov	r14, rsp
	test	r13, r13
	je	.L10
	mov	edi, DWORD PTR 4[rbx]
	mov	esi, DWORD PTR [rbx]
	sub	r12, r13
	sar	r12, 2
	call	eap_gpsk_mic_len@PLT
	mov	r8, QWORD PTR -72[rbp]
	mov	r15, rax
	cdqe
	cmp	r12, rax
	jl	.L19
	sub	rsp, 8
	mov	edx, DWORD PTR 4[rbx]
	mov	esi, DWORD PTR 8[rbx]
	mov	r9, r13
	mov	edi, DWORD PTR 12[rbx]
	mov	ecx, DWORD PTR [rbx]
	push	r14
	sub	r9, r8
	sar	r9, 2
	call	eap_gpsk_compute_mic@PLT
	pop	rdx
	pop	rcx
	test	rax, rax
	js	.L20
	mov	rdx, r15
	mov	rsi, r13
	mov	rdi, r14
	call	os_memcmp_const@PLT
	mov	r8, rax
	lea	rax, 0[r13+r15*4]
	test	r8, r8
	jne	.L21
.L1:
	mov	rbx, QWORD PTR -56[rbp]
	xor	rbx, QWORD PTR fs:40
	jne	.L22
	lea	rsp, -40[rbp]
	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
.L18:
	.cfi_restore_state
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L10:
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L19:
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	mov	rcx, r15
	mov	rdx, r12
	xor	eax, eax
	lea	rsi, .LC0[rip]
	call	wpa_printf@PLT
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L20:
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	lea	rsi, .LC1[rip]
	xor	eax, eax
	call	wpa_printf@PLT
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L21:
	mov	edi, DWORD PTR MSG_INFO[rip]
	lea	rsi, .LC2[rip]
	xor	eax, eax
	call	wpa_printf@PLT
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	mov	rcx, r15
	mov	rdx, r13
	lea	rsi, .LC3[rip]
	call	wpa_hexdump@PLT
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	mov	rcx, r15
	mov	rdx, r14
	lea	rsi, .LC4[rip]
	call	wpa_hexdump@PLT
	xor	eax, eax
	jmp	.L1
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	eap_gpsk_validate_gpsk_3_mic, .-eap_gpsk_validate_gpsk_3_mic
	.comm	MSG_INFO,4,4
	.comm	MSG_DEBUG,4,4
	.comm	EAP_GPSK_MAX_MIC_LEN,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_gpsk.c_eap_gpsk_validate_gpsk_3_mic.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"EAP-GPSK: Message too short for MIC (left=%lu micle"
	.ascii	"n=%lu)\000"
	.align	2
.LC1:
	.ascii	"EAP-GPSK: Failed to compute MIC\000"
	.align	2
.LC2:
	.ascii	"EAP-GPSK: Incorrect MIC in GPSK-3\000"
	.align	2
.LC3:
	.ascii	"EAP-GPSK: Received MIC\000"
	.align	2
.LC4:
	.ascii	"EAP-GPSK: Computed MIC\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	eap_gpsk_validate_gpsk_3_mic, %function
eap_gpsk_validate_gpsk_3_mic:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #24
	ldr	ip, .L14
	mov	r6, r3
	ldr	ip, [ip]
	ldr	r3, .L14+4
	lsl	ip, ip, #2
	add	ip, ip, #7
	subs	r4, r2, #0
	bic	ip, ip, #7
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	moveq	r0, r4
	sub	sp, sp, ip
	beq	.L1
	mov	r5, r0
	mov	r9, r1
	ldr	r1, [r0]
	ldr	r0, [r0, #4]
	bl	eap_gpsk_mic_len
	sub	r3, r6, r4
	cmp	r0, r3, asr #2
	mov	r7, r0
	asr	r2, r3, #2
	bgt	.L10
	sub	r3, r4, r9
	asr	r3, r3, #2
	add	r8, sp, #16
	str	r8, [sp, #8]
	str	r9, [sp]
	str	r3, [sp, #4]
	ldr	r3, [r5]
	ldr	r2, [r5, #4]
	ldr	r1, [r5, #8]
	ldr	r0, [r5, #12]
	bl	eap_gpsk_compute_mic
	cmp	r0, #0
	blt	.L11
	mov	r2, r7
	mov	r1, r4
	mov	r0, r8
	bl	os_memcmp_const
	cmp	r0, #0
	addeq	r0, r4, r7, lsl #2
	bne	.L12
.L1:
	ldr	r3, .L14+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L13
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L10:
	ldr	r1, .L14+8
	mov	r3, r0
	ldr	r0, [r1]
	ldr	r1, .L14+12
	bl	wpa_printf
	mov	r0, #0
	b	.L1
.L11:
	ldr	r3, .L14+8
	ldr	r1, .L14+16
	ldr	r0, [r3]
	bl	wpa_printf
	mov	r0, #0
	b	.L1
.L12:
	ldr	r3, .L14+20
	ldr	r5, .L14+8
	ldr	r0, [r3]
	ldr	r1, .L14+24
	bl	wpa_printf
	mov	r2, r4
	mov	r3, r7
	ldr	r1, .L14+28
	ldr	r0, [r5]
	bl	wpa_hexdump
	mov	r3, r7
	mov	r2, r8
	ldr	r0, [r5]
	ldr	r1, .L14+32
	bl	wpa_hexdump
	mov	r0, #0
	b	.L1
.L13:
	bl	__stack_chk_fail
.L15:
	.align	2
.L14:
	.word	EAP_GPSK_MAX_MIC_LEN
	.word	.LC5
	.word	MSG_DEBUG
	.word	.LC0
	.word	.LC1
	.word	MSG_INFO
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	eap_gpsk_validate_gpsk_3_mic, .-eap_gpsk_validate_gpsk_3_mic
	.comm	MSG_INFO,4,4
	.comm	MSG_DEBUG,4,4
	.comm	EAP_GPSK_MAX_MIC_LEN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
