	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function haswell_crtc_compute_clock
_haswell_crtc_compute_clock:            ## @haswell_crtc_compute_clock
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	4(%rdi), %edi
	callq	_to_i915
	movq	%rax, %r12
	movl	(%rbx), %edi
	callq	_to_intel_atomic_state
	movq	%rax, %r15
	movq	_INTEL_OUTPUT_DSI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_intel_crtc_has_type
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	callq	_INTEL_GEN
	movl	%eax, %ecx
	xorl	%eax, %eax
	cmpl	$11, %ecx
	jl	LBB0_4
LBB0_2:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_intel_get_crtc_new_encoder
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%rax, %rdx
	callq	_intel_reserve_shared_dplls
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	jne	LBB0_4
## %bb.3:
	movl	(%r14), %edi
	callq	_pipe_name
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_DRM_DEBUG_KMS
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INTEL_OUTPUT_DSI,4,2           ## @INTEL_OUTPUT_DSI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to find PLL for pipe %c\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_haswell_crtc_compute_clock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function haswell_crtc_compute_clock
_haswell_crtc_compute_clock:            ; @haswell_crtc_compute_clock
	.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	x20, x1
	mov	x19, x0
	ldr	w0, [x0, #4]
	bl	_to_i915
	mov	x22, x0
	ldr	w0, [x20]
	bl	_to_intel_atomic_state
	mov	x21, x0
Lloh0:
	adrp	x8, _INTEL_OUTPUT_DSI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INTEL_OUTPUT_DSI@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_intel_crtc_has_type
	cbz	w0, LBB0_2
; %bb.1:
	mov	x0, x22
	bl	_INTEL_GEN
	cmp	w0, #11
	b.lt	LBB0_3
LBB0_2:
	mov	x0, x21
	mov	x1, x20
	bl	_intel_get_crtc_new_encoder
	mov	x2, x0
	mov	x0, x21
	mov	x1, x19
	bl	_intel_reserve_shared_dplls
	cbz	w0, LBB0_4
LBB0_3:
	mov	w0, #0
	b	LBB0_5
LBB0_4:
	ldr	w0, [x19]
	bl	_pipe_name
	mov	x1, x0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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 AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_INTEL_OUTPUT_DSI,4,2           ; @INTEL_OUTPUT_DSI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to find PLL for pipe %c\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_haswell_crtc_compute_clock
.subsections_via_symbols
