	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_prcmu_clock_rate               ## -- Begin function prcmu_clock_rate
	.p2align	4, 0x90
_prcmu_clock_rate:                      ## @prcmu_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
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_PRCMU_NUM_REG_CLOCKS@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	jle	LBB0_2
## %bb.1:
	callq	_clock_rate
	cltq
	jmp	LBB0_21
LBB0_2:
	movq	_PRCMU_TIMCLK@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	jne	LBB0_4
## %bb.3:
	movq	_ROOT_CLOCK_RATE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	15(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$4, %ecx
	movslq	%ecx, %rax
	jmp	LBB0_21
LBB0_4:
	movq	_PRCMU_SYSCLK@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	jne	LBB0_6
## %bb.5:
	movq	_ROOT_CLOCK_RATE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
LBB0_21:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_6:
	movq	_PRCMU_PLLSOC0@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	jne	LBB0_10
## %bb.7:
	movq	_PRCM_PLLSOC0_FREQ@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_10:
	movq	_PRCMU_PLLSOC1@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	jne	LBB0_12
## %bb.11:
	movq	_PRCM_PLLSOC1_FREQ@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_12:
	movq	_PRCMU_ARMSS@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	jne	LBB0_13
## %bb.22:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_armss_rate                     ## TAILCALL
LBB0_13:
	movq	_PRCMU_PLLDDR@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	jne	LBB0_15
## %bb.14:
	movq	_PRCM_PLLDDR_FREQ@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %edi
	movq	_ROOT_CLOCK_RATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PLL_RAW@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_pll_rate                       ## TAILCALL
LBB0_15:
	movq	_PRCMU_PLLDSI@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	jne	LBB0_17
## %bb.16:
	movq	_PRCM_PLLDSI_FREQ@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_PRCMU_HDMICLK@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_clock_rate
	movq	_PLL_RAW@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%ebx, %edi
	movl	%eax, %esi
	jmp	LBB0_9
LBB0_17:
	movq	_PRCMU_DSI0CLK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rdi, %rax
	je	LBB0_23
## %bb.18:
	movq	_PRCMU_DSI1CLK@GOTPCREL(%rip), %rcx
	cmpq	%rdi, (%rcx)
	je	LBB0_23
## %bb.19:
	movq	_PRCMU_DSI0ESCCLK@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	xorl	%eax, %eax
	cmpq	%rdi, %rcx
	jg	LBB0_21
## %bb.20:
	movq	_PRCMU_DSI2ESCCLK@GOTPCREL(%rip), %rdx
	cmpq	%rdi, (%rdx)
	jl	LBB0_21
## %bb.24:
	subq	%rcx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_dsiescclk_rate                 ## TAILCALL
LBB0_23:
	subq	%rax, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_dsiclk_rate                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PRCMU_NUM_REG_CLOCKS,8,3       ## @PRCMU_NUM_REG_CLOCKS
	.comm	_PRCMU_TIMCLK,8,3               ## @PRCMU_TIMCLK
	.comm	_ROOT_CLOCK_RATE,4,2            ## @ROOT_CLOCK_RATE
	.comm	_PRCMU_SYSCLK,8,3               ## @PRCMU_SYSCLK
	.comm	_PRCMU_PLLSOC0,8,3              ## @PRCMU_PLLSOC0
	.comm	_PRCM_PLLSOC0_FREQ,4,2          ## @PRCM_PLLSOC0_FREQ
	.comm	_PLL_RAW,4,2                    ## @PLL_RAW
	.comm	_PRCMU_PLLSOC1,8,3              ## @PRCMU_PLLSOC1
	.comm	_PRCM_PLLSOC1_FREQ,4,2          ## @PRCM_PLLSOC1_FREQ
	.comm	_PRCMU_ARMSS,8,3                ## @PRCMU_ARMSS
	.comm	_PRCMU_PLLDDR,8,3               ## @PRCMU_PLLDDR
	.comm	_PRCM_PLLDDR_FREQ,4,2           ## @PRCM_PLLDDR_FREQ
	.comm	_PRCMU_PLLDSI,8,3               ## @PRCMU_PLLDSI
	.comm	_PRCM_PLLDSI_FREQ,4,2           ## @PRCM_PLLDSI_FREQ
	.comm	_PRCMU_HDMICLK,8,3              ## @PRCMU_HDMICLK
	.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_clock_rate               ; -- Begin function prcmu_clock_rate
	.p2align	2
_prcmu_clock_rate:                      ; @prcmu_clock_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
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_2
; %bb.1:
	bl	_clock_rate
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	b	LBB0_6
LBB0_2:
Lloh3:
	adrp	x8, _PRCMU_TIMCLK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PRCMU_TIMCLK@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x8, x0
	b.ne	LBB0_4
; %bb.3:
Lloh6:
	adrp	x8, _ROOT_CLOCK_RATE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ROOT_CLOCK_RATE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	add	w9, w8, #15
	cmp	w8, #0
	csel	w8, w9, w8, lt
	sbfx	x8, x8, #4, #28
	b	LBB0_6
LBB0_4:
Lloh9:
	adrp	x8, _PRCMU_SYSCLK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PRCMU_SYSCLK@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x8, x0
	b.ne	LBB0_7
; %bb.5:
Lloh12:
	adrp	x8, _ROOT_CLOCK_RATE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ROOT_CLOCK_RATE@GOTPAGEOFF]
