	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dce_crtc_switch_to_clk_src     ## -- Begin function dce_crtc_switch_to_clk_src
	.p2align	4, 0x90
_dce_crtc_switch_to_clk_src:            ## @dce_crtc_switch_to_clk_src
	.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
	movl	%edx, %eax
	movq	(%rsi), %rdx
	movq	_CLOCK_SOURCE_ID_DP_DTO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdx
	je	LBB0_2
## %bb.1:
	cmpq	$0, 8(%rsi)
	je	LBB0_3
LBB0_2:
	movq	_PIXEL_RATE_CNTL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, %eax
	movl	(%rcx,%rax,4), %edi
	movq	_DP_DTO0_ENABLE@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %esi
	movl	$1, %edx
LBB0_9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_REG_UPDATE                     ## TAILCALL
LBB0_3:
	movq	_CLOCK_SOURCE_COMBO_PHY_PLL0@GOTPCREL(%rip), %rcx
	movq	%rdx, %r8
	subq	(%rcx), %r8
	jge	LBB0_4
## %bb.5:
	movq	_CLOCK_SOURCE_ID_PLL2@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdx
	jle	LBB0_6
## %bb.10:
	leaq	L_.str(%rip), %rdi
	movq	%rdx, %rsi
	movl	%eax, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_DC_ERR                         ## TAILCALL
LBB0_4:
	movq	_PHYPLL_PIXEL_RATE_CNTL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, %ebx
	movl	(%rcx,%rbx,4), %edi
	movq	_PHYPLL_PIXEL_RATE_SOURCE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PIXEL_RATE_PLL_SOURCE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r8, %rdx
	xorl	%r8d, %r8d
	callq	_REG_UPDATE_2
	movq	_PIXEL_RATE_CNTL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %edi
	movq	_DP_DTO0_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	jmp	LBB0_9
LBB0_6:
	movq	_CLOCK_SOURCE_ID_PLL0@GOTPCREL(%rip), %rcx
	subq	(%rcx), %rdx
	movq	_PIXEL_RATE_CNTL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, %ebx
	movl	(%rcx,%rbx,4), %edi
	movq	_PIXEL_RATE_SOURCE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DP_DTO0_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%r8d, %r8d
	callq	_REG_UPDATE_2
	movq	_PHYPLL_PIXEL_RATE_CNTL@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_REG
	testq	%rax, %rax
	je	LBB0_11
## %bb.7:
	movq	(%r14), %rax
	movl	(%rax,%rbx,4), %edi
	movq	_PIXEL_RATE_PLL_SOURCE@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_11:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CLOCK_SOURCE_ID_DP_DTO,8,3     ## @CLOCK_SOURCE_ID_DP_DTO
	.comm	_PIXEL_RATE_CNTL,8,3            ## @PIXEL_RATE_CNTL
	.comm	_DP_DTO0_ENABLE,4,2             ## @DP_DTO0_ENABLE
	.comm	_CLOCK_SOURCE_COMBO_PHY_PLL0,8,3 ## @CLOCK_SOURCE_COMBO_PHY_PLL0
	.comm	_PHYPLL_PIXEL_RATE_CNTL,8,3     ## @PHYPLL_PIXEL_RATE_CNTL
	.comm	_PHYPLL_PIXEL_RATE_SOURCE,4,2   ## @PHYPLL_PIXEL_RATE_SOURCE
	.comm	_PIXEL_RATE_PLL_SOURCE,4,2      ## @PIXEL_RATE_PLL_SOURCE
	.comm	_CLOCK_SOURCE_ID_PLL2,8,3       ## @CLOCK_SOURCE_ID_PLL2
	.comm	_CLOCK_SOURCE_ID_PLL0,8,3       ## @CLOCK_SOURCE_ID_PLL0
	.comm	_PIXEL_RATE_SOURCE,4,2          ## @PIXEL_RATE_SOURCE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown clock source. clk_src id: %d, TG_inst: %d"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dce_crtc_switch_to_clk_src     ; -- Begin function dce_crtc_switch_to_clk_src
	.p2align	2
_dce_crtc_switch_to_clk_src:            ; @dce_crtc_switch_to_clk_src
	.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	x8, x1
	ldr	x1, [x1]
Lloh0:
	adrp	x9, _CLOCK_SOURCE_ID_DP_DTO@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CLOCK_SOURCE_ID_DP_DTO@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x1, x9
	b.eq	LBB0_2
; %bb.1:
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_5
LBB0_2:
Lloh3:
	adrp	x8, _PIXEL_RATE_CNTL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PIXEL_RATE_CNTL@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	w0, [x8, w2, uxtw #2]
Lloh6:
	adrp	x8, _DP_DTO0_ENABLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DP_DTO0_ENABLE@GOTPAGEOFF]
LBB0_3:
	ldr	w1, [x8]
	mov	w2, #1
LBB0_4:
	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	_REG_UPDATE
LBB0_5:
Lloh8:
	adrp	x8, _CLOCK_SOURCE_COMBO_PHY_PLL0@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CLOCK_SOURCE_COMBO_PHY_PLL0@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	subs	x8, x1, x8
	b.ge	LBB0_8
