	.file	"extr_dc_link_hwss.c_edp_receiver_ready_T9.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	edp_receiver_ready_T9
	.type	edp_receiver_ready_T9, @function
edp_receiver_ready_T9:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	ecx, 1
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, 1
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	esi, DWORD PTR DP_EDP_DPCD_REV[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	lea	rdx, 7[rsp]
	mov	BYTE PTR 6[rsp], 0
	mov	BYTE PTR 7[rsp], 0
	call	core_link_read_dpcd@PLT
	movzx	eax, BYTE PTR DP_EDP_12[rip]
	cmp	BYTE PTR 7[rsp], al
	jb	.L1
	mov	ebx, 50
	lea	r13, 6[rsp]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L10:
	cmp	eax, DWORD PTR DC_OK[rip]
	jne	.L3
	mov	edi, 100
	call	udelay@PLT
	sub	ebx, 1
	je	.L3
.L4:
	mov	ecx, 1
	mov	rdx, r13
	mov	rdi, rbp
	mov	BYTE PTR 6[rsp], 1
	mov	esi, DWORD PTR DP_SINK_STATUS[rip]
	call	core_link_read_dpcd@PLT
	cmp	BYTE PTR 6[rsp], 0
	mov	r12d, eax
	jne	.L10
.L3:
	mov	rax, QWORD PTR 0[rbp]
	mov	edi, DWORD PTR [rax]
	test	edi, edi
	jg	.L11
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L12
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	imul	edi, edi, 1000
	call	udelay@PLT
	jmp	.L1
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	edp_receiver_ready_T9, .-edp_receiver_ready_T9
	.comm	DP_SINK_STATUS,4,4
	.comm	DP_EDP_DPCD_REV,4,4
	.comm	DP_EDP_12,1,1
	.comm	DC_OK,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_dc_link_hwss.c_edp_receiver_ready_T9.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	edp_receiver_ready_T9
	.syntax unified
	.arm
	.fpu softvfp
	.type	edp_receiver_ready_T9, %function
edp_receiver_ready_T9:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	ip, #0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r2, .L16
	sub	sp, sp, #12
	ldr	lr, .L16+4
	mov	r3, #1
	ldr	r1, [r2]
	add	r2, sp, #3
	ldr	lr, [lr]
	str	lr, [sp, #4]
	mov	lr,#0
	mov	r6, r0
	strb	ip, [sp, #2]
	strb	ip, [sp, #3]
	bl	core_link_read_dpcd
	ldr	r3, .L16+8
	ldrb	r2, [sp, #3]	@ zero_extendqisi2
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	movcc	r4, #1
	bcc	.L1
	mov	r5, #50
	mov	r8, #1
	ldr	r7, .L16+12
	ldr	r9, .L16+16
	b	.L4
.L13:
	ldr	r3, [r9]
	cmp	r0, r3
	bne	.L3
	mov	r0, #100
	bl	udelay
	subs	r5, r5, #1
	beq	.L3
.L4:
	mov	r3, #1
	mov	r0, r6
	ldr	r1, [r7]
	add	r2, sp, #2
	strb	r8, [sp, #2]
	bl	core_link_read_dpcd
	ldrb	r3, [sp, #2]	@ zero_extendqisi2
	mov	r4, r0
	cmp	r3, #0
	bne	.L13
.L3:
	ldr	r3, [r6]
	ldr	r0, [r3]
	cmp	r0, #0
	bgt	.L14
.L1:
	ldr	r3, .L16+4
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L15
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L14:
	rsb	r3, r0, r0, lsl #5
	add	r0, r0, r3, lsl #2
	lsl	r0, r0, #3
	bl	udelay
	b	.L1
.L15:
	bl	__stack_chk_fail
.L17:
	.align	2
.L16:
	.word	DP_EDP_DPCD_REV
	.word	.LC0
	.word	DP_EDP_12
	.word	DP_SINK_STATUS
	.word	DC_OK
	.size	edp_receiver_ready_T9, .-edp_receiver_ready_T9
	.comm	DP_SINK_STATUS,4,4
	.comm	DP_EDP_DPCD_REV,4,4
	.comm	DP_EDP_12,1,1
	.comm	DC_OK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
