	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_mst_enable_dp
_intel_mst_enable_dp:                   ## @intel_mst_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %r12
	callq	_enc_to_mst
	movq	(%rax), %rbx
	movl	(%r12), %edi
	callq	_to_i915
	movq	%rax, %r13
	movl	(%rbx), %r14d
	movl	8(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_KMS
	movl	%r14d, %edi
	callq	_DP_TP_STATUS
	movq	_DP_TP_STATUS_ACT_SENT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r13, %rdi
	movl	%eax, %esi
	movl	$1, %ecx
	callq	_intel_de_wait_for_set
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	callq	_DRM_ERROR
LBB0_2:
	addq	$4, %rbx
	movq	%rbx, %rdi
	callq	_drm_dp_check_act_status
	movq	%rbx, %rdi
	callq	_drm_dp_update_payload_part2
	cmpq	$0, (%r15)
	je	LBB0_3
## %bb.4:
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_intel_audio_codec_enable       ## TAILCALL
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"active links %d\n"

	.comm	_DP_TP_STATUS_ACT_SENT,4,2      ## @DP_TP_STATUS_ACT_SENT
L_.str.1:                               ## @.str.1
	.asciz	"Timed out waiting for ACT sent\n"

	.no_dead_strip	_intel_mst_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_enable_dp
_intel_mst_enable_dp:                   ; @intel_mst_enable_dp
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	bl	_enc_to_mst
	ldr	x24, [x0]
	ldr	w0, [x21]
	bl	_to_i915
	mov	x22, x0
	ldr	w23, [x24]
	ldr	w1, [x24, #8]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
	mov	x0, x23
	bl	_DP_TP_STATUS
	mov	x1, x0
Lloh2:
	adrp	x8, _DP_TP_STATUS_ACT_SENT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DP_TP_STATUS_ACT_SENT@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x22
	mov	w3, #1
	bl	_intel_de_wait_for_set
	cbz	x0, LBB0_2
; %bb.1:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_ERROR
LBB0_2:
	add	x22, x24, #4
	mov	x0, x22
	bl	_drm_dp_check_act_status
	mov	x0, x22
	bl	_drm_dp_update_payload_part2
	ldr	x8, [x20]
	cbz	x8, LBB0_4
; %bb.3:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	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
	b	_intel_audio_codec_enable
LBB0_4:
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"active links %d\n"

	.comm	_DP_TP_STATUS_ACT_SENT,4,2      ; @DP_TP_STATUS_ACT_SENT
l_.str.1:                               ; @.str.1
	.asciz	"Timed out waiting for ACT sent\n"

	.no_dead_strip	_intel_mst_enable_dp
.subsections_via_symbols
