	.file	"extr_eap_ttls.c_eap_ttls_process.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"EAP-TTLS: Start (server ver=%d, own ver=%d)"
	.text
	.p2align 4
	.type	eap_ttls_process, @function
eap_ttls_process:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r8, rcx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rcx
	mov	rcx, rdx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	add	rsi, 8
	sub	rsp, 48
	.cfi_def_cfa_offset 104
	mov	edx, DWORD PTR EAP_TYPE_TTLS[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 32[rsp], rax
	xor	eax, eax
	lea	rax, 8[rsp]
	push	rax
	.cfi_def_cfa_offset 112
	lea	r9, 24[rsp]
	call	eap_peer_tls_process_init@PLT
	pop	rdx
	.cfi_def_cfa_offset 104
	pop	rcx
	.cfi_def_cfa_offset 96
	mov	r12, rax
	test	rax, rax
	je	.L1
	mov	rdi, r14
	call	eap_get_id@PLT
	mov	edx, DWORD PTR [rsp]
	mov	r14d, eax
	test	DWORD PTR EAP_TLS_FLAGS_START[rip], edx
	jne	.L3
	mov	rdx, QWORD PTR 8[rsp]
.L4:
	lea	r15, 4[rsp]
	mov	rsi, r12
	mov	rdi, r15
	call	wpabuf_set@PLT
	mov	esi, DWORD PTR 8[rbx]
	mov	edi, DWORD PTR 0[rbp]
	mov	QWORD PTR 16[rsp], 0
	call	tls_connection_established@PLT
	lea	r9, 16[rsp]
	mov	r8, r15
	mov	ecx, r14d
	mov	rdx, r13
	mov	rsi, rbx
	mov	rdi, rbp
	test	rax, rax
	je	.L5
	mov	eax, DWORD PTR 4[rbx]
	test	eax, eax
	je	.L17
.L5:
	call	eap_ttls_process_handshake@PLT
	mov	r15d, eax
.L6:
	mov	rdx, r13
	mov	rsi, rbx
	mov	rdi, rbp
	call	eap_ttls_check_auth_status@PLT
	mov	r12, QWORD PTR 16[rsp]
	cmp	r15d, 1
	je	.L18
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L19
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r12
	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
.L3:
	.cfi_restore_state
	mov	ecx, DWORD PTR [rbx]
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	lea	rsi, .LC0[rip]
	and	edx, DWORD PTR EAP_TLS_VERSION_MASK[rip]
	call	wpa_printf@PLT
	xor	edx, edx
	mov	QWORD PTR 8[rsp], 0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L17:
	call	eap_ttls_decrypt@PLT
	mov	r15d, eax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L18:
	mov	rdi, r12
	call	wpabuf_clear_free@PLT
	mov	edx, DWORD PTR [rbx]
	mov	esi, DWORD PTR EAP_TYPE_TTLS[rip]
	mov	edi, r14d
	call	eap_peer_tls_build_ack@PLT
	mov	r12, rax
	jmp	.L1
.L19:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	eap_ttls_process, .-eap_ttls_process
	.comm	MSG_DEBUG,4,4
	.comm	EAP_TYPE_TTLS,4,4
	.comm	EAP_TLS_VERSION_MASK,4,4
	.comm	EAP_TLS_FLAGS_START,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_ttls.c_eap_ttls_process.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"EAP-TTLS: Start (server ver=%d, own ver=%d)\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	eap_ttls_process, %function
eap_ttls_process:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	sub	sp, sp, #44
	add	lr, sp, #24
	add	ip, sp, #20
	stmib	sp, {ip, lr}
	ldr	r9, .L20
	ldr	ip, .L20+4
	str	r3, [sp]
	mov	r4, r1
	mov	r6, r2
	mov	r8, r3
	add	r1, r1, #8
	mov	r3, r2
	ldr	r2, [r9]
	ldr	ip, [ip]
	str	ip, [sp, #36]
	mov	ip,#0
	mov	r7, r0
	bl	eap_peer_tls_process_init
	subs	r5, r0, #0
	beq	.L1
	mov	r0, r8
	bl	eap_get_id
	ldr	r2, .L20+8
	ldr	r3, [sp, #24]
	ldr	r2, [r2]
	mov	r8, r0
	tst	r3, r2
	bne	.L3
	ldr	r2, [sp, #20]
.L4:
	mov	r1, r5
	add	r0, sp, #32
	bl	wpabuf_set
	mov	r3, #0
	ldr	r1, [r4, #8]
	ldr	r0, [r7]
	str	r3, [sp, #28]
	bl	tls_connection_established
	cmp	r0, #0
	beq	.L5
	ldr	r3, [r4, #4]
	cmp	r3, #0
	beq	.L17
.L5:
	add	r3, sp, #28
	add	r2, sp, #32
	stm	sp, {r2, r3}
	mov	r1, r4
	mov	r3, r8
	mov	r2, r6
	mov	r0, r7
	bl	eap_ttls_process_handshake
	mov	r5, r0
.L6:
	mov	r2, r6
	mov	r0, r7
	mov	r1, r4
	bl	eap_ttls_check_auth_status
	cmp	r5, #1
	ldrne	r5, [sp, #28]
	beq	.L18
.L1:
	ldr	r3, .L20+4
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L19
	mov	r0, r5
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L3:
	ldr	r2, .L20+12
	ldr	r1, .L20+16
	ldr	r2, [r2]
	ldr	r0, [r1]
	and	r2, r2, r3
	ldr	r1, .L20+20
	ldr	r3, [r4]
	bl	wpa_printf
	mov	r3, #0
	mov	r2, r3
	str	r3, [sp, #20]
	b	.L4
.L17:
	add	r3, sp, #28
	add	r2, sp, #32
	stm	sp, {r2, r3}
	mov	r1, r4
	mov	r3, r8
	mov	r2, r6
	mov	r0, r7
	bl	eap_ttls_decrypt
	mov	r5, r0
	b	.L6
.L18:
	ldr	r0, [sp, #28]
	bl	wpabuf_clear_free
	mov	r0, r8
	ldr	r2, [r4]
	ldr	r1, [r9]
	bl	eap_peer_tls_build_ack
	mov	r5, r0
	b	.L1
.L19:
	bl	__stack_chk_fail
.L21:
	.align	2
.L20:
	.word	EAP_TYPE_TTLS
	.word	.LC1
	.word	EAP_TLS_FLAGS_START
	.word	EAP_TLS_VERSION_MASK
	.word	MSG_DEBUG
	.word	.LC0
	.size	eap_ttls_process, .-eap_ttls_process
	.comm	MSG_DEBUG,4,4
	.comm	EAP_TYPE_TTLS,4,4
	.comm	EAP_TLS_VERSION_MASK,4,4
	.comm	EAP_TLS_FLAGS_START,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
