	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcma_pmu_get_bus_clock
_bcma_pmu_get_bus_clock:                ## @bcma_pmu_get_bus_clock
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	8(%rdi), %rax
	movq	(%rax), %rax
	movl	(%rax), %edx
	leal	-128(%rdx), %ecx
	cmpl	$7, %ecx
	ja	LBB0_7
## %bb.1:
	movl	$75000000, %eax                 ## imm = 0x47868C0
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_2:
	movq	_BCMA_CC_PMU4716_MAINPLL_PLL0@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_5:
	movq	_BCMA_CC_PMU5357_MAINPLL_PLL0@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_7:
	movl	(%rdi), %ecx
	movq	_BCMA_CC_PMU_HT_CLOCK@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r8d
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_bcma_warn
	movl	(%rbx), %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_4:
	movq	_BCMA_CC_PMU5356_MAINPLL_PLL0@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %esi
	movq	_BCMA_CC_PMU5_MAINPLL_SSB@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_bcma_pmu_pll_clock             ## TAILCALL
LBB0_6:
	movq	_BCMA_CC_PMU4706_MAINPLL_PLL0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BCMA_CC_PMU5_MAINPLL_SSB@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_bcma_pmu_pll_clock_bcm4706     ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_8
	.long	L0_0_set_5
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
	.comm	_BCMA_CC_PMU4716_MAINPLL_PLL0,4,2 ## @BCMA_CC_PMU4716_MAINPLL_PLL0
	.comm	_BCMA_CC_PMU5_MAINPLL_SSB,4,2   ## @BCMA_CC_PMU5_MAINPLL_SSB
	.comm	_BCMA_CC_PMU5356_MAINPLL_PLL0,4,2 ## @BCMA_CC_PMU5356_MAINPLL_PLL0
	.comm	_BCMA_CC_PMU5357_MAINPLL_PLL0,4,2 ## @BCMA_CC_PMU5357_MAINPLL_PLL0
	.comm	_BCMA_CC_PMU4706_MAINPLL_PLL0,4,2 ## @BCMA_CC_PMU4706_MAINPLL_PLL0
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No bus clock specified for %04X device, pmu rev. %d, using default %d Hz\n"

	.comm	_BCMA_CC_PMU_HT_CLOCK,4,2       ## @BCMA_CC_PMU_HT_CLOCK
	.no_dead_strip	_bcma_pmu_get_bus_clock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcma_pmu_get_bus_clock
_bcma_pmu_get_bus_clock:                ; @bcma_pmu_get_bus_clock
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	ldr	w2, [x8]
	sub	w9, w2, #128
	cmp	w9, #7
	b.hi	LBB0_4
; %bb.1:
	mov	w8, #26816
	movk	w8, #1144, lsl #16
Lloh0:
	adrp	x10, lJTI0_0@PAGE
Lloh1:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_2
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_2:
Lloh2:
	adrp	x8, _BCMA_CC_PMU4716_MAINPLL_PLL0@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BCMA_CC_PMU4716_MAINPLL_PLL0@GOTPAGEOFF]
	b	LBB0_7
LBB0_3:
Lloh4:
	adrp	x8, _BCMA_CC_PMU5357_MAINPLL_PLL0@GOTPAGE
Lloh5:
	ldr	x8, [x8, _BCMA_CC_PMU5357_MAINPLL_PLL0@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:
	ldr	w3, [x0]
Lloh6:
	adrp	x19, _BCMA_CC_PMU_HT_CLOCK@GOTPAGE
Lloh7:
	ldr	x19, [x19, _BCMA_CC_PMU_HT_CLOCK@GOTPAGEOFF]
	ldr	w4, [x19]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x8
	bl	_bcma_warn
	ldr	w8, [x19]
LBB0_5:
	mov	x0, x8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh10:
	adrp	x8, _BCMA_CC_PMU5356_MAINPLL_PLL0@GOTPAGE
Lloh11:
	ldr	x8, [x8, _BCMA_CC_PMU5356_MAINPLL_PLL0@GOTPAGEOFF]
LBB0_7:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _BCMA_CC_PMU5_MAINPLL_SSB@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BCMA_CC_PMU5_MAINPLL_SSB@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_bcma_pmu_pll_clock
LBB0_8:
Lloh15:
	adrp	x8, _BCMA_CC_PMU4706_MAINPLL_PLL0@GOTPAGE
Lloh16:
	ldr	x8, [x8, _BCMA_CC_PMU4706_MAINPLL_PLL0@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x8, _BCMA_CC_PMU5_MAINPLL_SSB@GOTPAGE
Lloh19:
	ldr	x8, [x8, _BCMA_CC_PMU5_MAINPLL_SSB@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_bcma_pmu_pll_clock_bcm4706
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
                                        ; -- End function
	.comm	_BCMA_CC_PMU4716_MAINPLL_PLL0,4,2 ; @BCMA_CC_PMU4716_MAINPLL_PLL0
	.comm	_BCMA_CC_PMU5_MAINPLL_SSB,4,2   ; @BCMA_CC_PMU5_MAINPLL_SSB
	.comm	_BCMA_CC_PMU5356_MAINPLL_PLL0,4,2 ; @BCMA_CC_PMU5356_MAINPLL_PLL0
	.comm	_BCMA_CC_PMU5357_MAINPLL_PLL0,4,2 ; @BCMA_CC_PMU5357_MAINPLL_PLL0
	.comm	_BCMA_CC_PMU4706_MAINPLL_PLL0,4,2 ; @BCMA_CC_PMU4706_MAINPLL_PLL0
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No bus clock specified for %04X device, pmu rev. %d, using default %d Hz\n"

	.comm	_BCMA_CC_PMU_HT_CLOCK,4,2       ; @BCMA_CC_PMU_HT_CLOCK
	.no_dead_strip	_bcma_pmu_get_bus_clock
.subsections_via_symbols
