	.file	"extr_handlers.c_dp_aux_ch_ctl_link_training.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	dp_aux_ch_ctl_link_training, @function
dp_aux_ch_ctl_link_training:
.LFB0:
	.cfi_startproc
	endbr64
	and	esi, DWORD PTR DPCD_TRAINING_PATTERN_SET_MASK[rip]
	cmp	esi, DWORD PTR DPCD_TRAINING_PATTERN_1[rip]
	je	.L6
	cmp	esi, DWORD PTR DPCD_TRAINING_PATTERN_2[rip]
	je	.L7
	cmp	esi, DWORD PTR DPCD_LINK_TRAINING_DISABLED[rip]
	je	.L8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rdx, QWORD PTR [rdi]
	mov	rax, QWORD PTR DPCD_LANE0_1_STATUS[rip]
	lea	rcx, [rdx+rax*4]
	mov	eax, DWORD PTR [rcx]
	or	eax, DWORD PTR DPCD_LANES_EQ_DONE[rip]
	mov	DWORD PTR [rcx], eax
	or	eax, DWORD PTR DPCD_SYMBOL_LOCKED[rip]
	mov	DWORD PTR [rcx], eax
	mov	rax, QWORD PTR DPCD_LANE2_3_STATUS[rip]
	lea	rcx, [rdx+rax*4]
	mov	eax, DWORD PTR [rcx]
	or	eax, DWORD PTR DPCD_LANES_EQ_DONE[rip]
	mov	DWORD PTR [rcx], eax
	or	eax, DWORD PTR DPCD_SYMBOL_LOCKED[rip]
	mov	DWORD PTR [rcx], eax
	mov	rax, QWORD PTR DPCD_LANE_ALIGN_STATUS_UPDATED[rip]
	mov	ecx, DWORD PTR DPCD_INTERLANE_ALIGN_DONE[rip]
	or	DWORD PTR [rdx+rax*4], ecx
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdx, QWORD PTR DPCD_LANE0_1_STATUS[rip]
	mov	rax, QWORD PTR [rdi]
	mov	ecx, DWORD PTR DPCD_LANES_CR_DONE[rip]
	or	DWORD PTR [rax+rdx*4], ecx
	mov	rdx, QWORD PTR DPCD_LANE2_3_STATUS[rip]
	mov	ecx, DWORD PTR DPCD_LANES_CR_DONE[rip]
	or	DWORD PTR [rax+rdx*4], ecx
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rax, QWORD PTR [rdi]
	mov	ecx, DWORD PTR DPCD_SINK_IN_SYNC[rip]
	mov	rdx, QWORD PTR DPCD_SINK_STATUS[rip]
	mov	DWORD PTR [rax+rdx*4], ecx
	ret
	.cfi_endproc
.LFE0:
	.size	dp_aux_ch_ctl_link_training, .-dp_aux_ch_ctl_link_training
	.comm	DPCD_TRAINING_PATTERN_SET_MASK,4,4
	.comm	DPCD_TRAINING_PATTERN_2,4,4
	.comm	DPCD_TRAINING_PATTERN_1,4,4
	.comm	DPCD_SYMBOL_LOCKED,4,4
	.comm	DPCD_SINK_STATUS,8,8
	.comm	DPCD_SINK_IN_SYNC,4,4
	.comm	DPCD_LINK_TRAINING_DISABLED,4,4
	.comm	DPCD_LANE_ALIGN_STATUS_UPDATED,8,8
	.comm	DPCD_LANES_EQ_DONE,4,4
	.comm	DPCD_LANES_CR_DONE,4,4
	.comm	DPCD_LANE2_3_STATUS,8,8
	.comm	DPCD_LANE0_1_STATUS,8,8
	.comm	DPCD_INTERLANE_ALIGN_DONE,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_handlers.c_dp_aux_ch_ctl_link_training.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dp_aux_ch_ctl_link_training, %function
