	.file	"extr_phy_lcn.c_wlc_radio_2064_init.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	wlc_radio_2064_init, @function
wlc_radio_2064_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rbx, QWORD PTR lcnphy_radio_regs_2064[rip]
	cmp	DWORD PTR [rbx], 65535
	jne	.L5
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L4:
	add	rbx, 40
	cmp	DWORD PTR [rbx], 65535
	je	.L2
.L5:
	mov	edi, DWORD PTR 4[rbp]
	call	CHSPEC_IS5G@PLT
	test	rax, rax
	je	.L3
	cmp	QWORD PTR 32[rbx], 0
	jne	.L16
.L3:
	cmp	QWORD PTR 16[rbx], 0
	je	.L4
	mov	esi, DWORD PTR [rbx]
	mov	edx, DWORD PTR 8[rbx]
	mov	rdi, rbp
	add	rbx, 40
	and	esi, 16383
	or	esi, DWORD PTR RADIO_DEFAULT_CORE[rip]
	call	write_radio_reg@PLT
	cmp	DWORD PTR [rbx], 65535
	jne	.L5
.L2:
	mov	esi, DWORD PTR RADIO_2064_REG032[rip]
	mov	edx, 98
	mov	rdi, rbp
	call	write_radio_reg@PLT
	mov	esi, DWORD PTR RADIO_2064_REG033[rip]
	mov	edx, 25
	mov	rdi, rbp
	call	write_radio_reg@PLT
	mov	esi, DWORD PTR RADIO_2064_REG090[rip]
	mov	edx, 16
	mov	rdi, rbp
	call	write_radio_reg@PLT
	mov	esi, DWORD PTR RADIO_2064_REG010[rip]
	xor	edx, edx
	mov	rdi, rbp
	call	write_radio_reg@PLT
	mov	edi, DWORD PTR 0[rbp]
	mov	esi, 1
	call	LCNREV_IS@PLT
	test	rax, rax
	jne	.L17
.L6:
	mov	esi, DWORD PTR RADIO_2064_REG01D[rip]
	mov	rdi, rbp
	mov	edx, 2
	call	write_radio_reg@PLT
	mov	esi, DWORD PTR RADIO_2064_REG01E[rip]
	mov	rdi, rbp
	mov	edx, 6
	call	write_radio_reg@PLT
	mov	rdi, rbp
	xor	ecx, ecx
	mov	edx, 7
	mov	esi, 1258
	call	mod_phy_reg@PLT
	mov	rdi, rbp
	mov	ecx, 8
	mov	edx, 56
	mov	esi, 1258
	call	mod_phy_reg@PLT
	mov	rdi, rbp
	mov	ecx, 128
	mov	edx, 448
	mov	esi, 1258
	call	mod_phy_reg@PLT
	mov	rdi, rbp
	mov	ecx, 1536
	mov	edx, 3584
	mov	esi, 1258
	call	mod_phy_reg@PLT
	mov	ecx, 16384
	mov	rdi, rbp
	mov	edx, 28672
	mov	esi, 1258
	call	mod_phy_reg@PLT
	mov	rdi, rbp
	mov	edx, 18056
	mov	esi, 1258
	call	write_phy_reg@PLT
	mov	rdi, rbp
	mov	ecx, 2
	mov	edx, 7
	mov	esi, 1259
	call	mod_phy_reg@PLT
	mov	rdi, rbp
	xor	ecx, ecx
	mov	edx, 448
	mov	esi, 1259
	call	mod_phy_reg@PLT
	mov	ecx, 25
	mov	edx, 65535
	mov	rdi, rbp
	mov	esi, 1130
	call	mod_phy_reg@PLT
	mov	rdi, rbp
	xor	esi, esi
	call	wlc_lcnphy_set_tx_locc@PLT
	mov	rdi, rbp
	call	wlc_lcnphy_rcal@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	wlc_lcnphy_rc_cal@PLT
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	mov	esi, DWORD PTR [rbx]
	mov	edx, DWORD PTR 24[rbx]
	mov	rdi, rbp
	and	esi, 16383
	or	esi, DWORD PTR RADIO_DEFAULT_CORE[rip]
	call	write_radio_reg@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L17:
	mov	esi, DWORD PTR RADIO_2064_REG060[rip]
	mov	rdi, rbp
	mov	edx, 127
	call	write_radio_reg@PLT
	mov	esi, DWORD PTR RADIO_2064_REG061[rip]
	mov	rdi, rbp
	mov	edx, 114
	call	write_radio_reg@PLT
	mov	esi, DWORD PTR RADIO_2064_REG062[rip]
	mov	edx, 127
	mov	rdi, rbp
	call	write_radio_reg@PLT
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	wlc_radio_2064_init, .-wlc_radio_2064_init
	.comm	lcnphy_radio_regs_2064,8,8
	.comm	RADIO_DEFAULT_CORE,4,4
	.comm	RADIO_2064_REG090,4,4
	.comm	RADIO_2064_REG062,4,4
	.comm	RADIO_2064_REG061,4,4
	.comm	RADIO_2064_REG060,4,4
	.comm	RADIO_2064_REG033,4,4
	.comm	RADIO_2064_REG032,4,4
	.comm	RADIO_2064_REG01E,4,4
	.comm	RADIO_2064_REG01D,4,4
	.comm	RADIO_2064_REG010,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_radio_2064_init.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	wlc_radio_2064_init, %function
