	.file	"extr_r8192U_dm.c_dm_TXPowerTrackingCallback_ThermalMeter.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Initial reg0x%x = 0x%x, OFDM_index=0x%x\n"
	.align 8
.LC1:
	.string	"Initial reg0x%x = 0x%x, CCK_index=0x%x\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"Readback ThermalMeterA = %d\n"
.LC3:
	.string	"Valid ThermalMeterA = %d\n"
.LC4:
	.string	"Update OFDMSwing[%d] = 0x%x\n"
	.text
	.p2align 4
	.type	dm_TXPowerTrackingCallback_ThermalMeter, @function
dm_TXPowerTrackingCallback_ThermalMeter:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	ieee80211_priv@PLT
	mov	edx, DWORD PTR [rax]
	mov	rbp, rax
	test	edx, edx
	je	.L32
	mov	esi, DWORD PTR RF90_PATH_A[rip]
	mov	ecx, 120
	mov	edx, 18
	mov	rdi, r12
	call	rtl8192_phy_QueryRFReg@PLT
	mov	edi, DWORD PTR COMP_POWER_TRACKING[rip]
	lea	rsi, .LC2[rip]
	mov	rbx, rax
	mov	rdx, rax
	xor	eax, eax
	call	RT_TRACE@PLT
	lea	rax, -3[rbx]
	cmp	rax, 10
	jbe	.L33
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L33:
	.cfi_restore_state
	cmp	rbx, 12
	mov	r13d, 12
	mov	edi, DWORD PTR COMP_POWER_TRACKING[rip]
	lea	rsi, .LC3[rip]
	cmovle	r13, rbx
	xor	eax, eax
	mov	rdx, r13
	call	RT_TRACE@PLT
	mov	rax, QWORD PTR 24[rbp]
	mov	QWORD PTR [rax], 9
	mov	QWORD PTR 8[rax], 9
	cmp	rbx, 9
	jle	.L34
	mov	eax, 15
	xor	ecx, ecx
	sub	rax, r13
	mov	rbx, rax
.L13:
	mov	rdi, QWORD PTR HT_CHANNEL_WIDTH_20[rip]
	cmp	QWORD PTR 32[rbp], rdi
	cmove	rcx, rax
	mov	rax, QWORD PTR 56[rbp]
	mov	esi, DWORD PTR 40[rbp]
	mov	rdx, QWORD PTR 16[rbp]
	cmp	DWORD PTR [rax], 14
	je	.L35
	test	esi, esi
	je	.L16
	mov	DWORD PTR 40[rbp], 0
	xor	esi, esi
	cmp	rcx, rdx
	je	.L18
.L17:
	mov	QWORD PTR 16[rbp], rcx
.L18:
	mov	rdi, r12
	call	dm_cck_txpower_adjust@PLT
.L20:
	cmp	QWORD PTR 8[rbp], rbx
	je	.L21
	mov	rax, QWORD PTR OFDMSwingTable[rip]
	mov	QWORD PTR 8[rbp], rbx
	mov	rdi, r12
	mov	edx, DWORD PTR bMaskDWord[rip]
	mov	esi, DWORD PTR rOFDM0_XATxIQImbalance[rip]
	mov	rcx, QWORD PTR [rax+rbx*8]
	call	rtl8192_setBBreg@PLT
	mov	rax, QWORD PTR OFDMSwingTable[rip]
	mov	rdx, QWORD PTR 8[rbp]
	lea	rsi, .LC4[rip]
	mov	edi, DWORD PTR COMP_POWER_TRACKING[rip]
	mov	rcx, QWORD PTR [rax+rdx*8]
	xor	eax, eax
	call	RT_TRACE@PLT
