	.file	"extr_htc_drv_main.c_ath9k_htc_stop.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Device not present\n"
.LC1:
	.string	"Driver halt\n"
	.text
	.p2align 4
	.type	ath9k_htc_stop, @function
ath9k_htc_stop:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, QWORD PTR [rdi]
	mov	r13, QWORD PTR 8[rbp]
	mov	rdi, r13
	call	ath9k_hw_common@PLT
	mov	rdi, rbp
	mov	r12, rax
	call	mutex_lock@PLT
	mov	edi, DWORD PTR ATH_OP_INVALID[rip]
	mov	rsi, r12
	call	test_bit@PLT
	mov	esi, DWORD PTR ANY[rip]
	lea	rdx, .LC0[rip]
	test	rax, rax
	jne	.L5
	mov	rdi, rbp
	call	ath9k_htc_ps_wakeup@PLT
	mov	edi, DWORD PTR WMI_DISABLE_INTR_CMDID[rip]
	call	WMI_CMD@PLT
	mov	edi, DWORD PTR WMI_DRAIN_TXQ_ALL_CMDID[rip]
	call	WMI_CMD@PLT
	mov	edi, DWORD PTR WMI_STOP_RECV_CMDID[rip]
	call	WMI_CMD@PLT
	lea	rdi, 32[rbp]
	call	tasklet_kill@PLT
	lea	rdi, 28[rbp]
	call	del_timer_sync@PLT
	mov	rdi, rbp
	call	ath9k_htc_tx_drain@PLT
	mov	rdi, rbp
	call	ath9k_wmi_event_drain@PLT
	mov	rdi, rbp
	call	mutex_unlock@PLT
	lea	rdi, 24[rbp]
	call	cancel_work_sync@PLT
	lea	rdi, 20[rbp]
	call	cancel_work_sync@PLT
	mov	rdi, rbp
	call	ath9k_htc_stop_ani@PLT
	mov	rdi, rbp
	call	mutex_lock@PLT
	mov	rdi, rbp
	call	ath9k_htc_stop_btcoex@PLT
	mov	rax, QWORD PTR 8[rbp]
	cmp	QWORD PTR [rax], 0
	jne	.L7
.L3:
	mov	rdi, r13
	call	ath9k_hw_phy_disable@PLT
	mov	rdi, r13
	call	ath9k_hw_disable@PLT
	mov	rdi, rbp
	call	ath9k_htc_ps_restore@PLT
	mov	esi, DWORD PTR ATH9K_PM_FULL_SLEEP[rip]
	mov	rdi, rbp
	call	ath9k_htc_setpower@PLT
	mov	edi, DWORD PTR ATH_OP_INVALID[rip]
	mov	rsi, r12
	call	set_bit@PLT
	mov	esi, DWORD PTR CONFIG[rip]
	lea	rdx, .LC1[rip]
.L5:
	mov	rdi, r12
	call	ath_dbg@PLT
	mov	rdi, rbp
	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	mutex_unlock@PLT
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	rdi, rbp
	call	ath9k_htc_remove_monitor_interface@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	ath9k_htc_stop, .-ath9k_htc_stop
	.comm	WMI_STOP_RECV_CMDID,4,4
	.comm	WMI_DRAIN_TXQ_ALL_CMDID,4,4
	.comm	WMI_DISABLE_INTR_CMDID,4,4
	.comm	CONFIG,4,4
	.comm	ATH_OP_INVALID,4,4
	.comm	ATH9K_PM_FULL_SLEEP,4,4
	.comm	ANY,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_htc_drv_main.c_ath9k_htc_stop.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Device not present\012\000"
	.align	2
.LC1:
	.ascii	"Driver halt\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ath9k_htc_stop, %function
ath9k_htc_stop:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r4, [r0]
	ldr	r7, .L11
	ldr	r6, [r4, #4]
	mov	r0, r6
	bl	ath9k_hw_common
	mov	r5, r0
	mov	r0, r4
	bl	mutex_lock
	mov	r1, r5
	ldr	r0, [r7]
	bl	test_bit
	cmp	r0, #0
	bne	.L9
	mov	r0, r4
	bl	ath9k_htc_ps_wakeup
	ldr	r3, .L11+4
	ldr	r0, [r3]
	bl	WMI_CMD
	ldr	r3, .L11+8
	ldr	r0, [r3]
	bl	WMI_CMD
	ldr	r3, .L11+12
	ldr	r0, [r3]
	bl	WMI_CMD
	add	r0, r4, #24
	bl	tasklet_kill
	add	r0, r4, #20
	bl	del_timer_sync
	mov	r0, r4
	bl	ath9k_htc_tx_drain
	mov	r0, r4
	bl	ath9k_wmi_event_drain
	mov	r0, r4
	bl	mutex_unlock
	add	r0, r4, #16
	bl	cancel_work_sync
	add	r0, r4, #12
	bl	cancel_work_sync
	mov	r0, r4
	bl	ath9k_htc_stop_ani
	mov	r0, r4
	bl	mutex_lock
	mov	r0, r4
	bl	ath9k_htc_stop_btcoex
	ldr	r3, [r4, #4]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L10
.L3:
	mov	r0, r6
	bl	ath9k_hw_phy_disable
	mov	r0, r6
	bl	ath9k_hw_disable
	mov	r0, r4
	bl	ath9k_htc_ps_restore
	ldr	r3, .L11+16
	mov	r0, r4
	ldr	r1, [r3]
	bl	ath9k_htc_setpower
	mov	r1, r5
	ldr	r0, [r7]
	bl	set_bit
	ldr	r3, .L11+20
	mov	r0, r5
	ldr	r1, [r3]
	ldr	r2, .L11+24
	bl	ath_dbg
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, lr}
	b	mutex_unlock
.L10:
	mov	r0, r4
	bl	ath9k_htc_remove_monitor_interface
	b	.L3
.L9:
	ldr	r3, .L11+28
	mov	r0, r5
	ldr	r1, [r3]
	ldr	r2, .L11+32
	bl	ath_dbg
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, lr}
	b	mutex_unlock
.L12:
	.align	2
.L11:
	.word	ATH_OP_INVALID
	.word	WMI_DISABLE_INTR_CMDID
	.word	WMI_DRAIN_TXQ_ALL_CMDID
	.word	WMI_STOP_RECV_CMDID
	.word	ATH9K_PM_FULL_SLEEP
	.word	CONFIG
	.word	.LC1
	.word	ANY
	.word	.LC0
	.size	ath9k_htc_stop, .-ath9k_htc_stop
	.comm	WMI_STOP_RECV_CMDID,4,4
	.comm	WMI_DRAIN_TXQ_ALL_CMDID,4,4
	.comm	WMI_DISABLE_INTR_CMDID,4,4
	.comm	CONFIG,4,4
	.comm	ATH_OP_INVALID,4,4
	.comm	ATH9K_PM_FULL_SLEEP,4,4
	.comm	ANY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
