	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dc_link_set_preferred_link_settings ## -- Begin function dc_link_set_preferred_link_settings
	.p2align	4, 0x90
_dc_link_set_preferred_link_settings:   ## @dc_link_set_preferred_link_settings
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %rbx
	movq	%rdi, %r14
	movups	(%rsi), %xmm0
	movaps	%xmm0, -32(%rbp)
	movups	(%rsi), %xmm0
	movups	%xmm0, 16(%rdx)
	movl	8(%rdx), %edi
	callq	_dc_is_dp_signal
	testl	%eax, %eax
	je	LBB0_14
## %bb.1:
	cmpq	$0, (%rbx)
	jle	LBB0_2
LBB0_14:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	movq	_MAX_PIPES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_3
## %bb.9:
	movq	(%r14), %rcx
	movq	(%rcx), %rdx
	xorl	%ecx, %ecx
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=1
	incq	%rcx
	cmpq	%rcx, %rax
	je	LBB0_14
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rdx,%rcx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	8(%rdi), %rsi
	testq	%rsi, %rsi
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpq	%rbx, %rsi
	jne	LBB0_13
## %bb.4:
	cmpl	%eax, %ecx
	je	LBB0_14
	jmp	LBB0_5
LBB0_3:
	xorl	%ecx, %ecx
                                        ## implicit-def: $rdi
	cmpl	%eax, %ecx
	je	LBB0_14
LBB0_5:
	cmpq	$0, (%rdi)
	jne	LBB0_14
## %bb.6:
	leaq	-32(%rbp), %rsi
	callq	_decide_link_settings
	movq	-32(%rbp), %rax
	movq	_LANE_COUNT_UNKNOWN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_14
## %bb.7:
	movq	-24(%rbp), %rax
	movq	_LINK_RATE_UNKNOWN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_14
## %bb.8:
	leaq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_dp_retrain_link_dp_test
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_PIPES,4,2                  ## @MAX_PIPES
	.comm	_LANE_COUNT_UNKNOWN,8,3         ## @LANE_COUNT_UNKNOWN
	.comm	_LINK_RATE_UNKNOWN,8,3          ## @LINK_RATE_UNKNOWN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dc_link_set_preferred_link_settings ; -- Begin function dc_link_set_preferred_link_settings
	.p2align	2
_dc_link_set_preferred_link_settings:   ; @dc_link_set_preferred_link_settings
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x2
	mov	x20, x0
	ldr	q0, [x1]
	str	q0, [sp]
	str	q0, [x2, #16]
	ldr	w0, [x2, #8]
	bl	_dc_is_dp_signal
	cbz	w0, LBB0_2
; %bb.1:
	ldr	x8, [x19]
	cmp	x8, #0
	b.le	LBB0_3
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_3:
Lloh0:
	adrp	x8, _MAX_PIPES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_PIPES@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.4:
	mov	x9, #0
	ldr	x10, [x20]
	ldr	x10, [x10]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x9, x9, #1
	cmp	x8, x9
	b.eq	LBB0_2
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x10, x9, lsl #3]
	cbz	x0, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x11, [x0, #8]
	cmp	x11, #0
	ccmp	x11, x19, #0, ne
	b.ne	LBB0_5
; %bb.8:
	cmp	w9, w8
	b.eq	LBB0_2
	b	LBB0_10
LBB0_9:
	mov	w9, #0
                                        ; implicit-def: $x0
	cmp	w9, w8
	b.eq	LBB0_2
LBB0_10:
	ldr	x8, [x0]
	cbnz	x8, LBB0_2
; %bb.11:
	mov	x1, sp
	bl	_decide_link_settings
	ldr	x8, [sp]
Lloh3:
	adrp	x9, _LANE_COUNT_UNKNOWN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _LANE_COUNT_UNKNOWN@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.12:
	ldr	x8, [sp, #8]
Lloh6:
	adrp	x9, _LINK_RATE_UNKNOWN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _LINK_RATE_UNKNOWN@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.13:
	mov	x1, sp
	mov	x0, x19
	mov	w2, #0
	bl	_dp_retrain_link_dp_test
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_PIPES,4,2                  ; @MAX_PIPES
	.comm	_LANE_COUNT_UNKNOWN,8,3         ; @LANE_COUNT_UNKNOWN
	.comm	_LINK_RATE_UNKNOWN,8,3          ; @LINK_RATE_UNKNOWN
.subsections_via_symbols
