	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_hw_stop_dma_queue        ## -- Begin function ath9k_hw_stop_dma_queue
	.p2align	4, 0x90
_ath9k_hw_stop_dma_queue:               ## @ath9k_hw_stop_dma_queue
	.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
	movl	%esi, %ebx
	movq	%rdi, %r15
	movq	_AR_Q_TXD@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movl	$1, %r14d
	movl	$1, %edx
	movl	%ebx, %ecx
	shll	%cl, %edx
	callq	_REG_WRITE
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_ath9k_hw_numtxpending
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	movl	$100, %edi
	callq	_udelay
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_ath9k_hw_numtxpending
	testq	%rax, %rax
	je	LBB0_10
## %bb.2:
	movl	$100, %edi
	callq	_udelay
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_ath9k_hw_numtxpending
	testq	%rax, %rax
	je	LBB0_10
## %bb.3:
	movl	$100, %edi
	callq	_udelay
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_ath9k_hw_numtxpending
	testq	%rax, %rax
	je	LBB0_10
## %bb.4:
	movl	$100, %edi
	callq	_udelay
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_ath9k_hw_numtxpending
	testq	%rax, %rax
	je	LBB0_10
## %bb.5:
	movl	$100, %edi
	callq	_udelay
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_ath9k_hw_numtxpending
	testq	%rax, %rax
	je	LBB0_10
## %bb.6:
	movl	$100, %edi
	callq	_udelay
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_ath9k_hw_numtxpending
	testq	%rax, %rax
	je	LBB0_10
## %bb.7:
	movl	$100, %edi
	callq	_udelay
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_ath9k_hw_numtxpending
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movl	$100, %edi
	callq	_udelay
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_ath9k_hw_numtxpending
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movl	$100, %edi
	callq	_udelay
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_ath9k_hw_numtxpending
	xorl	%r14d, %r14d
	testq	%rax, %rax
	sete	%r14b
LBB0_10:
	movl	(%r12), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_REG_WRITE
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AR_Q_TXD,4,2                   ## @AR_Q_TXD
	.comm	_ATH9K_TIME_QUANTUM,4,2         ## @ATH9K_TIME_QUANTUM
	.comm	_ATH9K_TX_STOP_DMA_TIMEOUT,4,2  ## @ATH9K_TX_STOP_DMA_TIMEOUT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_hw_stop_dma_queue        ; -- Begin function ath9k_hw_stop_dma_queue
	.p2align	2
_ath9k_hw_stop_dma_queue:               ; @ath9k_hw_stop_dma_queue
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _AR_Q_TXD@GOTPAGE
Lloh1:
	ldr	x22, [x22, _AR_Q_TXD@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	w21, #1
	lsl	w2, w21, w20
	bl	_REG_WRITE
	mov	x0, x19
	mov	x1, x20
	bl	_ath9k_hw_numtxpending
	cbz	x0, LBB0_11
; %bb.1:
	mov	w0, #100
	bl	_udelay
	mov	x0, x19
	mov	x1, x20
	bl	_ath9k_hw_numtxpending
	cbz	x0, LBB0_10
; %bb.2:
	mov	w0, #100
	bl	_udelay
	mov	x0, x19
	mov	x1, x20
	bl	_ath9k_hw_numtxpending
	cbz	x0, LBB0_10
; %bb.3:
	mov	w0, #100
	bl	_udelay
	mov	x0, x19
	mov	x1, x20
	bl	_ath9k_hw_numtxpending
	cbz	x0, LBB0_10
; %bb.4:
	mov	w0, #100
	bl	_udelay
	mov	x0, x19
	mov	x1, x20
	bl	_ath9k_hw_numtxpending
	cbz	x0, LBB0_10
; %bb.5:
	mov	w0, #100
	bl	_udelay
	mov	x0, x19
	mov	x1, x20
	bl	_ath9k_hw_numtxpending
	cbz	x0, LBB0_10
; %bb.6:
	mov	w0, #100
	bl	_udelay
	mov	x0, x19
	mov	x1, x20
	bl	_ath9k_hw_numtxpending
	cbz	x0, LBB0_10
; %bb.7:
	mov	w0, #100
	bl	_udelay
	mov	x0, x19
	mov	x1, x20
	bl	_ath9k_hw_numtxpending
	cbz	x0, LBB0_10
; %bb.8:
	mov	w0, #100
	bl	_udelay
	mov	x0, x19
	mov	x1, x20
	bl	_ath9k_hw_numtxpending
	cbz	x0, LBB0_10
; %bb.9:
	mov	w0, #100
	bl	_udelay
	mov	x0, x19
	mov	x1, x20
	bl	_ath9k_hw_numtxpending
	cmp	x0, #0
	cset	w21, eq
	b	LBB0_11
LBB0_10:
	mov	w21, #1
LBB0_11:
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #0
	bl	_REG_WRITE
	mov	x0, x21
	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 AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_AR_Q_TXD,4,2                   ; @AR_Q_TXD
	.comm	_ATH9K_TIME_QUANTUM,4,2         ; @ATH9K_TIME_QUANTUM
	.comm	_ATH9K_TX_STOP_DMA_TIMEOUT,4,2  ; @ATH9K_TX_STOP_DMA_TIMEOUT
.subsections_via_symbols
