	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function radeon_dp_link_train_finish
_radeon_dp_link_train_finish:           ## @radeon_dp_link_train_finish
	.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
	movl	$400, %edi                      ## imm = 0x190
	callq	_udelay
	movl	20(%rbx), %edi
	movq	_DP_TRAINING_PATTERN_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DP_TRAINING_PATTERN_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_drm_dp_dpcd_writeb
	movl	8(%rbx), %edi
	callq	_ASIC_IS_DCE4
	testq	%rax, %rax
	je	LBB0_1
LBB0_2:
	movl	12(%rbx), %edi
	movq	_ATOM_ENCODER_CMD_DP_LINK_TRAINING_COMPLETE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_atombios_dig_encoder_setup
	jmp	LBB0_4
LBB0_1:
	cmpl	$0, 16(%rbx)
	je	LBB0_2
## %bb.3:
	movl	8(%rbx), %edi
	movq	_ATOM_DP_ACTION_TRAINING_COMPLETE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %ecx
	movl	4(%rbx), %edx
	xorl	%r8d, %r8d
	callq	_radeon_dp_encoder_service
LBB0_4:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DP_TRAINING_PATTERN_SET,4,2    ## @DP_TRAINING_PATTERN_SET
	.comm	_DP_TRAINING_PATTERN_DISABLE,4,2 ## @DP_TRAINING_PATTERN_DISABLE
	.comm	_ATOM_ENCODER_CMD_DP_LINK_TRAINING_COMPLETE,4,2 ## @ATOM_ENCODER_CMD_DP_LINK_TRAINING_COMPLETE
	.comm	_ATOM_DP_ACTION_TRAINING_COMPLETE,4,2 ## @ATOM_DP_ACTION_TRAINING_COMPLETE
	.no_dead_strip	_radeon_dp_link_train_finish
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function radeon_dp_link_train_finish
_radeon_dp_link_train_finish:           ; @radeon_dp_link_train_finish
	.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
	mov	w0, #400
	bl	_udelay
	ldr	w0, [x19, #20]
Lloh0:
	adrp	x8, _DP_TRAINING_PATTERN_SET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DP_TRAINING_PATTERN_SET@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _DP_TRAINING_PATTERN_DISABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DP_TRAINING_PATTERN_DISABLE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_drm_dp_dpcd_writeb
	ldr	w0, [x19, #8]
	bl	_ASIC_IS_DCE4
	cbz	x0, LBB0_2
LBB0_1:
	ldr	w0, [x19, #12]
Lloh6:
	adrp	x8, _ATOM_ENCODER_CMD_DP_LINK_TRAINING_COMPLETE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ATOM_ENCODER_CMD_DP_LINK_TRAINING_COMPLETE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_atombios_dig_encoder_setup
	b	LBB0_4
LBB0_2:
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_1
; %bb.3:
	ldp	w2, w0, [x19, #4]
Lloh9:
	adrp	x8, _ATOM_DP_ACTION_TRAINING_COMPLETE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ATOM_DP_ACTION_TRAINING_COMPLETE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldr	w3, [x19]
	mov	w4, #0
	bl	_radeon_dp_encoder_service
LBB0_4:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_DP_TRAINING_PATTERN_SET,4,2    ; @DP_TRAINING_PATTERN_SET
	.comm	_DP_TRAINING_PATTERN_DISABLE,4,2 ; @DP_TRAINING_PATTERN_DISABLE
	.comm	_ATOM_ENCODER_CMD_DP_LINK_TRAINING_COMPLETE,4,2 ; @ATOM_ENCODER_CMD_DP_LINK_TRAINING_COMPLETE
	.comm	_ATOM_DP_ACTION_TRAINING_COMPLETE,4,2 ; @ATOM_DP_ACTION_TRAINING_COMPLETE
	.no_dead_strip	_radeon_dp_link_train_finish
.subsections_via_symbols
