	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath9k_htc_stop
_ath9k_htc_stop:                        ## @ath9k_htc_stop
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rbx
	movq	8(%rbx), %r15
	movq	%r15, %rdi
	callq	_ath9k_hw_common
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	_ATH_OP_INVALID@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	%r14, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdx
	movq	_ANY@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_2:
	movq	%rbx, %rdi
	callq	_ath9k_htc_ps_wakeup
	movq	_WMI_DISABLE_INTR_CMDID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_WMI_CMD
	movq	_WMI_DRAIN_TXQ_ALL_CMDID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_WMI_CMD
	movq	_WMI_STOP_RECV_CMDID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_WMI_CMD
	leaq	32(%rbx), %rdi
	callq	_tasklet_kill
	leaq	28(%rbx), %rdi
	callq	_del_timer_sync
	movq	%rbx, %rdi
	callq	_ath9k_htc_tx_drain
	movq	%rbx, %rdi
	callq	_ath9k_wmi_event_drain
	movq	%rbx, %rdi
	callq	_mutex_unlock
	leaq	24(%rbx), %rdi
	callq	_cancel_work_sync
	leaq	20(%rbx), %rdi
	callq	_cancel_work_sync
	movq	%rbx, %rdi
	callq	_ath9k_htc_stop_ani
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	%rbx, %rdi
	callq	_ath9k_htc_stop_btcoex
	movq	8(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_ath9k_htc_remove_monitor_interface
LBB0_4:
	movq	%r15, %rdi
	callq	_ath9k_hw_phy_disable
	movq	%r15, %rdi
	callq	_ath9k_hw_disable
	movq	%rbx, %rdi
	callq	_ath9k_htc_ps_restore
	movq	_ATH9K_PM_FULL_SLEEP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ath9k_htc_setpower
	movl	(%r12), %edi
	movq	%r14, %rsi
	callq	_set_bit
	leaq	L_.str.1(%rip), %rdx
	movq	_CONFIG@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_ath_dbg
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ATH_OP_INVALID,4,2             ## @ATH_OP_INVALID
	.comm	_ANY,4,2                        ## @ANY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Device not present\n"

	.comm	_WMI_DISABLE_INTR_CMDID,4,2     ## @WMI_DISABLE_INTR_CMDID
	.comm	_WMI_DRAIN_TXQ_ALL_CMDID,4,2    ## @WMI_DRAIN_TXQ_ALL_CMDID
	.comm	_WMI_STOP_RECV_CMDID,4,2        ## @WMI_STOP_RECV_CMDID
	.comm	_ATH9K_PM_FULL_SLEEP,4,2        ## @ATH9K_PM_FULL_SLEEP
	.comm	_CONFIG,4,2                     ## @CONFIG
L_.str.1:                               ## @.str.1
	.asciz	"Driver halt\n"

	.no_dead_strip	_ath9k_htc_stop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath9k_htc_stop
_ath9k_htc_stop:                        ; @ath9k_htc_stop
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	ldr	x19, [x0]
	ldr	x21, [x19, #8]
	mov	x0, x21
	bl	_ath9k_hw_common
	mov	x20, x0
	mov	x0, x19
	bl	_mutex_lock
Lloh0:
	adrp	x22, _ATH_OP_INVALID@GOTPAGE
Lloh1:
	ldr	x22, [x22, _ATH_OP_INVALID@GOTPAGEOFF]
	ldr	w0, [x22]
	mov	x1, x20
	bl	_test_bit
	cbz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
Lloh4:
	adrp	x8, _ANY@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ANY@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:
	mov	x0, x19
	bl	_ath9k_htc_ps_wakeup
Lloh6:
	adrp	x8, _WMI_DISABLE_INTR_CMDID@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WMI_DISABLE_INTR_CMDID@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_WMI_CMD
Lloh9:
	adrp	x8, _WMI_DRAIN_TXQ_ALL_CMDID@GOTPAGE
Lloh10:
	ldr	x8, [x8, _WMI_DRAIN_TXQ_ALL_CMDID@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_WMI_CMD
Lloh12:
	adrp	x8, _WMI_STOP_RECV_CMDID@GOTPAGE
Lloh13:
	ldr	x8, [x8, _WMI_STOP_RECV_CMDID@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_WMI_CMD
	add	x0, x19, #32
	bl	_tasklet_kill
	add	x0, x19, #28
	bl	_del_timer_sync
	mov	x0, x19
	bl	_ath9k_htc_tx_drain
	mov	x0, x19
	bl	_ath9k_wmi_event_drain
	mov	x0, x19
	bl	_mutex_unlock
	add	x0, x19, #24
	bl	_cancel_work_sync
	add	x0, x19, #20
	bl	_cancel_work_sync
	mov	x0, x19
	bl	_ath9k_htc_stop_ani
	mov	x0, x19
	bl	_mutex_lock
	mov	x0, x19
	bl	_ath9k_htc_stop_btcoex
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_ath9k_htc_remove_monitor_interface
LBB0_4:
	mov	x0, x21
	bl	_ath9k_hw_phy_disable
	mov	x0, x21
	bl	_ath9k_hw_disable
	mov	x0, x19
	bl	_ath9k_htc_ps_restore
Lloh15:
	adrp	x8, _ATH9K_PM_FULL_SLEEP@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ATH9K_PM_FULL_SLEEP@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ath9k_htc_setpower
	ldr	w0, [x22]
	mov	x1, x20
	bl	_set_bit
Lloh18:
	adrp	x2, l_.str.1@PAGE
Lloh19:
	add	x2, x2, l_.str.1@PAGEOFF
Lloh20:
	adrp	x8, _CONFIG@GOTPAGE
Lloh21:
	ldr	x8, [x8, _CONFIG@GOTPAGEOFF]
LBB0_5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_ath_dbg
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_mutex_unlock
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH_OP_INVALID,4,2             ; @ATH_OP_INVALID
	.comm	_ANY,4,2                        ; @ANY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Device not present\n"

	.comm	_WMI_DISABLE_INTR_CMDID,4,2     ; @WMI_DISABLE_INTR_CMDID
	.comm	_WMI_DRAIN_TXQ_ALL_CMDID,4,2    ; @WMI_DRAIN_TXQ_ALL_CMDID
	.comm	_WMI_STOP_RECV_CMDID,4,2        ; @WMI_STOP_RECV_CMDID
	.comm	_ATH9K_PM_FULL_SLEEP,4,2        ; @ATH9K_PM_FULL_SLEEP
	.comm	_CONFIG,4,2                     ; @CONFIG
l_.str.1:                               ; @.str.1
	.asciz	"Driver halt\n"

	.no_dead_strip	_ath9k_htc_stop
.subsections_via_symbols