.L21:
	mov	QWORD PTR 48[rbp], 0
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L32:
	.cfi_restore_state
	mov	edx, DWORD PTR bMaskDWord[rip]
	mov	esi, DWORD PTR rOFDM0_XATxIQImbalance[rip]
	mov	rdi, r12
	xor	ebx, ebx
	lea	r14, .LC0[rip]
	call	rtl8192_QueryBBReg@PLT
	mov	r13, rax
	mov	eax, DWORD PTR OFDM_Table_Length[rip]
	test	eax, eax
	jg	.L3
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L6:
	add	rbx, 1
	cmp	DWORD PTR OFDM_Table_Length[rip], ebx
	jle	.L7
.L3:
	mov	rax, QWORD PTR OFDMSwingTable[rip]
	cmp	QWORD PTR [rax+rbx*8], r13
	jne	.L6
	mov	QWORD PTR 8[rbp], rbx
	movsx	rdx, DWORD PTR rOFDM0_XATxIQImbalance[rip]
	mov	r8, rbx
	xor	eax, eax
	mov	edi, DWORD PTR COMP_POWER_TRACKING[rip]
	mov	rcx, r13
	mov	rsi, r14
	add	rbx, 1
	call	RT_TRACE@PLT
	cmp	DWORD PTR OFDM_Table_Length[rip], ebx
	jg	.L3
	.p2align 4,,10
	.p2align 3
.L7:
	mov	edx, DWORD PTR bMaskByte2[rip]
	mov	esi, DWORD PTR rCCK0_TxFilter1[rip]
	mov	rdi, r12
	call	rtl8192_QueryBBReg@PLT
	mov	edx, DWORD PTR CCK_Table_length[rip]
	mov	rcx, rax
	test	edx, edx
	jle	.L5
	lea	edi, -1[rdx]
	mov	rax, QWORD PTR CCKSwingTable_Ch1_Ch13[rip]
	xor	edx, edx
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L8:
	lea	rsi, 1[rdx]
	cmp	rdi, rdx
	je	.L5
	mov	rdx, rsi
.L9:
	mov	rsi, QWORD PTR [rax+rdx*8]
	movsx	r8, edx
	cmp	QWORD PTR [rsi], rcx
	jne	.L8
	mov	QWORD PTR 16[rbp], r8
	movsx	rdx, DWORD PTR rCCK0_TxFilter1[rip]
	lea	rsi, .LC1[rip]
	xor	eax, eax
	mov	edi, DWORD PTR COMP_POWER_TRACKING[rip]
	call	RT_TRACE@PLT
.L5:
	mov	DWORD PTR 0[rbp], 1
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L34:
	.cfi_restore_state
	movsx	rsi, DWORD PTR OFDM_Table_Length[rip]
	mov	eax, 15
	mov	ecx, 9
	sub	rax, r13
	sub	rcx, r13
	lea	ebx, -1[rsi]
	cmp	rsi, rax
	movsx	rsi, DWORD PTR CCK_Table_length[rip]
	movsx	rbx, ebx
	cmovg	rbx, rax
	cmp	rsi, rax
	jg	.L13
	lea	eax, -1[rsi]
	cmp	rcx, rsi
	cdqe
	cmovge	rcx, rax
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L16:
	cmp	rcx, rdx
	jne	.L17
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L35:
	test	esi, esi
	jne	.L16
	mov	DWORD PTR 40[rbp], 1
	mov	esi, 1
	cmp	rcx, rdx
	jne	.L17
	jmp	.L18
	.cfi_endproc
.LFE0:
	.size	dm_TXPowerTrackingCallback_ThermalMeter, .-dm_TXPowerTrackingCallback_ThermalMeter
	.comm	rOFDM0_XATxIQImbalance,4,4
	.comm	rCCK0_TxFilter1,4,4
	.comm	bMaskDWord,4,4
	.comm	bMaskByte2,4,4
	.comm	ThermalMeterVal,8,8
	.comm	RF90_PATH_A,4,4
	.comm	OFDM_Table_Length,4,4
	.comm	OFDMSwingTable,8,8
	.comm	HT_CHANNEL_WIDTH_20,8,8
	.comm	COMP_POWER_TRACKING,4,4
	.comm	CCK_Table_length,4,4
	.comm	CCKSwingTable_Ch1_Ch13,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_r8192U_dm.c_dm_TXPowerTrackingCallback_ThermalMeter.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Initial reg0x%x = 0x%x, OFDM_index=0x%x\012\000"
	.align	2
