	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ar9271_hw_pa_cal
_ar9271_hw_pa_cal:                      ## @ar9271_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, -116(%rbp)                ## 4-byte Spill
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_AR9285_AN_TOP3@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	movl	%eax, -112(%rbp)
	movl	$0, -108(%rbp)
	movq	_AR9285_AN_RXTXBB1@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	movl	%eax, -104(%rbp)
	movl	$0, -100(%rbp)
	movq	_AR9285_AN_RF2G1@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	movl	%eax, -96(%rbp)
	movl	$0, -92(%rbp)
	movq	_AR9285_AN_RF2G2@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -88(%rbp)
	movl	$0, -84(%rbp)
	movq	_AR9285_AN_TOP2@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -80(%rbp)
	movl	$0, -76(%rbp)
	movq	_AR9285_AN_RF2G8@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
	movl	$0, -68(%rbp)
	movq	_AR9285_AN_RF2G7@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movl	$0, -60(%rbp)
	movq	_AR9285_AN_RF2G3@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movl	$0, -52(%rbp)
	leaq	-112(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_REG_READ_ARRAY
	movq	%r15, %rdi
	callq	_ENABLE_REG_RMW_BUFFER
	movq	_AR9285_AN_RF2G6@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_REG_CLR_BIT
	movq	%r15, %rdi
	movl	$38920, %esi                    ## imm = 0x9808
	movl	$134217728, %edx                ## imm = 0x8000000
	callq	_REG_SET_BIT
	movl	(%r13), %esi
	movq	_AR9285_AN_TOP3_PWDDAC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_REG_SET_BIT
	movl	(%r12), %esi
	movq	_AR9285_AN_RXTXBB1_PDRXTXBB1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_REG_SET_BIT
	movl	(%r12), %esi
	movq	_AR9285_AN_RXTXBB1_PDV2I@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_REG_SET_BIT
	movl	(%r12), %esi
	movq	_AR9285_AN_RXTXBB1_PDDACIF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_REG_SET_BIT
	movq	_AR9285_AN_RF2G2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR9285_AN_RF2G2_OFFCAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_REG_CLR_BIT
	movq	_AR9285_AN_RF2G7@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_AR9285_AN_RF2G7_PWDDB@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_REG_CLR_BIT
	movl	(%r14), %esi
	movq	_AR9285_AN_RF2G1_ENPACAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_REG_CLR_BIT
	movl	(%r14), %esi
	movq	_AR9285_AN_RF2G1_PDPADRV1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_REG_CLR_BIT
	movl	(%r14), %esi
	movq	_AR9285_AN_RF2G1_PDPADRV2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_REG_CLR_BIT
	movl	(%r14), %esi
	movq	_AR9285_AN_RF2G6@GOTPCREL(%rip), %r13
	movq	_AR9285_AN_RF2G1_PDPAOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_REG_CLR_BIT
	movq	_AR9285_AN_RF2G8@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR9285_AN_RF2G8_PADRVGN2TAB0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$7, %ecx
	callq	_REG_RMW_FIELD
	movl	(%rbx), %esi
	movq	_AR9285_AN_RF2G7_PADRVGN2TAB0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	callq	_REG_RMW_FIELD
	movq	_AR9285_AN_RF2G3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR9271_AN_RF2G3_CCOMP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$4095, %ecx                     ## imm = 0xFFF
	callq	_REG_RMW_FIELD
	movq	%r15, %rdi
	callq	_REG_RMW_BUFFER_FLUSH
	movq	_AR9285_AN_TOP2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$-905750368, %edx               ## imm = 0xCA0358A0
	callq	_REG_WRITE
	movl	$30, %edi
	callq	_udelay
	movl	(%r13), %esi
	movq	_AR9271_AN_RF2G6_OFFS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	callq	_REG_RMW_FIELD
	movl	$6, %r12d
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_REG_READ
	movl	$1048576, %r14d                 ## imm = 0x100000
	movl	%r12d, %ecx
	shll	%cl, %r14d
	movl	%eax, %ebx
	movl	%eax, %edx
	orl	%r14d, %edx
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_REG_WRITE
	movl	$1, %edi
	callq	_udelay
	notl	%r14d
	andl	%ebx, %r14d
	movq	_AR9285_AN_RF2G9@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_REG_READ
	movq	_AR9285_AN_RXTXBB1_SPARE9@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_MS
	movl	%eax, %ebx
	leal	20(%r12), %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %ebx
	orl	%r14d, %ebx
	movl	(%r13), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_REG_WRITE
	decl	%r12d
	jne	LBB0_1
## %bb.2:
	shrl	$20, %ebx
	andl	$127, %ebx
	cmpl	$0, -116(%rbp)                  ## 4-byte Folded Reload
	jne	LBB0_7
## %bb.3:
	cmpl	%ebx, (%r15)
	jne	LBB0_7
## %bb.4:
	movl	4(%r15), %eax
	movq	_MAX_PACAL_SKIPCOUNT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jge	LBB0_6
## %bb.5:
	addl	%eax, %eax
	movl	%eax, 4(%r15)
LBB0_6:
	movl	%eax, 8(%r15)
	jmp	LBB0_8
LBB0_7:
	movq	$1, 4(%r15)
	movl	%ebx, (%r15)
LBB0_8:
	movq	%r15, %rdi
	callq	_ENABLE_REG_RMW_BUFFER
	movl	(%r13), %esi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_REG_SET_BIT
	movq	%r15, %rdi
	movl	$38920, %esi                    ## imm = 0x9808
	movl	$134217728, %edx                ## imm = 0x8000000
	callq	_REG_CLR_BIT
	movq	%r15, %rdi
	callq	_REG_RMW_BUFFER_FLUSH
	movq	%r15, %rdi
	callq	_ENABLE_REGWRITE_BUFFER
	leaq	-112(%rbp), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	je	LBB0_11
## %bb.9:
	xorl	%ebx, %ebx
	leaq	-112(%rbp), %r14
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	-112(%rbp,%rbx,8), %esi
	movl	-108(%rbp,%rbx,8), %edx
	movq	%r15, %rdi
	callq	_REG_WRITE
	incq	%rbx
	movq	%r14, %rdi
	callq	_ARRAY_SIZE
	movl	%eax, %eax
	cmpq	%rax, %rbx
	jb	LBB0_10
LBB0_11:
	movq	%r15, %rdi
	callq	_REGWRITE_BUFFER_FLUSH
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_13
## %bb.12:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_AR9285_AN_TOP3,4,2             ## @AR9285_AN_TOP3
	.comm	_AR9285_AN_RXTXBB1,4,2          ## @AR9285_AN_RXTXBB1
	.comm	_AR9285_AN_RF2G1,4,2            ## @AR9285_AN_RF2G1
	.comm	_AR9285_AN_RF2G2,4,2            ## @AR9285_AN_RF2G2
	.comm	_AR9285_AN_TOP2,4,2             ## @AR9285_AN_TOP2
	.comm	_AR9285_AN_RF2G8,4,2            ## @AR9285_AN_RF2G8
	.comm	_AR9285_AN_RF2G7,4,2            ## @AR9285_AN_RF2G7
	.comm	_AR9285_AN_RF2G3,4,2            ## @AR9285_AN_RF2G3
	.comm	_AR9285_AN_RF2G6,4,2            ## @AR9285_AN_RF2G6
	.comm	_AR9285_AN_TOP3_PWDDAC,4,2      ## @AR9285_AN_TOP3_PWDDAC
	.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_OFFCAL,4,2     ## @AR9285_AN_RF2G2_OFFCAL
	.comm	_AR9285_AN_RF2G7_PWDDB,4,2      ## @AR9285_AN_RF2G7_PWDDB
	.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_PADRVGN2TAB0,4,2 ## @AR9285_AN_RF2G8_PADRVGN2TAB0
	.comm	_AR9285_AN_RF2G7_PADRVGN2TAB0,4,2 ## @AR9285_AN_RF2G7_PADRVGN2TAB0
	.comm	_AR9271_AN_RF2G3_CCOMP,4,2      ## @AR9271_AN_RF2G3_CCOMP
	.comm	_AR9271_AN_RF2G6_OFFS,4,2       ## @AR9271_AN_RF2G6_OFFS
	.comm	_AR9285_AN_RF2G9,4,2            ## @AR9285_AN_RF2G9
	.comm	_AR9285_AN_RXTXBB1_SPARE9,4,2   ## @AR9285_AN_RXTXBB1_SPARE9
	.comm	_MAX_PACAL_SKIPCOUNT,4,2        ## @MAX_PACAL_SKIPCOUNT
	.no_dead_strip	_ar9271_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 ar9271_hw_pa_cal
lCPI0_0:
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_ar9271_hw_pa_cal:                      ; @ar9271_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
	str	w1, [sp, #4]                    ; 4-byte Folded Spill
	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]
Lloh3:
	adrp	x20, _AR9285_AN_TOP3@GOTPAGE
Lloh4:
	ldr	x20, [x20, _AR9285_AN_TOP3@GOTPAGEOFF]
	ldr	w8, [x20]
	stp	w8, wzr, [sp, #8]
Lloh5:
	adrp	x28, _AR9285_AN_RXTXBB1@GOTPAGE
Lloh6:
	ldr	x28, [x28, _AR9285_AN_RXTXBB1@GOTPAGEOFF]
	ldr	w8, [x28]
	stp	w8, wzr, [sp, #16]
Lloh7:
	adrp	x25, _AR9285_AN_RF2G1@GOTPAGE
Lloh8:
	ldr	x25, [x25, _AR9285_AN_RF2G1@GOTPAGEOFF]
	ldr	w8, [x25]
Lloh9:
	adrp	x27, _AR9285_AN_RF2G2@GOTPAGE
Lloh10:
	ldr	x27, [x27, _AR9285_AN_RF2G2@GOTPAGEOFF]
	stp	w8, wzr, [sp, #24]
	ldr	w8, [x27]
	stp	w8, wzr, [sp, #32]
Lloh11:
	adrp	x21, _AR9285_AN_TOP2@GOTPAGE
Lloh12:
	ldr	x21, [x21, _AR9285_AN_TOP2@GOTPAGEOFF]
	ldr	w8, [x21]
	stp	w8, wzr, [sp, #40]
Lloh13:
	adrp	x26, _AR9285_AN_RF2G8@GOTPAGE
Lloh14:
	ldr	x26, [x26, _AR9285_AN_RF2G8@GOTPAGEOFF]
	ldr	w8, [x26]
	stp	w8, wzr, [sp, #48]
Lloh15:
	adrp	x24, _AR9285_AN_RF2G7@GOTPAGE
Lloh16:
	ldr	x24, [x24, _AR9285_AN_RF2G7@GOTPAGEOFF]
	ldr	w8, [x24]
	stp	w8, wzr, [sp, #56]
Lloh17:
	adrp	x23, _AR9285_AN_RF2G3@GOTPAGE
Lloh18:
	ldr	x23, [x23, _AR9285_AN_RF2G3@GOTPAGEOFF]
	ldr	w8, [x23]
	stp	w8, wzr, [sp, #64]
	add	x0, sp, #8
	bl	_ARRAY_SIZE
	mov	x2, x0
	add	x1, sp, #8
	mov	x0, x19
	bl	_REG_READ_ARRAY
	mov	x0, x19
	bl	_ENABLE_REG_RMW_BUFFER
Lloh19:
	adrp	x22, _AR9285_AN_RF2G6@GOTPAGE
Lloh20:
	ldr	x22, [x22, _AR9285_AN_RF2G6@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #1
	bl	_REG_CLR_BIT
	mov	x0, x19
	mov	w1, #38920
	mov	w2, #134217728
	bl	_REG_SET_BIT
	ldr	w1, [x20]
Lloh21:
	adrp	x8, _AR9285_AN_TOP3_PWDDAC@GOTPAGE
Lloh22:
	ldr	x8, [x8, _AR9285_AN_TOP3_PWDDAC@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_REG_SET_BIT
	ldr	w1, [x28]
Lloh24:
	adrp	x8, _AR9285_AN_RXTXBB1_PDRXTXBB1@GOTPAGE
Lloh25:
	ldr	x8, [x8, _AR9285_AN_RXTXBB1_PDRXTXBB1@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_REG_SET_BIT
	ldr	w1, [x28]
Lloh27:
	adrp	x8, _AR9285_AN_RXTXBB1_PDV2I@GOTPAGE
Lloh28:
	ldr	x8, [x8, _AR9285_AN_RXTXBB1_PDV2I@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_REG_SET_BIT
	ldr	w1, [x28]
Lloh30:
	adrp	x8, _AR9285_AN_RXTXBB1_PDDACIF@GOTPAGE
Lloh31:
	ldr	x8, [x8, _AR9285_AN_RXTXBB1_PDDACIF@GOTPAGEOFF]
Lloh32:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_REG_SET_BIT
	ldr	w1, [x27]
Lloh33:
	adrp	x8, _AR9285_AN_RF2G2_OFFCAL@GOTPAGE
Lloh34:
	ldr	x8, [x8, _AR9285_AN_RF2G2_OFFCAL@GOTPAGEOFF]
Lloh35:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_REG_CLR_BIT
	ldr	w1, [x24]
Lloh36:
	adrp	x8, _AR9285_AN_RF2G7_PWDDB@GOTPAGE
Lloh37:
	ldr	x8, [x8, _AR9285_AN_RF2G7_PWDDB@GOTPAGEOFF]
Lloh38:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_REG_CLR_BIT
	ldr	w1, [x25]
Lloh39:
	adrp	x8, _AR9285_AN_RF2G1_ENPACAL@GOTPAGE
Lloh40:
	ldr	x8, [x8, _AR9285_AN_RF2G1_ENPACAL@GOTPAGEOFF]
Lloh41:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_REG_CLR_BIT
	ldr	w1, [x25]
Lloh42:
	adrp	x8, _AR9285_AN_RF2G1_PDPADRV1@GOTPAGE
Lloh43:
	ldr	x8, [x8, _AR9285_AN_RF2G1_PDPADRV1@GOTPAGEOFF]
Lloh44:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_REG_CLR_BIT
	ldr	w1, [x25]
Lloh45:
	adrp	x8, _AR9285_AN_RF2G1_PDPADRV2@GOTPAGE
Lloh46:
	ldr	x8, [x8, _AR9285_AN_RF2G1_PDPADRV2@GOTPAGEOFF]
Lloh47:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_REG_CLR_BIT
	ldr	w1, [x25]
Lloh48:
	adrp	x8, _AR9285_AN_RF2G1_PDPAOUT@GOTPAGE
Lloh49:
	ldr	x8, [x8, _AR9285_AN_RF2G1_PDPAOUT@GOTPAGEOFF]
Lloh50:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_REG_CLR_BIT
	ldr	w1, [x26]
Lloh51:
	adrp	x8, _AR9285_AN_RF2G8_PADRVGN2TAB0@GOTPAGE
Lloh52:
	ldr	x8, [x8, _AR9285_AN_RF2G8_PADRVGN2TAB0@GOTPAGEOFF]
Lloh53:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #7
	bl	_REG_RMW_FIELD
	ldr	w1, [x24]
Lloh54:
	adrp	x8, _AR9285_AN_RF2G7_PADRVGN2TAB0@GOTPAGE
Lloh55:
	ldr	x8, [x8, _AR9285_AN_RF2G7_PADRVGN2TAB0@GOTPAGEOFF]
Lloh56:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #0
	bl	_REG_RMW_FIELD
	ldr	w1, [x23]
Lloh57:
	adrp	x8, _AR9271_AN_RF2G3_CCOMP@GOTPAGE
Lloh58:
	ldr	x8, [x8, _AR9271_AN_RF2G3_CCOMP@GOTPAGEOFF]
Lloh59:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #4095
	bl	_REG_RMW_FIELD
	mov	x0, x19
	bl	_REG_RMW_BUFFER_FLUSH
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #22688
	movk	w2, #51715, lsl #16
	bl	_REG_WRITE
	mov	w0, #30
	bl	_udelay
	ldr	w1, [x22]
Lloh60:
	adrp	x8, _AR9271_AN_RF2G6_OFFS@GOTPAGE
Lloh61:
	ldr	x8, [x8, _AR9271_AN_RF2G6_OFFS@GOTPAGEOFF]
Lloh62:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #0
	bl	_REG_RMW_FIELD
	mov	w20, #6
	mov	w23, #1048576
Lloh63:
	adrp	x24, _AR9285_AN_RF2G9@GOTPAGE
Lloh64:
	ldr	x24, [x24, _AR9285_AN_RF2G9@GOTPAGEOFF]
Lloh65:
	adrp	x25, _AR9285_AN_RXTXBB1_SPARE9@GOTPAGE
Lloh66:
	ldr	x25, [x25, _AR9285_AN_RXTXBB1_SPARE9@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x22]
	mov	x0, x19
	bl	_REG_READ
	mov	x21, x0
	lsl	w26, w23, w20
	orr	w2, w0, w26
	ldr	w1, [x22]
	mov	x0, x19
	bl	_REG_WRITE
	mov	w0, #1
	bl	_udelay
	bic	w21, w21, w26
	ldr	w1, [x24]
	mov	x0, x19
	bl	_REG_READ
	ldr	w1, [x25]
	bl	_MS
	add	w8, w20, #20
	lsl	w8, w0, w8
	orr	w21, w8, w21
	ldr	w1, [x22]
	mov	x0, x19
	mov	x2, x21
	bl	_REG_WRITE
	subs	w20, w20, #1
	b.ne	LBB0_1
; %bb.2:
	ubfx	w8, w21, #20, #7
	ldr	w9, [sp, #4]                    ; 4-byte Folded Reload
	cbnz	w9, LBB0_7
; %bb.3:
	ldr	w9, [x19]
	cmp	w9, w8
	b.ne	LBB0_7
; %bb.4:
	ldr	w8, [x19, #4]
Lloh67:
	adrp	x9, _MAX_PACAL_SKIPCOUNT@GOTPAGE
Lloh68:
	ldr	x9, [x9, _MAX_PACAL_SKIPCOUNT@GOTPAGEOFF]
Lloh69:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ge	LBB0_6
; %bb.5:
	lsl	w8, w8, #1
	str	w8, [x19, #4]
LBB0_6:
	str	w8, [x19, #8]
	b	LBB0_8
LBB0_7:
Lloh70:
	adrp	x9, lCPI0_0@PAGE
Lloh71:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
	stur	d0, [x19, #4]
	str	w8, [x19]
LBB0_8:
	mov	x0, x19
	bl	_ENABLE_REG_RMW_BUFFER
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #1
	bl	_REG_SET_BIT
	mov	x0, x19
	mov	w1, #38920
	mov	w2, #134217728
	bl	_REG_CLR_BIT
	mov	x0, x19
	bl	_REG_RMW_BUFFER_FLUSH
	mov	x0, x19
	bl	_ENABLE_REGWRITE_BUFFER
	add	x21, sp, #8
	add	x0, sp, #8
	bl	_ARRAY_SIZE
	cbz	w0, LBB0_11
; %bb.9:
	mov	x20, #0
	add	x21, x21, #4
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldp	w1, w2, [x21, #-4]
	mov	x0, x19
	bl	_REG_WRITE
	add	x20, x20, #1
	add	x0, sp, #8
	bl	_ARRAY_SIZE
	add	x21, x21, #8
	cmp	x20, w0, uxtw
	b.lo	LBB0_10
LBB0_11:
	mov	x0, x19
	bl	_REGWRITE_BUFFER_FLUSH
	ldr	x8, [sp, #72]
Lloh72:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh73:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh74:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	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_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh65, Lloh66
	.loh AdrpLdrGot	Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.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 AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdr	Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.cfi_endproc
                                        ; -- End function
	.comm	_AR9285_AN_TOP3,4,2             ; @AR9285_AN_TOP3
	.comm	_AR9285_AN_RXTXBB1,4,2          ; @AR9285_AN_RXTXBB1
	.comm	_AR9285_AN_RF2G1,4,2            ; @AR9285_AN_RF2G1
	.comm	_AR9285_AN_RF2G2,4,2            ; @AR9285_AN_RF2G2
	.comm	_AR9285_AN_TOP2,4,2             ; @AR9285_AN_TOP2
	.comm	_AR9285_AN_RF2G8,4,2            ; @AR9285_AN_RF2G8
	.comm	_AR9285_AN_RF2G7,4,2            ; @AR9285_AN_RF2G7
	.comm	_AR9285_AN_RF2G3,4,2            ; @AR9285_AN_RF2G3
	.comm	_AR9285_AN_RF2G6,4,2            ; @AR9285_AN_RF2G6
	.comm	_AR9285_AN_TOP3_PWDDAC,4,2      ; @AR9285_AN_TOP3_PWDDAC
	.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_OFFCAL,4,2     ; @AR9285_AN_RF2G2_OFFCAL
	.comm	_AR9285_AN_RF2G7_PWDDB,4,2      ; @AR9285_AN_RF2G7_PWDDB
	.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_PADRVGN2TAB0,4,2 ; @AR9285_AN_RF2G8_PADRVGN2TAB0
	.comm	_AR9285_AN_RF2G7_PADRVGN2TAB0,4,2 ; @AR9285_AN_RF2G7_PADRVGN2TAB0
	.comm	_AR9271_AN_RF2G3_CCOMP,4,2      ; @AR9271_AN_RF2G3_CCOMP
	.comm	_AR9271_AN_RF2G6_OFFS,4,2       ; @AR9271_AN_RF2G6_OFFS
	.comm	_AR9285_AN_RF2G9,4,2            ; @AR9285_AN_RF2G9
	.comm	_AR9285_AN_RXTXBB1_SPARE9,4,2   ; @AR9285_AN_RXTXBB1_SPARE9
	.comm	_MAX_PACAL_SKIPCOUNT,4,2        ; @MAX_PACAL_SKIPCOUNT
	.no_dead_strip	_ar9271_hw_pa_cal
.subsections_via_symbols
