	.file	"extr_eap_eke_common.c_eap_eke_derive_msk.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"EAP-EKE Exported Keys"
.LC1:
	.string	"EAP-EKE: MSK"
.LC2:
	.string	"EAP-EKE: EMSK"
	.text
	.p2align 4
	.globl	eap_eke_derive_msk
	.type	eap_eke_derive_msk, @function
eap_eke_derive_msk:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	r11, rsi
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	mov	r12, rdi
	push	rbx
	sub	rsp, 104
	.cfi_offset 3, -56
	mov	rax, QWORD PTR 32[rbp]
	mov	QWORD PTR -72[rbp], rdx
	mov	r13d, DWORD PTR EAP_EMSK_LEN[rip]
	add	r13d, DWORD PTR EAP_MSK_LEN[rip]
	mov	QWORD PTR -88[rbp], rcx
	mov	rcx, rsp
	mov	r10, QWORD PTR 16[rbp]
	mov	r15, QWORD PTR 24[rbp]
	mov	QWORD PTR -80[rbp], r8
	mov	QWORD PTR -104[rbp], rax
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	movsx	rax, r13d
	mov	DWORD PTR -92[rbp], r13d
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L14:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L14
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L15
.L4:
	lea	rdi, .LC0[rip]
	mov	QWORD PTR -136[rbp], r10
	mov	r14, rsp
	mov	QWORD PTR -128[rbp], r9
	mov	QWORD PTR -120[rbp], r11
	call	os_strlen@PLT
	mov	rdx, QWORD PTR -72[rbp]
	add	rdx, QWORD PTR -80[rbp]
	mov	rbx, rax
	mov	eax, DWORD PTR [r12]
	add	eax, eax
	cdqe
	add	rax, rdx
	lea	r8, [rax+rbx]
	mov	rdi, r8
	mov	QWORD PTR -112[rbp], r8
	call	os_malloc@PLT
	mov	r13, rax
	test	rax, rax
	je	.L8
	mov	edx, ebx
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	add	rbx, r13
	call	os_memcpy@PLT
	mov	r11, QWORD PTR -120[rbp]
	mov	edx, DWORD PTR -72[rbp]
	mov	rdi, rbx
	mov	rsi, r11
	call	os_memcpy@PLT
	add	rbx, QWORD PTR -72[rbp]
	mov	edx, DWORD PTR -80[rbp]
	mov	rsi, QWORD PTR -88[rbp]
	mov	rdi, rbx
	call	os_memcpy@PLT
	mov	r9, QWORD PTR -128[rbp]
	add	rbx, QWORD PTR -80[rbp]
	mov	edx, DWORD PTR [r12]
	mov	rdi, rbx
	mov	rsi, r9
	call	os_memcpy@PLT
	movsx	rdi, DWORD PTR [r12]
	mov	r10, QWORD PTR -136[rbp]
	mov	rdx, rdi
	mov	rsi, r10
	add	rdi, rbx
	call	os_memcpy@PLT
	sub	rsp, 8
	mov	eax, DWORD PTR EAP_EMSK_LEN[rip]
	add	eax, DWORD PTR EAP_MSK_LEN[rip]
	push	rax
	mov	edx, DWORD PTR 4[r12]
	mov	rcx, r13
	mov	r9, r14
	mov	edi, DWORD PTR 12[r12]
	mov	esi, DWORD PTR 8[r12]
	mov	r8, QWORD PTR -112[rbp]
	call	eap_eke_prfplus@PLT
	pop	rdx
	mov	rdi, r13
	pop	rcx
	test	rax, rax
	js	.L16
	call	os_free@PLT
	mov	edx, DWORD PTR EAP_MSK_LEN[rip]
	mov	rsi, r14
	mov	rdi, r15
	call	os_memcpy@PLT
	movsx	rsi, DWORD PTR EAP_MSK_LEN[rip]
	mov	edx, DWORD PTR EAP_EMSK_LEN[rip]
	mov	rdi, QWORD PTR -104[rbp]
	add	rsi, r14
	call	os_memcpy@PLT
	mov	edx, DWORD PTR -92[rbp]
	xor	esi, esi
	mov	rdi, r14
	call	os_memset@PLT
	mov	ecx, DWORD PTR EAP_MSK_LEN[rip]
	mov	rdx, r15
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	lea	rsi, .LC1[rip]
	call	wpa_hexdump_key@PLT
	mov	ecx, DWORD PTR EAP_EMSK_LEN[rip]
	mov	rdx, r15
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	lea	rsi, .LC2[rip]
	call	wpa_hexdump_key@PLT
	xor	eax, eax
.L1:
	mov	rbx, QWORD PTR -56[rbp]
	xor	rbx, QWORD PTR fs:40
	jne	.L17
	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
.L15:
	.cfi_restore_state
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
.L8:
	mov	eax, -1
	jmp	.L1
