	.file	"extr_main.c_wlcore_op_stop_locked.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	wlcore_op_stop_locked, @function
wlcore_op_stop_locked:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	rax, QWORD PTR WLCORE_STATE_OFF[rip]
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	lea	r12, 72[rdi]
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	cmp	QWORD PTR [rdi], rax
	je	.L15
	mov	QWORD PTR [rdi], rax
	lea	r13, 204[rbp]
	call	wlcore_disable_interrupts_nosync@PLT
	mov	rdi, r13
	call	mutex_unlock@PLT
	mov	rdi, rbp
	call	wlcore_synchronize_interrupts@PLT
	mov	edi, DWORD PTR WL1271_FLAG_RECOVERY_IN_PROGRESS[rip]
	mov	rsi, r12
	call	test_bit@PLT
	test	eax, eax
	je	.L16
.L4:
	mov	rdi, rbp
	call	wl1271_flush_deferred_work@PLT
	lea	rdi, 224[rbp]
	call	cancel_delayed_work_sync@PLT
	lea	rdi, 220[rbp]
	call	cancel_work_sync@PLT
	lea	rdi, 216[rbp]
	call	cancel_work_sync@PLT
	lea	rdi, 212[rbp]
	call	cancel_delayed_work_sync@PLT
	lea	rdi, 208[rbp]
	call	cancel_delayed_work_sync@PLT
	mov	rdi, r13
	call	mutex_lock@PLT
	mov	rdi, rbp
	call	wl12xx_tx_reset@PLT
	mov	rdi, rbp
	call	wl1271_power_off@PLT
	mov	edi, DWORD PTR WL1271_FLAG_RECOVERY_IN_PROGRESS[rip]
	mov	rsi, r12
	call	test_and_clear_bit@PLT
	test	rax, rax
	jne	.L17
.L5:
	mov	eax, DWORD PTR IEEE80211_BAND_2GHZ[rip]
	mov	edi, DWORD PTR 120[rbp]
	mov	edx, 4
	xor	esi, esi
	mov	QWORD PTR 192[rbp], 0
	mov	DWORD PTR 200[rbp], eax
	mov	eax, DWORD PTR WL1271_DEFAULT_POWER_LEVEL[rip]
	mov	QWORD PTR 176[rbp], 0
	mov	DWORD PTR 188[rbp], eax
	mov	eax, DWORD PTR NL80211_CHAN_NO_HT[rip]
	mov	QWORD PTR 168[rbp], 0
	mov	DWORD PTR 184[rbp], eax
	mov	eax, DWORD PTR WL1271_PSM_ILLEGAL[rip]
	mov	QWORD PTR 160[rbp], 0
	mov	QWORD PTR 152[rbp], 0
	mov	QWORD PTR 144[rbp], 0
	mov	QWORD PTR 136[rbp], 0
	mov	QWORD PTR 128[rbp], 0
	mov	DWORD PTR 124[rbp], eax
	call	memset@PLT
	mov	edi, DWORD PTR 80[rbp]
	mov	edx, 4
	xor	esi, esi
	call	memset@PLT
	mov	edi, DWORD PTR 116[rbp]
	mov	edx, 4
	xor	esi, esi
	call	memset@PLT
	mov	edi, DWORD PTR 112[rbp]
	mov	edx, 4
	xor	esi, esi
	call	memset@PLT
	mov	rdi, QWORD PTR WL12XX_SYSTEM_HLID[rip]
	mov	QWORD PTR 104[rbp], 0
	mov	QWORD PTR 96[rbp], 0
	mov	esi, DWORD PTR 80[rbp]
	mov	rax, rdi
	sal	rax, 4
	add	rax, QWORD PTR 88[rbp]
	mov	QWORD PTR 8[rax], 0
	mov	QWORD PTR [rax], 0
	call	__set_bit@PLT
	mov	eax, DWORD PTR NUM_TX_QUEUES[rip]
	mov	QWORD PTR 72[rbp], 0
	mov	QWORD PTR 64[rbp], 0
	test	eax, eax
	jle	.L8
	mov	rdi, QWORD PTR 56[rbp]
	mov	rsi, QWORD PTR 48[rbp]
	lea	ecx, -1[rax]
	xor	eax, eax
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rdx, rax
	mov	QWORD PTR [rdi+rax*8], 0
	mov	QWORD PTR [rsi+rax*8], 0
	add	rax, 1
	cmp	rcx, rdx
	jne	.L7
