	.file	"extr_cfg.c_ieee80211_change_bss.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ieee80211_change_bss, @function
ieee80211_change_bss:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdi
	mov	rdi, rsi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdx
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	IEEE80211_DEV_TO_SUB_IF@PLT
	mov	edi, DWORD PTR 44[rax]
	mov	rsi, rax
	mov	rbp, rax
	call	sdata_dereference@PLT
	test	eax, eax
	jne	.L2
	mov	eax, DWORD PTR ENOENT[rip]
	neg	eax
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rdi, rbp
	call	ieee80211_get_sband@PLT
	test	rax, rax
	je	.L23
	mov	rdx, QWORD PTR [rbx]
	xor	r12d, r12d
	test	rdx, rdx
	js	.L5
	mov	QWORD PTR 0[rbp], rdx
	mov	r12d, DWORD PTR BSS_CHANGED_ERP_CTS_PROT[rip]
.L5:
	mov	rdx, QWORD PTR 8[rbx]
	test	rdx, rdx
	js	.L6
	mov	QWORD PTR 8[rbp], rdx
	or	r12d, DWORD PTR BSS_CHANGED_ERP_PREAMBLE[rip]
.L6:
	mov	edx, DWORD PTR 16[rbp]
	test	edx, edx
	jne	.L7
	mov	rcx, QWORD PTR NL80211_BAND_5GHZ[rip]
	cmp	QWORD PTR [rax], rcx
	je	.L24
.L7:
	mov	edx, DWORD PTR 16[rbx]
	test	edx, edx
	js	.L8
	mov	DWORD PTR 16[rbp], edx
	or	r12d, DWORD PTR BSS_CHANGED_ERP_SLOT[rip]
.L8:
	mov	rdx, QWORD PTR 64[rbx]
	test	rdx, rdx
	jne	.L25
.L9:
	mov	rdx, QWORD PTR 24[rbx]
	test	rdx, rdx
	js	.L10
	mov	ecx, DWORD PTR 40[rbp]
	mov	eax, DWORD PTR IEEE80211_SDATA_DONT_BRIDGE_PACKETS[rip]
	mov	rdi, rbp
	mov	esi, ecx
	or	esi, eax
	not	eax
	and	eax, ecx
	test	rdx, rdx
	cmovne	eax, esi
	mov	DWORD PTR 40[rbp], eax
	call	ieee80211_check_fast_rx_iface@PLT
.L10:
	mov	rax, QWORD PTR 32[rbx]
	test	rax, rax
	js	.L13
	mov	QWORD PTR 24[rbp], rax
	or	r12d, DWORD PTR BSS_CHANGED_HT[rip]
.L13:
	mov	eax, DWORD PTR 40[rbx]
	test	eax, eax
	js	.L14
	mov	edx, DWORD PTR 20[rbp]
	or	r12d, DWORD PTR BSS_CHANGED_P2P_PS[rip]
	xor	eax, edx
	and	eax, DWORD PTR IEEE80211_P2P_OPPPS_CTWINDOW_MASK[rip]
	xor	eax, edx
	mov	DWORD PTR 20[rbp], eax
.L14:
	cmp	QWORD PTR 48[rbx], 0
	jle	.L15
	mov	eax, DWORD PTR IEEE80211_P2P_OPPPS_ENABLE_BIT[rip]
	or	DWORD PTR 20[rbp], eax
	or	r12d, DWORD PTR BSS_CHANGED_P2P_PS[rip]
.L16:
	mov	esi, r12d
	mov	rdi, rbp
	call	ieee80211_bss_info_change_notify@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L24:
	.cfi_restore_state
	mov	DWORD PTR 16[rbp], 1
	or	r12d, DWORD PTR BSS_CHANGED_ERP_SLOT[rip]
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L15:
	jne	.L16
	mov	eax, DWORD PTR IEEE80211_P2P_OPPPS_ENABLE_BIT[rip]
	or	r12d, DWORD PTR BSS_CHANGED_P2P_PS[rip]
	not	eax
	and	DWORD PTR 20[rbp], eax
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L25:
	mov	rsi, QWORD PTR [rax]
	mov	rax, QWORD PTR 0[r13]
	lea	rdi, 36[rbp]
	lea	r8, 32[rbp]
	mov	ecx, DWORD PTR 56[rbx]
	mov	esi, DWORD PTR [rax+rsi*4]
	call	ieee80211_parse_bitrates@PLT
	mov	rdi, rbp
	or	r12d, DWORD PTR BSS_CHANGED_BASIC_RATES[rip]
	call	ieee80211_check_rate_mask@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L23:
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	ieee80211_change_bss, .-ieee80211_change_bss
	.comm	NL80211_BAND_5GHZ,8,8
	.comm	IEEE80211_SDATA_DONT_BRIDGE_PACKETS,4,4
	.comm	IEEE80211_P2P_OPPPS_ENABLE_BIT,4,4
	.comm	IEEE80211_P2P_OPPPS_CTWINDOW_MASK,4,4
	.comm	ENOENT,4,4
	.comm	EINVAL,4,4
	.comm	BSS_CHANGED_P2P_PS,4,4
	.comm	BSS_CHANGED_HT,4,4
	.comm	BSS_CHANGED_ERP_SLOT,4,4
	.comm	BSS_CHANGED_ERP_PREAMBLE,4,4
	.comm	BSS_CHANGED_ERP_CTS_PROT,4,4
	.comm	BSS_CHANGED_BASIC_RATES,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_cfg.c_ieee80211_change_bss.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ieee80211_change_bss, %function
