	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ar9003_hw_power_control_override
_ar9003_hw_power_control_override:      ## @ar9003_hw_power_control_override
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -152(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r14
	movl	%esi, -144(%rbp)                ## 4-byte Spill
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	(%rdx), %edx
	movq	_AR_PHY_TPC_OLPC_GAIN_DELTA_S@GOTPCREL(%rip), %rbx
	movb	(%rbx), %cl
	shll	%cl, %edx
	movq	_AR_PHY_TPC_11_B0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR_PHY_TPC_OLPC_GAIN_DELTA@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	callq	_REG_RMW
	movl	(%r13), %r15d
	movl	$1, %edi
	callq	_BIT
	testl	%r15d, %eax
	je	LBB0_2
## %bb.1:
	movq	_AR_PHY_TPC_11_B1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r14), %edx
	movb	(%rbx), %cl
	shll	%cl, %edx
	movl	(%r12), %ecx
	movq	%r13, %rdi
	callq	_REG_RMW
LBB0_2:
	movq	%rbx, %r15
	movl	(%r13), %ebx
	movl	$2, %edi
	callq	_BIT
	testl	%ebx, %eax
	je	LBB0_4
## %bb.3:
	movq	_AR_PHY_TPC_11_B2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r14), %edx
	movb	(%r15), %cl
	shll	%cl, %edx
	movl	(%r12), %ecx
	movq	%r13, %rdi
	callq	_REG_RMW
LBB0_4:
	movq	_AR_PHY_TPC_6_B0@GOTPCREL(%rip), %rax
	movq	_AR_PHY_TPC_6_ERROR_EST_MODE_S@GOTPCREL(%rip), %r14
	movb	(%r14), %cl
	movl	$3, %edx
	shll	%cl, %edx
	movl	(%rax), %esi
	movl	$3, %r15d
	movq	_AR_PHY_TPC_6_ERROR_EST_MODE@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	movq	%r13, %rdi
	callq	_REG_RMW
	movl	(%r13), %ebx
	movl	$1, %edi
	callq	_BIT
	testl	%ebx, %eax
	je	LBB0_6
## %bb.5:
	movq	_AR_PHY_TPC_6_B1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movb	(%r14), %cl
	shll	%cl, %r15d
	movl	(%r12), %ecx
	movq	%r13, %rdi
	movl	%r15d, %edx
	callq	_REG_RMW
LBB0_6:
	movl	(%r13), %ebx
	movl	$2, %edi
	callq	_BIT
	testl	%ebx, %eax
	je	LBB0_8
## %bb.7:
	movq	_AR_PHY_TPC_6_B2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movb	(%r14), %cl
	movl	$3, %edx
	shll	%cl, %edx
	movl	(%r12), %ecx
	movq	%r13, %rdi
	callq	_REG_RMW
LBB0_8:
	cmpl	$3999, -144(%rbp)               ## 4-byte Folded Reload
                                        ## imm = 0xF9F
	jg	LBB0_10
## %bb.9:
	movl	48(%r13), %eax
LBB0_17:
	movl	%eax, -140(%rbp)                ## 4-byte Spill
	xorl	%r12d, %r12d
LBB0_18:
	xorl	%r14d, %r14d
	jmp	LBB0_19
LBB0_10:
	movq	%r13, %rdi
	callq	_AR_SREV_9550
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	40(%r13), %rax
	movl	8(%rax), %ecx
	movl	%ecx, -112(%rbp)
	movl	12(%rax), %ecx
	movl	%ecx, -124(%rbp)
	movl	16(%rax), %ecx
	movl	%ecx, -136(%rbp)
	movl	$5180, -80(%rbp)                ## imm = 0x143C
	movl	28(%r13), %ecx
	movl	%ecx, -108(%rbp)
	movl	(%rax), %ecx
	movl	%ecx, -120(%rbp)
	movl	4(%rax), %ecx
	movl	%ecx, -132(%rbp)
	movl	$5500, -76(%rbp)                ## imm = 0x157C
	movl	20(%rax), %ecx
	movl	%ecx, -104(%rbp)
	movl	24(%rax), %ecx
	movl	%ecx, -116(%rbp)
	movl	28(%rax), %eax
	movl	%eax, -128(%rbp)
	movl	$5785, -72(%rbp)                ## imm = 0x1699
	leaq	-80(%rbp), %r15
	leaq	-112(%rbp), %rdx
	movl	-144(%rbp), %ebx                ## 4-byte Reload
	movl	%ebx, %edi
	movq	%r15, %rsi
	movl	$3, %ecx
	callq	_ar9003_hw_power_interpolate
	movl	%eax, -140(%rbp)                ## 4-byte Spill
	leaq	-124(%rbp), %rdx
	movl	%ebx, %edi
	movq	%r15, %rsi
	movl	$3, %ecx
	callq	_ar9003_hw_power_interpolate
	movl	%eax, %r14d
	leaq	-136(%rbp), %rdx
	movl	%ebx, %edi
	movq	%r15, %rsi
	movl	$3, %ecx
	callq	_ar9003_hw_power_interpolate
	movl	%eax, %r12d
