	.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
	movl	%edx, %ebx
	movl	%esi, %r14d
	movq	%rdi, %r12
	callq	_intel_pipe_to_cpu_transcoder
	movl	%eax, %r15d
	movl	(%r12), %edi
	callq	_HAS_PCH_LPT
	movl	%r14d, %r13d
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_TRANSCODER_A@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_2:
	movl	(%r12), %edi
	callq	_HAS_PCH_SPLIT
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	testl	%ebx, %ebx
	je	LBB0_6
## %bb.5:
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_assert_fdi_rx_pll_enabled
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_assert_fdi_tx_pll_enabled
	jmp	LBB0_6
LBB0_3:
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_assert_pll_enabled
LBB0_6:
	movl	%r15d, %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_8
## %bb.7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	orl	%eax, %esi
	movl	%ebx, %edi
	callq	_I915_WRITE
	movl	(%r12), %edi
	movl	%r14d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_intel_wait_for_vblank          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TRANSCODER_A,4,2               ## @TRANSCODER_A
	.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	x22, x2
	mov	x19, x1
	mov	x20, x0
	bl	_intel_pipe_to_cpu_transcoder
	mov	x21, x0
	ldr	w0, [x20]
	bl	_HAS_PCH_LPT
Lloh0:
	adrp	x8, _TRANSCODER_A@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TRANSCODER_A@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w23, w19, w8, eq
	ldr	w0, [x20]
	bl	_HAS_PCH_SPLIT
	cbz	w0, LBB0_3
; %bb.1:
	cbz	w22, LBB0_4
; %bb.2:
	mov	x0, x20
	mov	x1, x23
	bl	_assert_fdi_rx_pll_enabled
	mov	x0, x20
	mov	x1, x21
	bl	_assert_fdi_tx_pll_enabled
	b	LBB0_4
LBB0_3:
	mov	x0, x20
	mov	x1, x19
	bl	_assert_pll_enabled
LBB0_4:
	mov	x0, x21
	bl	_PIPECONF
	mov	x21, x0
	bl	_I915_READ
Lloh3:
	adrp	x8, _PIPECONF_ENABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PIPECONF_ENABLE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_6
; %bb.5:
	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_6:
	orr	w1, w8, w0
	mov	x0, x21
	bl	_I915_WRITE
	ldr	w0, [x20]
	mov	x1, 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_vblank
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_TRANSCODER_A,4,2               ; @TRANSCODER_A
	.comm	_PIPECONF_ENABLE,4,2            ; @PIPECONF_ENABLE
	.no_dead_strip	_intel_enable_pipe
.subsections_via_symbols
