	.file	"extr_ar9003_paprd.c_ar9003_paprd_setup_single_table.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Training power: %d, Target power: %d\n"
	.align 8
.LC1:
	.string	"PAPRD target power delta out of range\n"
	.align 8
.LC2:
	.string	"PAPRD HT20 mask: 0x%x, HT40 mask: 0x%x\n"
	.text
	.p2align 4
	.type	ar9003_paprd_setup_single_table, @function
ar9003_paprd_setup_single_table:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	ath9k_hw_common@PLT
	mov	edi, DWORD PTR 16[rbp]
	mov	r13d, DWORD PTR 0[rbp]
	mov	r12, rax
	call	IS_CHAN_2GHZ@PLT
	mov	rdi, rbp
	test	rax, rax
	je	.L2
	call	ar9003_get_training_power_2g@PLT
	mov	ebx, eax
.L3:
	mov	r8d, DWORD PTR 4[rbp]
	mov	esi, DWORD PTR CALIBRATE[rip]
	xor	eax, eax
	mov	ecx, ebx
	lea	rdx, .LC0[rip]
	mov	rdi, r12
	call	ath_dbg@PLT
	test	ebx, ebx
	js	.L29
	mov	DWORD PTR 8[rbp], ebx
	mov	rdi, rbp
	call	AR_SREV_9330@PLT
	mov	ecx, DWORD PTR 0[rbp]
	mov	edx, DWORD PTR AR_PHY_PAPRD_AM2AM_MASK[rip]
	mov	rdi, rbp
	test	rax, rax
	mov	esi, DWORD PTR AR_PHY_PAPRD_AM2AM[rip]
	mov	eax, 0
	cmovne	r13d, eax
	call	REG_RMW_FIELD@PLT
	mov	edx, DWORD PTR AR_PHY_PAPRD_AM2PM_MASK[rip]
	mov	esi, DWORD PTR AR_PHY_PAPRD_AM2PM[rip]
	mov	rdi, rbp
	mov	ecx, r13d
	call	REG_RMW_FIELD@PLT
	mov	ecx, DWORD PTR 12[rbp]
	mov	edx, DWORD PTR AR_PHY_PAPRD_HT40_MASK[rip]
	mov	rdi, rbp
	mov	esi, DWORD PTR AR_PHY_PAPRD_HT40[rip]
	call	REG_RMW_FIELD@PLT
	mov	r8d, DWORD PTR 12[rbp]
	mov	ecx, DWORD PTR 0[rbp]
	mov	rdi, r12
	mov	esi, DWORD PTR CALIBRATE[rip]
	lea	rdx, .LC2[rip]
	xor	eax, eax
	call	ath_dbg@PLT
	mov	eax, DWORD PTR 20[rbp]
	test	eax, eax
	jle	.L7
	xor	ebx, ebx
	mov	r13d, 133
	lea	r14, ctrl1.2011[rip]
	lea	r15, ctrl0.2010[rip]
.L8:
	mov	edx, DWORD PTR AR_PHY_PAPRD_CTRL0_USE_SINGLE_TABLE_MASK[rip]
	mov	ecx, 1
	mov	esi, r13d
	mov	rdi, rbp
	call	REG_RMW_FIELD@PLT
	mov	r12d, DWORD PTR [r14+rbx*4]
	mov	ecx, 1
	mov	rdi, rbp
	mov	edx, DWORD PTR AR_PHY_PAPRD_CTRL1_ADAPTIVE_AM2PM_ENABLE[rip]
	add	rbx, 1
	mov	esi, r12d
	call	REG_RMW_FIELD@PLT
	mov	ecx, 1
	mov	esi, r12d
	mov	rdi, rbp
	mov	edx, DWORD PTR AR_PHY_PAPRD_CTRL1_ADAPTIVE_AM2AM_ENABLE[rip]
	call	REG_RMW_FIELD@PLT
	mov	edx, DWORD PTR AR_PHY_PAPRD_CTRL1_ADAPTIVE_SCALING_ENA[rip]
	xor	ecx, ecx
	mov	esi, r12d
	mov	rdi, rbp
	call	REG_RMW_FIELD@PLT
	mov	ecx, 181
	mov	esi, r12d
	mov	rdi, rbp
	mov	edx, DWORD PTR AR_PHY_PAPRD_CTRL1_PA_GAIN_SCALE_FACT_MASK[rip]
	call	REG_RMW_FIELD@PLT
	mov	ecx, 361
	mov	esi, r12d
	mov	rdi, rbp
	mov	edx, DWORD PTR AR_PHY_PAPRD_CTRL1_PAPRD_MAG_SCALE_FACT[rip]
	call	REG_RMW_FIELD@PLT
	mov	edx, DWORD PTR AR_PHY_PAPRD_CTRL1_ADAPTIVE_SCALING_ENA[rip]
	xor	ecx, ecx
	mov	esi, r12d
	mov	rdi, rbp
	call	REG_RMW_FIELD@PLT
	mov	ecx, 3
	mov	esi, r13d
	mov	rdi, rbp
	mov	edx, DWORD PTR AR_PHY_PAPRD_CTRL0_PAPRD_MAG_THRSH[rip]
	call	REG_RMW_FIELD@PLT
	cmp	DWORD PTR 20[rbp], ebx
	jle	.L7
	mov	r13d, DWORD PTR [r15+rbx*4]
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L7:
	xor	esi, esi
	mov	rdi, rbp
	call	ar9003_paprd_enable@PLT
	mov	r12d, DWORD PTR AR_PHY_PAPRD_TRAINER_CNTL1[rip]
	mov	ecx, 48
	mov	rdi, rbp
	mov	edx, DWORD PTR AR_PHY_PAPRD_TRAINER_CNTL1_CF_PAPRD_LB_SKIP[rip]
	mov	esi, r12d
	call	REG_RMW_FIELD@PLT
	mov	ecx, 1
	mov	esi, r12d
	mov	rdi, rbp
	mov	edx, DWORD PTR AR_PHY_PAPRD_TRAINER_CNTL1_CF_PAPRD_LB_ENABLE[rip]
	call	REG_RMW_FIELD@PLT
	mov	ecx, 1
	mov	esi, r12d
	mov	rdi, rbp
	mov	edx, DWORD PTR AR_PHY_PAPRD_TRAINER_CNTL1_CF_PAPRD_TX_GAIN_FORCE[rip]
	call	REG_RMW_FIELD@PLT
	mov	edx, DWORD PTR AR_PHY_PAPRD_TRAINER_CNTL1_CF_PAPRD_RX_BB_GAIN_FORCE[rip]
	xor	ecx, ecx
	mov	esi, r12d
	mov	rdi, rbp
	call	REG_RMW_FIELD@PLT
	mov	edx, DWORD PTR AR_PHY_PAPRD_TRAINER_CNTL1_CF_PAPRD_IQCORR_ENABLE[rip]
	xor	ecx, ecx
	mov	esi, r12d
	mov	rdi, rbp
	call	REG_RMW_FIELD@PLT
	mov	ecx, 28
	mov	esi, r12d
	mov	rdi, rbp
	mov	edx, DWORD PTR AR_PHY_PAPRD_TRAINER_CNTL1_CF_PAPRD_AGC2_SETTLING[rip]
	call	REG_RMW_FIELD@PLT
	mov	ecx, 1
	mov	esi, r12d
	mov	rdi, rbp
	mov	edx, DWORD PTR AR_PHY_PAPRD_TRAINER_CNTL1_CF_CF_PAPRD_TRAIN_ENABLE[rip]
	call	REG_RMW_FIELD@PLT
	mov	rdi, rbp
	call	AR_SREV_9485@PLT
	mov	ecx, 148
	test	rax, rax
	je	.L30
