	.file	"extr_main.c___wl1271_op_remove_interface.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"mac80211 remove interface"
.LC1:
	.string	"down"
	.text
	.p2align 4
	.type	__wl1271_op_remove_interface, @function
__wl1271_op_remove_interface:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	mov	rdi, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	wl12xx_vif_to_data@PLT
	mov	edi, DWORD PTR DEBUG_MAC80211[rip]
	lea	rsi, .LC0[rip]
	mov	r14, QWORD PTR BSS_TYPE_AP_BSS[rip]
	mov	rbx, rax
	mov	r13, QWORD PTR [rax]
	call	wl1271_debug@PLT
	mov	edi, DWORD PTR WLVIF_FLAG_INITIALIZED[rip]
	lea	rsi, 128[rbx]
	call	test_and_clear_bit@PLT
	test	eax, eax
	je	.L1
	mov	rax, QWORD PTR WLCORE_STATE_OFF[rip]
	cmp	QWORD PTR 0[rbp], rax
	je	.L1
	lea	rdi, .LC1[rip]
	call	wl1271_info@PLT
	mov	rax, QWORD PTR WL1271_SCAN_STATE_IDLE[rip]
	cmp	QWORD PTR 80[rbp], rax
	je	.L3
	cmp	QWORD PTR 104[rbp], rbx
	je	.L42
.L3:
	cmp	QWORD PTR 72[rbp], rbx
	je	.L43
.L4:
	cmp	QWORD PTR 64[rbp], r12
	je	.L44
.L5:
	lea	r15, 40[rbp]
	mov	edi, DWORD PTR WL1271_FLAG_RECOVERY_IN_PROGRESS[rip]
	mov	rsi, r15
	call	test_bit@PLT
	test	rax, rax
	je	.L45
.L7:
	mov	rsi, rbx
	mov	rdi, rbp
	call	wl12xx_tx_reset_wlvif@PLT
	mov	rax, QWORD PTR WL12XX_INVALID_LINK_ID[rip]
	mov	rdx, QWORD PTR [rbx]
	cmp	rdx, QWORD PTR BSS_TYPE_STA_BSS[rip]
	mov	QWORD PTR 120[rbx], rax
	je	.L12
	cmp	rdx, QWORD PTR BSS_TYPE_IBSS[rip]
	jne	.L13
.L12:
	mov	QWORD PTR 112[rbx], rax
	lea	rsi, 108[rbx]
	mov	rdi, rbp
	call	wl12xx_free_rate_policy@PLT
	lea	rsi, 104[rbx]
	mov	rdi, rbp
	call	wl12xx_free_rate_policy@PLT
	lea	rsi, 100[rbx]
	mov	rdi, rbp
	call	wl12xx_free_rate_policy@PLT
	lea	rsi, 96[rbx]
	mov	rdi, rbp
	call	wlcore_free_klv_template@PLT
.L14:
	mov	rdi, QWORD PTR 88[rbx]
	call	dev_kfree_skb@PLT
	mov	QWORD PTR 88[rbx], 0
	cmp	QWORD PTR 48[rbp], rbx
	je	.L46
.L17:
	lea	rdi, 80[rbx]
	call	list_del@PLT
	mov	edi, DWORD PTR 40[rbx]
	mov	edx, 4
	xor	esi, esi
	call	memset@PLT
	mov	rax, QWORD PTR WL12XX_INVALID_ROLE_ID[rip]
	mov	QWORD PTR 32[rbx], rax
	mov	QWORD PTR 24[rbx], rax
	cmp	r13, r14
	je	.L47
	sub	QWORD PTR 32[rbp], 1
	mov	edi, DWORD PTR WL1271_FLAG_RECOVERY_IN_PROGRESS[rip]
	mov	rsi, r15
	call	test_bit@PLT
	test	rax, rax
	jne	.L19
.L24:
	add	rbp, 16
	mov	rdi, rbp
	call	mutex_unlock@PLT
	lea	rdi, 20[rbx]
	call	del_timer_sync@PLT
	lea	rdi, 16[rbx]
	call	cancel_work_sync@PLT
	lea	rdi, 12[rbx]
	call	cancel_work_sync@PLT
	lea	rdi, 8[rbx]
	call	cancel_delayed_work_sync@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rdi, rbp
	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
	jmp	mutex_lock@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	.cfi_restore_state
	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
.L13:
	.cfi_restore_state
	mov	QWORD PTR 72[rbx], rax
	lea	rsi, 60[rbx]
	mov	rdi, rbp
	mov	QWORD PTR 64[rbx], rax
	call	wl12xx_free_rate_policy@PLT
	lea	rsi, 56[rbx]
	mov	rdi, rbp
	call	wl12xx_free_rate_policy@PLT
	mov	eax, DWORD PTR CONF_TX_MAX_AC_COUNT[rip]
	test	eax, eax
	jle	.L15
	xor	r12d, r12d
	.p2align 4,,10
	.p2align 3
