	.file	"extr_eap_server_eke.c_eap_eke_process_commit.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"EAP-EKE: Received Response/Commit"
	.align 8
.LC1:
	.string	"EAP-EKE: Too short EAP-EKE-Commit"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"EAP-EKE: DHComponent_P"
.LC3:
	.string	"EAP-EKE: PNonce_P"
.LC4:
	.string	"EAP-EKE: CBValue"
	.section	.rodata.str1.8
	.align 8
.LC5:
	.string	"EAP-EKE: Failed to derive shared secret"
	.align 8
.LC6:
	.string	"EAP-EKE: Failed to derive Ke/Ki"
	.align 8
.LC7:
	.string	"EAP-EKE: Failed to decrypt PNonce_P"
	.align 8
.LC8:
	.string	"EAP-EKE: PNonce_P protected data too short to include Nonce_P"
	.section	.rodata.str1.1
.LC9:
	.string	"EAP-EKE: Nonce_P"
	.text
	.p2align 4
	.type	eap_eke_process_commit, @function
eap_eke_process_commit:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rcx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	lea	rsi, .LC0[rip]
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, r8
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	wpa_printf@PLT
	mov	rax, QWORD PTR COMMIT[rip]
	cmp	QWORD PTR 0[rbp], rax
	jne	.L13
	movsx	rdx, DWORD PTR 16[rbp]
	movsx	rax, DWORD PTR 20[rbp]
	lea	rbx, [r12+rbx*4]
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	add	rax, rdx
	mov	rcx, rdx
	lea	rax, [r12+rax*4]
	cmp	rbx, rax
	jb	.L18
	mov	rdx, r12
	lea	rsi, .LC2[rip]
	call	wpa_hexdump@PLT
	movsx	rax, DWORD PTR 16[rbp]
	mov	ecx, DWORD PTR 20[rbp]
	lea	rsi, .LC3[rip]
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	lea	r15, [r12+rax*4]
	mov	rdx, r15
	call	wpa_hexdump@PLT
	movsx	rax, DWORD PTR 20[rbp]
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	lea	rsi, .LC4[rip]
	lea	rdx, [r15+rax*4]
	sub	rbx, rdx
	mov	rcx, rbx
	lea	rbx, 16[rbp]
	sar	rcx, 2
	call	wpa_hexdump@PLT
	mov	esi, DWORD PTR 48[rbp]
	mov	edx, DWORD PTR 44[rbp]
	mov	rcx, r12
	mov	rdi, rbx
	call	eap_eke_shared_secret@PLT
	lea	rsi, .LC5[rip]
	test	rax, rax
	js	.L14
	mov	ecx, DWORD PTR 40[rbp]
	mov	esi, DWORD PTR 4[r13]
	mov	rdi, rbx
	mov	r8d, DWORD PTR 36[rbp]
	mov	edx, DWORD PTR 0[r13]
	call	eap_eke_derive_ke_ki@PLT
	test	rax, rax
	js	.L19
	mov	ecx, DWORD PTR 32[rbp]
	mov	edx, DWORD PTR 20[rbp]
	mov	rsi, r15
	mov	r8, rsp
	mov	rdi, rbx
	mov	QWORD PTR [rsp], 4
	call	eap_eke_decrypt_prot@PLT
	lea	rsi, .LC7[rip]
	test	rax, rax
	js	.L16
	mov	rcx, QWORD PTR 24[rbp]
	cmp	rcx, QWORD PTR [rsp]
	ja	.L20
	mov	edx, DWORD PTR 32[rbp]
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	lea	rsi, .LC9[rip]
	call	wpa_hexdump_key@PLT
	mov	rdi, r14
	call	wpabuf_len@PLT
	lea	rdi, 8[rbp]
	mov	esi, eax
	call	wpabuf_resize@PLT
	test	rax, rax
	js	.L15
	mov	edi, DWORD PTR 8[rbp]
	mov	rsi, r14
	call	wpabuf_put_buf@PLT
	mov	esi, DWORD PTR CONFIRM[rip]
	mov	rdi, rbp
	call	eap_eke_state@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L18:
	lea	rsi, .LC1[rip]
	call	wpa_printf@PLT
