	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ar9285_hw_pa_cal
_ar9285_hw_pa_cal:                      ## @ar9285_hw_pa_cal
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_ath9k_hw_common
	movq	l___const.ar9285_hw_pa_cal.regList+48(%rip), %rcx
	movq	%rcx, -64(%rbp)
	movaps	l___const.ar9285_hw_pa_cal.regList+32(%rip), %xmm0
	movaps	%xmm0, -80(%rbp)
	movaps	l___const.ar9285_hw_pa_cal.regList+16(%rip), %xmm0
	movaps	%xmm0, -96(%rbp)
	movaps	l___const.ar9285_hw_pa_cal.regList(%rip), %xmm0
	movaps	%xmm0, -112(%rbp)
	movq	_CALIBRATE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rax, %rdi
	callq	_ath_dbg
	movq	16(%r12), %rax
	movq	_EEP_TXGAIN_TYPE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%r12, %rdi
	callq	*(%rax)
	movq	_AR5416_EEP_TXGAIN_HIGH_POWER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_16
## %bb.1:
	movl	%ebx, -120(%rbp)                ## 4-byte Spill
	leaq	-112(%rbp), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_4
## %bb.2:
	xorl	%ebx, %ebx
	leaq	-112(%rbp), %r14
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	-112(%rbp,%rbx,8), %esi
	movq	%r12, %rdi
	callq	_REG_READ
	movl	%eax, -108(%rbp,%rbx,8)
	incq	%rbx
	movq	%r14, %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_3
LBB0_4:
	movq	%r12, %rdi
	movl	$30772, %esi                    ## imm = 0x7834
	callq	_REG_READ
	andl	$-2, %eax
	movq	%r12, %rdi
	movl	$30772, %esi                    ## imm = 0x7834
	movl	%eax, %edx
	callq	_REG_WRITE
	movq	%r12, %rdi
	movl	$38920, %esi                    ## imm = 0x9808
	callq	_REG_READ
	orl	$134217728, %eax                ## imm = 0x8000000
	movq	%r12, %rdi
	movl	$38920, %esi                    ## imm = 0x9808
	movl	%eax, %edx
	callq	_REG_WRITE
	movq	_AR9285_AN_TOP3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR9285_AN_TOP3_PWDDAC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	$1, %ecx
	callq	_REG_RMW_FIELD
	movq	_AR9285_AN_RXTXBB1@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_AR9285_AN_RXTXBB1_PDRXTXBB1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	$1, %ecx
	callq	_REG_RMW_FIELD
	movl	(%rbx), %esi
	movq	_AR9285_AN_RXTXBB1_PDV2I@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	$1, %ecx
	callq	_REG_RMW_FIELD
	movl	(%rbx), %esi
	movq	_AR9285_AN_RXTXBB1_PDDACIF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	$1, %ecx
	callq	_REG_RMW_FIELD
	movq	_AR9285_AN_RF2G2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR9285_AN_RF2G2_OFFCAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	xorl	%ecx, %ecx
	callq	_REG_RMW_FIELD
	movq	_AR9285_AN_RF2G7@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_AR9285_AN_RF2G7_PWDDB@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	xorl	%ecx, %ecx
	callq	_REG_RMW_FIELD
	movq	_AR9285_AN_RF2G1@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_AR9285_AN_RF2G1_ENPACAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	xorl	%ecx, %ecx
	callq	_REG_RMW_FIELD
	movl	(%rbx), %esi
	movq	_AR9285_AN_RF2G1_PDPADRV1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	xorl	%ecx, %ecx
	callq	_REG_RMW_FIELD
	movl	(%rbx), %esi
	movq	_AR9285_AN_RF2G1_PDPADRV2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	xorl	%ecx, %ecx
	callq	_REG_RMW_FIELD
	movl	(%rbx), %esi
	movq	_AR9285_AN_RF2G1_PDPAOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	xorl	%ecx, %ecx
	callq	_REG_RMW_FIELD
	movq	_AR9285_AN_RF2G8@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR9285_AN_RF2G8_PADRVGN2TAB0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	$7, %ecx
	callq	_REG_RMW_FIELD
	movl	(%r14), %esi
	movq	_AR9285_AN_RF2G7_PADRVGN2TAB0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	xorl	%ecx, %ecx
	callq	_REG_RMW_FIELD
	movq	_AR9285_AN_RF2G6@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%r12, %rdi
	callq	_REG_READ
	movq	_AR9285_AN_RF2G6_CCOMP@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	%eax, %edi
	callq	_MS
	movl	%eax, -116(%rbp)                ## 4-byte Spill
	movl	(%r14), %esi
	movl	(%rbx), %edx
	movq	%r12, %rdi
	movl	$15, %ecx
	callq	_REG_RMW_FIELD
	movq	_AR9285_AN_TOP2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$-905750368, %edx               ## imm = 0xCA0358A0
	callq	_REG_WRITE
	movl	$30, %edi
	callq	_udelay
	movl	(%r14), %esi
	movq	_AR9285_AN_RF2G6_OFFS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	xorl	%ecx, %ecx
	callq	_REG_RMW_FIELD
	movq	_AR9285_AN_RF2G3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR9285_AN_RF2G3_PDVCCOMP@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	%r12, %rdi
	xorl	%ecx, %ecx
	callq	_REG_RMW_FIELD
	movl	$6, %r13d
	movq	_AR9285_AN_RXTXBB1_SPARE9@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	$30772, %esi                    ## imm = 0x7834
	callq	_REG_READ
	movl	$524288, %ebx                   ## imm = 0x80000
	movl	%r13d, %ecx
	shll	%cl, %ebx
	orl	%ebx, %eax
	movq	%r12, %rdi
	movl	$30772, %esi                    ## imm = 0x7834
	movl	%eax, %edx
	callq	_REG_WRITE
	movl	$1, %edi
	callq	_udelay
	movq	%r12, %rdi
	movl	$30772, %esi                    ## imm = 0x7834
	callq	_REG_READ
	notl	%ebx
	andl	%eax, %ebx
	movq	%r12, %rdi
	movl	$30784, %esi                    ## imm = 0x7840
	callq	_REG_READ
	movl	(%r14), %esi
	movl	%eax, %edi
	callq	_MS
	leal	19(%r13), %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	orl	%eax, %ebx
	movq	%r12, %rdi
	movl	$30772, %esi                    ## imm = 0x7834
	movl	%ebx, %edx
	callq	_REG_WRITE
	leal	-1(%r13), %eax
	cmpl	$1, %r13d
	movl	%eax, %r13d
	ja	LBB0_5