.LC1:
	.ascii	"Initial reg0x%x = 0x%x, CCK_index=0x%x\012\000"
	.align	2
.LC2:
	.ascii	"Readback ThermalMeterA = %d\012\000"
	.align	2
.LC3:
	.ascii	"Valid ThermalMeterA = %d\012\000"
	.align	2
.LC4:
	.ascii	"Update OFDMSwing[%d] = 0x%x\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dm_TXPowerTrackingCallback_ThermalMeter, %function
dm_TXPowerTrackingCallback_ThermalMeter:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #20
	mov	r7, r0
	bl	ieee80211_priv
	ldr	r5, [r0]
	mov	r6, r0
	cmp	r5, #0
	beq	.L31
	ldr	r2, .L36
	mov	r3, #120
	ldr	r1, [r2]
	mov	r0, r7
	mov	r2, #18
	bl	rtl8192_phy_QueryRFReg
	mov	r4, r0
	ldr	r5, .L36+4
	mov	r2, r0
	ldr	r1, .L36+8
	ldr	r0, [r5]
	bl	RT_TRACE
	sub	r3, r4, #3
	cmp	r3, #10
	bls	.L32
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L32:
	cmp	r4, #12
	movlt	r8, r4
	movge	r8, #12
	ldr	r1, .L36+12
	mov	r2, r8
	ldr	r0, [r5]
	bl	RT_TRACE
	mov	r2, #9
	ldr	r3, [r6, #12]
	cmp	r4, r2
	str	r2, [r3]
	str	r2, [r3, #4]
	ble	.L33
	rsb	r3, r8, #15
	mov	r4, r3
	mov	r2, #0
.L13:
	ldr	r0, .L36+16
	ldr	r1, [r6, #28]
	ldr	r0, [r0]
	ldr	ip, [r6, #16]
	ldr	r1, [r1]
	cmp	ip, r0
	moveq	r2, r3
	cmp	r1, #14
	ldr	r3, [r6, #8]
	ldr	r1, [r6, #20]
	beq	.L34
	cmp	r1, #0
	beq	.L16
	mov	r1, #0
	cmp	r2, r3
	str	r1, [r6, #20]
	beq	.L18
.L17:
	str	r2, [r6, #8]
.L18:
	mov	r0, r7
	bl	dm_cck_txpower_adjust
.L20:
	ldr	r3, [r6, #4]
	cmp	r3, r4
	beq	.L21
	ldr	r8, .L36+20
	ldr	r2, .L36+24
	ldr	r3, [r8]
	ldr	r1, .L36+28
	str	r4, [r6, #4]
	ldr	r3, [r3, r4, lsl #2]
	ldr	r2, [r2]
	ldr	r1, [r1]
	mov	r0, r7
	bl	rtl8192_setBBreg
	ldr	r3, [r8]
	ldr	r2, [r6, #4]
	ldr	r0, [r5]
	ldr	r3, [r3, r2, lsl #2]
	ldr	r1, .L36+32
	bl	RT_TRACE
.L21:
	mov	r3, #0
	str	r3, [r6, #24]
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L31:
	ldr	r3, .L36+24
	ldr	r10, .L36+28
	ldr	r8, .L36+36
	ldr	r2, [r3]
	mov	r0, r7
	ldr	r1, [r10]
	bl	rtl8192_QueryBBReg
	ldr	r2, [r8]
	cmp	r2, #0
	ble	.L7
	mov	r4, r5
	str	r5, [sp, #12]
	ldr	r9, .L36+20
	mov	r5, r0
	ldr	fp, .L36+40
	b	.L3
.L6:
	ldr	r2, [r8]
	add	r4, r4, #1
	cmp	r2, r4
	ble	.L35
.L3:
	ldr	r2, [r9]
	ldr	r2, [r2, r4, lsl #2]
	cmp	r2, r5
	bne	.L6
	ldr	r0, .L36+4
	str	r4, [r6, #4]
	str	r4, [sp]
	ldr	r2, [r10]
	mov	r3, r5
	mov	r1, fp
	ldr	r0, [r0]
	bl	RT_TRACE
	ldr	r2, [r8]
	add	r4, r4, #1
	cmp	r2, r4
	bgt	.L3
.L35:
	ldr	r5, [sp, #12]
.L7:
	ldr	r3, .L36+44
	ldr	r4, .L36+48
	ldr	r2, [r3]
	mov	r0, r7
	ldr	r1, [r4]
	bl	rtl8192_QueryBBReg
	ldr	r2, .L36+52
	mov	r3, r0
	ldr	r0, [r2]
	cmp	r0, #0
	ble	.L5
	ldr	r2, .L36+56
	ldr	r2, [r2]
	sub	r2, r2, #4
	b	.L9
.L8:
	add	r5, r5, #1
	cmp	r5, r0
	beq	.L5
.L9:
	ldr	r1, [r2, #4]!
	ldr	r1, [r1]
	cmp	r1, r3
	bne	.L8
	ldr	r1, .L36+4
	str	r5, [r6, #8]
	str	r5, [sp]
	ldr	r0, [r1]
	ldr	r2, [r4]
	ldr	r1, .L36+60
	bl	RT_TRACE
.L5:
	mov	r3, #1
	str	r3, [r6]
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L33:
	ldr	r2, .L36+36
	ldr	r1, .L36+52
	ldr	r4, [r2]
	rsb	r3, r8, #15
	ldr	r1, [r1]
	cmp	r4, r3
	movgt	r4, r3
	suble	r4, r4, #1
	cmp	r1, r3
	rsb	r2, r8, #9
	bgt	.L13
	cmp	r2, r1
	subge	r2, r1, #1
	sub	r3, r1, #1
	b	.L13
.L16:
	cmp	r2, r3
	bne	.L17
	b	.L20
.L34:
	cmp	r1, #0
	bne	.L16
	mov	r1, #1
	cmp	r2, r3
	str	r1, [r6, #20]
	bne	.L17
	b	.L18
.L37:
	.align	2
.L36:
	.word	RF90_PATH_A
	.word	COMP_POWER_TRACKING
	.word	.LC2
	.word	.LC3
	.word	HT_CHANNEL_WIDTH_20
	.word	OFDMSwingTable
	.word	bMaskDWord
	.word	rOFDM0_XATxIQImbalance
	.word	.LC4
	.word	OFDM_Table_Length
	.word	.LC0
	.word	bMaskByte2
	.word	rCCK0_TxFilter1
	.word	CCK_Table_length
	.word	CCKSwingTable_Ch1_Ch13
	.word	.LC1
	.size	dm_TXPowerTrackingCallback_ThermalMeter, .-dm_TXPowerTrackingCallback_ThermalMeter
	.comm	rOFDM0_XATxIQImbalance,4,4
	.comm	rCCK0_TxFilter1,4,4
	.comm	bMaskDWord,4,4
	.comm	bMaskByte2,4,4
	.comm	ThermalMeterVal,4,4
	.comm	RF90_PATH_A,4,4
	.comm	OFDM_Table_Length,4,4
	.comm	OFDMSwingTable,4,4
	.comm	HT_CHANNEL_WIDTH_20,4,4
	.comm	COMP_POWER_TRACKING,4,4
	.comm	CCK_Table_length,4,4
	.comm	CCKSwingTable_Ch1_Ch13,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
