	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_disable_pipe
_intel_disable_pipe:                    ## @intel_disable_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, %r15
	movl	16(%rdi), %edi
	callq	_to_intel_crtc
	movq	%rax, %rbx
	movl	4(%rax), %edi
	callq	_to_i915
	movq	%rax, %r14
	movl	(%r15), %r12d
	movl	(%rbx), %edi
	callq	_pipe_name
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_DRM_DEBUG_KMS
	movq	%rbx, %rdi
	callq	_assert_planes_disabled
	movq	%rbx, %rdi
	callq	_trace_intel_pipe_disable
	movl	%r12d, %edi
	callq	_PIPECONF
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_I915_READ
	movq	_PIPECONF_ENABLE@GOTPCREL(%rip), %r13
	testl	%eax, (%r13)
	je	LBB0_2
## %bb.1:
	movq	_PIPECONF_DOUBLE_WIDE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	xorl	%ebx, %ebx
	cmpq	$1, 8(%r15)
	movq	%r14, %rdi
	movl	$0, %r14d
	sbbl	%r14d, %r14d
	orl	%ecx, %r14d
	andl	%eax, %r14d
	callq	_IS_I830
	movl	(%r13), %ecx
	notl	%ecx
	negl	%eax
	sbbl	%ebx, %ebx
	orl	%ecx, %ebx
	andl	%r14d, %ebx
	movl	%r12d, %edi
	movl	%ebx, %esi
	callq	_I915_WRITE
	testl	%ebx, (%r13)
	je	LBB0_3
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_intel_wait_for_pipe_off        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"disabling pipe %c\n"

	.comm	_PIPECONF_ENABLE,4,2            ## @PIPECONF_ENABLE
	.comm	_PIPECONF_DOUBLE_WIDE,4,2       ## @PIPECONF_DOUBLE_WIDE
	.no_dead_strip	_intel_disable_pipe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_disable_pipe
_intel_disable_pipe:                    ; @intel_disable_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	x19, x0
	ldr	w0, [x0, #16]
	bl	_to_intel_crtc
	mov	x21, x0
	ldr	w0, [x0, #4]
	bl	_to_i915
	mov	x20, x0
	ldr	w22, [x19]
	ldr	w0, [x21]
	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, x21
	bl	_assert_planes_disabled
	mov	x0, x21
	bl	_trace_intel_pipe_disable
	mov	x0, x22
	bl	_PIPECONF
	mov	x21, x0
	bl	_I915_READ
Lloh2:
	adrp	x22, _PIPECONF_ENABLE@GOTPAGE
Lloh3:
	ldr	x22, [x22, _PIPECONF_ENABLE@GOTPAGEOFF]
	ldr	w8, [x22]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
Lloh4:
	adrp	x8, _PIPECONF_DOUBLE_WIDE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PIPECONF_DOUBLE_WIDE@GOTPAGEOFF]
	ldr	x9, [x19, #8]
Lloh6:
	ldr	w8, [x8]
	cmp	x9, #0
	mov	w23, #-1
	csinv	w8, w23, w8, eq
	and	w24, w8, w0
	mov	x0, x20
	bl	_IS_I830
	ldr	w8, [x22]
	cmp	w0, #0
	csinv	w8, w23, w8, ne
	and	w20, w24, w8
	mov	x0, x21
	mov	x1, x20
	bl	_I915_WRITE
	ldr	w8, [x22]
	tst	w20, w8
	b.eq	LBB0_3
LBB0_2:
	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_3:
	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_off
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"disabling pipe %c\n"

	.comm	_PIPECONF_ENABLE,4,2            ; @PIPECONF_ENABLE
	.comm	_PIPECONF_DOUBLE_WIDE,4,2       ; @PIPECONF_DOUBLE_WIDE
	.no_dead_strip	_intel_disable_pipe
.subsections_via_symbols
