	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath5k_stop_locked
_ath5k_stop_locked:                     ## @ath5k_stop_locked
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_ATH5K_DEBUG_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_ATH_STAT_INVALID@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movl	4(%rbx), %esi
	callq	_test_bit
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %ecx
	callq	_ATH5K_DBG
	movl	8(%rbx), %edi
	callq	_ieee80211_stop_queues
	movl	(%r15), %edi
	movl	4(%rbx), %esi
	callq	_test_bit
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_ath5k_led_off
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_ath5k_hw_set_imr
	movl	(%rbx), %edi
	callq	_synchronize_irq
	movq	%rbx, %rdi
	callq	_ath5k_rx_stop
	movq	%rbx, %rdi
	callq	_ath5k_hw_dma_stop
	movq	%rbx, %rdi
	callq	_ath5k_drain_tx_buffs
	movq	%rbx, %rdi
	callq	_ath5k_hw_phy_disable
LBB0_2:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATH5K_DEBUG_RESET,4,2          ## @ATH5K_DEBUG_RESET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid %u\n"

	.comm	_ATH_STAT_INVALID,4,2           ## @ATH_STAT_INVALID
	.no_dead_strip	_ath5k_stop_locked
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath5k_stop_locked
_ath5k_stop_locked:                     ; @ath5k_stop_locked
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _ATH5K_DEBUG_RESET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATH5K_DEBUG_RESET@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
Lloh3:
	adrp	x21, _ATH_STAT_INVALID@GOTPAGE
Lloh4:
	ldr	x21, [x21, _ATH_STAT_INVALID@GOTPAGEOFF]
	ldr	w0, [x21]
	ldr	w1, [x19, #4]
	bl	_test_bit
	mov	x3, x0
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x1, x20
	bl	_ATH5K_DBG
	ldr	w0, [x19, #8]
	bl	_ieee80211_stop_queues
	ldr	w0, [x21]
	ldr	w1, [x19, #4]
	bl	_test_bit
	cbnz	w0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_ath5k_led_off
	mov	x0, x19
	mov	w1, #0
	bl	_ath5k_hw_set_imr
	ldr	w0, [x19]
	bl	_synchronize_irq
	mov	x0, x19
	bl	_ath5k_rx_stop
	mov	x0, x19
	bl	_ath5k_hw_dma_stop
	mov	x0, x19
	bl	_ath5k_drain_tx_buffs
	mov	x0, x19
	bl	_ath5k_hw_phy_disable
LBB0_2:
	mov	w0, #0
	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
	ret
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH5K_DEBUG_RESET,4,2          ; @ATH5K_DEBUG_RESET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid %u\n"

	.comm	_ATH_STAT_INVALID,4,2           ; @ATH_STAT_INVALID
	.no_dead_strip	_ath5k_stop_locked
.subsections_via_symbols
