	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_ddi_max_lanes
_intel_ddi_max_lanes:                   ## @intel_ddi_max_lanes
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	8(%rdi), %edi
	callq	_to_i915
	movl	4(%r14), %r15d
	movq	%rax, %rdi
	callq	_INTEL_GEN
	movl	$4, %ebx
	cmpl	$10, %eax
	jg	LBB0_8
## %bb.1:
	movq	_PORT_A@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	cmpl	%edi, %r15d
	je	LBB0_3
## %bb.2:
	movq	_PORT_E@GOTPCREL(%rip), %rax
	movl	$4, %ebx
	cmpl	(%rax), %r15d
	jne	LBB0_6
LBB0_3:
	callq	_DDI_BUF_CTL
	movl	%eax, %edi
	callq	_I915_READ
	movq	_DDI_A_4_LANES@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.5:
	xorl	%ebx, %ebx
	cmpl	(%r12), %r15d
	sete	%bl
	shll	$2, %ebx
	jmp	LBB0_6
LBB0_4:
	movl	$2, %ebx
LBB0_6:
	movq	%r14, %rdi
	callq	_intel_ddi_a_force_4_lanes
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_KMS
	movq	_DDI_A_4_LANES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
	movl	$4, %ebx
LBB0_8:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PORT_A,4,2                     ## @PORT_A
	.comm	_PORT_E,4,2                     ## @PORT_E
	.comm	_DDI_A_4_LANES,4,2              ## @DDI_A_4_LANES
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Forcing DDI_A_4_LANES for port A\n"

	.no_dead_strip	_intel_ddi_max_lanes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_ddi_max_lanes
_intel_ddi_max_lanes:                   ; @intel_ddi_max_lanes
	.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, x0
	ldr	w0, [x0, #8]
	bl	_to_i915
	ldr	w20, [x19, #4]
	bl	_INTEL_GEN
	cmp	w0, #10
	b.gt	LBB0_8
; %bb.1:
Lloh0:
	adrp	x22, _PORT_A@GOTPAGE
Lloh1:
	ldr	x22, [x22, _PORT_A@GOTPAGEOFF]
Lloh2:
	adrp	x8, _PORT_E@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PORT_E@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh4:
	ldr	w8, [x8]
	cmp	w20, w0
	ccmp	w20, w8, #4, ne
Lloh5:
	adrp	x21, _DDI_A_4_LANES@GOTPAGE
Lloh6:
	ldr	x21, [x21, _DDI_A_4_LANES@GOTPAGEOFF]
	b.ne	LBB0_4
; %bb.2:
	bl	_DDI_BUF_CTL
	bl	_I915_READ
	ldr	w8, [x21]
	tst	w8, w0
	b.eq	LBB0_5
; %bb.3:
	ldr	w8, [x22]
	cmp	w20, w8
	cset	w8, eq
	lsl	w20, w8, #2
	b	LBB0_6
LBB0_4:
	mov	w20, #4
	b	LBB0_6
LBB0_5:
	mov	w20, #2
LBB0_6:
	mov	x0, x19
	bl	_intel_ddi_a_force_4_lanes
	cbz	x0, LBB0_9
; %bb.7:
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
	ldr	w8, [x21]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_8:
	mov	w20, #4
LBB0_9:
	mov	x0, x20
	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 AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PORT_A,4,2                     ; @PORT_A
	.comm	_PORT_E,4,2                     ; @PORT_E
	.comm	_DDI_A_4_LANES,4,2              ; @DDI_A_4_LANES
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Forcing DDI_A_4_LANES for port A\n"

	.no_dead_strip	_intel_ddi_max_lanes
.subsections_via_symbols