ieee80211_change_bss:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r7, r0
	sub	sp, sp, #12
	mov	r0, r1
	mov	r5, r2
	bl	IEEE80211_DEV_TO_SUB_IF
	mov	r1, r0
	mov	r4, r0
	ldr	r0, [r0, #32]
	bl	sdata_dereference
	cmp	r0, #0
	bne	.L2
	ldr	r3, .L25
	ldr	r0, [r3]
	rsb	r0, r0, #0
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L2:
	mov	r0, r4
	bl	ieee80211_get_sband
	cmp	r0, #0
	beq	.L23
	ldr	r3, [r5]
	cmp	r3, #0
	ldrge	r2, .L25+4
	strge	r3, [r4]
	ldr	r3, [r5, #4]
	ldrge	r6, [r2]
	movlt	r6, #0
	cmp	r3, #0
	ldrge	r2, .L25+8
	strge	r3, [r4, #4]
	ldrge	r3, [r2]
	orrge	r6, r6, r3
	ldr	r3, [r4, #8]
	cmp	r3, #0
	bne	.L7
	ldr	r3, .L25+12
	ldr	r2, [r0]
	ldr	r3, [r3]
	cmp	r2, r3
	moveq	r2, #1
	ldreq	r3, .L25+16
	streq	r2, [r4, #8]
	ldreq	r3, [r3]
	orreq	r6, r6, r3
.L7:
	ldr	r3, [r5, #8]
	cmp	r3, #0
	ldrge	r2, .L25+16
	strge	r3, [r4, #8]
	ldrge	r3, [r2]
	ldr	r2, [r5, #32]
	orrge	r6, r6, r3
	cmp	r2, #0
	bne	.L24
.L9:
	ldr	r3, [r5, #12]
	cmp	r3, #0
	blt	.L10
	ldr	r2, .L25+20
	ldr	r3, [r4, #28]
	ldr	r2, [r2]
	mov	r0, r4
	orrne	r3, r3, r2
	biceq	r3, r3, r2
	str	r3, [r4, #28]
	bl	ieee80211_check_fast_rx_iface
.L10:
	ldr	r3, [r5, #16]
	cmp	r3, #0
	ldrge	r2, .L25+24
	strge	r3, [r4, #16]
	ldrge	r3, [r2]
	orrge	r6, r6, r3
	ldr	r3, [r5, #20]
	cmp	r3, #0
	blt	.L14
	ldr	r1, .L25+28
	ldr	r2, [r4, #12]
	ldr	r0, [r1]
	ldr	r1, .L25+32
	eor	r3, r3, r2
	ldr	r1, [r1]
	and	r3, r3, r0
	eor	r3, r3, r2
	str	r3, [r4, #12]
	orr	r6, r6, r1
.L14:
	ldr	r3, [r5, #24]
	cmp	r3, #0
	ble	.L15
	ldr	r3, .L25+36
	ldr	r2, .L25+32
	ldr	r1, [r3]
	ldr	r3, [r4, #12]
	ldr	r2, [r2]
	orr	r3, r3, r1
	str	r3, [r4, #12]
	orr	r6, r6, r2
.L16:
	mov	r1, r6
	mov	r0, r4
	bl	ieee80211_bss_info_change_notify
	mov	r0, #0
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L15:
	bne	.L16
	ldr	r3, .L25+36
	ldr	r2, .L25+32
	ldr	r1, [r3]
	ldr	r3, [r4, #12]
	ldr	r2, [r2]
	bic	r3, r3, r1
	str	r3, [r4, #12]
	orr	r6, r6, r2
	b	.L16
.L24:
	ldr	r0, [r0]
	ldr	r1, [r7]
	add	r3, r4, #20
	ldr	r1, [r1, r0, lsl #2]
	str	r3, [sp]
	ldr	r3, [r5, #28]
	add	r0, r4, #24
	bl	ieee80211_parse_bitrates
	ldr	r3, .L25+40
	mov	r0, r4
	ldr	r3, [r3]
	orr	r6, r6, r3
	bl	ieee80211_check_rate_mask
	b	.L9
.L23:
	ldr	r3, .L25+44
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L26:
	.align	2
.L25:
	.word	ENOENT
	.word	BSS_CHANGED_ERP_CTS_PROT
	.word	BSS_CHANGED_ERP_PREAMBLE
	.word	NL80211_BAND_5GHZ
	.word	BSS_CHANGED_ERP_SLOT
	.word	IEEE80211_SDATA_DONT_BRIDGE_PACKETS
	.word	BSS_CHANGED_HT
	.word	IEEE80211_P2P_OPPPS_CTWINDOW_MASK
	.word	BSS_CHANGED_P2P_PS
	.word	IEEE80211_P2P_OPPPS_ENABLE_BIT
	.word	BSS_CHANGED_BASIC_RATES
	.word	EINVAL
	.size	ieee80211_change_bss, .-ieee80211_change_bss
	.comm	NL80211_BAND_5GHZ,4,4
	.comm	IEEE80211_SDATA_DONT_BRIDGE_PACKETS,4,4
	.comm	IEEE80211_P2P_OPPPS_ENABLE_BIT,4,4
	.comm	IEEE80211_P2P_OPPPS_CTWINDOW_MASK,4,4
	.comm	ENOENT,4,4
	.comm	EINVAL,4,4
	.comm	BSS_CHANGED_P2P_PS,4,4
	.comm	BSS_CHANGED_HT,4,4
	.comm	BSS_CHANGED_ERP_SLOT,4,4
	.comm	BSS_CHANGED_ERP_PREAMBLE,4,4
	.comm	BSS_CHANGED_ERP_CTS_PROT,4,4
	.comm	BSS_CHANGED_BASIC_RATES,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
