	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath5k_hw_start_tx_dma          ## -- Begin function ath5k_hw_start_tx_dma
	.p2align	4, 0x90
_ath5k_hw_start_tx_dma:                 ## @ath5k_hw_start_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r12
	movl	16(%rdi), %esi
	movl	%ebx, %edi
	callq	_AR5K_ASSERT_ENTRY
	movq	8(%r12), %rax
	movl	%ebx, %r15d
	movl	(%rax,%r15,4), %eax
	movq	_AR5K_TX_QUEUE_INACTIVE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_3
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_3:
	movq	(%r12), %rax
	movq	_AR5K_AR5210@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.4:
	movq	_AR5K_CR@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_ath5k_hw_reg_read
	movl	%eax, %r14d
	movq	8(%r12), %rax
	movl	(%rax,%r15,4), %eax
	cmpl	$130, %eax
	je	LBB0_9
## %bb.5:
	cmpl	$129, %eax
	je	LBB0_11
## %bb.6:
	cmpl	$128, %eax
	jne	LBB0_1
## %bb.7:
	movq	_AR5K_CR_TXE0@GOTPCREL(%rip), %rax
	movq	_AR5K_CR_TXD0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	notl	%r15d
	andl	(%rax), %r15d
	jmp	LBB0_8
LBB0_12:
	movq	_AR5K_QCU_TXD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_AR5K_REG_READ_Q
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	_EIO@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_16
LBB0_14:
	movq	_AR5K_QCU_TXE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_AR5K_REG_WRITE_Q
	jmp	LBB0_15
LBB0_9:
	movq	_AR5K_CR_TXE1@GOTPCREL(%rip), %rax
	movq	_AR5K_CR_TXD1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	notl	%r15d
	andl	(%rax), %r15d
	movq	_AR5K_BCR_TQ1V@GOTPCREL(%rip), %rax
	movq	_AR5K_BCR_BDMAE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	jmp	LBB0_10
LBB0_11:
	movq	_AR5K_CR_TXE1@GOTPCREL(%rip), %rax
	movq	_AR5K_CR_TXD1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	notl	%r15d
	andl	(%rax), %r15d
	movq	_AR5K_BCR_TQ1FV@GOTPCREL(%rip), %rax
	movq	_AR5K_BCR_TQ1V@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_AR5K_BCR_BDMAE@GOTPCREL(%rip), %rax
LBB0_10:
	orl	(%rax), %esi
	movq	_AR5K_BSR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_ath5k_hw_reg_write
LBB0_8:
	orl	%r14d, %r15d
	movl	(%rbx), %edx
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_ath5k_hw_reg_write
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_ath5k_hw_reg_read
LBB0_15:
	xorl	%eax, %eax
LBB0_16:
	popq	%rbx
	popq	%r12
	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_TXE0,4,2               ## @AR5K_CR_TXE0
	.comm	_AR5K_CR_TXD0,4,2               ## @AR5K_CR_TXD0
	.comm	_AR5K_CR_TXE1,4,2               ## @AR5K_CR_TXE1
	.comm	_AR5K_CR_TXD1,4,2               ## @AR5K_CR_TXD1
	.comm	_AR5K_BCR_TQ1V,4,2              ## @AR5K_BCR_TQ1V
	.comm	_AR5K_BCR_BDMAE,4,2             ## @AR5K_BCR_BDMAE
	.comm	_AR5K_BSR,4,2                   ## @AR5K_BSR
	.comm	_AR5K_BCR_TQ1FV,4,2             ## @AR5K_BCR_TQ1FV
	.comm	_AR5K_QCU_TXD,4,2               ## @AR5K_QCU_TXD
	.comm	_EIO,4,2                        ## @EIO
	.comm	_AR5K_QCU_TXE,4,2               ## @AR5K_QCU_TXE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath5k_hw_start_tx_dma          ; -- Begin function ath5k_hw_start_tx_dma
	.p2align	2
_ath5k_hw_start_tx_dma:                 ; @ath5k_hw_start_tx_dma
	.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
	ldr	w1, [x0, #16]
	mov	x0, x20
	bl	_AR5K_ASSERT_ENTRY
	ldr	x8, [x19, #8]
	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_9
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_7
; %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, #8]
	ldr	w8, [x8, x22, lsl #2]
	cmp	w8, #130
	b.eq	LBB0_11
; %bb.4:
	cmp	w8, #129
	b.eq	LBB0_12
; %bb.5:
	cmp	w8, #128
	b.ne	LBB0_1
; %bb.6:
Lloh10:
	adrp	x8, _AR5K_CR_TXE0@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AR5K_CR_TXE0@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _AR5K_CR_TXD0@GOTPAGE
Lloh14:
	ldr	x9, [x9, _AR5K_CR_TXD0@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	bic	w22, w8, w9
	b	LBB0_14
LBB0_7:
Lloh16:
	adrp	x8, _AR5K_QCU_TXD@GOTPAGE
Lloh17:
	ldr	x8, [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OFF]
Lloh41:
	ldr	w9, [x9]
	bic	w22, w8, w9
Lloh42:
	adrp	x8, _AR5K_BCR_TQ1FV@GOTPAGE
Lloh43:
	ldr	x8, [x8, _AR5K_BCR_TQ1FV@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
Lloh45:
	adrp	x9, _AR5K_BCR_TQ1V@GOTPAGE
Lloh46:
	ldr	x9, [x9, _AR5K_BCR_TQ1V@GOTPAGEOFF]
Lloh47:
	ldr	w9, [x9]
Lloh48:
	adrp	x10, _AR5K_BCR_BDMAE@GOTPAGE
Lloh49:
	ldr	x10, [x10, _AR5K_BCR_BDMAE@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh50:
	ldr	w9, [x10]
	orr	w1, w8, w9
LBB0_13:
Lloh51:
	adrp	x8, _AR5K_BSR@GOTPAGE
Lloh52:
	ldr	x8, [x8, _AR5K_BSR@GOTPAGEOFF]
Lloh53:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_ath5k_hw_reg_write
LBB0_14:
	orr	w1, w22, w20
	ldr	w2, [x21]
	mov	x0, x19
	bl	_ath5k_hw_reg_write
	ldr	w1, [x21]
	mov	x0, x19
	bl	_ath5k_hw_reg_read
LBB0_15:
	mov	w0, #0
LBB0_16:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh34
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.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_TXE0,4,2               ; @AR5K_CR_TXE0
	.comm	_AR5K_CR_TXD0,4,2               ; @AR5K_CR_TXD0
	.comm	_AR5K_CR_TXE1,4,2               ; @AR5K_CR_TXE1
	.comm	_AR5K_CR_TXD1,4,2               ; @AR5K_CR_TXD1
	.comm	_AR5K_BCR_TQ1V,4,2              ; @AR5K_BCR_TQ1V
	.comm	_AR5K_BCR_BDMAE,4,2             ; @AR5K_BCR_BDMAE
	.comm	_AR5K_BSR,4,2                   ; @AR5K_BSR
	.comm	_AR5K_BCR_TQ1FV,4,2             ; @AR5K_BCR_TQ1FV
	.comm	_AR5K_QCU_TXD,4,2               ; @AR5K_QCU_TXD
	.comm	_EIO,4,2                        ; @EIO
	.comm	_AR5K_QCU_TXE,4,2               ; @AR5K_QCU_TXE
.subsections_via_symbols
