	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_prcmu_set_clock_rate           ## -- Begin function prcmu_set_clock_rate
	.p2align	4, 0x90
_prcmu_set_clock_rate:                  ## @prcmu_set_clock_rate
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_PRCMU_NUM_REG_CLOCKS@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	jle	LBB0_2
## %bb.1:
	callq	_set_clock_rate
LBB0_10:
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_2:
	movq	_PRCMU_ARMSS@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	jne	LBB0_3
## %bb.11:
	movq	%rsi, %rdi
	popq	%rbp
	jmp	_set_armss_rate                 ## TAILCALL
LBB0_3:
	movq	_PRCMU_PLLDSI@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	jne	LBB0_4
## %bb.12:
	movq	%rsi, %rdi
	popq	%rbp
	jmp	_set_plldsi_rate                ## TAILCALL
LBB0_4:
	movq	_PRCMU_DSI0CLK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rdi, %rax
	je	LBB0_6
## %bb.5:
	movq	_PRCMU_DSI1CLK@GOTPCREL(%rip), %rcx
	cmpq	%rdi, (%rcx)
	je	LBB0_6
## %bb.7:
	movq	_PRCMU_DSI0ESCCLK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rdi, %rax
	jg	LBB0_10
## %bb.8:
	movq	_PRCMU_DSI2ESCCLK@GOTPCREL(%rip), %rcx
	cmpq	%rdi, (%rcx)
	jl	LBB0_10
## %bb.9:
	subq	%rax, %rdi
	callq	_set_dsiescclk_rate
	jmp	LBB0_10
LBB0_6:
	subq	%rax, %rdi
	callq	_set_dsiclk_rate
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_PRCMU_NUM_REG_CLOCKS,8,3       ## @PRCMU_NUM_REG_CLOCKS
	.comm	_PRCMU_ARMSS,8,3                ## @PRCMU_ARMSS
	.comm	_PRCMU_PLLDSI,8,3               ## @PRCMU_PLLDSI
	.comm	_PRCMU_DSI0CLK,8,3              ## @PRCMU_DSI0CLK
	.comm	_PRCMU_DSI1CLK,8,3              ## @PRCMU_DSI1CLK
	.comm	_PRCMU_DSI0ESCCLK,8,3           ## @PRCMU_DSI0ESCCLK
	.comm	_PRCMU_DSI2ESCCLK,8,3           ## @PRCMU_DSI2ESCCLK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_prcmu_set_clock_rate           ; -- Begin function prcmu_set_clock_rate
	.p2align	2
_prcmu_set_clock_rate:                  ; @prcmu_set_clock_rate
	.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, _PRCMU_NUM_REG_CLOCKS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PRCMU_NUM_REG_CLOCKS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x0
	b.le	LBB0_3
; %bb.1:
	bl	_set_clock_rate
LBB0_2:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_3:
Lloh3:
	adrp	x8, _PRCMU_ARMSS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PRCMU_ARMSS@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x8, x0
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_set_armss_rate
LBB0_5:
Lloh6:
	adrp	x8, _PRCMU_PLLDSI@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PRCMU_PLLDSI@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x8, x0
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_set_plldsi_rate
LBB0_7:
Lloh9:
	adrp	x8, _PRCMU_DSI0CLK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PRCMU_DSI0CLK@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
Lloh12:
	adrp	x9, _PRCMU_DSI1CLK@GOTPAGE
Lloh13:
	ldr	x9, [x9, _PRCMU_DSI1CLK@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x0
	ccmp	x9, x0, #4, ne
	b.ne	LBB0_9
; %bb.8:
	sub	x0, x0, x8
	bl	_set_dsiclk_rate
	b	LBB0_2
LBB0_9:
Lloh15:
	adrp	x8, _PRCMU_DSI0ESCCLK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PRCMU_DSI0ESCCLK@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
Lloh18:
	adrp	x9, _PRCMU_DSI2ESCCLK@GOTPAGE
Lloh19:
	ldr	x9, [x9, _PRCMU_DSI2ESCCLK@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x8, x0
	ccmp	x9, x0, #8, le
	b.lt	LBB0_2
; %bb.10:
	sub	x0, x0, x8
	bl	_set_dsiescclk_rate
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_PRCMU_NUM_REG_CLOCKS,8,3       ; @PRCMU_NUM_REG_CLOCKS
	.comm	_PRCMU_ARMSS,8,3                ; @PRCMU_ARMSS
	.comm	_PRCMU_PLLDSI,8,3               ; @PRCMU_PLLDSI
	.comm	_PRCMU_DSI0CLK,8,3              ; @PRCMU_DSI0CLK
	.comm	_PRCMU_DSI1CLK,8,3              ; @PRCMU_DSI1CLK
	.comm	_PRCMU_DSI0ESCCLK,8,3           ; @PRCMU_DSI0ESCCLK
	.comm	_PRCMU_DSI2ESCCLK,8,3           ; @PRCMU_DSI2ESCCLK
.subsections_via_symbols