.L8:
	mov	rdi, rbp
	call	wl1271_debugfs_reset@PLT
	mov	rdi, QWORD PTR 40[rbp]
	call	kfree@PLT
	mov	QWORD PTR 40[rbp], 0
	mov	rdi, QWORD PTR 24[rbp]
	mov	QWORD PTR 32[rbp], 0
	call	kfree@PLT
	mov	QWORD PTR 24[rbp], 0
	mov	rdi, QWORD PTR 16[rbp]
	call	kfree@PLT
	mov	edi, DWORD PTR 8[rbp]
	mov	edx, 4
	xor	esi, esi
	mov	QWORD PTR 16[rbp], 0
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	memset@PLT
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	lea	rdi, 228[rbp]
	call	cancel_work_sync@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L17:
	mov	rdi, rbp
	call	wlcore_enable_interrupts@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L15:
	mov	edi, DWORD PTR WL1271_FLAG_RECOVERY_IN_PROGRESS[rip]
	mov	rsi, r12
	call	test_and_clear_bit@PLT
	test	rax, rax
	jne	.L18
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
.L18:
	.cfi_restore_state
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	wlcore_enable_interrupts@PLT
	.cfi_endproc
.LFE0:
	.size	wlcore_op_stop_locked, .-wlcore_op_stop_locked
	.comm	WLCORE_STATE_OFF,8,8
	.comm	WL12XX_SYSTEM_HLID,8,8
	.comm	WL1271_PSM_ILLEGAL,4,4
	.comm	WL1271_FLAG_RECOVERY_IN_PROGRESS,4,4
	.comm	WL1271_DEFAULT_POWER_LEVEL,4,4
	.comm	NUM_TX_QUEUES,4,4
	.comm	NL80211_CHAN_NO_HT,4,4
	.comm	IEEE80211_BAND_2GHZ,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_main.c_wlcore_op_stop_locked.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	wlcore_op_stop_locked, %function
wlcore_op_stop_locked:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	ldr	r3, .L18
	ldr	r2, [r5], #36
	ldr	r3, [r3]
	mov	r4, r0
	cmp	r2, r3
	beq	.L15
	mov	r6, r0
	str	r3, [r6], #116
	bl	wlcore_disable_interrupts_nosync
	ldr	r7, .L18+4
	mov	r0, r6
	bl	mutex_unlock
	mov	r0, r4
	bl	wlcore_synchronize_interrupts
	mov	r1, r5
	ldr	r0, [r7]
	bl	test_bit
	cmp	r0, #0
	beq	.L16
.L4:
	mov	r0, r4
	bl	wl1271_flush_deferred_work
	add	r0, r4, #136
	bl	cancel_delayed_work_sync
	add	r0, r4, #132
	bl	cancel_work_sync
	add	r0, r4, #128
	bl	cancel_work_sync
	add	r0, r4, #124
	bl	cancel_delayed_work_sync
	add	r0, r4, #120
	bl	cancel_delayed_work_sync
	mov	r0, r6
	bl	mutex_lock
	mov	r0, r4
	bl	wl12xx_tx_reset
	mov	r0, r4
	bl	wl1271_power_off
	mov	r1, r5
	ldr	r0, [r7]
	bl	test_and_clear_bit
	cmp	r0, #0
	bne	.L17
