	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath5k_hw_stop_tx_dma
_ath5k_hw_stop_tx_dma:                  ## @ath5k_hw_stop_tx_dma
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	movl	24(%rdi), %esi
	movl	%r15d, %edi
	callq	_AR5K_ASSERT_ENTRY
	movq	16(%r14), %rax
	movl	%r15d, %ebx
	movl	(%rax,%rbx,4), %eax
	movq	_AR5K_TX_QUEUE_INACTIVE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_2
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	jmp	LBB0_26
LBB0_2:
	movq	(%r14), %rax
	movq	_AR5K_AR5210@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.3:
	movq	_AR5K_CR@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_ath5k_hw_reg_read
	movl	%eax, %r12d
	movq	16(%r14), %rax
	movl	(%rax,%rbx,4), %eax
	leal	-129(%rax), %ecx
	cmpl	$2, %ecx
	jae	LBB0_4
## %bb.6:
	movq	_AR5K_BSR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_ath5k_hw_reg_write
	movl	%r12d, %esi
	jmp	LBB0_7
LBB0_8:
	movl	%r15d, %edi
	callq	_AR5K_QUEUE_MISC
	movq	_AR5K_QCU_MISC_DCU_EARLY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_AR5K_REG_ENABLE_BITS
	movq	_AR5K_QCU_TXD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_AR5K_REG_WRITE_Q
	movl	$-1000, %ebx                    ## imm = 0xFC18
	movq	_AR5K_QCU_TXE@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_AR5K_REG_READ_Q
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	$100, %edi
	callq	_udelay
	incl	%ebx
	jne	LBB0_9
LBB0_11:
	movl	(%r12), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_AR5K_REG_READ_Q
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	_ATH5K_DEBUG_DMA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	movl	%r15d, %ecx
	xorl	%eax, %eax
	callq	_ATH5K_DBG
LBB0_13:
	movl	$-999, %ebx                     ## imm = 0xFC19
	movq	_AR5K_QCU_STS_FRMPENDCNT@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movl	%r15d, %edi
	callq	_AR5K_QUEUE_STATUS
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_ath5k_hw_reg_read
	movl	%eax, %r13d
	andl	(%r12), %r13d
	movl	$100, %edi
	callq	_udelay
	testl	%ebx, %ebx
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	incl	%ebx
	testl	%r13d, %r13d
	jne	LBB0_14
LBB0_16:
	movq	_AR5K_SREV_AR2414@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	sarl	$4, %eax
	cmpl	%eax, 8(%r14)
	jl	LBB0_24
## %bb.17:
	testl	%r13d, %r13d
	je	LBB0_24
## %bb.18:
	movq	_AR5K_QUIET_CTL2_QT_PER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$100, %edi
	callq	_AR5K_REG_SM
	movl	%eax, %ebx
	movq	_AR5K_QUIET_CTL2_QT_DUR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$10, %edi
	callq	_AR5K_REG_SM
	orl	%eax, %ebx
	movq	_AR5K_QUIET_CTL2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_ath5k_hw_reg_write
	movq	_AR5K_QUIET_CTL1_QT_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_AR5K_TSF_L32_5211@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_ath5k_hw_reg_read
	sarl	$10, %eax
	movq	_AR5K_QUIET_CTL1_NEXT_QT_TSF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_AR5K_REG_SM
	orl	%eax, %ebx
	movq	_AR5K_QUIET_CTL1@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_ath5k_hw_reg_write
	movq	_AR5K_DIAG_SW_5211@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR5K_DIAG_SW_CHANNEL_IDLE_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_AR5K_REG_ENABLE_BITS
	movl	$400, %edi                      ## imm = 0x190
	callq	_udelay
	movl	(%r13), %esi
	movq	_AR5K_QUIET_CTL1_QT_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_AR5K_REG_DISABLE_BITS
	movl	$-99, %ebx
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movl	%r15d, %edi
	callq	_AR5K_QUEUE_STATUS
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_ath5k_hw_reg_read
	movl	%eax, %r13d
	andl	(%r12), %r13d
	movl	$100, %edi
	callq	_udelay
	testl	%ebx, %ebx
	je	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	incl	%ebx
	testl	%r13d, %r13d
	jne	LBB0_19
