	.file	"extr_phy_lcn.c_wlc_lcnphy_set_chanspec_tweaks.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	wlc_lcnphy_set_chanspec_tweaks, @function
wlc_lcnphy_set_chanspec_tweaks:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	mov	edi, esi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	CHSPEC_CHANNEL@PLT
	mov	r12, QWORD PTR 8[rbp]
	cmp	eax, 14
	je	.L13
	mov	ebx, eax
	mov	ecx, 256
	mov	edx, 768
	mov	rdi, rbp
	mov	esi, 1096
	call	mod_phy_reg@PLT
	mov	DWORD PTR [r12], 2
	cmp	ebx, 1
	jne	.L4
	mov	rax, QWORD PTR 0[rbp]
	mov	DWORD PTR [r12], 4
	mov	rdi, QWORD PTR [rax]
.L5:
	mov	edx, 50334724
	mov	esi, 2
	call	bcma_chipco_pll_write@PLT
	mov	rax, QWORD PTR 0[rbp]
	xor	ecx, ecx
	mov	edx, -16777216
	mov	esi, 3
	mov	rdi, QWORD PTR [rax]
	call	bcma_chipco_pll_maskset@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	edx, 536872384
	mov	esi, 4
	mov	rdi, QWORD PTR [rax]
	call	bcma_chipco_pll_write@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	edx, DWORD PTR BCMA_CC_PMU_CTL_PLL_UPD[rip]
	mov	esi, DWORD PTR BCMA_CC_PMU_CTL[rip]
	mov	rdi, QWORD PTR [rax]
	call	bcma_cc_set32@PLT
	xor	edx, edx
	mov	esi, 2370
	mov	rdi, rbp
	call	write_phy_reg@PLT
	xor	esi, esi
	mov	rdi, rbp
	call	wlc_lcnphy_txrx_spur_avoidance_mode@PLT
	mov	edx, 65280
	mov	esi, 1060
	mov	DWORD PTR 4[r12], 0
	mov	rdi, rbp
	mov	ecx, 6912
	call	mod_phy_reg@PLT
	mov	edx, 22791
	mov	esi, 1061
	mov	rdi, rbp
	call	write_phy_reg@PLT
.L7:
	mov	rdi, rbp
	mov	edx, 68
	mov	esi, 1098
	call	or_phy_reg@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	mov	edx, 128
	pop	rbp
	.cfi_def_cfa_offset 16
	mov	esi, 1098
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	write_phy_reg@PLT
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	rax, QWORD PTR 0[rbp]
	mov	rdi, QWORD PTR [rax]
	lea	eax, -1[rbx]
	cmp	eax, 3
	jbe	.L5
	cmp	ebx, 9
	je	.L5
	lea	eax, -10[rbx]
	cmp	eax, 1
	jbe	.L5
	cmp	ebx, 12
	je	.L5
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rdi, rbp
	mov	ecx, 512
	mov	edx, 768
	mov	esi, 1096
	call	mod_phy_reg@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	DWORD PTR [r12], 2
	mov	rdi, QWORD PTR [rax]
.L3:
	mov	edx, 51645444
	mov	esi, 2
	call	bcma_chipco_pll_write@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	ecx, 3355443
	mov	edx, -16777216
	mov	esi, 3
	mov	rdi, QWORD PTR [rax]
	call	bcma_chipco_pll_maskset@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	edx, 539764768
	mov	esi, 4
	mov	rdi, QWORD PTR [rax]
	call	bcma_chipco_pll_write@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	edx, DWORD PTR BCMA_CC_PMU_CTL_PLL_UPD[rip]
	mov	esi, DWORD PTR BCMA_CC_PMU_CTL[rip]
	mov	rdi, QWORD PTR [rax]
	call	bcma_cc_set32@PLT
	xor	edx, edx
	mov	rdi, rbp
	mov	esi, 2370
	call	write_phy_reg@PLT
	mov	rdi, rbp
	mov	esi, 1
	call	wlc_lcnphy_txrx_spur_avoidance_mode@PLT
	mov	rdi, rbp
	mov	ecx, 7936
	mov	DWORD PTR 4[r12], 0
	mov	edx, 65280
	mov	esi, 1060
	call	mod_phy_reg@PLT
	mov	edx, 22794
	mov	esi, 1061
	mov	rdi, rbp
	call	write_phy_reg@PLT
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	wlc_lcnphy_set_chanspec_tweaks, .-wlc_lcnphy_set_chanspec_tweaks
	.comm	BCMA_CC_PMU_CTL_PLL_UPD,4,4
	.comm	BCMA_CC_PMU_CTL,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_set_chanspec_tweaks.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	wlc_lcnphy_set_chanspec_tweaks, %function