wlc_radio_2064_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L24
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r4, [r3]
	ldr	r6, .L24+4
	ldr	r3, [r4]
	mov	r5, r0
	cmp	r3, r6
	beq	.L2
	ldr	r8, .L24+8
	ldr	r7, .L24+12
	b	.L5
.L4:
	ldr	r3, [r4, #20]!
	cmp	r3, r6
	beq	.L2
.L5:
	ldr	r0, [r5, #4]
	bl	CHSPEC_IS5G
	cmp	r0, #0
	beq	.L3
	ldr	r3, [r4, #16]
	cmp	r3, #0
	bne	.L22
.L3:
	ldr	r3, [r4, #8]
	cmp	r3, #0
	beq	.L4
	ldr	r3, [r4]
	ldr	r1, [r7]
	and	r3, r3, r8
	ldr	r2, [r4, #4]
	orr	r1, r3, r1
	mov	r0, r5
	bl	write_radio_reg
	ldr	r3, [r4, #20]!
	cmp	r3, r6
	bne	.L5
.L2:
	ldr	r3, .L24+16
	mov	r2, #98
	ldr	r1, [r3]
	mov	r0, r5
	bl	write_radio_reg
	ldr	r3, .L24+20
	mov	r2, #25
	ldr	r1, [r3]
	mov	r0, r5
	bl	write_radio_reg
	ldr	r3, .L24+24
	mov	r2, #16
	ldr	r1, [r3]
	mov	r0, r5
	bl	write_radio_reg
	ldr	r3, .L24+28
	mov	r2, #0
	ldr	r1, [r3]
	mov	r0, r5
	bl	write_radio_reg
	mov	r1, #1
	ldr	r0, [r5]
	bl	LCNREV_IS
	cmp	r0, #0
	bne	.L23
.L6:
	ldr	r3, .L24+32
	mov	r2, #2
	ldr	r1, [r3]
	mov	r0, r5
	bl	write_radio_reg
	ldr	r3, .L24+36
	mov	r2, #6
	ldr	r1, [r3]
	mov	r0, r5
	bl	write_radio_reg
	mov	r3, #0
	mov	r2, #7
	mov	r0, r5
	ldr	r1, .L24+40
	bl	mod_phy_reg
	mov	r3, #8
	mov	r2, #56
	mov	r0, r5
	ldr	r1, .L24+40
	bl	mod_phy_reg
	mov	r3, #128
	mov	r2, #448
	mov	r0, r5
	ldr	r1, .L24+40
	bl	mod_phy_reg
	mov	r3, #1536
	mov	r2, #3584
	mov	r0, r5
	ldr	r1, .L24+40
	bl	mod_phy_reg
	mov	r3, #16384
	mov	r2, #28672
	mov	r0, r5
	ldr	r1, .L24+40
	bl	mod_phy_reg
	mov	r0, r5
	ldr	r2, .L24+44
	ldr	r1, .L24+40
	bl	write_phy_reg
	mov	r3, #2
	mov	r2, #7
	mov	r0, r5
	ldr	r1, .L24+48
	bl	mod_phy_reg
	mov	r3, #0
	mov	r2, #448
	mov	r0, r5
	ldr	r1, .L24+48
	bl	mod_phy_reg
	mov	r3, #25
	ldr	r2, .L24+4
	mov	r0, r5
	ldr	r1, .L24+52
	bl	mod_phy_reg
	mov	r1, #0
	mov	r0, r5
	bl	wlc_lcnphy_set_tx_locc
	mov	r0, r5
	bl	wlc_lcnphy_rcal
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, lr}
	b	wlc_lcnphy_rc_cal
.L22:
	ldr	r3, [r4]
	ldr	r1, [r7]
	and	r3, r3, r8
	mov	r0, r5
	ldr	r2, [r4, #12]
	orr	r1, r3, r1
	bl	write_radio_reg
	b	.L4
.L23:
	ldr	r3, .L24+56
	mov	r2, #127
	ldr	r1, [r3]
	mov	r0, r5
	bl	write_radio_reg
	ldr	r3, .L24+60
	mov	r2, #114
	ldr	r1, [r3]
	mov	r0, r5
	bl	write_radio_reg
	ldr	r3, .L24+64
	mov	r2, #127
	mov	r0, r5
	ldr	r1, [r3]
	bl	write_radio_reg
	b	.L6
.L25:
	.align	2
.L24:
	.word	lcnphy_radio_regs_2064
	.word	65535
	.word	16383
	.word	RADIO_DEFAULT_CORE
	.word	RADIO_2064_REG032
	.word	RADIO_2064_REG033
	.word	RADIO_2064_REG090
	.word	RADIO_2064_REG010
	.word	RADIO_2064_REG01D
	.word	RADIO_2064_REG01E
	.word	1258
	.word	18056
	.word	1259
	.word	1130
	.word	RADIO_2064_REG060
	.word	RADIO_2064_REG061
	.word	RADIO_2064_REG062
	.size	wlc_radio_2064_init, .-wlc_radio_2064_init
	.comm	lcnphy_radio_regs_2064,4,4
	.comm	RADIO_DEFAULT_CORE,4,4
	.comm	RADIO_2064_REG090,4,4
	.comm	RADIO_2064_REG062,4,4
	.comm	RADIO_2064_REG061,4,4
	.comm	RADIO_2064_REG060,4,4
	.comm	RADIO_2064_REG033,4,4
	.comm	RADIO_2064_REG032,4,4
	.comm	RADIO_2064_REG01E,4,4
	.comm	RADIO_2064_REG01D,4,4
	.comm	RADIO_2064_REG010,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
