	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_crtc_compute_min_cdclk   ## -- Begin function intel_crtc_compute_min_cdclk
	.p2align	4, 0x90
_intel_crtc_compute_min_cdclk:          ## @intel_crtc_compute_min_cdclk
	.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	%rdi, %rbx
	movq	32(%rdi), %rax
	movl	(%rax), %edi
	callq	_to_i915
	cmpl	$0, 24(%rbx)
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movl	16(%rbx), %esi
	movq	%rax, %rdi
	callq	_intel_pixel_rate_to_cdclk
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_IS_BROADWELL
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	%rbx, %rdi
	callq	_hsw_crtc_state_ips_capable
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	imull	$100, %r15d, %edi
	movl	$95, %esi
	callq	_DIV_ROUND_UP
	movl	%eax, %r15d
LBB0_5:
	movq	%rbx, %rdi
	callq	_intel_crtc_has_dp_encoder
	testq	%rax, %rax
	je	LBB0_14
## %bb.6:
	cmpq	$0, 8(%rbx)
	je	LBB0_14
## %bb.7:
	cmpl	$540000, (%rbx)                 ## imm = 0x83D60
	jl	LBB0_14
## %bb.8:
	cmpl	$4, 4(%rbx)
	jne	LBB0_14
## %bb.9:
	movq	%r14, %rdi
	callq	_IS_CANNONLAKE
	movl	$316800, %r12d                  ## imm = 0x4D580
	testq	%rax, %rax
	jne	LBB0_13
## %bb.10:
	movq	%r14, %rdi
	callq	_IS_GEMINILAKE
	testq	%rax, %rax
	jne	LBB0_13
## %bb.11:
	movq	%r14, %rdi
	movl	$9, %esi
	callq	_IS_GEN
	movl	$432000, %r12d                  ## imm = 0x69780
	testq	%rax, %rax
	jne	LBB0_13
## %bb.12:
	movq	%r14, %rdi
	callq	_IS_BROADWELL
	testq	%rax, %rax
	je	LBB0_14
LBB0_13:
	movl	%r12d, %edi
	movl	%r15d, %esi
	callq	_max
	movl	%eax, %r15d
LBB0_14:
	cmpq	$0, 8(%rbx)
	je	LBB0_17
## %bb.15:
	movq	%r14, %rdi
	callq	_INTEL_GEN
	cmpl	$9, %eax
	jl	LBB0_17
## %bb.16:
	movl	$192000, %edi                   ## imm = 0x2EE00
	movl	%r15d, %esi
	callq	_max
	movl	%eax, %r15d
LBB0_17:
	movq	%r14, %rdi
	callq	_IS_VALLEYVIEW
	testq	%rax, %rax
	jne	LBB0_19
## %bb.18:
	movq	%r14, %rdi
	callq	_IS_CHERRYVIEW
	testq	%rax, %rax
	je	LBB0_22
LBB0_19:
	movq	%rbx, %rdi
	callq	_intel_crtc_has_dp_encoder
	testq	%rax, %rax
	je	LBB0_22
## %bb.20:
	cmpq	$0, 8(%rbx)
	je	LBB0_22
## %bb.21:
	movl	(%rbx), %edi
	movl	%r15d, %esi
	callq	_max
	movl	%eax, %r15d
LBB0_22:
	movq	_INTEL_OUTPUT_DSI@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_intel_crtc_has_type
	testq	%rax, %rax
	je	LBB0_25
## %bb.23:
	movq	%r14, %rdi
	callq	_IS_VALLEYVIEW
	testq	%rax, %rax
	je	LBB0_25
## %bb.24:
	movl	$320000, %edi                   ## imm = 0x4E200
	movl	%r15d, %esi
	callq	_max
	movl	%eax, %r15d
LBB0_25:
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_intel_crtc_has_type
	testq	%rax, %rax
	je	LBB0_28
## %bb.26:
	movq	%r14, %rdi
	callq	_IS_GEMINILAKE
	testq	%rax, %rax
	je	LBB0_28
## %bb.27:
	movl	$158400, %edi                   ## imm = 0x26AC0
	movl	%r15d, %esi
	callq	_max
	movl	%eax, %r15d
LBB0_28:
	movl	(%r14), %edx
	cmpl	%edx, %r15d
	jle	LBB0_30
## %bb.29:
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	callq	_DRM_DEBUG_KMS
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_30
LBB0_1:
	xorl	%r15d, %r15d
LBB0_30:
	movl	%r15d, %eax
	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	"required cdclk (%d kHz) exceeds max (%d kHz)\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_crtc_compute_min_cdclk   ; -- Begin function intel_crtc_compute_min_cdclk
	.p2align	2