LBB0_19:
	movq	%r13, %rdi
	callq	_AR_SREV_9550
	testq	%rax, %rax
	jne	LBB0_22
## %bb.20:
	movq	%r13, %rdi
	callq	_AR_SREV_9531
	testq	%rax, %rax
	jne	LBB0_22
## %bb.21:
	movq	%r13, %rdi
	callq	_AR_SREV_9561
	testq	%rax, %rax
	je	LBB0_42
LBB0_22:
	movl	20(%r13), %r15d
	shrl	$4, %r15d
	andl	$15, %r15d
	movb	24(%r13), %bl
	xorl	%edi, %edi
	callq	_BIT
	testb	$1, %bl
	jne	LBB0_23
## %bb.36:
	testl	%r15d, %eax
	je	LBB0_38
## %bb.37:
	movq	_AR_PHY_TPC_19@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR_PHY_TPC_19_ALPHA_THERM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	xorl	%ecx, %ecx
	callq	_REG_RMW_FIELD
LBB0_38:
	movl	$1, %edi
	callq	_BIT
	testl	%r15d, %eax
	je	LBB0_40
## %bb.39:
	movq	_AR_PHY_TPC_19_B1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR_PHY_TPC_19_ALPHA_THERM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	xorl	%ecx, %ecx
	callq	_REG_RMW_FIELD
LBB0_40:
	movl	$2, %edi
	callq	_BIT
	testl	%r15d, %eax
	je	LBB0_44
## %bb.41:
	movq	_AR_PHY_TPC_19_B2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR_PHY_TPC_19_ALPHA_THERM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	xorl	%ecx, %ecx
	jmp	LBB0_43
LBB0_23:
	cmpl	$3999, -144(%rbp)               ## 4-byte Folded Reload
                                        ## imm = 0xF9F
	jg	LBB0_30
## %bb.24:
	testl	%r15d, %eax
	je	LBB0_26
## %bb.25:
	movq	_AR_PHY_TPC_19@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR_PHY_TPC_19_ALPHA_THERM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	8(%r13), %ecx
	movq	%r13, %rdi
	callq	_REG_RMW_FIELD
LBB0_26:
	movl	$1, %edi
	callq	_BIT
	testl	%r15d, %eax
	je	LBB0_28
## %bb.27:
	movq	_AR_PHY_TPC_19_B1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR_PHY_TPC_19_ALPHA_THERM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	-140(%rbp), %ecx                ## 4-byte Reload
	callq	_REG_RMW_FIELD
LBB0_28:
	movl	$2, %edi
	callq	_BIT
	testl	%r15d, %eax
	je	LBB0_44
## %bb.29:
	movq	_AR_PHY_TPC_19_B2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR_PHY_TPC_19_ALPHA_THERM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	12(%r13), %ecx
	movq	%r13, %rdi
	jmp	LBB0_43
LBB0_30:
	testl	%r15d, %eax
	je	LBB0_32
## %bb.31:
	movq	_AR_PHY_TPC_19@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR_PHY_TPC_19_ALPHA_THERM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	-140(%rbp), %ecx                ## 4-byte Reload
	callq	_REG_RMW_FIELD
LBB0_32:
	movl	$1, %edi
	callq	_BIT
	testl	%r15d, %eax
	je	LBB0_34
## %bb.33:
	movq	_AR_PHY_TPC_19_B1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR_PHY_TPC_19_ALPHA_THERM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	%r14d, %ecx
	callq	_REG_RMW_FIELD
LBB0_34:
	movl	$2, %edi
	callq	_BIT
	testl	%r15d, %eax
	je	LBB0_44
## %bb.35:
	movq	_AR_PHY_TPC_19_B2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR_PHY_TPC_19_ALPHA_THERM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	%r12d, %ecx
	jmp	LBB0_43
LBB0_12:
	testb	$32, 16(%r13)
	jne	LBB0_13
## %bb.14:
	movl	8(%r13), %eax
	testl	%eax, %eax
	je	LBB0_16
