	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_dsiclk_rate
_set_dsiclk_rate:                       ## @set_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	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
	movl	%eax, %edi
	movq	%r14, %rsi
	callq	_clock_divider
	cmpl	$1, %eax
	jne	LBB0_2
## %bb.1:
	movq	_PRCM_DSI_PLLOUT_SEL_PHI@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_2:
	cmpl	$2, %eax
	jne	LBB0_3
## %bb.4:
	movq	_PRCM_DSI_PLLOUT_SEL_PHI_2@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_PRCM_DSI_PLLOUT_SEL_PHI_4@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	movq	_dsiclk@GOTPCREL(%rip), %r14
	movq	(%r14), %rcx
	shlq	$2, %r15
	leaq	(%r15,%r15,2), %rbx
	movl	%eax, (%rcx,%rbx)
	movq	_PRCM_DSI_PLLOUT_SEL@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_readl
	movq	(%r14), %rcx
	movl	(%rcx,%rbx), %edi
	movl	4(%rcx,%rbx), %edx
	movb	8(%rcx,%rbx), %cl
	shll	%cl, %edi
	notl	%edx
	andl	%eax, %edx
	orl	%edx, %edi
	movl	(%r15), %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PRCM_PLLDSI_FREQ,4,2           ## @PRCM_PLLDSI_FREQ
	.comm	_PRCMU_HDMICLK,4,2              ## @PRCMU_HDMICLK
	.comm	_PLL_RAW,4,2                    ## @PLL_RAW
	.comm	_PRCM_DSI_PLLOUT_SEL_PHI,4,2    ## @PRCM_DSI_PLLOUT_SEL_PHI
	.comm	_PRCM_DSI_PLLOUT_SEL_PHI_2,4,2  ## @PRCM_DSI_PLLOUT_SEL_PHI_2
	.comm	_PRCM_DSI_PLLOUT_SEL_PHI_4,4,2  ## @PRCM_DSI_PLLOUT_SEL_PHI_4
	.comm	_dsiclk,8,3                     ## @dsiclk
	.comm	_PRCM_DSI_PLLOUT_SEL,4,2        ## @PRCM_DSI_PLLOUT_SEL
	.no_dead_strip	_set_dsiclk_rate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_dsiclk_rate
_set_dsiclk_rate:                       ; @set_dsiclk_rate
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _PRCM_PLLDSI_FREQ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PRCM_PLLDSI_FREQ@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
Lloh3:
	adrp	x8, _PRCMU_HDMICLK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PRCMU_HDMICLK@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_clock_rate
	mov	x1, x0
Lloh6:
	adrp	x8, _PLL_RAW@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PLL_RAW@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_pll_rate
	mov	x1, x20
	bl	_clock_divider
	cmp	w0, #1
	b.ne	LBB0_2
; %bb.1:
Lloh9:
	adrp	x8, _PRCM_DSI_PLLOUT_SEL_PHI@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PRCM_DSI_PLLOUT_SEL_PHI@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
Lloh11:
	adrp	x8, _PRCM_DSI_PLLOUT_SEL_PHI_2@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PRCM_DSI_PLLOUT_SEL_PHI_2@GOTPAGEOFF]
Lloh13:
	adrp	x9, _PRCM_DSI_PLLOUT_SEL_PHI_4@GOTPAGE
Lloh14:
	ldr	x9, [x9, _PRCM_DSI_PLLOUT_SEL_PHI_4@GOTPAGEOFF]
	cmp	w0, #2
	csel	x8, x8, x9, eq
LBB0_3:
	ldr	w8, [x8]
Lloh15:
	adrp	x20, _dsiclk@GOTPAGE
Lloh16:
	ldr	x20, [x20, _dsiclk@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x10, x19, x19, lsl #1
	lsl	x19, x10, #2
	str	w8, [x9, x19]
Lloh17:
	adrp	x21, _PRCM_DSI_PLLOUT_SEL@GOTPAGE
Lloh18:
	ldr	x21, [x21, _PRCM_DSI_PLLOUT_SEL@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_readl
	ldr	x8, [x20]
	add	x8, x8, x19
	ldp	w10, w9, [x8]
	bic	w9, w0, w9
	ldr	w8, [x8, #8]
	lsl	w8, w10, w8
	orr	w0, w8, w9
	ldr	w1, [x21]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_writel
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_PRCM_PLLDSI_FREQ,4,2           ; @PRCM_PLLDSI_FREQ
	.comm	_PRCMU_HDMICLK,4,2              ; @PRCMU_HDMICLK
	.comm	_PLL_RAW,4,2                    ; @PLL_RAW
	.comm	_PRCM_DSI_PLLOUT_SEL_PHI,4,2    ; @PRCM_DSI_PLLOUT_SEL_PHI
	.comm	_PRCM_DSI_PLLOUT_SEL_PHI_2,4,2  ; @PRCM_DSI_PLLOUT_SEL_PHI_2
	.comm	_PRCM_DSI_PLLOUT_SEL_PHI_4,4,2  ; @PRCM_DSI_PLLOUT_SEL_PHI_4
	.comm	_dsiclk,8,3                     ; @dsiclk
	.comm	_PRCM_DSI_PLLOUT_SEL,4,2        ; @PRCM_DSI_PLLOUT_SEL
	.no_dead_strip	_set_dsiclk_rate
.subsections_via_symbols
