	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath5k_txbuf_setup
_ath5k_txbuf_setup:                     ## @ath5k_txbuf_setup
	.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
	subq	$136, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -100(%rbp)                ## 4-byte Spill
	movq	%rdx, -160(%rbp)                ## 8-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	24(%rsi), %r14
	movq	32(%rsi), %rax
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	movq	%r14, %rdi
	callq	_IEEE80211_SKB_CB
	movq	%rax, %r13
	movq	_AR5K_TXKEYIX_INVALID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rax, -152(%rbp)                ## 8-byte Spill
	movq	_AR5K_TXDESC_INTREQ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	movq	_AR5K_TXDESC_CLRDMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	8(%r12), %edi
	movl	(%r14), %edx
	movq	%r14, -136(%rbp)                ## 8-byte Spill
	movl	4(%r14), %esi
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_dma_map_single
	movq	%rbx, -144(%rbp)                ## 8-byte Spill
	movl	%eax, (%rbx)
	movq	%r13, %rbx
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	movl	12(%r12), %edi
	movq	%r13, %rsi
	callq	_ieee80211_get_tx_rate
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	_IEEE80211_TX_CTL_NO_ACK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	andl	(%rbx), %r8d
	je	LBB0_5
## %bb.4:
	movq	_AR5K_TXDESC_NOACK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
LBB0_5:
	orl	-76(%rbp), %r15d                ## 4-byte Folded Reload
	movq	8(%rbx), %rdx
	movl	(%rdx), %r13d
	movq	_IEEE80211_TX_RC_USE_SHORT_PREAMBLE@GOTPCREL(%rip), %rsi
	xorl	%edx, %edx
	testl	%r13d, (%rsi)
	movq	24(%rbx), %rsi
	sete	%dl
	movq	-136(%rbp), %r14                ## 8-byte Reload
	movl	(%r14), %ecx
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.6:
	movl	(%rsi), %edi
	movq	%rdi, -152(%rbp)                ## 8-byte Spill
	addl	8(%rsi), %ecx
LBB0_7:
	movl	%ecx, -76(%rbp)                 ## 4-byte Spill
	orl	%r8d, %r15d
	movl	(%rax,%rdx,4), %eax
	movq	%rax, -168(%rbp)                ## 8-byte Spill
	movq	_IEEE80211_TX_RC_USE_RTS_CTS@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_8
## %bb.9:
	movq	_AR5K_TXDESC_RTSENA@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movq	%rbx, %r12
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movl	12(%rbx), %edi
	movq	%r12, %rsi
	callq	_ieee80211_get_rts_cts_rate
	movl	(%rax), %eax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movl	12(%rbx), %edi
	movq	%r12, %rbx
	movl	16(%r12), %esi
	movl	-76(%rbp), %edx                 ## 4-byte Reload
	movq	%r12, %rcx
	callq	_ieee80211_rts_duration
	movl	%eax, %edi
	callq	_le16_to_cpu
                                        ## kill: def $eax killed $eax def $rax
	jmp	LBB0_10
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	movq	-136(%rbp), %r14                ## 8-byte Reload
	jmp	LBB0_2
LBB0_8:
	xorl	%eax, %eax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
LBB0_10:
	movq	_IEEE80211_TX_RC_USE_CTS_PROTECT@GOTPCREL(%rip), %rcx
	testl	%r13d, (%rcx)
	movq	%rbx, -120(%rbp)                ## 8-byte Spill
	je	LBB0_11
## %bb.12:
	movq	_AR5K_TXDESC_CTSENA@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	movl	12(%r12), %edi
	movq	%rbx, %rsi
	callq	_ieee80211_get_rts_cts_rate
	movl	(%rax), %eax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movl	12(%r12), %edi
	movl	16(%rbx), %esi
	movl	-76(%rbp), %edx                 ## 4-byte Reload
	movq	%rbx, %rcx
	callq	_ieee80211_ctstoself_duration
	movl	%eax, %edi
	callq	_le16_to_cpu
                                        ## kill: def $eax killed $eax def $rax
	jmp	LBB0_13
LBB0_11:
	movq	-88(%rbp), %r12                 ## 8-byte Reload
