	.file	"extr_driver_chipcommon_pmu.c_bcma_pmu_get_bus_clock.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"No bus clock specified for %04X device, pmu rev. %d, using default %d Hz\n"
	.text
	.p2align 4
	.type	bcma_pmu_get_bus_clock, @function
bcma_pmu_get_bus_clock:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rax, QWORD PTR 8[rdi]
	mov	r9, QWORD PTR [rax]
	mov	edx, DWORD PTR [r9]
	lea	eax, -128[rdx]
	cmp	eax, 7
	ja	.L2
	lea	rdx, .L4[rip]
	movsx	rax, DWORD PTR [rdx+rax*4]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L4:
	.long	.L9-.L4
	.long	.L6-.L4
	.long	.L7-.L4
	.long	.L6-.L4
	.long	.L5-.L4
	.long	.L5-.L4
	.long	.L5-.L4
	.long	.L3-.L4
	.text
	.p2align 4,,10
	.p2align 3
.L5:
	mov	edx, DWORD PTR BCMA_CC_PMU5_MAINPLL_SSB[rip]
	mov	esi, DWORD PTR BCMA_CC_PMU4716_MAINPLL_PLL0[rip]
	jmp	bcma_pmu_pll_clock@PLT
	.p2align 4,,10
	.p2align 3
.L6:
	mov	edx, DWORD PTR BCMA_CC_PMU5_MAINPLL_SSB[rip]
	mov	esi, DWORD PTR BCMA_CC_PMU5357_MAINPLL_PLL0[rip]
	jmp	bcma_pmu_pll_clock@PLT
	.p2align 4,,10
	.p2align 3
.L7:
	mov	edx, DWORD PTR BCMA_CC_PMU5_MAINPLL_SSB[rip]
	mov	esi, DWORD PTR BCMA_CC_PMU5356_MAINPLL_PLL0[rip]
	jmp	bcma_pmu_pll_clock@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	mov	edx, DWORD PTR BCMA_CC_PMU5_MAINPLL_SSB[rip]
	mov	esi, DWORD PTR BCMA_CC_PMU4706_MAINPLL_PLL0[rip]
	jmp	bcma_pmu_pll_clock_bcm4706@PLT
	.p2align 4,,10
	.p2align 3
.L9:
	mov	eax, 75000000
	ret
.L2:
	sub	rsp, 8
	.cfi_def_cfa_offset 16
	mov	ecx, DWORD PTR [rdi]
	mov	rdi, r9
	mov	r8d, DWORD PTR BCMA_CC_PMU_HT_CLOCK[rip]
	lea	rsi, .LC0[rip]
	call	bcma_warn@PLT
	mov	eax, DWORD PTR BCMA_CC_PMU_HT_CLOCK[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	bcma_pmu_get_bus_clock, .-bcma_pmu_get_bus_clock
	.comm	BCMA_CC_PMU_HT_CLOCK,4,4
	.comm	BCMA_CC_PMU5_MAINPLL_SSB,4,4
	.comm	BCMA_CC_PMU5357_MAINPLL_PLL0,4,4
	.comm	BCMA_CC_PMU5356_MAINPLL_PLL0,4,4
	.comm	BCMA_CC_PMU4716_MAINPLL_PLL0,4,4
	.comm	BCMA_CC_PMU4706_MAINPLL_PLL0,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_driver_chipcommon_pmu.c_bcma_pmu_get_bus_clock.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"No bus clock specified for %04X device, pmu rev. %d"
	.ascii	", using default %d Hz\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bcma_pmu_get_bus_clock, %function
bcma_pmu_get_bus_clock:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0, #4]
	ldr	r1, [r3]
	ldr	r2, [r1]
	sub	r3, r2, #128
	cmp	r3, #7
	ldrls	pc, [pc, r3, asl #2]
	b	.L2
.L4:
	.word	.L9
	.word	.L6
	.word	.L7
	.word	.L6
	.word	.L5
	.word	.L5
	.word	.L5
	.word	.L3
.L5:
	ldr	r2, .L14
	ldr	r3, .L14+4
	ldr	r2, [r2]
	ldr	r1, [r3]
	b	bcma_pmu_pll_clock
.L6:
	ldr	r2, .L14
	ldr	r3, .L14+8
	ldr	r2, [r2]
	ldr	r1, [r3]
	b	bcma_pmu_pll_clock
.L7:
	ldr	r2, .L14
	ldr	r3, .L14+12
	ldr	r2, [r2]
	ldr	r1, [r3]
	b	bcma_pmu_pll_clock
.L3:
	ldr	r2, .L14
	ldr	r3, .L14+16
	ldr	r2, [r2]
	ldr	r1, [r3]
	b	bcma_pmu_pll_clock_bcm4706
.L9:
	ldr	r0, .L14+20
	bx	lr
.L2:
	push	{r4, lr}
	ldr	r4, .L14+24
	sub	sp, sp, #8
	ldr	ip, [r4]
	ldr	r3, [r0]
	mov	r0, r1
	str	ip, [sp]
	ldr	r1, .L14+28
	bl	bcma_warn
	ldr	r0, [r4]
	add	sp, sp, #8
	@ sp needed
	pop	{r4, pc}
.L15:
	.align	2
.L14:
	.word	BCMA_CC_PMU5_MAINPLL_SSB
	.word	BCMA_CC_PMU4716_MAINPLL_PLL0
	.word	BCMA_CC_PMU5357_MAINPLL_PLL0
	.word	BCMA_CC_PMU5356_MAINPLL_PLL0
	.word	BCMA_CC_PMU4706_MAINPLL_PLL0
	.word	75000000
	.word	BCMA_CC_PMU_HT_CLOCK
	.word	.LC0
	.size	bcma_pmu_get_bus_clock, .-bcma_pmu_get_bus_clock
	.comm	BCMA_CC_PMU_HT_CLOCK,4,4
	.comm	BCMA_CC_PMU5_MAINPLL_SSB,4,4
	.comm	BCMA_CC_PMU5357_MAINPLL_PLL0,4,4
	.comm	BCMA_CC_PMU5356_MAINPLL_PLL0,4,4
	.comm	BCMA_CC_PMU4716_MAINPLL_PLL0,4,4
	.comm	BCMA_CC_PMU4706_MAINPLL_PLL0,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
