	.file	"extr_ar9003_mac.c_ar9003_set_txdesc.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ar9003_set_txdesc, @function
ar9003_set_txdesc:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdx
	call	AR_SREV_9462@PLT
	test	rax, rax
	je	.L2
.L4:
	mov	edx, 24
.L3:
	mov	ecx, DWORD PTR AR_DescId_S[rip]
	mov	eax, DWORD PTR ATHEROS_VENDOR_ID[rip]
	mov	ebp, DWORD PTR [rbx]
	mov	rdi, QWORD PTR 184[r12]
	sal	eax, cl
	mov	ecx, DWORD PTR AR_TxRxDesc_S[rip]
	bts	eax, ecx
	mov	ecx, DWORD PTR AR_CtrlStat_S[rip]
	bts	eax, ecx
	mov	ecx, DWORD PTR AR_TxQcuNum_S[rip]
	sal	ebp, cl
	or	ebp, eax
	or	ebp, edx
	mov	esi, ebp
	call	WRITE_ONCE@PLT
	mov	esi, DWORD PTR 4[rbx]
	mov	rdi, QWORD PTR 176[r12]
	add	ebp, esi
	call	WRITE_ONCE@PLT
	mov	rax, QWORD PTR 8[rbx]
	mov	rdi, QWORD PTR 168[r12]
	mov	esi, DWORD PTR [rax]
	add	ebp, esi
	call	WRITE_ONCE@PLT
	mov	rax, QWORD PTR 8[rbx]
	mov	rdi, QWORD PTR 160[r12]
	mov	esi, DWORD PTR 4[rax]
	add	ebp, esi
	call	WRITE_ONCE@PLT
	mov	rax, QWORD PTR 8[rbx]
	mov	rdi, QWORD PTR 152[r12]
	mov	esi, DWORD PTR 8[rax]
	add	ebp, esi
	call	WRITE_ONCE@PLT
	mov	rax, QWORD PTR 8[rbx]
	mov	rdi, QWORD PTR 144[r12]
	mov	esi, DWORD PTR 12[rax]
	add	ebp, esi
	call	WRITE_ONCE@PLT
	mov	rax, QWORD PTR 16[rbx]
	mov	ecx, DWORD PTR AR_BufLen_S[rip]
	mov	rdi, QWORD PTR 136[r12]
	mov	esi, DWORD PTR [rax]
	sal	esi, cl
	and	esi, DWORD PTR AR_BufLen[rip]
	add	ebp, esi
	call	WRITE_ONCE@PLT
	mov	rax, QWORD PTR 16[rbx]
	mov	ecx, DWORD PTR AR_BufLen_S[rip]
	mov	rdi, QWORD PTR 128[r12]
	mov	esi, DWORD PTR 4[rax]
	sal	esi, cl
	and	esi, DWORD PTR AR_BufLen[rip]
	add	ebp, esi
	call	WRITE_ONCE@PLT
	mov	rax, QWORD PTR 16[rbx]
	mov	ecx, DWORD PTR AR_BufLen_S[rip]
	mov	rdi, QWORD PTR 120[r12]
	mov	esi, DWORD PTR 8[rax]
	sal	esi, cl
	and	esi, DWORD PTR AR_BufLen[rip]
	add	ebp, esi
	call	WRITE_ONCE@PLT
	mov	rax, QWORD PTR 16[rbx]
	mov	ecx, DWORD PTR AR_BufLen_S[rip]
	mov	rdi, QWORD PTR 112[r12]
	mov	esi, DWORD PTR 12[rax]
	sal	esi, cl
	and	esi, DWORD PTR AR_BufLen[rip]
	add	ebp, esi
	call	WRITE_ONCE@PLT
	mov	esi, ebp
	mov	rdi, QWORD PTR 104[r12]
	sar	esi, 16
	add	esi, ebp
	movzx	esi, si
	call	WRITE_ONCE@PLT
	cmp	QWORD PTR 88[rbx], 0
	jne	.L5
	cmp	QWORD PTR 80[rbx], 0
	je	.L6
.L5:
	mov	edi, DWORD PTR 76[rbx]
	xor	esi, esi
	call	set11nTries@PLT
	mov	edi, DWORD PTR 76[rbx]
	mov	esi, 1
	mov	ebp, eax
	call	set11nTries@PLT
	mov	edi, DWORD PTR 76[rbx]
	mov	esi, 2
	or	ebp, eax
	call	set11nTries@PLT
	mov	edi, DWORD PTR 76[rbx]
	mov	esi, 3
	or	ebp, eax
	call	set11nTries@PLT
	or	ebp, eax
	cmp	QWORD PTR 96[rbx], 0
	jne	.L61
