	.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
	movq	%r8, -96(%rbp)                  ## 8-byte Spill
	movl	%ecx, -108(%rbp)                ## 4-byte Spill
	movq	%rdx, -168(%rbp)                ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	32(%rsi), %r15
	movq	40(%rsi), %rax
	movq	%rax, -144(%rbp)                ## 8-byte Spill
	movq	%r15, %rdi
	callq	_IEEE80211_SKB_CB
	movq	%rax, %r12
	movq	_AR5K_TXKEYIX_INVALID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	_AR5K_TXDESC_INTREQ@GOTPCREL(%rip), %rax
	movq	_AR5K_TXDESC_CLRDMASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	orl	(%rax), %r13d
	movl	8(%rbx), %edi
	movl	(%r15), %edx
	movl	4(%r15), %esi
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_dma_map_single
	movl	%eax, (%r14)
	movl	8(%rbx), %edi
	movl	%eax, %esi
	callq	_dma_mapping_error
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ENOSPC@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_30
LBB0_2:
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	movq	%r15, -128(%rbp)                ## 8-byte Spill
	movq	%r14, -136(%rbp)                ## 8-byte Spill
	movl	8(%r12), %r13d
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	je	LBB0_3
## %bb.4:
	movq	(%rax), %rbx
	jmp	LBB0_5
LBB0_3:
	xorl	%ebx, %ebx
LBB0_5:
	movq	-136(%rbp), %r14                ## 8-byte Reload
	movq	24(%r14), %r15
	movq	%r15, %rdi
	callq	_ARRAY_SIZE
	movl	%r13d, %edi
	movq	%r14, %r13
	movq	%rbx, %rsi
	movq	-128(%rbp), %r14                ## 8-byte Reload
	movq	%r14, %rdx
	movq	%r15, %rcx
	movl	%eax, %r8d
	callq	_ieee80211_get_tx_rates
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	movl	12(%r15), %edi
	xorl	%ebx, %ebx
	movq	%r12, %rsi
	movq	%r13, %rdx
	xorl	%ecx, %ecx
	callq	_ath5k_get_rate
	testq	%rax, %rax
	je	LBB0_6
## %bb.8:
	movq	_IEEE80211_TX_CTL_NO_ACK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	andl	(%r12), %ebx
	je	LBB0_10
## %bb.9:
	movq	_AR5K_TXDESC_NOACK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_10:
	movq	24(%r13), %rax
	movq	%r13, %rdx
	movl	(%rax), %r13d
	movl	12(%r15), %edi
	movq	%r12, %rsi
	xorl	%ecx, %ecx
	callq	_ath5k_get_rate_hw_value
	movq	%rax, -160(%rbp)                ## 8-byte Spill
	movl	(%r14), %edx
	movq	16(%r12), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	movl	(%rax), %ecx
	addl	8(%rax), %edx
	jmp	LBB0_13
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_11:
	movq	-104(%rbp), %rcx                ## 8-byte Reload
LBB0_13:
	movl	%edx, -96(%rbp)                 ## 4-byte Spill
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	orl	%ebx, %eax
	movq	%rax, %rbx
	movq	_IEEE80211_TX_RC_USE_RTS_CTS@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_14
## %bb.15:
	movq	_AR5K_TXDESC_RTSENA@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	12(%r15), %edi
	movq	%r12, %rsi
	callq	_ieee80211_get_rts_cts_rate
	movq	(%rax), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	12(%r15), %edi
	movl	8(%r12), %esi
	movl	-96(%rbp), %edx                 ## 4-byte Reload
	movq	%r12, %rcx
	callq	_ieee80211_rts_duration
	movl	%eax, %edi
	callq	_le16_to_cpu
	movq	%rax, %rcx
	jmp	LBB0_16
LBB0_14:
	xorl	%eax, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	xorl	%ecx, %ecx
LBB0_16:
	movq	_IEEE80211_TX_RC_USE_CTS_PROTECT@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	movq	%r12, -152(%rbp)                ## 8-byte Spill
	je	LBB0_17