.L9:
	mov	edx, DWORD PTR AR_PHY_PAPRD_TRAINER_CNTL2_CF_PAPRD_INIT_RX_BB_GAIN[rip]
	mov	esi, DWORD PTR AR_PHY_PAPRD_TRAINER_CNTL2[rip]
	mov	rdi, rbp
	call	REG_RMW_FIELD@PLT
	mov	r12d, DWORD PTR AR_PHY_PAPRD_TRAINER_CNTL3[rip]
	mov	ecx, 4
	mov	rdi, rbp
	mov	edx, DWORD PTR AR_PHY_PAPRD_TRAINER_CNTL3_CF_PAPRD_FINE_CORR_LEN[rip]
	mov	esi, r12d
	call	REG_RMW_FIELD@PLT
	mov	ecx, 4
	mov	esi, r12d
	mov	rdi, rbp
	mov	edx, DWORD PTR AR_PHY_PAPRD_TRAINER_CNTL3_CF_PAPRD_COARSE_CORR_LEN[rip]
	call	REG_RMW_FIELD@PLT
	mov	ecx, 7
	mov	esi, r12d
	mov	rdi, rbp
	mov	edx, DWORD PTR AR_PHY_PAPRD_TRAINER_CNTL3_CF_PAPRD_NUM_CORR_STAGES[rip]
	call	REG_RMW_FIELD@PLT
	mov	rdi, rbp
	mov	ecx, 1
	mov	esi, r12d
	mov	edx, DWORD PTR AR_PHY_PAPRD_TRAINER_CNTL3_CF_PAPRD_MIN_LOOPBACK_DEL[rip]
	call	REG_RMW_FIELD@PLT
	mov	rdi, rbp
	call	AR_SREV_9485@PLT
	test	rax, rax
	je	.L12
.L14:
	mov	edx, DWORD PTR AR_PHY_PAPRD_TRAINER_CNTL3_CF_PAPRD_QUICK_DROP[rip]
	mov	ecx, -3
	mov	esi, r12d
	mov	rdi, rbp
	call	REG_RMW_FIELD@PLT
.L13:
	mov	edi, DWORD PTR 16[rbp]
	call	IS_CHAN_2GHZ@PLT
	test	rax, rax
	jne	.L31
.L15:
	mov	ecx, -10