## %bb.6:
	movq	_AR9285_AN_RF2G3@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	(%r15), %edx
	movq	%r12, %rdi
	movl	$1, %ecx
	callq	_REG_RMW_FIELD
	movl	$1, %edi
	callq	_udelay
	movq	_AR9285_AN_RF2G9@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_REG_READ
	movl	(%r14), %esi
	movl	%eax, %edi
	callq	_MS
	movl	(%r13), %esi
	movl	(%r15), %edx
	movq	%r12, %rdi
	movl	%eax, %ecx
	callq	_REG_RMW_FIELD
	movq	_AR9285_AN_RF2G6@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_REG_READ
	movq	_AR9285_AN_RF2G6_OFFS@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movl	%eax, %edi
	callq	_MS
	movl	%eax, %ebx
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_REG_READ
	movl	(%r15), %esi
	movl	%eax, %edi
	callq	_MS
	movl	%eax, %r13d
	addl	%ebx, %ebx
	orl	%eax, %ebx
	movl	%ebx, %ecx
	sarl	%ecx
	andl	$1, %r13d
	cmpl	$0, -120(%rbp)                  ## 4-byte Folded Reload
	jne	LBB0_11
## %bb.7:
	cmpl	%ebx, (%r12)
	jne	LBB0_11
## %bb.8:
	movl	4(%r12), %eax
	movq	_MAX_PACAL_SKIPCOUNT@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	jge	LBB0_10
## %bb.9:
	addl	%eax, %eax
	movl	%eax, 4(%r12)
LBB0_10:
	movl	%eax, 8(%r12)
	jmp	LBB0_12
LBB0_11:
	movq	$1, 4(%r12)
	movl	%ebx, (%r12)