## %bb.15:
	movl	%eax, -112(%rbp)
	movl	$5180, -80(%rbp)                ## imm = 0x143C
	movl	28(%r13), %eax
	movl	%eax, -108(%rbp)
	movl	$5500, -76(%rbp)                ## imm = 0x157C
	movl	12(%r13), %eax
	movl	%eax, -104(%rbp)
	movl	$5785, -72(%rbp)                ## imm = 0x1699
	leaq	-80(%rbp), %rsi
	leaq	-112(%rbp), %rdx
	movl	-144(%rbp), %edi                ## 4-byte Reload
	movl	$3, %ecx
	callq	_ar9003_hw_power_interpolate
	jmp	LBB0_17
LBB0_13:
	movq	40(%r13), %rax
	movl	(%rax), %eax
	movl	%eax, -112(%rbp)
	movq	32(%r13), %rax
	movl	(%rax), %edi
	xorl	%r12d, %r12d
	xorl	%esi, %esi
	callq	_FBIN2FREQ
	movl	%eax, -80(%rbp)
	movq	40(%r13), %rax
	movl	4(%rax), %eax
	movl	%eax, -108(%rbp)
	movq	32(%r13), %rax
	movl	4(%rax), %edi
	xorl	%esi, %esi
	callq	_FBIN2FREQ
	movl	%eax, -76(%rbp)
	movq	40(%r13), %rax
	movl	8(%rax), %eax
	movl	%eax, -104(%rbp)
	movq	32(%r13), %rax
	movl	8(%rax), %edi
	xorl	%esi, %esi
	callq	_FBIN2FREQ
	movl	%eax, -72(%rbp)
	movq	40(%r13), %rax
	movl	12(%rax), %eax
	movl	%eax, -100(%rbp)
	movq	32(%r13), %rax
	movl	12(%rax), %edi
	xorl	%esi, %esi
	callq	_FBIN2FREQ
	movl	%eax, -68(%rbp)
	movq	40(%r13), %rax
	movl	16(%rax), %eax
	movl	%eax, -96(%rbp)
	movq	32(%r13), %rax
	movl	16(%rax), %edi
	xorl	%esi, %esi
	callq	_FBIN2FREQ
	movl	%eax, -64(%rbp)
	movq	40(%r13), %rax
	movl	20(%rax), %eax
	movl	%eax, -92(%rbp)
	movq	32(%r13), %rax
	movl	20(%rax), %edi
	xorl	%esi, %esi
	callq	_FBIN2FREQ
	movl	%eax, -60(%rbp)
	movq	40(%r13), %rax
	movl	24(%rax), %eax
	movl	%eax, -88(%rbp)
	movq	32(%r13), %rax
	movl	24(%rax), %edi
	xorl	%esi, %esi
	callq	_FBIN2FREQ
	movl	%eax, -56(%rbp)
	movq	40(%r13), %rax
	movl	28(%rax), %eax
	movl	%eax, -84(%rbp)
	movq	32(%r13), %rax
	movl	28(%rax), %edi
	xorl	%esi, %esi
	callq	_FBIN2FREQ
	movl	%eax, -52(%rbp)
	leaq	-80(%rbp), %rsi
	leaq	-112(%rbp), %rdx
	movl	-144(%rbp), %edi                ## 4-byte Reload
	movl	$8, %ecx
	callq	_ar9003_hw_power_interpolate
	movl	%eax, -140(%rbp)                ## 4-byte Spill
	jmp	LBB0_18
LBB0_42:
	movq	_AR_PHY_TPC_19@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR_PHY_TPC_19_ALPHA_THERM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	-140(%rbp), %ecx                ## 4-byte Reload
LBB0_43:
	callq	_REG_RMW_FIELD
LBB0_44:
	movq	%r13, %rdi
	callq	_AR_SREV_9462_20_OR_LATER
	testq	%rax, %rax
	je	LBB0_46
## %bb.45:
	movq	_AR_PHY_TPC_19_B1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR_PHY_TPC_19_B1_ALPHA_THERM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	-140(%rbp), %ecx                ## 4-byte Reload
	callq	_REG_RMW_FIELD
LBB0_46:
	movq	_AR_PHY_TPC_18@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR_PHY_TPC_18_THERM_CAL_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-152(%rbp), %rax                ## 8-byte Reload
	movl	(%rax), %ecx
	movq	%r13, %rdi
	callq	_REG_RMW_FIELD
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_48
## %bb.47:
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movl	28(%r13), %eax
	jmp	LBB0_17