.L7:
	mov	esi, DWORD PTR AR_BurstDur[rip]
	xor	edi, edi
	call	SM@PLT
	mov	rdi, QWORD PTR 96[r12]
	or	eax, ebp
	mov	esi, eax
	call	WRITE_ONCE@PLT
	mov	edi, DWORD PTR 76[rbx]
	xor	esi, esi
	call	set11nRate@PLT
	mov	edi, DWORD PTR 76[rbx]
	mov	esi, 1
	mov	ebp, eax
	call	set11nRate@PLT
	mov	edi, DWORD PTR 76[rbx]
	mov	esi, 2
	or	ebp, eax
	call	set11nRate@PLT
	mov	edi, DWORD PTR 76[rbx]
	mov	esi, 3
	or	ebp, eax
	call	set11nRate@PLT
	mov	esi, ebp
	mov	rdi, QWORD PTR 88[r12]
	or	esi, eax
	call	WRITE_ONCE@PLT
.L8:
	mov	QWORD PTR 16[r12], 0
	mov	edi, DWORD PTR 24[rbx]
	mov	QWORD PTR 8[r12], 0
	mov	esi, DWORD PTR AR_EncrType[rip]
	mov	QWORD PTR [r12], 0
	mov	QWORD PTR 80[r12], 0
	call	SM@PLT
	cmp	QWORD PTR 88[rbx], 0
	mov	ebp, eax
	je	.L62
	mov	esi, DWORD PTR 28[rbx]
	mov	rax, QWORD PTR 40[rbx]
	and	esi, DWORD PTR AR_FrameLen[rip]
	mov	r13d, esi
	mov	esi, DWORD PTR 32[rbx]
	and	esi, DWORD PTR ATH9K_TXDESC_VMF[rip]
	mov	r14d, esi
	mov	edi, DWORD PTR [rax]
	mov	esi, DWORD PTR AR_XmitPower0[rip]
	cmovne	r14d, DWORD PTR AR_VirtMoreFrag[rip]
	call	SM@PLT
	or	eax, r14d
	mov	esi, eax
	mov	eax, DWORD PTR 32[rbx]
	or	esi, r13d
	test	DWORD PTR ATH9K_TXDESC_VEOL[rip], eax
	jne	.L63
.L12:
	mov	rdx, QWORD PTR ATH9K_TXKEYIX_INVALID[rip]
	cmp	QWORD PTR 48[rbx], rdx
	je	.L13
	or	esi, DWORD PTR AR_DestIdxValid[rip]
.L13:
	test	DWORD PTR ATH9K_TXDESC_LOWRXCHAIN[rip], eax
	je	.L14
	or	esi, DWORD PTR AR_LowRxChain[rip]
.L14:
	test	DWORD PTR ATH9K_TXDESC_CLRDMASK[rip], eax
	je	.L15
	or	esi, DWORD PTR AR_ClrDestMask[rip]
.L15:
	test	DWORD PTR ATH9K_TXDESC_RTSENA[rip], eax
	je	.L64
	or	esi, DWORD PTR AR_RTSEnable[rip]
.L17:
	mov	rdi, QWORD PTR 72[r12]
	xor	r13d, r13d
	call	WRITE_ONCE@PLT
	mov	rdi, QWORD PTR 48[rbx]
	cmp	rdi, QWORD PTR ATH9K_TXKEYIX_INVALID[rip]
	je	.L18
	mov	esi, DWORD PTR AR_DestIdx[rip]
	call	SM@PLT
	mov	r13d, eax
.L18:
	mov	edi, DWORD PTR 56[rbx]
	mov	esi, DWORD PTR AR_FrameType[rip]
	call	SM@PLT
	mov	edi, DWORD PTR 32[rbx]
	or	r13d, eax
	test	DWORD PTR ATH9K_TXDESC_NOACK[rip], edi
	je	.L19
	or	r13d, DWORD PTR AR_NoAck[rip]
.L19:
	test	DWORD PTR ATH9K_TXDESC_EXT_ONLY[rip], edi
	je	.L20
	or	r13d, DWORD PTR AR_ExtOnly[rip]
.L20:
	test	DWORD PTR ATH9K_TXDESC_EXT_AND_CTL[rip], edi
	je	.L21
	or	r13d, DWORD PTR AR_ExtAndCtl[rip]
.L21:
	test	DWORD PTR ATH9K_TXDESC_LDPC[rip], edi
	je	.L22
	or	ebp, DWORD PTR AR_LDPC[rip]
.L22:
	mov	eax, DWORD PTR 60[rbx]
	cmp	eax, 130
	je	.L23
	cmp	eax, 131
	je	.L24
	cmp	eax, 129
	je	.L25
