	.file	"extr_intel_dp.c_intel_dp_get_dsc_sink_cap.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Failed to read DPCD register 0x%x\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"DSC DPCD: %*ph\n"
	.section	.rodata.str1.8
	.align 8
.LC2:
	.string	"Failed to read FEC DPCD register\n"
	.section	.rodata.str1.1
.LC3:
	.string	"FEC CAPABILITY: %x\n"
	.text
	.p2align 4
	.type	intel_dp_get_dsc_sink_cap, @function
intel_dp_get_dsc_sink_cap:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	edx, 4
	xor	esi, esi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	edi, DWORD PTR 24[rdi]
	call	memset@PLT
	mov	rax, QWORD PTR [rbx]
	mov	rdx, QWORD PTR DP_DPCD_REV[rip]
	mov	DWORD PTR 16[rbx], 0
	cmp	DWORD PTR [rax+rdx*4], 19
	jg	.L2
	mov	rax, QWORD PTR 8[rbx]
	mov	rcx, QWORD PTR DP_EDP_14[rip]
	cmp	QWORD PTR [rax], rcx
	jl	.L1
.L2:
	lea	rbp, 20[rbx]
	mov	edx, DWORD PTR 24[rbx]
	mov	esi, DWORD PTR DP_DSC_SUPPORT[rip]
	mov	ecx, 4
	mov	rdi, rbp
	call	drm_dp_dpcd_read@PLT
	test	rax, rax
	js	.L10
.L4:
	mov	edx, DWORD PTR 24[rbx]
	lea	rdi, .LC1[rip]
	xor	eax, eax
	mov	esi, 4
	call	DRM_DEBUG_KMS@PLT
	mov	rdi, rbx
	call	intel_dp_is_edp@PLT
	test	eax, eax
	je	.L11
.L6:
	mov	esi, DWORD PTR 16[rbx]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	lea	rdi, .LC3[rip]
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	DRM_DEBUG_KMS@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	.cfi_restore_state
	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
.L11:
	.cfi_restore_state
	mov	esi, DWORD PTR DP_FEC_CAPABILITY[rip]
	lea	rdx, 16[rbx]
	mov	rdi, rbp
	call	drm_dp_dpcd_readb@PLT
	test	rax, rax
	jns	.L6
	lea	rdi, .LC2[rip]
	xor	eax, eax
	call	DRM_ERROR@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L10:
	mov	esi, DWORD PTR DP_DSC_SUPPORT[rip]
	lea	rdi, .LC0[rip]
	xor	eax, eax
	call	DRM_ERROR@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	intel_dp_get_dsc_sink_cap, .-intel_dp_get_dsc_sink_cap
	.comm	DP_FEC_CAPABILITY,4,4
	.comm	DP_EDP_14,8,8
	.comm	DP_DSC_SUPPORT,4,4
	.comm	DP_DPCD_REV,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_get_dsc_sink_cap.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Failed to read DPCD register 0x%x\012\000"
	.align	2
.LC1:
	.ascii	"DSC DPCD: %*ph\012\000"
	.align	2
.LC2:
	.ascii	"Failed to read FEC DPCD register\012\000"
	.align	2
.LC3:
	.ascii	"FEC CAPABILITY: %x\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	intel_dp_get_dsc_sink_cap, %function
intel_dp_get_dsc_sink_cap:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r2, #4
	mov	r1, #0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r0, [r0, #16]
	bl	memset
	mov	r1, #0
	ldr	r2, .L12
	ldr	r3, [r4]
	ldr	r2, [r2]
	str	r1, [r4, #8]
	ldr	r3, [r3, r2, lsl #2]
	cmp	r3, #19
	bgt	.L2
	ldr	r2, [r4, #4]
	ldr	r3, .L12+4
	ldr	r2, [r2]
	ldr	r3, [r3]
	cmp	r2, r3
	poplt	{r4, r5, r6, pc}
.L2:
	ldr	r6, .L12+8
	add	r5, r4, #12
	mov	r0, r5
	mov	r3, #4
	ldr	r1, [r6]
	ldr	r2, [r4, #16]
	bl	drm_dp_dpcd_read
	cmp	r0, #0
	blt	.L10
.L4:
	mov	r1, #4
	ldr	r2, [r4, #16]
	ldr	r0, .L12+12
	bl	DRM_DEBUG_KMS
	mov	r0, r4
	bl	intel_dp_is_edp
	cmp	r0, #0
	beq	.L11
.L6:
	ldr	r1, [r4, #8]
	ldr	r0, .L12+16
	pop	{r4, r5, r6, lr}
	b	DRM_DEBUG_KMS
.L11:
	ldr	r3, .L12+20
	mov	r0, r5
	ldr	r1, [r3]
	add	r2, r4, #8
	bl	drm_dp_dpcd_readb
	cmp	r0, #0
	bge	.L6
	ldr	r0, .L12+24
	bl	DRM_ERROR
	b	.L6
.L10:
	ldr	r1, [r6]
	ldr	r0, .L12+28
	bl	DRM_ERROR
	b	.L4
.L13:
	.align	2
.L12:
	.word	DP_DPCD_REV
	.word	DP_EDP_14
	.word	DP_DSC_SUPPORT
	.word	.LC1
	.word	.LC3
	.word	DP_FEC_CAPABILITY
	.word	.LC2
	.word	.LC0
	.size	intel_dp_get_dsc_sink_cap, .-intel_dp_get_dsc_sink_cap
	.comm	DP_FEC_CAPABILITY,4,4
	.comm	DP_EDP_14,4,4
	.comm	DP_DSC_SUPPORT,4,4
	.comm	DP_DPCD_REV,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