.L13:
	mov	esi, DWORD PTR EAP_EKE_FAIL_PROTO_ERROR[rip]
	mov	rdi, rbp
	call	eap_eke_fail@PLT
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L21
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L19:
	.cfi_restore_state
	lea	rsi, .LC6[rip]
.L14:
	mov	edi, DWORD PTR MSG_INFO[rip]
	call	wpa_printf@PLT
.L15:
	mov	esi, DWORD PTR EAP_EKE_FAIL_PRIVATE_INTERNAL_ERROR[rip]
	mov	rdi, rbp
	call	eap_eke_fail@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L20:
	lea	rsi, .LC8[rip]
.L16:
	mov	edi, DWORD PTR MSG_INFO[rip]
	call	wpa_printf@PLT
	mov	esi, DWORD PTR EAP_EKE_FAIL_AUTHENTICATION_FAIL[rip]
	mov	rdi, rbp
	call	eap_eke_fail@PLT
	jmp	.L1
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	eap_eke_process_commit, .-eap_eke_process_commit
	.comm	MSG_INFO,4,4
	.comm	MSG_DEBUG,4,4
	.comm	EAP_EKE_FAIL_PROTO_ERROR,4,4
	.comm	EAP_EKE_FAIL_PRIVATE_INTERNAL_ERROR,4,4
	.comm	EAP_EKE_FAIL_AUTHENTICATION_FAIL,4,4
	.comm	CONFIRM,4,4
	.comm	COMMIT,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_eke.c_eap_eke_process_commit.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"EAP-EKE: Received Response/Commit\000"
	.align	2
.LC1:
	.ascii	"EAP-EKE: Too short EAP-EKE-Commit\000"
	.align	2
.LC2:
	.ascii	"EAP-EKE: DHComponent_P\000"
	.align	2
.LC3:
	.ascii	"EAP-EKE: PNonce_P\000"
	.align	2
.LC4:
	.ascii	"EAP-EKE: CBValue\000"
	.align	2
.LC5:
	.ascii	"EAP-EKE: Failed to derive shared secret\000"
	.align	2
.LC6:
	.ascii	"EAP-EKE: Failed to derive Ke/Ki\000"
	.align	2
.LC7:
	.ascii	"EAP-EKE: Failed to decrypt PNonce_P\000"
	.align	2
.LC8:
	.ascii	"EAP-EKE: PNonce_P protected data too short to inclu"
	.ascii	"de Nonce_P\000"
	.align	2
.LC9:
	.ascii	"EAP-EKE: Nonce_P\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	eap_eke_process_commit, %function
