	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_hw_abort_tx_dma          ## -- Begin function ath9k_hw_abort_tx_dma
	.p2align	4, 0x90
_ath9k_hw_abort_tx_dma:                 ## @ath9k_hw_abort_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
	movq	%rdi, %r14
	movq	(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	callq	_IS_CHAN_HALF_RATE
	movl	$2000, %r12d                    ## imm = 0x7D0
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	(%r14), %rdi
	callq	_IS_CHAN_QUARTER_RATE
	testq	%rax, %rax
	movl	$1000, %eax                     ## imm = 0x3E8
	movl	$4000, %r12d                    ## imm = 0xFA0
	cmovel	%eax, %r12d
	jmp	LBB0_4
LBB0_1:
	movl	$1000, %r12d                    ## imm = 0x3E8
LBB0_4:
	movq	_AR_Q_TXD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR_Q_TXD_M@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_REG_WRITE
	movq	_AR_PCU_MISC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR_PCU_FORCE_QUIET_COLL@GOTPCREL(%rip), %rax
	movq	_AR_PCU_CLEAR_VMF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	%r14, %rdi
	callq	_REG_SET_BIT
	movq	_AR_DIAG_SW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR_DIAG_FORCE_CH_IDLE_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_REG_SET_BIT
	movq	_AR_D_GBL_IFS_MISC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR_D_GBL_IFS_MISC_IGNORE_BACKOFF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_REG_SET_BIT
	movq	_AR_NUM_QCU@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_11
## %bb.5:
	xorl	%ebx, %ebx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	incl	%ebx
	cmpl	(%r15), %ebx
	jge	LBB0_11
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_ath9k_hw_numtxpending
	testl	%eax, %eax
	je	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	$2, %r13d
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	$5, %edi
	callq	_udelay
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_ath9k_hw_numtxpending
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=2
	leal	1(%r13), %eax
	cmpl	%r12d, %r13d
	movl	%eax, %r13d
	jb	LBB0_8
	jmp	LBB0_10
LBB0_11:
	movq	_AR_PCU_MISC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR_PCU_CLEAR_VMF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_AR_PCU_FORCE_QUIET_COLL@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%r14, %rdi
	callq	_REG_CLR_BIT
	movq	_AR_DIAG_SW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR_DIAG_FORCE_CH_IDLE_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_REG_CLR_BIT
	movq	_AR_D_GBL_IFS_MISC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR_D_GBL_IFS_MISC_IGNORE_BACKOFF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_REG_CLR_BIT
	movq	_AR_Q_TXD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_REG_WRITE                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AR_Q_TXD,4,2                   ## @AR_Q_TXD
	.comm	_AR_Q_TXD_M,4,2                 ## @AR_Q_TXD_M
	.comm	_AR_PCU_MISC,4,2                ## @AR_PCU_MISC
	.comm	_AR_PCU_FORCE_QUIET_COLL,4,2    ## @AR_PCU_FORCE_QUIET_COLL
	.comm	_AR_PCU_CLEAR_VMF,4,2           ## @AR_PCU_CLEAR_VMF
	.comm	_AR_DIAG_SW,4,2                 ## @AR_DIAG_SW
	.comm	_AR_DIAG_FORCE_CH_IDLE_HIGH,4,2 ## @AR_DIAG_FORCE_CH_IDLE_HIGH
	.comm	_AR_D_GBL_IFS_MISC,4,2          ## @AR_D_GBL_IFS_MISC
	.comm	_AR_D_GBL_IFS_MISC_IGNORE_BACKOFF,4,2 ## @AR_D_GBL_IFS_MISC_IGNORE_BACKOFF
	.comm	_AR_NUM_QCU,4,2                 ## @AR_NUM_QCU
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_hw_abort_tx_dma          ; -- Begin function ath9k_hw_abort_tx_dma
	.p2align	2
_ath9k_hw_abort_tx_dma:                 ; @ath9k_hw_abort_tx_dma
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x0
	ldr	x0, [x0]
	cbz	x0, LBB0_3
; %bb.1:
	bl	_IS_CHAN_HALF_RATE
	cbz	x0, LBB0_4
; %bb.2:
	mov	w22, #2000
	b	LBB0_5
LBB0_3:
	mov	w22, #1000
	b	LBB0_5
LBB0_4:
	ldr	x0, [x19]
	bl	_IS_CHAN_QUARTER_RATE
	cmp	x0, #0
	mov	w8, #4000
	mov	w9, #1000
	csel	w22, w9, w8, eq
LBB0_5:
Lloh0:
	adrp	x8, _AR_Q_TXD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AR_Q_TXD@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _AR_Q_TXD_M@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AR_Q_TXD_M@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_REG_WRITE
Lloh6:
	adrp	x8, _AR_PCU_MISC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AR_PCU_MISC@GOTPAGEOFF]
