	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ar9003_paprd_setup_single_table
_ar9003_paprd_setup_single_table:       ## @ar9003_paprd_setup_single_table
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	callq	_ath9k_hw_common
	movq	%rax, %r15
	movl	(%r13), %r12d
	movl	16(%r13), %edi
	callq	_IS_CHAN_2GHZ
	movq	%r13, %rdi
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	callq	_ar9003_get_training_power_2g
	jmp	LBB0_3
LBB0_2:
	callq	_ar9003_get_training_power_5g
LBB0_3:
	movl	%eax, %ebx
	movq	_CALIBRATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r13), %r8d
	leaq	L_.str(%rip), %rdx
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_ath_dbg
	testl	%ebx, %ebx
	js	LBB0_4
## %bb.5:
	movl	%ebx, 8(%r13)
	movq	%r13, %rdi
	callq	_AR_SREV_9330
	testq	%rax, %rax
	cmovnel	%r14d, %r12d
	movq	_AR_PHY_PAPRD_AM2AM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR_PHY_PAPRD_AM2AM_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r13), %ecx
	movq	%r13, %rdi
	callq	_REG_RMW_FIELD
	movq	_AR_PHY_PAPRD_AM2PM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR_PHY_PAPRD_AM2PM_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	%r12d, %ecx
	callq	_REG_RMW_FIELD
	movq	_AR_PHY_PAPRD_HT40@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR_PHY_PAPRD_HT40_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	12(%r13), %ecx
	movq	%r13, %rdi
	callq	_REG_RMW_FIELD
	movq	_CALIBRATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r13), %ecx
	movl	12(%r13), %r8d
	leaq	L_.str.2(%rip), %rdx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_ath_dbg
	cmpl	$0, 20(%r13)
	jle	LBB0_8
## %bb.6:
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	leaq	_ar9003_paprd_setup_single_table.ctrl0(%rip), %rax
	movl	(%r15,%rax), %r14d
	movq	_AR_PHY_PAPRD_CTRL0_USE_SINGLE_TABLE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	%r14d, %esi
	movl	$1, %ecx
	callq	_REG_RMW_FIELD
	leaq	_ar9003_paprd_setup_single_table.ctrl1(%rip), %rax
	movl	(%r15,%rax), %ebx
	movq	_AR_PHY_PAPRD_CTRL1_ADAPTIVE_AM2PM_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	$1, %ecx
	callq	_REG_RMW_FIELD
	movq	_AR_PHY_PAPRD_CTRL1_ADAPTIVE_AM2AM_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	$1, %ecx
	callq	_REG_RMW_FIELD
	movq	_AR_PHY_PAPRD_CTRL1_ADAPTIVE_SCALING_ENA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	%ebx, %esi
	xorl	%ecx, %ecx
	callq	_REG_RMW_FIELD
	movq	_AR_PHY_PAPRD_CTRL1_PA_GAIN_SCALE_FACT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	$181, %ecx
	callq	_REG_RMW_FIELD
	movq	_AR_PHY_PAPRD_CTRL1_PAPRD_MAG_SCALE_FACT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	$361, %ecx                      ## imm = 0x169
	callq	_REG_RMW_FIELD
	movq	_AR_PHY_PAPRD_CTRL1_ADAPTIVE_SCALING_ENA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	%ebx, %esi
	xorl	%ecx, %ecx
	callq	_REG_RMW_FIELD
	movq	_AR_PHY_PAPRD_CTRL0_PAPRD_MAG_THRSH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	%r14d, %esi
	movl	$3, %ecx
	callq	_REG_RMW_FIELD
	incq	%r12
	movslq	20(%r13), %rax
	addq	$4, %r15
	cmpq	%rax, %r12
	jl	LBB0_7
LBB0_8:
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_ar9003_paprd_enable
	movq	_AR_PHY_PAPRD_TRAINER_CNTL1@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_AR_PHY_PAPRD_TRAINER_CNTL1_CF_PAPRD_LB_SKIP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	$48, %ecx
	callq	_REG_RMW_FIELD
	movl	(%rbx), %esi
	movq	_AR_PHY_PAPRD_TRAINER_CNTL1_CF_PAPRD_LB_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	$1, %ecx
	callq	_REG_RMW_FIELD
	movl	(%rbx), %esi
	movq	_AR_PHY_PAPRD_TRAINER_CNTL1_CF_PAPRD_TX_GAIN_FORCE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	$1, %ecx
	callq	_REG_RMW_FIELD
	movl	(%rbx), %esi
	movq	_AR_PHY_PAPRD_TRAINER_CNTL1_CF_PAPRD_RX_BB_GAIN_FORCE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	xorl	%ecx, %ecx
	callq	_REG_RMW_FIELD
	movl	(%rbx), %esi
	movq	_AR_PHY_PAPRD_TRAINER_CNTL1_CF_PAPRD_IQCORR_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	xorl	%ecx, %ecx
	callq	_REG_RMW_FIELD
	movl	(%rbx), %esi
	movq	_AR_PHY_PAPRD_TRAINER_CNTL1_CF_PAPRD_AGC2_SETTLING@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	$28, %ecx
	callq	_REG_RMW_FIELD
	movl	(%rbx), %esi
	movq	_AR_PHY_PAPRD_TRAINER_CNTL1_CF_CF_PAPRD_TRAIN_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	$1, %ecx
	callq	_REG_RMW_FIELD
	movq	%r13, %rdi
	callq	_AR_SREV_9485
	movl	$148, %ecx
	testq	%rax, %rax
	je	LBB0_9
LBB0_13:
	movq	_AR_PHY_PAPRD_TRAINER_CNTL2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR_PHY_PAPRD_TRAINER_CNTL2_CF_PAPRD_INIT_RX_BB_GAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_REG_RMW_FIELD
	movq	_AR_PHY_PAPRD_TRAINER_CNTL3@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_AR_PHY_PAPRD_TRAINER_CNTL3_CF_PAPRD_FINE_CORR_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	$4, %ecx
	callq	_REG_RMW_FIELD
	movl	(%r14), %esi
	movq	_AR_PHY_PAPRD_TRAINER_CNTL3_CF_PAPRD_COARSE_CORR_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	$4, %ecx
	callq	_REG_RMW_FIELD
	movl	(%r14), %esi
	movq	_AR_PHY_PAPRD_TRAINER_CNTL3_CF_PAPRD_NUM_CORR_STAGES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	$7, %ecx
	callq	_REG_RMW_FIELD
	movl	(%r14), %esi
	movq	_AR_PHY_PAPRD_TRAINER_CNTL3_CF_PAPRD_MIN_LOOPBACK_DEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	$1, %ecx
	callq	_REG_RMW_FIELD
	movq	%r13, %rdi
	callq	_AR_SREV_9485
	movl	$-3, %ebx
	testq	%rax, %rax
	jne	LBB0_19