LBB0_12:
	movq	_AR9285_AN_RF2G6@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	movq	%r12, %rdi
	callq	_REG_RMW_FIELD
	movq	_AR9285_AN_RF2G3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %edx
	movq	%r12, %rdi
	movl	%r13d, %ecx
	callq	_REG_RMW_FIELD
	movq	%r12, %rdi
	movl	$30772, %esi                    ## imm = 0x7834
	callq	_REG_READ
	orl	$1, %eax
	movq	%r12, %rdi
	movl	$30772, %esi                    ## imm = 0x7834
	movl	%eax, %edx
	callq	_REG_WRITE
	movq	%r12, %rdi
	movl	$38920, %esi                    ## imm = 0x9808
	callq	_REG_READ
	andl	$-134217729, %eax               ## imm = 0xF7FFFFFF
	movq	%r12, %rdi
	movl	$38920, %esi                    ## imm = 0x9808
	movl	%eax, %edx
	callq	_REG_WRITE
	leaq	-112(%rbp), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_15
## %bb.13:
	xorl	%ebx, %ebx
	leaq	-112(%rbp), %r14
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movl	-112(%rbp,%rbx,8), %esi
	movl	-108(%rbp,%rbx,8), %edx
	movq	%r12, %rdi
	callq	_REG_WRITE
	incq	%rbx
	movq	%r14, %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_14
LBB0_15:
	movq	_AR9285_AN_RF2G6@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR9285_AN_RF2G6_CCOMP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	-116(%rbp), %ecx                ## 4-byte Reload
	callq	_REG_RMW_FIELD
LBB0_16:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_18
## %bb.17:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @__const.ar9285_hw_pa_cal.regList
l___const.ar9285_hw_pa_cal.regList:
	.long	30828                           ## 0x786c
	.long	0                               ## 0x0
	.long	30804                           ## 0x7854
	.long	0                               ## 0x0
	.long	30752                           ## 0x7820
	.long	0                               ## 0x0
	.long	30756                           ## 0x7824
	.long	0                               ## 0x0
	.long	30824                           ## 0x7868
	.long	0                               ## 0x0
	.long	30780                           ## 0x783c
	.long	0                               ## 0x0
	.long	30776                           ## 0x7838
	.long	0                               ## 0x0

	.comm	_CALIBRATE,4,2                  ## @CALIBRATE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Running PA Calibration\n"

	.comm	_EEP_TXGAIN_TYPE,4,2            ## @EEP_TXGAIN_TYPE
	.comm	_AR5416_EEP_TXGAIN_HIGH_POWER,8,3 ## @AR5416_EEP_TXGAIN_HIGH_POWER
	.comm	_AR9285_AN_TOP3,4,2             ## @AR9285_AN_TOP3
	.comm	_AR9285_AN_TOP3_PWDDAC,4,2      ## @AR9285_AN_TOP3_PWDDAC
	.comm	_AR9285_AN_RXTXBB1,4,2          ## @AR9285_AN_RXTXBB1
	.comm	_AR9285_AN_RXTXBB1_PDRXTXBB1,4,2 ## @AR9285_AN_RXTXBB1_PDRXTXBB1
	.comm	_AR9285_AN_RXTXBB1_PDV2I,4,2    ## @AR9285_AN_RXTXBB1_PDV2I
	.comm	_AR9285_AN_RXTXBB1_PDDACIF,4,2  ## @AR9285_AN_RXTXBB1_PDDACIF
	.comm	_AR9285_AN_RF2G2,4,2            ## @AR9285_AN_RF2G2
	.comm	_AR9285_AN_RF2G2_OFFCAL,4,2     ## @AR9285_AN_RF2G2_OFFCAL
	.comm	_AR9285_AN_RF2G7,4,2            ## @AR9285_AN_RF2G7
	.comm	_AR9285_AN_RF2G7_PWDDB,4,2      ## @AR9285_AN_RF2G7_PWDDB
	.comm	_AR9285_AN_RF2G1,4,2            ## @AR9285_AN_RF2G1
	.comm	_AR9285_AN_RF2G1_ENPACAL,4,2    ## @AR9285_AN_RF2G1_ENPACAL
	.comm	_AR9285_AN_RF2G1_PDPADRV1,4,2   ## @AR9285_AN_RF2G1_PDPADRV1
	.comm	_AR9285_AN_RF2G1_PDPADRV2,4,2   ## @AR9285_AN_RF2G1_PDPADRV2
	.comm	_AR9285_AN_RF2G1_PDPAOUT,4,2    ## @AR9285_AN_RF2G1_PDPAOUT
	.comm	_AR9285_AN_RF2G8,4,2            ## @AR9285_AN_RF2G8
	.comm	_AR9285_AN_RF2G8_PADRVGN2TAB0,4,2 ## @AR9285_AN_RF2G8_PADRVGN2TAB0
	.comm	_AR9285_AN_RF2G7_PADRVGN2TAB0,4,2 ## @AR9285_AN_RF2G7_PADRVGN2TAB0
	.comm	_AR9285_AN_RF2G6,4,2            ## @AR9285_AN_RF2G6
	.comm	_AR9285_AN_RF2G6_CCOMP,4,2      ## @AR9285_AN_RF2G6_CCOMP
	.comm	_AR9285_AN_TOP2,4,2             ## @AR9285_AN_TOP2
	.comm	_AR9285_AN_RF2G6_OFFS,4,2       ## @AR9285_AN_RF2G6_OFFS
	.comm	_AR9285_AN_RF2G3,4,2            ## @AR9285_AN_RF2G3
	.comm	_AR9285_AN_RF2G3_PDVCCOMP,4,2   ## @AR9285_AN_RF2G3_PDVCCOMP
	.comm	_AR9285_AN_RXTXBB1_SPARE9,4,2   ## @AR9285_AN_RXTXBB1_SPARE9
	.comm	_AR9285_AN_RF2G9,4,2            ## @AR9285_AN_RF2G9
	.comm	_MAX_PACAL_SKIPCOUNT,4,2        ## @MAX_PACAL_SKIPCOUNT
	.no_dead_strip	_ar9285_hw_pa_cal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function ar9285_hw_pa_cal