LBB0_21:
	movq	_AR5K_DIAG_SW_5211@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR5K_DIAG_SW_CHANNEL_IDLE_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_AR5K_REG_DISABLE_BITS
	testl	%r13d, %r13d
	je	LBB0_22
## %bb.23:
	movq	_ATH5K_DEBUG_DMA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	movl	%r15d, %ecx
	xorl	%eax, %eax
	callq	_ATH5K_DBG
	jmp	LBB0_24
LBB0_4:
	cmpl	$128, %eax
	jne	LBB0_1
## %bb.5:
	movq	_AR5K_CR_TXD0@GOTPCREL(%rip), %rax
	movq	_AR5K_CR_TXE0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	notl	%esi
	andl	(%rax), %esi
	orl	%r12d, %esi
LBB0_7:
	movl	(%r15), %edx
	movq	%r14, %rdi
	callq	_ath5k_hw_reg_write
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_ath5k_hw_reg_read
	xorl	%r12d, %r12d
	jmp	LBB0_27
LBB0_22:
	xorl	%r13d, %r13d
LBB0_24:
	movl	%r15d, %edi
	callq	_AR5K_QUEUE_MISC
	movq	_AR5K_QCU_MISC_DCU_EARLY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_AR5K_REG_DISABLE_BITS
	movq	_AR5K_QCU_TXD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_ath5k_hw_reg_write
	testl	%r13d, %r13d
	je	LBB0_27
## %bb.25:
	movq	_ATH5K_DEBUG_DMA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	movl	%r15d, %ecx
	movl	%r13d, %r8d
	xorl	%eax, %eax
	callq	_ATH5K_DBG
	movq	_EBUSY@GOTPCREL(%rip), %rax
LBB0_26:
	subl	(%rax), %r12d
LBB0_27:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AR5K_TX_QUEUE_INACTIVE,4,2     ## @AR5K_TX_QUEUE_INACTIVE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AR5K_AR5210,8,3                ## @AR5K_AR5210
	.comm	_AR5K_CR,4,2                    ## @AR5K_CR
	.comm	_AR5K_CR_TXD0,4,2               ## @AR5K_CR_TXD0
	.comm	_AR5K_CR_TXE0,4,2               ## @AR5K_CR_TXE0
	.comm	_AR5K_CR_TXD1,4,2               ## @AR5K_CR_TXD1
	.comm	_AR5K_BSR,4,2                   ## @AR5K_BSR
	.comm	_AR5K_QCU_MISC_DCU_EARLY,4,2    ## @AR5K_QCU_MISC_DCU_EARLY
	.comm	_AR5K_QCU_TXD,4,2               ## @AR5K_QCU_TXD
	.comm	_AR5K_QCU_TXE,4,2               ## @AR5K_QCU_TXE
	.comm	_ATH5K_DEBUG_DMA,4,2            ## @ATH5K_DEBUG_DMA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"queue %i didn't stop !\n"

	.comm	_AR5K_QCU_STS_FRMPENDCNT,4,2    ## @AR5K_QCU_STS_FRMPENDCNT
	.comm	_AR5K_SREV_AR2414,4,2           ## @AR5K_SREV_AR2414
	.comm	_AR5K_QUIET_CTL2_QT_PER,4,2     ## @AR5K_QUIET_CTL2_QT_PER
	.comm	_AR5K_QUIET_CTL2_QT_DUR,4,2     ## @AR5K_QUIET_CTL2_QT_DUR
	.comm	_AR5K_QUIET_CTL2,4,2            ## @AR5K_QUIET_CTL2
	.comm	_AR5K_QUIET_CTL1_QT_EN,4,2      ## @AR5K_QUIET_CTL1_QT_EN
	.comm	_AR5K_TSF_L32_5211,4,2          ## @AR5K_TSF_L32_5211
	.comm	_AR5K_QUIET_CTL1_NEXT_QT_TSF,4,2 ## @AR5K_QUIET_CTL1_NEXT_QT_TSF
	.comm	_AR5K_QUIET_CTL1,4,2            ## @AR5K_QUIET_CTL1
	.comm	_AR5K_DIAG_SW_5211,4,2          ## @AR5K_DIAG_SW_5211
	.comm	_AR5K_DIAG_SW_CHANNEL_IDLE_HIGH,4,2 ## @AR5K_DIAG_SW_CHANNEL_IDLE_HIGH
