	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_mst_post_disable_dp
_intel_mst_post_disable_dp:             ## @intel_mst_post_disable_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, %r12
	movq	%rsi, %r14
	callq	_enc_to_mst
	movq	%rax, %r15
	movq	8(%rax), %r13
	movl	(%r12), %edi
	callq	_to_intel_connector
	movq	%rax, %r12
	movq	%r14, %rdi
	callq	_intel_ddi_disable_pipe_clock
	leaq	16(%r13), %rbx
	movq	%rbx, %rdi
	callq	_drm_dp_check_act_status
	movq	%rbx, %rdi
	callq	_drm_dp_update_payload_part2
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_drm_dp_mst_deallocate_vcpi
	movl	(%r12), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_drm_dp_send_power_updown_phy
	movq	8(%r13), %rsi
	decq	%rsi
	movq	%rsi, 8(%r13)
	movq	$0, (%r15)
	jne	LBB0_2
## %bb.1:
	leaq	8(%r13), %rdi
	movq	_DRM_MODE_DPMS_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_intel_dp_sink_dpms
	movq	%r13, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	*(%r13)
	movq	8(%r13), %rsi
LBB0_2:
	leaq	L_.str(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DRM_DEBUG_KMS                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_MODE_DPMS_OFF,4,2          ## @DRM_MODE_DPMS_OFF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"active links %d\n"

	.no_dead_strip	_intel_mst_post_disable_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_post_disable_dp
_intel_mst_post_disable_dp:             ; @intel_mst_post_disable_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	x21, x2
	mov	x19, x1
	bl	_enc_to_mst
	mov	x22, x0
	ldr	x20, [x0, #8]
	ldr	w0, [x21]
	bl	_to_intel_connector
	mov	x21, x0
	mov	x0, x19
	bl	_intel_ddi_disable_pipe_clock
	add	x23, x20, #16
	mov	x0, x23
	bl	_drm_dp_check_act_status
	mov	x0, x23
	bl	_drm_dp_update_payload_part2
	ldr	w1, [x21]
	mov	x0, x23
	bl	_drm_dp_mst_deallocate_vcpi
	ldr	w1, [x21]
	mov	x0, x23
	mov	w2, #0
	bl	_drm_dp_send_power_updown_phy
	mov	x0, x20
	ldr	x8, [x0, #8]!
	str	xzr, [x22]
	subs	x1, x8, #1
	str	x1, [x0]
	b.ne	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _DRM_MODE_DPMS_OFF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRM_MODE_DPMS_OFF@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_intel_dp_sink_dpms
	ldr	x8, [x20]
	mov	x0, x20
	mov	x1, x19
	mov	x2, #0
	blr	x8
	ldr	x1, [x20, #8]
LBB0_2:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	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	_DRM_DEBUG_KMS
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_MODE_DPMS_OFF,4,2          ; @DRM_MODE_DPMS_OFF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"active links %d\n"

	.no_dead_strip	_intel_mst_post_disable_dp
.subsections_via_symbols