wlc_lcnphy_set_chanspec_tweaks:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	mov	r0, r1
	bl	CHSPEC_CHANNEL
	cmp	r0, #14
	ldr	r6, [r4, #4]
	beq	.L12
	mov	r5, r0
	mov	r3, #256
	mov	r2, #768
	mov	r0, r4
	ldr	r1, .L13
	bl	mod_phy_reg
	mov	r3, #2
	cmp	r5, #1
	str	r3, [r6]
	bne	.L4
	mov	r2, #4
	ldr	r3, [r4]
	str	r2, [r6]
	ldr	r0, [r3]
.L5:
	mov	r1, #2
	ldr	r2, .L13+4
	bl	bcma_chipco_pll_write
	ldr	r2, [r4]
	mov	r3, #0
	mov	r1, #3
	ldr	r0, [r2]
	mov	r2, #-16777216
	bl	bcma_chipco_pll_maskset
	ldr	r3, [r4]
	mov	r1, #4
	ldr	r2, .L13+8
	ldr	r0, [r3]
	bl	bcma_chipco_pll_write
	ldr	r3, [r4]
	ldr	r2, .L13+12
	ldr	r1, .L13+16
	ldr	r0, [r3]
	ldr	r2, [r2]
	ldr	r1, [r1]
	bl	bcma_cc_set32
	mov	r2, #0
	ldr	r1, .L13+20
	mov	r0, r4
	bl	write_phy_reg
	mov	r1, #0
	mov	r0, r4
	bl	wlc_lcnphy_txrx_spur_avoidance_mode
	mov	r2, #0
	ldr	r1, .L13+24
	str	r2, [r6, #4]
	mov	r3, #6912
	mov	r2, #65280
	mov	r0, r4
	bl	mod_phy_reg
	mov	r0, r4
	ldr	r2, .L13+28
	ldr	r1, .L13+32
	bl	write_phy_reg
.L6:
	mov	r2, #68
	mov	r0, r4
	ldr	r1, .L13+36
	bl	or_phy_reg
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	mov	r2, #128
	ldr	r1, .L13+36
	b	write_phy_reg
.L4:
	sub	r3, r5, #1
	cmp	r5, #9
	cmpne	r3, #3
	ldr	r3, [r4]
	ldr	r0, [r3]
	bls	.L5
	sub	r3, r5, #10
	cmp	r5, #12
	cmpne	r3, #1
	bls	.L5
	b	.L3
.L12:
	mov	r3, #512
	mov	r2, #768
	mov	r0, r4
	ldr	r1, .L13
	bl	mod_phy_reg
	mov	r2, #2
	ldr	r3, [r4]
	str	r2, [r6]
	ldr	r0, [r3]
.L3:
	mov	r1, #2
	ldr	r2, .L13+40
	bl	bcma_chipco_pll_write
	ldr	r2, [r4]
	mov	r1, #3
	ldr	r3, .L13+44
	ldr	r0, [r2]
	mov	r2, #-16777216
	bl	bcma_chipco_pll_maskset
	ldr	r3, [r4]
	mov	r1, #4
	ldr	r2, .L13+48
	ldr	r0, [r3]
	bl	bcma_chipco_pll_write
	ldr	r3, [r4]
	ldr	r2, .L13+12
	ldr	r1, .L13+16
	ldr	r0, [r3]
	ldr	r2, [r2]
	ldr	r1, [r1]
	bl	bcma_cc_set32
	mov	r2, #0
	mov	r0, r4
	ldr	r1, .L13+20
	bl	write_phy_reg
	mov	r1, #1
	mov	r0, r4
	bl	wlc_lcnphy_txrx_spur_avoidance_mode
	mov	r2, #0
	mov	r3, #7936
	str	r2, [r6, #4]
	mov	r0, r4
	mov	r2, #65280
	ldr	r1, .L13+24
	bl	mod_phy_reg
	mov	r0, r4
	ldr	r2, .L13+52
	ldr	r1, .L13+32
	bl	write_phy_reg
	b	.L6
.L14:
	.align	2
.L13:
	.word	1096
	.word	50334724
	.word	536872384
	.word	BCMA_CC_PMU_CTL_PLL_UPD
	.word	BCMA_CC_PMU_CTL
	.word	2370
	.word	1060
	.word	22791
	.word	1061
	.word	1098
	.word	51645444
	.word	3355443
	.word	539764768
	.word	22794
	.size	wlc_lcnphy_set_chanspec_tweaks, .-wlc_lcnphy_set_chanspec_tweaks
	.comm	BCMA_CC_PMU_CTL_PLL_UPD,4,4
	.comm	BCMA_CC_PMU_CTL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
