	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_db8500_prcmu_set_display_clocks ## -- Begin function db8500_prcmu_set_display_clocks
	.p2align	4, 0x90
_db8500_prcmu_set_display_clocks:       ## @db8500_prcmu_set_display_clocks
	.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	_clk_mgt_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock_irqsave
	movq	_PRCM_SEM@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_readl
	movq	_PRCM_SEM_PRCM_SEM@GOTPCREL(%rip), %rbx
	testl	%eax, (%rbx)
	je	LBB0_3
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_cpu_relax
	movq	(%r14), %rdi
	callq	_readl
	testl	%eax, (%rbx)
	jne	LBB0_1
LBB0_3:
	movq	_PRCMU_DSI_CLOCK_SETTING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_prcmu_base@GOTPCREL(%rip), %rbx
	movq	_PRCM_HDMICLK_MGT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	callq	_writel
	movq	_PRCMU_DSI_LP_CLOCK_SETTING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PRCM_TVCLK_MGT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	callq	_writel
	movq	_PRCMU_DPI_CLOCK_SETTING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PRCM_LCDCLK_MGT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	callq	_writel
	movq	(%r14), %rsi
	xorl	%edi, %edi
	callq	_writel
	movq	_clk_mgt_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock_irqrestore
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_clk_mgt_lock,4,2               ## @clk_mgt_lock
	.comm	_PRCM_SEM,8,3                   ## @PRCM_SEM
	.comm	_PRCM_SEM_PRCM_SEM,4,2          ## @PRCM_SEM_PRCM_SEM
	.comm	_PRCMU_DSI_CLOCK_SETTING,4,2    ## @PRCMU_DSI_CLOCK_SETTING
	.comm	_prcmu_base,8,3                 ## @prcmu_base
	.comm	_PRCM_HDMICLK_MGT,8,3           ## @PRCM_HDMICLK_MGT
	.comm	_PRCMU_DSI_LP_CLOCK_SETTING,4,2 ## @PRCMU_DSI_LP_CLOCK_SETTING
	.comm	_PRCM_TVCLK_MGT,8,3             ## @PRCM_TVCLK_MGT
	.comm	_PRCMU_DPI_CLOCK_SETTING,4,2    ## @PRCMU_DPI_CLOCK_SETTING
	.comm	_PRCM_LCDCLK_MGT,8,3            ## @PRCM_LCDCLK_MGT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_db8500_prcmu_set_display_clocks ; -- Begin function db8500_prcmu_set_display_clocks
	.p2align	2
_db8500_prcmu_set_display_clocks:       ; @db8500_prcmu_set_display_clocks
	.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	x0, _clk_mgt_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _clk_mgt_lock@GOTPAGEOFF]
	bl	_spin_lock_irqsave
Lloh2:
	adrp	x19, _PRCM_SEM@GOTPAGE
Lloh3:
	ldr	x19, [x19, _PRCM_SEM@GOTPAGEOFF]
	ldr	x0, [x19]
	bl	_readl
Lloh4:
	adrp	x20, _PRCM_SEM_PRCM_SEM@GOTPAGE
Lloh5:
	ldr	x20, [x20, _PRCM_SEM_PRCM_SEM@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x20]
	tst	w8, w0
	b.eq	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	bl	_cpu_relax
	ldr	x0, [x19]
	bl	_readl
	b	LBB0_1
LBB0_3:
Lloh6:
	adrp	x8, _PRCMU_DSI_CLOCK_SETTING@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PRCMU_DSI_CLOCK_SETTING@GOTPAGEOFF]
Lloh8:
	adrp	x20, _prcmu_base@GOTPAGE
Lloh9:
	ldr	x20, [x20, _prcmu_base@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldr	x8, [x20]
Lloh11:
	adrp	x9, _PRCM_HDMICLK_MGT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _PRCM_HDMICLK_MGT@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
Lloh14:
	adrp	x8, _PRCMU_DSI_LP_CLOCK_SETTING@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PRCMU_DSI_LP_CLOCK_SETTING@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	ldr	x8, [x20]
Lloh17:
	adrp	x9, _PRCM_TVCLK_MGT@GOTPAGE
Lloh18:
	ldr	x9, [x9, _PRCM_TVCLK_MGT@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
Lloh20:
	adrp	x8, _PRCMU_DPI_CLOCK_SETTING@GOTPAGE
Lloh21:
	ldr	x8, [x8, _PRCMU_DPI_CLOCK_SETTING@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	ldr	x8, [x20]
Lloh23:
	adrp	x9, _PRCM_LCDCLK_MGT@GOTPAGE
Lloh24:
	ldr	x9, [x9, _PRCM_LCDCLK_MGT@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	x1, [x19]
	mov	w0, #0
	bl	_writel
Lloh26:
	adrp	x0, _clk_mgt_lock@GOTPAGE
Lloh27:
	ldr	x0, [x0, _clk_mgt_lock@GOTPAGEOFF]
	bl	_spin_unlock_irqrestore
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_clk_mgt_lock,4,2               ; @clk_mgt_lock
	.comm	_PRCM_SEM,8,3                   ; @PRCM_SEM
	.comm	_PRCM_SEM_PRCM_SEM,4,2          ; @PRCM_SEM_PRCM_SEM
	.comm	_PRCMU_DSI_CLOCK_SETTING,4,2    ; @PRCMU_DSI_CLOCK_SETTING
	.comm	_prcmu_base,8,3                 ; @prcmu_base
	.comm	_PRCM_HDMICLK_MGT,8,3           ; @PRCM_HDMICLK_MGT
	.comm	_PRCMU_DSI_LP_CLOCK_SETTING,4,2 ; @PRCMU_DSI_LP_CLOCK_SETTING
	.comm	_PRCM_TVCLK_MGT,8,3             ; @PRCM_TVCLK_MGT
	.comm	_PRCMU_DPI_CLOCK_SETTING,4,2    ; @PRCMU_DPI_CLOCK_SETTING
	.comm	_PRCM_LCDCLK_MGT,8,3            ; @PRCM_LCDCLK_MGT
.subsections_via_symbols
