	.file	"extr_intel_dp.c_intel_dp_detect_dpcd.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Broken DP branch device, ignoring\n"
	.text
	.p2align 4
	.type	intel_dp_detect_dpcd, @function
intel_dp_detect_dpcd:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	call	dp_to_lspcon@PLT
	mov	rdi, rbx
	mov	r12, QWORD PTR [rbx]
	mov	rbp, rax
	call	intel_dp_is_edp@PLT
	mov	edi, eax
	call	WARN_ON@PLT
	test	rax, rax
	jne	.L18
	cmp	QWORD PTR 0[rbp], 0
	jne	.L21
	mov	rdi, rbx
	call	intel_dp_get_dpcd@PLT
	test	eax, eax
	jne	.L5
.L19:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, DWORD PTR connector_status_disconnected[rip]
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	cmp	QWORD PTR 24[rbx], 0
	je	.L19
	.p2align 4,,10
	.p2align 3
.L18:
	mov	eax, DWORD PTR connector_status_connected[rip]
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	rdi, r12
	call	drm_dp_is_branch@PLT
	test	eax, eax
	je	.L18
	mov	rax, QWORD PTR [rbx]
	mov	rdx, QWORD PTR DP_DPCD_REV[rip]
	cmp	DWORD PTR [rax+rdx*4], 16
	jle	.L7
	mov	rax, QWORD PTR 8[rbx]
	mov	eax, DWORD PTR [rax]
	test	DWORD PTR DP_DS_PORT_HPD[rip], eax
	jne	.L22
.L7:
	mov	rdi, rbx
	call	intel_dp_can_mst@PLT
	test	rax, rax
	jne	.L18
	lea	rdi, 16[rbx]
	call	drm_probe_ddc@PLT
	test	rax, rax
	jne	.L18
	mov	rax, QWORD PTR [rbx]
	mov	rdx, QWORD PTR DP_DPCD_REV[rip]
	cmp	DWORD PTR [rax+rdx*4], 16
	jle	.L11
	mov	rax, QWORD PTR 8[rbx]
	mov	eax, DWORD PTR [rax]
	and	eax, DWORD PTR DP_DS_PORT_TYPE_MASK[rip]
	cmp	DWORD PTR DP_DS_PORT_TYPE_VGA[rip], eax
	je	.L12
	cmp	DWORD PTR DP_DS_PORT_TYPE_NON_EDID[rip], eax
	jne	.L13