.L16:
	mov	rax, QWORD PTR 48[rbx]
	mov	rdi, rbp
	lea	rsi, [rax+r12*4]
	add	r12, 1
	call	wl12xx_free_rate_policy@PLT
	cmp	DWORD PTR CONF_TX_MAX_AC_COUNT[rip], r12d
	jg	.L16
.L15:
	mov	rsi, rbx
	mov	rdi, rbp
	call	wl1271_free_ap_keys@PLT
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L47:
	sub	QWORD PTR 8[rbp], 1
	mov	edi, DWORD PTR WL1271_FLAG_RECOVERY_IN_PROGRESS[rip]
	mov	rsi, r15
	call	test_bit@PLT
	test	rax, rax
	je	.L23
.L19:
	mov	edi, DWORD PTR WL1271_FLAG_INTENDED_FW_RECOVERY[rip]
	mov	rsi, r15
	call	test_bit@PLT
	test	rax, rax
	je	.L24
.L23:
	cmp	QWORD PTR 8[rbp], 0
	jne	.L24
	cmp	r13, r14
	jne	.L24
	cmp	QWORD PTR 32[rbp], 0
	je	.L24
	mov	rsi, QWORD PTR 24[rbp]
	cmp	QWORD PTR WL1271_PSM_ILLEGAL[rip], rsi
	jne	.L40
	mov	rsi, QWORD PTR WL1271_PSM_ELP[rip]
.L40:
	mov	rdi, rbp
	call	wl1271_acx_sleep_auth@PLT
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L45:
	mov	rdi, rbp
	call	wl1271_ps_elp_wakeup@PLT
	test	eax, eax
	js	.L7
	mov	rax, QWORD PTR [rbx]
	cmp	rax, QWORD PTR BSS_TYPE_STA_BSS[rip]
	je	.L9
	cmp	rax, QWORD PTR BSS_TYPE_IBSS[rip]
	je	.L9
.L10:
	lea	rsi, 32[rbx]
	mov	rdi, rbp
	call	wl12xx_cmd_role_disable@PLT
	test	eax, eax
	js	.L7
	mov	rdi, rbp
	call	wl1271_ps_elp_sleep@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L46:
	mov	QWORD PTR 48[rbp], 0
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L44:
	mov	QWORD PTR 64[rbp], 0
	mov	edi, DWORD PTR 56[rbp]
	call	ieee80211_remain_on_channel_expired@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L43:
	mov	edi, DWORD PTR 56[rbp]
	call	ieee80211_sched_scan_stopped@PLT
	mov	QWORD PTR 72[rbp], 0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L42:
	mov	rdi, rbp
	call	wl12xx_rearm_tx_watchdog_locked@PLT
	mov	edi, DWORD PTR 96[rbp]
	xor	esi, esi
	mov	edx, 4
	mov	rax, QWORD PTR WL1271_SCAN_STATE_IDLE[rip]
	mov	QWORD PTR 80[rbp], rax
	call	memset@PLT
	mov	QWORD PTR 104[rbp], 0
	mov	edi, DWORD PTR 56[rbp]
	mov	esi, 1
	mov	QWORD PTR 88[rbp], 0
	call	ieee80211_scan_completed@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rdi, rbx
	call	wl12xx_dev_role_started@PLT
	test	rax, rax
	je	.L10
	mov	rsi, rbx
	mov	rdi, rbp
	call	wl12xx_stop_dev@PLT
	jmp	.L10
	.cfi_endproc
.LFE0:
	.size	__wl1271_op_remove_interface, .-__wl1271_op_remove_interface
	.comm	WLVIF_FLAG_INITIALIZED,4,4
	.comm	WLCORE_STATE_OFF,8,8
	.comm	WL12XX_INVALID_ROLE_ID,8,8
	.comm	WL12XX_INVALID_LINK_ID,8,8
	.comm	WL1271_SCAN_STATE_IDLE,8,8
	.comm	WL1271_PSM_ILLEGAL,8,8
	.comm	WL1271_PSM_ELP,8,8
	.comm	WL1271_FLAG_RECOVERY_IN_PROGRESS,4,4
	.comm	WL1271_FLAG_INTENDED_FW_RECOVERY,4,4
	.comm	DEBUG_MAC80211,4,4
	.comm	CONF_TX_MAX_AC_COUNT,4,4
	.comm	BSS_TYPE_STA_BSS,8,8
	.comm	BSS_TYPE_IBSS,8,8
	.comm	BSS_TYPE_AP_BSS,8,8
	.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_main.c___wl1271_op_remove_interface.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"mac80211 remove interface\000"
	.align	2