## %bb.14:
	movq	%r13, %rdi
	callq	_AR_SREV_9462
	testq	%rax, %rax
	jne	LBB0_19
## %bb.15:
	movq	%r13, %rdi
	callq	_AR_SREV_9565
	testq	%rax, %rax
	jne	LBB0_19
## %bb.16:
	movq	%r13, %rdi
	callq	_AR_SREV_9550
	testq	%rax, %rax
	jne	LBB0_19
## %bb.17:
	movq	%r13, %rdi
	callq	_AR_SREV_9330
	testq	%rax, %rax
	jne	LBB0_19
## %bb.18:
	movq	%r13, %rdi
	callq	_AR_SREV_9340
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	leal	(%rcx,%rcx,2), %ebx
	addl	$-6, %ebx
LBB0_19:
	movl	(%r14), %esi
	movq	_AR_PHY_PAPRD_TRAINER_CNTL3_CF_PAPRD_QUICK_DROP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	%ebx, %ecx
	callq	_REG_RMW_FIELD
	movl	16(%r13), %edi
	callq	_IS_CHAN_2GHZ
	movl	$-10, %ebx
	testq	%rax, %rax
	je	LBB0_22
## %bb.20:
	movq	%r13, %rdi
	callq	_AR_SREV_9462
	testq	%rax, %rax
	jne	LBB0_22
## %bb.21:
	movq	%r13, %rdi
	callq	_AR_SREV_9565
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	leal	(%rcx,%rcx,4), %ebx
	addl	$-15, %ebx
LBB0_22:
	movl	(%r14), %esi
	movq	_AR_PHY_PAPRD_TRAINER_CNTL3_CF_PAPRD_ADC_DESIRED_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	%ebx, %ecx
	callq	_REG_RMW_FIELD
	movl	(%r14), %esi
	movq	_AR_PHY_PAPRD_TRAINER_CNTL3_CF_PAPRD_BBTXMIX_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	$1, %ecx
	callq	_REG_RMW_FIELD
	movq	_AR_PHY_PAPRD_TRAINER_CNTL4@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_AR_PHY_PAPRD_TRAINER_CNTL4_CF_PAPRD_SAFETY_DELTA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%r14d, %r14d
	movq	%r13, %rdi
	xorl	%ecx, %ecx
	callq	_REG_RMW_FIELD
	movl	(%rbx), %esi
	movq	_AR_PHY_PAPRD_TRAINER_CNTL4_CF_PAPRD_MIN_CORR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	$400, %ecx                      ## imm = 0x190
	callq	_REG_RMW_FIELD
	movl	(%rbx), %esi
	movq	_AR_PHY_PAPRD_TRAINER_CNTL4_CF_PAPRD_NUM_TRAIN_SAMPLES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	$100, %ecx
	callq	_REG_RMW_FIELD
	movq	_AR_PHY_PAPRD_PRE_POST_SCALE_0_B0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR_PHY_PAPRD_PRE_POST_SCALING@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r13, %rdi
	movl	$261376, %ecx                   ## imm = 0x3FD00
	callq	_REG_RMW_FIELD
	movq	_AR_PHY_PAPRD_PRE_POST_SCALE_1_B0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	movq	%r13, %rdi
	movl	$248079, %ecx                   ## imm = 0x3C90F
	callq	_REG_RMW_FIELD
	movq	_AR_PHY_PAPRD_PRE_POST_SCALE_2_B0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	movq	%r13, %rdi
	movl	$233759, %ecx                   ## imm = 0x3911F
	callq	_REG_RMW_FIELD
	movq	_AR_PHY_PAPRD_PRE_POST_SCALE_3_B0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	movq	%r13, %rdi
	movl	$220464, %ecx                   ## imm = 0x35D30
	callq	_REG_RMW_FIELD
	movq	_AR_PHY_PAPRD_PRE_POST_SCALE_4_B0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	movq	%r13, %rdi
	movl	$208194, %ecx                   ## imm = 0x32D42
	callq	_REG_RMW_FIELD
	movq	_AR_PHY_PAPRD_PRE_POST_SCALE_5_B0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	movq	%r13, %rdi
	movl	$196949, %ecx                   ## imm = 0x30155
	callq	_REG_RMW_FIELD
	movq	_AR_PHY_PAPRD_PRE_POST_SCALE_6_B0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	movq	%r13, %rdi
	movl	$185706, %ecx                   ## imm = 0x2D56A
	callq	_REG_RMW_FIELD
	movq	_AR_PHY_PAPRD_PRE_POST_SCALE_7_B0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	movq	%r13, %rdi
	movl	$175487, %ecx                   ## imm = 0x2AD7F
	callq	_REG_RMW_FIELD
	jmp	LBB0_23
LBB0_4:
	movq	_CALIBRATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_ath_dbg
	movq	_ERANGE@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
LBB0_23:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movl	16(%r13), %edi
	callq	_IS_CHAN_2GHZ
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movq	%r13, %rdi
	callq	_AR_SREV_9462
	movl	$145, %ecx
	testq	%rax, %rax
	jne	LBB0_13
## %bb.12:
	movq	%r13, %rdi
	callq	_AR_SREV_9565
	xorl	%ecx, %ecx
	testq	%rax, %rax
	sete	%cl
	addl	%ecx, %ecx
	addl	$145, %ecx
	jmp	LBB0_13
LBB0_10:
	movl	$137, %ecx
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	2                               ## @ar9003_paprd_setup_single_table.ctrl0
_ar9003_paprd_setup_single_table.ctrl0:
	.long	133                             ## 0x85
	.long	132                             ## 0x84
	.long	131                             ## 0x83

	.p2align	2                               ## @ar9003_paprd_setup_single_table.ctrl1