LBB0_13:
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movq	(%r12), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_ieee80211_get_hdrlen_from_skb
	movl	%eax, %r13d
	movq	%r14, %rdi
	callq	_get_hw_packet_type
	movl	24(%r12), %r10d
	movl	28(%r12), %ebx
	addl	%ebx, %ebx
	movq	-120(%rbp), %rcx                ## 8-byte Reload
	movq	8(%rcx), %rcx
	movl	4(%rcx), %r11d
	movq	%r12, %rdi
	movq	-128(%rbp), %rsi                ## 8-byte Reload
	movl	-76(%rbp), %edx                 ## 4-byte Reload
	movl	%r13d, %ecx
	movl	-100(%rbp), %r8d                ## 4-byte Reload
	movl	%eax, %r9d
	pushq	-112(%rbp)                      ## 8-byte Folded Reload
	pushq	-96(%rbp)                       ## 8-byte Folded Reload
	pushq	%r15
	pushq	%r10
	pushq	-152(%rbp)                      ## 8-byte Folded Reload
	pushq	%r11
	pushq	-168(%rbp)                      ## 8-byte Folded Reload
	pushq	%rbx
	callq	*-88(%rbp)                      ## 8-byte Folded Reload
	addq	$64, %rsp
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_14
LBB0_2:
	movl	8(%r12), %edi
	movq	-144(%rbp), %rax                ## 8-byte Reload
	movl	(%rax), %esi
	movl	(%r14), %edx
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_dma_unmap_single
	jmp	LBB0_24
LBB0_14:
	movq	-120(%rbp), %rbx                ## 8-byte Reload
	cmpq	$0, 16(%r12)
	movq	-160(%rbp), %r15                ## 8-byte Reload
	movq	-128(%rbp), %r14                ## 8-byte Reload
	je	LBB0_20
## %bb.15:
	leaq	-60(%rbp), %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	leaq	-72(%rbp), %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	movl	12(%r12), %edi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_ieee80211_get_alt_retry_rate
	testq	%rax, %rax
	je	LBB0_19
## %bb.16:
	movl	4(%rax), %eax
	movl	%eax, -60(%rbp)
	movq	8(%rbx), %rax
	movl	12(%rax), %eax
	movl	%eax, -72(%rbp)
	movl	12(%r12), %edi
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_ieee80211_get_alt_retry_rate
	testq	%rax, %rax
	je	LBB0_19
## %bb.17:
	movl	4(%rax), %eax
	movl	%eax, -56(%rbp)
	movq	8(%rbx), %rax
	movl	20(%rax), %eax
	movl	%eax, -68(%rbp)
	movl	12(%r12), %edi
	movq	%rbx, %rsi
	movl	$2, %edx
	callq	_ieee80211_get_alt_retry_rate
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:
	movl	4(%rax), %eax
	movl	%eax, -52(%rbp)
	movq	8(%rbx), %rax
	movl	28(%rax), %eax
	movl	%eax, -64(%rbp)
LBB0_19:
	movl	-60(%rbp), %edx
	movl	-56(%rbp), %r8d
	movl	-72(%rbp), %ecx
	movl	-68(%rbp), %r9d
	movl	-52(%rbp), %eax
	movl	-64(%rbp), %ebx
	movq	%r12, %rdi
	movq	%r14, %rsi
	pushq	%rbx
	pushq	%rax
	callq	_ath5k_hw_setup_mrr_tx_desc
	addq	$16, %rsp
LBB0_20:
	movq	$0, (%r14)
	movq	-144(%rbp), %rbx                ## 8-byte Reload
	movl	(%rbx), %eax
	movl	%eax, 8(%r14)
	movq	%r15, %rdi
	callq	_spin_lock_bh
	leaq	16(%rbx), %rdi
	leaq	20(%r15), %rsi
	callq	_list_add_tail
	incl	16(%r15)
	movq	8(%r15), %rax
	testq	%rax, %rax
	je	LBB0_21
## %bb.22:
	movq	8(%rbx), %rcx
	movq	%rcx, (%rax)
	jmp	LBB0_23
LBB0_21:
	movl	4(%r15), %esi
	movq	8(%rbx), %rdx
	movq	%r12, %rdi
	callq	_ath5k_hw_set_txdp
