	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dc_link_dp_sync_lt_attempt     ## -- Begin function dc_link_dp_sync_lt_attempt
	.p2align	4, 0x90
_dc_link_dp_sync_lt_attempt:            ## @dc_link_dp_sync_lt_attempt
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	leaq	-40(%rbp), %rcx
	callq	_initialize_training_settings
	movq	16(%r14), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_set_dp_mst_mode
LBB0_2:
	movl	(%r12), %esi
	movq	%r12, %rdi
	callq	_dp_disable_link_phy
	movq	%r12, %rdi
	callq	_get_clock_source_id
	movl	(%r12), %esi
	movq	%r12, %rdi
	movl	%eax, %edx
	movq	%r15, %rcx
	callq	_dp_enable_link_phy
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	cmpq	$0, (%rax)
	je	LBB0_6
## %bb.4:
	movq	_DP_PANEL_MODE_EDP@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	%r12, %rdi
	callq	_dp_get_panel_mode
	movl	%eax, %esi
	jmp	LBB0_8
LBB0_6:
	movq	_DP_PANEL_MODE_DEFAULT@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %esi
LBB0_8:
	movq	%r12, %rdi
	callq	_dp_set_panel_mode
	leaq	-40(%rbp), %rbx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_dpcd_set_link_settings
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_perform_clock_recovery_sequence
	movl	%eax, %ebx
	movq	_LINK_TRAINING_SUCCESS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_10
## %bb.9:
	leaq	-40(%rbp), %rsi
	movq	%r12, %rdi
	callq	_perform_channel_equalization_sequence
	movl	%eax, %ebx
LBB0_10:
	leaq	-40(%rbp), %rsi
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_print_status_message
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LINK_TRAINING_SUCCESS,4,2      ## @LINK_TRAINING_SUCCESS
	.comm	_DP_PANEL_MODE_DEFAULT,4,2      ## @DP_PANEL_MODE_DEFAULT
	.comm	_CLOCK_SOURCE_ID_EXTERNAL,4,2   ## @CLOCK_SOURCE_ID_EXTERNAL
	.comm	_DP_PANEL_MODE_EDP,4,2          ## @DP_PANEL_MODE_EDP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dc_link_dp_sync_lt_attempt     ; -- Begin function dc_link_dp_sync_lt_attempt
	.p2align	2
_dc_link_dp_sync_lt_attempt:            ; @dc_link_dp_sync_lt_attempt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	add	x3, sp, #8
	bl	_initialize_training_settings
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_set_dp_mst_mode
LBB0_2:
	ldr	w1, [x19]
	mov	x0, x19
	bl	_dp_disable_link_phy
	mov	x0, x19
	bl	_get_clock_source_id
	mov	x2, x0
	ldr	w1, [x19]
	mov	x0, x19
	mov	x3, x21
	bl	_dp_enable_link_phy
	ldr	x8, [x20]
	cbz	x8, LBB0_5
; %bb.3:
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.4:
Lloh0:
	adrp	x8, _DP_PANEL_MODE_EDP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DP_PANEL_MODE_EDP@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
	mov	x0, x19
	bl	_dp_get_panel_mode
	mov	x1, x0
	b	LBB0_8
LBB0_6:
Lloh2:
	adrp	x8, _DP_PANEL_MODE_DEFAULT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DP_PANEL_MODE_DEFAULT@GOTPAGEOFF]
LBB0_7:
	ldr	w1, [x8]
LBB0_8:
	mov	x0, x19
	bl	_dp_set_panel_mode
	add	x1, sp, #8
	mov	x0, x19
	bl	_dpcd_set_link_settings
	add	x1, sp, #8
	mov	x0, x19
	bl	_perform_clock_recovery_sequence
	mov	x20, x0
Lloh4:
	adrp	x8, _LINK_TRAINING_SUCCESS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _LINK_TRAINING_SUCCESS@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_10
; %bb.9:
	add	x1, sp, #8
	mov	x0, x19
	bl	_perform_channel_equalization_sequence
	mov	x20, x0
LBB0_10:
	add	x1, sp, #8
	mov	x0, x19
	mov	x2, x20
	bl	_print_status_message
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_LINK_TRAINING_SUCCESS,4,2      ; @LINK_TRAINING_SUCCESS
	.comm	_DP_PANEL_MODE_DEFAULT,4,2      ; @DP_PANEL_MODE_DEFAULT
	.comm	_CLOCK_SOURCE_ID_EXTERNAL,4,2   ; @CLOCK_SOURCE_ID_EXTERNAL
	.comm	_DP_PANEL_MODE_EDP,4,2          ; @DP_PANEL_MODE_EDP
.subsections_via_symbols
