	.file	"extr_eap_ttls.c_eap_ttls_phase2_request_pap.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"EAP-TTLS: Phase 2 PAP Request"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"EAP-TTLS/PAP: Failed to allocate memory"
	.text
	.p2align 4
	.type	eap_ttls_phase2_request_pap, @function
eap_ttls_phase2_request_pap:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	lea	rsi, .LC0[rip]
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	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, rdx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	call	wpa_printf@PLT
	lea	rsi, 24[rsp]
	mov	rdi, r13
	call	eap_get_config_identity@PLT
	lea	rsi, 32[rsp]
	mov	rdi, r13
	mov	r15, rax
	call	eap_get_config_password@PLT
	test	r15, r15
	je	.L6
	mov	rbx, rax
	test	rax, rax
	je	.L6
	mov	rdi, QWORD PTR 32[rsp]
	add	rdi, QWORD PTR 24[rsp]
	add	rdi, 100
	call	wpabuf_alloc@PLT
	mov	r13, rax
	test	rax, rax
	je	.L10
	mov	rdi, rax
	call	wpabuf_mhead@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 120
	xor	ecx, ecx
	mov	r9, r15
	push	QWORD PTR 32[rsp]
	.cfi_def_cfa_offset 128
	mov	edx, DWORD PTR RADIUS_ATTR_USER_NAME[rip]
	mov	rdi, rax
	mov	rsi, rax
	mov	r8d, 1
	mov	r14, rax
	call	eap_ttls_avp_add@PLT
	mov	rdi, rax
	mov	rax, QWORD PTR 48[rsp]
	pop	rdx
	.cfi_def_cfa_offset 120
	pop	rcx
	.cfi_def_cfa_offset 112
	test	rax, rax
	jne	.L11
	mov	QWORD PTR [rsp], 64
	mov	r9d, 16
.L4:
	lea	r8, [rax+r9]
	mov	ecx, 1
	xor	edx, edx
	mov	QWORD PTR 8[rsp], r9
	mov	esi, DWORD PTR RADIUS_ATTR_USER_PASSWORD[rip]
	call	eap_ttls_avp_hdr@PLT
	mov	rdx, QWORD PTR 32[rsp]
	mov	rsi, rbx
	mov	rdi, rax
	mov	r15, rax
	call	os_memcpy@PLT
	mov	rax, QWORD PTR 32[rsp]
	mov	r9, QWORD PTR 8[rsp]
	xor	esi, esi
	lea	rbx, [r15+rax*4]
	mov	rdx, r9
	mov	rdi, rbx
	call	os_memset@PLT
	add	rbx, QWORD PTR [rsp]
	mov	rdi, r14
	mov	rsi, rbx
	sub	rbx, r14
	call	AVP_PAD@PLT
	sar	rbx, 2
	mov	rdi, r13
	mov	rsi, rbx
	call	wpabuf_put@PLT
	mov	eax, DWORD PTR METHOD_DONE[rip]
	mov	QWORD PTR [r12], r13
	mov	DWORD PTR 4[rbp], eax
	mov	eax, DWORD PTR DECISION_COND_SUCC[rip]
	mov	DWORD PTR 0[rbp], eax
	xor	eax, eax
