	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bcma_cpu_clock                 ## -- Begin function bcma_cpu_clock
	.p2align	4, 0x90
_bcma_cpu_clock:                        ## @bcma_cpu_clock
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	movq	(%rax), %rdi
	movq	_BCMA_CC_CAP_PMU@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_1
## %bb.2:
	popq	%rbp
	jmp	_bcma_pmu_get_cpu_clock         ## TAILCALL
LBB0_1:
	leaq	L_.str(%rip), %rsi
	callq	_bcma_err
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BCMA_CC_CAP_PMU,4,2            ## @BCMA_CC_CAP_PMU
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No PMU available, need this to get the cpu clock\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bcma_cpu_clock                 ; -- Begin function bcma_cpu_clock
	.p2align	2
_bcma_cpu_clock:                        ; @bcma_cpu_clock
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x8, [x0]
	ldr	x0, [x8]
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _BCMA_CC_CAP_PMU@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BCMA_CC_CAP_PMU@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_bcma_pmu_get_cpu_clock
LBB0_2:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_bcma_err
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_BCMA_CC_CAP_PMU,4,2            ; @BCMA_CC_CAP_PMU
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No PMU available, need this to get the cpu clock\n"

.subsections_via_symbols