.L16:
	mov	edx, DWORD PTR AR_PHY_PAPRD_TRAINER_CNTL3_CF_PAPRD_ADC_DESIRED_SIZE[rip]
	mov	esi, r12d
	mov	rdi, rbp
	call	REG_RMW_FIELD@PLT
	mov	esi, r12d
	mov	rdi, rbp
	mov	ecx, 1
	mov	edx, DWORD PTR AR_PHY_PAPRD_TRAINER_CNTL3_CF_PAPRD_BBTXMIX_DISABLE[rip]
	call	REG_RMW_FIELD@PLT
	mov	edx, DWORD PTR AR_PHY_PAPRD_TRAINER_CNTL4_CF_PAPRD_SAFETY_DELTA[rip]
	mov	rdi, rbp
	xor	ecx, ecx
	mov	r12d, DWORD PTR AR_PHY_PAPRD_TRAINER_CNTL4[rip]
	mov	esi, r12d
	call	REG_RMW_FIELD@PLT
	mov	esi, r12d
	mov	rdi, rbp
	mov	ecx, 400
	mov	edx, DWORD PTR AR_PHY_PAPRD_TRAINER_CNTL4_CF_PAPRD_MIN_CORR[rip]
	call	REG_RMW_FIELD@PLT
	mov	esi, r12d
	mov	rdi, rbp
	mov	ecx, 100
	mov	edx, DWORD PTR AR_PHY_PAPRD_TRAINER_CNTL4_CF_PAPRD_NUM_TRAIN_SAMPLES[rip]
	call	REG_RMW_FIELD@PLT
	mov	edx, DWORD PTR AR_PHY_PAPRD_PRE_POST_SCALING[rip]
	mov	esi, DWORD PTR AR_PHY_PAPRD_PRE_POST_SCALE_0_B0[rip]
	mov	rdi, rbp
	mov	ecx, 261376
	call	REG_RMW_FIELD@PLT
	mov	edx, DWORD PTR AR_PHY_PAPRD_PRE_POST_SCALING[rip]
	mov	esi, DWORD PTR AR_PHY_PAPRD_PRE_POST_SCALE_1_B0[rip]
	mov	rdi, rbp
	mov	ecx, 248079
	call	REG_RMW_FIELD@PLT
	mov	edx, DWORD PTR AR_PHY_PAPRD_PRE_POST_SCALING[rip]
	mov	esi, DWORD PTR AR_PHY_PAPRD_PRE_POST_SCALE_2_B0[rip]
	mov	rdi, rbp
	mov	ecx, 233759
	call	REG_RMW_FIELD@PLT
	mov	edx, DWORD PTR AR_PHY_PAPRD_PRE_POST_SCALING[rip]
	mov	esi, DWORD PTR AR_PHY_PAPRD_PRE_POST_SCALE_3_B0[rip]
	mov	rdi, rbp
	mov	ecx, 220464
	call	REG_RMW_FIELD@PLT
	mov	edx, DWORD PTR AR_PHY_PAPRD_PRE_POST_SCALING[rip]
	mov	esi, DWORD PTR AR_PHY_PAPRD_PRE_POST_SCALE_4_B0[rip]
	mov	rdi, rbp
	mov	ecx, 208194
	call	REG_RMW_FIELD@PLT
	mov	edx, DWORD PTR AR_PHY_PAPRD_PRE_POST_SCALING[rip]
	mov	esi, DWORD PTR AR_PHY_PAPRD_PRE_POST_SCALE_5_B0[rip]
	mov	rdi, rbp
	mov	ecx, 196949
	call	REG_RMW_FIELD@PLT
	mov	edx, DWORD PTR AR_PHY_PAPRD_PRE_POST_SCALING[rip]
	mov	esi, DWORD PTR AR_PHY_PAPRD_PRE_POST_SCALE_6_B0[rip]
	mov	rdi, rbp
	mov	ecx, 185706
	call	REG_RMW_FIELD@PLT
	mov	edx, DWORD PTR AR_PHY_PAPRD_PRE_POST_SCALING[rip]
	mov	esi, DWORD PTR AR_PHY_PAPRD_PRE_POST_SCALE_7_B0[rip]
	mov	rdi, rbp
	mov	ecx, 175487
	call	REG_RMW_FIELD@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	call	ar9003_get_training_power_5g@PLT
	mov	ebx, eax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rdi, rbp
	call	AR_SREV_9462@PLT
	test	rax, rax
	jne	.L14
	mov	rdi, rbp
	call	AR_SREV_9565@PLT
	test	rax, rax
	jne	.L14
	mov	rdi, rbp
	call	AR_SREV_9550@PLT
	test	rax, rax
	jne	.L14
	mov	rdi, rbp
	call	AR_SREV_9330@PLT
	test	rax, rax
	jne	.L14
	mov	rdi, rbp
	call	AR_SREV_9340@PLT
	test	rax, rax
	jne	.L14
	mov	edx, DWORD PTR AR_PHY_PAPRD_TRAINER_CNTL3_CF_PAPRD_QUICK_DROP[rip]
	mov	ecx, -6
	mov	esi, r12d
	mov	rdi, rbp
	call	REG_RMW_FIELD@PLT
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L30:
	mov	edi, DWORD PTR 16[rbp]
	call	IS_CHAN_2GHZ@PLT
	mov	ecx, 137
	test	rax, rax
	je	.L9
	mov	rdi, rbp
	call	AR_SREV_9462@PLT
	test	rax, rax
	je	.L10
