	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_lvds_port_enabled        ## -- Begin function intel_lvds_port_enabled
	.p2align	4, 0x90
_intel_lvds_port_enabled:               ## @intel_lvds_port_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
	movq	%rdx, %r14
	movq	%rdi, %r15
	movl	%esi, %edi
	callq	_I915_READ
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_HAS_PCH_CPT
	testq	%rax, %rax
	movq	_LVDS_PIPE_SEL_MASK_CPT@GOTPCREL(%rip), %rax
	cmoveq	_LVDS_PIPE_SEL_MASK@GOTPCREL(%rip), %rax
	movq	_LVDS_PIPE_SEL_SHIFT_CPT@GOTPCREL(%rip), %rcx
	cmoveq	_LVDS_PIPE_SEL_SHIFT@GOTPCREL(%rip), %rcx
	movl	(%rax), %eax
	andl	%ebx, %eax
	movb	(%rcx), %cl
	sarl	%cl, %eax
	movl	%eax, (%r14)
	movq	_LVDS_PORT_EN@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LVDS_PIPE_SEL_MASK_CPT,4,2     ## @LVDS_PIPE_SEL_MASK_CPT
	.comm	_LVDS_PIPE_SEL_SHIFT_CPT,4,2    ## @LVDS_PIPE_SEL_SHIFT_CPT
	.comm	_LVDS_PIPE_SEL_MASK,4,2         ## @LVDS_PIPE_SEL_MASK
	.comm	_LVDS_PIPE_SEL_SHIFT,4,2        ## @LVDS_PIPE_SEL_SHIFT
	.comm	_LVDS_PORT_EN,4,2               ## @LVDS_PORT_EN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_lvds_port_enabled        ; -- Begin function intel_lvds_port_enabled
	.p2align	2
_intel_lvds_port_enabled:               ; @intel_lvds_port_enabled
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	mov	x20, x0
	mov	x0, x1
	bl	_I915_READ
	mov	x21, x0
	mov	x0, x20
	bl	_HAS_PCH_CPT
Lloh0:
	adrp	x8, _LVDS_PIPE_SEL_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LVDS_PIPE_SEL_MASK@GOTPAGEOFF]
Lloh2:
	adrp	x9, _LVDS_PIPE_SEL_MASK_CPT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _LVDS_PIPE_SEL_MASK_CPT@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
Lloh4:
	adrp	x9, _LVDS_PIPE_SEL_SHIFT@GOTPAGE
Lloh5:
	ldr	x9, [x9, _LVDS_PIPE_SEL_SHIFT@GOTPAGEOFF]
	and	w8, w8, w21
Lloh6:
	adrp	x10, _LVDS_PIPE_SEL_SHIFT_CPT@GOTPAGE
Lloh7:
	ldr	x10, [x10, _LVDS_PIPE_SEL_SHIFT_CPT@GOTPAGEOFF]
	csel	x9, x9, x10, eq
	ldr	w9, [x9]
	asr	w8, w8, w9
	str	w8, [x19]
Lloh8:
	adrp	x8, _LVDS_PORT_EN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LVDS_PORT_EN@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	and	w0, w8, w21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_LVDS_PIPE_SEL_MASK_CPT,4,2     ; @LVDS_PIPE_SEL_MASK_CPT
	.comm	_LVDS_PIPE_SEL_SHIFT_CPT,4,2    ; @LVDS_PIPE_SEL_SHIFT_CPT
	.comm	_LVDS_PIPE_SEL_MASK,4,2         ; @LVDS_PIPE_SEL_MASK
	.comm	_LVDS_PIPE_SEL_SHIFT,4,2        ; @LVDS_PIPE_SEL_SHIFT
	.comm	_LVDS_PORT_EN,4,2               ; @LVDS_PORT_EN
.subsections_via_symbols
