	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_dp_init_link_config      ## -- Begin function intel_dp_init_link_config
	.p2align	4, 0x90
_intel_dp_init_link_config:             ## @intel_dp_init_link_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %rdi
	movq	_DP_LINK_CONFIGURATION_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_memset
	movl	20(%rbx), %ecx
	movq	8(%rbx), %rax
	movl	%ecx, (%rax)
	movl	16(%rbx), %ecx
	movl	%ecx, 4(%rax)
	movq	_DP_SET_ANSI_8B10B@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, 32(%rax)
	movq	(%rbx), %rdx
	movq	_DP_DPCD_REV@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	cmpl	$17, (%rdx,%rsi,4)
	jl	LBB0_3
## %bb.1:
	movq	_DP_MAX_LANE_COUNT@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movq	_DP_ENHANCED_FRAME_CAP@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	testl	%edi, (%rdx,%rsi,4)
	je	LBB0_3
## %bb.2:
	movq	_DP_LANE_COUNT_ENHANCED_FRAME_EN@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movl	%ecx, 4(%rax)
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DP_LINK_CONFIGURATION_SIZE,4,2 ## @DP_LINK_CONFIGURATION_SIZE
	.comm	_DP_SET_ANSI_8B10B,4,2          ## @DP_SET_ANSI_8B10B
	.comm	_DP_DPCD_REV,8,3                ## @DP_DPCD_REV
	.comm	_DP_MAX_LANE_COUNT,8,3          ## @DP_MAX_LANE_COUNT
	.comm	_DP_ENHANCED_FRAME_CAP,4,2      ## @DP_ENHANCED_FRAME_CAP
	.comm	_DP_LANE_COUNT_ENHANCED_FRAME_EN,4,2 ## @DP_LANE_COUNT_ENHANCED_FRAME_EN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_dp_init_link_config      ; -- Begin function intel_dp_init_link_config
	.p2align	2
_intel_dp_init_link_config:             ; @intel_dp_init_link_config
	.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, x0
	ldr	x0, [x0, #8]
Lloh0:
	adrp	x8, _DP_LINK_CONFIGURATION_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DP_LINK_CONFIGURATION_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_memset
	ldr	w9, [x19, #20]
	ldp	x10, x8, [x19]
	str	w9, [x8]
	ldr	w9, [x19, #16]
	str	w9, [x8, #4]
Lloh3:
	adrp	x11, _DP_SET_ANSI_8B10B@GOTPAGE
Lloh4:
	ldr	x11, [x11, _DP_SET_ANSI_8B10B@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x11]
	str	w11, [x8, #32]
Lloh6:
	adrp	x11, _DP_DPCD_REV@GOTPAGE
Lloh7:
	ldr	x11, [x11, _DP_DPCD_REV@GOTPAGEOFF]
Lloh8:
	ldr	x11, [x11]
	ldr	w11, [x10, x11, lsl #2]
	cmp	w11, #17
	b.lt	LBB0_3
; %bb.1:
Lloh9:
	adrp	x11, _DP_MAX_LANE_COUNT@GOTPAGE
Lloh10:
	ldr	x11, [x11, _DP_MAX_LANE_COUNT@GOTPAGEOFF]
Lloh11:
	ldr	x11, [x11]
	ldr	w10, [x10, x11, lsl #2]
Lloh12:
	adrp	x11, _DP_ENHANCED_FRAME_CAP@GOTPAGE
Lloh13:
	ldr	x11, [x11, _DP_ENHANCED_FRAME_CAP@GOTPAGEOFF]
Lloh14:
	ldr	w11, [x11]
	tst	w11, w10
	b.eq	LBB0_3
; %bb.2:
Lloh15:
	adrp	x10, _DP_LANE_COUNT_ENHANCED_FRAME_EN@GOTPAGE
Lloh16:
	ldr	x10, [x10, _DP_LANE_COUNT_ENHANCED_FRAME_EN@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	orr	w9, w10, w9
	str	w9, [x8, #4]
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_DP_LINK_CONFIGURATION_SIZE,4,2 ; @DP_LINK_CONFIGURATION_SIZE
	.comm	_DP_SET_ANSI_8B10B,4,2          ; @DP_SET_ANSI_8B10B
	.comm	_DP_DPCD_REV,8,3                ; @DP_DPCD_REV
	.comm	_DP_MAX_LANE_COUNT,8,3          ; @DP_MAX_LANE_COUNT
	.comm	_DP_ENHANCED_FRAME_CAP,4,2      ; @DP_ENHANCED_FRAME_CAP
	.comm	_DP_LANE_COUNT_ENHANCED_FRAME_EN,4,2 ; @DP_LANE_COUNT_ENHANCED_FRAME_EN
.subsections_via_symbols