Lloh8:
	adrp	x9, _AR_PCU_FORCE_QUIET_COLL@GOTPAGE
Lloh9:
	ldr	x9, [x9, _AR_PCU_FORCE_QUIET_COLL@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	ldr	w8, [x9]
Lloh12:
	adrp	x25, _AR_PCU_CLEAR_VMF@GOTPAGE
Lloh13:
	ldr	x25, [x25, _AR_PCU_CLEAR_VMF@GOTPAGEOFF]
	ldr	w9, [x25]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_REG_SET_BIT
Lloh14:
	adrp	x26, _AR_DIAG_SW@GOTPAGE
Lloh15:
	ldr	x26, [x26, _AR_DIAG_SW@GOTPAGEOFF]
	ldr	w1, [x26]
Lloh16:
	adrp	x27, _AR_DIAG_FORCE_CH_IDLE_HIGH@GOTPAGE
Lloh17:
	ldr	x27, [x27, _AR_DIAG_FORCE_CH_IDLE_HIGH@GOTPAGEOFF]
	ldr	w2, [x27]
	mov	x0, x19
	bl	_REG_SET_BIT
Lloh18:
	adrp	x28, _AR_D_GBL_IFS_MISC@GOTPAGE
Lloh19:
	ldr	x28, [x28, _AR_D_GBL_IFS_MISC@GOTPAGEOFF]
	ldr	w1, [x28]
Lloh20:
	adrp	x21, _AR_D_GBL_IFS_MISC_IGNORE_BACKOFF@GOTPAGE
Lloh21:
	ldr	x21, [x21, _AR_D_GBL_IFS_MISC_IGNORE_BACKOFF@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_REG_SET_BIT
Lloh22:
	adrp	x23, _AR_NUM_QCU@GOTPAGE
Lloh23:
	ldr	x23, [x23, _AR_NUM_QCU@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.6:
	mov	w20, #0
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	w20, w20, #1
	ldr	w8, [x23]
	cmp	w20, w8
	b.ge	LBB0_12
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	mov	x0, x19
	mov	x1, x20
	bl	_ath9k_hw_numtxpending
	cbz	w0, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	w24, #2
LBB0_10:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	w0, #5
	bl	_udelay
	mov	x0, x19
	mov	x1, x20
	bl	_ath9k_hw_numtxpending
	cbz	w0, LBB0_7
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	add	w8, w24, #1
	cmp	w24, w22
	mov	x24, x8
	b.lo	LBB0_10
	b	LBB0_7
LBB0_12:
Lloh24:
	adrp	x8, _AR_PCU_MISC@GOTPAGE
Lloh25:
	ldr	x8, [x8, _AR_PCU_MISC@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
Lloh27:
	adrp	x8, _AR_PCU_FORCE_QUIET_COLL@GOTPAGE
Lloh28:
	ldr	x8, [x8, _AR_PCU_FORCE_QUIET_COLL@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	ldr	w9, [x25]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_REG_CLR_BIT
	ldr	w1, [x26]
	ldr	w2, [x27]
	mov	x0, x19
	bl	_REG_CLR_BIT
	ldr	w1, [x28]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_REG_CLR_BIT
Lloh30:
	adrp	x8, _AR_Q_TXD@GOTPAGE
Lloh31:
	ldr	x8, [x8, _AR_Q_TXD@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_REG_WRITE
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_AR_Q_TXD,4,2                   ; @AR_Q_TXD
	.comm	_AR_Q_TXD_M,4,2                 ; @AR_Q_TXD_M
	.comm	_AR_PCU_MISC,4,2                ; @AR_PCU_MISC
	.comm	_AR_PCU_FORCE_QUIET_COLL,4,2    ; @AR_PCU_FORCE_QUIET_COLL
	.comm	_AR_PCU_CLEAR_VMF,4,2           ; @AR_PCU_CLEAR_VMF
	.comm	_AR_DIAG_SW,4,2                 ; @AR_DIAG_SW
	.comm	_AR_DIAG_FORCE_CH_IDLE_HIGH,4,2 ; @AR_DIAG_FORCE_CH_IDLE_HIGH
	.comm	_AR_D_GBL_IFS_MISC,4,2          ; @AR_D_GBL_IFS_MISC
	.comm	_AR_D_GBL_IFS_MISC_IGNORE_BACKOFF,4,2 ; @AR_D_GBL_IFS_MISC_IGNORE_BACKOFF
	.comm	_AR_NUM_QCU,4,2                 ; @AR_NUM_QCU
.subsections_via_symbols
