	.file	"extr_eap_ttls.c_eap_ttls_v0_derive_key.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"ttls keying material"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"EAP-TTLS: Failed to derive key"
	.section	.rodata.str1.1
.LC2:
	.string	"EAP-TTLS: Derived key"
.LC3:
	.string	"EAP-TTLS: Derived EMSK"
.LC4:
	.string	"EAP-TTLS: Derived Session-Id"
	.section	.rodata.str1.8
	.align 8
.LC5:
	.string	"EAP-TTLS: Failed to derive Session-Id"
	.text
	.p2align 4
	.type	eap_ttls_v0_derive_key, @function
eap_ttls_v0_derive_key:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	mov	rdi, rsi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rsi
	lea	r12, 16[rbx]
	call	eap_ttls_free_key@PLT
	xor	r8d, r8d
	xor	ecx, ecx
	mov	rsi, r12
	mov	r9, QWORD PTR EAP_EMSK_LEN[rip]
	lea	rdx, .LC0[rip]
	mov	rdi, rbp
	add	r9, QWORD PTR EAP_TLS_KEY_LEN[rip]
	call	eap_peer_tls_derive_key@PLT
	mov	QWORD PTR 24[rbx], rax
	test	rax, rax
	je	.L7
	mov	rcx, QWORD PTR EAP_TLS_KEY_LEN[rip]
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	mov	rdx, rax
	lea	rsi, .LC2[rip]
	call	wpa_hexdump_key@PLT
	mov	rcx, QWORD PTR EAP_EMSK_LEN[rip]
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	lea	rsi, .LC3[rip]
	mov	rdx, QWORD PTR EAP_TLS_KEY_LEN[rip]
	add	rdx, QWORD PTR 24[rbx]
	call	wpa_hexdump_key@PLT
	mov	rdi, QWORD PTR 8[rbx]
	call	os_free@PLT
	mov	rcx, rbx
	mov	rsi, r12
	mov	rdi, rbp
	mov	edx, DWORD PTR EAP_TYPE_TTLS[rip]
	call	eap_peer_tls_derive_session_id@PLT
	mov	QWORD PTR 8[rbx], rax
	mov	rdx, rax
	test	rax, rax
	jne	.L8
	mov	edi, DWORD PTR MSG_ERROR[rip]
	lea	rsi, .LC5[rip]
	call	wpa_printf@PLT
	xor	eax, eax
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	ecx, DWORD PTR [rbx]
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	lea	rsi, .LC4[rip]
	call	wpa_hexdump@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	edi, DWORD PTR MSG_INFO[rip]
	lea	rsi, .LC1[rip]
	call	wpa_printf@PLT
	mov	eax, -1
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	eap_ttls_v0_derive_key, .-eap_ttls_v0_derive_key
	.comm	MSG_INFO,4,4
	.comm	MSG_ERROR,4,4
	.comm	MSG_DEBUG,4,4
	.comm	EAP_TYPE_TTLS,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_ttls.c_eap_ttls_v0_derive_key.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"ttls keying material\000"
	.align	2
.LC1:
	.ascii	"EAP-TTLS: Failed to derive key\000"
	.align	2
.LC2:
	.ascii	"EAP-TTLS: Derived key\000"
	.align	2
.LC3:
	.ascii	"EAP-TTLS: Derived EMSK\000"
	.align	2
.LC4:
	.ascii	"EAP-TTLS: Derived Session-Id\000"
	.align	2
.LC5:
	.ascii	"EAP-TTLS: Failed to derive Session-Id\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	eap_ttls_v0_derive_key, %function
eap_ttls_v0_derive_key:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r1
	mov	r7, #0
	mov	r5, r0
	ldr	r6, .L9
	ldr	r10, .L9+4
	sub	sp, sp, #8
	mov	r0, r1
	bl	eap_ttls_free_key
	ldr	r2, [r10]
	ldr	r3, [r6]
	add	r9, r4, #8
	add	r3, r3, r2
	str	r3, [sp, #4]
	mov	r1, r9
	mov	r0, r5
	mov	r3, r7
	ldr	r2, .L9+8
	str	r7, [sp]
	bl	eap_peer_tls_derive_key
	cmp	r0, r7
	str	r0, [r4, #12]
	beq	.L7
	ldr	r8, .L9+12
	mov	r2, r0
	ldr	r3, [r6]
	ldr	r1, .L9+16
	ldr	r0, [r8]
	bl	wpa_hexdump_key
	ldr	r1, [r4, #12]
	ldr	r2, [r6]
	ldr	r3, [r10]
	add	r2, r1, r2
	ldr	r0, [r8]
	ldr	r1, .L9+20
	bl	wpa_hexdump_key
	ldr	r0, [r4, #4]
	bl	os_free
	ldr	r3, .L9+24
	mov	r0, r5
	ldr	r2, [r3]
	mov	r1, r9
	mov	r3, r4
	bl	eap_peer_tls_derive_session_id
	cmp	r0, #0
	mov	r5, r0
	str	r0, [r4, #4]
	bne	.L8
	ldr	r3, .L9+28
	ldr	r1, .L9+32
	ldr	r0, [r3]
	bl	wpa_printf
.L1:
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L8:
	mov	r5, r7
	mov	r2, r0
	ldr	r3, [r4]
	ldr	r0, [r8]
	ldr	r1, .L9+36
	bl	wpa_hexdump
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L7:
	ldr	r3, .L9+40
	ldr	r1, .L9+44
	ldr	r0, [r3]
	bl	wpa_printf
	mvn	r5, #0
	b	.L1
.L10:
	.align	2
.L9:
	.word	EAP_TLS_KEY_LEN
	.word	EAP_EMSK_LEN
	.word	.LC0
	.word	MSG_DEBUG
	.word	.LC2
	.word	.LC3
	.word	EAP_TYPE_TTLS
	.word	MSG_ERROR
	.word	.LC5
	.word	.LC4
	.word	MSG_INFO
	.word	.LC1
	.size	eap_ttls_v0_derive_key, .-eap_ttls_v0_derive_key
	.comm	MSG_INFO,4,4
	.comm	MSG_ERROR,4,4
	.comm	MSG_DEBUG,4,4
	.comm	EAP_TYPE_TTLS,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
