	.file	"extr_dm.c_rtl8812ae_dm_txpower_tracking_callback_thermalmeter.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"pDM_Odm->BbSwingIdxCckBase: %d, pDM_Odm->BbSwingIdxOfdmBase[A]:%d, pDM_Odm->DefaultOfdmIndex: %d\n"
	.align 8
.LC1:
	.string	"Thermal Meter = 0x%X, EFUSE Thermal Base = 0x%X\n"
	.align 8
.LC2:
	.string	"reload ofdm index for band switch\n"
	.align 8
.LC3:
	.string	"AVG Thermal Meter = 0x%X, EFUSE Thermal Base = 0x%X\n"
	.align 8
.LC4:
	.string	"(delta, delta_LCK, delta_IQK) = (%d, %d, %d)\n"
	.align 8
.LC5:
	.string	"delta_LCK(%d) >= Threshold_IQK(%d)\n"
	.align 8
.LC6:
	.string	"delta_swing_table_idx_tup_a[%d] = %d\n"
	.align 8
.LC7:
	.string	"******Temp is higher and pDM_Odm->Absolute_OFDMSwingIdx[ODM_RF_PATH_A] = %d\n"
	.align 8
.LC8:
	.string	"delta_swing_table_idx_tup_b[%d] = %d\n"
	.align 8
.LC9:
	.string	"******Temp is higher and pDM_Odm->Absolute_OFDMSwingIdx[ODM_RF_PATH_B] = %d\n"
	.align 8
.LC10:
	.string	"delta_swing_table_idx_tdown_a[%d] = %d\n"
	.align 8
.LC11:
	.string	"******Temp is lower and pDM_Odm->Absolute_OFDMSwingIdx[ODM_RF_PATH_A] = %d\n"
	.align 8
.LC12:
	.string	"deltaSwingTableIdx_TDOWN_B[%d] = %d\n"
	.align 8
.LC13:
	.string	"******Temp is lower and pDM_Odm->Absolute_OFDMSwingIdx[ODM_RF_PATH_B] = %d\n"
	.align 8
.LC14:
	.string	"============================= [Path-%c]Calculating PowerIndexOffset =============================\n"
	.align 8
.LC15:
	.string	"[Path-%c] PowerIndexOffset(%d) =DeltaPowerIndex(%d) -DeltaPowerIndexLast(%d)\n"
	.align 8
.LC16:
	.string	"The 'CCK' final index(%d) = BaseIndex(%d) + PowerIndexOffset(%d)\n"
	.align 8
.LC17:
	.string	"The 'OFDM' final index(%d) = BaseIndex[%c](%d) + PowerIndexOffset(%d)\n"
	.align 8
.LC18:
	.string	"\n\n====================================================================================\n"
	.align 8
.LC19:
	.string	"The thermal meter is unchanged or TxPowerTracking OFF(%d): ThermalValue: %d , pDM_Odm->RFCalibrateInfo.ThermalValue: %d\n"
	.align 8
.LC20:
	.string	"TxPowerTracking: [CCK] Swing Current Index: %d,Swing Base Index: %d\n"
	.align 8
.LC21:
	.string	"TxPowerTracking: [OFDM] Swing Current Index: %d,Swing Base Index[%c]: %d\n"
	.align 8
.LC22:
	.string	"Temperature Increasing(A): delta_pi: %d , delta_t: %d, Now_t: %d,EFUSE_t: %d, Last_t: %d\n"
	.align 8
.LC23:
	.string	"Temperature Increasing(B): delta_pi: %d ,delta_t: %d, Now_t: %d, EFUSE_t: %d, Last_t: %d\n"
	.align 8
.LC24:
	.string	"Temperature Decreasing(A): delta_pi: %d , delta_t: %d, Now_t: %d, EFUSE_t: %d, Last_t: %d\n"
	.align 8
.LC25:
	.string	"Temperature Decreasing(B): delta_pi: %d , delta_t: %d, Now_t: %d, EFUSE_t: %d, Last_t: %d\n"
	.align 8
.LC26:
	.string	"Temperature(%d) higher than PG value(%d)\n"
	.align 8
.LC27:
	.string	"**********Enter POWER Tracking MIX_MODE**********\n"
	.align 8
.LC28:
	.string	"Temperature(%d) lower than PG value(%d)\n"
	.align 8
.LC29:
	.string	"pDM_Odm->RFCalibrateInfo.ThermalValue =%d ThermalValue= %d\n"
	.align 8
.LC30:
	.string	"<===rtl8812ae_dm_txpower_tracking_callback_thermalmeter\n"
	.text
	.p2align 4
	.globl	rtl8812ae_dm_txpower_tracking_callback_thermalmeter
	.type	rtl8812ae_dm_txpower_tracking_callback_thermalmeter, @function
rtl8812ae_dm_txpower_tracking_callback_thermalmeter:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 88
	.cfi_def_cfa_offset 144
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 72[rsp], rax
	xor	eax, eax
	call	rtl_priv@PLT
	mov	rdi, r13
	mov	rbp, rax
	call	rtl_priv@PLT
	mov	rdi, rax
	call	rtl_efuse@PLT
	mov	rdi, r13
	mov	QWORD PTR [rsp], rax
	mov	r15, rax
	call	rtl_priv@PLT
	mov	rdi, rax
	call	rtl_dm@PLT
	mov	rdi, r13
	mov	rbx, rax
	call	rtl_priv@PLT
	mov	rdi, rax
	call	rtl_hal@PLT
	lea	rcx, 56[rsp]
	lea	rdx, 48[rsp]
	mov	rdi, r13
	lea	rsi, 40[rsp]
	lea	r8, 64[rsp]
	mov	r12, rax
	call	rtl8812ae_get_delta_swing_table@PLT
	mov	rax, QWORD PTR 8[rbx]
	sub	rsp, 8
	.cfi_def_cfa_offset 152
	mov	rdi, rbp
	mov	r8d, DWORD PTR 4[rbx]
	mov	rdx, QWORD PTR RF90_PATH_A[rip]
	mov	DWORD PTR [rbx], 1
	lea	rcx, .LC0[rip]
	mov	esi, DWORD PTR COMP_POWER_TRACKING[rip]
	mov	r9d, DWORD PTR [rax+rdx*4]
	mov	eax, DWORD PTR 116[rbx]
	mov	edx, DWORD PTR DBG_LOUD[rip]
	push	rax
	.cfi_def_cfa_offset 160
	xor	eax, eax
	call	RT_TRACE@PLT
	mov	edx, DWORD PTR RF_T_METER_8812A[rip]
	mov	ecx, 64512
	mov	rdi, r13
	mov	rsi, QWORD PTR RF90_PATH_A[rip]
	call	rtl_get_rfreg@PLT
	mov	edx, DWORD PTR DBG_LOUD[rip]
	mov	r9d, DWORD PTR [r15]
	lea	rcx, .LC1[rip]
	mov	esi, DWORD PTR COMP_POWER_TRACKING[rip]
	mov	r8, rax
	mov	r14, rax
	mov	rdi, rbp
	xor	eax, eax
	call	RT_TRACE@PLT
	mov	ecx, DWORD PTR 112[rbx]
	pop	rax
	.cfi_def_cfa_offset 152
	pop	rdx
	.cfi_def_cfa_offset 144
	test	ecx, ecx
	je	.L1
	mov	eax, DWORD PTR [r15]
	cmp	eax, 255
	je	.L1
	test	eax, eax
	je	.L1
	cmp	QWORD PTR [r12], 0
	mov	r10d, DWORD PTR DBG_LOUD[rip]
	mov	esi, DWORD PTR COMP_POWER_TRACKING[rip]
	jne	.L90
.L6:
	mov	rax, QWORD PTR 24[rbx]
	mov	rcx, QWORD PTR 16[rbx]
	mov	edi, 0
	mov	QWORD PTR [rcx+rax*8], r14
	mov	rax, QWORD PTR 24[rbx]
	mov	rdx, QWORD PTR AVG_THERMAL_NUM_8812A[rip]
	add	rax, 1
	cmp	rax, rdx
	cmove	rax, rdi
	mov	QWORD PTR 24[rbx], rax
	test	rdx, rdx
	je	.L8
	lea	rdx, [rcx+rdx*8]
	xor	eax, eax
	xor	r8d, r8d
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rdi, QWORD PTR [rcx]
	test	rdi, rdi
	je	.L9
	add	rax, rdi
	add	r8, 1