LBB0_23:
	movq	%r14, 8(%r15)
	movl	4(%r15), %esi
	movq	%r12, %rdi
	callq	_ath5k_hw_start_tx_dma
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_mmiowb
	movq	%r15, %rdi
	callq	_spin_unlock_bh
LBB0_24:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_26
## %bb.25:
	movl	%ebx, %eax
	addq	$136, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_26:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_AR5K_TXKEYIX_INVALID,4,2       ## @AR5K_TXKEYIX_INVALID
	.comm	_AR5K_TXDESC_INTREQ,4,2         ## @AR5K_TXDESC_INTREQ
	.comm	_AR5K_TXDESC_CLRDMASK,4,2       ## @AR5K_TXDESC_CLRDMASK
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IEEE80211_TX_CTL_NO_ACK,4,2    ## @IEEE80211_TX_CTL_NO_ACK
	.comm	_AR5K_TXDESC_NOACK,4,2          ## @AR5K_TXDESC_NOACK
	.comm	_IEEE80211_TX_RC_USE_SHORT_PREAMBLE,4,2 ## @IEEE80211_TX_RC_USE_SHORT_PREAMBLE
	.comm	_IEEE80211_TX_RC_USE_RTS_CTS,4,2 ## @IEEE80211_TX_RC_USE_RTS_CTS
	.comm	_AR5K_TXDESC_RTSENA,4,2         ## @AR5K_TXDESC_RTSENA
	.comm	_IEEE80211_TX_RC_USE_CTS_PROTECT,4,2 ## @IEEE80211_TX_RC_USE_CTS_PROTECT
	.comm	_AR5K_TXDESC_CTSENA,4,2         ## @AR5K_TXDESC_CTSENA
	.no_dead_strip	_ath5k_txbuf_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath5k_txbuf_setup
_ath5k_txbuf_setup:                     ; @ath5k_txbuf_setup
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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	x28, x3
	mov	x25, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #88]
	ldp	x24, x27, [x1, #24]
	mov	x0, x24
	bl	_IEEE80211_SKB_CB
	mov	x23, x0
Lloh3:
	adrp	x8, _AR5K_TXKEYIX_INVALID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AR5K_TXKEYIX_INVALID@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp, #60]                   ; 4-byte Folded Spill
Lloh6:
	adrp	x8, _AR5K_TXDESC_INTREQ@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AR5K_TXDESC_INTREQ@GOTPAGEOFF]
Lloh8:
	ldr	w20, [x8]
Lloh9:
	adrp	x8, _AR5K_TXDESC_CLRDMASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AR5K_TXDESC_CLRDMASK@GOTPAGEOFF]
