	.file	"extr_atombios_dp.c_radeon_dp_link_train_finish.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	radeon_dp_link_train_finish, @function
radeon_dp_link_train_finish:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, rdi
	mov	edi, 400
	call	udelay@PLT
	mov	edi, DWORD PTR 20[rbx]
	mov	edx, DWORD PTR DP_TRAINING_PATTERN_DISABLE[rip]
	mov	esi, DWORD PTR DP_TRAINING_PATTERN_SET[rip]
	call	drm_dp_dpcd_writeb@PLT
	mov	edi, DWORD PTR 8[rbx]
	call	ASIC_IS_DCE4@PLT
	test	rax, rax
	jne	.L2
	mov	eax, DWORD PTR 16[rbx]
	test	eax, eax
	jne	.L3
.L2:
	mov	edi, DWORD PTR 12[rbx]
	mov	esi, DWORD PTR ATOM_ENCODER_CMD_DP_LINK_TRAINING_COMPLETE[rip]
	xor	edx, edx
	call	atombios_dig_encoder_setup@PLT
	xor	eax, eax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	edx, DWORD PTR 4[rbx]
	mov	edi, DWORD PTR 8[rbx]
	xor	r8d, r8d
	mov	ecx, DWORD PTR [rbx]
	mov	esi, DWORD PTR ATOM_DP_ACTION_TRAINING_COMPLETE[rip]
	call	radeon_dp_encoder_service@PLT
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	radeon_dp_link_train_finish, .-radeon_dp_link_train_finish
	.comm	DP_TRAINING_PATTERN_SET,4,4
	.comm	DP_TRAINING_PATTERN_DISABLE,4,4
	.comm	ATOM_ENCODER_CMD_DP_LINK_TRAINING_COMPLETE,4,4
	.comm	ATOM_DP_ACTION_TRAINING_COMPLETE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_atombios_dp.c_radeon_dp_link_train_finish.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	radeon_dp_link_train_finish, %function
radeon_dp_link_train_finish:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, r0
	sub	sp, sp, #8
	mov	r0, #400
	bl	udelay
	ldr	r3, .L7
	ldr	r2, .L7+4
	ldr	r1, [r3]
	ldr	r2, [r2]
	ldr	r0, [r4, #20]
	bl	drm_dp_dpcd_writeb
	ldr	r0, [r4, #8]
	bl	ASIC_IS_DCE4
	cmp	r0, #0
	bne	.L2
	ldr	r3, [r4, #16]
	cmp	r3, #0
	bne	.L3
.L2:
	ldr	r3, .L7+8
	mov	r2, #0
	ldr	r0, [r4, #12]
	ldr	r1, [r3]
	bl	atombios_dig_encoder_setup
	mov	r0, #0
	add	sp, sp, #8
	@ sp needed
	pop	{r4, pc}
.L3:
	ldr	r3, .L7+12
	str	r0, [sp]
	ldr	r1, [r3]
	ldr	r2, [r4, #4]
	ldr	r3, [r4]
	ldr	r0, [r4, #8]
	bl	radeon_dp_encoder_service
	mov	r0, #0
	add	sp, sp, #8
	@ sp needed
	pop	{r4, pc}
.L8:
	.align	2
.L7:
	.word	DP_TRAINING_PATTERN_SET
	.word	DP_TRAINING_PATTERN_DISABLE
	.word	ATOM_ENCODER_CMD_DP_LINK_TRAINING_COMPLETE
	.word	ATOM_DP_ACTION_TRAINING_COMPLETE
	.size	radeon_dp_link_train_finish, .-radeon_dp_link_train_finish
	.comm	DP_TRAINING_PATTERN_SET,4,4
	.comm	DP_TRAINING_PATTERN_DISABLE,4,4
	.comm	ATOM_ENCODER_CMD_DP_LINK_TRAINING_COMPLETE,4,4
	.comm	ATOM_DP_ACTION_TRAINING_COMPLETE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
