	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_ddi_compute_config
_intel_ddi_compute_config:              ## @intel_ddi_compute_config
	.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	%rdx, %r12
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movl	40(%rsi), %edi
	callq	_to_intel_crtc
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	4(%rbx), %edi
	callq	_to_i915
	movq	%rax, %r14
	movl	(%rbx), %r15d
	movq	%rax, %rdi
	callq	_HAS_TRANSCODER_EDP
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_PORT_A@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jne	LBB0_3
## %bb.2:
	movq	_TRANSCODER_EDP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r13)
LBB0_3:
	movq	_INTEL_OUTPUT_HDMI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_intel_crtc_has_type
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	callq	_intel_hdmi_compute_config
	jmp	LBB0_6
LBB0_5:
	callq	_intel_dp_compute_config
LBB0_6:
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_16
## %bb.7:
	movq	%r14, %rdi
	callq	_IS_HASWELL
	testq	%rax, %rax
	je	LBB0_13
## %bb.8:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	_PIPE_A@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.9:
	movq	(%r13), %rax
	movq	_TRANSCODER_EDP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.10:
	movl	$1, %eax
	cmpq	$0, 32(%r13)
	jne	LBB0_12
## %bb.11:
	xorl	%eax, %eax
	cmpq	$0, 16(%r13)
	setne	%al
LBB0_12:
	movl	%eax, 24(%r13)
LBB0_13:
	movq	%r14, %rdi
	callq	_IS_GEN9_LP
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movl	8(%r13), %edi
	callq	_bxt_ddi_phy_calc_lane_lat_optim_mask
	movl	%eax, 12(%r13)
LBB0_15:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_intel_ddi_compute_min_voltage_level
LBB0_16:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PORT_A,4,2                     ## @PORT_A
	.comm	_TRANSCODER_EDP,8,3             ## @TRANSCODER_EDP
	.comm	_INTEL_OUTPUT_HDMI,4,2          ## @INTEL_OUTPUT_HDMI
	.comm	_PIPE_A,8,3                     ## @PIPE_A
	.no_dead_strip	_intel_ddi_compute_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_ddi_compute_config
_intel_ddi_compute_config:              ; @intel_ddi_compute_config
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x2
	mov	x19, x1
	mov	x23, x0
	ldr	w0, [x1, #40]
	bl	_to_intel_crtc
	mov	x22, x0
	ldr	w0, [x23, #4]
	bl	_to_i915
	mov	x20, x0
	ldr	w24, [x23]
	bl	_HAS_TRANSCODER_EDP
Lloh0:
	adrp	x8, _PORT_A@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PORT_A@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	x0, #0
	ccmp	w24, w8, #0, ne
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _TRANSCODER_EDP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TRANSCODER_EDP@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	x8, [x19]
LBB0_2:
Lloh6:
	adrp	x8, _INTEL_OUTPUT_HDMI@GOTPAGE
Lloh7:
	ldr	x8, [x8, _INTEL_OUTPUT_HDMI@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_intel_crtc_has_type
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x23
	mov	x1, x19
	mov	x2, x21
	bl	_intel_hdmi_compute_config
	mov	x21, x0
	cbnz	w0, LBB0_15
	b	LBB0_5
LBB0_4:
	mov	x0, x23
	mov	x1, x19
	mov	x2, x21
	bl	_intel_dp_compute_config
	mov	x21, x0
	cbnz	w0, LBB0_15
LBB0_5:
	mov	x0, x20
	bl	_IS_HASWELL
	cbz	x0, LBB0_12
; %bb.6:
	ldr	x8, [x22]
Lloh9:
	adrp	x9, _PIPE_A@GOTPAGE
Lloh10:
	ldr	x9, [x9, _PIPE_A@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.7:
	ldr	x8, [x19]
Lloh12:
	adrp	x9, _TRANSCODER_EDP@GOTPAGE
Lloh13:
	ldr	x9, [x9, _TRANSCODER_EDP@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.8:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_10
; %bb.9:
	mov	w8, #1
	b	LBB0_11
LBB0_10:
	ldr	x8, [x19, #16]
	cmp	x8, #0
	cset	w8, ne
LBB0_11:
	str	w8, [x19, #24]
LBB0_12:
	mov	x0, x20
	bl	_IS_GEN9_LP
	cbz	x0, LBB0_14
; %bb.13:
	ldr	w0, [x19, #8]
	bl	_bxt_ddi_phy_calc_lane_lat_optim_mask
	str	w0, [x19, #12]
LBB0_14:
	mov	x0, x20
	mov	x1, x19
	bl	_intel_ddi_compute_min_voltage_level
LBB0_15:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_PORT_A,4,2                     ; @PORT_A
	.comm	_TRANSCODER_EDP,8,3             ; @TRANSCODER_EDP
	.comm	_INTEL_OUTPUT_HDMI,4,2          ; @INTEL_OUTPUT_HDMI
	.comm	_PIPE_A,8,3                     ; @PIPE_A
	.no_dead_strip	_intel_ddi_compute_config
.subsections_via_symbols