_ar9003_paprd_setup_single_table.ctrl1:
	.long	130                             ## 0x82
	.long	129                             ## 0x81
	.long	128                             ## 0x80

	.comm	_CALIBRATE,4,2                  ## @CALIBRATE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Training power: %d, Target power: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"PAPRD target power delta out of range\n"

	.comm	_ERANGE,4,2                     ## @ERANGE
	.comm	_AR_PHY_PAPRD_AM2AM,4,2         ## @AR_PHY_PAPRD_AM2AM
	.comm	_AR_PHY_PAPRD_AM2AM_MASK,4,2    ## @AR_PHY_PAPRD_AM2AM_MASK
	.comm	_AR_PHY_PAPRD_AM2PM,4,2         ## @AR_PHY_PAPRD_AM2PM
	.comm	_AR_PHY_PAPRD_AM2PM_MASK,4,2    ## @AR_PHY_PAPRD_AM2PM_MASK
	.comm	_AR_PHY_PAPRD_HT40,4,2          ## @AR_PHY_PAPRD_HT40
	.comm	_AR_PHY_PAPRD_HT40_MASK,4,2     ## @AR_PHY_PAPRD_HT40_MASK
L_.str.2:                               ## @.str.2
	.asciz	"PAPRD HT20 mask: 0x%x, HT40 mask: 0x%x\n"

	.comm	_AR_PHY_PAPRD_CTRL0_USE_SINGLE_TABLE_MASK,4,2 ## @AR_PHY_PAPRD_CTRL0_USE_SINGLE_TABLE_MASK
	.comm	_AR_PHY_PAPRD_CTRL1_ADAPTIVE_AM2PM_ENABLE,4,2 ## @AR_PHY_PAPRD_CTRL1_ADAPTIVE_AM2PM_ENABLE
	.comm	_AR_PHY_PAPRD_CTRL1_ADAPTIVE_AM2AM_ENABLE,4,2 ## @AR_PHY_PAPRD_CTRL1_ADAPTIVE_AM2AM_ENABLE
	.comm	_AR_PHY_PAPRD_CTRL1_ADAPTIVE_SCALING_ENA,4,2 ## @AR_PHY_PAPRD_CTRL1_ADAPTIVE_SCALING_ENA
	.comm	_AR_PHY_PAPRD_CTRL1_PA_GAIN_SCALE_FACT_MASK,4,2 ## @AR_PHY_PAPRD_CTRL1_PA_GAIN_SCALE_FACT_MASK
	.comm	_AR_PHY_PAPRD_CTRL1_PAPRD_MAG_SCALE_FACT,4,2 ## @AR_PHY_PAPRD_CTRL1_PAPRD_MAG_SCALE_FACT
	.comm	_AR_PHY_PAPRD_CTRL0_PAPRD_MAG_THRSH,4,2 ## @AR_PHY_PAPRD_CTRL0_PAPRD_MAG_THRSH
	.comm	_AR_PHY_PAPRD_TRAINER_CNTL1,4,2 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_CNTL3_CF_PAPRD_FINE_CORR_LEN,4,2 ## @AR_PHY_PAPRD_TRAINER_CNTL3_CF_PAPRD_FINE_CORR_LEN
	.comm	_AR_PHY_PAPRD_TRAINER_CNTL3_CF_PAPRD_COARSE_CORR_LEN,4,2 ## @AR_PHY_PAPRD_TRAINER_CNTL3_CF_PAPRD_COARSE_CORR_LEN
	.comm	_AR_PHY_PAPRD_TRAINER_CNTL3_CF_PAPRD_NUM_CORR_STAGES,4,2 ## @AR_PHY_PAPRD_TRAINER_CNTL3_CF_PAPRD_NUM_CORR_STAGES
	.comm	_AR_PHY_PAPRD_TRAINER_CNTL3_CF_PAPRD_MIN_LOOPBACK_DEL,4,2 ## @AR_PHY_PAPRD_TRAINER_CNTL3_CF_PAPRD_MIN_LOOPBACK_DEL
	.comm	_AR_PHY_PAPRD_TRAINER_CNTL3_CF_PAPRD_QUICK_DROP,4,2 ## @AR_PHY_PAPRD_TRAINER_CNTL3_CF_PAPRD_QUICK_DROP
	.comm	_AR_PHY_PAPRD_TRAINER_CNTL3_CF_PAPRD_ADC_DESIRED_SIZE,4,2 ## @AR_PHY_PAPRD_TRAINER_CNTL3_CF_PAPRD_ADC_DESIRED_SIZE
	.comm	_AR_PHY_PAPRD_TRAINER_CNTL3_CF_PAPRD_BBTXMIX_DISABLE,4,2 ## @AR_PHY_PAPRD_TRAINER_CNTL3_CF_PAPRD_BBTXMIX_DISABLE
	.comm	_AR_PHY_PAPRD_TRAINER_CNTL4,4,2 ## @AR_PHY_PAPRD_TRAINER_CNTL4
	.comm	_AR_PHY_PAPRD_TRAINER_CNTL4_CF_PAPRD_SAFETY_DELTA,4,2 ## @AR_PHY_PAPRD_TRAINER_CNTL4_CF_PAPRD_SAFETY_DELTA
	.comm	_AR_PHY_PAPRD_TRAINER_CNTL4_CF_PAPRD_MIN_CORR,4,2 ## @AR_PHY_PAPRD_TRAINER_CNTL4_CF_PAPRD_MIN_CORR
	.comm	_AR_PHY_PAPRD_TRAINER_CNTL4_CF_PAPRD_NUM_TRAIN_SAMPLES,4,2 ## @AR_PHY_PAPRD_TRAINER_CNTL4_CF_PAPRD_NUM_TRAIN_SAMPLES
	.comm	_AR_PHY_PAPRD_PRE_POST_SCALE_0_B0,4,2 ## @AR_PHY_PAPRD_PRE_POST_SCALE_0_B0
	.comm	_AR_PHY_PAPRD_PRE_POST_SCALING,4,2 ## @AR_PHY_PAPRD_PRE_POST_SCALING
	.comm	_AR_PHY_PAPRD_PRE_POST_SCALE_1_B0,4,2 ## @AR_PHY_PAPRD_PRE_POST_SCALE_1_B0
	.comm	_AR_PHY_PAPRD_PRE_POST_SCALE_2_B0,4,2 ## @AR_PHY_PAPRD_PRE_POST_SCALE_2_B0
	.comm	_AR_PHY_PAPRD_PRE_POST_SCALE_3_B0,4,2 ## @AR_PHY_PAPRD_PRE_POST_SCALE_3_B0
	.comm	_AR_PHY_PAPRD_PRE_POST_SCALE_4_B0,4,2 ## @AR_PHY_PAPRD_PRE_POST_SCALE_4_B0
	.comm	_AR_PHY_PAPRD_PRE_POST_SCALE_5_B0,4,2 ## @AR_PHY_PAPRD_PRE_POST_SCALE_5_B0
	.comm	_AR_PHY_PAPRD_PRE_POST_SCALE_6_B0,4,2 ## @AR_PHY_PAPRD_PRE_POST_SCALE_6_B0
	.comm	_AR_PHY_PAPRD_PRE_POST_SCALE_7_B0,4,2 ## @AR_PHY_PAPRD_PRE_POST_SCALE_7_B0
	.no_dead_strip	_ar9003_paprd_setup_single_table
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ar9003_paprd_setup_single_table
_ar9003_paprd_setup_single_table:       ; @ar9003_paprd_setup_single_table
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x0
	bl	_ath9k_hw_common
	mov	x20, x0
	ldr	w23, [x19]
	ldr	w0, [x19, #16]
	bl	_IS_CHAN_2GHZ
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_ar9003_get_training_power_2g
	b	LBB0_3
LBB0_2:
	mov	x0, x19
	bl	_ar9003_get_training_power_5g
LBB0_3:
	mov	x21, x0
Lloh0:
	adrp	x22, _CALIBRATE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _CALIBRATE@GOTPAGEOFF]
	ldr	w1, [x22]
	ldr	w8, [x19, #4]
	stp	x21, x8, [sp]
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	bl	_ath_dbg
	tbnz	w21, #31, LBB0_17
; %bb.4:
	str	w21, [x19, #8]
	mov	x0, x19
	bl	_AR_SREV_9330
	cmp	x0, #0
Lloh4:
	adrp	x8, _AR_PHY_PAPRD_AM2AM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AR_PHY_PAPRD_AM2AM@GOTPAGEOFF]
	csel	w21, w23, wzr, eq
Lloh6:
	ldr	w1, [x8]
Lloh7:
	adrp	x8, _AR_PHY_PAPRD_AM2AM_MASK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AR_PHY_PAPRD_AM2AM_MASK@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	ldr	w3, [x19]
	mov	x0, x19
	bl	_REG_RMW_FIELD
Lloh10:
	adrp	x8, _AR_PHY_PAPRD_AM2PM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AR_PHY_PAPRD_AM2PM@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x8, _AR_PHY_PAPRD_AM2PM_MASK@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AR_PHY_PAPRD_AM2PM_MASK@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, x21
	bl	_REG_RMW_FIELD
Lloh16:
	adrp	x8, _AR_PHY_PAPRD_HT40@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AR_PHY_PAPRD_HT40@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x8, _AR_PHY_PAPRD_HT40_MASK@GOTPAGE
Lloh20:
	ldr	x8, [x8, _AR_PHY_PAPRD_HT40_MASK@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	ldr	w3, [x19, #12]
	mov	x0, x19
	bl	_REG_RMW_FIELD
	ldr	w1, [x22]
	ldr	w8, [x19]
	ldr	w9, [x19, #12]
	stp	x8, x9, [sp]
Lloh22:
	adrp	x2, l_.str.2@PAGE
Lloh23:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_ath_dbg
	ldr	w8, [x19, #20]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.5:
	mov	x22, #0
Lloh24:
	adrp	x26, _AR_PHY_PAPRD_CTRL1_ADAPTIVE_AM2AM_ENABLE@GOTPAGE
Lloh25:
	ldr	x26, [x26, _AR_PHY_PAPRD_CTRL1_ADAPTIVE_AM2AM_ENABLE@GOTPAGEOFF]
Lloh26:
	adrp	x27, _AR_PHY_PAPRD_CTRL1_ADAPTIVE_SCALING_ENA@GOTPAGE
Lloh27:
	ldr	x27, [x27, _AR_PHY_PAPRD_CTRL1_ADAPTIVE_SCALING_ENA@GOTPAGEOFF]
Lloh28:
	adrp	x28, _ar9003_paprd_setup_single_table.ctrl1@PAGE
Lloh29:
	add	x28, x28, _ar9003_paprd_setup_single_table.ctrl1@PAGEOFF
Lloh30:
	adrp	x23, _AR_PHY_PAPRD_CTRL1_PA_GAIN_SCALE_FACT_MASK@GOTPAGE
Lloh31:
	ldr	x23, [x23, _AR_PHY_PAPRD_CTRL1_PA_GAIN_SCALE_FACT_MASK@GOTPAGEOFF]
Lloh32:
	adrp	x24, _AR_PHY_PAPRD_CTRL1_PAPRD_MAG_SCALE_FACT@GOTPAGE
Lloh33:
	ldr	x24, [x24, _AR_PHY_PAPRD_CTRL1_PAPRD_MAG_SCALE_FACT@GOTPAGEOFF]
Lloh34:
	adrp	x25, _AR_PHY_PAPRD_CTRL0_PAPRD_MAG_THRSH@GOTPAGE
Lloh35:
	ldr	x25, [x25, _AR_PHY_PAPRD_CTRL0_PAPRD_MAG_THRSH@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x21, x22, #2
Lloh36:
	adrp	x8, _ar9003_paprd_setup_single_table.ctrl0@PAGE
Lloh37:
	add	x8, x8, _ar9003_paprd_setup_single_table.ctrl0@PAGEOFF
	ldr	w20, [x8, x21]
Lloh38:
	adrp	x8, _AR_PHY_PAPRD_CTRL0_USE_SINGLE_TABLE_MASK@GOTPAGE
Lloh39:
	ldr	x8, [x8, _AR_PHY_PAPRD_CTRL0_USE_SINGLE_TABLE_MASK@GOTPAGEOFF]
Lloh40:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	w3, #1
	bl	_REG_RMW_FIELD
	ldr	w21, [x28, x21]
Lloh41:
	adrp	x8, _AR_PHY_PAPRD_CTRL1_ADAPTIVE_AM2PM_ENABLE@GOTPAGE
Lloh42:
	ldr	x8, [x8, _AR_PHY_PAPRD_CTRL1_ADAPTIVE_AM2PM_ENABLE@GOTPAGEOFF]
Lloh43:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x21
	mov	w3, #1
	bl	_REG_RMW_FIELD
	ldr	w2, [x26]
	mov	x0, x19
	mov	x1, x21
	mov	w3, #1
	bl	_REG_RMW_FIELD
	ldr	w2, [x27]
	mov	x0, x19
	mov	x1, x21
	mov	w3, #0
	bl	_REG_RMW_FIELD
	ldr	w2, [x23]
	mov	x0, x19
	mov	x1, x21
	mov	w3, #181
	bl	_REG_RMW_FIELD
	ldr	w2, [x24]
	mov	x0, x19
	mov	x1, x21
	mov	w3, #361
	bl	_REG_RMW_FIELD
	ldr	w2, [x27]
	mov	x0, x19
	mov	x1, x21
	mov	w3, #0
	bl	_REG_RMW_FIELD
	ldr	w2, [x25]
	mov	x0, x19
	mov	x1, x20
	mov	w3, #3
	bl	_REG_RMW_FIELD
	add	x22, x22, #1
	ldrsw	x8, [x19, #20]
	cmp	x22, x8
	b.lt	LBB0_6
LBB0_7:
	mov	x0, x19
	mov	w1, #0
	bl	_ar9003_paprd_enable
Lloh44:
	adrp	x20, _AR_PHY_PAPRD_TRAINER_CNTL1@GOTPAGE
Lloh45:
	ldr	x20, [x20, _AR_PHY_PAPRD_TRAINER_CNTL1@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh46:
	adrp	x8, _AR_PHY_PAPRD_TRAINER_CNTL1_CF_PAPRD_LB_SKIP@GOTPAGE
Lloh47:
	ldr	x8, [x8, _AR_PHY_PAPRD_TRAINER_CNTL1_CF_PAPRD_LB_SKIP@GOTPAGEOFF]
Lloh48:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #48
	bl	_REG_RMW_FIELD
	ldr	w1, [x20]
Lloh49:
	adrp	x8, _AR_PHY_PAPRD_TRAINER_CNTL1_CF_PAPRD_LB_ENABLE@GOTPAGE
Lloh50:
	ldr	x8, [x8, _AR_PHY_PAPRD_TRAINER_CNTL1_CF_PAPRD_LB_ENABLE@GOTPAGEOFF]
Lloh51:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #1
	bl	_REG_RMW_FIELD
	ldr	w1, [x20]
Lloh52:
	adrp	x8, _AR_PHY_PAPRD_TRAINER_CNTL1_CF_PAPRD_TX_GAIN_FORCE@GOTPAGE
Lloh53:
	ldr	x8, [x8, _AR_PHY_PAPRD_TRAINER_CNTL1_CF_PAPRD_TX_GAIN_FORCE@GOTPAGEOFF]
Lloh54:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #1
	bl	_REG_RMW_FIELD
	ldr	w1, [x20]
Lloh55:
	adrp	x8, _AR_PHY_PAPRD_TRAINER_CNTL1_CF_PAPRD_RX_BB_GAIN_FORCE@GOTPAGE
Lloh56:
	ldr	x8, [x8, _AR_PHY_PAPRD_TRAINER_CNTL1_CF_PAPRD_RX_BB_GAIN_FORCE@GOTPAGEOFF]
Lloh57:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #0
	bl	_REG_RMW_FIELD
	ldr	w1, [x20]
Lloh58:
	adrp	x8, _AR_PHY_PAPRD_TRAINER_CNTL1_CF_PAPRD_IQCORR_ENABLE@GOTPAGE
Lloh59:
	ldr	x8, [x8, _AR_PHY_PAPRD_TRAINER_CNTL1_CF_PAPRD_IQCORR_ENABLE@GOTPAGEOFF]
Lloh60:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #0
	bl	_REG_RMW_FIELD
	ldr	w1, [x20]
Lloh61:
	adrp	x8, _AR_PHY_PAPRD_TRAINER_CNTL1_CF_PAPRD_AGC2_SETTLING@GOTPAGE
Lloh62:
	ldr	x8, [x8, _AR_PHY_PAPRD_TRAINER_CNTL1_CF_PAPRD_AGC2_SETTLING@GOTPAGEOFF]
Lloh63:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #28
	bl	_REG_RMW_FIELD
	ldr	w1, [x20]
Lloh64:
	adrp	x8, _AR_PHY_PAPRD_TRAINER_CNTL1_CF_CF_PAPRD_TRAIN_ENABLE@GOTPAGE
Lloh65:
	ldr	x8, [x8, _AR_PHY_PAPRD_TRAINER_CNTL1_CF_CF_PAPRD_TRAIN_ENABLE@GOTPAGEOFF]
Lloh66:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #1
	bl	_REG_RMW_FIELD
	mov	x0, x19
	bl	_AR_SREV_9485
	cbz	x0, LBB0_18
; %bb.8:
	mov	w20, #148
LBB0_9:
Lloh67:
	adrp	x8, _AR_PHY_PAPRD_TRAINER_CNTL2@GOTPAGE
Lloh68:
	ldr	x8, [x8, _AR_PHY_PAPRD_TRAINER_CNTL2@GOTPAGEOFF]
Lloh69:
	ldr	w1, [x8]
Lloh70:
	adrp	x8, _AR_PHY_PAPRD_TRAINER_CNTL2_CF_PAPRD_INIT_RX_BB_GAIN@GOTPAGE
Lloh71:
	ldr	x8, [x8, _AR_PHY_PAPRD_TRAINER_CNTL2_CF_PAPRD_INIT_RX_BB_GAIN@GOTPAGEOFF]
Lloh72:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, x20
	bl	_REG_RMW_FIELD
Lloh73:
	adrp	x21, _AR_PHY_PAPRD_TRAINER_CNTL3@GOTPAGE
Lloh74:
	ldr	x21, [x21, _AR_PHY_PAPRD_TRAINER_CNTL3@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh75:
	adrp	x8, _AR_PHY_PAPRD_TRAINER_CNTL3_CF_PAPRD_FINE_CORR_LEN@GOTPAGE
Lloh76:
	ldr	x8, [x8, _AR_PHY_PAPRD_TRAINER_CNTL3_CF_PAPRD_FINE_CORR_LEN@GOTPAGEOFF]
Lloh77:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #4
	bl	_REG_RMW_FIELD
	ldr	w1, [x21]
Lloh78:
	adrp	x8, _AR_PHY_PAPRD_TRAINER_CNTL3_CF_PAPRD_COARSE_CORR_LEN@GOTPAGE
Lloh79:
	ldr	x8, [x8, _AR_PHY_PAPRD_TRAINER_CNTL3_CF_PAPRD_COARSE_CORR_LEN@GOTPAGEOFF]
Lloh80:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #4
	bl	_REG_RMW_FIELD
	ldr	w1, [x21]
Lloh81:
	adrp	x8, _AR_PHY_PAPRD_TRAINER_CNTL3_CF_PAPRD_NUM_CORR_STAGES@GOTPAGE
Lloh82:
	ldr	x8, [x8, _AR_PHY_PAPRD_TRAINER_CNTL3_CF_PAPRD_NUM_CORR_STAGES@GOTPAGEOFF]
Lloh83:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #7
	bl	_REG_RMW_FIELD
	ldr	w1, [x21]
Lloh84:
	adrp	x8, _AR_PHY_PAPRD_TRAINER_CNTL3_CF_PAPRD_MIN_LOOPBACK_DEL@GOTPAGE
Lloh85:
	ldr	x8, [x8, _AR_PHY_PAPRD_TRAINER_CNTL3_CF_PAPRD_MIN_LOOPBACK_DEL@GOTPAGEOFF]
Lloh86:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #1
	bl	_REG_RMW_FIELD
	mov	x0, x19
	bl	_AR_SREV_9485
	cbnz	x0, LBB0_13
; %bb.10:
	mov	x0, x19
	bl	_AR_SREV_9462
	cbnz	x0, LBB0_13
; %bb.11:
	mov	x0, x19
	bl	_AR_SREV_9565
	cbnz	x0, LBB0_13
; %bb.12:
	mov	x0, x19
	bl	_AR_SREV_9550
	cbz	x0, LBB0_25
LBB0_13:
	mov	w20, #-3
LBB0_14:
	ldr	w1, [x21]
Lloh87:
	adrp	x8, _AR_PHY_PAPRD_TRAINER_CNTL3_CF_PAPRD_QUICK_DROP@GOTPAGE
Lloh88:
	ldr	x8, [x8, _AR_PHY_PAPRD_TRAINER_CNTL3_CF_PAPRD_QUICK_DROP@GOTPAGEOFF]
Lloh89:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, x20
	bl	_REG_RMW_FIELD
	ldr	w0, [x19, #16]
	bl	_IS_CHAN_2GHZ
	cbz	x0, LBB0_21
; %bb.15:
	mov	x0, x19
	bl	_AR_SREV_9462
	mov	w20, #-10
	cbnz	x0, LBB0_22
; %bb.16:
	mov	x0, x19
	bl	_AR_SREV_9565
	cmp	x0, #0
	mov	w8, #-15
	csel	w20, w8, w20, eq
	b	LBB0_22
LBB0_17:
	ldr	w1, [x22]
Lloh90:
	adrp	x2, l_.str.1@PAGE
Lloh91:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_ath_dbg
Lloh92:
	adrp	x8, _ERANGE@GOTPAGE
Lloh93:
	ldr	x8, [x8, _ERANGE@GOTPAGEOFF]
Lloh94:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_23
LBB0_18:
	ldr	w0, [x19, #16]
	bl	_IS_CHAN_2GHZ
	cbz	x0, LBB0_24
; %bb.19:
	mov	x0, x19
	bl	_AR_SREV_9462
	mov	w20, #145
	cbnz	x0, LBB0_9
; %bb.20:
	mov	x0, x19
	bl	_AR_SREV_9565
	cmp	x0, #0
	mov	w8, #147
	csel	w20, w8, w20, eq
	b	LBB0_9
LBB0_21:
	mov	w20, #-10
LBB0_22:
	ldr	w1, [x21]
Lloh95:
	adrp	x8, _AR_PHY_PAPRD_TRAINER_CNTL3_CF_PAPRD_ADC_DESIRED_SIZE@GOTPAGE
Lloh96:
	ldr	x8, [x8, _AR_PHY_PAPRD_TRAINER_CNTL3_CF_PAPRD_ADC_DESIRED_SIZE@GOTPAGEOFF]
Lloh97:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, x20
	bl	_REG_RMW_FIELD
	ldr	w1, [x21]
Lloh98:
	adrp	x8, _AR_PHY_PAPRD_TRAINER_CNTL3_CF_PAPRD_BBTXMIX_DISABLE@GOTPAGE
Lloh99:
	ldr	x8, [x8, _AR_PHY_PAPRD_TRAINER_CNTL3_CF_PAPRD_BBTXMIX_DISABLE@GOTPAGEOFF]
Lloh100:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #1
	bl	_REG_RMW_FIELD
Lloh101:
	adrp	x20, _AR_PHY_PAPRD_TRAINER_CNTL4@GOTPAGE
Lloh102:
	ldr	x20, [x20, _AR_PHY_PAPRD_TRAINER_CNTL4@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh103:
	adrp	x8, _AR_PHY_PAPRD_TRAINER_CNTL4_CF_PAPRD_SAFETY_DELTA@GOTPAGE
Lloh104:
	ldr	x8, [x8, _AR_PHY_PAPRD_TRAINER_CNTL4_CF_PAPRD_SAFETY_DELTA@GOTPAGEOFF]
Lloh105:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #0
	bl	_REG_RMW_FIELD
	ldr	w1, [x20]
Lloh106:
	adrp	x8, _AR_PHY_PAPRD_TRAINER_CNTL4_CF_PAPRD_MIN_CORR@GOTPAGE
Lloh107:
	ldr	x8, [x8, _AR_PHY_PAPRD_TRAINER_CNTL4_CF_PAPRD_MIN_CORR@GOTPAGEOFF]
Lloh108:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #400
	bl	_REG_RMW_FIELD
	ldr	w1, [x20]
Lloh109:
	adrp	x8, _AR_PHY_PAPRD_TRAINER_CNTL4_CF_PAPRD_NUM_TRAIN_SAMPLES@GOTPAGE
Lloh110:
	ldr	x8, [x8, _AR_PHY_PAPRD_TRAINER_CNTL4_CF_PAPRD_NUM_TRAIN_SAMPLES@GOTPAGEOFF]
Lloh111:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #100
	bl	_REG_RMW_FIELD
Lloh112:
	adrp	x8, _AR_PHY_PAPRD_PRE_POST_SCALE_0_B0@GOTPAGE
Lloh113:
	ldr	x8, [x8, _AR_PHY_PAPRD_PRE_POST_SCALE_0_B0@GOTPAGEOFF]
Lloh114:
	ldr	w1, [x8]
Lloh115:
	adrp	x20, _AR_PHY_PAPRD_PRE_POST_SCALING@GOTPAGE
Lloh116:
	ldr	x20, [x20, _AR_PHY_PAPRD_PRE_POST_SCALING@GOTPAGEOFF]
	ldr	w2, [x20]
	mov	x0, x19
	mov	w3, #64768
	movk	w3, #3, lsl #16
	bl	_REG_RMW_FIELD
Lloh117:
	adrp	x8, _AR_PHY_PAPRD_PRE_POST_SCALE_1_B0@GOTPAGE
Lloh118:
	ldr	x8, [x8, _AR_PHY_PAPRD_PRE_POST_SCALE_1_B0@GOTPAGEOFF]
Lloh119:
	ldr	w1, [x8]
	ldr	w2, [x20]
	mov	x0, x19
	mov	w3, #51471
	movk	w3, #3, lsl #16
	bl	_REG_RMW_FIELD
Lloh120:
	adrp	x8, _AR_PHY_PAPRD_PRE_POST_SCALE_2_B0@GOTPAGE
Lloh121:
	ldr	x8, [x8, _AR_PHY_PAPRD_PRE_POST_SCALE_2_B0@GOTPAGEOFF]
Lloh122:
	ldr	w1, [x8]
	ldr	w2, [x20]
	mov	x0, x19
	mov	w3, #37151
	movk	w3, #3, lsl #16
	bl	_REG_RMW_FIELD
Lloh123:
	adrp	x8, _AR_PHY_PAPRD_PRE_POST_SCALE_3_B0@GOTPAGE
Lloh124:
	ldr	x8, [x8, _AR_PHY_PAPRD_PRE_POST_SCALE_3_B0@GOTPAGEOFF]
Lloh125:
	ldr	w1, [x8]
	ldr	w2, [x20]
	mov	x0, x19
	mov	w3, #23856
	movk	w3, #3, lsl #16
	bl	_REG_RMW_FIELD
Lloh126:
	adrp	x8, _AR_PHY_PAPRD_PRE_POST_SCALE_4_B0@GOTPAGE
Lloh127:
	ldr	x8, [x8, _AR_PHY_PAPRD_PRE_POST_SCALE_4_B0@GOTPAGEOFF]
Lloh128:
	ldr	w1, [x8]
	ldr	w2, [x20]
	mov	x0, x19
	mov	w3, #11586
	movk	w3, #3, lsl #16
	bl	_REG_RMW_FIELD
Lloh129:
	adrp	x8, _AR_PHY_PAPRD_PRE_POST_SCALE_5_B0@GOTPAGE
Lloh130:
	ldr	x8, [x8, _AR_PHY_PAPRD_PRE_POST_SCALE_5_B0@GOTPAGEOFF]
Lloh131:
	ldr	w1, [x8]
	ldr	w2, [x20]
	mov	x0, x19
	mov	w3, #341
	movk	w3, #3, lsl #16
	bl	_REG_RMW_FIELD
Lloh132:
	adrp	x8, _AR_PHY_PAPRD_PRE_POST_SCALE_6_B0@GOTPAGE
Lloh133:
	ldr	x8, [x8, _AR_PHY_PAPRD_PRE_POST_SCALE_6_B0@GOTPAGEOFF]
Lloh134:
	ldr	w1, [x8]
	ldr	w2, [x20]
	mov	x0, x19
	mov	w3, #54634
	movk	w3, #2, lsl #16
	bl	_REG_RMW_FIELD
Lloh135:
	adrp	x8, _AR_PHY_PAPRD_PRE_POST_SCALE_7_B0@GOTPAGE
Lloh136:
	ldr	x8, [x8, _AR_PHY_PAPRD_PRE_POST_SCALE_7_B0@GOTPAGEOFF]
Lloh137:
	ldr	w1, [x8]
	ldr	w2, [x20]
	mov	x0, x19
	mov	w3, #44415
	movk	w3, #2, lsl #16
	bl	_REG_RMW_FIELD
	mov	w0, #0
LBB0_23:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_24:
	mov	w20, #137
	b	LBB0_9
LBB0_25:
	mov	x0, x19
	bl	_AR_SREV_9330
	mov	w20, #-3
	cbnz	x0, LBB0_14
; %bb.26:
	mov	x0, x19
	bl	_AR_SREV_9340
	cmp	x0, #0
	mov	w8, #-6
	csel	w20, w8, w20, eq
	b	LBB0_14
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGot	Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh87, Lloh88, Lloh89
	.loh AdrpLdrGotLdr	Lloh92, Lloh93, Lloh94
	.loh AdrpAdd	Lloh90, Lloh91
	.loh AdrpLdrGotLdr	Lloh135, Lloh136, Lloh137
	.loh AdrpLdrGotLdr	Lloh132, Lloh133, Lloh134
	.loh AdrpLdrGotLdr	Lloh129, Lloh130, Lloh131
	.loh AdrpLdrGotLdr	Lloh126, Lloh127, Lloh128
	.loh AdrpLdrGotLdr	Lloh123, Lloh124, Lloh125
	.loh AdrpLdrGotLdr	Lloh120, Lloh121, Lloh122
	.loh AdrpLdrGotLdr	Lloh117, Lloh118, Lloh119
	.loh AdrpLdrGot	Lloh115, Lloh116
	.loh AdrpLdrGotLdr	Lloh112, Lloh113, Lloh114
	.loh AdrpLdrGotLdr	Lloh109, Lloh110, Lloh111
	.loh AdrpLdrGotLdr	Lloh106, Lloh107, Lloh108
	.loh AdrpLdrGotLdr	Lloh103, Lloh104, Lloh105
	.loh AdrpLdrGot	Lloh101, Lloh102
	.loh AdrpLdrGotLdr	Lloh98, Lloh99, Lloh100
	.loh AdrpLdrGotLdr	Lloh95, Lloh96, Lloh97
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @ar9003_paprd_setup_single_table.ctrl0
_ar9003_paprd_setup_single_table.ctrl0:
	.long	133                             ; 0x85
	.long	132                             ; 0x84
	.long	131                             ; 0x83

	.p2align	2                               ; @ar9003_paprd_setup_single_table.ctrl1
_ar9003_paprd_setup_single_table.ctrl1:
	.long	130                             ; 0x82
	.long	129                             ; 0x81
	.long	128                             ; 0x80

	.comm	_CALIBRATE,4,2                  ; @CALIBRATE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Training power: %d, Target power: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"PAPRD target power delta out of range\n"

	.comm	_ERANGE,4,2                     ; @ERANGE
	.comm	_AR_PHY_PAPRD_AM2AM,4,2         ; @AR_PHY_PAPRD_AM2AM
	.comm	_AR_PHY_PAPRD_AM2AM_MASK,4,2    ; @AR_PHY_PAPRD_AM2AM_MASK
	.comm	_AR_PHY_PAPRD_AM2PM,4,2         ; @AR_PHY_PAPRD_AM2PM
	.comm	_AR_PHY_PAPRD_AM2PM_MASK,4,2    ; @AR_PHY_PAPRD_AM2PM_MASK
	.comm	_AR_PHY_PAPRD_HT40,4,2          ; @AR_PHY_PAPRD_HT40
	.comm	_AR_PHY_PAPRD_HT40_MASK,4,2     ; @AR_PHY_PAPRD_HT40_MASK
l_.str.2:                               ; @.str.2
	.asciz	"PAPRD HT20 mask: 0x%x, HT40 mask: 0x%x\n"

	.comm	_AR_PHY_PAPRD_CTRL0_USE_SINGLE_TABLE_MASK,4,2 ; @AR_PHY_PAPRD_CTRL0_USE_SINGLE_TABLE_MASK
	.comm	_AR_PHY_PAPRD_CTRL1_ADAPTIVE_AM2PM_ENABLE,4,2 ; @AR_PHY_PAPRD_CTRL1_ADAPTIVE_AM2PM_ENABLE
	.comm	_AR_PHY_PAPRD_CTRL1_ADAPTIVE_AM2AM_ENABLE,4,2 ; @AR_PHY_PAPRD_CTRL1_ADAPTIVE_AM2AM_ENABLE
	.comm	_AR_PHY_PAPRD_CTRL1_ADAPTIVE_SCALING_ENA,4,2 ; @AR_PHY_PAPRD_CTRL1_ADAPTIVE_SCALING_ENA
	.comm	_AR_PHY_PAPRD_CTRL1_PA_GAIN_SCALE_FACT_MASK,4,2 ; @AR_PHY_PAPRD_CTRL1_PA_GAIN_SCALE_FACT_MASK
	.comm	_AR_PHY_PAPRD_CTRL1_PAPRD_MAG_SCALE_FACT,4,2 ; @AR_PHY_PAPRD_CTRL1_PAPRD_MAG_SCALE_FACT
	.comm	_AR_PHY_PAPRD_CTRL0_PAPRD_MAG_THRSH,4,2 ; @AR_PHY_PAPRD_CTRL0_PAPRD_MAG_THRSH
	.comm	_AR_PHY_PAPRD_TRAINER_CNTL1,4,2 ; @AR_PHY_PAPRD_TRAINER_CNTL1
	.comm	_AR_PHY_PAPRD_TRAINER_CNTL1_CF_PAPRD_LB_SKIP,4,2 ; @AR_PHY_PAPRD_TRAINER_CNTL1_CF_PAPRD_LB_SKIP
	.comm	_AR_PHY_PAPRD_TRAINER_CNTL1_CF_PAPRD_LB_ENABLE,4,2 ; @AR_PHY_PAPRD_TRAINER_CNTL1_CF_PAPRD_LB_ENABLE
	.comm	_AR_PHY_PAPRD_TRAINER_CNTL1_CF_PAPRD_TX_GAIN_FORCE,4,2 ; @AR_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B0
	.comm	_AR_PHY_PAPRD_PRE_POST_SCALE_2_B0,4,2 ; @AR_PHY_PAPRD_PRE_POST_SCALE_2_B0
	.comm	_AR_PHY_PAPRD_PRE_POST_SCALE_3_B0,4,2 ; @AR_PHY_PAPRD_PRE_POST_SCALE_3_B0
	.comm	_AR_PHY_PAPRD_PRE_POST_SCALE_4_B0,4,2 ; @AR_PHY_PAPRD_PRE_POST_SCALE_4_B0
	.comm	_AR_PHY_PAPRD_PRE_POST_SCALE_5_B0,4,2 ; @AR_PHY_PAPRD_PRE_POST_SCALE_5_B0
	.comm	_AR_PHY_PAPRD_PRE_POST_SCALE_6_B0,4,2 ; @AR_PHY_PAPRD_PRE_POST_SCALE_6_B0
	.comm	_AR_PHY_PAPRD_PRE_POST_SCALE_7_B0,4,2 ; @AR_PHY_PAPRD_PRE_POST_SCALE_7_B0
	.no_dead_strip	_ar9003_paprd_setup_single_table
.subsections_via_symbols