; %bb.6:
Lloh11:
	adrp	x8, _CLOCK_SOURCE_ID_PLL2@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CLOCK_SOURCE_ID_PLL2@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x1, x8
	b.le	LBB0_9
; %bb.7:
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	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	_DC_ERR
LBB0_8:
Lloh16:
	adrp	x9, _PHYPLL_PIXEL_RATE_CNTL@GOTPAGE
Lloh17:
	ldr	x9, [x9, _PHYPLL_PIXEL_RATE_CNTL@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	mov	w10, w2
	lsl	x19, x10, #2
	ldr	w0, [x9, x19]
Lloh19:
	adrp	x9, _PHYPLL_PIXEL_RATE_SOURCE@GOTPAGE
Lloh20:
	ldr	x9, [x9, _PHYPLL_PIXEL_RATE_SOURCE@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x9]
Lloh22:
	adrp	x9, _PIXEL_RATE_PLL_SOURCE@GOTPAGE
Lloh23:
	ldr	x9, [x9, _PIXEL_RATE_PLL_SOURCE@GOTPAGEOFF]
Lloh24:
	ldr	w3, [x9]
	mov	x2, x8
	mov	w4, #0
	bl	_REG_UPDATE_2
Lloh25:
	adrp	x8, _PIXEL_RATE_CNTL@GOTPAGE
Lloh26:
	ldr	x8, [x8, _PIXEL_RATE_CNTL@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	ldr	w0, [x8, x19]
Lloh28:
	adrp	x8, _DP_DTO0_ENABLE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _DP_DTO0_ENABLE@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	mov	w2, #0
	b	LBB0_4
LBB0_9:
Lloh31:
	adrp	x8, _CLOCK_SOURCE_ID_PLL0@GOTPAGE
Lloh32:
	ldr	x8, [x8, _CLOCK_SOURCE_ID_PLL0@GOTPAGEOFF]
Lloh33:
	ldr	x8, [x8]
Lloh34:
	adrp	x9, _PIXEL_RATE_CNTL@GOTPAGE
Lloh35:
	ldr	x9, [x9, _PIXEL_RATE_CNTL@GOTPAGEOFF]
	sub	x8, x1, x8
Lloh36:
	ldr	x9, [x9]
	mov	w19, w2
	lsl	x21, x19, #2
	ldr	w0, [x9, x21]
Lloh37:
	adrp	x9, _PIXEL_RATE_SOURCE@GOTPAGE
Lloh38:
	ldr	x9, [x9, _PIXEL_RATE_SOURCE@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x9]
Lloh40:
	adrp	x9, _DP_DTO0_ENABLE@GOTPAGE
Lloh41:
	ldr	x9, [x9, _DP_DTO0_ENABLE@GOTPAGEOFF]
Lloh42:
	ldr	w3, [x9]
	mov	x2, x8
	mov	w4, #0
	bl	_REG_UPDATE_2
Lloh43:
	adrp	x20, _PHYPLL_PIXEL_RATE_CNTL@GOTPAGE
Lloh44:
	ldr	x20, [x20, _PHYPLL_PIXEL_RATE_CNTL@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	w0, [x8, x21]
	bl	_REG
	cbz	x0, LBB0_11
; %bb.10:
	ldr	x8, [x20]
	ldr	w0, [x8, x19, lsl #2]
Lloh45:
	adrp	x8, _PIXEL_RATE_PLL_SOURCE@GOTPAGE
Lloh46:
	ldr	x8, [x8, _PIXEL_RATE_PLL_SOURCE@GOTPAGEOFF]
	b	LBB0_3
LBB0_11:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_CLOCK_SOURCE_ID_DP_DTO,8,3     ; @CLOCK_SOURCE_ID_DP_DTO
	.comm	_PIXEL_RATE_CNTL,8,3            ; @PIXEL_RATE_CNTL
	.comm	_DP_DTO0_ENABLE,4,2             ; @DP_DTO0_ENABLE
	.comm	_CLOCK_SOURCE_COMBO_PHY_PLL0,8,3 ; @CLOCK_SOURCE_COMBO_PHY_PLL0
	.comm	_PHYPLL_PIXEL_RATE_CNTL,8,3     ; @PHYPLL_PIXEL_RATE_CNTL
	.comm	_PHYPLL_PIXEL_RATE_SOURCE,4,2   ; @PHYPLL_PIXEL_RATE_SOURCE
	.comm	_PIXEL_RATE_PLL_SOURCE,4,2      ; @PIXEL_RATE_PLL_SOURCE
	.comm	_CLOCK_SOURCE_ID_PLL2,8,3       ; @CLOCK_SOURCE_ID_PLL2
	.comm	_CLOCK_SOURCE_ID_PLL0,8,3       ; @CLOCK_SOURCE_ID_PLL0
	.comm	_PIXEL_RATE_SOURCE,4,2          ; @PIXEL_RATE_SOURCE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown clock source. clk_src id: %d, TG_inst: %d"

.subsections_via_symbols
