	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pnv_crtc_compute_clock
_pnv_crtc_compute_clock:                ## @pnv_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	%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, %rbx
	movq	%rdi, %r14
	movq	(%rdi), %rdi
	callq	_to_i915
	movq	%rax, %r12
	leaq	12(%rbx), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	_INTEL_OUTPUT_LVDS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_intel_crtc_has_type
	movl	$96000, %r15d                   ## imm = 0x17700
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%r12, %rdi
	callq	_intel_panel_use_ssc
	movq	_intel_limits_pineview_lvds@GOTPCREL(%rip), %r13
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	(%r12), %r15d
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	callq	_DRM_DEBUG_KMS
LBB0_4:
	cmpl	$0, 8(%rbx)
	jne	LBB0_7
	jmp	LBB0_5
LBB0_1:
	movq	_intel_limits_pineview_sdvo@GOTPCREL(%rip), %r13
	cmpl	$0, 8(%rbx)
	jne	LBB0_7
LBB0_5:
	movl	4(%rbx), %edx
	xorl	%r12d, %r12d
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	%r15d, %ecx
	xorl	%r8d, %r8d
	movq	%rbx, %r9
	callq	_pnv_find_best_dpll
	testl	%eax, %eax
	je	LBB0_6
LBB0_7:
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_i9xx_compute_dpll
LBB0_8:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	leaq	L_.str.1(%rip), %rdi
	callq	_DRM_ERROR
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_INTEL_OUTPUT_LVDS,4,2          ## @INTEL_OUTPUT_LVDS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"using SSC reference clock of %d kHz\n"

	.comm	_intel_limits_pineview_lvds,4,2 ## @intel_limits_pineview_lvds
	.comm	_intel_limits_pineview_sdvo,4,2 ## @intel_limits_pineview_sdvo
L_.str.1:                               ## @.str.1
	.asciz	"Couldn't find PLL settings for mode!\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_pnv_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 pnv_crtc_compute_clock
_pnv_crtc_compute_clock:                ; @pnv_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	x19, x1
	mov	x20, x0
	mov	w21, #30464
	movk	w21, #1, lsl #16
	ldr	x0, [x0]
	bl	_to_i915
	mov	x22, x0
	add	x0, x19, #12
	mov	w1, #0
	mov	w2, #4
	bl	_memset
Lloh0:
	adrp	x8, _INTEL_OUTPUT_LVDS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INTEL_OUTPUT_LVDS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_intel_crtc_has_type
	cbz	x0, LBB0_4
; %bb.1:
	mov	x0, x22
	bl	_intel_panel_use_ssc
	cbz	x0, LBB0_3
; %bb.2:
	ldr	w21, [x22]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_DRM_DEBUG_KMS
LBB0_3:
Lloh5:
	adrp	x0, _intel_limits_pineview_lvds@GOTPAGE
Lloh6:
	ldr	x0, [x0, _intel_limits_pineview_lvds@GOTPAGEOFF]
	ldr	w8, [x19, #8]
	cbnz	w8, LBB0_6
	b	LBB0_5
LBB0_4:
Lloh7:
	adrp	x0, _intel_limits_pineview_sdvo@GOTPAGE
Lloh8:
	ldr	x0, [x0, _intel_limits_pineview_sdvo@GOTPAGEOFF]
	ldr	w8, [x19, #8]
	cbnz	w8, LBB0_6
LBB0_5:
	ldr	w2, [x19, #4]
	mov	x1, x19
	mov	x3, x21
	mov	x4, #0
	mov	x5, x19
	bl	_pnv_find_best_dpll
	cbz	w0, LBB0_8
LBB0_6:
	mov	x0, x20
	mov	x1, x19
	mov	x2, #0
	bl	_i9xx_compute_dpll
	mov	w0, #0
LBB0_7:
	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
LBB0_8:
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_ERROR
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_INTEL_OUTPUT_LVDS,4,2          ; @INTEL_OUTPUT_LVDS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"using SSC reference clock of %d kHz\n"

	.comm	_intel_limits_pineview_lvds,4,2 ; @intel_limits_pineview_lvds
	.comm	_intel_limits_pineview_sdvo,4,2 ; @intel_limits_pineview_sdvo
l_.str.1:                               ; @.str.1
	.asciz	"Couldn't find PLL settings for mode!\n"

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