.L26:
	mov	ecx, DWORD PTR ATH9K_TXDESC_PAPRD_S[rip]
	mov	esi, DWORD PTR AR_PAPRDChainMask[rip]
	and	edi, DWORD PTR ATH9K_TXDESC_PAPRD[rip]
	sar	edi, cl
	call	SM@PLT
	mov	rdi, QWORD PTR 64[r12]
	mov	esi, r13d
	or	esi, eax
	call	WRITE_ONCE@PLT
	mov	rdi, QWORD PTR 56[r12]
	mov	esi, ebp
	call	WRITE_ONCE@PLT
	mov	edi, DWORD PTR 76[rbx]
	xor	esi, esi
	call	set11nPktDurRTSCTS@PLT
	mov	edi, DWORD PTR 76[rbx]
	mov	esi, 1
	mov	ebp, eax
	call	set11nPktDurRTSCTS@PLT
	mov	rdi, QWORD PTR 48[r12]
	mov	esi, ebp
	or	esi, eax
	call	WRITE_ONCE@PLT
	mov	edi, DWORD PTR 76[rbx]
	mov	esi, 2
	call	set11nPktDurRTSCTS@PLT
	mov	edi, DWORD PTR 76[rbx]
	mov	esi, 3
	mov	ebp, eax
	call	set11nPktDurRTSCTS@PLT
	mov	rdi, QWORD PTR 40[r12]
	mov	esi, ebp
	or	esi, eax
	call	WRITE_ONCE@PLT
	mov	edi, DWORD PTR 76[rbx]
	xor	esi, esi
	call	set11nRateFlags@PLT
	mov	edi, DWORD PTR 76[rbx]
	mov	esi, 1
	mov	ebp, eax
	call	set11nRateFlags@PLT
	mov	edi, DWORD PTR 76[rbx]
	mov	esi, 2
	or	ebp, eax
	call	set11nRateFlags@PLT
	mov	edi, DWORD PTR 76[rbx]
	mov	esi, 3
	or	ebp, eax
	call	set11nRateFlags@PLT
	mov	edi, DWORD PTR 72[rbx]
	mov	esi, DWORD PTR AR_RTSCTSRate[rip]
	or	ebp, eax
	call	SM@PLT
	mov	rdi, QWORD PTR 32[r12]
	mov	esi, ebp
	or	esi, eax
	call	WRITE_ONCE@PLT
	mov	rdi, QWORD PTR 24[r12]
	mov	esi, DWORD PTR AR_Not_Sounding[rip]
	call	WRITE_ONCE@PLT
	mov	rax, QWORD PTR 40[rbx]
	mov	esi, DWORD PTR AR_XmitPower1[rip]
	mov	edi, DWORD PTR 4[rax]
	call	SM@PLT
	mov	rdi, QWORD PTR 16[r12]
	mov	esi, eax
	call	WRITE_ONCE@PLT
	mov	rax, QWORD PTR 40[rbx]
	mov	esi, DWORD PTR AR_XmitPower2[rip]
	mov	edi, DWORD PTR 8[rax]
	call	SM@PLT
	mov	rdi, QWORD PTR 8[r12]
	mov	esi, eax
	call	WRITE_ONCE@PLT
	mov	rax, QWORD PTR 40[rbx]
	mov	esi, DWORD PTR AR_XmitPower3[rip]
	mov	edi, DWORD PTR 12[rax]
	call	SM@PLT
	mov	rdi, QWORD PTR [r12]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	esi, eax
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	WRITE_ONCE@PLT
	.p2align 4,,10
	.p2align 3
.L64:
	.cfi_restore_state
	test	DWORD PTR ATH9K_TXDESC_CTSENA[rip], eax
	je	.L17
	or	esi, DWORD PTR AR_CTSEnable[rip]
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L63:
	or	esi, DWORD PTR AR_VEOL[rip]
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L61:
	or	ebp, DWORD PTR AR_DurUpdateEna[rip]
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdi, QWORD PTR 96[r12]
	xor	esi, esi
	call	WRITE_ONCE@PLT
	mov	rdi, QWORD PTR 88[r12]
	xor	esi, esi
	call	WRITE_ONCE@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L24:
	mov	edi, DWORD PTR 64[rbx]
	mov	esi, DWORD PTR AR_AggrLen[rip]
	call	SM@PLT
	or	ebp, eax