.L5:
	mov	r5, #0
	ldr	r0, .L18+8
	ldr	r1, .L18+12
	ldr	r2, .L18+16
	ldr	r3, .L18+20
	ldr	r0, [r0]
	ldr	r3, [r3]
	ldr	r1, [r1]
	ldr	r2, [r2]
	str	r3, [r4, #68]
	str	r0, [r4, #112]
	str	r1, [r4, #104]
	str	r2, [r4, #100]
	mov	r1, r5
	mov	r2, #4
	ldr	r0, [r4, #64]
	str	r5, [r4, #108]
	str	r5, [r4, #96]
	str	r5, [r4, #92]
	str	r5, [r4, #88]
	str	r5, [r4, #84]
	str	r5, [r4, #80]
	str	r5, [r4, #76]
	str	r5, [r4, #72]
	bl	memset
	mov	r1, r5
	mov	r2, #4
	ldr	r0, [r4, #40]
	bl	memset
	mov	r1, r5
	mov	r2, #4
	ldr	r0, [r4, #60]
	bl	memset
	mov	r1, r5
	mov	r2, #4
	ldr	r0, [r4, #56]
	bl	memset
	ldr	r2, .L18+24
	ldr	r3, [r4, #44]
	ldr	r0, [r2]
	str	r5, [r4, #52]
	add	r2, r3, r0, lsl #3
	str	r5, [r4, #48]
	ldr	r1, [r4, #40]
	str	r5, [r2, #4]
	str	r5, [r3, r0, lsl #3]
	bl	__set_bit
	ldr	r3, .L18+28
	str	r5, [r4, #36]
	ldr	r1, [r3]
	str	r5, [r4, #32]
	cmp	r1, r5
	ble	.L8
	ldr	r3, [r4, #28]
	ldr	r2, [r4, #24]
	add	r1, r3, r1, lsl #2
	sub	r1, r1, #4
	sub	r3, r3, #4
	sub	r2, r2, #4
.L7:
	str	r5, [r3, #4]!
	cmp	r3, r1
	str	r5, [r2, #4]!
	bne	.L7
.L8:
	mov	r5, #0
	mov	r0, r4
	bl	wl1271_debugfs_reset
	ldr	r0, [r4, #20]
	bl	kfree
	ldr	r0, [r4, #12]
	str	r5, [r4, #20]
	str	r5, [r4, #16]
	bl	kfree
	ldr	r0, [r4, #8]
	str	r5, [r4, #12]
	bl	kfree
	mov	r1, r5
	ldr	r0, [r4, #4]
	str	r5, [r4, #8]
	mov	r2, #4
	pop	{r4, r5, r6, r7, r8, lr}
	b	memset
.L16:
	add	r0, r4, #140
	bl	cancel_work_sync
	b	.L4
.L17:
	mov	r0, r4
	bl	wlcore_enable_interrupts
	b	.L5
.L15:
	ldr	r3, .L18+4
	mov	r1, r5
	ldr	r0, [r3]
	bl	test_and_clear_bit
	cmp	r0, #0
	popeq	{r4, r5, r6, r7, r8, pc}
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, lr}
	b	wlcore_enable_interrupts
.L19:
	.align	2
.L18:
	.word	WLCORE_STATE_OFF
	.word	WL1271_FLAG_RECOVERY_IN_PROGRESS
	.word	IEEE80211_BAND_2GHZ
	.word	WL1271_DEFAULT_POWER_LEVEL
	.word	NL80211_CHAN_NO_HT
	.word	WL1271_PSM_ILLEGAL
	.word	WL12XX_SYSTEM_HLID
	.word	NUM_TX_QUEUES
	.size	wlcore_op_stop_locked, .-wlcore_op_stop_locked
	.comm	WLCORE_STATE_OFF,4,4
	.comm	WL12XX_SYSTEM_HLID,4,4
	.comm	WL1271_PSM_ILLEGAL,4,4
	.comm	WL1271_FLAG_RECOVERY_IN_PROGRESS,4,4
	.comm	WL1271_DEFAULT_POWER_LEVEL,4,4
	.comm	NUM_TX_QUEUES,4,4
	.comm	NL80211_CHAN_NO_HT,4,4
	.comm	IEEE80211_BAND_2GHZ,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
