	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_dp_compute_config        ## -- Begin function intel_dp_compute_config
	.p2align	4, 0x90
_intel_dp_compute_config:               ## @intel_dp_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
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %rbx
	leaq	4(%rdi), %r14
	movl	4(%rdi), %edi
	callq	_to_i915
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_enc_to_intel_dp
	movq	%rax, %r13
	movq	%r14, %rdi
	callq	_enc_to_intel_lspcon
	movq	%rax, %r14
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movl	64(%r12), %edi
	callq	_to_intel_crtc
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	8(%r13), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_to_intel_digital_connector_state
	movq	%rax, %r15
	movq	%r13, %r12
	leaq	4(%r13), %rdi
	movq	_DP_DPCD_QUIRK_CONSTANT_N@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_drm_dp_has_quirk
	movl	%eax, %ebx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_HAS_PCH_SPLIT
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_HAS_DDI
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:
	movq	_PORT_A@GOTPCREL(%rip), %rax
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	cmpl	(%rax), %ecx
	je	LBB0_4
## %bb.3:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
LBB0_4:
	movq	_INTEL_OUTPUT_FORMAT_RGB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movl	%eax, 60(%r13)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	leaq	16(%rax), %rsi
	cmpq	$0, (%r14)
	je	LBB0_6
## %bb.5:
	movq	%rsi, %rdi
	movq	%r13, %rsi
	callq	_lspcon_ycbcr420_config
	movq	%r13, %r14
LBB0_7:
	movl	$0, 4(%r14)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_IS_G4X
	xorl	%ecx, %ecx
	testq	%rax, %rax
	jne	LBB0_12
## %bb.8:
	movq	_PORT_A@GOTPCREL(%rip), %rax
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	cmpl	(%rax), %edx
	je	LBB0_12
## %bb.9:
	movq	(%r15), %rax
	movq	_HDMI_AUDIO_AUTO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.10:
	movl	(%r12), %ecx
	jmp	LBB0_12
LBB0_6:
	movq	%r12, %rdi
	movq	%r13, %rdx
	callq	_intel_dp_ycbcr420_config
	testl	%eax, %eax
	movq	%r13, %r14
	jne	LBB0_34
	jmp	LBB0_7
LBB0_11:
	movq	_HDMI_AUDIO_ON@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	cmpq	(%rdx), %rax
	sete	%cl
LBB0_12:
	leaq	68(%r14), %r13
	movl	%ecx, 8(%r14)
	movq	%r12, %rdi
	callq	_intel_dp_is_edp
	testq	%rax, %rax
	je	LBB0_19
## %bb.13:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_19
## %bb.14:
	movq	%r13, %rsi
	callq	_intel_fixed_panel_mode
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_INTEL_GEN
	cmpl	$9, %eax
	jl	LBB0_16
## %bb.15:
	movq	%r14, %rdi
	callq	_skl_update_scaler_crtc
	testl	%eax, %eax
	jne	LBB0_34
LBB0_16:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_HAS_GMCH
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %edx
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_intel_gmch_panel_fitting
	jmp	LBB0_19
LBB0_18:
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_intel_pch_panel_fitting
LBB0_19:
	movq	_DRM_MODE_FLAG_DBLSCAN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r13)
	je	LBB0_21
LBB0_20:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_34:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_HAS_GMCH
	movl	(%r13), %ecx
	testq	%rax, %rax
	je	LBB0_23
## %bb.22:
	movq	_DRM_MODE_FLAG_INTERLACE@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	jne	LBB0_20
LBB0_23:
	movq	_DRM_MODE_FLAG_DBLCLK@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	jne	LBB0_20