.L25:
	mov	edi, DWORD PTR 68[rbx]
	mov	esi, DWORD PTR AR_PadDelim[rip]
	mov	eax, DWORD PTR AR_IsAggr[rip]
	or	eax, DWORD PTR AR_MoreAggr[rip]
	or	r13d, eax
	call	SM@PLT
	mov	edi, DWORD PTR 32[rbx]
	or	ebp, eax
	jmp	.L26
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rdi, rbp
	call	AR_SREV_9565@PLT
	test	rax, rax
	jne	.L4
	mov	edx, 23
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L62:
	mov	rdi, QWORD PTR 72[r12]
	xor	esi, esi
	call	WRITE_ONCE@PLT
	xor	esi, esi
	cmp	QWORD PTR 80[rbx], 0
	jne	.L10
	mov	esi, DWORD PTR AR_TxMore[rip]
.L10:
	mov	rdi, QWORD PTR 64[r12]
	call	WRITE_ONCE@PLT
	mov	rdi, QWORD PTR 48[r12]
	xor	esi, esi
	call	WRITE_ONCE@PLT
	mov	rdi, QWORD PTR 40[r12]
	xor	esi, esi
	call	WRITE_ONCE@PLT
	mov	rdi, QWORD PTR 56[r12]
	mov	esi, ebp
	call	WRITE_ONCE@PLT
	mov	rdi, QWORD PTR 32[r12]
	xor	esi, esi
	call	WRITE_ONCE@PLT
	mov	rdi, QWORD PTR 24[r12]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	esi, esi
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	WRITE_ONCE@PLT
	.p2align 4,,10
	.p2align 3
.L23:
	.cfi_restore_state
	or	r13d, DWORD PTR AR_IsAggr[rip]
	jmp	.L26
	.cfi_endproc
.LFE0:
	.size	ar9003_set_txdesc, .-ar9003_set_txdesc
	.comm	ATHEROS_VENDOR_ID,4,4
	.comm	ATH9K_TXKEYIX_INVALID,8,8
	.comm	ATH9K_TXDESC_VMF,4,4
	.comm	ATH9K_TXDESC_VEOL,4,4
	.comm	ATH9K_TXDESC_RTSENA,4,4
	.comm	ATH9K_TXDESC_PAPRD_S,4,4
	.comm	ATH9K_TXDESC_PAPRD,4,4
	.comm	ATH9K_TXDESC_NOACK,4,4
	.comm	ATH9K_TXDESC_LOWRXCHAIN,4,4
	.comm	ATH9K_TXDESC_LDPC,4,4
	.comm	ATH9K_TXDESC_EXT_ONLY,4,4
	.comm	ATH9K_TXDESC_EXT_AND_CTL,4,4
	.comm	ATH9K_TXDESC_CTSENA,4,4
	.comm	ATH9K_TXDESC_CLRDMASK,4,4
	.comm	AR_XmitPower3,4,4
	.comm	AR_XmitPower2,4,4
	.comm	AR_XmitPower1,4,4
	.comm	AR_XmitPower0,4,4
	.comm	AR_VirtMoreFrag,4,4
	.comm	AR_VEOL,4,4
	.comm	AR_TxRxDesc_S,4,4
	.comm	AR_TxQcuNum_S,4,4
	.comm	AR_TxMore,4,4
	.comm	AR_RTSEnable,4,4
	.comm	AR_RTSCTSRate,4,4
	.comm	AR_PadDelim,4,4
	.comm	AR_PAPRDChainMask,4,4
	.comm	AR_Not_Sounding,4,4
	.comm	AR_NoAck,4,4
	.comm	AR_MoreAggr,4,4
	.comm	AR_LowRxChain,4,4
	.comm	AR_LDPC,4,4
	.comm	AR_IsAggr,4,4
	.comm	AR_FrameType,4,4
	.comm	AR_FrameLen,4,4
	.comm	AR_ExtOnly,4,4
	.comm	AR_ExtAndCtl,4,4
	.comm	AR_EncrType,4,4
	.comm	AR_DurUpdateEna,4,4
	.comm	AR_DestIdxValid,4,4
	.comm	AR_DestIdx,4,4
	.comm	AR_DescId_S,4,4
	.comm	AR_CtrlStat_S,4,4
	.comm	AR_ClrDestMask,4,4
	.comm	AR_CTSEnable,4,4
	.comm	AR_BurstDur,4,4
	.comm	AR_BufLen_S,4,4
	.comm	AR_BufLen,4,4
	.comm	AR_AggrLen,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_ar9003_mac.c_ar9003_set_txdesc.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ar9003_set_txdesc, %function
ar9003_set_txdesc:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, r1
	mov	r4, r2
	mov	r6, r0
	bl	AR_SREV_9462
	cmp	r0, #0
	beq	.L2
.L4:
	mov	r1, #24
