	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_dp_mst_compute_config
_intel_dp_mst_compute_config:           ## @intel_dp_mst_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	$40, %rsp
	.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, %rbx
	movq	%rdi, %r13
	movl	(%rdi), %edi
	callq	_to_i915
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_enc_to_mst
	movq	(%rax), %r15
	movl	(%r12), %edi
	callq	_to_intel_connector
	movq	%rax, %r14
	movq	%r12, %rdi
	callq	_to_intel_digital_connector_state
	movq	_DRM_MODE_FLAG_DBLSCAN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 28(%rbx)
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_9
LBB0_2:
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movq	(%r14), %rsi
	movq	_INTEL_OUTPUT_FORMAT_RGB@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 24(%rbx)
	movl	$0, (%rbx)
	movq	(%rax), %rcx
	movq	_HDMI_AUDIO_AUTO@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_4
## %bb.3:
	movq	%r15, %r14
	movq	%r15, %rdi
	callq	_drm_dp_mst_port_has_audio
	jmp	LBB0_5
LBB0_4:
	movq	_HDMI_AUDIO_ON@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	sete	%al
	movq	%r15, %r14
LBB0_5:
	movl	%eax, 4(%rbx)
	movq	%r14, %rdi
	callq	_intel_dp_max_link_rate
	movl	%eax, -48(%rbp)
	movl	%eax, -44(%rbp)
	movq	%r14, %rdi
	callq	_intel_dp_max_lane_count
	movl	%eax, -56(%rbp)
	movl	%eax, -52(%rbp)
	movq	%rbx, %rdi
	callq	_intel_dp_min_bpp
	movl	%eax, -60(%rbp)
	movl	20(%rbx), %edi
	movl	$24, %esi
	callq	_min
	movl	%eax, -64(%rbp)
	movq	%r14, %rdi
	leaq	-64(%rbp), %r14
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_intel_dp_adjust_compliance_config
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movq	%r12, %rdx
	movq	%r14, %rcx
	callq	_intel_dp_mst_compute_link_config
	testl	%eax, %eax
	jne	LBB0_9
## %bb.6:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_intel_dp_limited_color_range
	movl	%eax, 16(%rbx)
	movq	%r13, %r14
	movq	%r13, %rdi
	callq	_IS_GEN9_LP
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movl	8(%rbx), %edi
	callq	_bxt_ddi_phy_calc_lane_lat_optim_mask
	movl	%eax, 12(%rbx)
LBB0_8:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_intel_ddi_compute_min_voltage_level
	xorl	%eax, %eax
LBB0_9:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_MODE_FLAG_DBLSCAN,4,2      ## @DRM_MODE_FLAG_DBLSCAN
	.comm	_EINVAL,4,2                     ## @EINVAL
	.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
	.no_dead_strip	_intel_dp_mst_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_dp_mst_compute_config
_intel_dp_mst_compute_config:           ; @intel_dp_mst_compute_config
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x22, x0
	ldr	w0, [x0]
	bl	_to_i915
	mov	x20, x0
	mov	x0, x22
	bl	_enc_to_mst
	ldr	x23, [x0]
	ldr	w0, [x21]
	bl	_to_intel_connector
	mov	x24, x0
	mov	x0, x21
	bl	_to_intel_digital_connector_state
	ldr	w8, [x19, #28]
Lloh0:
	adrp	x9, _DRM_MODE_FLAG_DBLSCAN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DRM_MODE_FLAG_DBLSCAN@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_2:
	ldr	x1, [x24]
Lloh6:
	adrp	x8, _INTEL_OUTPUT_FORMAT_RGB@GOTPAGE
Lloh7:
	ldr	x8, [x8, _INTEL_OUTPUT_FORMAT_RGB@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x19, #24]
	str	wzr, [x19]
	ldr	x8, [x0]
Lloh9:
	adrp	x9, _HDMI_AUDIO_AUTO@GOTPAGE
Lloh10:
	ldr	x9, [x9, _HDMI_AUDIO_AUTO@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x23
	bl	_drm_dp_mst_port_has_audio
	b	LBB0_5
LBB0_4:
Lloh12:
	adrp	x9, _HDMI_AUDIO_ON@GOTPAGE
Lloh13:
	ldr	x9, [x9, _HDMI_AUDIO_ON@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
LBB0_5:
	str	w0, [x19, #4]
	mov	x0, x23
	bl	_intel_dp_max_link_rate
	stp	w0, w0, [sp, #24]
	mov	x0, x23
	bl	_intel_dp_max_lane_count
	stp	w0, w0, [sp, #16]
	mov	x0, x19
	bl	_intel_dp_min_bpp
	str	w0, [sp, #12]
	ldr	w0, [x19, #20]
	mov	w1, #24
	bl	_min
	str	w0, [sp, #8]
	add	x2, sp, #8
	mov	x0, x23
	mov	x1, x19
	bl	_intel_dp_adjust_compliance_config
	add	x3, sp, #8
	mov	x0, x22
	mov	x1, x19
	mov	x2, x21
	bl	_intel_dp_mst_compute_link_config
	cbnz	w0, LBB0_9
; %bb.6:
	mov	x0, x19
	mov	x1, x21
	bl	_intel_dp_limited_color_range
	str	w0, [x19, #16]
	mov	x0, x20
	bl	_IS_GEN9_LP
	cbz	x0, LBB0_8
; %bb.7:
	ldr	w0, [x19, #8]
	bl	_bxt_ddi_phy_calc_lane_lat_optim_mask
	str	w0, [x19, #12]
LBB0_8:
	mov	x0, x20
	mov	x1, x19
	bl	_intel_ddi_compute_min_voltage_level
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_MODE_FLAG_DBLSCAN,4,2      ; @DRM_MODE_FLAG_DBLSCAN
	.comm	_EINVAL,4,2                     ; @EINVAL
	.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
	.no_dead_strip	_intel_dp_mst_compute_config
.subsections_via_symbols
