	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function haswell_crtc_disable
_haswell_crtc_disable:                  ## @haswell_crtc_disable
	.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	%rsi, %r14
	movq	%rdi, %rbx
	movq	8(%rdi), %r12
	movl	(%r12), %edi
	callq	_to_i915
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_to_intel_crtc
	movq	%rax, %r15
	movl	(%rbx), %r13d
	movq	%rax, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_intel_encoders_disable
	movq	%r12, %rdi
	callq	_drm_crtc_vblank_off
	movq	%r12, %rdi
	callq	_assert_vblank_disabled
	movl	%r13d, %edi
	callq	_transcoder_is_dsi
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_intel_disable_pipe
LBB0_2:
	movq	_INTEL_OUTPUT_DP_MST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_intel_crtc_has_type
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_intel_ddi_set_vc_payload_alloc
LBB0_4:
	movl	%r13d, %edi
	callq	_transcoder_is_dsi
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	_intel_ddi_disable_transcoder_func
LBB0_6:
	movq	%rbx, %rdi
	callq	_intel_dsc_disable
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_INTEL_GEN
	cmpl	$9, %eax
	jl	LBB0_8
## %bb.7:
	movq	%r15, %rdi
	callq	_skylake_scaler_disable
	jmp	LBB0_9
LBB0_8:
	movq	%rbx, %rdi
	callq	_ironlake_pfit_disable
LBB0_9:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_intel_encoders_post_disable
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_intel_encoders_post_pll_disable ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_INTEL_OUTPUT_DP_MST,4,2        ## @INTEL_OUTPUT_DP_MST
	.no_dead_strip	_haswell_crtc_disable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function haswell_crtc_disable
_haswell_crtc_disable:                  ; @haswell_crtc_disable
	.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, x1
	mov	x20, x0
	ldr	x24, [x0, #8]
	ldr	w0, [x24]
	bl	_to_i915
	mov	x22, x0
	mov	x0, x24
	bl	_to_intel_crtc
	mov	x21, x0
	ldr	w23, [x20]
	mov	x1, x20
	mov	x2, x19
	bl	_intel_encoders_disable
	mov	x0, x24
	bl	_drm_crtc_vblank_off
	mov	x0, x24
	bl	_assert_vblank_disabled
	mov	x0, x23
	bl	_transcoder_is_dsi
	cbnz	w0, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_intel_disable_pipe
LBB0_2:
Lloh0:
	adrp	x8, _INTEL_OUTPUT_DP_MST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INTEL_OUTPUT_DP_MST@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_intel_crtc_has_type
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x20
	mov	w1, #0
	bl	_intel_ddi_set_vc_payload_alloc
LBB0_4:
	mov	x0, x23
	bl	_transcoder_is_dsi
	cbnz	w0, LBB0_6
; %bb.5:
	mov	x0, x20
	bl	_intel_ddi_disable_transcoder_func
LBB0_6:
	mov	x0, x20
	bl	_intel_dsc_disable
	mov	x0, x22
	bl	_INTEL_GEN
	cmp	w0, #9
	b.lt	LBB0_8
; %bb.7:
	mov	x0, x21
	bl	_skylake_scaler_disable
	b	LBB0_9
LBB0_8:
	mov	x0, x20
	bl	_ironlake_pfit_disable
LBB0_9:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_intel_encoders_post_disable
	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_encoders_post_pll_disable
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_INTEL_OUTPUT_DP_MST,4,2        ; @INTEL_OUTPUT_DP_MST
	.no_dead_strip	_haswell_crtc_disable
.subsections_via_symbols