lCPI0_0:
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_ar9285_hw_pa_cal:                      ; @ar9285_hw_pa_cal
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #72]
	bl	_ath9k_hw_common
Lloh3:
	adrp	x8, l___const.ar9285_hw_pa_cal.regList@PAGE
Lloh4:
	add	x8, x8, l___const.ar9285_hw_pa_cal.regList@PAGEOFF
	ldp	q0, q1, [x8]
	stp	q0, q1, [sp, #16]
	ldr	q0, [x8, #32]
	str	q0, [sp, #48]
	ldr	x8, [x8, #48]
	str	x8, [sp, #64]
Lloh5:
	adrp	x8, _CALIBRATE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CALIBRATE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	bl	_ath_dbg
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
Lloh10:
	adrp	x9, _EEP_TXGAIN_TYPE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _EEP_TXGAIN_TYPE@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x9]
	mov	x0, x19
	blr	x8
Lloh13:
	adrp	x8, _AR5416_EEP_TXGAIN_HIGH_POWER@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AR5416_EEP_TXGAIN_HIGH_POWER@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_16
; %bb.1:
	add	x22, sp, #16
	add	x0, sp, #16
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x21, #0
	orr	x22, x22, #0x4
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w1, [x22, #-4]
	mov	x0, x19
	bl	_REG_READ
	str	w0, [x22], #8
	add	x21, x21, #1
	add	x0, sp, #16
	bl	_ARRAY_SIZE
	cmp	x21, w0, sxtw
	b.lt	LBB0_3
LBB0_4:
	mov	x0, x19
	mov	w1, #30772
	bl	_REG_READ
	and	w2, w0, #0xfffffffe
	mov	x0, x19
	mov	w1, #30772
	bl	_REG_WRITE
	mov	x0, x19
	mov	w1, #38920
	bl	_REG_READ
	orr	w2, w0, #0x8000000
	mov	x0, x19
	mov	w1, #38920
	bl	_REG_WRITE
Lloh16:
	adrp	x8, _AR9285_AN_TOP3@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AR9285_AN_TOP3@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x8, _AR9285_AN_TOP3_PWDDAC@GOTPAGE
Lloh20:
	ldr	x8, [x8, _AR9285_AN_TOP3_PWDDAC@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #1
	bl	_REG_RMW_FIELD
Lloh22:
	adrp	x21, _AR9285_AN_RXTXBB1@GOTPAGE
Lloh23:
	ldr	x21, [x21, _AR9285_AN_RXTXBB1@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh24:
	adrp	x8, _AR9285_AN_RXTXBB1_PDRXTXBB1@GOTPAGE
Lloh25:
	ldr	x8, [x8, _AR9285_AN_RXTXBB1_PDRXTXBB1@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #1
	bl	_REG_RMW_FIELD
	ldr	w1, [x21]
Lloh27:
	adrp	x8, _AR9285_AN_RXTXBB1_PDV2I@GOTPAGE
Lloh28:
	ldr	x8, [x8, _AR9285_AN_RXTXBB1_PDV2I@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #1
	bl	_REG_RMW_FIELD
	ldr	w1, [x21]
Lloh30:
	adrp	x8, _AR9285_AN_RXTXBB1_PDDACIF@GOTPAGE
Lloh31:
	ldr	x8, [x8, _AR9285_AN_RXTXBB1_PDDACIF@GOTPAGEOFF]
Lloh32:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #1
	bl	_REG_RMW_FIELD
Lloh33:
	adrp	x8, _AR9285_AN_RF2G2@GOTPAGE
Lloh34:
	ldr	x8, [x8, _AR9285_AN_RF2G2@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
Lloh36:
	adrp	x8, _AR9285_AN_RF2G2_OFFCAL@GOTPAGE
Lloh37:
	ldr	x8, [x8, _AR9285_AN_RF2G2_OFFCAL@GOTPAGEOFF]
Lloh38:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #0
	bl	_REG_RMW_FIELD
Lloh39:
	adrp	x21, _AR9285_AN_RF2G7@GOTPAGE
Lloh40:
	ldr	x21, [x21, _AR9285_AN_RF2G7@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh41:
	adrp	x8, _AR9285_AN_RF2G7_PWDDB@GOTPAGE
Lloh42:
	ldr	x8, [x8, _AR9285_AN_RF2G7_PWDDB@GOTPAGEOFF]
Lloh43:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #0
	bl	_REG_RMW_FIELD
Lloh44:
	adrp	x22, _AR9285_AN_RF2G1@GOTPAGE
Lloh45:
	ldr	x22, [x22, _AR9285_AN_RF2G1@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh46:
	adrp	x8, _AR9285_AN_RF2G1_ENPACAL@GOTPAGE
Lloh47:
	ldr	x8, [x8, _AR9285_AN_RF2G1_ENPACAL@GOTPAGEOFF]
Lloh48:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #0
	bl	_REG_RMW_FIELD
	ldr	w1, [x22]
Lloh49:
	adrp	x8, _AR9285_AN_RF2G1_PDPADRV1@GOTPAGE
Lloh50:
	ldr	x8, [x8, _AR9285_AN_RF2G1_PDPADRV1@GOTPAGEOFF]
Lloh51:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #0
	bl	_REG_RMW_FIELD
	ldr	w1, [x22]
Lloh52:
	adrp	x8, _AR9285_AN_RF2G1_PDPADRV2@GOTPAGE
Lloh53:
	ldr	x8, [x8, _AR9285_AN_RF2G1_PDPADRV2@GOTPAGEOFF]
Lloh54:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #0
	bl	_REG_RMW_FIELD
	ldr	w1, [x22]
Lloh55:
	adrp	x8, _AR9285_AN_RF2G1_PDPAOUT@GOTPAGE
Lloh56:
	ldr	x8, [x8, _AR9285_AN_RF2G1_PDPAOUT@GOTPAGEOFF]
Lloh57:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #0
	bl	_REG_RMW_FIELD
Lloh58:
	adrp	x8, _AR9285_AN_RF2G8@GOTPAGE
Lloh59:
	ldr	x8, [x8, _AR9285_AN_RF2G8@GOTPAGEOFF]
Lloh60:
	ldr	w1, [x8]
Lloh61:
	adrp	x8, _AR9285_AN_RF2G8_PADRVGN2TAB0@GOTPAGE
Lloh62:
	ldr	x8, [x8, _AR9285_AN_RF2G8_PADRVGN2TAB0@GOTPAGEOFF]
Lloh63:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #7
	bl	_REG_RMW_FIELD
	ldr	w1, [x21]
Lloh64:
	adrp	x8, _AR9285_AN_RF2G7_PADRVGN2TAB0@GOTPAGE
Lloh65:
	ldr	x8, [x8, _AR9285_AN_RF2G7_PADRVGN2TAB0@GOTPAGEOFF]
Lloh66:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #0
	bl	_REG_RMW_FIELD
Lloh67:
	adrp	x23, _AR9285_AN_RF2G6@GOTPAGE
Lloh68:
	ldr	x23, [x23, _AR9285_AN_RF2G6@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_REG_READ
Lloh69:
	adrp	x21, _AR9285_AN_RF2G6_CCOMP@GOTPAGE
Lloh70:
	ldr	x21, [x21, _AR9285_AN_RF2G6_CCOMP@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_MS
	str	w0, [sp, #12]                   ; 4-byte Folded Spill
	ldr	w1, [x23]
	ldr	w2, [x21]
	mov	x0, x19
	mov	w3, #15
	bl	_REG_RMW_FIELD
Lloh71:
	adrp	x8, _AR9285_AN_TOP2@GOTPAGE
Lloh72:
	ldr	x8, [x8, _AR9285_AN_TOP2@GOTPAGEOFF]
Lloh73:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #22688
	movk	w2, #51715, lsl #16
	bl	_REG_WRITE
	mov	w0, #30
	bl	_udelay
	ldr	w1, [x23]
Lloh74:
	adrp	x25, _AR9285_AN_RF2G6_OFFS@GOTPAGE
Lloh75:
	ldr	x25, [x25, _AR9285_AN_RF2G6_OFFS@GOTPAGEOFF]
	ldr	w2, [x25]
	mov	x0, x19
	mov	w3, #0
	bl	_REG_RMW_FIELD
Lloh76:
	adrp	x26, _AR9285_AN_RF2G3@GOTPAGE
Lloh77:
	ldr	x26, [x26, _AR9285_AN_RF2G3@GOTPAGEOFF]
	ldr	w1, [x26]
Lloh78:
	adrp	x27, _AR9285_AN_RF2G3_PDVCCOMP@GOTPAGE
Lloh79:
	ldr	x27, [x27, _AR9285_AN_RF2G3_PDVCCOMP@GOTPAGEOFF]
	ldr	w2, [x27]
	mov	x0, x19
	mov	w3, #0
	bl	_REG_RMW_FIELD
	mov	w28, #6
	mov	w24, #524288
Lloh80:
	adrp	x22, _AR9285_AN_RXTXBB1_SPARE9@GOTPAGE
Lloh81:
	ldr	x22, [x22, _AR9285_AN_RXTXBB1_SPARE9@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	w1, #30772
	bl	_REG_READ
	lsl	w21, w24, w28
	orr	w2, w0, w21
	mov	x0, x19
	mov	w1, #30772
	bl	_REG_WRITE
	mov	w0, #1
	bl	_udelay
	mov	x0, x19
	mov	w1, #30772
	bl	_REG_READ
	bic	w21, w0, w21
	mov	x0, x19
	mov	w1, #30784
	bl	_REG_READ
	ldr	w1, [x22]
	bl	_MS
	add	w8, w28, #19
	lsl	w8, w0, w8
	orr	w2, w8, w21
	mov	x0, x19
	mov	w1, #30772
	bl	_REG_WRITE
	subs	w28, w28, #1
	b.hi	LBB0_5
; %bb.6:
	ldr	w1, [x26]
	ldr	w2, [x27]
	mov	x0, x19
	mov	w3, #1
	bl	_REG_RMW_FIELD
	mov	w0, #1
	bl	_udelay
Lloh82:
	adrp	x8, _AR9285_AN_RF2G9@GOTPAGE
Lloh83:
	ldr	x8, [x8, _AR9285_AN_RF2G9@GOTPAGEOFF]
Lloh84:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_REG_READ
	ldr	w1, [x22]
	bl	_MS
	mov	x3, x0
	ldr	w1, [x26]
	ldr	w2, [x27]
	mov	x0, x19
	bl	_REG_RMW_FIELD
	ldr	w1, [x23]
	mov	x0, x19
	bl	_REG_READ
	ldr	w1, [x25]
	bl	_MS
	mov	x22, x0
	ldr	w1, [x26]
	mov	x0, x19
	bl	_REG_READ
	ldr	w1, [x27]
	bl	_MS
	orr	w8, w0, w22, lsl #1
	asr	w3, w8, #1
	and	w22, w0, #0x1
	cbnz	w20, LBB0_11
; %bb.7:
	ldr	w9, [x19]
	cmp	w9, w8
	b.ne	LBB0_11
; %bb.8:
	ldr	w8, [x19, #4]
Lloh85:
	adrp	x9, _MAX_PACAL_SKIPCOUNT@GOTPAGE
Lloh86:
	ldr	x9, [x9, _MAX_PACAL_SKIPCOUNT@GOTPAGEOFF]
Lloh87:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ge	LBB0_10
; %bb.9:
	lsl	w8, w8, #1
	str	w8, [x19, #4]
LBB0_10:
	str	w8, [x19, #8]
	b	LBB0_12
LBB0_11:
Lloh88:
	adrp	x9, lCPI0_0@PAGE
Lloh89:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
	stur	d0, [x19, #4]
	str	w8, [x19]
LBB0_12:
	ldr	w1, [x23]
	ldr	w2, [x25]
	mov	x0, x19
	bl	_REG_RMW_FIELD
	ldr	w1, [x26]
	ldr	w2, [x27]
	mov	x0, x19
	mov	x3, x22
	bl	_REG_RMW_FIELD
	mov	x0, x19
	mov	w1, #30772
	bl	_REG_READ
	orr	w2, w0, #0x1
	mov	x0, x19
	mov	w1, #30772
	bl	_REG_WRITE
	mov	x0, x19
	mov	w1, #38920
	bl	_REG_READ
	and	w2, w0, #0xf7ffffff
	mov	x0, x19
	mov	w1, #38920
	bl	_REG_WRITE
	add	x22, sp, #16
	add	x0, sp, #16
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_15
; %bb.13:
	mov	x20, #0
	orr	x22, x22, #0x4
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldp	w1, w2, [x22, #-4]
	mov	x0, x19
	bl	_REG_WRITE
	add	x20, x20, #1
	add	x0, sp, #16
	bl	_ARRAY_SIZE
	add	x22, x22, #8
	cmp	x20, w0, sxtw
	b.lt	LBB0_14
LBB0_15:
	ldr	w1, [x23]
Lloh90:
	adrp	x8, _AR9285_AN_RF2G6_CCOMP@GOTPAGE
Lloh91:
	ldr	x8, [x8, _AR9285_AN_RF2G6_CCOMP@GOTPAGEOFF]
Lloh92:
	ldr	w2, [x8]
	mov	x0, x19
	ldr	w3, [sp, #12]                   ; 4-byte Folded Reload
	bl	_REG_RMW_FIELD
LBB0_16:
	ldr	x8, [sp, #72]
Lloh93:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh94:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh95:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.17:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh80, Lloh81
	.loh AdrpLdrGot	Lloh78, Lloh79
	.loh AdrpLdrGot	Lloh76, Lloh77
	.loh AdrpLdrGot	Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGot	Lloh69, Lloh70
	.loh AdrpLdrGot	Lloh67, Lloh68
	.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	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh84
	.loh AdrpLdrGotLdr	Lloh85, Lloh86, Lloh87
	.loh AdrpLdr	Lloh88, Lloh89
	.loh AdrpLdrGotLdr	Lloh90, Lloh91, Lloh92
	.loh AdrpLdrGotLdr	Lloh93, Lloh94, Lloh95
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @__const.ar9285_hw_pa_cal.regList
l___const.ar9285_hw_pa_cal.regList:
	.long	30828                           ; 0x786c
	.long	0                               ; 0x0
	.long	30804                           ; 0x7854
	.long	0                               ; 0x0
	.long	30752                           ; 0x7820
	.long	0                               ; 0x0
	.long	30756                           ; 0x7824
	.long	0                               ; 0x0
	.long	30824                           ; 0x7868
	.long	0                               ; 0x0
	.long	30780                           ; 0x783c
	.long	0                               ; 0x0
	.long	30776                           ; 0x7838
	.long	0                               ; 0x0

	.comm	_CALIBRATE,4,2                  ; @CALIBRATE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Running PA Calibration\n"

	.comm	_EEP_TXGAIN_TYPE,4,2            ; @EEP_TXGAIN_TYPE
	.comm	_AR5416_EEP_TXGAIN_HIGH_POWER,8,3 ; @AR5416_EEP_TXGAIN_HIGH_POWER
	.comm	_AR9285_AN_TOP3,4,2             ; @AR9285_AN_TOP3
	.comm	_AR9285_AN_TOP3_PWDDAC,4,2      ; @AR9285_AN_TOP3_PWDDAC
	.comm	_AR9285_AN_RXTXBB1,4,2          ; @AR9285_AN_RXTXBB1
	.comm	_AR9285_AN_RXTXBB1_PDRXTXBB1,4,2 ; @AR9285_AN_RXTXBB1_PDRXTXBB1
	.comm	_AR9285_AN_RXTXBB1_PDV2I,4,2    ; @AR9285_AN_RXTXBB1_PDV2I
	.comm	_AR9285_AN_RXTXBB1_PDDACIF,4,2  ; @AR9285_AN_RXTXBB1_PDDACIF
	.comm	_AR9285_AN_RF2G2,4,2            ; @AR9285_AN_RF2G2
	.comm	_AR9285_AN_RF2G2_OFFCAL,4,2     ; @AR9285_AN_RF2G2_OFFCAL
	.comm	_AR9285_AN_RF2G7,4,2            ; @AR9285_AN_RF2G7
	.comm	_AR9285_AN_RF2G7_PWDDB,4,2      ; @AR9285_AN_RF2G7_PWDDB
	.comm	_AR9285_AN_RF2G1,4,2            ; @AR9285_AN_RF2G1
	.comm	_AR9285_AN_RF2G1_ENPACAL,4,2    ; @AR9285_AN_RF2G1_ENPACAL
	.comm	_AR9285_AN_RF2G1_PDPADRV1,4,2   ; @AR9285_AN_RF2G1_PDPADRV1
	.comm	_AR9285_AN_RF2G1_PDPADRV2,4,2   ; @AR9285_AN_RF2G1_PDPADRV2
	.comm	_AR9285_AN_RF2G1_PDPAOUT,4,2    ; @AR9285_AN_RF2G1_PDPAOUT
	.comm	_AR9285_AN_RF2G8,4,2            ; @AR9285_AN_RF2G8
	.comm	_AR9285_AN_RF2G8_PADRVGN2TAB0,4,2 ; @AR9285_AN_RF2G8_PADRVGN2TAB0
	.comm	_AR9285_AN_RF2G7_PADRVGN2TAB0,4,2 ; @AR9285_AN_RF2G7_PADRVGN2TAB0
	.comm	_AR9285_AN_RF2G6,4,2            ; @AR9285_AN_RF2G6
	.comm	_AR9285_AN_RF2G6_CCOMP,4,2      ; @AR9285_AN_RF2G6_CCOMP
	.comm	_AR9285_AN_TOP2,4,2             ; @AR9285_AN_TOP2
	.comm	_AR9285_AN_RF2G6_OFFS,4,2       ; @AR9285_AN_RF2G6_OFFS
	.comm	_AR9285_AN_RF2G3,4,2            ; @AR9285_AN_RF2G3
	.comm	_AR9285_AN_RF2G3_PDVCCOMP,4,2   ; @AR9285_AN_RF2G3_PDVCCOMP
	.comm	_AR9285_AN_RXTXBB1_SPARE9,4,2   ; @AR9285_AN_RXTXBB1_SPARE9
	.comm	_AR9285_AN_RF2G9,4,2            ; @AR9285_AN_RF2G9
	.comm	_MAX_PACAL_SKIPCOUNT,4,2        ; @MAX_PACAL_SKIPCOUNT
	.no_dead_strip	_ar9285_hw_pa_cal
.subsections_via_symbols