Lloh14:
	ldrsw	x8, [x8]
LBB0_6:
	mov	x0, x8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
Lloh15:
	adrp	x8, _PRCMU_PLLSOC0@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PRCMU_PLLSOC0@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	cmp	x8, x0
	b.ne	LBB0_9
; %bb.8:
Lloh18:
	adrp	x8, _PRCM_PLLSOC0_FREQ@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PRCM_PLLSOC0_FREQ@GOTPAGEOFF]
	b	LBB0_15
LBB0_9:
Lloh20:
	adrp	x8, _PRCMU_PLLSOC1@GOTPAGE
Lloh21:
	ldr	x8, [x8, _PRCMU_PLLSOC1@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	cmp	x8, x0
	b.ne	LBB0_11
; %bb.10:
Lloh23:
	adrp	x8, _PRCM_PLLSOC1_FREQ@GOTPAGE
Lloh24:
	ldr	x8, [x8, _PRCM_PLLSOC1_FREQ@GOTPAGEOFF]
	b	LBB0_15
LBB0_11:
Lloh25:
	adrp	x8, _PRCMU_ARMSS@GOTPAGE
Lloh26:
	ldr	x8, [x8, _PRCMU_ARMSS@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	cmp	x8, x0
	b.ne	LBB0_13
; %bb.12:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_armss_rate
LBB0_13:
Lloh28:
	adrp	x8, _PRCMU_PLLDDR@GOTPAGE
Lloh29:
	ldr	x8, [x8, _PRCMU_PLLDDR@GOTPAGEOFF]
Lloh30:
	ldr	x8, [x8]
	cmp	x8, x0
	b.ne	LBB0_17
; %bb.14:
Lloh31:
	adrp	x8, _PRCM_PLLDDR_FREQ@GOTPAGE
Lloh32:
	ldr	x8, [x8, _PRCM_PLLDDR_FREQ@GOTPAGEOFF]
LBB0_15:
	ldr	w0, [x8]
Lloh33:
	adrp	x8, _ROOT_CLOCK_RATE@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ROOT_CLOCK_RATE@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
Lloh36:
	adrp	x8, _PLL_RAW@GOTPAGE
Lloh37:
	ldr	x8, [x8, _PLL_RAW@GOTPAGEOFF]
Lloh38:
	ldr	w2, [x8]
LBB0_16:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_pll_rate
LBB0_17:
Lloh39:
	adrp	x8, _PRCMU_PLLDSI@GOTPAGE
Lloh40:
	ldr	x8, [x8, _PRCMU_PLLDSI@GOTPAGEOFF]
Lloh41:
	ldr	x8, [x8]
	cmp	x8, x0
	b.ne	LBB0_19
; %bb.18:
Lloh42:
	adrp	x8, _PRCM_PLLDSI_FREQ@GOTPAGE
Lloh43:
	ldr	x8, [x8, _PRCM_PLLDSI_FREQ@GOTPAGEOFF]
Lloh44:
	ldr	w19, [x8]
Lloh45:
	adrp	x8, _PRCMU_HDMICLK@GOTPAGE
Lloh46:
	ldr	x8, [x8, _PRCMU_HDMICLK@GOTPAGEOFF]
Lloh47:
	ldr	x0, [x8]
	bl	_clock_rate
	mov	x1, x0
Lloh48:
	adrp	x8, _PLL_RAW@GOTPAGE
Lloh49:
	ldr	x8, [x8, _PLL_RAW@GOTPAGEOFF]
Lloh50:
	ldr	w2, [x8]
	mov	x0, x19
	b	LBB0_16
LBB0_19:
Lloh51:
	adrp	x8, _PRCMU_DSI0CLK@GOTPAGE
Lloh52:
	ldr	x8, [x8, _PRCMU_DSI0CLK@GOTPAGEOFF]
Lloh53:
	ldr	x8, [x8]
Lloh54:
	adrp	x9, _PRCMU_DSI1CLK@GOTPAGE
Lloh55:
	ldr	x9, [x9, _PRCMU_DSI1CLK@GOTPAGEOFF]
Lloh56:
	ldr	x9, [x9]
	cmp	x8, x0
	ccmp	x9, x0, #4, ne
	b.ne	LBB0_21
; %bb.20:
	sub	x0, x0, x8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dsiclk_rate
LBB0_21:
	mov	x8, #0
Lloh57:
	adrp	x9, _PRCMU_DSI0ESCCLK@GOTPAGE
Lloh58:
	ldr	x9, [x9, _PRCMU_DSI0ESCCLK@GOTPAGEOFF]
Lloh59:
	ldr	x9, [x9]
	cmp	x9, x0
	b.gt	LBB0_6
; %bb.22:
Lloh60:
	adrp	x10, _PRCMU_DSI2ESCCLK@GOTPAGE
Lloh61:
	ldr	x10, [x10, _PRCMU_DSI2ESCCLK@GOTPAGEOFF]
Lloh62:
	ldr	x10, [x10]
	cmp	x10, x0
	b.lt	LBB0_6
; %bb.23:
	sub	x0, x0, x9
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dsiescclk_rate
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.cfi_endproc
                                        ; -- End function
	.comm	_PRCMU_NUM_REG_CLOCKS,8,3       ; @PRCMU_NUM_REG_CLOCKS
	.comm	_PRCMU_TIMCLK,8,3               ; @PRCMU_TIMCLK
	.comm	_ROOT_CLOCK_RATE,4,2            ; @ROOT_CLOCK_RATE
	.comm	_PRCMU_SYSCLK,8,3               ; @PRCMU_SYSCLK
	.comm	_PRCMU_PLLSOC0,8,3              ; @PRCMU_PLLSOC0
	.comm	_PRCM_PLLSOC0_FREQ,4,2          ; @PRCM_PLLSOC0_FREQ
	.comm	_PLL_RAW,4,2                    ; @PLL_RAW
	.comm	_PRCMU_PLLSOC1,8,3              ; @PRCMU_PLLSOC1
	.comm	_PRCM_PLLSOC1_FREQ,4,2          ; @PRCM_PLLSOC1_FREQ
	.comm	_PRCMU_ARMSS,8,3                ; @PRCMU_ARMSS
	.comm	_PRCMU_PLLDDR,8,3               ; @PRCMU_PLLDDR
	.comm	_PRCM_PLLDDR_FREQ,4,2           ; @PRCM_PLLDDR_FREQ
	.comm	_PRCMU_PLLDSI,8,3               ; @PRCMU_PLLDSI
	.comm	_PRCM_PLLDSI_FREQ,4,2           ; @PRCM_PLLDSI_FREQ
	.comm	_PRCMU_HDMICLK,8,3              ; @PRCMU_HDMICLK
	.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
