	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_tclk                       ## -- Begin function get_tclk
	.p2align	4, 0x90
_get_tclk:                              ## @get_tclk
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_fdtbus_bs_tag@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_MV_MPP_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SAMPLE_AT_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_bus_space_read_4
	movq	_TCLK_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_TCLK_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	cmpl	$2, %eax
	je	LBB0_4
## %bb.1:
	cmpl	$1, %eax
	jne	LBB0_5
## %bb.2:
	movq	_TCLK_150MHZ@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_4:
	movq	_TCLK_166MHZ@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	popq	%rbp
	retq
LBB0_5:
	leaq	L_.str(%rip), %rdi
	callq	_panic
                                        ## implicit-def: $eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_fdtbus_bs_tag,4,2              ## @fdtbus_bs_tag
	.comm	_MV_MPP_BASE,4,2                ## @MV_MPP_BASE
	.comm	_SAMPLE_AT_RESET,4,2            ## @SAMPLE_AT_RESET
	.comm	_TCLK_MASK,4,2                  ## @TCLK_MASK
	.comm	_TCLK_SHIFT,4,2                 ## @TCLK_SHIFT
	.comm	_TCLK_150MHZ,4,2                ## @TCLK_150MHZ
	.comm	_TCLK_166MHZ,4,2                ## @TCLK_166MHZ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown TCLK settings!"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_tclk                       ; -- Begin function get_tclk
	.p2align	2
_get_tclk:                              ; @get_tclk
	.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
Lloh0:
	adrp	x8, _fdtbus_bs_tag@GOTPAGE
Lloh1:
	ldr	x8, [x8, _fdtbus_bs_tag@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _MV_MPP_BASE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MV_MPP_BASE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _SAMPLE_AT_RESET@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SAMPLE_AT_RESET@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	bl	_bus_space_read_4
Lloh9:
	adrp	x8, _TCLK_MASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TCLK_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh12:
	adrp	x9, _TCLK_SHIFT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _TCLK_SHIFT@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	asr	w8, w8, w9
	cmp	w8, #2
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #1
	b.ne	LBB0_5
; %bb.2:
Lloh15:
	adrp	x8, _TCLK_150MHZ@GOTPAGE
Lloh16:
	ldr	x8, [x8, _TCLK_150MHZ@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh17:
	adrp	x8, _TCLK_166MHZ@GOTPAGE
Lloh18:
	ldr	x8, [x8, _TCLK_166MHZ@GOTPAGEOFF]
LBB0_4:
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh19:
	adrp	x0, l_.str@PAGE
Lloh20:
	add	x0, x0, l_.str@PAGEOFF
	bl	_panic
                                        ; implicit-def: $w0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_fdtbus_bs_tag,4,2              ; @fdtbus_bs_tag
	.comm	_MV_MPP_BASE,4,2                ; @MV_MPP_BASE
	.comm	_SAMPLE_AT_RESET,4,2            ; @SAMPLE_AT_RESET
	.comm	_TCLK_MASK,4,2                  ; @TCLK_MASK
	.comm	_TCLK_SHIFT,4,2                 ; @TCLK_SHIFT
	.comm	_TCLK_150MHZ,4,2                ; @TCLK_150MHZ
	.comm	_TCLK_166MHZ,4,2                ; @TCLK_166MHZ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown TCLK settings!"

.subsections_via_symbols