.L9:
	add	rcx, 8
	cmp	rdx, rcx
	jne	.L10
	test	r8, r8
	jne	.L91
.L8:
	mov	rax, QWORD PTR 32[rbx]
	mov	rdx, r14
	mov	rdi, rbp
	mov	rcx, rax
	sub	rdx, rax
	sub	rcx, r14
	cmp	rax, r14
	mov	rax, QWORD PTR 40[rbx]
	cmovnb	rdx, rcx
	mov	r12, rax
	mov	QWORD PTR 8[rsp], rdx
	mov	r8, rdx
	mov	rdx, r14
	sub	r12, r14
	sub	rdx, rax
	cmp	rax, r14
	mov	rax, QWORD PTR 48[rbx]
	cmovb	r12, rdx
	mov	rdx, r14
	mov	rcx, rax
	sub	rdx, rax
	sub	rcx, r14
	cmp	rax, r14
	mov	r9, r12
	cmovnb	rdx, rcx
	sub	rsp, 8
	.cfi_def_cfa_offset 152
	lea	rcx, .LC4[rip]
	xor	eax, eax
	mov	QWORD PTR 24[rsp], rdx
	push	rdx
	.cfi_def_cfa_offset 160
	mov	edx, r10d
	call	RT_TRACE@PLT
	mov	r9, QWORD PTR IQK_THRESHOLD[rip]
	pop	r15
	.cfi_def_cfa_offset 152
	pop	rax
	.cfi_def_cfa_offset 144
	cmp	r9, r12
	jbe	.L92
.L17:
	cmp	QWORD PTR 8[rsp], 0
	mov	r8d, DWORD PTR 112[rbx]
	je	.L18
	test	r8d, r8d
	je	.L18
	mov	rax, QWORD PTR [rsp]
	movsx	rdx, DWORD PTR [rax]
	mov	rax, QWORD PTR TXPWR_TRACK_TABLE_SIZE[rip]
	cmp	rdx, r14
	jnb	.L19
	mov	rsi, r14
	lea	rcx, .LC6[rip]
	mov	rdi, rbp
	sub	rsi, rdx
	lea	rdx, -1[rax]
	cmp	rsi, rax
	mov	rax, QWORD PTR 40[rsp]
	cmovb	rdx, rsi
	mov	esi, DWORD PTR COMP_POWER_TRACKING[rip]
	mov	r9, QWORD PTR [rax+rdx*8]
	mov	r15, rdx
	mov	r8, rdx
	mov	QWORD PTR 8[rsp], rdx
	mov	edx, DWORD PTR DBG_LOUD[rip]
	xor	eax, eax
	call	RT_TRACE@PLT
	mov	rax, QWORD PTR 64[rbx]
	mov	rcx, QWORD PTR 56[rbx]
	mov	rdi, rbp
	mov	rdx, QWORD PTR RF90_PATH_A[rip]
	mov	rsi, QWORD PTR [rax+rdx*8]
	mov	QWORD PTR [rcx+rdx*8], rsi
	mov	rdx, QWORD PTR 40[rsp]
	mov	rcx, QWORD PTR RF90_PATH_A[rip]
	mov	esi, DWORD PTR COMP_POWER_TRACKING[rip]
	mov	rdx, QWORD PTR [rdx+r15*8]
	mov	QWORD PTR [rax+rcx*8], rdx
	mov	rax, QWORD PTR 72[rbx]
	mov	rcx, QWORD PTR RF90_PATH_A[rip]
	mov	QWORD PTR [rax+rcx*8], rdx
	mov	rdx, QWORD PTR RF90_PATH_A[rip]
	lea	rcx, .LC7[rip]
	mov	r8, QWORD PTR [rax+rdx*8]
	mov	edx, DWORD PTR DBG_LOUD[rip]
	xor	eax, eax
	call	RT_TRACE@PLT
	mov	rax, QWORD PTR 56[rsp]
	mov	r8, r15
	mov	rdi, rbp
	mov	edx, DWORD PTR DBG_LOUD[rip]
	mov	esi, DWORD PTR COMP_POWER_TRACKING[rip]
	lea	rcx, .LC8[rip]
	mov	r9, QWORD PTR [rax+r15*8]
	xor	eax, eax
	call	RT_TRACE@PLT
	mov	rax, QWORD PTR 64[rbx]
	mov	rdx, QWORD PTR RF90_PATH_B[rip]
	mov	rcx, QWORD PTR 56[rbx]
	mov	rsi, QWORD PTR [rax+rdx*8]
	mov	QWORD PTR [rcx+rdx*8], rsi
	mov	rdx, QWORD PTR 56[rsp]
	mov	rcx, QWORD PTR RF90_PATH_B[rip]
	mov	rdx, QWORD PTR [rdx+r15*8]
	mov	QWORD PTR [rax+rcx*8], rdx
	mov	rax, QWORD PTR 72[rbx]
	mov	rcx, QWORD PTR RF90_PATH_B[rip]
	mov	QWORD PTR [rax+rcx*8], rdx
	mov	rdx, QWORD PTR RF90_PATH_B[rip]
	lea	rcx, .LC9[rip]
	mov	r8, QWORD PTR [rax+rdx*8]
.L85:
	mov	edx, DWORD PTR DBG_LOUD[rip]
	mov	esi, DWORD PTR COMP_POWER_TRACKING[rip]
	xor	eax, eax
	mov	rdi, rbp
	call	RT_TRACE@PLT
	mov	r12, QWORD PTR RF90_PATH_A[rip]
	cmp	r12, QWORD PTR MAX_PATH_NUM_8812A[rip]
	mov	r8d, 65
	jnb	.L26
	mov	QWORD PTR 24[rsp], r13
	jmp	.L25
	.p2align 4,,10
	.p2align 3
.L94:
	sub	edx, 1
	mov	DWORD PTR [r15], edx
.L32:
	add	r12, 1
	cmp	QWORD PTR MAX_PATH_NUM_8812A[rip], r12
	jbe	.L83
.L95:
	xor	r8d, r8d
	cmp	QWORD PTR RF90_PATH_A[rip], r12
	setne	r8b
	add	r8d, 65
.L25:
	mov	edx, DWORD PTR DBG_LOUD[rip]
	mov	esi, DWORD PTR COMP_POWER_TRACKING[rip]
	mov	rdi, rbp
	xor	eax, eax
	lea	rcx, .LC14[rip]
	lea	r13, 0[0+r12*8]
	call	RT_TRACE@PLT
	mov	rdx, QWORD PTR 64[rbx]
	mov	rax, QWORD PTR 56[rbx]
	add	rdx, r13
	add	rax, r13
	mov	r9, QWORD PTR [rdx]
	mov	rcx, QWORD PTR [rax]
	cmp	r9, rcx
	je	.L93
	sub	r9, rcx
	mov	rcx, QWORD PTR 80[rbx]
	mov	QWORD PTR [rcx+r12*8], r9
