	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_mst_pre_enable_dp
_intel_mst_pre_enable_dp:               ## @intel_mst_pre_enable_dp
	.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	$24, %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, %r13
	callq	_enc_to_mst
	movq	%rax, %r14
	movq	8(%rax), %rbx
	leaq	16(%rbx), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	(%r13), %edi
	callq	_to_i915
	movl	(%rbx), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	(%r15), %edi
	callq	_to_intel_connector
	movq	%rax, %r15
	movq	%r13, 8(%rax)
	movq	%rax, (%r14)
	movq	16(%rbx), %rsi
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_KMS
	cmpq	$0, 16(%rbx)
	jne	LBB0_2
## %bb.1:
	movq	_DRM_MODE_DPMS_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_intel_dp_sink_dpms
LBB0_2:
	leaq	24(%rbx), %r13
	movl	(%r15), %esi
	movq	%r13, %rdi
	movl	$1, %edx
	callq	_drm_dp_send_power_updown_phy
	cmpq	$0, 16(%rbx)
	jne	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	*8(%rbx)
LBB0_4:
	movl	(%r15), %esi
	movl	(%r12), %ecx
	movl	4(%r12), %edx
	movq	%r13, %rdi
	callq	_drm_dp_mst_allocate_vcpi
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rdi
	callq	_DRM_ERROR
LBB0_6:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	incq	(%rax)
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	callq	_DP_TP_STATUS
	movl	%eax, %edi
	callq	_I915_READ
	movl	%eax, %r14d
	movl	%ebx, %edi
	callq	_DP_TP_STATUS
	movl	%eax, %edi
	movl	%r14d, %esi
	callq	_I915_WRITE
	movq	%r13, %rdi
	callq	_drm_dp_update_payload_part1
	movq	%r12, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_intel_ddi_enable_pipe_clock    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"active links %d\n"

	.comm	_DRM_MODE_DPMS_ON,4,2           ## @DRM_MODE_DPMS_ON
L_.str.1:                               ## @.str.1
	.asciz	"failed to allocate vcpi\n"

	.no_dead_strip	_intel_mst_pre_enable_dp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_mst_pre_enable_dp
_intel_mst_pre_enable_dp:               ; @intel_mst_pre_enable_dp
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x2
	mov	x19, x1
	mov	x22, x0
	bl	_enc_to_mst
	mov	x25, x0
	ldr	x23, [x0, #8]
	ldr	w0, [x22]
	bl	_to_i915
	ldr	w20, [x23]
	ldr	w0, [x21]
	bl	_to_intel_connector
	mov	x24, x0
	mov	x21, x23
	ldr	x1, [x21, #16]!
	str	x22, [x0, #8]
	str	x0, [x25]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
	ldr	x8, [x21]
	cbnz	x8, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _DRM_MODE_DPMS_ON@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DRM_MODE_DPMS_ON@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_intel_dp_sink_dpms
LBB0_2:
	add	x22, x23, #24
	ldr	w1, [x24]
	mov	x0, x22
	mov	w2, #1
	bl	_drm_dp_send_power_updown_phy
	ldr	x8, [x23, #16]
	cbnz	x8, LBB0_4
; %bb.3:
	ldr	x8, [x23, #8]
	mov	x0, x23
	mov	x1, x19
	mov	x2, #0
	blr	x8
LBB0_4:
	ldr	w1, [x24]
	ldp	w3, w2, [x19]
	mov	x0, x22
	bl	_drm_dp_mst_allocate_vcpi
	cbnz	w0, LBB0_6
; %bb.5:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_ERROR
LBB0_6:
	ldr	x8, [x21]
	add	x8, x8, #1
	str	x8, [x21]
	mov	x0, x20
	bl	_DP_TP_STATUS
	bl	_I915_READ
	mov	x21, x0
	mov	x0, x20
	bl	_DP_TP_STATUS
	mov	x1, x21
	bl	_I915_WRITE
	mov	x0, x22
	bl	_drm_dp_update_payload_part1
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_intel_ddi_enable_pipe_clock
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"active links %d\n"

	.comm	_DRM_MODE_DPMS_ON,4,2           ; @DRM_MODE_DPMS_ON
l_.str.1:                               ; @.str.1
	.asciz	"failed to allocate vcpi\n"

	.no_dead_strip	_intel_mst_pre_enable_dp
.subsections_via_symbols
