	.file	"extr_3945.c_il3945_hw_reg_comp_txpower_temp.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	il3945_hw_reg_comp_txpower_temp, @function
il3945_hw_reg_comp_txpower_temp:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	QWORD PTR 48[rdi], 0
	je	.L26
	xor	eax, eax
	ret
	.p2align 4,,10
	.p2align 3
.L26:
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	lea	rsi, 40[rdi]
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR 56[rdi]
	mov	QWORD PTR 16[rsp], rax
	mov	eax, DWORD PTR [rdi]
	mov	edi, DWORD PTR S_SCANNING[rip]
	mov	DWORD PTR 28[rsp], eax
	call	test_bit@PLT
	test	rax, rax
	jne	.L3
	mov	QWORD PTR 8[rsp], 0
	cmp	QWORD PTR 8[r12], 0
	je	.L12
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rbp, QWORD PTR 8[rsp]
	sal	rbp, 4
	add	rbp, QWORD PTR 32[r12]
	mov	rdi, rbp
	call	il_is_channel_a_band@PLT
	mov	rdx, QWORD PTR 0[rbp]
	mov	edi, DWORD PTR 28[rsp]
	mov	r13, rax
	mov	rax, QWORD PTR 16[rsp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, QWORD PTR [rax+rdx*8]
	call	il3945_hw_reg_adjust_power_by_temp@PLT
	cmp	QWORD PTR RATE_COUNT_3945[rip], 0
	mov	r14d, eax
	je	.L10
	lea	rax, 0[0+r13*8]
	mov	rcx, QWORD PTR 8[rbp]
	xor	r15d, r15d
	mov	QWORD PTR [rsp], rax
	.p2align 4,,10
	.p2align 3
.L9:
	lea	rax, [r15+r15*2]
	add	r15, 1
	mov	edi, DWORD PTR [rcx+rax*8]
	lea	rbx, 0[0+rax*8]
	add	edi, r14d
	call	il3945_hw_reg_fix_power_idx@PLT
	mov	rsi, QWORD PTR power_gain_table[rip]
	mov	rdx, QWORD PTR [rsp]
	mov	rcx, QWORD PTR 8[rbp]
	cdqe
	mov	rsi, QWORD PTR [rsi+rdx]
	add	rbx, rcx
	cmp	QWORD PTR RATE_COUNT_3945[rip], r15
	mov	QWORD PTR 8[rbx], rax
	mov	eax, DWORD PTR [rsi+rax*4]
	mov	DWORD PTR 16[rbx], eax
	ja	.L9
.L10:
	mov	rdx, QWORD PTR 0[rbp]
	mov	rax, QWORD PTR 24[r12]
	xor	r14d, r14d
	cmp	QWORD PTR IL_NUM_SCAN_RATES[rip], 0
	mov	rbx, QWORD PTR [rax+rdx*8]
	je	.L8
	.p2align 4,,10
	.p2align 3
.L7:
	test	r14, r14
	mov	edx, DWORD PTR RATE_1M_IDX_TBL[rip]
	mov	rsi, r14
	mov	r9, r13
	cmovne	edx, DWORD PTR RATE_6M_IDX_TBL[rip]
	mov	r8, rbp
	mov	rcx, rbx
	mov	rdi, r12
	add	r14, 1
	call	il3945_hw_reg_set_scan_power@PLT
	cmp	QWORD PTR IL_NUM_SCAN_RATES[rip], r14
	ja	.L7
.L8:
	add	QWORD PTR 8[rsp], 1
	mov	rax, QWORD PTR 8[rsp]
	cmp	QWORD PTR 8[r12], rax
	ja	.L11
.L12:
	mov	rax, QWORD PTR 16[r12]
	mov	rdi, r12
	mov	rax, QWORD PTR [rax]
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_restore 3
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_restore 12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_restore 13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_restore 14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_restore 15
	.cfi_def_cfa_offset 8
	jmp	rax
.L3:
	.cfi_restore_state
	add	rsp, 40
	.cfi_def_cfa_offset 56
	xor	eax, eax
	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
	.cfi_endproc
.LFE0:
	.size	il3945_hw_reg_comp_txpower_temp, .-il3945_hw_reg_comp_txpower_temp
	.comm	power_gain_table,8,8
	.comm	S_SCANNING,4,4
	.comm	RATE_COUNT_3945,8,8
	.comm	RATE_6M_IDX_TBL,4,4
	.comm	RATE_1M_IDX_TBL,4,4
	.comm	IL_NUM_SCAN_RATES,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_3945.c_il3945_hw_reg_comp_txpower_temp.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	il3945_hw_reg_comp_txpower_temp, %function
il3945_hw_reg_comp_txpower_temp:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0, #24]
	cmp	r3, #0
	beq	.L24
	mov	r0, #0
	bx	lr
.L24:
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r1, r0
	mov	r5, r0
	ldr	r3, .L25
	ldr	r2, [r1], #20
	ldr	r0, [r3]
	ldr	r3, [r5, #28]
	sub	sp, sp, #44
	str	r2, [sp, #36]
	str	r3, [sp, #32]
	bl	test_bit
	cmp	r0, #0
	bne	.L3
	ldr	r3, [r5, #4]
	cmp	r3, #0
	beq	.L12
	ldr	r8, .L25+4
	ldr	r10, .L25+8
	ldr	fp, .L25+12
	str	r0, [sp, #12]
.L11:
	ldr	r6, [r5, #16]
	ldr	r7, [sp, #12]
	str	r6, [sp, #20]
	add	r4, r6, r7, lsl #3
	lsl	r2, r7, #3
	mov	r0, r4
	str	r2, [sp, #16]
	bl	il_is_channel_a_band
	ldr	r3, [sp, #32]
	ldr	r2, [r6, r7, lsl #3]
	ldr	r3, [r3]
	mov	r6, r0
	ldr	r1, [r3, r2, lsl #2]
	ldr	r0, [sp, #36]
	bl	il3945_hw_reg_adjust_power_by_temp
	ldr	r3, [r8]
	cmp	r3, #0
	beq	.L10
	mov	r9, #0
	str	r5, [sp, #28]
	mov	r5, r9
	mov	r9, r0
	ldr	r1, [r4, #4]
	lsl	r7, r6, #2
	str	r6, [sp, #24]
.L9:
	add	r3, r5, r5, lsl #1
	ldr	r0, [r1, r3, lsl #2]
	lsl	r6, r3, #2
	add	r0, r9, r0
	bl	il3945_hw_reg_fix_power_idx
	ldr	r1, [fp]
	ldr	lr, [r8]
	ldr	ip, [r1, r7]
	ldr	r1, [r4, #4]
	ldr	ip, [ip, r0, lsl #2]
	add	r5, r5, #1
	add	r3, r1, r6
	cmp	lr, r5
	stmib	r3, {r0, ip}
	bhi	.L9
	ldr	r6, [sp, #24]
	ldr	r5, [sp, #28]
.L10:
	ldr	r3, [sp, #20]
	ldr	r2, [sp, #16]
	ldr	r1, [r10]
	ldr	r2, [r3, r2]
	ldr	r3, [r5, #12]
	cmp	r1, #0
	movne	r7, #0
	ldr	r9, [r3, r2, lsl #2]
	beq	.L8
.L7:
	cmp	r7, #0
	ldreq	r3, .L25+16
	ldrne	r3, .L25+20
	mov	r1, r7
	ldr	r2, [r3]
	mov	r0, r5
	mov	r3, r9
	stm	sp, {r4, r6}
	bl	il3945_hw_reg_set_scan_power
	ldr	r2, [r10]
	add	r7, r7, #1
	cmp	r2, r7
	bhi	.L7
.L8:
	ldr	r2, [sp, #12]
	ldr	r3, [r5, #4]
	add	r2, r2, #1
	cmp	r3, r2
	str	r2, [sp, #12]
	bhi	.L11
.L12:
	mov	r0, r5
	ldr	r3, [r5, #8]
	ldr	r3, [r3]
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	bx	r3
.L3:
	mov	r0, #0
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L26:
	.align	2
.L25:
	.word	S_SCANNING
	.word	RATE_COUNT_3945
	.word	IL_NUM_SCAN_RATES
	.word	power_gain_table
	.word	RATE_1M_IDX_TBL
	.word	RATE_6M_IDX_TBL
	.size	il3945_hw_reg_comp_txpower_temp, .-il3945_hw_reg_comp_txpower_temp
	.comm	power_gain_table,4,4
	.comm	S_SCANNING,4,4
	.comm	RATE_COUNT_3945,4,4
	.comm	RATE_6M_IDX_TBL,4,4
	.comm	RATE_1M_IDX_TBL,4,4
	.comm	IL_NUM_SCAN_RATES,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
