	.file	"extr_analogix_dp_core.c_analogix_dp_fast_link_train_detection.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"supported"
.LC1:
	.string	"unsupported"
.LC2:
	.string	"failed to read downspread %d\n"
.LC3:
	.string	"fast link training %s\n"
	.text
	.p2align 4
	.type	analogix_dp_fast_link_train_detection, @function
analogix_dp_fast_link_train_detection:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	add	rdi, 8
	sub	rsp, 24
	.cfi_def_cfa_offset 48
	mov	esi, DWORD PTR DP_MAX_DOWNSPREAD[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	lea	rdx, 4[rsp]
	call	drm_dp_dpcd_readb@PLT
	cmp	eax, 1
	jne	.L9
	mov	eax, DWORD PTR 4[rsp]
	xor	edx, edx
	mov	edi, DWORD PTR 4[rbx]
	lea	rsi, .LC3[rip]
	and	eax, DWORD PTR DP_NO_AUX_HANDSHAKE_LINK_TRAINING[rip]
	lea	rax, .LC1[rip]
	setne	dl
	mov	DWORD PTR [rbx], edx
	lea	rdx, .LC0[rip]
	cmove	rdx, rax
	xor	r12d, r12d
	call	dev_dbg@PLT
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L10
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	edi, DWORD PTR 4[rbx]
	mov	edx, eax
	lea	rsi, .LC2[rip]
	mov	r12d, eax
	call	dev_err@PLT
	jmp	.L1
.L10:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	analogix_dp_fast_link_train_detection, .-analogix_dp_fast_link_train_detection
	.comm	DP_NO_AUX_HANDSHAKE_LINK_TRAINING,4,4
	.comm	DP_MAX_DOWNSPREAD,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_analogix_dp_core.c_analogix_dp_fast_link_train_detection.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"supported\000"
	.align	2
.LC1:
	.ascii	"unsupported\000"
	.align	2
.LC2:
	.ascii	"failed to read downspread %d\012\000"
	.align	2
.LC3:
	.ascii	"fast link training %s\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	analogix_dp_fast_link_train_detection, %function
analogix_dp_fast_link_train_detection:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	ldr	r3, .L11
	sub	sp, sp, #12
	ldr	r1, [r3]
	ldr	r3, .L11+4
	mov	r5, r0
	mov	r2, sp
	add	r0, r0, #8
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	drm_dp_dpcd_readb
	cmp	r0, #1
	bne	.L9
	ldr	r2, .L11+8
	ldr	r3, [sp]
	ldr	r1, [r2]
	ldr	r0, [r5, #4]
	and	r3, r3, r1
	cmp	r3, #0
	movne	r1, #1
	moveq	r1, #0
	ldr	r3, .L11+12
	ldr	r2, .L11+16
	str	r1, [r5]
	moveq	r2, r3
	ldr	r1, .L11+20
	bl	dev_dbg
	mov	r4, #0
.L1:
	ldr	r3, .L11+4
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, pc}
.L9:
	mov	r4, r0
	ldr	r1, .L11+24
	mov	r2, r4
	ldr	r0, [r5, #4]
	bl	dev_err
	b	.L1
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	DP_MAX_DOWNSPREAD
	.word	.LC4
	.word	DP_NO_AUX_HANDSHAKE_LINK_TRAINING
	.word	.LC1
	.word	.LC0
	.word	.LC3
	.word	.LC2
	.size	analogix_dp_fast_link_train_detection, .-analogix_dp_fast_link_train_detection
	.comm	DP_NO_AUX_HANDSHAKE_LINK_TRAINING,4,4
	.comm	DP_MAX_DOWNSPREAD,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