.LC1:
	.ascii	"down\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	__wl1271_op_remove_interface, %function
__wl1271_op_remove_interface:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r0
	mov	r0, r1
	mov	r6, r1
	bl	wl12xx_vif_to_data
	mov	r7, r0
	ldr	r2, .L46
	ldr	r3, .L46+4
	ldr	r1, .L46+8
	mov	r4, r0
	ldr	r0, [r2]
	ldr	r8, [r7], #84
	ldr	r9, [r3]
	bl	wl1271_debug
	ldr	r3, .L46+12
	mov	r1, r7
	ldr	r0, [r3]
	bl	test_and_clear_bit
	cmp	r0, #0
	popeq	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
	ldr	r3, .L46+16
	ldr	r2, [r5]
	ldr	r3, [r3]
	cmp	r2, r3
	popeq	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
	ldr	r7, .L46+20
	ldr	r0, .L46+24
	bl	wl1271_info
	ldr	r3, [r7]
	ldr	r2, [r5, #40]
	cmp	r2, r3
	beq	.L3
	ldr	r3, [r5, #52]
	cmp	r3, r4
	beq	.L42
.L3:
	ldr	r3, [r5, #36]
	cmp	r3, r4
	beq	.L43
.L4:
	ldr	r3, [r5, #32]
	cmp	r3, r6
	beq	.L44
.L5:
	ldr	r10, .L46+28
	add	r7, r5, #20
	mov	r1, r7
	ldr	r0, [r10]
	bl	test_bit
	cmp	r0, #0
	beq	.L6
	ldr	r6, .L46+32
.L7:
	mov	r1, r4
	mov	r0, r5
	bl	wl12xx_tx_reset_wlvif
	ldr	r3, .L46+36
	ldr	r1, [r6]
	ldr	r2, [r4]
	ldr	r3, [r3]
	cmp	r2, r1
	str	r3, [r4, #80]
	beq	.L12
	ldr	r1, .L46+40
	ldr	r1, [r1]
	cmp	r2, r1
	bne	.L13
.L12:
	str	r3, [r4, #76]
	add	r1, r4, #72
	mov	r0, r5
	bl	wl12xx_free_rate_policy
	add	r1, r4, #68
	mov	r0, r5
	bl	wl12xx_free_rate_policy
	add	r1, r4, #64
	mov	r0, r5
	bl	wl12xx_free_rate_policy
	mov	r0, r5
	add	r1, r4, #60
	bl	wlcore_free_klv_template
.L14:
	ldr	r0, [r4, #56]
	bl	dev_kfree_skb
	mov	r3, #0
	ldr	r2, [r5, #24]
	add	r0, r4, #52
	cmp	r2, r4
	str	r3, [r4, #56]
	streq	r3, [r5, #24]
	bl	list_del
	mov	r2, #4
	mov	r1, #0
	ldr	r0, [r4, #28]
	bl	memset
	ldr	r3, .L46+44
	cmp	r8, r9
	ldr	r3, [r3]
	str	r3, [r4, #24]
	str	r3, [r4, #20]
	beq	.L45
	ldr	r3, [r5, #16]
	mov	r1, r7
	sub	r3, r3, #1
	ldr	r0, [r10]
	str	r3, [r5, #16]
	bl	test_bit
	cmp	r0, #0
	bne	.L19
.L23:
	add	r5, r5, #8
	mov	r0, r5
	bl	mutex_unlock
	add	r0, r4, #16
	bl	del_timer_sync
	add	r0, r4, #12
	bl	cancel_work_sync
	add	r0, r4, #8
	bl	cancel_work_sync
	add	r0, r4, #4
	bl	cancel_delayed_work_sync
	mov	r0, r5
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	mutex_lock
.L13:
	str	r3, [r4, #48]
	str	r3, [r4, #44]
	add	r1, r4, #40
	mov	r0, r5
	ldr	fp, .L46+48
	bl	wl12xx_free_rate_policy
	mov	r0, r5
	add	r1, r4, #36
	bl	wl12xx_free_rate_policy
	ldr	r3, [fp]
	cmp	r3, #0
	ble	.L15
	mov	r6, #0
.L16:
	ldr	r1, [r4, #32]
	mov	r0, r5
	add	r1, r1, r6, lsl #2
	bl	wl12xx_free_rate_policy
	ldr	r3, [fp]
	add	r6, r6, #1
	cmp	r3, r6
	bgt	.L16
.L15:
	mov	r1, r4
	mov	r0, r5
	bl	wl1271_free_ap_keys
	b	.L14
.L45:
	ldr	r3, [r5, #4]
	mov	r1, r7
	sub	r3, r3, #1
	ldr	r0, [r10]
	str	r3, [r5, #4]
	bl	test_bit
	cmp	r0, #0
	beq	.L22
.L19:
	ldr	r3, .L46+52
	mov	r1, r7
	ldr	r0, [r3]
	bl	test_bit
	cmp	r0, #0
	beq	.L23
.L22:
	ldr	r3, [r5, #4]
	cmp	r3, #0
	cmpeq	r8, r9
	bne	.L23
	ldr	r3, [r5, #16]
	cmp	r3, #0
	beq	.L23
	ldr	r3, .L46+56
	ldr	r1, [r5, #12]
	ldr	r3, [r3]
	cmp	r3, r1
	ldreq	r3, .L46+60
	movne	r0, r5
	moveq	r0, r5
	ldreq	r1, [r3]
	bl	wl1271_acx_sleep_auth
	b	.L23
.L6:
	mov	r0, r5
	bl	wl1271_ps_elp_wakeup
	cmp	r0, #0
	ldr	r6, .L46+32
	blt	.L7
	ldr	r3, [r4]
	ldr	r2, [r6]
	cmp	r3, r2
	beq	.L9
	ldr	r2, .L46+40
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L9
.L10:
	mov	r0, r5
	add	r1, r4, #24
	bl	wl12xx_cmd_role_disable
	cmp	r0, #0
	blt	.L7
	mov	r0, r5
	bl	wl1271_ps_elp_sleep
	b	.L7
.L44:
	mov	r3, #0
	ldr	r0, [r5, #28]
	str	r3, [r5, #32]
	bl	ieee80211_remain_on_channel_expired
	b	.L5
.L43:
	ldr	r0, [r5, #28]
	bl	ieee80211_sched_scan_stopped
	mov	r3, #0
	str	r3, [r5, #36]
	b	.L4
.L42:
	mov	r0, r5
	bl	wl12xx_rearm_tx_watchdog_locked
	ldr	r3, [r7]
	mov	r2, #4
	str	r3, [r5, #40]
	mov	r1, #0
	ldr	r0, [r5, #48]
	bl	memset
	mov	r3, #0
	mov	r1, #1
	ldr	r0, [r5, #28]
	str	r3, [r5, #52]
	str	r3, [r5, #44]
	bl	ieee80211_scan_completed
	b	.L3
.L9:
	mov	r0, r4
	bl	wl12xx_dev_role_started
	cmp	r0, #0
	beq	.L10
	mov	r1, r4
	mov	r0, r5
	bl	wl12xx_stop_dev
	b	.L10
.L47:
	.align	2
.L46:
	.word	DEBUG_MAC80211
	.word	BSS_TYPE_AP_BSS
	.word	.LC0
	.word	WLVIF_FLAG_INITIALIZED
	.word	WLCORE_STATE_OFF
	.word	WL1271_SCAN_STATE_IDLE
	.word	.LC1
	.word	WL1271_FLAG_RECOVERY_IN_PROGRESS
	.word	BSS_TYPE_STA_BSS
	.word	WL12XX_INVALID_LINK_ID
	.word	BSS_TYPE_IBSS
	.word	WL12XX_INVALID_ROLE_ID
	.word	CONF_TX_MAX_AC_COUNT
	.word	WL1271_FLAG_INTENDED_FW_RECOVERY
	.word	WL1271_PSM_ILLEGAL
	.word	WL1271_PSM_ELP
	.size	__wl1271_op_remove_interface, .-__wl1271_op_remove_interface
	.comm	WLVIF_FLAG_INITIALIZED,4,4
	.comm	WLCORE_STATE_OFF,4,4
	.comm	WL12XX_INVALID_ROLE_ID,4,4
	.comm	WL12XX_INVALID_LINK_ID,4,4
	.comm	WL1271_SCAN_STATE_IDLE,4,4
	.comm	WL1271_PSM_ILLEGAL,4,4
	.comm	WL1271_PSM_ELP,4,4
	.comm	WL1271_FLAG_RECOVERY_IN_PROGRESS,4,4
	.comm	WL1271_FLAG_INTENDED_FW_RECOVERY,4,4
	.comm	DEBUG_MAC80211,4,4
	.comm	CONF_TX_MAX_AC_COUNT,4,4
	.comm	BSS_TYPE_STA_BSS,4,4
	.comm	BSS_TYPE_IBSS,4,4
	.comm	BSS_TYPE_AP_BSS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
