	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dsiclk_rate
_dsiclk_rate:                           ## @dsiclk_rate
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_PRCM_DSI_PLLOUT_SEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_readl
	movq	_dsiclk@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	leaq	(%rbx,%rbx,2), %rsi
	andl	(%rdx,%rsi,4), %eax
	movb	4(%rdx,%rsi,4), %cl
	sarl	%cl, %eax
	movq	_PRCM_DSI_PLLOUT_SEL_OFF@GOTPCREL(%rip), %rdi
	leaq	(%rdx,%rsi,4), %rcx
	addq	$8, %rcx
	cmpl	(%rdi), %eax
	jne	LBB0_2
## %bb.1:
	movl	(%rcx), %eax
	cmpl	$130, %eax
	je	LBB0_4
LBB0_5:
	cmpl	$129, %eax
	je	LBB0_6
## %bb.7:
	cmpl	$128, %eax
	jne	LBB0_8
## %bb.9:
	movl	$4, %r14d
	jmp	LBB0_10
LBB0_2:
	movl	%eax, (%rcx)
	cmpl	$130, %eax
	jne	LBB0_5
LBB0_4:
	movl	$1, %r14d
	jmp	LBB0_10
LBB0_6:
	movl	$2, %r14d
LBB0_10:
	movq	_PRCM_PLLDSI_FREQ@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_PRCMU_HDMICLK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_clock_rate
	movq	_PLL_RAW@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_pll_rate
	cltd
	idivl	%r14d
	cltq
	jmp	LBB0_11
LBB0_8:
	xorl	%eax, %eax
LBB0_11:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PRCM_DSI_PLLOUT_SEL,4,2        ## @PRCM_DSI_PLLOUT_SEL
	.comm	_dsiclk,8,3                     ## @dsiclk
	.comm	_PRCM_DSI_PLLOUT_SEL_OFF,4,2    ## @PRCM_DSI_PLLOUT_SEL_OFF
	.comm	_PRCM_PLLDSI_FREQ,4,2           ## @PRCM_PLLDSI_FREQ
	.comm	_PRCMU_HDMICLK,4,2              ## @PRCMU_HDMICLK
	.comm	_PLL_RAW,4,2                    ## @PLL_RAW
	.no_dead_strip	_dsiclk_rate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dsiclk_rate
_dsiclk_rate:                           ; @dsiclk_rate
	.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	x19, x0
Lloh0:
	adrp	x8, _PRCM_DSI_PLLOUT_SEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PRCM_DSI_PLLOUT_SEL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_readl
Lloh3:
	adrp	x8, _dsiclk@GOTPAGE
Lloh4:
	ldr	x8, [x8, _dsiclk@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	mov	w9, #12
	madd	x9, x19, x9, x8
	ldp	w8, w10, [x9], #8
	and	w8, w8, w0
	asr	w8, w8, w10
Lloh6:
	adrp	x10, _PRCM_DSI_PLLOUT_SEL_OFF@GOTPAGE
Lloh7:
	ldr	x10, [x10, _PRCM_DSI_PLLOUT_SEL_OFF@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	cmp	w8, w10
	b.ne	LBB0_5
; %bb.1:
	ldr	w8, [x9]
	cmp	w8, #130
	b.eq	LBB0_6
LBB0_2:
	cmp	w8, #129
	b.eq	LBB0_7
; %bb.3:
	cmp	w8, #128
	b.ne	LBB0_9
; %bb.4:
	mov	w20, #4
	b	LBB0_8
LBB0_5:
	str	w8, [x9]
	cmp	w8, #130
	b.ne	LBB0_2
LBB0_6:
	mov	w20, #1
	b	LBB0_8
LBB0_7:
	mov	w20, #2
LBB0_8:
Lloh9:
	adrp	x8, _PRCM_PLLDSI_FREQ@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PRCM_PLLDSI_FREQ@GOTPAGEOFF]
Lloh11:
	ldr	w19, [x8]
Lloh12:
	adrp	x8, _PRCMU_HDMICLK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PRCMU_HDMICLK@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_clock_rate
	mov	x1, x0
Lloh15:
	adrp	x8, _PLL_RAW@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PLL_RAW@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_pll_rate
	sdiv	w8, w0, w20
	sxtw	x0, w8
	b	LBB0_10
LBB0_9:
	mov	x0, #0
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_PRCM_DSI_PLLOUT_SEL,4,2        ; @PRCM_DSI_PLLOUT_SEL
	.comm	_dsiclk,8,3                     ; @dsiclk
	.comm	_PRCM_DSI_PLLOUT_SEL_OFF,4,2    ; @PRCM_DSI_PLLOUT_SEL_OFF
	.comm	_PRCM_PLLDSI_FREQ,4,2           ; @PRCM_PLLDSI_FREQ
	.comm	_PRCMU_HDMICLK,4,2              ; @PRCMU_HDMICLK
	.comm	_PLL_RAW,4,2                    ; @PLL_RAW
	.no_dead_strip	_dsiclk_rate
.subsections_via_symbols
