	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pipe_is_enabled                ## -- Begin function pipe_is_enabled
	.p2align	4, 0x90
_pipe_is_enabled:                       ## @pipe_is_enabled
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	_PIPE_A@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	setg	%al
	movq	_I915_MAX_PIPES@GOTPCREL(%rip), %rcx
	cmpl	%esi, (%rcx)
	movq	%rdi, %r14
	setle	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_6
LBB0_2:
	movl	%r15d, %edi
	callq	_PIPECONF
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_vgpu_vreg_t
	movq	_PIPECONF_ENABLE@GOTPCREL(%rip), %rcx
	movl	$1, %ebx
	testl	%eax, (%rcx)
	jne	LBB0_6
## %bb.3:
	movq	%r14, %rdi
	callq	_edp_pipe_is_enabled
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	callq	_get_edp_pipe
	cmpl	%r15d, %eax
	je	LBB0_6
LBB0_5:
	xorl	%ebx, %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PIPE_A,4,2                     ## @PIPE_A
	.comm	_I915_MAX_PIPES,4,2             ## @I915_MAX_PIPES
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_PIPECONF_ENABLE,4,2            ## @PIPECONF_ENABLE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pipe_is_enabled                ; -- Begin function pipe_is_enabled
	.p2align	2
_pipe_is_enabled:                       ; @pipe_is_enabled
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _PIPE_A@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PIPE_A@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
Lloh3:
	adrp	x8, _I915_MAX_PIPES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _I915_MAX_PIPES@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ccmp	w8, w1, #4, le
	cset	w0, le
	bl	_WARN_ON
	cbz	x0, LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_2:
	mov	x0, x19
	bl	_PIPECONF
	mov	x1, x0
	mov	x0, x20
	bl	_vgpu_vreg_t
Lloh9:
	adrp	x8, _PIPECONF_ENABLE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PIPECONF_ENABLE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_4
LBB0_3:
	mov	w0, #1
	b	LBB0_7
LBB0_4:
	mov	x0, x20
	bl	_edp_pipe_is_enabled
	cbz	x0, LBB0_6
; %bb.5:
	mov	x0, x20
	bl	_get_edp_pipe
	cmp	w0, w19
	b.eq	LBB0_3
LBB0_6:
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_PIPE_A,4,2                     ; @PIPE_A
	.comm	_I915_MAX_PIPES,4,2             ; @I915_MAX_PIPES
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_PIPECONF_ENABLE,4,2            ; @PIPECONF_ENABLE
.subsections_via_symbols