## %bb.18:
	movq	_AR5K_TXDESC_CTSENA@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	movl	12(%r15), %edi
	movq	%r12, %rsi
	callq	_ieee80211_get_rts_cts_rate
	movq	(%rax), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	12(%r15), %edi
	movl	8(%r12), %esi
	movl	-96(%rbp), %edx                 ## 4-byte Reload
	movq	%r12, %rcx
	callq	_ieee80211_ctstoself_duration
	movl	%eax, %edi
	callq	_le16_to_cpu
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movq	%rbx, %r12
	jmp	LBB0_19
LBB0_17:
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	movq	%rbx, %r12
	movq	%rcx, -120(%rbp)                ## 8-byte Spill
LBB0_19:
	movq	(%r15), %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(%r15), %r10d
	movl	28(%r15), %r14d
	addl	%r14d, %r14d
	movq	-136(%rbp), %rbx                ## 8-byte Reload
	movq	24(%rbx), %rcx
	movl	4(%rcx), %r11d
	movq	%r15, %rdi
	movq	-144(%rbp), %rsi                ## 8-byte Reload
	movl	-96(%rbp), %edx                 ## 4-byte Reload
	movl	%r13d, %ecx
	movq	%rbx, %r13
	movl	-108(%rbp), %r8d                ## 4-byte Reload
	movl	%eax, %r9d
	pushq	-120(%rbp)                      ## 8-byte Folded Reload
	pushq	-80(%rbp)                       ## 8-byte Folded Reload
	pushq	%r12
	pushq	%r10
	pushq	-104(%rbp)                      ## 8-byte Folded Reload
	pushq	%r11
	pushq	-160(%rbp)                      ## 8-byte Folded Reload
	pushq	%r14
	movq	-128(%rbp), %r14                ## 8-byte Reload
	callq	*-88(%rbp)                      ## 8-byte Folded Reload
	addq	$64, %rsp
	movl	%eax, %ebx
	testl	%eax, %eax
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	je	LBB0_20
LBB0_7:
	movl	8(%r15), %edi
	movl	(%r13), %esi
	movl	(%r14), %edx
	movl	(%rax), %ecx
	callq	_dma_unmap_single
	jmp	LBB0_30
LBB0_20:
	cmpq	$0, 16(%r15)
	movq	-168(%rbp), %rbx                ## 8-byte Reload
	movq	-144(%rbp), %r14                ## 8-byte Reload
	je	LBB0_26
## %bb.21:
	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(%r15), %edi
	movq	-152(%rbp), %r12                ## 8-byte Reload
	movq	%r12, %rsi
	movq	%r13, %rdx
	xorl	%ecx, %ecx
	callq	_ath5k_get_rate
	testq	%rax, %rax
	je	LBB0_25
## %bb.22:
	movl	12(%r15), %edi
	movq	%r12, %rsi
	movq	%r13, %rdx
	xorl	%ecx, %ecx
	callq	_ath5k_get_rate_hw_value
	movl	%eax, -60(%rbp)
	movq	24(%r13), %rax
	movl	4(%rax), %eax
	movl	%eax, -72(%rbp)
	movl	12(%r15), %edi
	movq	%r12, %rsi
	movq	%r13, %rdx
	movl	$1, %ecx
	callq	_ath5k_get_rate
	testq	%rax, %rax
	je	LBB0_25
## %bb.23:
	movl	12(%r15), %edi
	movq	%r12, %rsi
	movq	%r13, %rdx
	movl	$1, %ecx
	callq	_ath5k_get_rate_hw_value
	movl	%eax, -56(%rbp)
	movq	24(%r13), %rax
	movl	12(%rax), %eax
	movl	%eax, -68(%rbp)
	movl	12(%r15), %edi
	movq	%r12, %rsi
	movq	%r13, %rdx
	movl	$2, %ecx
	callq	_ath5k_get_rate
	testq	%rax, %rax
	je	LBB0_25
## %bb.24:
	movl	12(%r15), %edi
	movq	%r12, %rsi
	movq	%r13, %rdx
	movl	$2, %ecx
	callq	_ath5k_get_rate_hw_value
	movl	%eax, -52(%rbp)
	movq	24(%r13), %rax
	movl	20(%rax), %eax
	movl	%eax, -64(%rbp)
