	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ddi_dotclock_get
_ddi_dotclock_get:                      ## @ddi_dotclock_get
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	cmpq	$0, 40(%rdi)
	je	LBB0_2
## %bb.1:
	movl	(%rbx), %edi
	leaq	36(%rbx), %rsi
	jmp	LBB0_4
LBB0_2:
	movq	%rbx, %rdi
	callq	_intel_crtc_has_dp_encoder
	testq	%rax, %rax
	je	LBB0_11
## %bb.3:
	movl	(%rbx), %edi
	leaq	32(%rbx), %rsi
LBB0_4:
	callq	_intel_dotclock_calculate
LBB0_5:
	movl	%eax, %r14d
LBB0_6:
	movq	8(%rbx), %rax
	movq	_INTEL_OUTPUT_FORMAT_YCBCR420@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	callq	_intel_crtc_has_dp_encoder
	testq	%rax, %rax
	sete	%cl
	shll	%cl, %r14d
LBB0_8:
	movl	16(%rbx), %ecx
	testl	%ecx, %ecx
	je	LBB0_10
## %bb.9:
	movl	%r14d, %eax
	cltd
	idivl	%ecx
	movl	%eax, %r14d
LBB0_10:
	movl	%r14d, 20(%rbx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_11:
	cmpq	$0, 24(%rbx)
	je	LBB0_14
## %bb.12:
	movl	4(%rbx), %ecx
	cmpl	$25, %ecx
	jl	LBB0_14
## %bb.13:
	movl	(%rbx), %eax
	shll	$3, %eax
	leal	(%rax,%rax,2), %eax
	cltd
	idivl	%ecx
	jmp	LBB0_5
LBB0_14:
	movl	(%rbx), %r14d
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_INTEL_OUTPUT_FORMAT_YCBCR420,8,3 ## @INTEL_OUTPUT_FORMAT_YCBCR420
	.no_dead_strip	_ddi_dotclock_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ddi_dotclock_get
_ddi_dotclock_get:                      ; @ddi_dotclock_get
	.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, x0
	ldr	x8, [x0, #40]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x1, x19
	ldr	w0, [x1], #36
	b	LBB0_4
LBB0_2:
	mov	x0, x19
	bl	_intel_crtc_has_dp_encoder
	cbz	x0, LBB0_10
; %bb.3:
	mov	x1, x19
	ldr	w0, [x1], #32
LBB0_4:
	bl	_intel_dotclock_calculate
	mov	x20, x0
LBB0_5:
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x9, _INTEL_OUTPUT_FORMAT_YCBCR420@GOTPAGE
Lloh1:
	ldr	x9, [x9, _INTEL_OUTPUT_FORMAT_YCBCR420@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_intel_crtc_has_dp_encoder
	cmp	x0, #0
	cset	w8, eq
	lsl	w20, w20, w8
LBB0_7:
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_9
; %bb.8:
	sdiv	w20, w20, w8
LBB0_9:
	str	w20, [x19, #20]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_10:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_13
; %bb.11:
	ldr	w8, [x19, #4]
	cmp	w8, #25
	b.lt	LBB0_13
; %bb.12:
	ldr	w9, [x19]
	add	w9, w9, w9, lsl #1
	lsl	w9, w9, #3
	sdiv	w20, w9, w8
	b	LBB0_5
LBB0_13:
	ldr	w20, [x19]
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_INTEL_OUTPUT_FORMAT_YCBCR420,8,3 ; @INTEL_OUTPUT_FORMAT_YCBCR420
	.no_dead_strip	_ddi_dotclock_get
.subsections_via_symbols