.L16:
	call	os_free@PLT
	mov	eax, -1
	jmp	.L1
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	eap_eke_derive_msk, .-eap_eke_derive_msk
	.comm	MSG_DEBUG,4,4
	.comm	EAP_MSK_LEN,4,4
	.comm	EAP_EMSK_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_eke_common.c_eap_eke_derive_msk.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"EAP-EKE Exported Keys\000"
	.align	2
.LC1:
	.ascii	"EAP-EKE: MSK\000"
	.align	2
.LC2:
	.ascii	"EAP-EKE: EMSK\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	eap_eke_derive_msk
	.syntax unified
	.arm
	.fpu softvfp
	.type	eap_eke_derive_msk, %function
eap_eke_derive_msk:
	@ args = 20, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #68
	ldr	r7, .L10
	ldr	r8, .L10+4
	ldr	lr, [r7]
	ldr	ip, [r8]
	mov	r6, r2
	add	ip, lr, ip
	ldr	r2, .L10+8
	str	ip, [fp, #-72]
	str	r1, [fp, #-56]
	str	r3, [fp, #-60]
	ldr	r2, [r2]
	str	r2, [fp, #-40]
	mov	r2,#0
	add	ip, ip, #7
	ldr	r2, [fp, #8]
	bic	ip, ip, #7
	sub	sp, sp, ip
	str	r2, [fp, #-64]
	ldr	ip, [fp, #12]
	ldr	r2, [fp, #20]
	mov	r4, r0
	ldr	r0, .L10+12
	str	ip, [fp, #-68]
	str	r2, [fp, #-76]
	ldr	r5, [fp, #16]
	bl	os_strlen
	mov	r10, r0
	ldr	r0, [fp, #4]
	ldr	r2, [r4]
	add	r3, r6, r0
	add	r3, r3, r2, lsl #1
	add	r2, r3, r10
	mov	r0, r2
	str	r2, [fp, #-52]
	bl	os_malloc
	subs	ip, r0, #0
	str	ip, [fp, #-48]
	beq	.L5
	add	r3, ip, r10
	mov	r2, r10
	ldr	r1, .L10+12
	str	r3, [fp, #-80]
	bl	os_memcpy
	ldr	r3, [fp, #-80]
	mov	r2, r6
	mov	r0, r3
	ldr	r1, [fp, #-56]
	add	r10, r3, r6
	bl	os_memcpy
	ldr	lr, [fp, #4]
	ldr	r1, [fp, #-60]
	add	r6, r10, lr
	mov	r2, lr
	mov	r0, r10
	bl	os_memcpy
	ldr	r1, [fp, #-64]
	ldr	r2, [r4]
	mov	r0, r6
	bl	os_memcpy
	ldr	r2, [r4]
	ldr	r1, [fp, #-68]
	add	r0, r6, r2
	bl	os_memcpy
	ldr	r2, [r8]
	ldr	r3, [r7]
	add	r9, sp, #16
	add	r3, r3, r2
	ldr	r2, [fp, #-52]
	str	r3, [sp, #8]
	str	r9, [sp, #4]
	str	r2, [sp]
	ldr	r3, [fp, #-48]
	ldr	r2, [r4, #4]
	ldr	r1, [r4, #8]
	ldr	r0, [r4, #12]
	bl	eap_eke_prfplus
	cmp	r0, #0
	ldr	r0, [fp, #-48]
	blt	.L8
	bl	os_free
	mov	r1, r9
	ldr	r2, [r7]
	mov	r0, r5
	bl	os_memcpy
	ldr	r1, [r7]
	ldr	r2, [r8]
	ldr	r4, .L10+16
	add	r1, r9, r1
	ldr	r0, [fp, #-76]
	bl	os_memcpy
	mov	r1, #0
	ldr	r2, [fp, #-72]
	mov	r0, r9
	bl	os_memset
	mov	r2, r5
	ldr	r3, [r7]
	ldr	r1, .L10+20
	ldr	r0, [r4]
	bl	wpa_hexdump_key
	mov	r2, r5
	ldr	r0, [r4]
	ldr	r3, [r8]
	ldr	r1, .L10+24
	bl	wpa_hexdump_key
	mov	r0, #0
.L1:
	ldr	r3, .L10+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L5:
	mvn	r0, #0
	b	.L1
.L8:
	bl	os_free
	mvn	r0, #0
	b	.L1
.L9:
	bl	__stack_chk_fail
.L11:
	.align	2
.L10:
	.word	EAP_MSK_LEN
	.word	EAP_EMSK_LEN
	.word	.LC3
	.word	.LC0
	.word	MSG_DEBUG
	.word	.LC1
	.word	.LC2
	.size	eap_eke_derive_msk, .-eap_eke_derive_msk
	.comm	MSG_DEBUG,4,4
	.comm	EAP_MSK_LEN,4,4
	.comm	EAP_EMSK_LEN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
