	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_enable_pipe
_intel_enable_pipe:                     ## @intel_enable_pipe
	.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	%rdi, %r14
	movl	16(%rdi), %edi
	callq	_to_intel_crtc
	movq	%rax, %r12
	movl	4(%rax), %edi
	callq	_to_i915
	movq	%rax, %r15
	movl	(%r14), %ebx
	movl	(%r12), %r13d
	movl	%r13d, %edi
	callq	_pipe_name
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_DRM_DEBUG_KMS
	movq	%r12, %rdi
	callq	_assert_planes_disabled
	movq	%r15, %rdi
	callq	_HAS_GMCH
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	_INTEL_OUTPUT_DSI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_intel_crtc_has_type
	movq	%r15, %rdi
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	callq	_assert_dsi_pll_enabled
	jmp	LBB0_6
LBB0_4:
	cmpq	$0, 8(%r14)
	je	LBB0_6
## %bb.5:
	movq	%r12, %rdi
	callq	_intel_crtc_pch_transcoder
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_assert_fdi_rx_pll_enabled
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_assert_fdi_tx_pll_enabled
	jmp	LBB0_6
LBB0_3:
	movl	%r13d, %esi
	callq	_assert_pll_enabled
LBB0_6:
	movq	%r12, %rdi
	callq	_trace_intel_pipe_enable
	movl	%ebx, %edi
	callq	_PIPECONF
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_I915_READ
	movq	_PIPECONF_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	testl	%eax, %esi
	je	LBB0_7
## %bb.9:
	movq	%r15, %rdi
	callq	_IS_I830
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WARN_ON                        ## TAILCALL
LBB0_7:
	orl	%eax, %esi
	movl	%ebx, %edi
	callq	_I915_WRITE
	movl	%ebx, %edi
	callq	_POSTING_READ
	movq	%r14, %rdi
	callq	_intel_crtc_max_vblank_count
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	%r12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_intel_wait_for_pipe_scanline_moving ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"enabling pipe %c\n"

	.comm	_INTEL_OUTPUT_DSI,4,2           ## @INTEL_OUTPUT_DSI
	.comm	_PIPECONF_ENABLE,4,2            ## @PIPECONF_ENABLE
	.no_dead_strip	_intel_enable_pipe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_enable_pipe
_intel_enable_pipe:                     ; @intel_enable_pipe
	.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	x20, x0
	ldr	w0, [x0, #16]
	bl	_to_intel_crtc
	mov	x19, x0
	ldr	w0, [x0, #4]
	bl	_to_i915
	mov	x21, x0
	ldr	w22, [x20]
	ldr	w23, [x19]
	mov	x0, x23
	bl	_pipe_name
	mov	x1, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
	mov	x0, x19
	bl	_assert_planes_disabled
	mov	x0, x21
	bl	_HAS_GMCH
	cbz	x0, LBB0_3
; %bb.1:
Lloh2:
	adrp	x8, _INTEL_OUTPUT_DSI@GOTPAGE
Lloh3:
	ldr	x8, [x8, _INTEL_OUTPUT_DSI@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_intel_crtc_has_type
	cbz	x0, LBB0_5
; %bb.2:
	mov	x0, x21
	bl	_assert_dsi_pll_enabled
	b	LBB0_6
LBB0_3:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_6
; %bb.4:
	mov	x0, x19
	bl	_intel_crtc_pch_transcoder
	mov	x1, x0
	mov	x0, x21
	bl	_assert_fdi_rx_pll_enabled
	mov	x0, x21
	mov	x1, x22
	bl	_assert_fdi_tx_pll_enabled
	b	LBB0_6
LBB0_5:
	mov	x0, x21
	mov	x1, x23
	bl	_assert_pll_enabled
LBB0_6:
	mov	x0, x19
	bl	_trace_intel_pipe_enable
	mov	x0, x22
	bl	_PIPECONF
	mov	x22, x0
	bl	_I915_READ
Lloh5:
	adrp	x8, _PIPECONF_ENABLE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PIPECONF_ENABLE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_8
; %bb.7:
	mov	x0, x21
	bl	_IS_I830
	cmp	w0, #0
	cset	w0, eq
	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	_WARN_ON
LBB0_8:
	orr	w1, w8, w0
	mov	x0, x22
	bl	_I915_WRITE
	mov	x0, x22
	bl	_POSTING_READ
	mov	x0, x20
	bl	_intel_crtc_max_vblank_count
	cbz	x0, LBB0_10
; %bb.9:
	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
LBB0_10:
	mov	x0, 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_wait_for_pipe_scanline_moving
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"enabling pipe %c\n"

	.comm	_INTEL_OUTPUT_DSI,4,2           ; @INTEL_OUTPUT_DSI
	.comm	_PIPECONF_ENABLE,4,2            ; @PIPECONF_ENABLE
	.no_dead_strip	_intel_enable_pipe
.subsections_via_symbols