dp_aux_ch_ctl_link_training:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, .L9
	ldr	r3, .L9+4
	ldr	r2, [r2]
	ldr	r3, [r3]
	and	r1, r1, r2
	cmp	r1, r3
	push	{r4, lr}
	beq	.L7
	ldr	r3, .L9+8
	ldr	r3, [r3]
	cmp	r1, r3
	beq	.L8
	ldr	r3, .L9+12
	ldr	r3, [r3]
	cmp	r1, r3
	popne	{r4, pc}
	ldr	r1, .L9+16
	ldr	r2, .L9+20
	ldr	r3, [r0]
	ldr	r1, [r1]
	ldr	r2, [r2]
	str	r1, [r3, r2, lsl #2]
	pop	{r4, pc}
.L8:
	ldr	r2, .L9+24
	ldr	r3, [r0]
	ldr	lr, .L9+28
	ldr	r0, [r2]
	ldr	r1, [lr]
	ldr	r2, [r3, r0, lsl #2]
	ldr	ip, .L9+32
	orr	r2, r2, r1
	str	r2, [r3, r0, lsl #2]
	ldr	r1, [ip]
	ldr	r4, .L9+36
	orr	r2, r1, r2
	ldr	r1, [r4]
	str	r2, [r3, r0, lsl #2]
	ldr	r0, [lr]
	ldr	r2, [r3, r1, lsl #2]
	ldr	lr, .L9+40
	orr	r2, r2, r0
	str	r2, [r3, r1, lsl #2]
	ldr	r0, [ip]
	ldr	ip, [lr]
	orr	r2, r0, r2
	ldr	r0, .L9+44
	str	r2, [r3, r1, lsl #2]
	ldr	r2, [r3, ip, lsl #2]
	ldr	r1, [r0]
	orr	r2, r2, r1
	str	r2, [r3, ip, lsl #2]
	pop	{r4, pc}
.L7:
	ldr	r2, .L9+24
	ldr	r3, [r0]
	ldr	ip, [r2]
	ldr	r0, .L9+48
	ldr	r2, [r3, ip, lsl #2]
	ldr	lr, [r0]
	ldr	r1, .L9+36
	orr	r2, r2, lr
	ldr	r1, [r1]
	str	r2, [r3, ip, lsl #2]
	ldr	r0, [r0]
	ldr	r2, [r3, r1, lsl #2]
	orr	r2, r2, r0
	str	r2, [r3, r1, lsl #2]
	pop	{r4, pc}
.L10:
	.align	2
.L9:
	.word	DPCD_TRAINING_PATTERN_SET_MASK
	.word	DPCD_TRAINING_PATTERN_1
	.word	DPCD_TRAINING_PATTERN_2
	.word	DPCD_LINK_TRAINING_DISABLED
	.word	DPCD_SINK_IN_SYNC
	.word	DPCD_SINK_STATUS
	.word	DPCD_LANE0_1_STATUS
	.word	DPCD_LANES_EQ_DONE
	.word	DPCD_SYMBOL_LOCKED
	.word	DPCD_LANE2_3_STATUS
	.word	DPCD_LANE_ALIGN_STATUS_UPDATED
	.word	DPCD_INTERLANE_ALIGN_DONE
	.word	DPCD_LANES_CR_DONE
	.size	dp_aux_ch_ctl_link_training, .-dp_aux_ch_ctl_link_training
	.comm	DPCD_TRAINING_PATTERN_SET_MASK,4,4
	.comm	DPCD_TRAINING_PATTERN_2,4,4
	.comm	DPCD_TRAINING_PATTERN_1,4,4
	.comm	DPCD_SYMBOL_LOCKED,4,4
	.comm	DPCD_SINK_STATUS,4,4
	.comm	DPCD_SINK_IN_SYNC,4,4
	.comm	DPCD_LINK_TRAINING_DISABLED,4,4
	.comm	DPCD_LANE_ALIGN_STATUS_UPDATED,4,4
	.comm	DPCD_LANES_EQ_DONE,4,4
	.comm	DPCD_LANES_CR_DONE,4,4
	.comm	DPCD_LANE2_3_STATUS,4,4
	.comm	DPCD_LANE0_1_STATUS,4,4
	.comm	DPCD_INTERLANE_ALIGN_DONE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
