	.file	"extr_sme.c_cfg80211_connect.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	cfg80211_connect
	.type	cfg80211_connect, @function
cfg80211_connect:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rcx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, r8
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	rbx, QWORD PTR [rsi]
	mov	rdi, rbx
	call	ASSERT_WDEV_LOCK@PLT
	mov	rdx, QWORD PTR [rbx]
	test	rdx, rdx
	je	.L2
	cmp	rdx, QWORD PTR [r12]
	je	.L3
.L34:
	mov	eax, DWORD PTR EALREADY[rip]
	neg	eax
.L1:
	add	rsp, 8
	.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
.L3:
	.cfi_restore_state
	mov	esi, DWORD PTR 24[r12]
	mov	edi, DWORD PTR 28[rbx]
	call	memcmp@PLT
	test	rax, rax
	jne	.L34
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rax, QWORD PTR 8[rbx]
	test	rax, rax
	je	.L6
	test	r13, r13
	je	.L34
	mov	esi, DWORD PTR [rax]
	mov	rdi, r13
	call	ether_addr_equal@PLT
	test	eax, eax
	je	.L36
.L6:
	cmp	QWORD PTR 16[rbx], 0
	je	.L8
	mov	eax, DWORD PTR EINPROGRESS[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	neg	eax
	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
.L36:
	.cfi_restore_state
	mov	eax, DWORD PTR ENOTCONN[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	neg	eax
	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
.L8:
	.cfi_restore_state
	mov	esi, DWORD PTR 12[r15]
	lea	rdi, 76[r12]
	call	cfg80211_oper_and_ht_capa@PLT
	mov	esi, DWORD PTR 8[r15]
	lea	rdi, 72[r12]
	call	cfg80211_oper_and_vht_capa@PLT
	test	r14, r14
	je	.L9
	mov	rdx, QWORD PTR [r14]
	test	rdx, rdx
	js	.L9
	mov	rsi, QWORD PTR 8[r14]
	movsx	rax, edx
	mov	edi, edx
	sal	rax, 4
	add	rax, rsi
	mov	rcx, QWORD PTR [rax]
	cmp	QWORD PTR WLAN_CIPHER_SUITE_WEP40[rip], rcx
	je	.L10
	cmp	QWORD PTR WLAN_CIPHER_SUITE_WEP104[rip], rcx
	je	.L10
.L11:
	mov	QWORD PTR 48[r12], rsi
	mov	DWORD PTR 44[r12], edi
.L13:
	mov	esi, DWORD PTR 24[r12]
	mov	edi, DWORD PTR 28[rbx]
	mov	QWORD PTR 16[rbx], r14
	mov	rdx, QWORD PTR [r12]
	call	memcpy@PLT
	mov	rax, QWORD PTR [r12]
	cmp	QWORD PTR 16[r12], 0
	mov	QWORD PTR [rbx], rax
	mov	eax, DWORD PTR IEEE80211_BSS_TYPE_ESS[rip]
	je	.L15
	mov	eax, DWORD PTR IEEE80211_BSS_TYPE_PBSS[rip]
.L15:
	mov	DWORD PTR 24[rbx], eax
	mov	rax, QWORD PTR [r15]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L37
	mov	rdx, r12
	mov	rsi, rbp
	mov	rdi, r15
	call	rdev_connect@PLT
.L17:
	test	eax, eax
	je	.L1
	cmp	QWORD PTR 8[rbx], 0
	mov	QWORD PTR 16[rbx], 0
	jne	.L1
	mov	QWORD PTR [rbx], 0
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rdi, r14
	call	WARN_ON@PLT
	test	rax, rax
	je	.L13
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L37:
	mov	rdx, r13
	mov	rsi, r12
	mov	rdi, rbx
	call	cfg80211_sme_connect@PLT
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L10:
	mov	DWORD PTR 8[r12], edx
	mov	edx, DWORD PTR 12[rax]
	mov	eax, DWORD PTR 8[rax]
	cmp	QWORD PTR 32[r12], 0
	mov	DWORD PTR 68[r12], edx
	mov	DWORD PTR 64[r12], eax
	jne	.L12
	mov	QWORD PTR 32[r12], rcx
.L12:
	mov	edx, DWORD PTR 40[r12]
	test	edx, edx
	jne	.L11
	mov	DWORD PTR 40[r12], 1
	mov	rax, QWORD PTR 56[r12]
	mov	QWORD PTR [rax], rcx
	mov	edi, DWORD PTR [r14]
	jmp	.L11
	.cfi_endproc
.LFE0:
	.size	cfg80211_connect, .-cfg80211_connect
	.comm	WLAN_CIPHER_SUITE_WEP40,8,8
	.comm	WLAN_CIPHER_SUITE_WEP104,8,8
	.comm	IEEE80211_BSS_TYPE_PBSS,4,4
	.comm	IEEE80211_BSS_TYPE_ESS,4,4
	.comm	ENOTCONN,4,4
	.comm	EINVAL,4,4
	.comm	EINPROGRESS,4,4
	.comm	EALREADY,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_sme.c_cfg80211_connect.c"
	.text
	.align	2
	.global	cfg80211_connect
	.syntax unified
	.arm
	.fpu softvfp
	.type	cfg80211_connect, %function
cfg80211_connect:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r6, [r1]
	mov	r8, r0
	mov	r0, r6
	mov	r4, r2
	mov	r7, r1
	mov	r5, r3
	bl	ASSERT_WDEV_LOCK
	ldr	r2, [r6]
	cmp	r2, #0
	beq	.L2
	ldr	r3, [r4]
	cmp	r2, r3
	beq	.L3
.L34:
	ldr	r3, .L38
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L3:
	ldr	r1, [r4, #12]
	ldr	r0, [r6, #16]
	bl	memcmp
	cmp	r0, #0
	bne	.L34
.L2:
	ldr	r3, [r6, #4]
	cmp	r3, #0
	beq	.L6
	ldr	r2, [sp, #24]
	cmp	r2, #0
	beq	.L34
	ldr	r1, [r3]
	ldr	r0, [sp, #24]
	bl	ether_addr_equal
	cmp	r0, #0
	beq	.L36
.L6:
	ldr	r3, [r6, #8]
	cmp	r3, #0
	beq	.L8
	ldr	r3, .L38+4
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L36:
	ldr	r3, .L38+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	ldr	r1, [r8, #8]
	add	r0, r4, #48
	bl	cfg80211_oper_and_ht_capa
	ldr	r1, [r8, #4]
	add	r0, r4, #44
	bl	cfg80211_oper_and_vht_capa
	cmp	r5, #0
	beq	.L9
	ldr	r3, [r5]
	cmp	r3, #0
	blt	.L9
	ldr	r1, [r5, #4]
	ldr	ip, .L38+12
	add	r2, r3, r3, lsl #1
	ldr	r0, [r1, r2, lsl #2]
	ldr	ip, [ip]
	add	r2, r1, r2, lsl #2
	cmp	ip, r0
	beq	.L10
	ldr	ip, .L38+16
	ldr	ip, [ip]
	cmp	ip, r0
	beq	.L10
.L11:
	str	r1, [r4, #28]
	str	r3, [r4, #24]
.L13:
	ldr	r2, [r4]
	ldr	r1, [r4, #12]
	ldr	r0, [r6, #16]
	str	r5, [r6, #8]
	bl	memcpy
	ldr	r2, [r4, #8]
	ldr	r3, [r4]
	cmp	r2, #0
	str	r3, [r6]
	ldrne	r3, .L38+20
	ldreq	r3, .L38+24
	ldr	r2, [r3]
	ldr	r3, [r8]
	str	r2, [r6, #12]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L37
	mov	r2, r4
	mov	r1, r7
	mov	r0, r8
	bl	rdev_connect
.L17:
	cmp	r0, #0
	popeq	{r4, r5, r6, r7, r8, pc}
	mov	r2, #0
	ldr	r3, [r6, #4]
	str	r2, [r6, #8]
	cmp	r3, r2
	streq	r3, [r6]
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	mov	r0, r5
	bl	WARN_ON
	cmp	r0, #0
	beq	.L13
	ldr	r3, .L38+28
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L37:
	mov	r1, r4
	mov	r0, r6
	ldr	r2, [sp, #24]
	bl	cfg80211_sme_connect
	b	.L17
.L10:
	ldr	lr, [r4, #16]
	ldmib	r2, {r2, ip}
	str	r2, [r4, #36]
	ldr	r2, [r4, #20]
	cmp	lr, #0
	streq	r0, [r4, #16]
	cmp	r2, #0
	moveq	r2, #1
	str	r3, [r4, #4]
	ldreq	r3, [r4, #32]
	str	ip, [r4, #40]
	streq	r2, [r4, #20]
	streq	r0, [r3]
	ldreq	r3, [r5]
	b	.L11
.L39:
	.align	2
.L38:
	.word	EALREADY
	.word	EINPROGRESS
	.word	ENOTCONN
	.word	WLAN_CIPHER_SUITE_WEP40
	.word	WLAN_CIPHER_SUITE_WEP104
	.word	IEEE80211_BSS_TYPE_PBSS
	.word	IEEE80211_BSS_TYPE_ESS
	.word	EINVAL
	.size	cfg80211_connect, .-cfg80211_connect
	.comm	WLAN_CIPHER_SUITE_WEP40,4,4
	.comm	WLAN_CIPHER_SUITE_WEP104,4,4
	.comm	IEEE80211_BSS_TYPE_PBSS,4,4
	.comm	IEEE80211_BSS_TYPE_ESS,4,4
	.comm	ENOTCONN,4,4
	.comm	EINVAL,4,4
	.comm	EINPROGRESS,4,4
	.comm	EALREADY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
