	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath9k_stop
_ath9k_stop:                            ## @ath9k_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	(%rdi), %rbx
	movq	48(%rbx), %r12
	movq	%r12, %rdi
	callq	_ath9k_hw_common
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_ath9k_deinit_channel_context
	leaq	4(%rbx), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	%rbx, %rdi
	callq	_ath9k_rng_stop
	movq	%rbx, %rdi
	callq	_ath_cancel_work
	movq	_ATH_OP_INVALID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_1
## %bb.8:
	movq	_ANY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	callq	_ath_dbg
	movq	%r14, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
LBB0_1:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_ath9k_ps_wakeup
	leaq	8(%rbx), %r13
	movq	%r13, %rdi
	callq	_spin_lock_bh
	movq	_ATH9K_INT_GLOBAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 32(%r12)
	movq	%r12, %rdi
	callq	_ath9k_hw_disable_interrupts
	movq	%r13, %rdi
	callq	_spin_unlock_bh
	movl	40(%rbx), %edi
	callq	_synchronize_irq
	leaq	36(%rbx), %rdi
	callq	_tasklet_kill
	leaq	32(%rbx), %rdi
	callq	_tasklet_kill
	movl	(%rbx), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	$1, (%rbx)
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_spin_lock_bh
	movq	(%r12), %rsi
	testq	%rsi, %rsi
	js	LBB0_3
## %bb.2:
	xorl	%edx, %edx
	cmpq	$0, 24(%r12)
	sete	%dl
	movq	%r12, %rdi
	callq	_ath9k_hw_set_gpio
	movq	(%r12), %rsi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_ath9k_hw_gpio_request_in
LBB0_3:
	movq	%rbx, %rdi
	callq	_ath_prepare_reset
	movq	24(%rbx), %rdi
	testq	%rdi, %rdi
	movq	_ATH_OP_INVALID@GOTPCREL(%rip), %r13
	je	LBB0_5
## %bb.4:
	callq	_dev_kfree_skb_any
	movq	$0, 24(%rbx)
LBB0_5:
	movq	16(%r12), %rsi
	testq	%rsi, %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	jne	LBB0_7
## %bb.6:
	movq	16(%rbx), %rdx
	movq	%r12, %rsi
	callq	_ath9k_cmn_get_channel
	movq	%rax, %rsi
	movq	%rax, 16(%r12)
LBB0_7:
	movl	8(%r12), %edx
	movq	%r12, %rdi
	xorl	%ecx, %ecx
	callq	_ath9k_hw_reset
	movl	(%r13), %edi
	movq	%r15, %rsi
	callq	_set_bit
	movq	%r12, %rdi
	callq	_ath9k_hw_phy_disable
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_ath9k_hw_configpcipowersave
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_bh
	movq	%rbx, %rdi
	callq	_ath9k_ps_restore
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%rbx)
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ath_dbg                        ## 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	_ATH9K_INT_GLOBAL,4,2           ## @ATH9K_INT_GLOBAL
	.comm	_CONFIG,4,2                     ## @CONFIG
L_.str.1:                               ## @.str.1
	.asciz	"Driver halt\n"

	.no_dead_strip	_ath9k_stop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath9k_stop
_ath9k_stop:                            ; @ath9k_stop
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x23, x0
	ldr	x21, [x0]
	ldr	x22, [x21, #48]
	mov	x0, x22
	bl	_ath9k_hw_common
	mov	x19, x0
	mov	x0, x21
	bl	_ath9k_deinit_channel_context
	add	x20, x21, #4
	mov	x0, x20
	bl	_mutex_lock
	mov	x0, x21
	bl	_ath9k_rng_stop
	mov	x0, x21
	bl	_ath_cancel_work
Lloh0:
	adrp	x25, _ATH_OP_INVALID@GOTPAGE
Lloh1:
	ldr	x25, [x25, _ATH_OP_INVALID@GOTPAGEOFF]
	ldr	w0, [x25]
	mov	x1, x19
	bl	_test_bit
	cbz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _ANY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ANY@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_ath_dbg
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_mutex_unlock
LBB0_2:
	mov	x0, x21
	bl	_ath9k_ps_wakeup
	add	x24, x21, #8
	mov	x0, x24
	bl	_spin_lock_bh
Lloh7:
	adrp	x8, _ATH9K_INT_GLOBAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ATH9K_INT_GLOBAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	ldr	w9, [x22, #32]
	bic	w8, w9, w8
	str	w8, [x22, #32]
	mov	x0, x22
	bl	_ath9k_hw_disable_interrupts
	mov	x0, x24
	bl	_spin_unlock_bh
	ldr	w0, [x21, #40]
	bl	_synchronize_irq
	add	x0, x21, #36
	bl	_tasklet_kill
	add	x0, x21, #32
	bl	_tasklet_kill
	ldr	w26, [x21]
	mov	w8, #1
	str	w8, [x21]
	mov	x0, x24
	bl	_spin_lock_bh
	ldr	x1, [x22]
	tbnz	x1, #63, LBB0_4
; %bb.3:
	ldr	x8, [x22, #24]
	cmp	x8, #0
	cset	w2, eq
	mov	x0, x22
	bl	_ath9k_hw_set_gpio
	ldr	x1, [x22]
	mov	x0, x22
	mov	x2, #0
	bl	_ath9k_hw_gpio_request_in
LBB0_4:
	mov	x0, x21
	bl	_ath_prepare_reset
	ldr	x0, [x21, #24]
	cbz	x0, LBB0_6
; %bb.5:
	bl	_dev_kfree_skb_any
	str	xzr, [x21, #24]
LBB0_6:
	ldr	x1, [x22, #16]
	cbnz	x1, LBB0_8
; %bb.7:
	ldr	x2, [x21, #16]
	mov	x0, x23
	mov	x1, x22
	bl	_ath9k_cmn_get_channel
	mov	x1, x0
	str	x0, [x22, #16]
LBB0_8:
	ldr	w2, [x22, #8]
	mov	x0, x22
	mov	w3, #0
	bl	_ath9k_hw_reset
	ldr	w0, [x25]
	mov	x1, x19
	bl	_set_bit
	mov	x0, x22
	bl	_ath9k_hw_phy_disable
	mov	x0, x22
	mov	w1, #1
	bl	_ath9k_hw_configpcipowersave
	mov	x0, x24
	bl	_spin_unlock_bh
	mov	x0, x21
	bl	_ath9k_ps_restore
	str	w26, [x21]
	mov	x0, x20
	bl	_mutex_unlock
Lloh10:
	adrp	x8, _CONFIG@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CONFIG@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x2, l_.str.1@PAGE
Lloh14:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_ath_dbg
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.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	_ATH9K_INT_GLOBAL,4,2           ; @ATH9K_INT_GLOBAL
	.comm	_CONFIG,4,2                     ; @CONFIG
l_.str.1:                               ; @.str.1
	.asciz	"Driver halt\n"

	.no_dead_strip	_ath9k_stop
.subsections_via_symbols