.L3:
	mov	r2, #1
	ldr	r3, .L66
	ldr	r0, .L66+4
	ldr	lr, .L66+8
	ldr	r3, [r3]
	ldr	ip, .L66+12
	ldr	lr, [lr]
	ldr	r6, [r0]
	ldr	r0, .L66+16
	ldr	ip, [ip]
	lsl	r3, r2, r3
	orr	r6, r3, lr, lsl r6
	ldr	r3, [r0]
	ldr	r0, [r4]
	orr	r6, r6, r2, lsl ip
	orr	r6, r6, r0, lsl r3
	orr	r6, r6, r1
	mov	r1, r6
	ldr	r0, [r5, #92]
	bl	WRITE_ONCE
	ldr	r1, [r4, #4]
	ldr	r0, [r5, #88]
	add	r6, r1, r6
	bl	WRITE_ONCE
	ldr	r3, [r4, #8]
	ldr	r0, [r5, #84]
	ldr	r1, [r3]
	ldr	r7, .L66+20
	add	r6, r1, r6
	bl	WRITE_ONCE
	ldr	r3, [r4, #8]
	ldr	r0, [r5, #80]
	ldr	r1, [r3, #4]
	ldr	r8, .L66+24
	add	r6, r1, r6
	bl	WRITE_ONCE
	ldr	r3, [r4, #8]
	ldr	r0, [r5, #76]
	ldr	r1, [r3, #8]
	add	r6, r1, r6
	bl	WRITE_ONCE
	ldr	r3, [r4, #8]
	ldr	r0, [r5, #72]
	ldr	r1, [r3, #12]
	add	r6, r1, r6
	bl	WRITE_ONCE
	ldr	r2, [r4, #12]
	ldr	r3, [r8]
	ldr	r2, [r2]
	ldr	r1, [r7]
	ldr	r0, [r5, #68]
	and	r1, r1, r2, lsl r3
	add	r6, r6, r1
	bl	WRITE_ONCE
	ldr	r2, [r4, #12]
	ldr	r3, [r8]
	ldr	r1, [r7]
	ldr	r2, [r2, #4]
	ldr	r0, [r5, #64]
	and	r1, r1, r2, lsl r3
	add	r6, r6, r1
	bl	WRITE_ONCE
	ldr	r2, [r4, #12]
	ldr	r3, [r8]
	ldr	r1, [r7]
	ldr	r2, [r2, #8]
	ldr	r0, [r5, #60]
	and	r1, r1, r2, lsl r3
	add	r6, r6, r1
	bl	WRITE_ONCE
	ldr	r2, [r4, #12]
	ldr	r3, [r8]
	ldr	r1, [r7]
	ldr	r2, [r2, #12]
	ldr	r0, [r5, #56]
	and	r1, r1, r2, lsl r3
	add	r6, r6, r1
	add	r6, r6, r6, asr #16
	bl	WRITE_ONCE
	lsl	r1, r6, #16
	ldr	r0, [r5, #52]
	lsr	r1, r1, #16
	bl	WRITE_ONCE
	ldr	r3, [r4, #64]
	cmp	r3, #0
	ldrne	r7, [r5, #48]
	bne	.L6
	ldr	r6, [r4, #60]
	ldr	r7, [r5, #48]
	cmp	r6, #0
	beq	.L7
.L6:
	mov	r1, #0
	ldr	r0, [r4, #56]
	bl	set11nTries
	mov	r1, #1
	mov	r6, r0
	ldr	r0, [r4, #56]
	bl	set11nTries
	mov	r3, r0
	mov	r1, #2
	ldr	r0, [r4, #56]
	orr	r6, r6, r3
	bl	set11nTries
	mov	r3, r0
	mov	r1, #3
	ldr	r0, [r4, #56]
	orr	r6, r6, r3
	bl	set11nTries
	ldr	r3, [r4, #68]
	orr	r6, r6, r0
	cmp	r3, #0
	ldrne	r3, .L66+28
	mov	r0, #0
	ldrne	r3, [r3]
	orrne	r6, r6, r3
	ldr	r3, .L66+32
	ldr	r1, [r3]
	bl	SM
	mov	r1, r0
	mov	r0, r7
	orr	r1, r1, r6
	bl	WRITE_ONCE
	mov	r1, #0
	ldr	r0, [r4, #56]
	ldr	r7, [r5, #44]
	bl	set11nRate
	mov	r1, #1
	mov	r6, r0
	ldr	r0, [r4, #56]
	bl	set11nRate
	mov	r3, r0
	mov	r1, #2
	ldr	r0, [r4, #56]
	orr	r6, r6, r3
	bl	set11nRate
	mov	r3, r0
	mov	r1, #3
	ldr	r0, [r4, #56]
	orr	r6, r6, r3
	bl	set11nRate
	mov	r1, r0
	mov	r0, r7
	orr	r1, r6, r1
	bl	WRITE_ONCE
.L9:
	mov	r3, #0
	ldr	r2, .L66+36
	ldr	r0, [r4, #16]
	ldr	r1, [r2]
	str	r3, [r5, #8]
	str	r3, [r5, #4]
	str	r3, [r5]
	str	r3, [r5, #40]
	bl	SM
	ldr	r7, [r4, #64]
	mov	r6, r0
	cmp	r7, #0
	beq	.L64
	ldr	r3, .L66+40
	ldr	r1, [r4, #24]
	ldr	r3, [r3]
	ldr	r2, .L66+44
	ands	r7, r1, r3
	ldrne	r3, .L66+48
	ldr	r2, [r2]
	ldr	r8, [r4, #20]
	ldrne	r7, [r3]
	and	r8, r8, r2
	ldr	r3, [r4, #28]
	ldr	r2, .L66+52
	ldr	r0, [r3]
	ldr	r1, [r2]
	ldr	r9, [r5, #36]
	bl	SM
	ldr	r2, .L66+56
	ldr	r3, [r4, #24]
	ldr	r2, [r2]
	orr	r1, r0, r7
	tst	r3, r2
	ldrne	r2, .L66+60
	ldr	r7, .L66+64
	ldrne	r2, [r2]
	orr	r1, r1, r8
	orrne	r1, r1, r2
	ldr	r0, [r4, #32]
	ldr	r2, [r7]
	cmp	r0, r2
	ldrne	r2, .L66+68
	ldrne	r2, [r2]
	orrne	r1, r1, r2
	ldr	r2, .L66+72
	ldr	r2, [r2]
	tst	r3, r2
	ldrne	r2, .L66+76
	ldrne	r2, [r2]
	orrne	r1, r1, r2
	ldr	r2, .L66+80
	ldr	r2, [r2]
	tst	r3, r2
	ldrne	r2, .L66+84
	ldrne	r2, [r2]
	orrne	r1, r1, r2
	ldr	r2, .L66+88
	ldr	r2, [r2]
	tst	r3, r2
	beq	.L65
	ldr	r3, .L66+92
	ldr	r3, [r3]
	orr	r1, r1, r3
.L18:
	mov	r0, r9
	bl	WRITE_ONCE
	ldr	r3, [r7]
	ldr	r0, [r4, #32]
	cmp	r0, r3
	moveq	r7, #0
	beq	.L19
	ldr	r3, .L66+96
	ldr	r1, [r3]
	bl	SM
	mov	r7, r0
.L19:
	ldr	r3, .L66+100
	ldr	r0, [r4, #36]
	ldr	r1, [r3]
	bl	SM
	ldr	r2, .L66+104
	ldr	r3, [r4, #24]
	ldr	r2, [r2]
	orr	r7, r0, r7
	tst	r3, r2
	ldrne	r2, .L66+108
	ldrne	r2, [r2]
	orrne	r7, r7, r2
	ldr	r2, .L66+112
	ldr	r2, [r2]
	tst	r3, r2
	ldrne	r2, .L66+116
	ldrne	r2, [r2]
	orrne	r7, r7, r2
	ldr	r2, .L66+120
	ldr	r2, [r2]
	tst	r3, r2
	ldrne	r2, .L66+124
	ldrne	r2, [r2]
	orrne	r7, r7, r2
	ldr	r2, .L66+128
	ldr	r2, [r2]
	tst	r3, r2
	ldrne	r2, .L66+132
	ldrne	r2, [r2]
	orrne	r6, r6, r2
	ldr	r2, [r4, #40]
	cmp	r2, #130
	beq	.L24
	cmp	r2, #131
	beq	.L25
	cmp	r2, #129
	beq	.L26
.L27:
	ldr	r2, .L66+136
	ldr	r1, .L66+140
	ldr	r2, [r2]
	ldr	r0, [r1]
	and	r3, r3, r2
	ldr	r2, .L66+144
	asr	r0, r3, r0
	ldr	r1, [r2]
	bl	SM
	mov	r1, r0
	ldr	r0, [r5, #32]
	orr	r1, r7, r1
	bl	WRITE_ONCE
	mov	r1, r6
	ldr	r0, [r5, #28]
	bl	WRITE_ONCE
	mov	r1, #0
	ldr	r0, [r4, #56]
	ldr	r7, [r5, #24]
	bl	set11nPktDurRTSCTS
	mov	r1, #1
	mov	r6, r0
	ldr	r0, [r4, #56]
	bl	set11nPktDurRTSCTS
	mov	r1, r0
	mov	r0, r7
	orr	r1, r6, r1
	bl	WRITE_ONCE
	mov	r1, #2
	ldr	r0, [r4, #56]
	ldr	r7, [r5, #20]
	bl	set11nPktDurRTSCTS
	mov	r1, #3
	mov	r6, r0
	ldr	r0, [r4, #56]
	bl	set11nPktDurRTSCTS
	mov	r1, r0
	mov	r0, r7
	orr	r1, r6, r1
	bl	WRITE_ONCE
	mov	r1, #0
	ldr	r0, [r4, #56]
	ldr	r7, [r5, #16]
	bl	set11nRateFlags
	mov	r1, #1
	mov	r6, r0
	ldr	r0, [r4, #56]
	bl	set11nRateFlags
	mov	r3, r0
	mov	r1, #2
	ldr	r0, [r4, #56]
	orr	r6, r6, r3
	bl	set11nRateFlags
	mov	r3, r0
	mov	r1, #3
	ldr	r0, [r4, #56]
	orr	r6, r6, r3
	bl	set11nRateFlags
	mov	r3, r0
	ldr	r2, .L66+148
	ldr	r0, [r4, #52]
	ldr	r1, [r2]
	orr	r6, r6, r3
	bl	SM
	mov	r1, r0
	mov	r0, r7
	orr	r1, r6, r1
	bl	WRITE_ONCE
	ldr	r3, .L66+152
	ldr	r0, [r5, #12]
	ldr	r1, [r3]
	bl	WRITE_ONCE
	ldr	r3, [r4, #28]
	ldr	r2, .L66+156
	ldr	r0, [r3, #4]
	ldr	r1, [r2]
	ldr	r6, [r5, #8]
	bl	SM
	mov	r1, r0
	mov	r0, r6
	bl	WRITE_ONCE
	ldr	r3, [r4, #28]
	ldr	r2, .L66+160
	ldr	r0, [r3, #8]
	ldr	r1, [r2]
	ldr	r6, [r5, #4]
	bl	SM
	mov	r1, r0
	mov	r0, r6
	bl	WRITE_ONCE
	ldr	r2, [r4, #28]
	ldr	r3, .L66+164
	ldr	r0, [r2, #12]
	ldr	r1, [r3]
	ldr	r4, [r5]
	bl	SM
	mov	r1, r0
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	WRITE_ONCE
.L65:
	ldr	r2, .L66+168
	ldr	r2, [r2]
	tst	r3, r2
	ldrne	r3, .L66+172
	ldrne	r3, [r3]
	orrne	r1, r1, r3
	b	.L18
.L7:
	mov	r1, r6
	mov	r0, r7
	bl	WRITE_ONCE
	mov	r1, r6
	ldr	r0, [r5, #44]
	bl	WRITE_ONCE
	b	.L9
.L25:
	ldr	r3, .L66+176
	ldr	r0, [r4, #44]
	ldr	r1, [r3]
	bl	SM
	orr	r6, r6, r0
.L26:
	ldr	r2, .L66+180
	ldr	r3, .L66+184
	ldr	r1, [r2]
	ldr	r3, [r3]
	ldr	r2, .L66+188
	orr	r3, r3, r1
	ldr	r0, [r4, #48]
	ldr	r1, [r2]
	orr	r7, r7, r3
	bl	SM
	ldr	r3, [r4, #24]
	orr	r6, r6, r0
	b	.L27
.L2:
	mov	r0, r6
	bl	AR_SREV_9565
	cmp	r0, #0
	bne	.L4
	mov	r1, #23
	b	.L3
.L64:
	mov	r1, r7
	ldr	r0, [r5, #36]
	bl	WRITE_ONCE
	ldr	r3, [r4, #60]
	ldr	r0, [r5, #32]
	cmp	r3, #0
	ldreq	r3, .L66+192
	ldreq	r7, [r3]
	mov	r1, r7
	bl	WRITE_ONCE
	mov	r1, #0
	ldr	r0, [r5, #24]
	bl	WRITE_ONCE
	mov	r1, #0
	ldr	r0, [r5, #20]
	bl	WRITE_ONCE
	mov	r1, r6
	ldr	r0, [r5, #28]
	bl	WRITE_ONCE
	mov	r1, #0
	ldr	r0, [r5, #16]
	bl	WRITE_ONCE
	ldr	r0, [r5, #12]
	mov	r1, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	WRITE_ONCE
.L24:
	ldr	r2, .L66+184
	ldr	r2, [r2]
	orr	r7, r7, r2
	b	.L27
.L67:
	.align	2
.L66:
	.word	AR_TxRxDesc_S
	.word	AR_DescId_S
	.word	ATHEROS_VENDOR_ID
	.word	AR_CtrlStat_S
	.word	AR_TxQcuNum_S
	.word	AR_BufLen
	.word	AR_BufLen_S
	.word	AR_DurUpdateEna
	.word	AR_BurstDur
	.word	AR_EncrType
	.word	ATH9K_TXDESC_VMF
	.word	AR_FrameLen
	.word	AR_VirtMoreFrag
	.word	AR_XmitPower0
	.word	ATH9K_TXDESC_VEOL
	.word	AR_VEOL
	.word	ATH9K_TXKEYIX_INVALID
	.word	AR_DestIdxValid
	.word	ATH9K_TXDESC_LOWRXCHAIN
	.word	AR_LowRxChain
	.word	ATH9K_TXDESC_CLRDMASK
	.word	AR_ClrDestMask
	.word	ATH9K_TXDESC_RTSENA
	.word	AR_RTSEnable
	.word	AR_DestIdx
	.word	AR_FrameType
	.word	ATH9K_TXDESC_NOACK
	.word	AR_NoAck
	.word	ATH9K_TXDESC_EXT_ONLY
	.word	AR_ExtOnly
	.word	ATH9K_TXDESC_EXT_AND_CTL
	.word	AR_ExtAndCtl
	.word	ATH9K_TXDESC_LDPC
	.word	AR_LDPC
	.word	ATH9K_TXDESC_PAPRD
	.word	ATH9K_TXDESC_PAPRD_S
	.word	AR_PAPRDChainMask
	.word	AR_RTSCTSRate
	.word	AR_Not_Sounding
	.word	AR_XmitPower1
	.word	AR_XmitPower2
	.word	AR_XmitPower3
	.word	ATH9K_TXDESC_CTSENA
	.word	AR_CTSEnable
	.word	AR_AggrLen
	.word	AR_MoreAggr
	.word	AR_IsAggr
	.word	AR_PadDelim
	.word	AR_TxMore
	.size	ar9003_set_txdesc, .-ar9003_set_txdesc
	.comm	ATHEROS_VENDOR_ID,4,4
	.comm	ATH9K_TXKEYIX_INVALID,4,4
	.comm	ATH9K_TXDESC_VMF,4,4
	.comm	ATH9K_TXDESC_VEOL,4,4
	.comm	ATH9K_TXDESC_RTSENA,4,4
	.comm	ATH9K_TXDESC_PAPRD_S,4,4
	.comm	ATH9K_TXDESC_PAPRD,4,4
	.comm	ATH9K_TXDESC_NOACK,4,4
	.comm	ATH9K_TXDESC_LOWRXCHAIN,4,4
	.comm	ATH9K_TXDESC_LDPC,4,4
	.comm	ATH9K_TXDESC_EXT_ONLY,4,4
	.comm	ATH9K_TXDESC_EXT_AND_CTL,4,4
	.comm	ATH9K_TXDESC_CTSENA,4,4
	.comm	ATH9K_TXDESC_CLRDMASK,4,4
	.comm	AR_XmitPower3,4,4
	.comm	AR_XmitPower2,4,4
	.comm	AR_XmitPower1,4,4
	.comm	AR_XmitPower0,4,4
	.comm	AR_VirtMoreFrag,4,4
	.comm	AR_VEOL,4,4
	.comm	AR_TxRxDesc_S,4,4
	.comm	AR_TxQcuNum_S,4,4
	.comm	AR_TxMore,4,4
	.comm	AR_RTSEnable,4,4
	.comm	AR_RTSCTSRate,4,4
	.comm	AR_PadDelim,4,4
	.comm	AR_PAPRDChainMask,4,4
	.comm	AR_Not_Sounding,4,4
	.comm	AR_NoAck,4,4
	.comm	AR_MoreAggr,4,4
	.comm	AR_LowRxChain,4,4
	.comm	AR_LDPC,4,4
	.comm	AR_IsAggr,4,4
	.comm	AR_FrameType,4,4
	.comm	AR_FrameLen,4,4
	.comm	AR_ExtOnly,4,4
	.comm	AR_ExtAndCtl,4,4
	.comm	AR_EncrType,4,4
	.comm	AR_DurUpdateEna,4,4
	.comm	AR_DestIdxValid,4,4
	.comm	AR_DestIdx,4,4
	.comm	AR_DescId_S,4,4
	.comm	AR_CtrlStat_S,4,4
	.comm	AR_ClrDestMask,4,4
	.comm	AR_CTSEnable,4,4
	.comm	AR_BurstDur,4,4
	.comm	AR_BufLen_S,4,4
	.comm	AR_BufLen,4,4
	.comm	AR_AggrLen,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
