	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ar9280_hw_olc_temp_compensation
_ar9280_hw_olc_temp_compensation:       ## @ar9280_hw_olc_temp_compensation
	.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, %r12
	movq	_AR_PHY_TX_PWRCTRL4@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_REG_READ
	movq	_AR_PHY_TX_PWRCTRL_PD_AVG_OUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_MS
	cmpl	$0, (%r12)
	je	LBB0_6
## %bb.1:
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_6
## %bb.2:
	movq	16(%r12), %rax
	movq	_EEP_DAC_HPWR_5G@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%r12, %rdi
	callq	*(%rax)
	xorl	%ecx, %ecx
	testq	%rax, %rax
	sete	%cl
	addl	%ecx, %r14d
	addl	%ecx, %ecx
	addl	$8, %ecx
	subl	(%r12), %r14d
	addl	$4, %r14d
	movl	%r14d, %eax
	cltd
	idivl	%ecx
	cmpl	4(%r12), %eax
	je	LBB0_6
## %bb.3:
	movl	%eax, %r14d
	movl	%eax, 4(%r12)
	movq	_AR9280_TX_GAIN_TABLE_SIZE@GOTPCREL(%rip), %r15
	cmpq	$2, (%r15)
	jb	LBB0_6
## %bb.4:
	movl	$1, %ebx
	movq	_AR_PHY_TX_GAIN@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movl	(%rax,%rbx,4), %ecx
	subl	%r14d, %ecx
	testl	%ecx, %ecx
	movl	$0, %eax
	cmovlel	%eax, %ecx
	leaq	(,%rbx,4), %rsi
	movq	_AR_PHY_TX_GAIN_TBL1@GOTPCREL(%rip), %rax
	addq	(%rax), %rsi
	movl	(%r13), %edx
	movq	%r12, %rdi
	callq	_REG_RMW_FIELD
	incq	%rbx
	cmpq	(%r15), %rbx
	jb	LBB0_5
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AR_PHY_TX_PWRCTRL4,4,2         ## @AR_PHY_TX_PWRCTRL4
	.comm	_AR_PHY_TX_PWRCTRL_PD_AVG_OUT,4,2 ## @AR_PHY_TX_PWRCTRL_PD_AVG_OUT
	.comm	_EEP_DAC_HPWR_5G,4,2            ## @EEP_DAC_HPWR_5G
	.comm	_AR9280_TX_GAIN_TABLE_SIZE,8,3  ## @AR9280_TX_GAIN_TABLE_SIZE
	.comm	_AR_PHY_TX_GAIN_TBL1,8,3        ## @AR_PHY_TX_GAIN_TBL1
	.comm	_AR_PHY_TX_GAIN,4,2             ## @AR_PHY_TX_GAIN
	.no_dead_strip	_ar9280_hw_olc_temp_compensation
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ar9280_hw_olc_temp_compensation
_ar9280_hw_olc_temp_compensation:       ; @ar9280_hw_olc_temp_compensation
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _AR_PHY_TX_PWRCTRL4@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AR_PHY_TX_PWRCTRL4@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_REG_READ
Lloh3:
	adrp	x8, _AR_PHY_TX_PWRCTRL_PD_AVG_OUT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AR_PHY_TX_PWRCTRL_PD_AVG_OUT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_MS
	ldr	w8, [x19]
	cmp	w8, #0
	ccmp	w0, #0, #4, ne
	b.eq	LBB0_5
; %bb.1:
	mov	x20, x0
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _EEP_DAC_HPWR_5G@GOTPAGE
Lloh7:
	ldr	x9, [x9, _EEP_DAC_HPWR_5G@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x9]
	mov	x0, x19
	blr	x8
	cmp	x0, #0
	mov	w8, #4
	cinc	w8, w8, eq
	mov	w9, #8
	mov	w10, #10
	csel	w9, w10, w9, eq
	ldp	w10, w11, [x19]
	add	w8, w20, w8
	sub	w8, w8, w10
	sdiv	w20, w8, w9
	cmp	w20, w11
	b.eq	LBB0_5
; %bb.2:
	str	w20, [x19, #4]
Lloh9:
	adrp	x21, _AR9280_TX_GAIN_TABLE_SIZE@GOTPAGE
Lloh10:
	ldr	x21, [x21, _AR9280_TX_GAIN_TABLE_SIZE@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x8, #2
	b.lo	LBB0_5
; %bb.3:
	mov	w22, #1
Lloh11:
	adrp	x23, _AR_PHY_TX_GAIN_TBL1@GOTPAGE
Lloh12:
	ldr	x23, [x23, _AR_PHY_TX_GAIN_TBL1@GOTPAGEOFF]
Lloh13:
	adrp	x24, _AR_PHY_TX_GAIN@GOTPAGE
Lloh14:
	ldr	x24, [x24, _AR_PHY_TX_GAIN@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	lsl	x9, x22, #2
	ldr	w8, [x8, x9]
	sub	w8, w8, w20
	cmp	w8, #0
	csel	w3, w8, wzr, gt
	ldr	x8, [x23]
	add	x1, x8, x9
	ldr	w2, [x24]
	mov	x0, x19
	bl	_REG_RMW_FIELD
	add	x22, x22, #1
	ldr	x8, [x21]
	cmp	x22, x8
	b.lo	LBB0_4
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_AR_PHY_TX_PWRCTRL4,4,2         ; @AR_PHY_TX_PWRCTRL4
	.comm	_AR_PHY_TX_PWRCTRL_PD_AVG_OUT,4,2 ; @AR_PHY_TX_PWRCTRL_PD_AVG_OUT
	.comm	_EEP_DAC_HPWR_5G,4,2            ; @EEP_DAC_HPWR_5G
	.comm	_AR9280_TX_GAIN_TABLE_SIZE,8,3  ; @AR9280_TX_GAIN_TABLE_SIZE
	.comm	_AR_PHY_TX_GAIN_TBL1,8,3        ; @AR_PHY_TX_GAIN_TBL1
	.comm	_AR_PHY_TX_GAIN,4,2             ; @AR_PHY_TX_GAIN
	.no_dead_strip	_ar9280_hw_olc_temp_compensation
.subsections_via_symbols
