	.file	"extr_eap_server_tls.c_eap_tls_getKey.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"EXPORTER_EAP_TLS_Key_Material"
.LC1:
	.string	"client EAP encryption"
.LC2:
	.string	"EAP-TLS: Derived key"
.LC3:
	.string	"EAP-TLS: Failed to derive key"
	.text
	.p2align 4
	.type	eap_tls_getKey, @function
eap_tls_getKey:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	r12d, r12d
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 24
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR EAP_TYPE_TLS[rip]
	mov	DWORD PTR 4[rsp], eax
	mov	rax, QWORD PTR SUCCESS[rip]
	cmp	QWORD PTR [rsi], rax
	jne	.L1
	cmp	QWORD PTR 8[rsi], 0
	mov	rbx, rdx
	jne	.L7
	xor	r8d, r8d
	xor	ecx, ecx
	lea	rdx, .LC1[rip]
.L3:
	mov	r9, QWORD PTR EAP_EMSK_LEN[rip]
	add	rsi, 8
	add	r9, QWORD PTR EAP_TLS_KEY_LEN[rip]
	call	eap_server_tls_derive_key@PLT
	mov	r12, rax
	test	rax, rax
	je	.L4
	mov	rcx, QWORD PTR EAP_TLS_KEY_LEN[rip]
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	mov	rdx, rax
	lea	rsi, .LC2[rip]
	mov	QWORD PTR [rbx], rcx
	call	wpa_hexdump@PLT
	mov	rax, QWORD PTR EAP_TLS_KEY_LEN[rip]
	mov	rdx, QWORD PTR EAP_EMSK_LEN[rip]
	xor	esi, esi
	lea	rdi, [r12+rax*4]
	call	os_memset@PLT
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L10
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	r8d, 1
	lea	rcx, 4[rsp]
	lea	rdx, .LC0[rip]
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	lea	rsi, .LC3[rip]
	call	wpa_printf@PLT
	jmp	.L1
.L10:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	eap_tls_getKey, .-eap_tls_getKey
	.comm	SUCCESS,8,8
	.comm	MSG_DEBUG,4,4
	.comm	EAP_TYPE_TLS,4,4
	.comm	EAP_TLS_KEY_LEN,8,8
	.comm	EAP_EMSK_LEN,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_tls.c_eap_tls_getKey.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"EXPORTER_EAP_TLS_Key_Material\000"
	.align	2
.LC1:
	.ascii	"client EAP encryption\000"
	.align	2
.LC2:
	.ascii	"EAP-TLS: Derived key\000"
	.align	2
.LC3:
	.ascii	"EAP-TLS: Failed to derive key\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	eap_tls_getKey, %function
eap_tls_getKey:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	ip, .L11
	ldr	r3, .L11+4
	ldr	lr, [r1]
	ldr	ip, [ip]
	mov	r5, r2
	ldr	r3, [r3]
	ldr	r2, .L11+8
	sub	sp, sp, #20
	cmp	lr, ip
	ldr	r2, [r2]
	str	r2, [sp, #12]
	mov	r2,#0
	movne	r4, #0
	str	r3, [sp, #8]
	bne	.L1
	ldr	ip, [r1, #4]
	ldr	r6, .L11+12
	cmp	ip, #0
	movne	ip, #1
	ldr	r7, .L11+16
	ldr	lr, [r6]
	ldr	r4, [r7]
	moveq	r3, ip
	str	ip, [sp]
	add	ip, lr, r4
	ldreq	r2, .L11+20
	ldrne	r2, .L11+24
	addne	r3, sp, #8
	add	r1, r1, #4
	str	ip, [sp, #4]
	bl	eap_server_tls_derive_key
	subs	r4, r0, #0
	beq	.L4
	ldr	r3, [r6]
	ldr	r2, .L11+28
	ldr	r1, .L11+32
	ldr	r0, [r2]
	str	r3, [r5]
	mov	r2, r4
	bl	wpa_hexdump
	ldr	r0, [r6]
	mov	r1, #0
	ldr	r2, [r7]
	add	r0, r4, r0, lsl #2
	bl	os_memset
.L1:
	ldr	r3, .L11+8
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	mov	r0, r4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L4:
	ldr	r3, .L11+28
	ldr	r1, .L11+36
	ldr	r0, [r3]
	bl	wpa_printf
	b	.L1
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	SUCCESS
	.word	EAP_TYPE_TLS
	.word	.LC4
	.word	EAP_TLS_KEY_LEN
	.word	EAP_EMSK_LEN
	.word	.LC1
	.word	.LC0
	.word	MSG_DEBUG
	.word	.LC2
	.word	.LC3
	.size	eap_tls_getKey, .-eap_tls_getKey
	.comm	SUCCESS,4,4
	.comm	MSG_DEBUG,4,4
	.comm	EAP_TYPE_TLS,4,4
	.comm	EAP_TLS_KEY_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
