	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bxt_get_dpll
_bxt_get_dpll:                          ## @bxt_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	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, %r15
	callq	_intel_atomic_get_new_crtc_state
	movq	%rax, %rbx
	movl	8(%r14), %edi
	callq	_to_i915
	movq	%rax, %r13
	movq	_INTEL_OUTPUT_HDMI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_intel_crtc_has_type
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_bxt_ddi_hdmi_set_dpll_hw_state
	testl	%eax, %eax
	je	LBB0_6
LBB0_2:
	movq	%rbx, %rdi
	callq	_intel_crtc_has_dp_encoder
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_bxt_ddi_dp_set_dpll_hw_state
	testl	%eax, %eax
	je	LBB0_6
LBB0_4:
	movl	(%r12), %esi
	movq	%r13, %rdi
	callq	_intel_get_shared_dpll_by_id
	movq	%rax, %r12
	movl	(%r14), %edx
	movl	4(%r14), %esi
	movq	(%rax), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_KMS
	movq	%rbx, %rcx
	addq	$8, %rcx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_intel_reference_shared_dpll
	movq	%r12, (%rbx)
	movl	$1, %eax
	jmp	LBB0_7
LBB0_6:
	xorl	%eax, %eax
LBB0_7:
	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	"[CRTC:%d:%s] using pre-allocated %s\n"

	.no_dead_strip	_bxt_get_dpll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bxt_get_dpll
_bxt_get_dpll:                          ; @bxt_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	x22, x2
	mov	x19, x1
	mov	x21, x0
	bl	_intel_atomic_get_new_crtc_state
	mov	x20, x0
	ldr	w0, [x19, #8]
	bl	_to_i915
	mov	x23, x0
Lloh0:
	adrp	x8, _INTEL_OUTPUT_HDMI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INTEL_OUTPUT_HDMI@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_intel_crtc_has_type
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_bxt_ddi_hdmi_set_dpll_hw_state
	cbz	w0, LBB0_5
LBB0_2:
	mov	x0, x20
	bl	_intel_crtc_has_dp_encoder
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_bxt_ddi_dp_set_dpll_hw_state
	cbz	w0, LBB0_5
LBB0_4:
	ldr	w1, [x22]
	mov	x0, x23
	bl	_intel_get_shared_dpll_by_id
	mov	x22, x0
	ldp	w2, w1, [x19]
	ldr	x8, [x0]
	ldr	w3, [x8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
	add	x3, x20, #8
	mov	x0, x21
	mov	x1, x19
	mov	x2, x22
	bl	_intel_reference_shared_dpll
	str	x22, [x20]
	mov	w0, #1
LBB0_5:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_INTEL_OUTPUT_HDMI,4,2          ; @INTEL_OUTPUT_HDMI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[CRTC:%d:%s] using pre-allocated %s\n"

	.no_dead_strip	_bxt_get_dpll
.subsections_via_symbols
