	.file	"extr_analogix_dp_core.c_analogix_dp_detect_hpd.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"failed to get hpd plug status, try to force hpd\n"
	.align 8
.LC1:
	.string	"failed to get hpd plug in status\n"
	.align 8
.LC2:
	.string	"success to get plug in status after force hpd\n"
	.text
	.p2align 4
	.type	analogix_dp_detect_hpd, @function
analogix_dp_detect_hpd:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	edx, DWORD PTR DP_TIMEOUT_LOOP_COUNT[rip]
	test	edx, edx
	jle	.L2
	xor	ebx, ebx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L11:
	mov	esi, 1100
	mov	edi, 1000
	add	ebx, 1
	call	usleep_range@PLT
	cmp	DWORD PTR DP_TIMEOUT_LOOP_COUNT[rip], ebx
	jle	.L2
.L4:
	mov	rdi, rbp
	call	analogix_dp_get_plug_in_status@PLT
	test	rax, rax
	jne	.L11
	xor	eax, eax
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	eax, DWORD PTR 4[rbp]
	test	eax, eax
	jne	.L5
	mov	eax, DWORD PTR ETIMEDOUT[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	edi, DWORD PTR 0[rbp]
	lea	rsi, .LC0[rip]
	call	dev_dbg@PLT
	mov	rdi, rbp
	call	analogix_dp_force_hpd@PLT
	mov	rdi, rbp
	call	analogix_dp_get_plug_in_status@PLT
	test	rax, rax
	jne	.L12
	mov	edi, DWORD PTR 0[rbp]
	lea	rsi, .LC2[rip]
	call	dev_dbg@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
.L12:
	.cfi_restore_state
	mov	edi, DWORD PTR 0[rbp]
	lea	rsi, .LC1[rip]
	call	dev_err@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	analogix_dp_detect_hpd, .-analogix_dp_detect_hpd
	.comm	ETIMEDOUT,4,4
	.comm	EINVAL,4,4
	.comm	DP_TIMEOUT_LOOP_COUNT,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_detect_hpd.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"failed to get hpd plug status, try to force hpd\012"
	.ascii	"\000"
	.align	2
.LC1:
	.ascii	"failed to get hpd plug in status\012\000"
	.align	2
.LC2:
	.ascii	"success to get plug in status after force hpd\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	analogix_dp_detect_hpd, %function
analogix_dp_detect_hpd:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r7, .L15
	mov	r6, r0
	ldr	r3, [r7]
	cmp	r3, #0
	ble	.L2
	mov	r5, #0
	ldr	r8, .L15+4
	b	.L4
.L13:
	mov	r1, r8
	mov	r0, #1000
	bl	usleep_range
	ldr	r3, [r7]
	cmp	r3, r5
	ble	.L2
.L4:
	mov	r0, r6
	bl	analogix_dp_get_plug_in_status
	subs	r4, r0, #0
	add	r5, r5, #1
	bne	.L13
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r3, [r6, #4]
	cmp	r3, #0
	bne	.L5
	ldr	r3, .L15+8
	ldr	r0, [r3]
	rsb	r4, r0, #0
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	ldr	r1, .L15+12
	ldr	r0, [r6]
	bl	dev_dbg
	mov	r0, r6
	bl	analogix_dp_force_hpd
	mov	r0, r6
	bl	analogix_dp_get_plug_in_status
	subs	r4, r0, #0
	ldr	r0, [r6]
	bne	.L14
	ldr	r1, .L15+16
	bl	dev_dbg
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L14:
	ldr	r1, .L15+20
	bl	dev_err
	ldr	r3, .L15+24
	ldr	r0, [r3]
	rsb	r4, r0, #0
	b	.L1
.L16:
	.align	2
.L15:
	.word	DP_TIMEOUT_LOOP_COUNT
	.word	1100
	.word	ETIMEDOUT
	.word	.LC0
	.word	.LC2
	.word	.LC1
	.word	EINVAL
	.size	analogix_dp_detect_hpd, .-analogix_dp_detect_hpd
	.comm	ETIMEDOUT,4,4
	.comm	EINVAL,4,4
	.comm	DP_TIMEOUT_LOOP_COUNT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