LBB0_48:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_AR_PHY_TPC_11_B0,4,2           ## @AR_PHY_TPC_11_B0
	.comm	_AR_PHY_TPC_OLPC_GAIN_DELTA_S,4,2 ## @AR_PHY_TPC_OLPC_GAIN_DELTA_S
	.comm	_AR_PHY_TPC_OLPC_GAIN_DELTA,4,2 ## @AR_PHY_TPC_OLPC_GAIN_DELTA
	.comm	_AR_PHY_TPC_11_B1,4,2           ## @AR_PHY_TPC_11_B1
	.comm	_AR_PHY_TPC_11_B2,4,2           ## @AR_PHY_TPC_11_B2
	.comm	_AR_PHY_TPC_6_B0,4,2            ## @AR_PHY_TPC_6_B0
	.comm	_AR_PHY_TPC_6_ERROR_EST_MODE_S,4,2 ## @AR_PHY_TPC_6_ERROR_EST_MODE_S
	.comm	_AR_PHY_TPC_6_ERROR_EST_MODE,4,2 ## @AR_PHY_TPC_6_ERROR_EST_MODE
	.comm	_AR_PHY_TPC_6_B1,4,2            ## @AR_PHY_TPC_6_B1
	.comm	_AR_PHY_TPC_6_B2,4,2            ## @AR_PHY_TPC_6_B2
	.comm	_AR_PHY_TPC_19,4,2              ## @AR_PHY_TPC_19
	.comm	_AR_PHY_TPC_19_ALPHA_THERM,4,2  ## @AR_PHY_TPC_19_ALPHA_THERM
	.comm	_AR_PHY_TPC_19_B1,4,2           ## @AR_PHY_TPC_19_B1
	.comm	_AR_PHY_TPC_19_B2,4,2           ## @AR_PHY_TPC_19_B2
	.comm	_AR_PHY_TPC_19_B1_ALPHA_THERM,4,2 ## @AR_PHY_TPC_19_B1_ALPHA_THERM
	.comm	_AR_PHY_TPC_18,4,2              ## @AR_PHY_TPC_18
	.comm	_AR_PHY_TPC_18_THERM_CAL_VALUE,4,2 ## @AR_PHY_TPC_18_THERM_CAL_VALUE
	.no_dead_strip	_ar9003_hw_power_control_override
.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 ar9003_hw_power_control_override
lCPI0_0:
	.long	5500                            ; 0x157c
	.long	5785                            ; 0x1699
lCPI0_1:
	.long	5180                            ; 0x143c
	.long	5500                            ; 0x157c
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_ar9003_hw_power_control_override:      ; @ar9003_hw_power_control_override
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	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
	mov	x19, x4
	mov	x22, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x8, _AR_PHY_TPC_11_B0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AR_PHY_TPC_11_B0@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x23, _AR_PHY_TPC_OLPC_GAIN_DELTA_S@GOTPAGE
Lloh7:
	ldr	x23, [x23, _AR_PHY_TPC_OLPC_GAIN_DELTA_S@GOTPAGEOFF]
	ldr	w8, [x2]
	ldr	w9, [x23]
	lsl	w2, w8, w9
Lloh8:
	adrp	x24, _AR_PHY_TPC_OLPC_GAIN_DELTA@GOTPAGE
Lloh9:
	ldr	x24, [x24, _AR_PHY_TPC_OLPC_GAIN_DELTA@GOTPAGEOFF]
	ldr	w3, [x24]
	bl	_REG_RMW
	ldr	w25, [x20]
	mov	w0, #1
	bl	_BIT
	tst	w0, w25
	b.eq	LBB0_2
