	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function chv_crtc_compute_clock
_chv_crtc_compute_clock:                ## @chv_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, %r15
	leaq	12(%rsi), %rdi
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	cmpl	$0, 8(%rbx)
	jne	LBB0_3
## %bb.1:
	movl	4(%rbx), %edx
	movq	_intel_limits_chv@GOTPCREL(%rip), %rdi
	xorl	%r12d, %r12d
	movq	%rbx, %rsi
	movl	$100000, %ecx                   ## imm = 0x186A0
	xorl	%r8d, %r8d
	movq	%rbx, %r9
	callq	_chv_find_best_dpll
	testl	%eax, %eax
	je	LBB0_2
LBB0_3:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_chv_compute_dpll
LBB0_4:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_ERROR
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	movl	%r12d, %r14d
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_intel_limits_chv,4,2           ## @intel_limits_chv
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Couldn't find PLL settings for mode!\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_chv_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 chv_crtc_compute_clock
_chv_crtc_compute_clock:                ; @chv_crtc_compute_clock
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	add	x0, x1, #12
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	w8, [x19, #8]
	cbnz	w8, LBB0_2
; %bb.1:
	ldr	w2, [x19, #4]
Lloh0:
	adrp	x0, _intel_limits_chv@GOTPAGE
Lloh1:
	ldr	x0, [x0, _intel_limits_chv@GOTPAGEOFF]
	mov	x1, x19
	mov	w3, #34464
	movk	w3, #1, lsl #16
	mov	x4, #0
	mov	x5, x19
	bl	_chv_find_best_dpll
	cbz	w0, LBB0_4
LBB0_2:
	mov	x0, x20
	mov	x1, x19
	bl	_chv_compute_dpll
	mov	w0, #0
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_intel_limits_chv,4,2           ; @intel_limits_chv
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Couldn't find PLL settings for mode!\n"

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