	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function compute_is_dual_link_lvds
_compute_is_dual_link_lvds:             ## @compute_is_dual_link_lvds
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_i915_lvds_channel_mode@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_2
## %bb.1:
	cmpl	$2, %eax
LBB0_6:
	sete	%cl
	jmp	LBB0_7
LBB0_2:
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	(%rax), %r14
	movq	_intel_dual_link_lvds@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_dmi_check_system
	movb	$1, %cl
	testq	%rax, %rax
	je	LBB0_3
LBB0_7:
	movzbl	%cl, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	movl	(%rbx), %edi
	callq	_I915_READ
	movq	_LVDS_PIPE_MASK@GOTPCREL(%rip), %rcx
	movq	_LVDS_DETECTED@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	notl	%edx
	testl	%edx, %eax
	jne	LBB0_5
## %bb.4:
	movl	(%r14), %eax
LBB0_5:
	movq	_LVDS_CLKB_POWER_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_LVDS_CLKB_POWER_UP@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_i915_lvds_channel_mode,4,2     ## @i915_lvds_channel_mode
	.comm	_intel_dual_link_lvds,4,2       ## @intel_dual_link_lvds
	.comm	_LVDS_PIPE_MASK,4,2             ## @LVDS_PIPE_MASK
	.comm	_LVDS_DETECTED,4,2              ## @LVDS_DETECTED
	.comm	_LVDS_CLKB_POWER_MASK,4,2       ## @LVDS_CLKB_POWER_MASK
	.comm	_LVDS_CLKB_POWER_UP,4,2         ## @LVDS_CLKB_POWER_UP
	.no_dead_strip	_compute_is_dual_link_lvds
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function compute_is_dual_link_lvds
_compute_is_dual_link_lvds:             ; @compute_is_dual_link_lvds
	.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
Lloh0:
	adrp	x8, _i915_lvds_channel_mode@GOTPAGE
Lloh1:
	ldr	x8, [x8, _i915_lvds_channel_mode@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	cmp	w8, #2
LBB0_2:
	cset	w0, eq
	b	LBB0_5
LBB0_3:
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	x20, [x8]
Lloh3:
	adrp	x8, _intel_dual_link_lvds@GOTPAGE
Lloh4:
	ldr	x8, [x8, _intel_dual_link_lvds@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_dmi_check_system
	cbz	x0, LBB0_6
; %bb.4:
	mov	w0, #1
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
	ldr	w0, [x19]
	bl	_I915_READ
Lloh6:
	adrp	x8, _LVDS_PIPE_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LVDS_PIPE_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _LVDS_DETECTED@GOTPAGE
Lloh10:
	ldr	x9, [x9, _LVDS_DETECTED@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bics	wzr, w0, w8
	b.ne	LBB0_8
; %bb.7:
	ldr	w0, [x20]
LBB0_8:
Lloh12:
	adrp	x8, _LVDS_CLKB_POWER_MASK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _LVDS_CLKB_POWER_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh15:
	adrp	x9, _LVDS_CLKB_POWER_UP@GOTPAGE
Lloh16:
	ldr	x9, [x9, _LVDS_CLKB_POWER_UP@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	cmp	w8, w9
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_i915_lvds_channel_mode,4,2     ; @i915_lvds_channel_mode
	.comm	_intel_dual_link_lvds,4,2       ; @intel_dual_link_lvds
	.comm	_LVDS_PIPE_MASK,4,2             ; @LVDS_PIPE_MASK
	.comm	_LVDS_DETECTED,4,2              ; @LVDS_DETECTED
	.comm	_LVDS_CLKB_POWER_MASK,4,2       ; @LVDS_CLKB_POWER_MASK
	.comm	_LVDS_CLKB_POWER_UP,4,2         ; @LVDS_CLKB_POWER_UP
	.no_dead_strip	_compute_is_dual_link_lvds
.subsections_via_symbols