; %bb.1:
Lloh10:
	adrp	x8, _AR_PHY_TPC_11_B1@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AR_PHY_TPC_11_B1@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	ldr	w8, [x22, #4]
	ldr	w9, [x23]
	lsl	w2, w8, w9
	ldr	w3, [x24]
	mov	x0, x20
	bl	_REG_RMW
LBB0_2:
	ldr	w25, [x20]
	mov	w0, #2
	bl	_BIT
	tst	w0, w25
	b.eq	LBB0_4
; %bb.3:
Lloh13:
	adrp	x8, _AR_PHY_TPC_11_B2@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AR_PHY_TPC_11_B2@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	ldr	w8, [x22, #8]
	ldr	w9, [x23]
	lsl	w2, w8, w9
	ldr	w3, [x24]
	mov	x0, x20
	bl	_REG_RMW
LBB0_4:
Lloh16:
	adrp	x8, _AR_PHY_TPC_6_B0@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AR_PHY_TPC_6_B0@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x22, _AR_PHY_TPC_6_ERROR_EST_MODE_S@GOTPAGE
Lloh20:
	ldr	x22, [x22, _AR_PHY_TPC_6_ERROR_EST_MODE_S@GOTPAGEOFF]
	ldr	w8, [x22]
	mov	w24, #3
	lsl	w2, w24, w8
Lloh21:
	adrp	x23, _AR_PHY_TPC_6_ERROR_EST_MODE@GOTPAGE
Lloh22:
	ldr	x23, [x23, _AR_PHY_TPC_6_ERROR_EST_MODE@GOTPAGEOFF]
	ldr	w3, [x23]
	mov	x0, x20
	bl	_REG_RMW
	ldr	w25, [x20]
	mov	w0, #1
	bl	_BIT
	tst	w0, w25
	b.eq	LBB0_6
; %bb.5:
Lloh23:
	adrp	x8, _AR_PHY_TPC_6_B1@GOTPAGE
Lloh24:
	ldr	x8, [x8, _AR_PHY_TPC_6_B1@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	ldr	w8, [x22]
	lsl	w2, w24, w8
	ldr	w3, [x23]
	mov	x0, x20
	bl	_REG_RMW
LBB0_6:
	ldr	w24, [x20]
	mov	w0, #2
	bl	_BIT
	tst	w0, w24
	b.eq	LBB0_8
; %bb.7:
Lloh26:
	adrp	x8, _AR_PHY_TPC_6_B2@GOTPAGE
Lloh27:
	ldr	x8, [x8, _AR_PHY_TPC_6_B2@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	ldr	w8, [x22]
	mov	w9, #3
	lsl	w2, w9, w8
	ldr	w3, [x23]
	mov	x0, x20
	bl	_REG_RMW
LBB0_8:
	cmp	w21, #3999
	b.gt	LBB0_10
; %bb.9:
	mov	w23, #0
	mov	w24, #0
	ldr	w22, [x20, #48]
	b	LBB0_17
LBB0_10:
	mov	x0, x20
	bl	_AR_SREV_9550
	cbz	x0, LBB0_12
; %bb.11:
	ldr	x8, [x20, #40]
	ldp	w9, w10, [x8, #8]
	str	w10, [sp, #12]
	ldp	w10, w11, [x8, #16]
	str	w10, [sp]
	mov	w10, #5180
	str	w10, [sp, #56]
	ldr	w10, [x20, #28]
	stp	w9, w10, [sp, #24]
	ldr	w9, [x8]
	str	w9, [sp, #16]
	ldr	w9, [x8, #4]
	str	w11, [sp, #32]
	ldp	w10, w8, [x8, #24]
	str	w10, [sp, #20]
	stp	w9, w8, [sp, #4]
Lloh29:
	adrp	x8, lCPI0_0@PAGE
Lloh30:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	stur	d0, [sp, #60]
	add	x1, sp, #56
	add	x2, sp, #24
	mov	x0, x21
	mov	w3, #3
	bl	_ar9003_hw_power_interpolate
	mov	x22, x0
	add	x1, sp, #56
	add	x2, sp, #12
	mov	x0, x21
	mov	w3, #3
	bl	_ar9003_hw_power_interpolate
	mov	x24, x0
	add	x1, sp, #56
	mov	x2, sp
	mov	x0, x21
	mov	w3, #3
	bl	_ar9003_hw_power_interpolate
	mov	x23, x0
	b	LBB0_17
LBB0_12:
	ldrb	w8, [x20, #16]
	tbnz	w8, #5, LBB0_15
; %bb.13:
	ldr	w8, [x20, #8]
	cbz	w8, LBB0_46
; %bb.14:
	ldr	w9, [x20, #28]
	stp	w8, w9, [sp, #24]
Lloh31:
	adrp	x8, lCPI0_1@PAGE
Lloh32:
	ldr	d0, [x8, lCPI0_1@PAGEOFF]
	str	d0, [sp, #56]
	ldr	w8, [x20, #12]
	str	w8, [sp, #32]
	mov	w8, #5785
	str	w8, [sp, #64]
	add	x1, sp, #56
	add	x2, sp, #24
	mov	x0, x21
	mov	w3, #3
	b	LBB0_16
LBB0_15:
	ldp	x9, x8, [x20, #32]
	ldr	w8, [x8]
	str	w8, [sp, #24]
	ldr	w0, [x9]
	mov	w1, #0
	bl	_FBIN2FREQ
	str	w0, [sp, #56]
	ldp	x9, x8, [x20, #32]
	ldr	w8, [x8, #4]
	str	w8, [sp, #28]
	ldr	w0, [x9, #4]
	mov	w1, #0
	bl	_FBIN2FREQ
	str	w0, [sp, #60]
	ldp	x9, x8, [x20, #32]
	ldr	w8, [x8, #8]
	str	w8, [sp, #32]
	ldr	w0, [x9, #8]
	mov	w1, #0
	bl	_FBIN2FREQ
	str	w0, [sp, #64]
	ldp	x9, x8, [x20, #32]
	ldr	w8, [x8, #12]
	str	w8, [sp, #36]
	ldr	w0, [x9, #12]
	mov	w1, #0
	bl	_FBIN2FREQ
	str	w0, [sp, #68]
	ldp	x9, x8, [x20, #32]
	ldr	w8, [x8, #16]
	str	w8, [sp, #40]
	ldr	w0, [x9, #16]
	mov	w1, #0
	bl	_FBIN2FREQ
	str	w0, [sp, #72]
	ldp	x9, x8, [x20, #32]
	ldr	w8, [x8, #20]
	str	w8, [sp, #44]
	ldr	w0, [x9, #20]
	mov	w1, #0
	bl	_FBIN2FREQ
	str	w0, [sp, #76]
	ldp	x9, x8, [x20, #32]
	ldr	w8, [x8, #24]
	str	w8, [sp, #48]
	ldr	w0, [x9, #24]
	mov	w1, #0
	bl	_FBIN2FREQ
	str	w0, [sp, #80]
	ldp	x9, x8, [x20, #32]
	ldr	w8, [x8, #28]
	str	w8, [sp, #52]
	ldr	w0, [x9, #28]
	mov	w1, #0
	bl	_FBIN2FREQ
	str	w0, [sp, #84]
	add	x1, sp, #56
	add	x2, sp, #24
	mov	x0, x21
	mov	w3, #8
LBB0_16:
	bl	_ar9003_hw_power_interpolate
	mov	x22, x0
	mov	w23, #0
	mov	w24, #0
LBB0_17:
	mov	x0, x20
	bl	_AR_SREV_9550
	cbnz	x0, LBB0_20
; %bb.18:
	mov	x0, x20
	bl	_AR_SREV_9531
	cbnz	x0, LBB0_20
; %bb.19:
	mov	x0, x20
	bl	_AR_SREV_9561
	cbz	x0, LBB0_40
LBB0_20:
	ldp	w8, w26, [x20, #20]
	ubfx	w25, w8, #4, #4
	mov	w0, #0
	bl	_BIT
	and	w8, w0, w25
	tbnz	w26, #0, LBB0_27
; %bb.21:
	cbz	w8, LBB0_23
; %bb.22:
Lloh33:
	adrp	x8, _AR_PHY_TPC_19@GOTPAGE
Lloh34:
	ldr	x8, [x8, _AR_PHY_TPC_19@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
Lloh36:
	adrp	x8, _AR_PHY_TPC_19_ALPHA_THERM@GOTPAGE
Lloh37:
	ldr	x8, [x8, _AR_PHY_TPC_19_ALPHA_THERM@GOTPAGEOFF]
Lloh38:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w3, #0
	bl	_REG_RMW_FIELD
LBB0_23:
	mov	w0, #1
	bl	_BIT
	tst	w0, w25
	b.eq	LBB0_25
; %bb.24:
Lloh39:
	adrp	x8, _AR_PHY_TPC_19_B1@GOTPAGE
Lloh40:
	ldr	x8, [x8, _AR_PHY_TPC_19_B1@GOTPAGEOFF]
Lloh41:
	ldr	w1, [x8]
Lloh42:
	adrp	x8, _AR_PHY_TPC_19_ALPHA_THERM@GOTPAGE
Lloh43:
	ldr	x8, [x8, _AR_PHY_TPC_19_ALPHA_THERM@GOTPAGEOFF]
Lloh44:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w3, #0
	bl	_REG_RMW_FIELD
LBB0_25:
	mov	w0, #2
	bl	_BIT
	tst	w0, w25
	b.eq	LBB0_42
; %bb.26:
Lloh45:
	adrp	x8, _AR_PHY_TPC_19_B2@GOTPAGE
Lloh46:
	ldr	x8, [x8, _AR_PHY_TPC_19_B2@GOTPAGEOFF]
Lloh47:
	ldr	w1, [x8]
Lloh48:
	adrp	x8, _AR_PHY_TPC_19_ALPHA_THERM@GOTPAGE
Lloh49:
	ldr	x8, [x8, _AR_PHY_TPC_19_ALPHA_THERM@GOTPAGEOFF]
Lloh50:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w3, #0
	b	LBB0_41
LBB0_27:
	cmp	w21, #3999
	b.gt	LBB0_34
; %bb.28:
	cbz	w8, LBB0_30
; %bb.29:
Lloh51:
	adrp	x8, _AR_PHY_TPC_19@GOTPAGE
Lloh52:
	ldr	x8, [x8, _AR_PHY_TPC_19@GOTPAGEOFF]
Lloh53:
	ldr	w1, [x8]
Lloh54:
	adrp	x8, _AR_PHY_TPC_19_ALPHA_THERM@GOTPAGE
Lloh55:
	ldr	x8, [x8, _AR_PHY_TPC_19_ALPHA_THERM@GOTPAGEOFF]
Lloh56:
	ldr	w2, [x8]
	ldr	w3, [x20, #8]
	mov	x0, x20
	bl	_REG_RMW_FIELD
LBB0_30:
	mov	w0, #1
	bl	_BIT
	tst	w0, w25
	b.eq	LBB0_32
; %bb.31:
Lloh57:
	adrp	x8, _AR_PHY_TPC_19_B1@GOTPAGE
Lloh58:
	ldr	x8, [x8, _AR_PHY_TPC_19_B1@GOTPAGEOFF]
Lloh59:
	ldr	w1, [x8]
Lloh60:
	adrp	x8, _AR_PHY_TPC_19_ALPHA_THERM@GOTPAGE
Lloh61:
	ldr	x8, [x8, _AR_PHY_TPC_19_ALPHA_THERM@GOTPAGEOFF]
Lloh62:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x3, x22
	bl	_REG_RMW_FIELD
LBB0_32:
	mov	w0, #2
	bl	_BIT
	tst	w0, w25
	b.eq	LBB0_42
; %bb.33:
Lloh63:
	adrp	x8, _AR_PHY_TPC_19_B2@GOTPAGE
Lloh64:
	ldr	x8, [x8, _AR_PHY_TPC_19_B2@GOTPAGEOFF]
Lloh65:
	ldr	w1, [x8]
Lloh66:
	adrp	x8, _AR_PHY_TPC_19_ALPHA_THERM@GOTPAGE
Lloh67:
	ldr	x8, [x8, _AR_PHY_TPC_19_ALPHA_THERM@GOTPAGEOFF]
Lloh68:
	ldr	w2, [x8]
	ldr	w3, [x20, #12]
	mov	x0, x20
	b	LBB0_41
LBB0_34:
Lloh69:
	adrp	x21, _AR_PHY_TPC_19_ALPHA_THERM@GOTPAGE
Lloh70:
	ldr	x21, [x21, _AR_PHY_TPC_19_ALPHA_THERM@GOTPAGEOFF]
	cbz	w8, LBB0_36
; %bb.35:
Lloh71:
	adrp	x8, _AR_PHY_TPC_19@GOTPAGE
Lloh72:
	ldr	x8, [x8, _AR_PHY_TPC_19@GOTPAGEOFF]
Lloh73:
	ldr	w1, [x8]
	ldr	w2, [x21]
	mov	x0, x20
	mov	x3, x22
	bl	_REG_RMW_FIELD
LBB0_36:
	mov	w0, #1
	bl	_BIT
	tst	w0, w25
	b.eq	LBB0_38
; %bb.37:
Lloh74:
	adrp	x8, _AR_PHY_TPC_19_B1@GOTPAGE
Lloh75:
	ldr	x8, [x8, _AR_PHY_TPC_19_B1@GOTPAGEOFF]
Lloh76:
	ldr	w1, [x8]
	ldr	w2, [x21]
	mov	x0, x20
	mov	x3, x24
	bl	_REG_RMW_FIELD
LBB0_38:
	mov	w0, #2
	bl	_BIT
	tst	w0, w25
	b.eq	LBB0_42
; %bb.39:
Lloh77:
	adrp	x8, _AR_PHY_TPC_19_B2@GOTPAGE
Lloh78:
	ldr	x8, [x8, _AR_PHY_TPC_19_B2@GOTPAGEOFF]
Lloh79:
	ldr	w1, [x8]
	ldr	w2, [x21]
	mov	x0, x20
	mov	x3, x23
	b	LBB0_41
LBB0_40:
Lloh80:
	adrp	x8, _AR_PHY_TPC_19@GOTPAGE
Lloh81:
	ldr	x8, [x8, _AR_PHY_TPC_19@GOTPAGEOFF]
Lloh82:
	ldr	w1, [x8]
Lloh83:
	adrp	x8, _AR_PHY_TPC_19_ALPHA_THERM@GOTPAGE
Lloh84:
	ldr	x8, [x8, _AR_PHY_TPC_19_ALPHA_THERM@GOTPAGEOFF]
Lloh85:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x3, x22
LBB0_41:
	bl	_REG_RMW_FIELD
LBB0_42:
	mov	x0, x20
	bl	_AR_SREV_9462_20_OR_LATER
	cbz	x0, LBB0_44
; %bb.43:
Lloh86:
	adrp	x8, _AR_PHY_TPC_19_B1@GOTPAGE
Lloh87:
	ldr	x8, [x8, _AR_PHY_TPC_19_B1@GOTPAGEOFF]
Lloh88:
	ldr	w1, [x8]
Lloh89:
	adrp	x8, _AR_PHY_TPC_19_B1_ALPHA_THERM@GOTPAGE
Lloh90:
	ldr	x8, [x8, _AR_PHY_TPC_19_B1_ALPHA_THERM@GOTPAGEOFF]
Lloh91:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x3, x22
	bl	_REG_RMW_FIELD
LBB0_44:
Lloh92:
	adrp	x8, _AR_PHY_TPC_18@GOTPAGE
Lloh93:
	ldr	x8, [x8, _AR_PHY_TPC_18@GOTPAGEOFF]
Lloh94:
	ldr	w1, [x8]
Lloh95:
	adrp	x8, _AR_PHY_TPC_18_THERM_CAL_VALUE@GOTPAGE
Lloh96:
	ldr	x8, [x8, _AR_PHY_TPC_18_THERM_CAL_VALUE@GOTPAGEOFF]
Lloh97:
	ldr	w2, [x8]
	ldr	w3, [x19]
	mov	x0, x20
	bl	_REG_RMW_FIELD
	ldur	x8, [x29, #-72]
Lloh98:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh99:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh100:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_47
; %bb.45:
	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
	add	sp, sp, #176
	ret
LBB0_46:
	mov	w23, #0
	mov	w24, #0
	ldr	w22, [x20, #28]
	b	LBB0_17
LBB0_47:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdr	Lloh29, Lloh30
	.loh AdrpLdr	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGot	Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh89, Lloh90, Lloh91
	.loh AdrpLdrGotLdr	Lloh86, Lloh87, Lloh88
	.loh AdrpLdrGotLdr	Lloh98, Lloh99, Lloh100
	.loh AdrpLdrGotLdr	Lloh95, Lloh96, Lloh97
	.loh AdrpLdrGotLdr	Lloh92, Lloh93, Lloh94
	.cfi_endproc
                                        ; -- End function
	.comm	_AR_PHY_TPC_11_B0,4,2           ; @AR_PHY_TPC_11_B0
	.comm	_AR_PHY_TPC_OLPC_GAIN_DELTA_S,4,2 ; @AR_PHY_TPC_OLPC_GAIN_DELTA_S
	.comm	_AR_PHY_TPC_OLPC_GAIN_DELTA,4,2 ; @AR_PHY_TPC_OLPC_GAIN_DELTA
	.comm	_AR_PHY_TPC_11_B1,4,2           ; @AR_PHY_TPC_11_B1
	.comm	_AR_PHY_TPC_11_B2,4,2           ; @AR_PHY_TPC_11_B2
	.comm	_AR_PHY_TPC_6_B0,4,2            ; @AR_PHY_TPC_6_B0
	.comm	_AR_PHY_TPC_6_ERROR_EST_MODE_S,4,2 ; @AR_PHY_TPC_6_ERROR_EST_MODE_S
	.comm	_AR_PHY_TPC_6_ERROR_EST_MODE,4,2 ; @AR_PHY_TPC_6_ERROR_EST_MODE
	.comm	_AR_PHY_TPC_6_B1,4,2            ; @AR_PHY_TPC_6_B1
	.comm	_AR_PHY_TPC_6_B2,4,2            ; @AR_PHY_TPC_6_B2
	.comm	_AR_PHY_TPC_19,4,2              ; @AR_PHY_TPC_19
	.comm	_AR_PHY_TPC_19_ALPHA_THERM,4,2  ; @AR_PHY_TPC_19_ALPHA_THERM
	.comm	_AR_PHY_TPC_19_B1,4,2           ; @AR_PHY_TPC_19_B1
	.comm	_AR_PHY_TPC_19_B2,4,2           ; @AR_PHY_TPC_19_B2
	.comm	_AR_PHY_TPC_19_B1_ALPHA_THERM,4,2 ; @AR_PHY_TPC_19_B1_ALPHA_THERM
	.comm	_AR_PHY_TPC_18,4,2              ; @AR_PHY_TPC_18
	.comm	_AR_PHY_TPC_18_THERM_CAL_VALUE,4,2 ; @AR_PHY_TPC_18_THERM_CAL_VALUE
	.no_dead_strip	_ar9003_hw_power_control_override
.subsections_via_symbols