Lloh11:
	ldr	w22, [x8]
	ldr	w0, [x19, #8]
	ldp	w2, w1, [x24]
Lloh12:
	adrp	x26, _DMA_TO_DEVICE@GOTPAGE
Lloh13:
	ldr	x26, [x26, _DMA_TO_DEVICE@GOTPAGEOFF]
	ldr	w3, [x26]
	bl	_dma_map_single
	str	w0, [x21]
	ldr	w0, [x19, #12]
	mov	x1, x23
	bl	_ieee80211_get_tx_rate
	cbz	x0, LBB0_5
; %bb.1:
	orr	w8, w22, w20
	ldr	w9, [x23]
Lloh14:
	adrp	x10, _IEEE80211_TX_CTL_NO_ACK@GOTPAGE
Lloh15:
	ldr	x10, [x10, _IEEE80211_TX_CTL_NO_ACK@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
Lloh17:
	adrp	x11, _AR5K_TXDESC_NOACK@GOTPAGE
Lloh18:
	ldr	x11, [x11, _AR5K_TXDESC_NOACK@GOTPAGEOFF]
Lloh19:
	ldr	w11, [x11]
	tst	w10, w9
	csel	w9, wzr, w11, eq
	ldr	x10, [x23, #8]
Lloh20:
	adrp	x11, _IEEE80211_TX_RC_USE_SHORT_PREAMBLE@GOTPAGE
Lloh21:
	ldr	x11, [x11, _IEEE80211_TX_RC_USE_SHORT_PREAMBLE@GOTPAGEOFF]
	ldr	w22, [x10]
Lloh22:
	ldr	w10, [x11]
	tst	w10, w22
	cset	w10, eq
	ldr	w26, [x24]
	ldr	x11, [x23, #24]
	cbz	x11, LBB0_3
; %bb.2:
	ldr	w12, [x11]
	str	w12, [sp, #60]                  ; 4-byte Folded Spill
	ldr	w11, [x11, #8]
	add	w26, w26, w11
LBB0_3:
	str	x27, [sp, #48]                  ; 8-byte Folded Spill
	orr	w20, w8, w9
	ldr	w8, [x0, w10, uxtw #2]
	stp	w8, w28, [sp, #40]              ; 8-byte Folded Spill
Lloh23:
	adrp	x8, _IEEE80211_TX_RC_USE_RTS_CTS@GOTPAGE
Lloh24:
	ldr	x8, [x8, _IEEE80211_TX_RC_USE_RTS_CTS@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_6
; %bb.4:
Lloh26:
	adrp	x8, _AR5K_TXDESC_RTSENA@GOTPAGE
Lloh27:
	ldr	x8, [x8, _AR5K_TXDESC_RTSENA@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	orr	w20, w8, w20
	ldr	w0, [x19, #12]
	mov	x1, x23
	bl	_ieee80211_get_rts_cts_rate
	ldr	w27, [x0]
	ldr	w0, [x19, #12]
	ldr	w1, [x23, #16]
	mov	x2, x26
	mov	x3, x23
	bl	_ieee80211_rts_duration
	bl	_le16_to_cpu
	mov	x28, x0
	b	LBB0_7
LBB0_5:
Lloh29:
	adrp	x8, _EINVAL@GOTPAGE
Lloh30:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	neg	w25, w8
	b	LBB0_10
LBB0_6:
	mov	w27, #0
	mov	w28, #0
LBB0_7:
Lloh32:
	adrp	x8, _IEEE80211_TX_RC_USE_CTS_PROTECT@GOTPAGE
Lloh33:
	ldr	x8, [x8, _IEEE80211_TX_RC_USE_CTS_PROTECT@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	tst	w8, w22
	str	x25, [sp, #32]                  ; 8-byte Folded Spill
	b.eq	LBB0_9
; %bb.8:
Lloh35:
	adrp	x8, _AR5K_TXDESC_CTSENA@GOTPAGE
Lloh36:
	ldr	x8, [x8, _AR5K_TXDESC_CTSENA@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	orr	w20, w8, w20
	ldr	w0, [x19, #12]
	mov	x1, x23
	bl	_ieee80211_get_rts_cts_rate
	ldr	w27, [x0]
	ldr	w0, [x19, #12]
	ldr	w1, [x23, #16]
	mov	x2, x26
	mov	x3, x23
	bl	_ieee80211_ctstoself_duration
	bl	_le16_to_cpu
	mov	x28, x0
LBB0_9:
	ldr	x25, [x19]
	mov	x0, x24
	bl	_ieee80211_get_hdrlen_from_skb
	mov	x22, x0
	mov	x0, x24
	bl	_get_hw_packet_type
	mov	x5, x0
	ldp	w9, w8, [x19, #24]
	lsl	w6, w8, #1
	ldr	x8, [x23, #8]
	ldr	w8, [x8, #4]
	stp	w27, w28, [sp, #16]
	stp	w9, w20, [sp, #8]
	ldr	w9, [sp, #60]                   ; 4-byte Folded Reload
	stp	w8, w9, [sp]
	mov	x0, x19
	ldr	x27, [sp, #48]                  ; 8-byte Folded Reload
	mov	x1, x27
	mov	x2, x26
	mov	x3, x22
	ldp	w7, w4, [sp, #40]               ; 8-byte Folded Reload
	blr	x25
	mov	x25, x0
Lloh38:
	adrp	x26, _DMA_TO_DEVICE@GOTPAGE
Lloh39:
	ldr	x26, [x26, _DMA_TO_DEVICE@GOTPAGEOFF]
	cbz	w0, LBB0_11
LBB0_10:
	ldr	w0, [x19, #8]
	ldr	w1, [x21]
	ldr	w2, [x24]
	ldr	w3, [x26]
	bl	_dma_unmap_single
	b	LBB0_21
LBB0_11:
	ldr	x8, [x19, #16]
	ldr	x20, [sp, #32]                  ; 8-byte Folded Reload
	cbz	x8, LBB0_17
; %bb.12:
	add	x0, sp, #76
	mov	w1, #0
	mov	w2, #12
	bl	_memset
	add	x0, sp, #64
	mov	w1, #0
	mov	w2, #12
	bl	_memset
	ldr	w0, [x19, #12]
	mov	x1, x23
	mov	w2, #0
	bl	_ieee80211_get_alt_retry_rate
	cbz	x0, LBB0_16
; %bb.13:
	ldr	w8, [x0, #4]
	str	w8, [sp, #76]
	ldr	x8, [x23, #8]
	ldr	w8, [x8, #12]
	str	w8, [sp, #64]
	ldr	w0, [x19, #12]
	mov	x1, x23
	mov	w2, #1
	bl	_ieee80211_get_alt_retry_rate
	cbz	x0, LBB0_16
; %bb.14:
	ldr	w8, [x0, #4]
	str	w8, [sp, #80]
	ldr	x8, [x23, #8]
	ldr	w8, [x8, #20]
	str	w8, [sp, #68]
	ldr	w0, [x19, #12]
	mov	x1, x23
	mov	w2, #2
	bl	_ieee80211_get_alt_retry_rate
	cbz	x0, LBB0_16
; %bb.15:
	ldr	w8, [x0, #4]
	str	w8, [sp, #84]
	ldr	x8, [x23, #8]
	ldr	w8, [x8, #28]
	str	w8, [sp, #72]
LBB0_16:
	ldp	w2, w4, [sp, #76]
	ldp	w3, w5, [sp, #64]
	ldr	w6, [sp, #84]
	ldr	w7, [sp, #72]
	mov	x0, x19
	mov	x1, x27
	bl	_ath5k_hw_setup_mrr_tx_desc
LBB0_17:
	str	xzr, [x27]
	mov	x22, x21
	ldr	w8, [x22], #16
	str	w8, [x27, #8]
	mov	x0, x20
	bl	_spin_lock_bh
	add	x1, x20, #20
	mov	x0, x22
	bl	_list_add_tail
	ldr	w8, [x20, #16]
	add	w8, w8, #1
	str	w8, [x20, #16]
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_19
; %bb.18:
	ldr	x9, [x21, #8]
	str	x9, [x8]
	b	LBB0_20
LBB0_19:
	ldr	w1, [x20, #4]
	ldr	x2, [x21, #8]
	mov	x0, x19
	bl	_ath5k_hw_set_txdp
LBB0_20:
	str	x27, [x20, #8]
	ldr	w1, [x20, #4]
	mov	x0, x19
	bl	_ath5k_hw_start_tx_dma
	bl	_mmiowb
	mov	x0, x20
	bl	_spin_unlock_bh
	mov	w25, #0
LBB0_21:
	ldr	x8, [sp, #88]
Lloh40:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh41:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh42:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_23
; %bb.22:
	mov	x0, x25
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_23:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_AR5K_TXKEYIX_INVALID,4,2       ; @AR5K_TXKEYIX_INVALID
	.comm	_AR5K_TXDESC_INTREQ,4,2         ; @AR5K_TXDESC_INTREQ
	.comm	_AR5K_TXDESC_CLRDMASK,4,2       ; @AR5K_TXDESC_CLRDMASK
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IEEE80211_TX_CTL_NO_ACK,4,2    ; @IEEE80211_TX_CTL_NO_ACK
	.comm	_AR5K_TXDESC_NOACK,4,2          ; @AR5K_TXDESC_NOACK
	.comm	_IEEE80211_TX_RC_USE_SHORT_PREAMBLE,4,2 ; @IEEE80211_TX_RC_USE_SHORT_PREAMBLE
	.comm	_IEEE80211_TX_RC_USE_RTS_CTS,4,2 ; @IEEE80211_TX_RC_USE_RTS_CTS
	.comm	_AR5K_TXDESC_RTSENA,4,2         ; @AR5K_TXDESC_RTSENA
	.comm	_IEEE80211_TX_RC_USE_CTS_PROTECT,4,2 ; @IEEE80211_TX_RC_USE_CTS_PROTECT
	.comm	_AR5K_TXDESC_CTSENA,4,2         ; @AR5K_TXDESC_CTSENA
	.no_dead_strip	_ath5k_txbuf_setup
.subsections_via_symbols
