	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i8xx_crtc_compute_clock
_i8xx_crtc_compute_clock:               ## @i8xx_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
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%r12, %rdi
	callq	_intel_panel_use_ssc
	movq	_intel_limits_i8xx_lvds@GOTPCREL(%rip), %r15
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movl	(%r12), %r13d
	leaq	L_.str(%rip), %rdi
	movl	%r13d, %esi
	callq	_DRM_DEBUG_KMS
	cmpl	$0, 8(%rbx)
	jne	LBB0_10
	jmp	LBB0_8
LBB0_3:
	movq	_INTEL_OUTPUT_DVO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_intel_crtc_has_type
	testq	%rax, %rax
	jne	LBB0_4
## %bb.5:
	movq	_intel_limits_i8xx_dac@GOTPCREL(%rip), %r15
	jmp	LBB0_6
LBB0_4:
	movq	_intel_limits_i8xx_dvo@GOTPCREL(%rip), %r15
LBB0_6:
	movl	$48000, %r13d                   ## imm = 0xBB80
	cmpl	$0, 8(%rbx)
	jne	LBB0_10
LBB0_8:
	movl	4(%rbx), %edx
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	%r13d, %ecx
	xorl	%r8d, %r8d
	movq	%rbx, %r9
	callq	_i9xx_find_best_dpll
	testl	%eax, %eax
	je	LBB0_9
LBB0_10:
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_i8xx_compute_dpll
LBB0_11:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	leaq	L_.str.1(%rip), %rdi
	callq	_DRM_ERROR
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	jmp	LBB0_11
	.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_i8xx_lvds,4,2     ## @intel_limits_i8xx_lvds
	.comm	_INTEL_OUTPUT_DVO,4,2           ## @INTEL_OUTPUT_DVO
	.comm	_intel_limits_i8xx_dvo,4,2      ## @intel_limits_i8xx_dvo
	.comm	_intel_limits_i8xx_dac,4,2      ## @intel_limits_i8xx_dac
L_.str.1:                               ## @.str.1
	.asciz	"Couldn't find PLL settings for mode!\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_i8xx_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 i8xx_crtc_compute_clock
_i8xx_crtc_compute_clock:               ; @i8xx_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
	ldr	x0, [x0]
	bl	_to_i915
	mov	x21, 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_3
; %bb.1:
	mov	x0, x21
	bl	_intel_panel_use_ssc
	cbz	x0, LBB0_4
; %bb.2:
	ldr	w21, [x21]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_DRM_DEBUG_KMS
	b	LBB0_5
LBB0_3:
Lloh5:
	adrp	x8, _INTEL_OUTPUT_DVO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _INTEL_OUTPUT_DVO@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_intel_crtc_has_type
Lloh8:
	adrp	x8, _intel_limits_i8xx_dvo@GOTPAGE
Lloh9:
	ldr	x8, [x8, _intel_limits_i8xx_dvo@GOTPAGEOFF]
Lloh10:
	adrp	x9, _intel_limits_i8xx_dac@GOTPAGE
Lloh11:
	ldr	x9, [x9, _intel_limits_i8xx_dac@GOTPAGEOFF]
	cmp	x0, #0
	csel	x0, x9, x8, eq
	mov	w21, #48000
	ldr	w8, [x19, #8]
	cbnz	w8, LBB0_7
	b	LBB0_6
LBB0_4:
	mov	w21, #48000
LBB0_5:
Lloh12:
	adrp	x0, _intel_limits_i8xx_lvds@GOTPAGE
Lloh13:
	ldr	x0, [x0, _intel_limits_i8xx_lvds@GOTPAGEOFF]
	ldr	w8, [x19, #8]
	cbnz	w8, LBB0_7
LBB0_6:
	ldr	w2, [x19, #4]
	mov	x1, x19
	mov	x3, x21
	mov	x4, #0
	mov	x5, x19
	bl	_i9xx_find_best_dpll
	cbz	w0, LBB0_9
LBB0_7:
	mov	x0, x20
	mov	x1, x19
	mov	x2, #0
	bl	_i8xx_compute_dpll
	mov	w0, #0
LBB0_8:
	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_9:
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_ERROR
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.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_i8xx_lvds,4,2     ; @intel_limits_i8xx_lvds
	.comm	_INTEL_OUTPUT_DVO,4,2           ; @INTEL_OUTPUT_DVO
	.comm	_intel_limits_i8xx_dvo,4,2      ; @intel_limits_i8xx_dvo
	.comm	_intel_limits_i8xx_dac,4,2      ; @intel_limits_i8xx_dac
l_.str.1:                               ; @.str.1
	.asciz	"Couldn't find PLL settings for mode!\n"

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