L_.str.1:                               ## @.str.1
	.asciz	"quiet mechanism didn't work q:%i !\n"

L_.str.2:                               ## @.str.2
	.asciz	"tx dma didn't stop (q:%i, frm:%i) !\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_ath5k_hw_stop_tx_dma
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath5k_hw_stop_tx_dma
_ath5k_hw_stop_tx_dma:                  ; @ath5k_hw_stop_tx_dma
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x19, x0
	ldr	w1, [x0, #24]
	mov	x0, x20
	bl	_AR5K_ASSERT_ENTRY
	ldr	x8, [x19, #16]
	ldr	w8, [x8, w20, uxtw #2]
Lloh0:
	adrp	x9, _AR5K_TX_QUEUE_INACTIVE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AR5K_TX_QUEUE_INACTIVE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_2
LBB0_1:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_21
LBB0_2:
	ldr	x8, [x19]
Lloh5:
	adrp	x9, _AR5K_AR5210@GOTPAGE
Lloh6:
	ldr	x9, [x9, _AR5K_AR5210@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
	mov	w22, w20
Lloh8:
	adrp	x21, _AR5K_CR@GOTPAGE
Lloh9:
	ldr	x21, [x21, _AR5K_CR@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_ath5k_hw_reg_read
	mov	x20, x0
	ldr	x8, [x19, #16]
	ldr	w8, [x8, x22, lsl #2]
	sub	w9, w8, #129
	cmp	w9, #2
	b.hs	LBB0_22
; %bb.4:
Lloh10:
	adrp	x8, _AR5K_BSR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AR5K_BSR@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_ath5k_hw_reg_write
	b	LBB0_24
LBB0_5:
	mov	x0, x20
	bl	_AR5K_QUEUE_MISC
	mov	x1, x0
Lloh13:
	adrp	x22, _AR5K_QCU_MISC_DCU_EARLY@GOTPAGE
Lloh14:
	ldr	x22, [x22, _AR5K_QCU_MISC_DCU_EARLY@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x19
	bl	_AR5K_REG_ENABLE_BITS
Lloh15:
	adrp	x23, _AR5K_QCU_TXD@GOTPAGE
Lloh16:
	ldr	x23, [x23, _AR5K_QCU_TXD@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	mov	x2, x20
	bl	_AR5K_REG_WRITE_Q
	mov	w21, #-1000
Lloh17:
	adrp	x24, _AR5K_QCU_TXE@GOTPAGE
Lloh18:
	ldr	x24, [x24, _AR5K_QCU_TXE@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x24]
	mov	x0, x19
	mov	x2, x20
	bl	_AR5K_REG_READ_Q
	cbz	x0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #100
	bl	_udelay
	adds	w21, w21, #1
	b.lo	LBB0_6
LBB0_8:
	ldr	w1, [x24]
	mov	x0, x19
	mov	x2, x20
	bl	_AR5K_REG_READ_Q
Lloh19:
	adrp	x24, _ATH5K_DEBUG_DMA@GOTPAGE
Lloh20:
	ldr	x24, [x24, _ATH5K_DEBUG_DMA@GOTPAGEOFF]
	cbz	x0, LBB0_10
; %bb.9:
	ldr	w1, [x24]
Lloh21:
	adrp	x2, l_.str@PAGE
Lloh22:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x3, x20
	bl	_ATH5K_DBG
LBB0_10:
	mov	w26, #-999
Lloh23:
	adrp	x25, _AR5K_QCU_STS_FRMPENDCNT@GOTPAGE
Lloh24:
	ldr	x25, [x25, _AR5K_QCU_STS_FRMPENDCNT@GOTPAGEOFF]
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_AR5K_QUEUE_STATUS
	mov	x1, x0
	mov	x0, x19
	bl	_ath5k_hw_reg_read
	ldr	w8, [x25]
	and	w21, w8, w0
	mov	w0, #100
	bl	_udelay
	cbz	w26, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	add	w26, w26, #1
	cbnz	w21, LBB0_11
LBB0_13:
	ldr	w8, [x19, #8]
Lloh25:
	adrp	x9, _AR5K_SREV_AR2414@GOTPAGE
Lloh26:
	ldr	x9, [x9, _AR5K_SREV_AR2414@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	cmp	w8, w9, asr #4
	ccmp	w21, #0, #4, ge
	b.eq	LBB0_19
; %bb.14:
Lloh28:
	adrp	x8, _AR5K_QUIET_CTL2_QT_PER@GOTPAGE
Lloh29:
	ldr	x8, [x8, _AR5K_QUIET_CTL2_QT_PER@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	mov	w0, #100
	bl	_AR5K_REG_SM
	mov	x21, x0
Lloh31:
	adrp	x8, _AR5K_QUIET_CTL2_QT_DUR@GOTPAGE
Lloh32:
	ldr	x8, [x8, _AR5K_QUIET_CTL2_QT_DUR@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	mov	w0, #10
	bl	_AR5K_REG_SM
	orr	w1, w0, w21
Lloh34:
	adrp	x8, _AR5K_QUIET_CTL2@GOTPAGE
Lloh35:
	ldr	x8, [x8, _AR5K_QUIET_CTL2@GOTPAGEOFF]
Lloh36:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_ath5k_hw_reg_write
Lloh37:
	adrp	x21, _AR5K_QUIET_CTL1_QT_EN@GOTPAGE
Lloh38:
	ldr	x21, [x21, _AR5K_QUIET_CTL1_QT_EN@GOTPAGEOFF]
	ldr	w26, [x21]
Lloh39:
	adrp	x8, _AR5K_TSF_L32_5211@GOTPAGE
Lloh40:
	ldr	x8, [x8, _AR5K_TSF_L32_5211@GOTPAGEOFF]
Lloh41:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ath5k_hw_reg_read
	asr	w0, w0, #10
Lloh42:
	adrp	x8, _AR5K_QUIET_CTL1_NEXT_QT_TSF@GOTPAGE
Lloh43:
	ldr	x8, [x8, _AR5K_QUIET_CTL1_NEXT_QT_TSF@GOTPAGEOFF]
Lloh44:
	ldr	w1, [x8]
	bl	_AR5K_REG_SM
	orr	w1, w0, w26
Lloh45:
	adrp	x28, _AR5K_QUIET_CTL1@GOTPAGE
Lloh46:
	ldr	x28, [x28, _AR5K_QUIET_CTL1@GOTPAGEOFF]
	ldr	w2, [x28]
	mov	x0, x19
	bl	_ath5k_hw_reg_write
Lloh47:
	adrp	x26, _AR5K_DIAG_SW_5211@GOTPAGE
Lloh48:
	ldr	x26, [x26, _AR5K_DIAG_SW_5211@GOTPAGEOFF]
	ldr	w1, [x26]
Lloh49:
	adrp	x27, _AR5K_DIAG_SW_CHANNEL_IDLE_HIGH@GOTPAGE
Lloh50:
	ldr	x27, [x27, _AR5K_DIAG_SW_CHANNEL_IDLE_HIGH@GOTPAGEOFF]
	ldr	w2, [x27]
	mov	x0, x19
	bl	_AR5K_REG_ENABLE_BITS
	mov	w0, #400
	bl	_udelay
	ldr	w1, [x28]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_AR5K_REG_DISABLE_BITS
	mov	w28, #-99
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_AR5K_QUEUE_STATUS
	mov	x1, x0
	mov	x0, x19
	bl	_ath5k_hw_reg_read
	ldr	w8, [x25]
	and	w21, w8, w0
	mov	w0, #100
	bl	_udelay
	cbz	w28, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	add	w28, w28, #1
	cbnz	w21, LBB0_15
LBB0_17:
	ldr	w1, [x26]
	ldr	w2, [x27]
	mov	x0, x19
	bl	_AR5K_REG_DISABLE_BITS
	cbz	w21, LBB0_19
; %bb.18:
	ldr	w1, [x24]
Lloh51:
	adrp	x2, l_.str.1@PAGE
Lloh52:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x3, x20
	bl	_ATH5K_DBG
LBB0_19:
	mov	x0, x20
	bl	_AR5K_QUEUE_MISC
	mov	x1, x0
	ldr	w2, [x22]
	mov	x0, x19
	bl	_AR5K_REG_DISABLE_BITS
	ldr	w2, [x23]
	mov	x0, x19
	mov	w1, #0
	bl	_ath5k_hw_reg_write
	cbz	w21, LBB0_25
; %bb.20:
	ldr	w1, [x24]
	str	x21, [sp]
Lloh53:
	adrp	x2, l_.str.2@PAGE
Lloh54:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x3, x20
	bl	_ATH5K_DBG
Lloh55:
	adrp	x8, _EBUSY@GOTPAGE
Lloh56:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_21:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_26
LBB0_22:
	cmp	w8, #128
	b.ne	LBB0_1
; %bb.23:
Lloh57:
	adrp	x8, _AR5K_CR_TXD0@GOTPAGE
Lloh58:
	ldr	x8, [x8, _AR5K_CR_TXD0@GOTPAGEOFF]
Lloh59:
	ldr	w8, [x8]
Lloh60:
	adrp	x9, _AR5K_CR_TXE0@GOTPAGE
Lloh61:
	ldr	x9, [x9, _AR5K_CR_TXE0@GOTPAGEOFF]
Lloh62:
	ldr	w9, [x9]
	bic	w8, w8, w9
	orr	w20, w8, w20
LBB0_24:
	ldr	w2, [x21]
	mov	x0, x19
	mov	x1, x20
	bl	_ath5k_hw_reg_write
	ldr	w1, [x21]
	mov	x0, x19
	bl	_ath5k_hw_reg_read
LBB0_25:
	mov	w0, #0
LBB0_26:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh55, Lloh56
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.cfi_endproc
                                        ; -- End function
	.comm	_AR5K_TX_QUEUE_INACTIVE,4,2     ; @AR5K_TX_QUEUE_INACTIVE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AR5K_AR5210,8,3                ; @AR5K_AR5210
	.comm	_AR5K_CR,4,2                    ; @AR5K_CR
	.comm	_AR5K_CR_TXD0,4,2               ; @AR5K_CR_TXD0
	.comm	_AR5K_CR_TXE0,4,2               ; @AR5K_CR_TXE0
	.comm	_AR5K_CR_TXD1,4,2               ; @AR5K_CR_TXD1
	.comm	_AR5K_BSR,4,2                   ; @AR5K_BSR
	.comm	_AR5K_QCU_MISC_DCU_EARLY,4,2    ; @AR5K_QCU_MISC_DCU_EARLY
	.comm	_AR5K_QCU_TXD,4,2               ; @AR5K_QCU_TXD
	.comm	_AR5K_QCU_TXE,4,2               ; @AR5K_QCU_TXE
	.comm	_ATH5K_DEBUG_DMA,4,2            ; @ATH5K_DEBUG_DMA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"queue %i didn't stop !\n"

	.comm	_AR5K_QCU_STS_FRMPENDCNT,4,2    ; @AR5K_QCU_STS_FRMPENDCNT
	.comm	_AR5K_SREV_AR2414,4,2           ; @AR5K_SREV_AR2414
	.comm	_AR5K_QUIET_CTL2_QT_PER,4,2     ; @AR5K_QUIET_CTL2_QT_PER
	.comm	_AR5K_QUIET_CTL2_QT_DUR,4,2     ; @AR5K_QUIET_CTL2_QT_DUR
	.comm	_AR5K_QUIET_CTL2,4,2            ; @AR5K_QUIET_CTL2
	.comm	_AR5K_QUIET_CTL1_QT_EN,4,2      ; @AR5K_QUIET_CTL1_QT_EN
	.comm	_AR5K_TSF_L32_5211,4,2          ; @AR5K_TSF_L32_5211
	.comm	_AR5K_QUIET_CTL1_NEXT_QT_TSF,4,2 ; @AR5K_QUIET_CTL1_NEXT_QT_TSF
	.comm	_AR5K_QUIET_CTL1,4,2            ; @AR5K_QUIET_CTL1
	.comm	_AR5K_DIAG_SW_5211,4,2          ; @AR5K_DIAG_SW_5211
	.comm	_AR5K_DIAG_SW_CHANNEL_IDLE_HIGH,4,2 ; @AR5K_DIAG_SW_CHANNEL_IDLE_HIGH
l_.str.1:                               ; @.str.1
	.asciz	"quiet mechanism didn't work q:%i !\n"

l_.str.2:                               ; @.str.2
	.asciz	"tx dma didn't stop (q:%i, frm:%i) !\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_ath5k_hw_stop_tx_dma
.subsections_via_symbols
