	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_lvds_compute_config
_intel_lvds_compute_config:             ## @intel_lvds_compute_config
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	callq	_to_i915
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_to_lvds_encoder
	movq	%rax, %r14
	movq	8(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	16(%r15), %edi
	callq	_to_intel_crtc
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_INTEL_GEN
	cmpl	$3, %eax
	jg	LBB0_3
## %bb.1:
	cmpq	$0, (%rbx)
	je	LBB0_2
LBB0_3:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	leaq	20(%r15), %r13
	movq	(%r14), %rax
	movq	_LVDS_A3_POWER_UP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movl	$24, %eax
	movl	$18, %ebx
	cmovel	%eax, %ebx
	movl	(%r15), %esi
	cmpl	%esi, %ebx
	je	LBB0_6
## %bb.4:
	cmpl	$0, 12(%r15)
	jne	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %edx
	callq	_DRM_DEBUG_KMS
	movl	%ebx, (%r15)
LBB0_6:
	movq	_INTEL_OUTPUT_FORMAT_RGB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	%r13, %rsi
	callq	_intel_fixed_panel_mode
	movq	_DRM_MODE_FLAG_DBLSCAN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 20(%r15)
	jne	LBB0_7
## %bb.8:
	movq	%r12, %rdi
	callq	_HAS_PCH_SPLIT
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movl	$1, 4(%r15)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_intel_pch_panel_fitting
	jmp	LBB0_11
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_ERROR
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_12
LBB0_10:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_intel_gmch_panel_fitting
LBB0_11:
	xorl	%eax, %eax
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can't support LVDS on pipe A\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_LVDS_A3_POWER_UP,8,3           ## @LVDS_A3_POWER_UP
L_.str.1:                               ## @.str.1
	.asciz	"forcing display bpp (was %d) to LVDS (%d)\n"

	.comm	_INTEL_OUTPUT_FORMAT_RGB,4,2    ## @INTEL_OUTPUT_FORMAT_RGB
	.comm	_DRM_MODE_FLAG_DBLSCAN,4,2      ## @DRM_MODE_FLAG_DBLSCAN
	.no_dead_strip	_intel_lvds_compute_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_lvds_compute_config
_intel_lvds_compute_config:             ; @intel_lvds_compute_config
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	ldr	w0, [x0]
	bl	_to_i915
	mov	x22, x0
	mov	x0, x21
	bl	_to_lvds_encoder
	mov	x24, x0
	ldr	x25, [x0, #8]
	ldr	w0, [x19, #16]
	bl	_to_intel_crtc
	mov	x21, x0
	mov	x0, x22
	bl	_INTEL_GEN
	cmp	w0, #3
	b.gt	LBB0_2
; %bb.1:
	ldr	x8, [x21]
	cbz	x8, LBB0_8
LBB0_2:
	add	x23, x19, #20
	ldr	x8, [x24]
Lloh0:
	adrp	x9, _LVDS_A3_POWER_UP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _LVDS_A3_POWER_UP@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	mov	w8, #18
	mov	w9, #24
	csel	w24, w9, w8, eq
	ldr	w1, [x19]
	cmp	w24, w1
	b.eq	LBB0_5
; %bb.3:
	ldr	w8, [x19, #12]
	cbnz	w8, LBB0_5
; %bb.4:
Lloh3:
	adrp	x0, l_.str.1@PAGE
Lloh4:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x2, x24
	bl	_DRM_DEBUG_KMS
	str	w24, [x19]
LBB0_5:
Lloh5:
	adrp	x8, _INTEL_OUTPUT_FORMAT_RGB@GOTPAGE
Lloh6:
	ldr	x8, [x8, _INTEL_OUTPUT_FORMAT_RGB@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	ldr	w0, [x25]
	mov	x1, x23
	bl	_intel_fixed_panel_mode
	ldr	w8, [x19, #20]
Lloh8:
	adrp	x9, _DRM_MODE_FLAG_DBLSCAN@GOTPAGE
Lloh9:
	ldr	x9, [x9, _DRM_MODE_FLAG_DBLSCAN@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_9
; %bb.6:
	mov	x0, x22
	bl	_HAS_PCH_SPLIT
	cbz	x0, LBB0_10
; %bb.7:
	mov	w8, #1
	str	w8, [x19, #4]
	ldr	w2, [x20]
	mov	x0, x21
	mov	x1, x19
	bl	_intel_pch_panel_fitting
	b	LBB0_11
LBB0_8:
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
LBB0_9:
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_12
LBB0_10:
	ldr	w2, [x20]
	mov	x0, x21
	mov	x1, x19
	bl	_intel_gmch_panel_fitting
LBB0_11:
	mov	w0, #0
LBB0_12:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can't support LVDS on pipe A\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_LVDS_A3_POWER_UP,8,3           ; @LVDS_A3_POWER_UP
l_.str.1:                               ; @.str.1
	.asciz	"forcing display bpp (was %d) to LVDS (%d)\n"

	.comm	_INTEL_OUTPUT_FORMAT_RGB,4,2    ; @INTEL_OUTPUT_FORMAT_RGB
	.comm	_DRM_MODE_FLAG_DBLSCAN,4,2      ; @DRM_MODE_FLAG_DBLSCAN
	.no_dead_strip	_intel_lvds_compute_config
.subsections_via_symbols