.L11:
	mov	ecx, 145
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L31:
	mov	rdi, rbp
	call	AR_SREV_9462@PLT
	test	rax, rax
	jne	.L15
	mov	rdi, rbp
	call	AR_SREV_9565@PLT
	mov	ecx, -15
	test	rax, rax
	je	.L16
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L29:
	mov	esi, DWORD PTR CALIBRATE[rip]
	mov	rdi, r12
	lea	rdx, .LC1[rip]
	xor	eax, eax
	call	ath_dbg@PLT
	mov	eax, DWORD PTR ERANGE[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	neg	eax
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
.L10:
	.cfi_restore_state
	mov	rdi, rbp
	call	AR_SREV_9565@PLT
	test	rax, rax
	jne	.L11
	mov	ecx, 147
	jmp	.L9
	.cfi_endproc
.LFE0:
	.size	ar9003_paprd_setup_single_table, .-ar9003_paprd_setup_single_table
	.section	.rodata
	.align 8
	.type	ctrl1.2011, @object
	.size	ctrl1.2011, 12
ctrl1.2011:
	.long	130
	.long	129
	.long	128
	.align 8
	.type	ctrl0.2010, @object
	.size	ctrl0.2010, 12
ctrl0.2010:
	.long	133
	.long	132
	.long	131
	.comm	ERANGE,4,4
	.comm	CALIBRATE,4,4
	.comm	AR_PHY_PAPRD_TRAINER_CNTL4_CF_PAPRD_SAFETY_DELTA,4,4
	.comm	AR_PHY_PAPRD_TRAINER_CNTL4_CF_PAPRD_NUM_TRAIN_SAMPLES,4,4
	.comm	AR_PHY_PAPRD_TRAINER_CNTL4_CF_PAPRD_MIN_CORR,4,4
	.comm	AR_PHY_PAPRD_TRAINER_CNTL4,4,4
	.comm	AR_PHY_PAPRD_TRAINER_CNTL3_CF_PAPRD_QUICK_DROP,4,4
	.comm	AR_PHY_PAPRD_TRAINER_CNTL3_CF_PAPRD_NUM_CORR_STAGES,4,4
	.comm	AR_PHY_PAPRD_TRAINER_CNTL3_CF_PAPRD_MIN_LOOPBACK_DEL,4,4
	.comm	AR_PHY_PAPRD_TRAINER_CNTL3_CF_PAPRD_FINE_CORR_LEN,4,4
	.comm	AR_PHY_PAPRD_TRAINER_CNTL3_CF_PAPRD_COARSE_CORR_LEN,4,4
	.comm	AR_PHY_PAPRD_TRAINER_CNTL3_CF_PAPRD_BBTXMIX_DISABLE,4,4
	.comm	AR_PHY_PAPRD_TRAINER_CNTL3_CF_PAPRD_ADC_DESIRED_SIZE,4,4
	.comm	AR_PHY_PAPRD_TRAINER_CNTL3,4,4
	.comm	AR_PHY_PAPRD_TRAINER_CNTL2_CF_PAPRD_INIT_RX_BB_GAIN,4,4
	.comm	AR_PHY_PAPRD_TRAINER_CNTL2,4,4
	.comm	AR_PHY_PAPRD_TRAINER_CNTL1_CF_PAPRD_TX_GAIN_FORCE,4,4
	.comm	AR_PHY_PAPRD_TRAINER_CNTL1_CF_PAPRD_RX_BB_GAIN_FORCE,4,4
	.comm	AR_PHY_PAPRD_TRAINER_CNTL1_CF_PAPRD_LB_SKIP,4,4
	.comm	AR_PHY_PAPRD_TRAINER_CNTL1_CF_PAPRD_LB_ENABLE,4,4
	.comm	AR_PHY_PAPRD_TRAINER_CNTL1_CF_PAPRD_IQCORR_ENABLE,4,4
	.comm	AR_PHY_PAPRD_TRAINER_CNTL1_CF_PAPRD_AGC2_SETTLING,4,4
	.comm	AR_PHY_PAPRD_TRAINER_CNTL1_CF_CF_PAPRD_TRAIN_ENABLE,4,4
	.comm	AR_PHY_PAPRD_TRAINER_CNTL1,4,4
	.comm	AR_PHY_PAPRD_PRE_POST_SCALING,4,4
	.comm	AR_PHY_PAPRD_PRE_POST_SCALE_7_B0,4,4
	.comm	AR_PHY_PAPRD_PRE_POST_SCALE_6_B0,4,4
	.comm	AR_PHY_PAPRD_PRE_POST_SCALE_5_B0,4,4
	.comm	AR_PHY_PAPRD_PRE_POST_SCALE_4_B0,4,4
	.comm	AR_PHY_PAPRD_PRE_POST_SCALE_3_B0,4,4
	.comm	AR_PHY_PAPRD_PRE_POST_SCALE_2_B0,4,4
	.comm	AR_PHY_PAPRD_PRE_POST_SCALE_1_B0,4,4
	.comm	AR_PHY_PAPRD_PRE_POST_SCALE_0_B0,4,4
	.comm	AR_PHY_PAPRD_HT40_MASK,4,4
	.comm	AR_PHY_PAPRD_HT40,4,4
	.comm	AR_PHY_PAPRD_CTRL1_PA_GAIN_SCALE_FACT_MASK,4,4
	.comm	AR_PHY_PAPRD_CTRL1_PAPRD_MAG_SCALE_FACT,4,4
	.comm	AR_PHY_PAPRD_CTRL1_ADAPTIVE_SCALING_ENA,4,4
	.comm	AR_PHY_PAPRD_CTRL1_ADAPTIVE_AM2PM_ENABLE,4,4
	.comm	AR_PHY_PAPRD_CTRL1_ADAPTIVE_AM2AM_ENABLE,4,4
	.comm	AR_PHY_PAPRD_CTRL0_USE_SINGLE_TABLE_MASK,4,4
	.comm	AR_PHY_PAPRD_CTRL0_PAPRD_MAG_THRSH,4,4
	.comm	AR_PHY_PAPRD_AM2PM_MASK,4,4
	.comm	AR_PHY_PAPRD_AM2PM,4,4
	.comm	AR_PHY_PAPRD_AM2AM_MASK,4,4
	.comm	AR_PHY_PAPRD_AM2AM,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_paprd.c_ar9003_paprd_setup_single_table.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Training power: %d, Target power: %d\012\000"
	.align	2
.LC1:
	.ascii	"PAPRD target power delta out of range\012\000"
	.align	2
.LC2:
	.ascii	"PAPRD HT20 mask: 0x%x, HT40 mask: 0x%x\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ar9003_paprd_setup_single_table, %function
ar9003_paprd_setup_single_table:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #12
	mov	r4, r0
	bl	ath9k_hw_common
	mov	r6, r0
	ldr	r0, [r4, #16]
	ldr	r7, [r4]
	bl	IS_CHAN_2GHZ
	cmp	r0, #0
	mov	r0, r4
	beq	.L2
	bl	ar9003_get_training_power_2g
	mov	r5, r0
.L3:
	ldr	r3, [r4, #4]
	ldr	r8, .L31
	mov	r0, r6
	ldr	r1, [r8]
	ldr	r2, .L31+4
	str	r3, [sp]
	mov	r3, r5
	bl	ath_dbg
	cmp	r5, #0
	blt	.L28
	mov	r0, r4
	str	r5, [r4, #8]
	bl	AR_SREV_9330
	cmp	r0, #0
	movne	r7, #0
	ldr	r3, .L31+8
	ldr	r2, .L31+12
	ldr	r1, [r3]
	ldr	r2, [r2]
	ldr	r3, [r4]
	mov	r0, r4
	bl	REG_RMW_FIELD
	ldr	r2, .L31+16
	ldr	r1, .L31+20
	mov	r3, r7
	ldr	r2, [r2]
	ldr	r1, [r1]
	mov	r0, r4
	bl	REG_RMW_FIELD
	ldr	r3, .L31+24
	ldr	r2, .L31+28
	ldr	r1, [r3]
	ldr	r2, [r2]
	ldr	r3, [r4, #12]
	mov	r0, r4
	bl	REG_RMW_FIELD
	ldr	r3, [r4, #12]
	ldr	r1, [r8]
	str	r3, [sp]
	ldr	r3, [r4]
	mov	r0, r6
	ldr	r2, .L31+32
	bl	ath_dbg
	ldr	r3, [r4, #20]
	cmp	r3, #0
	ble	.L7
	mov	r6, #133
	mov	r5, #0
	ldr	r7, .L31+36
	ldr	r8, .L31+40
	ldr	r10, .L31+44
	add	r9, r7, #16
.L8:
	ldr	r2, .L31+48
	mov	r3, #1
	mov	r1, r6
	ldr	r2, [r2]
	mov	r0, r4
	bl	REG_RMW_FIELD
	ldr	fp, [r7], #4
	ldr	r2, .L31+52
	mov	r3, #1
	mov	r1, fp
	ldr	r2, [r2]
	mov	r0, r4
	bl	REG_RMW_FIELD
	ldr	r2, .L31+56
	mov	r1, fp
	mov	r3, #1
	ldr	r2, [r2]
	mov	r0, r4
	bl	REG_RMW_FIELD
	mov	r1, fp
	mov	r3, #0
	ldr	r2, [r8]
	mov	r0, r4
	bl	REG_RMW_FIELD
	ldr	r2, .L31+60
	mov	r1, fp
	mov	r3, #181
	ldr	r2, [r2]
	mov	r0, r4
	bl	REG_RMW_FIELD
	ldr	r2, .L31+64
	mov	r3, r10
	mov	r1, fp
	ldr	r2, [r2]
	mov	r0, r4
	bl	REG_RMW_FIELD
	mov	r1, fp
	mov	r3, #0
	ldr	r2, [r8]
	mov	r0, r4
	bl	REG_RMW_FIELD
	ldr	r2, .L31+68
	mov	r3, #3
	mov	r1, r6
	mov	r0, r4
	ldr	r2, [r2]
	bl	REG_RMW_FIELD
	ldr	r3, [r4, #20]
	add	r5, r5, #1
	cmp	r3, r5
	ldrgt	r6, [r9], #4
	bgt	.L8
.L7:
	mov	r1, #0
	mov	r0, r4
	bl	ar9003_paprd_enable
	ldr	r2, .L31+72
	ldr	r3, .L31+76
	ldr	r5, [r2]
	mov	r0, r4
	ldr	r2, [r3]
	mov	r1, r5
	mov	r3, #48
	bl	REG_RMW_FIELD
	ldr	r3, .L31+80
	mov	r1, r5
	ldr	r2, [r3]
	mov	r0, r4
	mov	r3, #1
	bl	REG_RMW_FIELD
	ldr	r3, .L31+84
	mov	r1, r5
	ldr	r2, [r3]
	mov	r0, r4
	mov	r3, #1
	bl	REG_RMW_FIELD
	ldr	r3, .L31+88
	mov	r1, r5
	ldr	r2, [r3]
	mov	r0, r4
	mov	r3, #0
	bl	REG_RMW_FIELD
	ldr	r3, .L31+92
	mov	r1, r5
	ldr	r2, [r3]
	mov	r0, r4
	mov	r3, #0
	bl	REG_RMW_FIELD
	ldr	r3, .L31+96
	mov	r1, r5
	ldr	r2, [r3]
	mov	r0, r4
	mov	r3, #28
	bl	REG_RMW_FIELD
	ldr	r3, .L31+100
	mov	r1, r5
	ldr	r2, [r3]
	mov	r0, r4
	mov	r3, #1
	bl	REG_RMW_FIELD
	mov	r0, r4
	bl	AR_SREV_9485
	cmp	r0, #0
	movne	r3, #148
	beq	.L29
.L9:
	ldr	r2, .L31+104
	ldr	r1, .L31+108
	ldr	r2, [r2]
	ldr	r1, [r1]
	mov	r0, r4
	bl	REG_RMW_FIELD
	ldr	r2, .L31+112
	ldr	r3, .L31+116
	ldr	r5, [r2]
	mov	r0, r4
	ldr	r2, [r3]
	mov	r1, r5
	mov	r3, #4
	bl	REG_RMW_FIELD
	ldr	r3, .L31+120
	mov	r1, r5
	ldr	r2, [r3]
	mov	r0, r4
	mov	r3, #4
	bl	REG_RMW_FIELD
	ldr	r3, .L31+124
	mov	r1, r5
	ldr	r2, [r3]
	mov	r0, r4
	mov	r3, #7
	bl	REG_RMW_FIELD
	ldr	r3, .L31+128
	mov	r1, r5
	ldr	r2, [r3]
	mov	r0, r4
	mov	r3, #1
	bl	REG_RMW_FIELD
	mov	r0, r4
	bl	AR_SREV_9485
	cmp	r0, #0
	beq	.L12
.L14:
	ldr	r2, .L31+132
	mvn	r3, #2
	mov	r1, r5
	mov	r0, r4
	ldr	r2, [r2]
	bl	REG_RMW_FIELD
.L13:
	ldr	r0, [r4, #16]
	bl	IS_CHAN_2GHZ
	cmp	r0, #0
	bne	.L30
.L15:
	mvn	r3, #9
.L16:
	ldr	r2, .L31+136
	mov	r1, r5
	mov	r0, r4
	ldr	r2, [r2]
	bl	REG_RMW_FIELD
	ldr	r3, .L31+140
	mov	r1, r5
	ldr	r2, [r3]
	mov	r0, r4
	mov	r3, #1
	bl	REG_RMW_FIELD
	ldr	r2, .L31+144
	ldr	r3, .L31+148
	ldr	r5, [r2]
	mov	r0, r4
	mov	r1, r5
	ldr	r2, [r3]
	mov	r3, #0
	bl	REG_RMW_FIELD
	ldr	r3, .L31+152
	mov	r1, r5
	ldr	r2, [r3]
	mov	r0, r4
	mov	r3, #400
	bl	REG_RMW_FIELD
	ldr	r3, .L31+156
	mov	r1, r5
	ldr	r2, [r3]
	mov	r0, r4
	mov	r3, #100
	ldr	r5, .L31+160
	bl	REG_RMW_FIELD
	ldr	r3, .L31+164
	ldr	r2, [r5]
	ldr	r1, [r3]
	mov	r0, r4
	ldr	r3, .L31+168
	bl	REG_RMW_FIELD
	ldr	r3, .L31+172
	ldr	r2, [r5]
	ldr	r1, [r3]
	mov	r0, r4
	ldr	r3, .L31+176
	bl	REG_RMW_FIELD
	ldr	r3, .L31+180
	ldr	r2, [r5]
	ldr	r1, [r3]
	mov	r0, r4
	ldr	r3, .L31+184
	bl	REG_RMW_FIELD
	ldr	r3, .L31+188
	ldr	r2, [r5]
	ldr	r1, [r3]
	mov	r0, r4
	ldr	r3, .L31+192
	bl	REG_RMW_FIELD
	ldr	r3, .L31+196
	ldr	r2, [r5]
	ldr	r1, [r3]
	mov	r0, r4
	ldr	r3, .L31+200
	bl	REG_RMW_FIELD
	ldr	r3, .L31+204
	ldr	r2, [r5]
	ldr	r1, [r3]
	mov	r0, r4
	ldr	r3, .L31+208
	bl	REG_RMW_FIELD
	ldr	r3, .L31+212
	ldr	r2, [r5]
	ldr	r1, [r3]
	mov	r0, r4
	ldr	r3, .L31+216
	bl	REG_RMW_FIELD
	ldr	r3, .L31+220
	mov	r0, r4
	ldr	r1, [r3]
	ldr	r2, [r5]
	ldr	r3, .L31+224
	bl	REG_RMW_FIELD
	mov	r0, #0
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	bl	ar9003_get_training_power_5g
	mov	r5, r0
	b	.L3
.L12:
	mov	r0, r4
	bl	AR_SREV_9462
	cmp	r0, #0
	bne	.L14
	mov	r0, r4
	bl	AR_SREV_9565
	cmp	r0, #0
	bne	.L14
	mov	r0, r4
	bl	AR_SREV_9550
	cmp	r0, #0
	bne	.L14
	mov	r0, r4
	bl	AR_SREV_9330
	cmp	r0, #0
	bne	.L14
	mov	r0, r4
	bl	AR_SREV_9340
	cmp	r0, #0
	bne	.L14
	ldr	r2, .L31+132
	mvn	r3, #5
	mov	r1, r5
	mov	r0, r4
	ldr	r2, [r2]
	bl	REG_RMW_FIELD
	b	.L13
.L29:
	ldr	r0, [r4, #16]
	bl	IS_CHAN_2GHZ
	cmp	r0, #0
	moveq	r3, #137
	beq	.L9
	mov	r0, r4
	bl	AR_SREV_9462
	cmp	r0, #0
	beq	.L10
.L11:
	mov	r3, #145
	b	.L9
.L30:
	mov	r0, r4
	bl	AR_SREV_9462
	cmp	r0, #0
	bne	.L15
	mov	r0, r4
	bl	AR_SREV_9565
	cmp	r0, #0
	mvneq	r3, #14
	beq	.L16
	b	.L15
.L28:
	mov	r0, r6
	ldr	r1, [r8]
	ldr	r2, .L31+228
	bl	ath_dbg
	ldr	r3, .L31+232
	ldr	r0, [r3]
	rsb	r0, r0, #0
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L10:
	mov	r0, r4
	bl	AR_SREV_9565
	cmp	r0, #0
	moveq	r3, #147
	beq	.L9
	b	.L11
.L32:
	.align	2
.L31:
	.word	CALIBRATE
	.word	.LC0
	.word	AR_PHY_PAPRD_AM2AM
	.word	AR_PHY_PAPRD_AM2AM_MASK
	.word	AR_PHY_PAPRD_AM2PM_MASK
	.word	AR_PHY_PAPRD_AM2PM
	.word	AR_PHY_PAPRD_HT40
	.word	AR_PHY_PAPRD_HT40_MASK
	.word	.LC2
	.word	.LANCHOR0
	.word	AR_PHY_PAPRD_CTRL1_ADAPTIVE_SCALING_ENA
	.word	361
	.word	AR_PHY_PAPRD_CTRL0_USE_SINGLE_TABLE_MASK
	.word	AR_PHY_PAPRD_CTRL1_ADAPTIVE_AM2PM_ENABLE
	.word	AR_PHY_PAPRD_CTRL1_ADAPTIVE_AM2AM_ENABLE
	.word	AR_PHY_PAPRD_CTRL1_PA_GAIN_SCALE_FACT_MASK
	.word	AR_PHY_PAPRD_CTRL1_PAPRD_MAG_SCALE_FACT
	.word	AR_PHY_PAPRD_CTRL0_PAPRD_MAG_THRSH
	.word	AR_PHY_PAPRD_TRAINER_CNTL1
	.word	AR_PHY_PAPRD_TRAINER_CNTL1_CF_PAPRD_LB_SKIP
	.word	AR_PHY_PAPRD_TRAINER_CNTL1_CF_PAPRD_LB_ENABLE
	.word	AR_PHY_PAPRD_TRAINER_CNTL1_CF_PAPRD_TX_GAIN_FORCE
	.word	AR_PHY_PAPRD_TRAINER_CNTL1_CF_PAPRD_RX_BB_GAIN_FORCE
	.word	AR_PHY_PAPRD_TRAINER_CNTL1_CF_PAPRD_IQCORR_ENABLE
	.word	AR_PHY_PAPRD_TRAINER_CNTL1_CF_PAPRD_AGC2_SETTLING
	.word	AR_PHY_PAPRD_TRAINER_CNTL1_CF_CF_PAPRD_TRAIN_ENABLE
	.word	AR_PHY_PAPRD_TRAINER_CNTL2_CF_PAPRD_INIT_RX_BB_GAIN
	.word	AR_PHY_PAPRD_TRAINER_CNTL2
	.word	AR_PHY_PAPRD_TRAINER_CNTL3
	.word	AR_PHY_PAPRD_TRAINER_CNTL3_CF_PAPRD_FINE_CORR_LEN
	.word	AR_PHY_PAPRD_TRAINER_CNTL3_CF_PAPRD_COARSE_CORR_LEN
	.word	AR_PHY_PAPRD_TRAINER_CNTL3_CF_PAPRD_NUM_CORR_STAGES
	.word	AR_PHY_PAPRD_TRAINER_CNTL3_CF_PAPRD_MIN_LOOPBACK_DEL
	.word	AR_PHY_PAPRD_TRAINER_CNTL3_CF_PAPRD_QUICK_DROP
	.word	AR_PHY_PAPRD_TRAINER_CNTL3_CF_PAPRD_ADC_DESIRED_SIZE
	.word	AR_PHY_PAPRD_TRAINER_CNTL3_CF_PAPRD_BBTXMIX_DISABLE
	.word	AR_PHY_PAPRD_TRAINER_CNTL4
	.word	AR_PHY_PAPRD_TRAINER_CNTL4_CF_PAPRD_SAFETY_DELTA
	.word	AR_PHY_PAPRD_TRAINER_CNTL4_CF_PAPRD_MIN_CORR
	.word	AR_PHY_PAPRD_TRAINER_CNTL4_CF_PAPRD_NUM_TRAIN_SAMPLES
	.word	AR_PHY_PAPRD_PRE_POST_SCALING
	.word	AR_PHY_PAPRD_PRE_POST_SCALE_0_B0
	.word	261376
	.word	AR_PHY_PAPRD_PRE_POST_SCALE_1_B0
	.word	248079
	.word	AR_PHY_PAPRD_PRE_POST_SCALE_2_B0
	.word	233759
	.word	AR_PHY_PAPRD_PRE_POST_SCALE_3_B0
	.word	220464
	.word	AR_PHY_PAPRD_PRE_POST_SCALE_4_B0
	.word	208194
	.word	AR_PHY_PAPRD_PRE_POST_SCALE_5_B0
	.word	196949
	.word	AR_PHY_PAPRD_PRE_POST_SCALE_6_B0
	.word	185706
	.word	AR_PHY_PAPRD_PRE_POST_SCALE_7_B0
	.word	175487
	.word	.LC1
	.word	ERANGE
	.size	ar9003_paprd_setup_single_table, .-ar9003_paprd_setup_single_table
	.comm	ERANGE,4,4
	.comm	CALIBRATE,4,4
	.comm	AR_PHY_PAPRD_TRAINER_CNTL4_CF_PAPRD_SAFETY_DELTA,4,4
	.comm	AR_PHY_PAPRD_TRAINER_CNTL4_CF_PAPRD_NUM_TRAIN_SAMPLES,4,4
	.comm	AR_PHY_PAPRD_TRAINER_CNTL4_CF_PAPRD_MIN_CORR,4,4
	.comm	AR_PHY_PAPRD_TRAINER_CNTL4,4,4
	.comm	AR_PHY_PAPRD_TRAINER_CNTL3_CF_PAPRD_QUICK_DROP,4,4
	.comm	AR_PHY_PAPRD_TRAINER_CNTL3_CF_PAPRD_NUM_CORR_STAGES,4,4
	.comm	AR_PHY_PAPRD_TRAINER_CNTL3_CF_PAPRD_MIN_LOOPBACK_DEL,4,4
	.comm	AR_PHY_PAPRD_TRAINER_CNTL3_CF_PAPRD_FINE_CORR_LEN,4,4
	.comm	AR_PHY_PAPRD_TRAINER_CNTL3_CF_PAPRD_COARSE_CORR_LEN,4,4
	.comm	AR_PHY_PAPRD_TRAINER_CNTL3_CF_PAPRD_BBTXMIX_DISABLE,4,4
	.comm	AR_PHY_PAPRD_TRAINER_CNTL3_CF_PAPRD_ADC_DESIRED_SIZE,4,4
	.comm	AR_PHY_PAPRD_TRAINER_CNTL3,4,4
	.comm	AR_PHY_PAPRD_TRAINER_CNTL2_CF_PAPRD_INIT_RX_BB_GAIN,4,4
	.comm	AR_PHY_PAPRD_TRAINER_CNTL2,4,4
	.comm	AR_PHY_PAPRD_TRAINER_CNTL1_CF_PAPRD_TX_GAIN_FORCE,4,4
	.comm	AR_PHY_PAPRD_TRAINER_CNTL1_CF_PAPRD_RX_BB_GAIN_FORCE,4,4
	.comm	AR_PHY_PAPRD_TRAINER_CNTL1_CF_PAPRD_LB_SKIP,4,4
	.comm	AR_PHY_PAPRD_TRAINER_CNTL1_CF_PAPRD_LB_ENABLE,4,4
	.comm	AR_PHY_PAPRD_TRAINER_CNTL1_CF_PAPRD_IQCORR_ENABLE,4,4
	.comm	AR_PHY_PAPRD_TRAINER_CNTL1_CF_PAPRD_AGC2_SETTLING,4,4
	.comm	AR_PHY_PAPRD_TRAINER_CNTL1_CF_CF_PAPRD_TRAIN_ENABLE,4,4
	.comm	AR_PHY_PAPRD_TRAINER_CNTL1,4,4
	.comm	AR_PHY_PAPRD_PRE_POST_SCALING,4,4
	.comm	AR_PHY_PAPRD_PRE_POST_SCALE_7_B0,4,4
	.comm	AR_PHY_PAPRD_PRE_POST_SCALE_6_B0,4,4
	.comm	AR_PHY_PAPRD_PRE_POST_SCALE_5_B0,4,4
	.comm	AR_PHY_PAPRD_PRE_POST_SCALE_4_B0,4,4
	.comm	AR_PHY_PAPRD_PRE_POST_SCALE_3_B0,4,4
	.comm	AR_PHY_PAPRD_PRE_POST_SCALE_2_B0,4,4
	.comm	AR_PHY_PAPRD_PRE_POST_SCALE_1_B0,4,4
	.comm	AR_PHY_PAPRD_PRE_POST_SCALE_0_B0,4,4
	.comm	AR_PHY_PAPRD_HT40_MASK,4,4
	.comm	AR_PHY_PAPRD_HT40,4,4
	.comm	AR_PHY_PAPRD_CTRL1_PA_GAIN_SCALE_FACT_MASK,4,4
	.comm	AR_PHY_PAPRD_CTRL1_PAPRD_MAG_SCALE_FACT,4,4
	.comm	AR_PHY_PAPRD_CTRL1_ADAPTIVE_SCALING_ENA,4,4
	.comm	AR_PHY_PAPRD_CTRL1_ADAPTIVE_AM2PM_ENABLE,4,4
	.comm	AR_PHY_PAPRD_CTRL1_ADAPTIVE_AM2AM_ENABLE,4,4
	.comm	AR_PHY_PAPRD_CTRL0_USE_SINGLE_TABLE_MASK,4,4
	.comm	AR_PHY_PAPRD_CTRL0_PAPRD_MAG_THRSH,4,4
	.comm	AR_PHY_PAPRD_AM2PM_MASK,4,4
	.comm	AR_PHY_PAPRD_AM2PM,4,4
	.comm	AR_PHY_PAPRD_AM2AM_MASK,4,4
	.comm	AR_PHY_PAPRD_AM2AM,4,4
	.section	.rodata
	.align	2
	.set	.LANCHOR0,. + 0
	.type	ctrl1.4295, %object
	.size	ctrl1.4295, 12
ctrl1.4295:
	.word	130
	.word	129
	.word	128
	.type	ctrl0.4294, %object
	.size	ctrl0.4294, 12
ctrl0.4294:
	.word	133
	.word	132
	.word	131
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