.L12:
	mov	eax, DWORD PTR connector_status_unknown[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L21:
	mov	rdi, rbp
	call	lspcon_resume@PLT
	mov	rdi, rbx
	call	intel_dp_get_dpcd@PLT
	test	eax, eax
	je	.L19
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rdx, QWORD PTR DP_DOWNSTREAMPORT_PRESENT[rip]
	mov	eax, DWORD PTR [rax+rdx*4]
	and	eax, DWORD PTR DP_DWN_STRM_PORT_TYPE_MASK[rip]
	cmp	DWORD PTR DP_DWN_STRM_PORT_TYPE_ANALOG[rip], eax
	je	.L12
	cmp	DWORD PTR DP_DWN_STRM_PORT_TYPE_OTHER[rip], eax
	je	.L12
.L13:
	lea	rdi, .LC0[rip]
	call	DRM_DEBUG_KMS@PLT
	jmp	.L19
	.cfi_endproc
.LFE0:
	.size	intel_dp_detect_dpcd, .-intel_dp_detect_dpcd
	.comm	connector_status_unknown,4,4
	.comm	connector_status_disconnected,4,4
	.comm	connector_status_connected,4,4
	.comm	DP_DWN_STRM_PORT_TYPE_OTHER,4,4
	.comm	DP_DWN_STRM_PORT_TYPE_MASK,4,4
	.comm	DP_DWN_STRM_PORT_TYPE_ANALOG,4,4
	.comm	DP_DS_PORT_TYPE_VGA,4,4
	.comm	DP_DS_PORT_TYPE_NON_EDID,4,4
	.comm	DP_DS_PORT_TYPE_MASK,4,4
	.comm	DP_DS_PORT_HPD,4,4
	.comm	DP_DPCD_REV,8,8
	.comm	DP_DOWNSTREAMPORT_PRESENT,8,8
	.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_intel_dp.c_intel_dp_detect_dpcd.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Broken DP branch device, ignoring\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	intel_dp_detect_dpcd, %function
intel_dp_detect_dpcd:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	bl	dp_to_lspcon
	mov	r5, r0
	mov	r0, r4
	ldr	r6, [r4]
	bl	intel_dp_is_edp
	bl	WARN_ON
	cmp	r0, #0
	bne	.L22
	ldr	r3, [r5]
	cmp	r3, #0
	bne	.L24
	mov	r0, r4
	bl	intel_dp_get_dpcd
	cmp	r0, #0
	bne	.L5
.L21:
	ldr	r3, .L26
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L25:
	ldr	r3, [r4, #12]
	cmp	r3, #0
	beq	.L21
.L22:
	ldr	r3, .L26+4
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L5:
	mov	r0, r6
	bl	drm_dp_is_branch
	cmp	r0, #0
	beq	.L22
	ldr	r5, .L26+8
	ldr	r3, [r4]
	ldr	r2, [r5]
	ldr	r3, [r3, r2, lsl #2]
	cmp	r3, #16
	ble	.L7
	ldr	r2, [r4, #4]
	ldr	r3, .L26+12
	ldr	r2, [r2]
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L25
.L7:
	mov	r0, r4
	bl	intel_dp_can_mst
	cmp	r0, #0
	bne	.L22
	add	r0, r4, #8
	bl	drm_probe_ddc
	cmp	r0, #0
	bne	.L22
	ldr	r2, [r5]
	ldr	r3, [r4]
	ldr	r2, [r3, r2, lsl #2]
	cmp	r2, #16
	ble	.L11
	ldr	r3, [r4, #4]
	ldr	r1, .L26+16
	ldr	r2, .L26+20
	ldr	r3, [r3]
	ldr	r1, [r1]
	ldr	r2, [r2]
	and	r3, r3, r1
	cmp	r2, r3
	beq	.L12
	ldr	r2, .L26+24
	ldr	r2, [r2]
	cmp	r2, r3
	bne	.L13
.L12:
	ldr	r3, .L26+28
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L24:
	mov	r0, r5
	bl	lspcon_resume
	mov	r0, r4
	bl	intel_dp_get_dpcd
	cmp	r0, #0
	beq	.L21
	b	.L5
.L11:
	ldr	r2, .L26+32
	ldr	r1, .L26+36
	ldr	r0, [r2]
	ldr	r2, .L26+40
	ldr	r3, [r3, r0, lsl #2]
	ldr	r1, [r1]
	ldr	r2, [r2]
	and	r3, r3, r1
	cmp	r2, r3
	beq	.L12
	ldr	r2, .L26+44
	ldr	r2, [r2]
	cmp	r2, r3
	beq	.L12
.L13:
	ldr	r0, .L26+48
	bl	DRM_DEBUG_KMS
	b	.L21
.L27:
	.align	2
.L26:
	.word	connector_status_disconnected
	.word	connector_status_connected
	.word	DP_DPCD_REV
	.word	DP_DS_PORT_HPD
	.word	DP_DS_PORT_TYPE_MASK
	.word	DP_DS_PORT_TYPE_VGA
	.word	DP_DS_PORT_TYPE_NON_EDID
	.word	connector_status_unknown
	.word	DP_DOWNSTREAMPORT_PRESENT
	.word	DP_DWN_STRM_PORT_TYPE_MASK
	.word	DP_DWN_STRM_PORT_TYPE_ANALOG
	.word	DP_DWN_STRM_PORT_TYPE_OTHER
	.word	.LC0
	.size	intel_dp_detect_dpcd, .-intel_dp_detect_dpcd
	.comm	connector_status_unknown,4,4
	.comm	connector_status_disconnected,4,4
	.comm	connector_status_connected,4,4
	.comm	DP_DWN_STRM_PORT_TYPE_OTHER,4,4
	.comm	DP_DWN_STRM_PORT_TYPE_MASK,4,4
	.comm	DP_DWN_STRM_PORT_TYPE_ANALOG,4,4
	.comm	DP_DS_PORT_TYPE_VGA,4,4
	.comm	DP_DS_PORT_TYPE_NON_EDID,4,4
	.comm	DP_DS_PORT_TYPE_MASK,4,4
	.comm	DP_DS_PORT_HPD,4,4
	.comm	DP_DPCD_REV,4,4
	.comm	DP_DOWNSTREAMPORT_PRESENT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
