	.file	"extr_phy_lcn.c_wlc_lcnphy_rx_iq_cal.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	wlc_lcnphy_rx_iq_cal, @function
wlc_lcnphy_rx_iq_cal:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, ecx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, r9d
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, edx
	sub	rsp, 168
	.cfi_def_cfa_offset 224
	mov	esi, DWORD PTR GFP_ATOMIC[rip]
	mov	DWORD PTR 12[rsp], r8d
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 152[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR 8[rdi]
	mov	edi, 524
	mov	QWORD PTR 16[rsp], rax
	call	kmalloc@PLT
	test	rax, rax
	je	.L17
	mov	r12, rax
	cmp	r14d, 2
	je	.L31
	cmp	r14d, 1
	je	.L32
.L8:
	xor	r14d, r14d
.L6:
	mov	rdi, r12
	call	kfree@PLT
.L1:
	mov	rax, QWORD PTR 152[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L33
	add	rsp, 168
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r14d
	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
.L17:
	.cfi_restore_state
	xor	r14d, r14d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L31:
	movsx	rax, ebx
	mov	ebx, ebx
	lea	rax, [rax+rax*2]
	sal	rax, 3
	lea	r14, -24[r13+rax]
	lea	rax, [rbx+rbx*2]
	mov	r13, r14
	sal	rax, 3
	sub	r13, rax
	.p2align 4,,10
	.p2align 3
.L5:
	cmp	r13, r14
	je	.L8
	mov	edi, DWORD PTR 0[rbp]
	mov	rbx, QWORD PTR [r14]
	mov	r15, r14
	sub	r14, 24
	call	CHSPEC_CHANNEL@PLT
	cmp	rbx, rax
	jne	.L5
	mov	rdx, QWORD PTR 8[r15]
	mov	rsi, QWORD PTR 16[r15]
	mov	rdi, rbp
	mov	r14d, 1
	call	wlc_lcnphy_set_rx_iq_comp@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L32:
	mov	rdi, rbp
	xor	r13d, r13d
	lea	rbx, 96[rsp]
	call	wlc_lcnphy_get_tx_pwr_ctrl@PLT
	mov	esi, DWORD PTR LCNPHY_TX_PWR_CTRL_OFF[rip]
	mov	rdi, rbp
	mov	DWORD PTR 24[rsp], eax
	call	wlc_lcnphy_set_tx_pwr_ctrl@PLT
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rax, QWORD PTR rxiq_cal_rf_reg[rip]
	mov	rdi, rbp
	mov	esi, DWORD PTR [rax+r13]
	call	read_radio_reg@PLT
	mov	DWORD PTR [rbx+r13], eax
	add	r13, 4
	cmp	r13, 44
	jne	.L9
	mov	esi, 1585
	mov	rdi, rbp
	call	read_phy_reg@PLT
	mov	edx, 21
	mov	esi, 1585
	mov	rdi, rbp
	mov	DWORD PTR 28[rsp], eax
	call	or_phy_reg@PLT
	mov	esi, 1100
	mov	rdi, rbp
	call	read_phy_reg@PLT
	mov	esi, 1101
	mov	rdi, rbp
	call	read_phy_reg@PLT
	mov	esi, 1200
	mov	rdi, rbp
	mov	r13d, eax
	call	read_phy_reg@PLT
	mov	esi, 1201
	mov	rdi, rbp
	mov	DWORD PTR 32[rsp], eax
	call	read_phy_reg@PLT
	mov	esi, 1273
	mov	rdi, rbp
	mov	DWORD PTR 36[rsp], eax
	call	read_phy_reg@PLT
	mov	esi, 1274
	mov	rdi, rbp
	mov	DWORD PTR 40[rsp], eax
	call	read_phy_reg@PLT
	mov	esi, 2360
	mov	rdi, rbp
	mov	DWORD PTR 44[rsp], eax
	call	read_phy_reg@PLT
	mov	esi, 2361
	mov	rdi, rbp
	mov	DWORD PTR 48[rsp], eax
	call	read_phy_reg@PLT
	mov	esi, 1083
	mov	rdi, rbp
	mov	DWORD PTR 52[rsp], eax
	call	read_phy_reg@PLT
	mov	esi, 1084
	mov	rdi, rbp
	mov	DWORD PTR 56[rsp], eax
	call	read_phy_reg@PLT
	mov	esi, 1754
	mov	rdi, rbp
	mov	DWORD PTR 60[rsp], eax
	call	read_phy_reg@PLT
	mov	esi, 1755
	mov	rdi, rbp
	mov	DWORD PTR 64[rsp], eax
	call	read_phy_reg@PLT
	mov	rdi, rbp
	mov	DWORD PTR 68[rsp], eax
	call	wlc_lcnphy_tx_gain_override_enabled@PLT
	mov	DWORD PTR 76[rsp], 0
	mov	DWORD PTR 72[rsp], eax
	test	eax, eax
	jne	.L34
.L10:
	mov	esi, DWORD PTR 224[rsp]
	mov	rdi, rbp
	mov	r14d, 8
	call	wlc_lcnphy_set_tx_pwr_by_index@PLT
	mov	ecx, 1
	mov	edx, 1
	mov	rdi, rbp
	mov	esi, 1273
	call	mod_phy_reg@PLT
	xor	ecx, ecx
	mov	edx, 1
	mov	rdi, rbp
	mov	esi, 1274
	call	mod_phy_reg@PLT
	mov	ecx, 2
	mov	edx, 2
	mov	rdi, rbp
	mov	esi, 1083
	call	mod_phy_reg@PLT
	xor	ecx, ecx
	mov	edx, 2
	mov	rdi, rbp
	mov	esi, 1084
	call	mod_phy_reg@PLT
	mov	esi, DWORD PTR RADIO_2064_REG116[rip]
	mov	edx, 6
	mov	rdi, rbp
	call	write_radio_reg@PLT
	mov	esi, DWORD PTR RADIO_2064_REG12C[rip]
	mov	edx, 7
	mov	rdi, rbp
	call	write_radio_reg@PLT
	mov	esi, DWORD PTR RADIO_2064_REG06A[rip]
	mov	edx, 211
	mov	rdi, rbp
	call	write_radio_reg@PLT
	mov	esi, DWORD PTR RADIO_2064_REG098[rip]
	mov	edx, 3
	mov	rdi, rbp
	call	write_radio_reg@PLT
	mov	esi, DWORD PTR RADIO_2064_REG00B[rip]
	mov	edx, 7
	mov	rdi, rbp
	call	write_radio_reg@PLT
	mov	esi, DWORD PTR RADIO_2064_REG113[rip]
	mov	ecx, 16
	mov	rdi, rbp
	mov	edx, 16
	call	mod_radio_reg@PLT
	mov	esi, DWORD PTR RADIO_2064_REG01D[rip]
	mov	edx, 1
	mov	rdi, rbp
	call	write_radio_reg@PLT
	mov	esi, DWORD PTR RADIO_2064_REG114[rip]
	mov	edx, 1
	mov	rdi, rbp
	call	write_radio_reg@PLT
	mov	esi, DWORD PTR RADIO_2064_REG02E[rip]
	mov	edx, 16
	mov	rdi, rbp
	call	write_radio_reg@PLT
	mov	esi, DWORD PTR RADIO_2064_REG12A[rip]
	mov	edx, 8
	mov	rdi, rbp
	call	write_radio_reg@PLT
	mov	ecx, 1
	mov	edx, 1
	mov	rdi, rbp
	mov	esi, 2360
	call	mod_phy_reg@PLT
	xor	ecx, ecx
	mov	edx, 1
	mov	rdi, rbp
	mov	esi, 2361
	call	mod_phy_reg@PLT
	mov	ecx, 2
	mov	edx, 2
	mov	rdi, rbp
	mov	esi, 2360
	call	mod_phy_reg@PLT
	mov	ecx, 2
	mov	edx, 2
	mov	rdi, rbp
	mov	esi, 2361
	call	mod_phy_reg@PLT
	mov	ecx, 4
	mov	edx, 4
	mov	rdi, rbp
	mov	esi, 2360
	call	mod_phy_reg@PLT
	mov	ecx, 4
	mov	edx, 4
	mov	rdi, rbp
	mov	esi, 2361
	call	mod_phy_reg@PLT
	mov	ecx, 8
	mov	edx, 8
	mov	rdi, rbp
	mov	esi, 2360
	call	mod_phy_reg@PLT
	mov	ecx, 8
	mov	edx, 8
	mov	rdi, rbp
	mov	esi, 2361
	call	mod_phy_reg@PLT
	mov	ecx, 32
	mov	edx, 32
	mov	rdi, rbp
	mov	esi, 2360
	call	mod_phy_reg@PLT
	xor	ecx, ecx
	mov	edx, 32
	mov	rdi, rbp
	mov	esi, 2361
	call	mod_phy_reg@PLT
	mov	ecx, 1
	mov	edx, 1
	mov	rdi, rbp
	mov	esi, 1083
	call	mod_phy_reg@PLT
	xor	ecx, ecx
	mov	edx, 1
	mov	rdi, rbp
	mov	esi, 1084
	call	mod_phy_reg@PLT
	xor	ecx, ecx
	mov	edx, 120
	mov	rdi, rbp
	mov	esi, 2000
	call	wlc_lcnphy_start_tx_tone@PLT
	mov	edx, 65535
	mov	esi, 1754
	mov	rdi, rbp
	call	write_phy_reg@PLT
	mov	edx, 3
	mov	esi, 1755
	mov	rdi, rbp
	call	or_phy_reg@PLT
	mov	edx, DWORD PTR 12[rsp]
	mov	esi, r15d
	mov	rdi, rbp
	call	wlc_lcnphy_set_trsw_override@PLT
	mov	esi, 1
	mov	rdi, rbp
	call	wlc_lcnphy_rx_gain_override_enable@PLT
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L35:
	cmp	eax, 949
	jle	.L19
.L11:
	push	0
	.cfi_def_cfa_offset 232
	sub	r14d, 1
	mov	ecx, 2
	xor	edx, edx
	push	1
	.cfi_def_cfa_offset 240
	mov	r9d, r14d
	mov	r8d, 2
	xor	esi, esi
	mov	rdi, rbp
	call	wlc_lcnphy_set_rx_gain_by_distribution@PLT
	mov	edi, 500
	call	udelay@PLT
	mov	esi, 2000
	mov	rdi, rbp
	call	wlc_lcnphy_measure_digital_power@PLT
	pop	rdx
	.cfi_def_cfa_offset 232
	pop	rcx
	.cfi_def_cfa_offset 224
	test	r14d, r14d
	jne	.L35
.L19:
	mov	esi, 65535
	mov	rdi, rbp
	call	wlc_lcnphy_calc_rx_iq_comp@PLT
	mov	rdi, rbp
	mov	r14d, eax
	call	wlc_lcnphy_stop_tx_tone@PLT
	mov	edx, DWORD PTR 28[rsp]
	mov	esi, 1585
	mov	rdi, rbp
	call	write_phy_reg@PLT
	mov	edx, r13d
	mov	esi, 1100
	mov	rdi, rbp
	call	write_phy_reg@PLT
	mov	edx, r13d
	mov	esi, 1101
	mov	rdi, rbp
	call	write_phy_reg@PLT
	mov	edx, DWORD PTR 32[rsp]
	mov	rdi, rbp
	xor	r13d, r13d
	mov	esi, 1200
	call	write_phy_reg@PLT
	mov	edx, DWORD PTR 36[rsp]
	mov	esi, 1201
	mov	rdi, rbp
	call	write_phy_reg@PLT
	mov	edx, DWORD PTR 40[rsp]
	mov	esi, 1273
	mov	rdi, rbp
	call	write_phy_reg@PLT
	mov	edx, DWORD PTR 44[rsp]
	mov	esi, 1274
	mov	rdi, rbp
	call	write_phy_reg@PLT
	mov	edx, DWORD PTR 48[rsp]
	mov	esi, 2360
	mov	rdi, rbp
	call	write_phy_reg@PLT
	mov	edx, DWORD PTR 52[rsp]
	mov	esi, 2361
	mov	rdi, rbp
	call	write_phy_reg@PLT
	mov	edx, DWORD PTR 56[rsp]
	mov	esi, 1083
	mov	rdi, rbp
	call	write_phy_reg@PLT
	mov	edx, DWORD PTR 60[rsp]
	mov	esi, 1084
	mov	rdi, rbp
	call	write_phy_reg@PLT
	mov	edx, DWORD PTR 64[rsp]
	mov	esi, 1754
	mov	rdi, rbp
	call	write_phy_reg@PLT
	mov	edx, DWORD PTR 68[rsp]
	mov	esi, 1755
	mov	rdi, rbp
	call	write_phy_reg@PLT
	mov	rdi, rbp
	call	wlc_lcnphy_clear_trsw_override@PLT
	xor	ecx, ecx
	mov	edx, 4
	mov	rdi, rbp
	mov	esi, 1100
	call	mod_phy_reg@PLT
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rax, QWORD PTR rxiq_cal_rf_reg[rip]
	mov	edx, DWORD PTR [rbx+r13]
	mov	rdi, rbp
	mov	esi, DWORD PTR [rax+r13]
	add	r13, 4
	call	write_radio_reg@PLT
	cmp	r13, 44
	jne	.L13
	mov	eax, DWORD PTR 72[rsp]
	test	eax, eax
	je	.L14
	mov	esi, DWORD PTR 76[rsp]
	mov	rdi, rbp
	call	wlc_lcnphy_set_tx_pwr_by_index@PLT
.L15:
	mov	esi, DWORD PTR 24[rsp]
	mov	rdi, rbp
	call	wlc_lcnphy_set_tx_pwr_ctrl@PLT
	xor	esi, esi
	mov	rdi, rbp
	call	wlc_lcnphy_rx_gain_override_enable@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L14:
	mov	rdi, rbp
	call	wlc_lcnphy_disable_tx_gain_override@PLT
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L34:
	lea	rsi, 92[rsp]
	mov	rdi, rbp
	call	wlc_lcnphy_get_tx_gain@PLT
	mov	rax, QWORD PTR 16[rsp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR 76[rsp], eax
	jmp	.L10
.L33:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	wlc_lcnphy_rx_iq_cal, .-wlc_lcnphy_rx_iq_cal
	.comm	rxiq_cal_rf_reg,8,8
	.comm	RADIO_2064_REG12C,4,4
	.comm	RADIO_2064_REG12A,4,4
	.comm	RADIO_2064_REG116,4,4
	.comm	RADIO_2064_REG114,4,4
	.comm	RADIO_2064_REG113,4,4
	.comm	RADIO_2064_REG098,4,4
	.comm	RADIO_2064_REG06A,4,4
	.comm	RADIO_2064_REG02E,4,4
	.comm	RADIO_2064_REG01D,4,4
	.comm	RADIO_2064_REG00B,4,4
	.comm	LCNPHY_TX_PWR_CTRL_OFF,4,4
	.comm	GFP_ATOMIC,4,4
	.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_phy_lcn.c_wlc_lcnphy_rx_iq_cal.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	wlc_lcnphy_rx_iq_cal, %function
wlc_lcnphy_rx_iq_cal:
	@ args = 12, pretend = 0, frame = 120
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r0
	mov	r6, r3
	ldr	r3, .L29
	sub	sp, sp, #140
	mov	r7, r1
	ldr	r1, .L29+4
	ldr	r3, [r3]
	str	r3, [sp, #132]
	mov	r3,#0
	ldr	r3, [r4, #4]
	mov	r0, #524
	ldr	r1, [r1]
	mov	r5, r2
	ldr	r8, [sp, #180]
	str	r3, [sp, #16]
	bl	kmalloc
	subs	fp, r0, #0
	moveq	r6, fp
	beq	.L1
	cmp	r8, #2
	beq	.L25
	cmp	r8, #1
	beq	.L26
.L8:
	mov	r6, #0
.L6:
	mov	r0, fp
	bl	kfree
.L1:
	ldr	r3, .L29
	ldr	r2, [r3]
	ldr	r3, [sp, #132]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L27
	mov	r0, r6
	add	sp, sp, #140
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L25:
	add	r1, r5, r5, lsl #1
	add	r1, r7, r1, lsl #2
.L5:
	cmp	r5, #0
	beq	.L8
	ldr	r0, [r4]
	ldr	r7, [r1, #-12]
	sub	r6, r1, #12
	bl	CHSPEC_CHANNEL
	cmp	r7, r0
	mov	r1, r6
	sub	r5, r5, #1
	bne	.L5
	ldr	r2, [r6, #4]
	ldr	r1, [r6, #8]
	mov	r0, r4
	bl	wlc_lcnphy_set_rx_iq_comp
	mov	r6, #1
	b	.L6
.L26:
	mov	r0, r4
	bl	wlc_lcnphy_get_tx_pwr_ctrl
	mov	r3, r0
	ldr	r2, .L29+8
	mov	r0, r4
	ldr	r1, [r2]
	str	r3, [sp, #24]
	ldr	r8, .L29+12
	bl	wlc_lcnphy_set_tx_pwr_ctrl
	add	r3, sp, #136
	add	r5, sp, #84
	add	r10, sp, #84
	add	r9, sp, #128
	rsb	r7, r3, #52
.L9:
	ldr	r3, [r8]
	mov	r0, r4
	add	r3, r3, r7
	ldr	r1, [r3, r10]
	bl	read_radio_reg
	str	r0, [r10, #4]!
	cmp	r10, r9
	bne	.L9
	ldr	r1, .L29+16
	mov	r0, r4
	bl	read_phy_reg
	mov	r3, r0
	mov	r2, #21
	ldr	r1, .L29+16
	mov	r0, r4
	str	r3, [sp, #28]
	bl	or_phy_reg
	ldr	r1, .L29+20
	mov	r0, r4
	bl	read_phy_reg
	ldr	r1, .L29+24
	mov	r0, r4
	bl	read_phy_reg
	mov	r3, r0
	mov	r1, #1200
	mov	r0, r4
	str	r3, [sp, #32]
	bl	read_phy_reg
	mov	r3, r0
	ldr	r1, .L29+28
	mov	r0, r4
	str	r3, [sp, #36]
	bl	read_phy_reg
	mov	r3, r0
	ldr	r1, .L29+32
	mov	r0, r4
	str	r3, [sp, #40]
	bl	read_phy_reg
	mov	r3, r0
	ldr	r1, .L29+36
	mov	r0, r4
	str	r3, [sp, #44]
	bl	read_phy_reg
	mov	r3, r0
	ldr	r1, .L29+40
	mov	r0, r4
	str	r3, [sp, #48]
	bl	read_phy_reg
	mov	r3, r0
	ldr	r1, .L29+44
	mov	r0, r4
	str	r3, [sp, #52]
	bl	read_phy_reg
	mov	r3, r0
	ldr	r1, .L29+48
	mov	r0, r4
	str	r3, [sp, #56]
	bl	read_phy_reg
	mov	r3, r0
	ldr	r1, .L29+52
	mov	r0, r4
	str	r3, [sp, #60]
	bl	read_phy_reg
	mov	r3, r0
	ldr	r1, .L29+56
	mov	r0, r4
	str	r3, [sp, #64]
	bl	read_phy_reg
	mov	r3, r0
	ldr	r1, .L29+60
	mov	r0, r4
	str	r3, [sp, #68]
	bl	read_phy_reg
	mov	r3, r0
	mov	r0, r4
	str	r3, [sp, #72]
	bl	wlc_lcnphy_tx_gain_override_enabled
	subs	r3, r0, #0
	str	r3, [sp, #20]
	bne	.L28
	ldr	r3, [sp, #20]
	str	r3, [sp, #76]
.L10:
	ldr	r1, [sp, #184]
	mov	r0, r4
	bl	wlc_lcnphy_set_tx_pwr_by_index
	mov	r3, #1
	ldr	r1, .L29+32
	mov	r2, r3
	mov	r0, r4
	bl	mod_phy_reg
	mov	r3, #0
	mov	r2, #1
	ldr	r1, .L29+36
	mov	r0, r4
	bl	mod_phy_reg
	mov	r3, #2
	ldr	r1, .L29+48
	mov	r2, r3
	mov	r0, r4
	bl	mod_phy_reg
	mov	r3, #0
	mov	r2, #2
	ldr	r1, .L29+52
	mov	r0, r4
	bl	mod_phy_reg
	ldr	r3, .L29+64
	mov	r2, #6
	ldr	r1, [r3]
	mov	r0, r4
	bl	write_radio_reg
	ldr	r3, .L29+68
	mov	r2, #7
	ldr	r1, [r3]
	mov	r0, r4
	bl	write_radio_reg
	ldr	r3, .L29+72
	mov	r2, #211
	ldr	r1, [r3]
	mov	r0, r4
	bl	write_radio_reg
	ldr	r3, .L29+76
	mov	r2, #3
	ldr	r1, [r3]
	mov	r0, r4
	bl	write_radio_reg
	ldr	r3, .L29+80
	mov	r2, #7
	ldr	r1, [r3]
	mov	r0, r4
	bl	write_radio_reg
	mov	r3, #16
	ldr	r1, .L29+84
	mov	r2, r3
	ldr	r1, [r1]
	mov	r0, r4
	bl	mod_radio_reg
	ldr	r3, .L29+88
	mov	r2, #1
	ldr	r1, [r3]
	mov	r0, r4
	bl	write_radio_reg
	ldr	r3, .L29+92
	mov	r2, #1
	ldr	r1, [r3]
	mov	r0, r4
	bl	write_radio_reg
	ldr	r3, .L29+96
	mov	r2, #16
	ldr	r1, [r3]
	mov	r0, r4
	bl	write_radio_reg
	ldr	r3, .L29+100
	mov	r2, #8
	ldr	r1, [r3]
	mov	r0, r4
	bl	write_radio_reg
	mov	r3, #1
	ldr	r1, .L29+40
	mov	r2, r3
	mov	r0, r4
	bl	mod_phy_reg
	mov	r3, #0
	mov	r2, #1
	ldr	r1, .L29+44
	mov	r0, r4
	bl	mod_phy_reg
	mov	r3, #2
	ldr	r1, .L29+40
	mov	r2, r3
	mov	r0, r4
	bl	mod_phy_reg
	mov	r3, #2
	ldr	r1, .L29+44
	mov	r2, r3
	mov	r0, r4
	bl	mod_phy_reg
	mov	r3, #4
	ldr	r1, .L29+40
	mov	r2, r3
	mov	r0, r4
	bl	mod_phy_reg
	mov	r3, #4
	ldr	r1, .L29+44
	mov	r2, r3
	mov	r0, r4
	bl	mod_phy_reg
	mov	r3, #8
	ldr	r1, .L29+40
	mov	r2, r3
	mov	r0, r4
	bl	mod_phy_reg
	mov	r3, #8
	ldr	r1, .L29+44
	mov	r2, r3
	mov	r0, r4
	bl	mod_phy_reg
	mov	r3, #32
	ldr	r1, .L29+40
	mov	r2, r3
	mov	r0, r4
	bl	mod_phy_reg
	mov	r3, #0
	mov	r2, #32
	ldr	r1, .L29+44
	mov	r0, r4
	bl	mod_phy_reg
	mov	r3, #1
	ldr	r1, .L29+48
	mov	r2, r3
	mov	r0, r4
	bl	mod_phy_reg
	mov	r3, #0
	mov	r2, #1
	ldr	r1, .L29+52
	mov	r0, r4
	bl	mod_phy_reg
	mov	r3, #0
	mov	r2, #120
	mov	r1, #2000
	mov	r0, r4
	bl	wlc_lcnphy_start_tx_tone
	ldr	r2, .L29+104
	ldr	r1, .L29+56
	mov	r0, r4
	bl	write_phy_reg
	mov	r2, #3
	ldr	r1, .L29+60
	mov	r0, r4
	bl	or_phy_reg
	mov	r1, r6
	ldr	r2, [sp, #176]
	mov	r0, r4
	bl	wlc_lcnphy_set_trsw_override
	mov	r1, #1
	mov	r0, r4
	bl	wlc_lcnphy_rx_gain_override_enable
	mov	r6, #8
	mov	r10, #1
.L11:
	mov	r3, #2
	mov	r2, #0
	sub	r6, r6, #1
	mov	r1, r2
	str	r3, [sp]
	str	r2, [sp, #12]
	mov	r0, r4
	str	r6, [sp, #4]
	str	r10, [sp, #8]
	bl	wlc_lcnphy_set_rx_gain_by_distribution
	mov	r0, #500
	bl	udelay
	mov	r1, #2000
	mov	r0, r4
	bl	wlc_lcnphy_measure_digital_power
	ldr	r3, .L29+108
	cmp	r0, r3
	movle	r3, #0
	movgt	r3, #1
	cmp	r6, #0
	moveq	r3, #0
	cmp	r3, #0
	bne	.L11
	ldr	r1, .L29+104
	mov	r0, r4
	str	r3, [sp, #16]
	bl	wlc_lcnphy_calc_rx_iq_comp
	mov	r6, r0
	mov	r0, r4
	bl	wlc_lcnphy_stop_tx_tone
	ldr	r2, [sp, #28]
	ldr	r1, .L29+16
	mov	r0, r4
	bl	write_phy_reg
	ldr	r10, [sp, #32]
	ldr	r1, .L29+20
	mov	r2, r10
	mov	r0, r4
	bl	write_phy_reg
	mov	r2, r10
	ldr	r1, .L29+24
	mov	r0, r4
	bl	write_phy_reg
	mov	r1, #1200
	ldr	r2, [sp, #36]
	mov	r0, r4
	bl	write_phy_reg
	ldr	r2, [sp, #40]
	ldr	r1, .L29+28
	mov	r0, r4
	bl	write_phy_reg
	ldr	r2, [sp, #44]
	ldr	r1, .L29+32
	mov	r0, r4
	bl	write_phy_reg
	ldr	r2, [sp, #48]
	ldr	r1, .L29+36
	mov	r0, r4
	bl	write_phy_reg
	ldr	r2, [sp, #52]
	ldr	r1, .L29+40
	mov	r0, r4
	bl	write_phy_reg
	ldr	r2, [sp, #56]
	ldr	r1, .L29+44
	mov	r0, r4
	bl	write_phy_reg
	ldr	r2, [sp, #60]
	ldr	r1, .L29+48
	mov	r0, r4
	bl	write_phy_reg
	ldr	r2, [sp, #64]
	ldr	r1, .L29+52
	mov	r0, r4
	bl	write_phy_reg
	ldr	r2, [sp, #68]
	ldr	r1, .L29+56
	mov	r0, r4
	bl	write_phy_reg
	ldr	r2, [sp, #72]
	ldr	r1, .L29+60
	mov	r0, r4
	bl	write_phy_reg
	mov	r0, r4
	bl	wlc_lcnphy_clear_trsw_override
	mov	r2, #4
	mov	r0, r4
	ldr	r3, [sp, #16]
	ldr	r1, .L29+20
	bl	mod_phy_reg
.L12:
	ldr	r3, [r8]
	mov	r0, r4
	add	r3, r3, r5
	ldr	r2, [r5, #4]!
	ldr	r1, [r3, r7]
	bl	write_radio_reg
	cmp	r5, r9
	bne	.L12
	ldr	r3, [sp, #20]
	cmp	r3, #0
	beq	.L13
	mov	r0, r4
	ldr	r1, [sp, #76]
	bl	wlc_lcnphy_set_tx_pwr_by_index
.L14:
	ldr	r1, [sp, #24]
	mov	r0, r4
	bl	wlc_lcnphy_set_tx_pwr_ctrl
	mov	r0, r4
	mov	r1, #0
	bl	wlc_lcnphy_rx_gain_override_enable
	b	.L6
.L13:
	mov	r0, r4
	bl	wlc_lcnphy_disable_tx_gain_override
	b	.L14
.L28:
	mov	r0, r4
	add	r1, sp, #84
	bl	wlc_lcnphy_get_tx_gain
	ldr	r3, [sp, #16]
	ldr	r3, [r3]
	str	r3, [sp, #76]
	b	.L10
.L27:
	bl	__stack_chk_fail
.L30:
	.align	2
.L29:
	.word	.LC0
	.word	GFP_ATOMIC
	.word	LCNPHY_TX_PWR_CTRL_OFF
	.word	rxiq_cal_rf_reg
	.word	1585
	.word	1100
	.word	1101
	.word	1201
	.word	1273
	.word	1274
	.word	2360
	.word	2361
	.word	1083
	.word	1084
	.word	1754
	.word	1755
	.word	RADIO_2064_REG116
	.word	RADIO_2064_REG12C
	.word	RADIO_2064_REG06A
	.word	RADIO_2064_REG098
	.word	RADIO_2064_REG00B
	.word	RADIO_2064_REG113
	.word	RADIO_2064_REG01D
	.word	RADIO_2064_REG114
	.word	RADIO_2064_REG02E
	.word	RADIO_2064_REG12A
	.word	65535
	.word	949
	.size	wlc_lcnphy_rx_iq_cal, .-wlc_lcnphy_rx_iq_cal
	.comm	rxiq_cal_rf_reg,4,4
	.comm	RADIO_2064_REG12C,4,4
	.comm	RADIO_2064_REG12A,4,4
	.comm	RADIO_2064_REG116,4,4
	.comm	RADIO_2064_REG114,4,4
	.comm	RADIO_2064_REG113,4,4
	.comm	RADIO_2064_REG098,4,4
	.comm	RADIO_2064_REG06A,4,4
	.comm	RADIO_2064_REG02E,4,4
	.comm	RADIO_2064_REG01D,4,4
	.comm	RADIO_2064_REG00B,4,4
	.comm	LCNPHY_TX_PWR_CTRL_OFF,4,4
	.comm	GFP_ATOMIC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
