	.file	"extr_drm_edid.c_drm_find_cea_extension.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	drm_find_cea_extension
	.type	drm_find_cea_extension, @function
drm_find_cea_extension:
.LFB0:
	.cfi_startproc
	endbr64
	test	rdi, rdi
	je	.L6
	mov	ecx, DWORD PTR [rdi]
	test	ecx, ecx
	je	.L6
	movsx	rdx, DWORD PTR EDID_LENGTH[rip]
	mov	r9, QWORD PTR CEA_EXT[rip]
	xor	eax, eax
	xor	r8d, r8d
	lea	rsi, 0[0+rdx*8]
	neg	rdx
	add	rdi, rsi
	sal	rdx, 3
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	mov	r8, rdi
	add	rdi, rsi
	add	eax, 1
	cmp	QWORD PTR [rdi+rdx], r9
	je	.L1
.L3:
	cmp	ecx, eax
	jg	.L4
	mov	eax, 0
	cmove	r8, rax
.L1:
	mov	rax, r8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	xor	r8d, r8d
	mov	rax, r8
	ret
	.cfi_endproc
.LFE0:
	.size	drm_find_cea_extension, .-drm_find_cea_extension
	.comm	EDID_LENGTH,4,4
	.comm	CEA_EXT,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_drm_edid.c_drm_find_cea_extension.c"
	.text
	.align	2
	.global	drm_find_cea_extension
	.syntax unified
	.arm
	.fpu softvfp
	.type	drm_find_cea_extension, %function
drm_find_cea_extension:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	subs	r3, r0, #0
	beq	.L5
	push	{r4, r5, lr}
	ldr	lr, [r3]
	cmp	lr, #0
	beq	.L7
	mov	r2, #0
	ldr	r0, .L13
	ldr	r1, .L13+4
	ldr	ip, [r0]
	ldr	r5, [r1]
	rsb	r4, ip, ip, lsl #30
	add	r3, r3, ip, lsl #2
	mov	r0, r2
	lsl	r4, r4, #2
	lsl	ip, ip, #2
	b	.L3
.L4:
	mov	r0, r3
	add	r3, r3, ip
	ldr	r1, [r3, r4]
	add	r2, r2, #1
	cmp	r1, r5
	popeq	{r4, r5, pc}
.L3:
	cmp	lr, r2
	bgt	.L4
	popne	{r4, r5, pc}
.L7:
	mov	r0, #0
	pop	{r4, r5, pc}
.L5:
	mov	r0, r3
	bx	lr
.L14:
	.align	2
.L13:
	.word	EDID_LENGTH
	.word	CEA_EXT
	.size	drm_find_cea_extension, .-drm_find_cea_extension
	.comm	EDID_LENGTH,4,4
	.comm	CEA_EXT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