.L28:
	mov	rcx, QWORD PTR [rdx]
	xor	edx, edx
	push	QWORD PTR [rax]
	.cfi_def_cfa_offset 152
	mov	rdi, rbp
	cmp	QWORD PTR RF90_PATH_A[rip], r12
	lea	r15, 0[0+r12*4]
	push	rcx
	.cfi_def_cfa_offset 160
	setne	dl
	mov	esi, DWORD PTR COMP_POWER_TRACKING[rip]
	xor	eax, eax
	lea	r8d, 65[rdx]
	mov	edx, DWORD PTR DBG_LOUD[rip]
	lea	rcx, .LC15[rip]
	call	RT_TRACE@PLT
	mov	rcx, QWORD PTR 8[rbx]
	mov	rax, QWORD PTR 80[rbx]
	mov	rdi, rbp
	mov	rdx, QWORD PTR 88[rbx]
	mov	rax, QWORD PTR [rax+r13]
	mov	esi, DWORD PTR [rcx+r12*4]
	add	rdx, r15
	add	esi, eax
	mov	DWORD PTR [rdx], esi
	mov	ecx, DWORD PTR 4[rbx]
	add	ecx, eax
	mov	DWORD PTR 100[rbx], ecx
	mov	DWORD PTR 96[rbx], ecx
	mov	ecx, DWORD PTR [rdx]
	mov	rdx, QWORD PTR 104[rbx]
	mov	DWORD PTR [rdx+r12*4], ecx
	mov	r9d, DWORD PTR 4[rbx]
	lea	rcx, .LC16[rip]
	mov	r8d, DWORD PTR 100[rbx]
	mov	edx, DWORD PTR DBG_LOUD[rip]
	mov	QWORD PTR [rsp], rax
	xor	eax, eax
	mov	esi, DWORD PTR COMP_POWER_TRACKING[rip]
	call	RT_TRACE@PLT
	mov	rax, QWORD PTR 8[rbx]
	mov	rsi, QWORD PTR 104[rbx]
	mov	rdi, rbp
	mov	rcx, QWORD PTR 80[rbx]
	pop	r8
	.cfi_def_cfa_offset 152
	mov	edx, DWORD PTR [rax+r12*4]
	pop	r9
	.cfi_def_cfa_offset 144
	xor	eax, eax
	mov	r8d, DWORD PTR [rsi+r12*4]
	cmp	QWORD PTR RF90_PATH_A[rip], r12
	push	QWORD PTR [rcx+r13]
	.cfi_def_cfa_offset 152
	lea	rcx, .LC17[rip]
	setne	al
	mov	esi, DWORD PTR COMP_POWER_TRACKING[rip]
	push	rdx
	.cfi_def_cfa_offset 160
	mov	edx, DWORD PTR DBG_LOUD[rip]
	lea	r9d, 65[rax]
	xor	eax, eax
	call	RT_TRACE@PLT
	add	r15, QWORD PTR 88[rbx]
	mov	edx, DWORD PTR TXSCALE_TABLE_SIZE[rip]
	movsx	rax, DWORD PTR [r15]
	pop	r10
	.cfi_def_cfa_offset 152
	pop	r11
	.cfi_def_cfa_offset 144
	cmp	eax, edx
	jge	.L94
	cmp	rax, 5
	ja	.L32
	add	r12, 1
	cmp	QWORD PTR MAX_PATH_NUM_8812A[rip], r12
	mov	DWORD PTR [r15], 6
	ja	.L95
.L83:
	mov	r13, QWORD PTR 24[rsp]
.L26:
	mov	edx, DWORD PTR DBG_LOUD[rip]
	mov	esi, DWORD PTR COMP_POWER_TRACKING[rip]
	mov	rdi, rbp
	xor	eax, eax
	lea	rcx, .LC18[rip]
	call	RT_TRACE@PLT
	mov	r8d, DWORD PTR 96[rbx]
	mov	eax, DWORD PTR TXSCALE_TABLE_SIZE[rip]
	cmp	r8d, eax
	jl	.L35
	lea	r8d, -1[rax]
	mov	DWORD PTR 96[rbx], r8d
	jmp	.L36
.L48:
	mov	eax, DWORD PTR 100[rbx]
	mov	DWORD PTR 4[rbx], eax
	.p2align 4,,10
	.p2align 3
.L54:
	mov	r8, QWORD PTR 32[rbx]
	mov	edx, DWORD PTR DBG_LOUD[rip]
	mov	r9, r14
	mov	rdi, rbp
	mov	esi, DWORD PTR COMP_POWER_TRACKING[rip]
	lea	rcx, .LC29[rip]
	xor	eax, eax
	call	RT_TRACE@PLT
	mov	QWORD PTR 32[rbx], r14
.L44:
	mov	rax, QWORD PTR 16[rsp]
	cmp	QWORD PTR IQK_THRESHOLD[rip], rax
	jbe	.L96
.L55:
	mov	edx, DWORD PTR DBG_LOUD[rip]
	mov	esi, DWORD PTR COMP_POWER_TRACKING[rip]
	mov	rdi, rbp
	xor	eax, eax
	lea	rcx, .LC30[rip]
	call	RT_TRACE@PLT