.L1:
	mov	rcx, QWORD PTR 40[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L12
	add	rsp, 56
	.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
.L11:
	.cfi_restore_state
	mov	r9, rax
	neg	r9
	and	r9d, 15
	lea	rcx, 0[0+r9*4]
	mov	QWORD PTR [rsp], rcx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L6:
	mov	eax, -1
	jmp	.L1
.L10:
	mov	edi, DWORD PTR MSG_ERROR[rip]
	lea	rsi, .LC1[rip]
	call	wpa_printf@PLT
	mov	eax, -1
	jmp	.L1
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	eap_ttls_phase2_request_pap, .-eap_ttls_phase2_request_pap
	.comm	RADIUS_ATTR_USER_PASSWORD,4,4
	.comm	RADIUS_ATTR_USER_NAME,4,4
	.comm	MSG_ERROR,4,4
	.comm	MSG_DEBUG,4,4
	.comm	METHOD_DONE,4,4
	.comm	DECISION_COND_SUCC,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_phase2_request_pap.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"EAP-TTLS: Phase 2 PAP Request\000"
	.align	2
.LC1:
	.ascii	"EAP-TTLS/PAP: Failed to allocate memory\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	eap_ttls_phase2_request_pap, %function
eap_ttls_phase2_request_pap:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r0
	ldr	r0, .L12
	mov	r8, r3
	ldr	r3, .L12+4
	sub	sp, sp, #36
	ldr	r1, .L12+8
	ldr	r0, [r0]
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	mov	r7, r2
	bl	wpa_printf
	add	r1, sp, #20
	mov	r0, r4
	bl	eap_get_config_identity
	add	r1, sp, #24
	mov	fp, r0
	mov	r0, r4
	bl	eap_get_config_password
	clz	r3, r0
	cmp	fp, #0
	lsr	r3, r3, #5
	movne	r5, r3
	moveq	r5, #1
	cmp	r5, #0
	bne	.L6
	ldr	r3, [sp, #24]
	mov	r10, r0
	ldr	r0, [sp, #20]
	add	r0, r0, r3
	add	r0, r0, #100
	bl	wpabuf_alloc
	subs	r6, r0, #0
	beq	.L10
	bl	wpabuf_mhead
	mov	lr, #1
	ldr	ip, [sp, #20]
	ldr	r2, .L12+12
	str	lr, [sp]
	str	fp, [sp, #4]
	mov	r3, r5
	ldr	r2, [r2]
	mov	r1, r0
	str	ip, [sp, #8]
	mov	r9, r0
	bl	eap_ttls_avp_add
	ldr	r3, [sp, #24]
	ldr	r2, .L12+16
	cmp	r3, #0
	moveq	fp, #16
	rsbne	fp, r3, #0
	andne	fp, fp, #15
	add	r3, r3, fp
	str	r3, [sp]
	ldr	r1, [r2]
	mov	r3, #1
	mov	r2, #0
	moveq	r4, #64
	lslne	r4, fp, #2
	bl	eap_ttls_avp_hdr
	mov	r5, r0
	mov	r1, r10
	ldr	r2, [sp, #24]
	bl	os_memcpy
	ldr	r0, [sp, #24]
	mov	r2, fp
	add	r0, r5, r0, lsl #2
	add	r4, r0, r4
	mov	r1, #0
	bl	os_memset
	mov	r1, r4
	mov	r0, r9
	bl	AVP_PAD
	sub	r1, r4, r9
	mov	r0, r6
	asr	r1, r1, #2
	bl	wpabuf_put
	mov	r0, #0
	ldr	r2, .L12+20
	ldr	r3, .L12+24
	ldr	r2, [r2]
	ldr	r3, [r3]
	str	r6, [r8]
	str	r2, [r7, #4]
	str	r3, [r7]
.L1:
	ldr	r3, .L12+4
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L6:
	mvn	r0, #0
	b	.L1
.L10:
	ldr	r3, .L12+28
	ldr	r1, .L12+32
	ldr	r0, [r3]
	bl	wpa_printf
	mvn	r0, #0
	b	.L1
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	MSG_DEBUG
	.word	.LC2
	.word	.LC0
	.word	RADIUS_ATTR_USER_NAME
	.word	RADIUS_ATTR_USER_PASSWORD
	.word	METHOD_DONE
	.word	DECISION_COND_SUCC
	.word	MSG_ERROR
	.word	.LC1
	.size	eap_ttls_phase2_request_pap, .-eap_ttls_phase2_request_pap
	.comm	RADIUS_ATTR_USER_PASSWORD,4,4
	.comm	RADIUS_ATTR_USER_NAME,4,4
	.comm	MSG_ERROR,4,4
	.comm	MSG_DEBUG,4,4
	.comm	METHOD_DONE,4,4
	.comm	DECISION_COND_SUCC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