## %bb.24:
	movq	-96(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movq	%r14, %rsi
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdx
	callq	_intel_dp_compute_link_config
	testl	%eax, %eax
	js	LBB0_34
## %bb.25:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_intel_dp_limited_color_range
	movl	%eax, 56(%r14)
	cmpq	$0, 48(%r14)
	je	LBB0_27
## %bb.26:
	movq	%r14, %rdi
	movl	40(%r14), %r14d
	jmp	LBB0_28
LBB0_27:
	movl	32(%r14), %esi
	movq	%r14, %rdi
	callq	_intel_dp_output_bpp
	movq	%r14, %rdi
	movl	%eax, %r14d
LBB0_28:
	movl	24(%rdi), %esi
	movl	72(%rdi), %edx
	movl	12(%rdi), %eax
	movl	20(%rdi), %ecx
	leaq	28(%rdi), %r8
	movl	%eax, (%rsp)
	movl	%r14d, %edi
	movl	%ebx, %r9d
	callq	_intel_link_compute_m_n
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_31
## %bb.29:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movq	_SEAMLESS_DRRS_SUPPORT@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_31
## %bb.30:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	$1, 4(%rdi)
	movl	24(%rdi), %esi
	movl	(%rax), %edx
	movl	12(%rdi), %eax
	movl	20(%rdi), %ecx
	leaq	16(%rdi), %r8
	movl	%eax, (%rsp)
	movl	%r14d, %edi
	movl	%ebx, %r9d
	callq	_intel_link_compute_m_n
LBB0_31:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_HAS_DDI
	testl	%eax, %eax
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_33
## %bb.32:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_intel_dp_set_clock
LBB0_33:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_intel_psr_compute_config
	xorl	%eax, %eax
	jmp	LBB0_34
	.cfi_endproc
                                        ## -- End function
	.comm	_DP_DPCD_QUIRK_CONSTANT_N,4,2   ## @DP_DPCD_QUIRK_CONSTANT_N
	.comm	_PORT_A,4,2                     ## @PORT_A
	.comm	_INTEL_OUTPUT_FORMAT_RGB,4,2    ## @INTEL_OUTPUT_FORMAT_RGB
	.comm	_HDMI_AUDIO_AUTO,8,3            ## @HDMI_AUDIO_AUTO
	.comm	_HDMI_AUDIO_ON,8,3              ## @HDMI_AUDIO_ON
	.comm	_DRM_MODE_FLAG_DBLSCAN,4,2      ## @DRM_MODE_FLAG_DBLSCAN
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_DRM_MODE_FLAG_INTERLACE,4,2    ## @DRM_MODE_FLAG_INTERLACE
	.comm	_DRM_MODE_FLAG_DBLCLK,4,2       ## @DRM_MODE_FLAG_DBLCLK
	.comm	_SEAMLESS_DRRS_SUPPORT,8,3      ## @SEAMLESS_DRRS_SUPPORT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_dp_compute_config        ; -- Begin function intel_dp_compute_config
	.p2align	2
_intel_dp_compute_config:               ; @intel_dp_compute_config
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x24, x2
	mov	x19, x1
	mov	x20, x0
	mov	x23, x0
	ldr	w0, [x23, #4]!
	bl	_to_i915
	mov	x22, x0
	mov	x0, x23
	bl	_enc_to_intel_dp
	mov	x21, x0
	mov	x0, x23
	bl	_enc_to_intel_lspcon
	mov	x27, x0
	ldr	w23, [x20]
	ldr	w0, [x19, #64]
	bl	_to_intel_crtc
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	ldr	x28, [x21, #8]
	mov	x0, x24
	bl	_to_intel_digital_connector_state
	mov	x26, x0
	add	x0, x21, #4
Lloh0:
	adrp	x8, _DP_DPCD_QUIRK_CONSTANT_N@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DP_DPCD_QUIRK_CONSTANT_N@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_drm_dp_has_quirk
	str	w0, [sp, #4]                    ; 4-byte Folded Spill
	mov	x0, x22
	bl	_HAS_PCH_SPLIT
Lloh3:
	adrp	x25, _PORT_A@GOTPAGE
Lloh4:
	ldr	x25, [x25, _PORT_A@GOTPAGEOFF]
	cbz	x0, LBB0_4
; %bb.1:
	mov	x0, x22
	bl	_HAS_DDI
	cbnz	w0, LBB0_4
; %bb.2:
	ldr	w8, [x25]
	cmp	w23, w8
	b.eq	LBB0_4
; %bb.3:
	mov	w8, #1
	str	w8, [x19]
LBB0_4:
Lloh5:
	adrp	x8, _INTEL_OUTPUT_FORMAT_RGB@GOTPAGE
Lloh6:
	ldr	x8, [x8, _INTEL_OUTPUT_FORMAT_RGB@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x19, #60]
	ldr	x8, [x27]
	add	x1, x28, #16
	cbz	x8, LBB0_10
; %bb.5:
	mov	x0, x1
	mov	x1, x19
	bl	_lspcon_ycbcr420_config
LBB0_6:
	str	wzr, [x19, #4]
	mov	x0, x22
	bl	_IS_G4X
	mov	w8, #0
	cbnz	x0, LBB0_12
; %bb.7:
	ldr	w9, [x25]
	cmp	w23, w9
	b.eq	LBB0_12
; %bb.8:
	ldr	x8, [x26]
Lloh8:
	adrp	x9, _HDMI_AUDIO_AUTO@GOTPAGE
Lloh9:
	ldr	x9, [x9, _HDMI_AUDIO_AUTO@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.9:
	ldr	w8, [x21]
	b	LBB0_12
LBB0_10:
	mov	x0, x21
	mov	x2, x19
	bl	_intel_dp_ycbcr420_config
	cbnz	w0, LBB0_21
	b	LBB0_6
LBB0_11:
Lloh11:
	adrp	x9, _HDMI_AUDIO_ON@GOTPAGE
Lloh12:
	ldr	x9, [x9, _HDMI_AUDIO_ON@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w8, eq
LBB0_12:
	add	x26, x19, #68
	str	w8, [x19, #8]
	mov	x0, x21
	bl	_intel_dp_is_edp
	cbz	x0, LBB0_19
; %bb.13:
	ldr	x0, [x28, #8]
	cbz	x0, LBB0_19
; %bb.14:
	mov	x1, x26
	bl	_intel_fixed_panel_mode
	mov	x0, x22
	bl	_INTEL_GEN
	cmp	w0, #9
	b.lt	LBB0_16
; %bb.15:
	mov	x0, x19
	bl	_skl_update_scaler_crtc
	cbnz	w0, LBB0_21
LBB0_16:
	mov	x0, x22
	bl	_HAS_GMCH
	ldr	w2, [x24]
	cbz	x0, LBB0_18
; %bb.17:
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	mov	x1, x19
	bl	_intel_gmch_panel_fitting
	b	LBB0_19
LBB0_18:
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	mov	x1, x19
	bl	_intel_pch_panel_fitting
LBB0_19:
	ldr	w8, [x26]
Lloh14:
	adrp	x9, _DRM_MODE_FLAG_DBLSCAN@GOTPAGE
Lloh15:
	ldr	x9, [x9, _DRM_MODE_FLAG_DBLSCAN@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_22
LBB0_20:
Lloh17:
	adrp	x8, _EINVAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_21:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_22:
	mov	x0, x22
	bl	_HAS_GMCH
	ldr	w8, [x26]
	cbz	x0, LBB0_24
; %bb.23:
Lloh20:
	adrp	x9, _DRM_MODE_FLAG_INTERLACE@GOTPAGE
Lloh21:
	ldr	x9, [x9, _DRM_MODE_FLAG_INTERLACE@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_20
LBB0_24:
Lloh23:
	adrp	x9, _DRM_MODE_FLAG_DBLCLK@GOTPAGE
Lloh24:
	ldr	x9, [x9, _DRM_MODE_FLAG_DBLCLK@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_20
; %bb.25:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x24
	bl	_intel_dp_compute_link_config
	tbnz	w0, #31, LBB0_21
; %bb.26:
	mov	x0, x19
	mov	x1, x24
	bl	_intel_dp_limited_color_range
	str	w0, [x19, #56]
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_28
; %bb.27:
	ldr	w24, [x19, #40]
	b	LBB0_29
LBB0_28:
	ldr	w1, [x19, #32]
	mov	x0, x19
	bl	_intel_dp_output_bpp
	mov	x24, x0
LBB0_29:
	ldr	w23, [sp, #4]                   ; 4-byte Folded Reload
	ldr	w2, [x19, #72]
	ldp	w3, w1, [x19, #20]
	add	x4, x19, #28
	ldr	w6, [x19, #12]
	mov	x0, x24
	mov	x5, x23
	bl	_intel_link_compute_m_n
	ldr	x8, [x28]
	cbz	x8, LBB0_32
; %bb.30:
	ldr	x9, [x22]
Lloh26:
	adrp	x10, _SEAMLESS_DRRS_SUPPORT@GOTPAGE
Lloh27:
	ldr	x10, [x10, _SEAMLESS_DRRS_SUPPORT@GOTPAGEOFF]
Lloh28:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_32
; %bb.31:
	mov	w9, #1
	str	w9, [x19, #4]
	ldr	w2, [x8]
	ldp	w3, w1, [x19, #20]
	add	x4, x19, #16
	ldr	w6, [x19, #12]
	mov	x0, x24
	mov	x5, x23
	bl	_intel_link_compute_m_n
LBB0_32:
	mov	x0, x22
	bl	_HAS_DDI
	cbnz	w0, LBB0_34
; %bb.33:
	mov	x0, x20
	mov	x1, x19
	bl	_intel_dp_set_clock
LBB0_34:
	mov	x0, x21
	mov	x1, x19
	bl	_intel_psr_compute_config
	mov	w0, #0
	b	LBB0_21
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_DP_DPCD_QUIRK_CONSTANT_N,4,2   ; @DP_DPCD_QUIRK_CONSTANT_N
	.comm	_PORT_A,4,2                     ; @PORT_A
	.comm	_INTEL_OUTPUT_FORMAT_RGB,4,2    ; @INTEL_OUTPUT_FORMAT_RGB
	.comm	_HDMI_AUDIO_AUTO,8,3            ; @HDMI_AUDIO_AUTO
	.comm	_HDMI_AUDIO_ON,8,3              ; @HDMI_AUDIO_ON
	.comm	_DRM_MODE_FLAG_DBLSCAN,4,2      ; @DRM_MODE_FLAG_DBLSCAN
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_DRM_MODE_FLAG_INTERLACE,4,2    ; @DRM_MODE_FLAG_INTERLACE
	.comm	_DRM_MODE_FLAG_DBLCLK,4,2       ; @DRM_MODE_FLAG_DBLCLK
	.comm	_SEAMLESS_DRRS_SUPPORT,8,3      ; @SEAMLESS_DRRS_SUPPORT
.subsections_via_symbols