LBB0_25:
	movl	-60(%rbp), %edx
	movl	-56(%rbp), %r8d
	movl	-72(%rbp), %ecx
	movl	-68(%rbp), %r9d
	movl	-52(%rbp), %r10d
	movl	-64(%rbp), %eax
	movq	%r15, %rdi
	movq	%r14, %rsi
	pushq	%rax
	pushq	%r10
	callq	_ath5k_hw_setup_mrr_tx_desc
	addq	$16, %rsp
LBB0_26:
	movq	$0, (%r14)
	movl	(%r13), %eax
	movl	%eax, 8(%r14)
	movq	%rbx, %rdi
	callq	_spin_lock_bh
	leaq	16(%r13), %rdi
	leaq	20(%rbx), %rsi
	callq	_list_add_tail
	incl	16(%rbx)
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_27
## %bb.28:
	movq	8(%r13), %rcx
	movq	%rcx, (%rax)
	jmp	LBB0_29
LBB0_27:
	movl	4(%rbx), %esi
	movq	8(%r13), %rdx
	movq	%r15, %rdi
	callq	_ath5k_hw_set_txdp
LBB0_29:
	movq	%r14, 8(%rbx)
	movl	4(%rbx), %esi
	movq	%r15, %rdi
	callq	_ath5k_hw_start_tx_dma
	movq	%rbx, %rdi
	callq	_spin_unlock_bh
	xorl	%ebx, %ebx
LBB0_30:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_32
## %bb.31:
	movl	%ebx, %eax
	addq	$136, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_32:
	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	_ENOSPC,4,2                     ## @ENOSPC
	.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_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, #224
	.cfi_def_cfa_offset 224
	stp	x28, x27, [sp, #128]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #144]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #160]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #176]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #192]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #208]            ; 16-byte Folded Spill
	add	x29, sp, #208
	.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	x26, x4
	str	w3, [sp, #92]                   ; 4-byte Folded Spill
	mov	x23, x2
	mov	x24, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldp	x28, x27, [x1, #32]
	mov	x0, x28
	bl	_IEEE80211_SKB_CB
	mov	x20, x0
Lloh3:
	adrp	x8, _AR5K_TXKEYIX_INVALID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AR5K_TXKEYIX_INVALID@GOTPAGEOFF]
Lloh5:
	ldr	w19, [x8]
Lloh6:
	adrp	x8, _AR5K_TXDESC_INTREQ@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AR5K_TXDESC_INTREQ@GOTPAGEOFF]
Lloh8:
	ldr	w25, [x8]
Lloh9:
	adrp	x8, _AR5K_TXDESC_CLRDMASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AR5K_TXDESC_CLRDMASK@GOTPAGEOFF]
