	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bcma_pmu_get_alp_clock         ## -- Begin function bcma_pmu_get_alp_clock
	.p2align	4, 0x90
_bcma_pmu_get_alp_clock:                ## @bcma_pmu_get_alp_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	%rdi, %rax
	movq	8(%rdi), %rcx
	movq	(%rcx), %rdi
	movl	(%rdi), %edx
	leal	-128(%rdx), %ecx
	cmpl	$9, %ecx
	jae	LBB0_1
## %bb.2:
	movslq	%ecx, %rax
	leaq	l_switch.table.bcma_pmu_get_alp_clock(%rip), %rcx
	leaq	(%rcx,%rax,4), %rbx
	jmp	LBB0_3
LBB0_1:
	movl	(%rax), %ecx
	movq	_BCMA_CC_PMU_ALP_CLOCK@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r8d
	leaq	L_.str(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_bcma_warn
LBB0_3:
	movl	(%rbx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No ALP clock specified for %04X device, pmu rev. %d, using default %d Hz\n"

	.comm	_BCMA_CC_PMU_ALP_CLOCK,4,2      ## @BCMA_CC_PMU_ALP_CLOCK
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.bcma_pmu_get_alp_clock
l_switch.table.bcma_pmu_get_alp_clock:
	.long	20000000                        ## 0x1312d00
	.long	20000000                        ## 0x1312d00
	.long	25000000                        ## 0x17d7840
	.long	20000000                        ## 0x1312d00
	.long	20000000                        ## 0x1312d00
	.long	20000000                        ## 0x1312d00
	.long	20000000                        ## 0x1312d00
	.long	25000000                        ## 0x17d7840
	.long	20000000                        ## 0x1312d00

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bcma_pmu_get_alp_clock         ; -- Begin function bcma_pmu_get_alp_clock
	.p2align	2
_bcma_pmu_get_alp_clock:                ; @bcma_pmu_get_alp_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
	mov	x8, x0
	ldr	x9, [x0, #8]
	ldr	x0, [x9]
	ldr	w2, [x0]
	sub	w9, w2, #128
	cmp	w9, #9
	b.hs	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, l_switch.table.bcma_pmu_get_alp_clock@PAGE
Lloh1:
	add	x8, x8, l_switch.table.bcma_pmu_get_alp_clock@PAGEOFF
	add	x19, x8, w9, sxtw #2
	b	LBB0_3
LBB0_2:
	ldr	w3, [x8]
Lloh2:
	adrp	x19, _BCMA_CC_PMU_ALP_CLOCK@GOTPAGE
Lloh3:
	ldr	x19, [x19, _BCMA_CC_PMU_ALP_CLOCK@GOTPAGEOFF]
	ldr	w4, [x19]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	bl	_bcma_warn
LBB0_3:
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No ALP clock specified for %04X device, pmu rev. %d, using default %d Hz\n"

	.comm	_BCMA_CC_PMU_ALP_CLOCK,4,2      ; @BCMA_CC_PMU_ALP_CLOCK
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.bcma_pmu_get_alp_clock
l_switch.table.bcma_pmu_get_alp_clock:
	.long	20000000                        ; 0x1312d00
	.long	20000000                        ; 0x1312d00
	.long	25000000                        ; 0x17d7840
	.long	20000000                        ; 0x1312d00
	.long	20000000                        ; 0x1312d00
	.long	20000000                        ; 0x1312d00
	.long	20000000                        ; 0x1312d00
	.long	25000000                        ; 0x17d7840
	.long	20000000                        ; 0x1312d00

.subsections_via_symbols
