	.file	"extr_ieee802_1x.c_ieee802_1x_alloc_eapol_sm.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ieee802_1x_alloc_eapol_sm
	.type	ieee802_1x_alloc_eapol_sm, @function
ieee802_1x_alloc_eapol_sm:
.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
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rdi, QWORD PTR 24[rsi]
	mov	rbx, rsi
	mov	r12d, DWORD PTR [rsi]
	and	r12d, DWORD PTR WLAN_STA_PREAUTH[rip]
	cmovne	r12d, DWORD PTR EAPOL_SM_PREAUTH[rip]
	test	rdi, rdi
	jne	.L14
.L3:
	mov	eax, DWORD PTR 4[rbx]
	mov	ecx, DWORD PTR 16[rbx]
	mov	edx, r12d
	mov	r9, rbx
	mov	esi, DWORD PTR 20[rbx]
	mov	r8d, DWORD PTR 12[rbx]
	push	rax
	.cfi_def_cfa_offset 40
	mov	eax, DWORD PTR 8[rbx]
	mov	edi, DWORD PTR 0[rbp]
	push	rax
	.cfi_def_cfa_offset 48
	call	eapol_auth_alloc@PLT
	pop	rdx
	.cfi_def_cfa_offset 40
	pop	rcx
	.cfi_def_cfa_offset 32
	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
.L14:
	.cfi_restore_state
	or	r12d, DWORD PTR EAPOL_SM_USES_WPA[rip]
	call	wpa_auth_sta_get_pmksa@PLT
	test	rax, rax
	je	.L3
	or	r12d, DWORD PTR EAPOL_SM_FROM_PMKSA_CACHE[rip]
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	ieee802_1x_alloc_eapol_sm, .-ieee802_1x_alloc_eapol_sm
	.comm	WLAN_STA_PREAUTH,4,4
	.comm	EAPOL_SM_USES_WPA,4,4
	.comm	EAPOL_SM_PREAUTH,4,4
	.comm	EAPOL_SM_FROM_PMKSA_CACHE,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_ieee802_1x.c_ieee802_1x_alloc_eapol_sm.c"
	.text
	.align	2
	.global	ieee802_1x_alloc_eapol_sm
	.syntax unified
	.arm
	.fpu softvfp
	.type	ieee802_1x_alloc_eapol_sm, %function
ieee802_1x_alloc_eapol_sm:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L16
	push	{r4, r5, r6, lr}
	ldr	r2, [r3]
	ldr	r5, [r1]
	mov	r6, r0
	ands	r5, r5, r2
	ldrne	r3, .L16+4
	ldr	r0, [r1, #24]
	ldrne	r5, [r3]
	cmp	r0, #0
	mov	r4, r1
	sub	sp, sp, #16
	bne	.L15
.L3:
	ldr	r1, [r4, #8]
	ldr	r3, [r4, #12]
	ldr	ip, [r4, #4]
	str	r4, [sp, #4]
	ldr	r0, [r6]
	str	ip, [sp, #12]
	str	r1, [sp, #8]
	str	r3, [sp]
	mov	r2, r5
	ldr	r3, [r4, #16]
	ldr	r1, [r4, #20]
	bl	eapol_auth_alloc
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, pc}
.L15:
	ldr	r3, .L16+8
	ldr	r3, [r3]
	orr	r5, r5, r3
	bl	wpa_auth_sta_get_pmksa
	cmp	r0, #0
	ldrne	r3, .L16+12
	ldrne	r3, [r3]
	orrne	r5, r5, r3
	b	.L3
.L17:
	.align	2
.L16:
	.word	WLAN_STA_PREAUTH
	.word	EAPOL_SM_PREAUTH
	.word	EAPOL_SM_USES_WPA
	.word	EAPOL_SM_FROM_PMKSA_CACHE
	.size	ieee802_1x_alloc_eapol_sm, .-ieee802_1x_alloc_eapol_sm
	.comm	WLAN_STA_PREAUTH,4,4
	.comm	EAPOL_SM_USES_WPA,4,4
	.comm	EAPOL_SM_PREAUTH,4,4
	.comm	EAPOL_SM_FROM_PMKSA_CACHE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
