	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cnl_get_dpll
_cnl_get_dpll:                          ## @cnl_get_dpll
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r12
	callq	_intel_atomic_get_new_crtc_state
	movq	%rax, %rbx
	movq	%rax, %r14
	movq	_INTEL_OUTPUT_HDMI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_intel_crtc_has_type
	movq	%r14, %rdi
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	callq	_cnl_ddi_hdmi_pll_dividers
	testl	%eax, %eax
	jne	LBB0_8
## %bb.2:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_3
LBB0_4:
	callq	_intel_crtc_has_dp_encoder
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	%r14, %rdi
	callq	_cnl_ddi_dp_set_dpll_hw_state
	testl	%eax, %eax
	je	LBB0_6
LBB0_8:
	addq	$8, %rbx
	movq	_DPLL_ID_SKL_DPLL0@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_DPLL_ID_SKL_DPLL2@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_intel_find_shared_dpll
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	%rax, %r13
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%rax, %rdx
	movq	%rbx, %rcx
	callq	_intel_reference_shared_dpll
	movq	%r13, (%r14)
	movl	$1, %ebx
	jmp	LBB0_11
LBB0_9:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_3
LBB0_7:
	movl	12(%r14), %esi
	leaq	L_.str.2(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	jmp	LBB0_11
LBB0_6:
	leaq	L_.str.1(%rip), %rdi
LBB0_3:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INTEL_OUTPUT_HDMI,4,2          ## @INTEL_OUTPUT_HDMI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not get HDMI pll dividers.\n"

L_.str.1:                               ## @.str.1
	.asciz	"Could not set DP dpll HW state.\n"

L_.str.2:                               ## @.str.2
	.asciz	"Skip DPLL setup for output_types 0x%x\n"

	.comm	_DPLL_ID_SKL_DPLL0,4,2          ## @DPLL_ID_SKL_DPLL0
	.comm	_DPLL_ID_SKL_DPLL2,4,2          ## @DPLL_ID_SKL_DPLL2
L_.str.3:                               ## @.str.3
	.asciz	"No PLL selected\n"

	.no_dead_strip	_cnl_get_dpll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cnl_get_dpll
_cnl_get_dpll:                          ; @cnl_get_dpll
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x21, x0
	bl	_intel_atomic_get_new_crtc_state
	mov	x20, x0
Lloh0:
	adrp	x8, _INTEL_OUTPUT_HDMI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INTEL_OUTPUT_HDMI@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_intel_crtc_has_type
	cbz	x0, LBB0_3
; %bb.1:
	mov	x0, x20
	bl	_cnl_ddi_hdmi_pll_dividers
	cbnz	w0, LBB0_5
; %bb.2:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_10
LBB0_3:
	mov	x0, x20
	bl	_intel_crtc_has_dp_encoder
	cbz	x0, LBB0_8
; %bb.4:
	mov	x0, x20
	bl	_cnl_ddi_dp_set_dpll_hw_state
	cbz	w0, LBB0_9
LBB0_5:
	add	x22, x20, #8
Lloh5:
	adrp	x8, _DPLL_ID_SKL_DPLL0@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DPLL_ID_SKL_DPLL0@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
Lloh8:
	adrp	x8, _DPLL_ID_SKL_DPLL2@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DPLL_ID_SKL_DPLL2@GOTPAGEOFF]
Lloh10:
	ldr	w4, [x8]
	mov	x0, x21
	mov	x1, x19
	mov	x2, x22
	bl	_intel_find_shared_dpll
	cbz	x0, LBB0_7
; %bb.6:
	mov	x23, x0
	mov	x0, x21
	mov	x1, x19
	mov	x2, x23
	mov	x3, x22
	bl	_intel_reference_shared_dpll
	str	x23, [x20]
	mov	w0, #1
	b	LBB0_11
LBB0_7:
Lloh11:
	adrp	x0, l_.str.3@PAGE
Lloh12:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_10
LBB0_8:
	ldr	w8, [x20, #12]
	str	x8, [sp]
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_10
LBB0_9:
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_10:
	bl	_DRM_DEBUG_KMS
	mov	w0, #0
LBB0_11:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_INTEL_OUTPUT_HDMI,4,2          ; @INTEL_OUTPUT_HDMI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not get HDMI pll dividers.\n"

l_.str.1:                               ; @.str.1
	.asciz	"Could not set DP dpll HW state.\n"

l_.str.2:                               ; @.str.2
	.asciz	"Skip DPLL setup for output_types 0x%x\n"

	.comm	_DPLL_ID_SKL_DPLL0,4,2          ; @DPLL_ID_SKL_DPLL0
	.comm	_DPLL_ID_SKL_DPLL2,4,2          ; @DPLL_ID_SKL_DPLL2
l_.str.3:                               ; @.str.3
	.asciz	"No PLL selected\n"

	.no_dead_strip	_cnl_get_dpll
.subsections_via_symbols
