	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_db8500_prcmu_request_clock     ## -- Begin function db8500_prcmu_request_clock
	.p2align	4, 0x90
_db8500_prcmu_request_clock:            ## @db8500_prcmu_request_clock
	.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_SGACLK@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	jne	LBB0_1
## %bb.12:
	popq	%rbp
	jmp	_request_sga_clock              ## TAILCALL
LBB0_1:
	movq	_PRCMU_NUM_REG_CLOCKS@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	jle	LBB0_2
## %bb.13:
	popq	%rbp
	jmp	_request_clock                  ## TAILCALL
LBB0_2:
	movq	_PRCMU_TIMCLK@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	jne	LBB0_3
## %bb.14:
	movl	%esi, %edi
	popq	%rbp
	jmp	_request_timclk                 ## TAILCALL
LBB0_3:
	movq	_PRCMU_DSI0CLK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rdi, %rax
	je	LBB0_15
## %bb.4:
	movq	_PRCMU_DSI1CLK@GOTPCREL(%rip), %rcx
	cmpq	%rdi, (%rcx)
	je	LBB0_15
## %bb.5:
	movq	_PRCMU_DSI0ESCCLK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rdi, %rax
	jg	LBB0_7
## %bb.6:
	movq	_PRCMU_DSI2ESCCLK@GOTPCREL(%rip), %rcx
	cmpq	%rdi, (%rcx)
	jl	LBB0_7
## %bb.16:
	subq	%rax, %rdi
	popq	%rbp
	jmp	_request_dsiescclk              ## TAILCALL
LBB0_15:
	subq	%rax, %rdi
	popq	%rbp
	jmp	_request_dsiclk                 ## TAILCALL
LBB0_7:
	movq	_PRCMU_PLLDSI@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	jne	LBB0_8
## %bb.17:
	movl	%esi, %edi
	popq	%rbp
	jmp	_request_plldsi                 ## TAILCALL
LBB0_8:
	movq	_PRCMU_SYSCLK@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	jne	LBB0_9
## %bb.18:
	movl	%esi, %edi
	popq	%rbp
	jmp	_request_sysclk                 ## TAILCALL
LBB0_9:
	movq	_PRCMU_PLLSOC0@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	je	LBB0_19
## %bb.10:
	movq	_PRCMU_PLLSOC1@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	je	LBB0_19
## %bb.11:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_19:
	popq	%rbp
	jmp	_request_pll                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PRCMU_SGACLK,8,3               ## @PRCMU_SGACLK
	.comm	_PRCMU_NUM_REG_CLOCKS,8,3       ## @PRCMU_NUM_REG_CLOCKS
	.comm	_PRCMU_TIMCLK,8,3               ## @PRCMU_TIMCLK
	.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
	.comm	_PRCMU_PLLDSI,8,3               ## @PRCMU_PLLDSI
	.comm	_PRCMU_SYSCLK,8,3               ## @PRCMU_SYSCLK
	.comm	_PRCMU_PLLSOC0,8,3              ## @PRCMU_PLLSOC0
	.comm	_PRCMU_PLLSOC1,8,3              ## @PRCMU_PLLSOC1
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_db8500_prcmu_request_clock     ; -- Begin function db8500_prcmu_request_clock
	.p2align	2
_db8500_prcmu_request_clock:            ; @db8500_prcmu_request_clock
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _PRCMU_SGACLK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PRCMU_SGACLK@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x0
	b.ne	LBB0_2
; %bb.1:
	b	_request_sga_clock
LBB0_2:
Lloh3:
	adrp	x8, _PRCMU_NUM_REG_CLOCKS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PRCMU_NUM_REG_CLOCKS@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x8, x0
	b.le	LBB0_4
; %bb.3:
	b	_request_clock
LBB0_4:
Lloh6:
	adrp	x8, _PRCMU_TIMCLK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PRCMU_TIMCLK@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x8, x0
	b.ne	LBB0_6
; %bb.5:
	mov	x0, x1
	b	_request_timclk
LBB0_6:
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_8
; %bb.7:
	sub	x0, x0, x8
	b	_request_dsiclk
LBB0_8:
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.ge	LBB0_11
; %bb.9:
Lloh21:
	adrp	x8, _PRCMU_PLLDSI@GOTPAGE
Lloh22:
	ldr	x8, [x8, _PRCMU_PLLDSI@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	cmp	x8, x0
	b.ne	LBB0_12
; %bb.10:
	mov	x0, x1
	b	_request_plldsi
LBB0_11:
	sub	x0, x0, x8
	b	_request_dsiescclk
LBB0_12:
Lloh24:
	adrp	x8, _PRCMU_SYSCLK@GOTPAGE
Lloh25:
	ldr	x8, [x8, _PRCMU_SYSCLK@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	cmp	x8, x0
	b.ne	LBB0_14
; %bb.13:
	mov	x0, x1
	b	_request_sysclk
LBB0_14:
Lloh27:
	adrp	x8, _PRCMU_PLLSOC0@GOTPAGE
Lloh28:
	ldr	x8, [x8, _PRCMU_PLLSOC0@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
	cmp	x8, x0
	b.eq	LBB0_17
; %bb.15:
Lloh30:
	adrp	x8, _PRCMU_PLLSOC1@GOTPAGE
Lloh31:
	ldr	x8, [x8, _PRCMU_PLLSOC1@GOTPAGEOFF]
Lloh32:
	ldr	x8, [x8]
	cmp	x8, x0
	b.eq	LBB0_17
; %bb.16:
Lloh33:
	adrp	x8, _EINVAL@GOTPAGE
Lloh34:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_17:
	b	_request_pll
	.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
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_PRCMU_SGACLK,8,3               ; @PRCMU_SGACLK
	.comm	_PRCMU_NUM_REG_CLOCKS,8,3       ; @PRCMU_NUM_REG_CLOCKS
	.comm	_PRCMU_TIMCLK,8,3               ; @PRCMU_TIMCLK
	.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
	.comm	_PRCMU_PLLDSI,8,3               ; @PRCMU_PLLDSI
	.comm	_PRCMU_SYSCLK,8,3               ; @PRCMU_SYSCLK
	.comm	_PRCMU_PLLSOC0,8,3              ; @PRCMU_PLLSOC0
	.comm	_PRCMU_PLLSOC1,8,3              ; @PRCMU_PLLSOC1
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