.L1:
	mov	rax, QWORD PTR 72[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L97
	add	rsp, 88
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	sub	rsp, 8
	.cfi_def_cfa_offset 152
	push	QWORD PTR 32[rbx]
	.cfi_def_cfa_offset 160
	mov	esi, DWORD PTR COMP_POWER_TRACKING[rip]
	mov	rdi, rbp
	mov	edx, DWORD PTR DBG_LOUD[rip]
	xor	eax, eax
	mov	r9, r14
	lea	rcx, .LC19[rip]
	call	RT_TRACE@PLT
	mov	rax, QWORD PTR RF90_PATH_A[rip]
	pop	rsi
	.cfi_def_cfa_offset 152
	cmp	rax, QWORD PTR MAX_PATH_NUM_8812A[rip]
	pop	rdi
	.cfi_def_cfa_offset 144
	jnb	.L86
	mov	rdx, QWORD PTR 80[rbx]
	.p2align 4,,10
	.p2align 3
.L38:
	mov	QWORD PTR [rdx+rax*8], 0
	add	rax, 1
	cmp	QWORD PTR MAX_PATH_NUM_8812A[rip], rax
	ja	.L38
.L86:
	mov	r8d, DWORD PTR 96[rbx]
.L36:
	mov	r9d, DWORD PTR 4[rbx]
	mov	edx, DWORD PTR DBG_LOUD[rip]
	xor	eax, eax
	mov	rdi, rbp
	mov	esi, DWORD PTR COMP_POWER_TRACKING[rip]
	lea	rcx, .LC20[rip]
	call	RT_TRACE@PLT
	mov	r15, QWORD PTR RF90_PATH_A[rip]
	cmp	r15, QWORD PTR MAX_PATH_NUM_8812A[rip]
	jnb	.L39
	mov	rcx, r15
	lea	r12, .LC21[rip]
	jmp	.L42
	.p2align 4,,10
	.p2align 3
.L41:
	mov	rcx, QWORD PTR RF90_PATH_A[rip]
.L42:
	mov	rax, QWORD PTR 8[rbx]
	mov	esi, DWORD PTR COMP_POWER_TRACKING[rip]
	mov	rdi, rbp
	mov	edx, DWORD PTR [rax+r15*4]
	xor	eax, eax
	cmp	rcx, r15
	mov	rcx, QWORD PTR 88[rbx]
	setne	al
	sub	rsp, 8
	.cfi_def_cfa_offset 152
	mov	r8d, DWORD PTR [rcx+r15*4]
	push	rdx
	.cfi_def_cfa_offset 160
	lea	r9d, 65[rax]
	mov	rcx, r12
	mov	edx, DWORD PTR DBG_LOUD[rip]
	xor	eax, eax
	add	r15, 1
	call	RT_TRACE@PLT
	cmp	QWORD PTR MAX_PATH_NUM_8812A[rip], r15
	pop	rdx
	.cfi_def_cfa_offset 152
	pop	rcx
	.cfi_def_cfa_offset 144
	ja	.L41
	mov	r15, QWORD PTR RF90_PATH_A[rip]
.L39:
	mov	rax, QWORD PTR 80[rbx]
	mov	r8, QWORD PTR [rax+r15*8]
	test	r8, r8
	je	.L98
.L43:
	mov	eax, DWORD PTR 112[rbx]
	test	eax, eax
	je	.L44
	mov	rsi, QWORD PTR [rsp]
	mov	rax, QWORD PTR 32[rbx]
	mov	edx, DWORD PTR DBG_LOUD[rip]
	mov	r9d, DWORD PTR [rsi]
	mov	esi, DWORD PTR COMP_POWER_TRACKING[rip]
	cmp	rax, r14
	jb	.L99
	ja	.L100
.L46:
	movsx	rax, r9d
	mov	r8, r14
	cmp	rax, r14
	jnb	.L47
	lea	rcx, .LC26[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	RT_TRACE@PLT
	mov	edx, DWORD PTR DBG_LOUD[rip]
	xor	eax, eax
	mov	rdi, rbp
	mov	esi, DWORD PTR COMP_POWER_TRACKING[rip]
	lea	rcx, .LC27[rip]
	call	RT_TRACE@PLT
	mov	r12, QWORD PTR RF90_PATH_A[rip]
	cmp	r12, QWORD PTR MAX_PATH_NUM_8812A[rip]
	jnb	.L48
	.p2align 4,,10
	.p2align 3
.L49:
	mov	esi, DWORD PTR MIX_MODE[rip]
	mov	rdx, r12
	xor	ecx, ecx
	mov	rdi, r13
	add	r12, 1
	call	rtl8812ae_dm_txpwr_track_set_pwr@PLT
	mov	rdx, QWORD PTR MAX_PATH_NUM_8812A[rip]
	cmp	rdx, r12
	ja	.L49
.L88:
	mov	rax, QWORD PTR RF90_PATH_A[rip]
	mov	ecx, DWORD PTR 100[rbx]
	mov	DWORD PTR 4[rbx], ecx
	cmp	rdx, rax
	jbe	.L54
	mov	rdi, QWORD PTR 104[rbx]
	mov	rsi, QWORD PTR 8[rbx]
	.p2align 4,,10
	.p2align 3
.L53:
	mov	ecx, DWORD PTR [rdi+rax*4]
	mov	DWORD PTR [rsi+rax*4], ecx
	add	rax, 1
	cmp	rax, rdx
	jne	.L53
	jmp	.L54
	.p2align 4,,10
	.p2align 3
.L98:
	mov	rdx, QWORD PTR RF90_PATH_B[rip]
	cmp	QWORD PTR [rax+rdx*8], 0
	je	.L44
	jmp	.L43
	.p2align 4,,10
	.p2align 3
.L91:
	xor	edx, edx
	lea	rcx, .LC3[rip]
	mov	rdi, rbp
	div	r8
	mov	edx, r10d
	mov	r14, rax
	mov	rax, QWORD PTR [rsp]
	mov	r8, r14
	mov	r9d, DWORD PTR [rax]
	xor	eax, eax
	call	RT_TRACE@PLT
	mov	r10d, DWORD PTR DBG_LOUD[rip]
	mov	esi, DWORD PTR COMP_POWER_TRACKING[rip]
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L93:
	mov	rcx, QWORD PTR 80[rbx]
	xor	r9d, r9d
	mov	QWORD PTR [rcx+r12*8], 0
	jmp	.L28
	.p2align 4,,10
	.p2align 3
.L92:
	mov	edx, DWORD PTR DBG_LOUD[rip]
	mov	rdi, rbp
	mov	r8, r12
	xor	eax, eax
	mov	esi, DWORD PTR COMP_POWER_TRACKING[rip]
	lea	rcx, .LC5[rip]
	call	RT_TRACE@PLT
	mov	QWORD PTR 40[rbx], r14
	mov	rdi, r13
	call	rtl8821ae_phy_lc_calibrate@PLT
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L90:
	mov	edx, r10d
	lea	rcx, .LC2[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	RT_TRACE@PLT
	mov	r10d, DWORD PTR DBG_LOUD[rip]
	mov	esi, DWORD PTR COMP_POWER_TRACKING[rip]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L96:
	mov	ecx, 8
	mov	rdx, r14
	mov	rsi, rax
	mov	rdi, r13
	call	rtl8812ae_do_iqk@PLT
	jmp	.L55
	.p2align 4,,10
	.p2align 3
.L47:
	lea	rcx, .LC28[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	RT_TRACE@PLT
	mov	edx, DWORD PTR DBG_LOUD[rip]
	xor	eax, eax
	mov	rdi, rbp
	mov	esi, DWORD PTR COMP_POWER_TRACKING[rip]
	lea	rcx, .LC27[rip]
	call	RT_TRACE@PLT
	mov	r12, QWORD PTR RF90_PATH_A[rip]
	cmp	r12, QWORD PTR MAX_PATH_NUM_8812A[rip]
	jnb	.L48
	.p2align 4,,10
	.p2align 3
.L51:
	mov	esi, DWORD PTR MIX_MODE[rip]
	mov	rdx, r12
	xor	ecx, ecx
	mov	rdi, r13
	add	r12, 1
	call	rtl8812ae_dm_txpwr_track_set_pwr@PLT
	mov	rdx, QWORD PTR MAX_PATH_NUM_8812A[rip]
	cmp	rdx, r12
	ja	.L51
	jmp	.L88
	.p2align 4,,10
	.p2align 3
.L35:
	test	r8d, r8d
	jns	.L36
	mov	DWORD PTR 96[rbx], 0
	xor	r8d, r8d
	jmp	.L36
	.p2align 4,,10
	.p2align 3
.L19:
	sub	rdx, r14
	lea	rcx, .LC10[rip]
	mov	rdi, rbp
	mov	rsi, rdx
	lea	rdx, -1[rax]
	cmp	rsi, rax
	mov	rax, QWORD PTR 48[rsp]
	cmovb	rdx, rsi
	mov	esi, DWORD PTR COMP_POWER_TRACKING[rip]
	mov	r9, QWORD PTR [rax+rdx*8]
	mov	r15, rdx
	mov	r8, rdx
	mov	QWORD PTR 8[rsp], rdx
	lea	r12, 0[0+rdx*8]
	mov	edx, DWORD PTR DBG_LOUD[rip]
	xor	eax, eax
	call	RT_TRACE@PLT
	mov	rdx, QWORD PTR 64[rbx]
	mov	rcx, QWORD PTR 56[rbx]
	mov	rdi, rbp
	mov	rax, QWORD PTR RF90_PATH_A[rip]
	mov	rsi, QWORD PTR [rdx+rax*8]
	mov	QWORD PTR [rcx+rax*8], rsi
	mov	rcx, QWORD PTR 48[rsp]
	mov	rsi, QWORD PTR RF90_PATH_A[rip]
	add	rcx, r12
	mov	rax, QWORD PTR [rcx]
	neg	rax
	mov	QWORD PTR [rdx+rsi*8], rax
	mov	rax, QWORD PTR [rcx]
	mov	rdx, QWORD PTR 72[rbx]
	mov	rcx, QWORD PTR RF90_PATH_A[rip]
	neg	rax
	mov	esi, DWORD PTR COMP_POWER_TRACKING[rip]
	mov	QWORD PTR [rdx+rcx*8], rax
	mov	rax, QWORD PTR RF90_PATH_A[rip]
	lea	rcx, .LC11[rip]
	mov	r8, QWORD PTR [rdx+rax*8]
	mov	edx, DWORD PTR DBG_LOUD[rip]
	xor	eax, eax
	call	RT_TRACE@PLT
	mov	rax, QWORD PTR 64[rsp]
	mov	r8, r15
	mov	rdi, rbp
	mov	edx, DWORD PTR DBG_LOUD[rip]
	mov	esi, DWORD PTR COMP_POWER_TRACKING[rip]
	lea	rcx, .LC12[rip]
	mov	r9, QWORD PTR [rax+r15*8]
	xor	eax, eax
	call	RT_TRACE@PLT
	mov	rdx, QWORD PTR 64[rbx]
	mov	rcx, QWORD PTR 56[rbx]
	mov	rax, QWORD PTR RF90_PATH_B[rip]
	add	r12, QWORD PTR 64[rsp]
	mov	rsi, QWORD PTR [rdx+rax*8]
	mov	QWORD PTR [rcx+rax*8], rsi
	mov	rax, QWORD PTR [r12]
	mov	rcx, QWORD PTR RF90_PATH_B[rip]
	neg	rax
	mov	QWORD PTR [rdx+rcx*8], rax
	mov	rax, QWORD PTR [r12]
	mov	rdx, QWORD PTR 72[rbx]
	mov	rcx, QWORD PTR RF90_PATH_B[rip]
	neg	rax
	mov	QWORD PTR [rdx+rcx*8], rax
	mov	rax, QWORD PTR RF90_PATH_B[rip]
	lea	rcx, .LC13[rip]
	mov	r8, QWORD PTR [rdx+rax*8]
	jmp	.L85
	.p2align 4,,10
	.p2align 3
.L99:
	sub	rsp, 8
	.cfi_def_cfa_offset 152
	lea	rcx, .LC22[rip]
	mov	rdi, rbp
	push	rax
	.cfi_def_cfa_offset 160
	xor	eax, eax
	push	r9
	.cfi_def_cfa_offset 168
	push	r14
	.cfi_def_cfa_offset 176
	mov	r12, QWORD PTR 40[rsp]
	mov	r9, r12
	call	RT_TRACE@PLT
	mov	rax, QWORD PTR 80[rbx]
	add	rsp, 24
	.cfi_def_cfa_offset 152
	mov	r9, r12
	mov	rdx, QWORD PTR RF90_PATH_B[rip]
	lea	rcx, .LC23[rip]
	mov	r8, QWORD PTR [rax+rdx*8]
	push	QWORD PTR 32[rbx]
	.cfi_def_cfa_offset 160
	mov	r15, QWORD PTR 16[rsp]
	mov	eax, DWORD PTR [r15]
	push	rax
	.cfi_def_cfa_offset 168
	push	r14
	.cfi_def_cfa_offset 176
.L87:
	mov	edx, DWORD PTR DBG_LOUD[rip]
	mov	esi, DWORD PTR COMP_POWER_TRACKING[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	RT_TRACE@PLT
	mov	r9d, DWORD PTR [r15]
	mov	edx, DWORD PTR DBG_LOUD[rip]
	add	rsp, 32
	.cfi_def_cfa_offset 144
	mov	esi, DWORD PTR COMP_POWER_TRACKING[rip]
	jmp	.L46
.L100:
	sub	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 152
	lea	rcx, .LC24[rip]
	mov	rdi, rbp
	push	rax
	.cfi_def_cfa_offset 160
	xor	eax, eax
	push	r9
	.cfi_def_cfa_offset 168
	push	r14
	.cfi_def_cfa_offset 176
	mov	r12, QWORD PTR 40[rsp]
	mov	r9, r12
	call	RT_TRACE@PLT
	mov	rax, QWORD PTR 80[rbx]
	add	rsp, 24
	.cfi_def_cfa_offset 152
	mov	r9, r12
	mov	rdx, QWORD PTR RF90_PATH_B[rip]
	lea	rcx, .LC25[rip]
	mov	r8, QWORD PTR [rax+rdx*8]
	push	QWORD PTR 32[rbx]
	.cfi_def_cfa_offset 160
	mov	r15, QWORD PTR 16[rsp]
	mov	eax, DWORD PTR [r15]
	push	rax
	.cfi_def_cfa_offset 168
	push	r14
	.cfi_def_cfa_offset 176
	jmp	.L87
.L97:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	rtl8812ae_dm_txpower_tracking_callback_thermalmeter, .-rtl8812ae_dm_txpower_tracking_callback_thermalmeter
	.comm	TXSCALE_TABLE_SIZE,4,4
	.comm	TXPWR_TRACK_TABLE_SIZE,8,8
	.comm	RF_T_METER_8812A,4,4
	.comm	RF90_PATH_B,8,8
	.comm	RF90_PATH_A,8,8
	.comm	MIX_MODE,4,4
	.comm	MAX_PATH_NUM_8812A,8,8
	.comm	IQK_THRESHOLD,8,8
	.comm	DBG_LOUD,4,4
	.comm	COMP_POWER_TRACKING,4,4
	.comm	AVG_THERMAL_NUM_8812A,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_dm.c_rtl8812ae_dm_txpower_tracking_callback_thermalmeter.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"pDM_Odm->BbSwingIdxCckBase: %d, pDM_Odm->BbSwingIdx"
	.ascii	"OfdmBase[A]:%d, pDM_Odm->DefaultOfdmIndex: %d\012\000"
	.align	2
.LC1:
	.ascii	"Thermal Meter = 0x%X, EFUSE Thermal Base = 0x%X\012"
	.ascii	"\000"
	.align	2
.LC2:
	.ascii	"reload ofdm index for band switch\012\000"
	.global	__aeabi_uidiv
	.align	2
.LC3:
	.ascii	"AVG Thermal Meter = 0x%X, EFUSE Thermal Base = 0x%X"
	.ascii	"\012\000"
	.align	2
.LC4:
	.ascii	"(delta, delta_LCK, delta_IQK) = (%d, %d, %d)\012\000"
	.align	2
.LC5:
	.ascii	"delta_LCK(%d) >= Threshold_IQK(%d)\012\000"
	.align	2
.LC6:
	.ascii	"delta_swing_table_idx_tup_a[%d] = %d\012\000"
	.align	2
.LC7:
	.ascii	"******Temp is higher and pDM_Odm->Absolute_OFDMSwin"
	.ascii	"gIdx[ODM_RF_PATH_A] = %d\012\000"
	.align	2
.LC8:
	.ascii	"delta_swing_table_idx_tup_b[%d] = %d\012\000"
	.align	2
.LC9:
	.ascii	"******Temp is higher and pDM_Odm->Absolute_OFDMSwin"
	.ascii	"gIdx[ODM_RF_PATH_B] = %d\012\000"
	.align	2
.LC10:
	.ascii	"delta_swing_table_idx_tdown_a[%d] = %d\012\000"
	.align	2
.LC11:
	.ascii	"******Temp is lower and pDM_Odm->Absolute_OFDMSwing"
	.ascii	"Idx[ODM_RF_PATH_A] = %d\012\000"
	.align	2
.LC12:
	.ascii	"deltaSwingTableIdx_TDOWN_B[%d] = %d\012\000"
	.align	2
.LC13:
	.ascii	"******Temp is lower and pDM_Odm->Absolute_OFDMSwing"
	.ascii	"Idx[ODM_RF_PATH_B] = %d\012\000"
	.align	2
.LC14:
	.ascii	"============================= [Path-%c]Calculating "
	.ascii	"PowerIndexOffset =============================\012\000"
	.align	2
.LC15:
	.ascii	"[Path-%c] PowerIndexOffset(%d) =DeltaPowerIndex(%d)"
	.ascii	" -DeltaPowerIndexLast(%d)\012\000"
	.align	2
.LC16:
	.ascii	"The 'CCK' final index(%d) = BaseIndex(%d) + PowerIn"
	.ascii	"dexOffset(%d)\012\000"
	.align	2
.LC17:
	.ascii	"The 'OFDM' final index(%d) = BaseIndex[%c](%d) + Po"
	.ascii	"werIndexOffset(%d)\012\000"
	.align	2
.LC18:
	.ascii	"\012\012==========================================="
	.ascii	"=========================================\012\000"
	.align	2
.LC19:
	.ascii	"The thermal meter is unchanged or TxPowerTracking O"
	.ascii	"FF(%d): ThermalValue: %d , pDM_Odm->RFCalibrateInfo"
	.ascii	".ThermalValue: %d\012\000"
	.align	2
.LC20:
	.ascii	"TxPowerTracking: [CCK] Swing Current Index: %d,Swin"
	.ascii	"g Base Index: %d\012\000"
	.align	2
.LC21:
	.ascii	"TxPowerTracking: [OFDM] Swing Current Index: %d,Swi"
	.ascii	"ng Base Index[%c]: %d\012\000"
	.align	2
.LC22:
	.ascii	"Temperature Increasing(A): delta_pi: %d , delta_t: "
	.ascii	"%d, Now_t: %d,EFUSE_t: %d, Last_t: %d\012\000"
	.align	2
.LC23:
	.ascii	"Temperature Increasing(B): delta_pi: %d ,delta_t: %"
	.ascii	"d, Now_t: %d, EFUSE_t: %d, Last_t: %d\012\000"
	.align	2
.LC24:
	.ascii	"Temperature Decreasing(A): delta_pi: %d , delta_t: "
	.ascii	"%d, Now_t: %d, EFUSE_t: %d, Last_t: %d\012\000"
	.align	2
.LC25:
	.ascii	"Temperature Decreasing(B): delta_pi: %d , delta_t: "
	.ascii	"%d, Now_t: %d, EFUSE_t: %d, Last_t: %d\012\000"
	.align	2
.LC26:
	.ascii	"Temperature(%d) higher than PG value(%d)\012\000"
	.align	2
.LC27:
	.ascii	"**********Enter POWER Tracking MIX_MODE**********\012"
	.ascii	"\000"
	.align	2
.LC28:
	.ascii	"Temperature(%d) lower than PG value(%d)\012\000"
	.align	2
.LC29:
	.ascii	"pDM_Odm->RFCalibrateInfo.ThermalValue =%d ThermalVa"
	.ascii	"lue= %d\012\000"
	.align	2
.LC30:
	.ascii	"<===rtl8812ae_dm_txpower_tracking_callback_thermalm"
	.ascii	"eter\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC31:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	rtl8812ae_dm_txpower_tracking_callback_thermalmeter
	.syntax unified
	.arm
	.fpu softvfp
	.type	rtl8812ae_dm_txpower_tracking_callback_thermalmeter, %function
rtl8812ae_dm_txpower_tracking_callback_thermalmeter:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L109
	sub	sp, sp, #76
	mov	r10, r0
	ldr	r3, [r3]
	str	r3, [sp, #68]
	mov	r3,#0
	bl	rtl_priv
	mov	r5, r0
	mov	r0, r10
	bl	rtl_priv
	bl	rtl_efuse
	mov	r3, r0
	mov	r0, r10
	mov	r9, r3
	str	r3, [sp, #28]
	bl	rtl_priv
	bl	rtl_dm
	mov	r4, r0
	mov	r0, r10
	bl	rtl_priv
	bl	rtl_hal
	add	r3, sp, #64
	str	r3, [sp]
	add	r2, sp, #56
	add	r3, sp, #60
	add	r1, sp, #52
	mov	r7, r0
	mov	r0, r10
	bl	rtl8812ae_get_delta_swing_table
	mov	r2, #1
	ldr	r3, [r4, #68]
	ldr	r8, .L109+4
	str	r2, [r4]
	str	r3, [sp, #8]
	ldr	r3, [r4, #8]
	ldr	r2, [r8]
	ldr	r6, .L109+8
	ldr	r3, [r3, r2, lsl #2]
	ldr	fp, .L109+12
	str	r3, [sp, #4]
	ldr	r3, [r4, #4]
	ldr	r1, [r6]
	str	r3, [sp]
	ldr	r2, [fp]
	ldr	r3, .L109+16
	mov	r0, r5
	bl	RT_TRACE
	ldr	r3, .L109+20
	ldr	r1, [r8]
	ldr	r2, [r3]
	mov	r0, r10
	mov	r3, #64512
	bl	rtl_get_rfreg
	mov	r2, r0
	ldr	r3, [r9]
	str	r0, [sp, #24]
	stm	sp, {r2, r3}
	mov	r0, r5
	ldr	r3, .L109+24
	ldr	r2, [fp]
	ldr	r1, [r6]
	bl	RT_TRACE
	ldr	r3, [r4, #64]
	cmp	r3, #0
	beq	.L1
	ldr	r3, [r9]
	cmp	r3, #0
	cmpne	r3, #255
	beq	.L1
	ldr	r3, [r7]
	ldr	r9, [r6]
	cmp	r3, #0
	ldr	r2, [fp]
	bne	.L99
.L5:
	ldr	r1, [r4, #16]
	ldr	r3, [r4, #12]
	ldr	ip, [sp, #24]
	ldr	r0, .L109+28
	str	ip, [r3, r1, lsl #2]
	ldr	r1, [r4, #16]
	ldr	lr, [r0]
	add	r1, r1, #1
	cmp	r1, lr
	str	r1, [r4, #16]
	moveq	r1, #0
	streq	r1, [r4, #16]
	cmp	lr, #0
	beq	.L7
	mov	r0, #0
	mov	r1, r0
	add	lr, r3, lr, lsl #2
	sub	lr, lr, #4
	sub	r3, r3, #4
.L9:
	ldr	ip, [r3, #4]!
	cmp	ip, #0
	addne	r0, r0, ip
	addne	r1, r1, #1
	cmp	lr, r3
	bne	.L9
	cmp	r1, #0
	bne	.L100
.L7:
	ldr	r3, [r4, #20]
	ldr	r1, [sp, #24]
	ldr	r7, [r4, #24]
	cmp	r3, r1
	ldrcs	r1, [sp, #24]
	subcc	r3, r1, r3
	subcs	r3, r3, r1
	str	r3, [sp, #32]
	ldr	r3, [sp, #24]
	ldr	r1, [sp, #24]
	cmp	r7, r3
	ldrcs	r3, [sp, #24]
	subcc	r7, r3, r7
	subcs	r7, r7, r3
	ldr	r3, [r4, #28]
	mov	r0, r5
	cmp	r3, r1
	ldrcs	r1, [sp, #24]
	subcc	r3, r1, r3
	subcs	r3, r3, r1
	str	r3, [sp, #36]
	ldr	r3, [sp, #36]
	mov	r1, r9
	str	r3, [sp, #8]
	ldr	r3, [sp, #32]
	str	r7, [sp, #4]
	str	r3, [sp]
	ldr	r3, .L109+32
	bl	RT_TRACE
	ldr	r3, .L109+36
	ldr	r3, [r3]
	cmp	r3, r7
	bls	.L101
.L16:
	ldr	r3, [sp, #32]
	cmp	r3, #0
	ldr	r3, [r4, #64]
	beq	.L17
	cmp	r3, #0
	beq	.L17
	ldr	r3, [sp, #28]
	ldr	r1, [sp, #24]
	ldr	r3, [r3]
	ldr	r2, .L109+40
	cmp	r3, r1
	ldr	r2, [r2]
	bcs	.L18
	sub	r3, r1, r3
	cmp	r3, r2
	str	r3, [sp, #32]
	subcs	r3, r2, #1
	strcs	r3, [sp, #32]
	ldr	r7, [sp, #32]
	ldr	r2, [sp, #52]
	ldr	r9, .L109+12
	ldr	r1, [r2, r7, lsl #2]
	ldr	r3, .L109+44
	ldr	r2, [r9]
	mov	r0, r5
	str	r1, [sp, #4]
	str	r7, [sp]
	ldr	r1, [r6]
	bl	RT_TRACE
	ldr	r3, [r4, #36]
	ldr	r2, [r8]
	ldr	r0, [r4, #32]
	ldr	ip, [r3, r2, lsl #2]
	ldr	r1, [sp, #52]
	str	ip, [r0, r2, lsl #2]
	ldr	r2, [r1, r7, lsl #2]
	ldr	r0, [r8]
	ldr	r1, [r4, #40]
	str	r2, [r3, r0, lsl #2]
	ldr	r0, [r8]
	ldr	r3, .L109+48
	str	r2, [r1, r0, lsl #2]
	ldr	r0, [r8]
	ldr	r2, [r9]
	ldr	r0, [r1, r0, lsl #2]
	ldr	r1, [r6]
	str	r0, [sp]
	mov	r0, r5
	bl	RT_TRACE
	ldr	r2, [sp, #60]
	ldr	r3, .L109+52
	ldr	r1, [r2, r7, lsl #2]
	mov	r0, r5
	ldr	r2, [r9]
	str	r1, [sp, #4]
	str	r7, [sp]
	ldr	r1, [r6]
	bl	RT_TRACE
	ldr	r2, .L109+56
	ldr	r3, [r4, #36]
	ldr	r1, [r2]
	ldr	ip, [r4, #32]
	ldr	lr, [r3, r1, lsl #2]
	ldr	r0, [sp, #60]
	str	lr, [ip, r1, lsl #2]
	ldr	ip, [r2]
	ldr	r0, [r0, r7, lsl #2]
	ldr	r1, [r4, #40]
	str	r0, [r3, ip, lsl #2]
	ldr	ip, [r2]
	ldr	r3, .L109+60
	str	r0, [r1, ip, lsl #2]
	ldr	r0, [r2]
	ldr	r2, [r9]
	ldr	r0, [r1, r0, lsl #2]
	ldr	r1, [r6]
	str	r0, [sp]
	mov	r0, r5
	bl	RT_TRACE
.L23:
	ldr	fp, .L109+64
	ldr	r9, [r8]
	ldr	r3, [fp]
	cmp	r9, r3
	ldrcs	r3, .L109+68
	strcs	r3, [sp, #40]
	bcs	.L24
	ldr	r3, .L109+68
	str	r10, [sp, #44]
	mov	r2, r9
	mov	r10, r3
	str	r3, [sp, #40]
	b	.L32
.L102:
	ldr	r2, [r8]
.L32:
	cmp	r2, r9
	moveq	r2, #65
	movne	r2, #66
	str	r2, [sp]
	ldr	r2, .L109+12
	ldr	r3, .L109+72
	ldr	r2, [r2]
	ldr	r1, [r6]
	mov	r0, r5
	bl	RT_TRACE
	ldr	r0, [r4, #36]
	ldr	r3, [r4, #32]
	ldr	r1, [r0, r9, lsl #2]
	ldr	r2, [r3, r9, lsl #2]
	lsl	r7, r9, #2
	cmp	r1, r2
	moveq	r1, #0
	moveq	ip, r1
	ldrne	ip, [r4, #44]
	ldreq	r2, [r4, #44]
	subne	r1, r1, r2
	strne	r1, [ip, r9, lsl #2]
	streq	ip, [r2, r9, lsl #2]
	ldr	r2, [r8]
	ldr	r3, [r3, r7]
	cmp	r2, r9
	moveq	r2, #65
	movne	r2, #66
	str	r3, [sp, #12]
	ldr	r0, [r0, r7]
	str	r2, [sp]
	ldr	r2, .L109+12
	str	r0, [sp, #8]
	str	r1, [sp, #4]
	ldr	r3, .L109+76
	ldr	r2, [r2]
	ldr	r1, [r6]
	mov	r0, r5
	bl	RT_TRACE
	ldr	r2, [r4, #44]
	ldr	r3, [r4, #8]
	ldr	r2, [r2, r7]
	ldr	r3, [r3, r7]
	ldr	r1, [r4, #48]
	add	r3, r3, r2
	str	r3, [r1, r7]
	ldr	r3, [r4, #4]
	ldr	r0, [r4, #60]
	add	r3, r2, r3
	str	r3, [r4, #56]
	str	r3, [r4, #52]
	ldr	r1, [r1, r7]
	ldr	r3, .L109+80
	str	r1, [r0, r7]
	str	r2, [sp, #8]
	ldr	r1, [r4, #4]
	ldr	r2, .L109+12
	ldr	r2, [r2]
	str	r1, [sp, #4]
	ldr	r0, [r4, #56]
	ldr	r1, [r6]
	str	r0, [sp]
	mov	r0, r5
	bl	RT_TRACE
	ldr	r1, [r8]
	ldr	r3, [r4, #44]
	cmp	r1, r9
	moveq	r1, #65
	movne	r1, #66
	ldr	r2, [r3, r7]
	ldr	r0, [r4, #60]
	ldr	r3, .L109+84
	ldr	ip, [r0, r7]
	str	r2, [sp, #12]
	ldr	r0, [r4, #8]
	ldr	r2, .L109+12
	ldr	r0, [r0, r7]
	ldr	r2, [r2]
	str	r0, [sp, #8]
	str	r1, [sp, #4]
	mov	r0, r5
	ldr	r1, [r6]
	str	ip, [sp]
	bl	RT_TRACE
	ldr	r2, [r4, #48]
	ldr	r3, [r10]
	ldr	r1, [r2, r7]
	cmp	r1, r3
	subge	r3, r3, #1
	strge	r3, [r2, r7]
	bge	.L31
	cmp	r1, #5
	movls	r3, #6
	strls	r3, [r2, r7]
.L31:
	ldr	r3, [fp]
	add	r9, r9, #1
	cmp	r3, r9
	bhi	.L102
	ldr	r10, [sp, #44]
.L24:
	ldr	r2, .L109+12
	ldr	r3, .L109+88
	ldr	r2, [r2]
	mov	r0, r5
	ldr	r1, [r6]
	bl	RT_TRACE
	ldr	r3, [sp, #40]
	ldr	r2, [r4, #52]
	ldr	r3, [r3]
	cmp	r2, r3
	subge	r2, r3, #1
	strge	r2, [r4, #52]
	bge	.L34
	cmp	r2, #0
	movlt	r2, #0
	strlt	r2, [r4, #52]
	b	.L34
.L46:
	ldr	r3, [r4, #56]
	str	r3, [r4, #4]
.L52:
	ldr	r7, [sp, #24]
	mov	r0, r5
	str	r7, [sp, #4]
	ldr	r2, [r4, #20]
	ldr	r3, .L109+92
	str	r2, [sp]
	ldr	r2, .L109+12
	ldr	r1, [r6]
	ldr	r2, [r2]
	bl	RT_TRACE
	str	r7, [r4, #20]
.L42:
	ldr	r3, .L109+36
	ldr	r2, [sp, #36]
	ldr	r3, [r3]
	cmp	r3, r2
	bls	.L103
.L53:
	ldr	r3, .L109+12
	mov	r0, r5
	ldr	r2, [r3]
	ldr	r1, [r6]
	ldr	r3, .L109+96
	bl	RT_TRACE
.L1:
	ldr	r3, .L109
	ldr	r2, [r3]
	ldr	r3, [sp, #68]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L104
	add	sp, sp, #76
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L17:
	ldr	r2, [r4, #20]
	ldr	fp, .L109+64
	str	r2, [sp, #8]
	ldr	r2, [sp, #24]
	str	r3, [sp]
	str	r2, [sp, #4]
	ldr	r2, .L109+12
	ldr	r3, .L109+100
	ldr	r2, [r2]
	mov	r0, r5
	ldr	r1, [r6]
	bl	RT_TRACE
	ldr	r2, [fp]
	ldr	r3, [r8]
	cmp	r3, r2
	bcs	.L95
	mov	r0, #0
	ldr	r2, [r4, #44]
	sub	r1, r3, #-1073741823
	add	r2, r2, r1, lsl #2
.L36:
	str	r0, [r2, #4]!
	ldr	r1, [fp]
	add	r3, r3, #1
	cmp	r1, r3
	bhi	.L36
.L95:
	ldr	r2, [r4, #52]
.L34:
	ldr	r1, [r4, #4]
	str	r2, [sp]
	ldr	r2, .L109+12
	str	r1, [sp, #4]
	ldr	r3, .L109+104
	mov	r0, r5
	ldr	r2, [r2]
	ldr	r1, [r6]
	bl	RT_TRACE
	ldr	r7, [r8]
	ldr	r3, [fp]
	cmp	r7, r3
	bcs	.L37
	mov	r2, r7
	ldr	r9, .L109+108
	b	.L40
.L39:
	ldr	r2, [r8]
.L40:
	cmp	r2, r7
	moveq	r2, #65
	movne	r2, #66
	ldr	r3, [r4, #8]
	ldr	r1, [r4, #48]
	ldr	r0, [r3, r7, lsl #2]
	ldr	r1, [r1, r7, lsl #2]
	str	r2, [sp, #4]
	ldr	r2, .L109+12
	str	r0, [sp, #8]
	str	r1, [sp]
	mov	r3, r9
	mov	r0, r5
	ldr	r2, [r2]
	ldr	r1, [r6]
	bl	RT_TRACE
	ldr	r3, [fp]
	add	r7, r7, #1
	cmp	r3, r7
	bhi	.L39
	ldr	r7, [r8]
.L37:
	ldr	r3, [r4, #44]
	ldr	r0, [r3, r7, lsl #2]
	cmp	r0, #0
	beq	.L105
.L41:
	ldr	r3, [r4, #64]
	cmp	r3, #0
	beq	.L42
	ldr	r3, [sp, #24]
	ldr	ip, [r4, #20]
	ldr	r1, [r6]
	cmp	ip, r3
	ldr	r3, .L109+12
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	ldr	r3, [r3]
	bcc	.L106
	bhi	.L107
.L44:
	ldr	r0, [sp, #24]
	str	r3, [sp, #4]
	cmp	r3, r0
	bcs	.L45
	ldr	r3, .L109+112
	str	r0, [sp]
	mov	r0, r5
	bl	RT_TRACE
	ldr	r2, .L109+12
	ldr	r3, .L109+116
	mov	r0, r5
	ldr	r2, [r2]
	ldr	r1, [r6]
	bl	RT_TRACE
	ldr	r9, [r8]
	ldr	r3, [fp]
	cmp	r9, r3
	bcs	.L46
	ldr	r7, .L109+120
.L47:
	mov	r2, r9
	ldr	r1, [r7]
	mov	r3, #0
	mov	r0, r10
	bl	rtl8812ae_dm_txpwr_track_set_pwr
	ldr	r1, [fp]
	add	r9, r9, #1
	cmp	r1, r9
	bhi	.L47
.L97:
	ldr	r0, [r8]
	ldr	r3, [r4, #56]
	cmp	r0, r1
	str	r3, [r4, #4]
	bcs	.L52
	ldr	r3, [r4, #60]
	ldr	r2, [r4, #8]
	sub	r0, r0, #-1073741823
	sub	ip, r3, #4
	add	r1, ip, r1, lsl #2
	add	r3, r3, r0, lsl #2
	add	r2, r2, r0, lsl #2
.L51:
	ldr	r0, [r3, #4]!
	cmp	r1, r3
	str	r0, [r2, #4]!
	bne	.L51
	b	.L52
.L105:
	ldr	r2, .L109+56
	ldr	r2, [r2]
	ldr	r3, [r3, r2, lsl #2]
	cmp	r3, #0
	beq	.L42
	b	.L41
.L100:
	str	r2, [sp, #32]
	bl	__aeabi_uidiv
	ldr	r3, [sp, #28]
	mov	r1, r9
	ldr	r3, [r3]
	ldr	r2, [sp, #32]
	stm	sp, {r0, r3}
	str	r0, [sp, #24]
	ldr	r3, .L109+124
	mov	r0, r5
	bl	RT_TRACE
	ldr	r3, .L109+12
	ldr	r9, [r6]
	ldr	r2, [r3]
	b	.L7
.L101:
	ldr	r2, .L109+12
	str	r3, [sp, #4]
	str	r7, [sp]
	mov	r0, r5
	ldr	r3, .L109+128
	ldr	r2, [r2]
	ldr	r1, [r6]
	bl	RT_TRACE
	ldr	r3, [sp, #24]
	mov	r0, r10
	str	r3, [r4, #24]
	bl	rtl8821ae_phy_lc_calibrate
	b	.L16
.L103:
	mov	r0, r10
	mov	r3, #8
	ldr	r2, [sp, #24]
	ldr	r1, [sp, #36]
	bl	rtl8812ae_do_iqk
	b	.L53
.L99:
	mov	r1, r9
	mov	r0, r5
	ldr	r3, .L109+132
	bl	RT_TRACE
	ldr	r9, [r6]
	ldr	r2, [fp]
	b	.L5
.L45:
	ldr	r3, [sp, #24]
	mov	r0, r5
	str	r3, [sp]
	ldr	r3, .L109+136
	bl	RT_TRACE
	ldr	r2, .L109+12
	ldr	r3, .L109+116
	mov	r0, r5
	ldr	r2, [r2]
	ldr	r1, [r6]
	bl	RT_TRACE
	ldr	r9, [r8]
	ldr	r3, [fp]
	cmp	r9, r3
	bcs	.L46
	ldr	r7, .L109+120
.L49:
	mov	r2, r9
	ldr	r1, [r7]
	mov	r3, #0
	mov	r0, r10
	bl	rtl8812ae_dm_txpwr_track_set_pwr
	ldr	r1, [fp]
	add	r9, r9, #1
	cmp	r1, r9
	bhi	.L49
	b	.L97
.L18:
	ldr	r1, [sp, #24]
	sub	r3, r3, r1
	cmp	r3, r2
	str	r3, [sp, #32]
	bcs	.L108
.L22:
	ldr	r7, [sp, #32]
	ldr	r2, [sp, #56]
	ldr	r9, .L109+12
	ldr	r1, [r2, r7, lsl #2]
	mov	r0, r5
	ldr	r2, [r9]
	ldr	r3, .L109+140
	str	r1, [sp, #4]
	str	r7, [sp]
	ldr	r1, [r6]
	bl	RT_TRACE
	ldr	r1, [r4, #36]
	ldr	r3, [r8]
	ldr	r0, [r4, #32]
	ldr	ip, [r1, r3, lsl #2]
	ldr	r2, [sp, #56]
	str	ip, [r0, r3, lsl #2]
	ldr	r3, [r2, r7, lsl #2]
	ldr	r0, [r8]
	rsb	r3, r3, #0
	str	r3, [r1, r0, lsl #2]
	ldr	r3, [r2, r7, lsl #2]
	ldr	r1, [r8]
	ldr	r2, [r4, #40]
	rsb	r3, r3, #0
	str	r3, [r2, r1, lsl #2]
	ldr	r1, [r8]
	mov	r0, r5
	ldr	r1, [r2, r1, lsl #2]
	ldr	r3, .L109+144
	ldr	r2, [r9]
	str	r1, [sp]
	ldr	r1, [r6]
	bl	RT_TRACE
	ldr	r2, [sp, #64]
	mov	r0, r5
	ldr	r1, [r2, r7, lsl #2]
	ldr	r3, .L109+148
	ldr	r2, [r9]
	str	r1, [sp, #4]
	str	r7, [sp]
	ldr	r1, [r6]
	bl	RT_TRACE
	ldr	r3, .L109+56
	ldr	r0, [r4, #36]
	ldr	r2, [r3]
	ldr	ip, [r4, #32]
	ldr	lr, [r0, r2, lsl #2]
	ldr	r1, [sp, #64]
	str	lr, [ip, r2, lsl #2]
	ldr	r2, [r1, r7, lsl #2]
	ldr	ip, [r3]
	rsb	r2, r2, #0
	str	r2, [r0, ip, lsl #2]
	ldr	r2, [r1, r7, lsl #2]
	ldr	r0, [r3]
	ldr	r1, [r4, #40]
	rsb	r2, r2, #0
	str	r2, [r1, r0, lsl #2]
	ldr	r2, [r3]
	mov	r0, r5
	ldr	r1, [r1, r2, lsl #2]
	ldr	r3, .L109+152
	ldr	r2, [r9]
	str	r1, [sp]
	ldr	r1, [r6]
	bl	RT_TRACE
	b	.L23
.L108:
	sub	r3, r2, #1
	str	r3, [sp, #32]
	b	.L22
.L106:
	ldr	r7, [sp, #24]
	ldr	r9, [sp, #32]
	str	r3, [sp, #12]
	stm	sp, {r0, r9}
	ldr	r3, .L109+156
	mov	r0, r5
	str	ip, [sp, #16]
	str	r7, [sp, #8]
	bl	RT_TRACE
	ldr	r2, [r4, #20]
	ldr	r3, .L109+56
	str	r2, [sp, #16]
	ldr	r2, [sp, #28]
	ldr	r2, [r2]
	str	r7, [sp, #8]
	str	r2, [sp, #12]
	str	r9, [sp, #4]
	ldr	r1, [r3]
	ldr	r2, [r4, #44]
	ldr	r3, .L109+160
.L96:
	ldr	r1, [r2, r1, lsl #2]
	ldr	r7, .L109+12
	mov	r0, r5
	ldr	r2, [r7]
	str	r1, [sp]
	ldr	r1, [r6]
	bl	RT_TRACE
	ldr	r2, [sp, #28]
	ldr	r1, [r6]
	ldr	r3, [r2]
	ldr	r2, [r7]
	b	.L44
.L107:
	ldr	r7, [sp, #24]
	ldr	r9, [sp, #32]
	str	r3, [sp, #12]
	stm	sp, {r0, r9}
	ldr	r3, .L109+164
	mov	r0, r5
	str	ip, [sp, #16]
	str	r7, [sp, #8]
	bl	RT_TRACE
	ldr	r2, [r4, #20]
	ldr	r3, .L109+56
	str	r2, [sp, #16]
	ldr	r2, [sp, #28]
	ldr	r2, [r2]
	str	r7, [sp, #8]
	str	r2, [sp, #12]
	str	r9, [sp, #4]
	ldr	r1, [r3]
	ldr	r2, [r4, #44]
	ldr	r3, .L109+168
	b	.L96
.L104:
	bl	__stack_chk_fail
.L110:
	.align	2
.L109:
	.word	.LC31
	.word	RF90_PATH_A
	.word	COMP_POWER_TRACKING
	.word	DBG_LOUD
	.word	.LC0
	.word	RF_T_METER_8812A
	.word	.LC1
	.word	AVG_THERMAL_NUM_8812A
	.word	.LC4
	.word	IQK_THRESHOLD
	.word	TXPWR_TRACK_TABLE_SIZE
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	RF90_PATH_B
	.word	.LC9
	.word	MAX_PATH_NUM_8812A
	.word	TXSCALE_TABLE_SIZE
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC29
	.word	.LC30
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC26
	.word	.LC27
	.word	MIX_MODE
	.word	.LC3
	.word	.LC5
	.word	.LC2
	.word	.LC28
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.size	rtl8812ae_dm_txpower_tracking_callback_thermalmeter, .-rtl8812ae_dm_txpower_tracking_callback_thermalmeter
	.comm	TXSCALE_TABLE_SIZE,4,4
	.comm	TXPWR_TRACK_TABLE_SIZE,4,4
	.comm	RF_T_METER_8812A,4,4
	.comm	RF90_PATH_B,4,4
	.comm	RF90_PATH_A,4,4
	.comm	MIX_MODE,4,4
	.comm	MAX_PATH_NUM_8812A,4,4
	.comm	IQK_THRESHOLD,4,4
	.comm	DBG_LOUD,4,4
	.comm	COMP_POWER_TRACKING,4,4
	.comm	AVG_THERMAL_NUM_8812A,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