eap_eke_process_commit:
	@ args = 4, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r1
	ldr	r7, .L24
	mov	r5, r3
	ldr	r3, .L24+4
	sub	sp, sp, #16
	mov	r8, r0
	ldr	r1, .L24+8
	ldr	r0, [r7]
	mov	r9, r2
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	wpa_printf
	ldr	r3, .L24+12
	ldr	r2, [r4]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L13
	ldr	r3, [r4, #8]
	ldr	r1, [r4, #12]
	ldr	r2, [sp, #48]
	add	r1, r3, r1
	add	r6, r5, r2, lsl #2
	add	r1, r5, r1, lsl #2
	cmp	r6, r1
	ldr	r0, [r7]
	bcc	.L18
	mov	r2, r5
	ldr	r1, .L24+16
	bl	wpa_hexdump
	ldr	r10, [r4, #8]
	ldr	r3, [r4, #12]
	add	r10, r5, r10, lsl #2
	mov	r2, r10
	ldr	r1, .L24+20
	ldr	r0, [r7]
	bl	wpa_hexdump
	ldr	r2, [r4, #12]
	ldr	r1, .L24+24
	add	r2, r10, r2, lsl #2
	sub	r3, r6, r2
	asr	r3, r3, #2
	ldr	r0, [r7]
	add	r6, r4, #8
	bl	wpa_hexdump
	mov	r3, r5
	mov	r0, r6
	ldr	r2, [r4, #32]
	ldr	r1, [r4, #36]
	bl	eap_eke_shared_secret
	cmp	r0, #0
	blt	.L19
	ldr	r2, [r4, #24]
	ldr	r3, [r4, #28]
	str	r2, [sp]
	mov	r0, r6
	ldr	r2, [r8]
	ldr	r1, [r8, #4]
	bl	eap_eke_derive_ke_ki
	cmp	r0, #0
	blt	.L20
	mov	ip, #4
	add	r3, sp, #8
	str	r3, [sp]
	mov	r1, r10
	mov	r0, r6
	ldr	r3, [r4, #20]
	ldr	r2, [r4, #12]
	str	ip, [sp, #8]
	bl	eap_eke_decrypt_prot
	cmp	r0, #0
	blt	.L21
	ldr	r3, [r4, #16]
	ldr	r2, [sp, #8]
	cmp	r3, r2
	bhi	.L22
	ldr	r2, [r4, #20]
	ldr	r1, .L24+28
	ldr	r0, [r7]
	bl	wpa_hexdump_key
	mov	r0, r9
	bl	wpabuf_len
	mov	r1, r0
	add	r0, r4, #4
	bl	wpabuf_resize
	cmp	r0, #0
	blt	.L15
	mov	r1, r9
	ldr	r0, [r4, #4]
	bl	wpabuf_put_buf
	ldr	r3, .L24+32
	mov	r0, r4
	ldr	r1, [r3]
	bl	eap_eke_state
	b	.L1
.L18:
	ldr	r1, .L24+36
	bl	wpa_printf
.L13:
	ldr	r3, .L24+40
	mov	r0, r4
	ldr	r1, [r3]
	bl	eap_eke_fail
.L1:
	ldr	r3, .L24+4
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L23
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L22:
	ldr	r3, .L24+44
	ldr	r1, .L24+48
.L16:
	ldr	r0, [r3]
	bl	wpa_printf
	ldr	r3, .L24+52
	mov	r0, r4
	ldr	r1, [r3]
	bl	eap_eke_fail
	b	.L1
.L19:
	ldr	r3, .L24+44
	ldr	r1, .L24+56
.L14:
	ldr	r0, [r3]
	bl	wpa_printf
.L15:
	ldr	r3, .L24+60
	mov	r0, r4
	ldr	r1, [r3]
	bl	eap_eke_fail
	b	.L1
.L20:
	ldr	r3, .L24+44
	ldr	r1, .L24+64
	b	.L14
.L21:
	ldr	r3, .L24+44
	ldr	r1, .L24+68
	b	.L16
.L23:
	bl	__stack_chk_fail
.L25:
	.align	2
.L24:
	.word	MSG_DEBUG
	.word	.LC10
	.word	.LC0
	.word	COMMIT
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC9
	.word	CONFIRM
	.word	.LC1
	.word	EAP_EKE_FAIL_PROTO_ERROR
	.word	MSG_INFO
	.word	.LC8
	.word	EAP_EKE_FAIL_AUTHENTICATION_FAIL
	.word	.LC5
	.word	EAP_EKE_FAIL_PRIVATE_INTERNAL_ERROR
	.word	.LC6
	.word	.LC7
	.size	eap_eke_process_commit, .-eap_eke_process_commit
	.comm	MSG_INFO,4,4
	.comm	MSG_DEBUG,4,4
	.comm	EAP_EKE_FAIL_PROTO_ERROR,4,4
	.comm	EAP_EKE_FAIL_PRIVATE_INTERNAL_ERROR,4,4
	.comm	EAP_EKE_FAIL_AUTHENTICATION_FAIL,4,4
	.comm	CONFIRM,4,4
	.comm	COMMIT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