_intel_crtc_compute_min_cdclk:          ; @intel_crtc_compute_min_cdclk
	.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	x21, x0
	ldr	x8, [x0, #32]
	ldr	w0, [x8]
	bl	_to_i915
	ldr	w8, [x21, #24]
	cbz	w8, LBB0_29
; %bb.1:
	mov	x19, x0
	ldr	w1, [x21, #16]
	bl	_intel_pixel_rate_to_cdclk
	mov	x20, x0
	mov	x0, x19
	bl	_IS_BROADWELL
	cbz	x0, LBB0_4
; %bb.2:
	mov	x0, x21
	bl	_hsw_crtc_state_ips_capable
	cbz	x0, LBB0_4
; %bb.3:
	mov	w8, #100
	mul	w0, w20, w8
	mov	w1, #95
	bl	_DIV_ROUND_UP
	mov	x20, x0
LBB0_4:
	mov	x0, x21
	bl	_intel_crtc_has_dp_encoder
	cbz	x0, LBB0_13
; %bb.5:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_13
; %bb.6:
	ldr	w8, [x21]
	mov	w9, #15712
	movk	w9, #8, lsl #16
	cmp	w8, w9
	b.lt	LBB0_13
; %bb.7:
	ldr	w8, [x21, #4]
	cmp	w8, #4
	b.ne	LBB0_13
; %bb.8:
	mov	w22, #54656
	movk	w22, #4, lsl #16
	mov	x0, x19
	bl	_IS_CANNONLAKE
	cbnz	x0, LBB0_12
; %bb.9:
	mov	x0, x19
	bl	_IS_GEMINILAKE
	cbnz	x0, LBB0_12
; %bb.10:
	mov	w22, #38784
	movk	w22, #6, lsl #16
	mov	x0, x19
	mov	w1, #9
	bl	_IS_GEN
	cbnz	x0, LBB0_12
; %bb.11:
	mov	x0, x19
	bl	_IS_BROADWELL
	cbz	x0, LBB0_13
LBB0_12:
	mov	x0, x22
	mov	x1, x20
	bl	_max
	mov	x20, x0
LBB0_13:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_16
; %bb.14:
	mov	x0, x19
	bl	_INTEL_GEN
	cmp	w0, #9
	b.lt	LBB0_16
; %bb.15:
	mov	w0, #60928
	movk	w0, #2, lsl #16
	mov	x1, x20
	bl	_max
	mov	x20, x0
LBB0_16:
	mov	x0, x19
	bl	_IS_VALLEYVIEW
	cbnz	x0, LBB0_18
; %bb.17:
	mov	x0, x19
	bl	_IS_CHERRYVIEW
	cbz	x0, LBB0_21
LBB0_18:
	mov	x0, x21
	bl	_intel_crtc_has_dp_encoder
	cbz	x0, LBB0_21
; %bb.19:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_21
; %bb.20:
	ldr	w0, [x21]
	mov	x1, x20
	bl	_max
	mov	x20, x0
LBB0_21:
Lloh0:
	adrp	x22, _INTEL_OUTPUT_DSI@GOTPAGE
Lloh1:
	ldr	x22, [x22, _INTEL_OUTPUT_DSI@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x21
	bl	_intel_crtc_has_type
	cbz	x0, LBB0_24
; %bb.22:
	mov	x0, x19
	bl	_IS_VALLEYVIEW
	cbz	x0, LBB0_24
; %bb.23:
	mov	w8, #54656
	movk	w8, #4, lsl #16
	add	w0, w8, #3200
	mov	x1, x20
	bl	_max
	mov	x20, x0
LBB0_24:
	ldr	w1, [x22]
	mov	x0, x21
	bl	_intel_crtc_has_type
	cbz	x0, LBB0_27
; %bb.25:
	mov	x0, x19
	bl	_IS_GEMINILAKE
	cbz	x0, LBB0_27
; %bb.26:
	mov	w0, #27328
	movk	w0, #2, lsl #16
	mov	x1, x20
	bl	_max
	mov	x20, x0
LBB0_27:
	ldr	w2, [x19]
	cmp	w20, w2
	b.le	LBB0_30
; %bb.28:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_DRM_DEBUG_KMS
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_30
LBB0_29:
	mov	w20, #0
LBB0_30:
	mov	x0, x20
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_INTEL_OUTPUT_DSI,4,2           ; @INTEL_OUTPUT_DSI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"required cdclk (%d kHz) exceeds max (%d kHz)\n"

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