Lloh11:
	ldr	w21, [x8]
	ldr	w0, [x22, #8]
	ldp	w2, w1, [x28]
Lloh12:
	adrp	x8, _DMA_TO_DEVICE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
	bl	_dma_map_single
	mov	x1, x0
	str	w0, [x24]
	ldr	w0, [x22, #8]
	bl	_dma_mapping_error
	cbz	x0, LBB0_2
; %bb.1:
Lloh15:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w25, w8
	b	LBB0_26
LBB0_2:
	mov	x8, x27
	stp	x8, x28, [sp, #56]              ; 16-byte Folded Spill
	stp	w21, w25, [sp, #76]             ; 8-byte Folded Spill
	str	w19, [sp, #88]                  ; 4-byte Folded Spill
	ldr	w27, [x20, #8]
	cbz	x26, LBB0_4
; %bb.3:
	ldr	x26, [x26]
LBB0_4:
	mov	x19, x22
	mov	x21, x24
	ldr	x28, [x24, #24]
	mov	x0, x28
	bl	_ARRAY_SIZE
	mov	x4, x0
	mov	x0, x27
	mov	x1, x26
	ldr	x24, [sp, #64]                  ; 8-byte Folded Reload
	mov	x2, x24
	mov	x3, x28
	bl	_ieee80211_get_tx_rates
	ldr	w0, [x22, #12]
	mov	x1, x20
	mov	x2, x21
	mov	w3, #0
	bl	_ath5k_get_rate
	ldp	w9, w8, [sp, #76]               ; 8-byte Folded Reload
	cbz	x0, LBB0_7
; %bb.5:
	orr	w22, w9, w8
	ldr	w8, [x20]
Lloh18:
	adrp	x9, _IEEE80211_TX_CTL_NO_ACK@GOTPAGE
Lloh19:
	ldr	x9, [x9, _IEEE80211_TX_CTL_NO_ACK@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
Lloh21:
	adrp	x10, _AR5K_TXDESC_NOACK@GOTPAGE
Lloh22:
	ldr	x10, [x10, _AR5K_TXDESC_NOACK@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
	tst	w9, w8
	csel	w25, wzr, w10, eq
	ldr	x8, [x21, #24]
	ldr	w26, [x8]
	ldr	w0, [x19, #12]
	mov	x1, x20
	mov	x2, x21
	mov	w3, #0
	bl	_ath5k_get_rate_hw_value
	str	x0, [sp, #80]                   ; 8-byte Folded Spill
	ldr	w27, [x24]
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_8
; %bb.6:
	ldr	w9, [x8]
	ldr	w8, [x8, #8]
	add	w27, w27, w8
	b	LBB0_9
LBB0_7:
Lloh24:
	adrp	x8, _EINVAL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	neg	w25, w8
	b	LBB0_15
LBB0_8:
	ldr	w9, [sp, #88]                   ; 4-byte Folded Reload
LBB0_9:
	str	w9, [sp, #88]                   ; 4-byte Folded Spill
	orr	w22, w22, w25
Lloh27:
	adrp	x8, _IEEE80211_TX_RC_USE_RTS_CTS@GOTPAGE
Lloh28:
	ldr	x8, [x8, _IEEE80211_TX_RC_USE_RTS_CTS@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	tst	w8, w26
	b.eq	LBB0_11
; %bb.10:
Lloh30:
	adrp	x8, _AR5K_TXDESC_RTSENA@GOTPAGE
Lloh31:
	ldr	x8, [x8, _AR5K_TXDESC_RTSENA@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	orr	w22, w8, w22
	ldr	w0, [x19, #12]
	mov	x1, x20
	bl	_ieee80211_get_rts_cts_rate
	ldr	x25, [x0]
	ldr	w0, [x19, #12]
	ldr	w1, [x20, #8]
	mov	x2, x27
	mov	x3, x20
	bl	_ieee80211_rts_duration
	bl	_le16_to_cpu
	mov	x28, x0
	b	LBB0_12
LBB0_11:
	mov	x25, #0
	mov	x28, #0
LBB0_12:
Lloh33:
	adrp	x8, _IEEE80211_TX_RC_USE_CTS_PROTECT@GOTPAGE
Lloh34:
	ldr	x8, [x8, _IEEE80211_TX_RC_USE_CTS_PROTECT@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	tst	w8, w26
	stp	x20, x23, [sp, #40]             ; 16-byte Folded Spill
	b.eq	LBB0_14
; %bb.13:
Lloh36:
	adrp	x8, _AR5K_TXDESC_CTSENA@GOTPAGE
Lloh37:
	ldr	x8, [x8, _AR5K_TXDESC_CTSENA@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	orr	w22, w8, w22
	ldr	w0, [x19, #12]
	mov	x1, x20
	bl	_ieee80211_get_rts_cts_rate
	ldr	x25, [x0]
	ldr	w0, [x19, #12]
	ldr	w1, [x20, #8]
	mov	x2, x27
	mov	x3, x20
	bl	_ieee80211_ctstoself_duration
	bl	_le16_to_cpu
	mov	x28, x0
LBB0_14:
	ldr	x20, [x19]
	mov	x0, x24
	bl	_ieee80211_get_hdrlen_from_skb
	mov	x26, x0
	mov	x0, x24
	bl	_get_hw_packet_type
	mov	x5, x0
	ldp	w9, w8, [x19, #24]
	lsl	w6, w8, #1
	ldr	x8, [x21, #24]
	ldr	w8, [x8, #4]
	stp	x25, x28, [sp, #16]
	stp	w9, w22, [sp, #8]
	ldp	w9, w4, [sp, #88]               ; 8-byte Folded Reload
	stp	w8, w9, [sp]
	mov	x0, x19
	ldr	x22, [sp, #56]                  ; 8-byte Folded Reload
	mov	x1, x22
	mov	x2, x27
	mov	x3, x26
	ldr	x7, [sp, #80]                   ; 8-byte Folded Reload
	blr	x20
	mov	x25, x0
	cbz	w0, LBB0_16
LBB0_15:
	ldr	w0, [x19, #8]
	ldr	w1, [x21]
	ldr	w2, [x24]
Lloh39:
	adrp	x8, _DMA_TO_DEVICE@GOTPAGE
Lloh40:
	ldr	x8, [x8, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh41:
	ldr	w3, [x8]
	bl	_dma_unmap_single
	b	LBB0_26
LBB0_16:
	ldr	x8, [x19, #16]
	ldr	x20, [sp, #48]                  ; 8-byte Folded Reload
	cbz	x8, LBB0_22
; %bb.17:
	sub	x0, x29, #100
	mov	w1, #0
	mov	w2, #12
	bl	_memset
	add	x0, sp, #96
	mov	w1, #0
	mov	w2, #12
	bl	_memset
	ldr	w0, [x19, #12]
	ldr	x23, [sp, #40]                  ; 8-byte Folded Reload
	mov	x1, x23
	mov	x2, x21
	mov	w3, #0
	bl	_ath5k_get_rate
	cbz	x0, LBB0_21
; %bb.18:
	ldr	w0, [x19, #12]
	mov	x1, x23
	mov	x2, x21
	mov	w3, #0
	bl	_ath5k_get_rate_hw_value
	stur	w0, [x29, #-100]
	ldr	x8, [x21, #24]
	ldr	w8, [x8, #4]
	str	w8, [sp, #96]
	ldr	w0, [x19, #12]
	mov	x1, x23
	mov	x2, x21
	mov	w3, #1
	bl	_ath5k_get_rate
	cbz	x0, LBB0_21
; %bb.19:
	ldr	w0, [x19, #12]
	mov	x1, x23
	mov	x2, x21
	mov	w3, #1
	bl	_ath5k_get_rate_hw_value
	stur	w0, [x29, #-96]
	ldr	x8, [x21, #24]
	ldr	w8, [x8, #12]
	str	w8, [sp, #100]
	ldr	w0, [x19, #12]
	mov	x1, x23
	mov	x2, x21
	mov	w3, #2
	bl	_ath5k_get_rate
	cbz	x0, LBB0_21
; %bb.20:
	ldr	w0, [x19, #12]
	mov	x1, x23
	mov	x2, x21
	mov	w3, #2
	bl	_ath5k_get_rate_hw_value
	stur	w0, [x29, #-92]
	ldr	x8, [x21, #24]
	ldr	w8, [x8, #20]
	str	w8, [sp, #104]
LBB0_21:
	ldp	w2, w4, [x29, #-100]
	ldp	w3, w5, [sp, #96]
	ldur	w6, [x29, #-92]
	ldr	w7, [sp, #104]
	mov	x0, x19
	mov	x1, x22
	bl	_ath5k_hw_setup_mrr_tx_desc
LBB0_22:
	str	xzr, [x22]
	mov	x23, x21
	ldr	w8, [x23], #16
	str	w8, [x22, #8]
	mov	x0, x20
	bl	_spin_lock_bh
	add	x1, x20, #20
	mov	x0, x23
	bl	_list_add_tail
	ldr	w8, [x20, #16]
	add	w8, w8, #1
	str	w8, [x20, #16]
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_24
; %bb.23:
	ldr	x9, [x21, #8]
	str	x9, [x8]
	b	LBB0_25
LBB0_24:
	ldr	w1, [x20, #4]
	ldr	x2, [x21, #8]
	mov	x0, x19
	bl	_ath5k_hw_set_txdp
LBB0_25:
	str	x22, [x20, #8]
	ldr	w1, [x20, #4]
	mov	x0, x19
	bl	_ath5k_hw_start_tx_dma
	mov	x0, x20
	bl	_spin_unlock_bh
	mov	w25, #0
LBB0_26:
	ldur	x8, [x29, #-88]
Lloh42:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh43:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh44:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_28
; %bb.27:
	mov	x0, x25
	ldp	x29, x30, [sp, #208]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #192]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #176]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #160]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #144]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #128]            ; 16-byte Folded Reload
	add	sp, sp, #224
	ret
LBB0_28:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.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	_ENOSPC,4,2                     ; @ENOSPC
	.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_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
