	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function skl_get_dpll
_skl_get_dpll:                          ## @skl_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, %r14
	movq	%rdi, %r15
	callq	_intel_atomic_get_new_crtc_state
	movq	%rax, %rbx
	movq	%rax, %r12
	movq	_INTEL_OUTPUT_HDMI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_intel_crtc_has_type
	movq	%r12, %rdi
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	callq	_skl_ddi_hdmi_pll_dividers
	testl	%eax, %eax
	jne	LBB0_6
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_KMS
	xorl	%r13d, %r13d
	jmp	LBB0_12
LBB0_3:
	callq	_intel_crtc_has_dp_encoder
	xorl	%r13d, %r13d
	testq	%rax, %rax
	je	LBB0_12
## %bb.4:
	movq	%r12, %rdi
	callq	_skl_ddi_dp_set_dpll_hw_state
	testl	%eax, %eax
	je	LBB0_5
LBB0_6:
	movq	_INTEL_OUTPUT_EDP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_intel_crtc_has_type
	addq	$8, %rbx
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	_DPLL_ID_SKL_DPLL0@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	movl	%ecx, %r8d
	jmp	LBB0_9
LBB0_8:
	movq	_DPLL_ID_SKL_DPLL1@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_DPLL_ID_SKL_DPLL3@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
LBB0_9:
	callq	_intel_find_shared_dpll
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r13, %rdx
	movq	%rbx, %rcx
	callq	_intel_reference_shared_dpll
	movq	%r13, (%r12)
	movl	$1, %r13d
	jmp	LBB0_12
LBB0_10:
	xorl	%r13d, %r13d
	jmp	LBB0_12
LBB0_5:
	leaq	L_.str.1(%rip), %rdi
	callq	_DRM_DEBUG_KMS
LBB0_12:
	movl	%r13d, %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"

	.comm	_INTEL_OUTPUT_EDP,4,2           ## @INTEL_OUTPUT_EDP
	.comm	_DPLL_ID_SKL_DPLL0,4,2          ## @DPLL_ID_SKL_DPLL0
	.comm	_DPLL_ID_SKL_DPLL1,4,2          ## @DPLL_ID_SKL_DPLL1
	.comm	_DPLL_ID_SKL_DPLL3,4,2          ## @DPLL_ID_SKL_DPLL3
	.no_dead_strip	_skl_get_dpll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function skl_get_dpll
_skl_get_dpll:                          ; @skl_get_dpll
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	_skl_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_11
LBB0_3:
	mov	x0, x20
	bl	_intel_crtc_has_dp_encoder
	cbz	x0, LBB0_13
; %bb.4:
	mov	x0, x20
	bl	_skl_ddi_dp_set_dpll_hw_state
	cbz	w0, LBB0_10
LBB0_5:
Lloh5:
	adrp	x8, _INTEL_OUTPUT_EDP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _INTEL_OUTPUT_EDP@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_intel_crtc_has_type
	add	x22, x20, #8
	cbz	x0, LBB0_7
; %bb.6:
Lloh8:
	adrp	x8, _DPLL_ID_SKL_DPLL0@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DPLL_ID_SKL_DPLL0@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
	mov	x0, x21
	mov	x1, x19
	mov	x2, x22
	mov	x4, x3
	b	LBB0_8
LBB0_7:
Lloh11:
	adrp	x8, _DPLL_ID_SKL_DPLL1@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DPLL_ID_SKL_DPLL1@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
Lloh14:
	adrp	x8, _DPLL_ID_SKL_DPLL3@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DPLL_ID_SKL_DPLL3@GOTPAGEOFF]
Lloh16:
	ldr	w4, [x8]
	mov	x0, x21
	mov	x1, x19
	mov	x2, x22
LBB0_8:
	bl	_intel_find_shared_dpll
	mov	x23, x0
	cbz	x0, LBB0_12
; %bb.9:
	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_13
LBB0_10:
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_11:
	bl	_DRM_DEBUG_KMS
LBB0_12:
	mov	w0, #0
LBB0_13:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.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"

	.comm	_INTEL_OUTPUT_EDP,4,2           ; @INTEL_OUTPUT_EDP
	.comm	_DPLL_ID_SKL_DPLL0,4,2          ; @DPLL_ID_SKL_DPLL0
	.comm	_DPLL_ID_SKL_DPLL1,4,2          ; @DPLL_ID_SKL_DPLL1
	.comm	_DPLL_ID_SKL_DPLL3,4,2          ; @DPLL_ID_SKL_DPLL3
	.no_dead_strip	_skl_get_dpll
.subsections_via_symbols
