	.file	"extr_drm_edid.c_add_standard_modes.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	add_standard_modes, @function
add_standard_modes:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 40
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR EDID_STD_TIMINGS[rip]
	mov	QWORD PTR [rsp], 0
	mov	QWORD PTR 8[rsp], rsi
	mov	QWORD PTR 16[rsp], rdi
	test	eax, eax
	jle	.L7
	mov	r12, rdi
	xor	ebx, ebx
	xor	r13d, r13d
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rax, QWORD PTR 0[rbp]
	mov	rsi, rbp
	mov	rdi, r12
	lea	rdx, [rax+rbx*4]
	call	drm_mode_std@PLT
	mov	rsi, rax
	test	rax, rax
	je	.L3
	mov	rdi, r12
	add	r13d, 1
	call	drm_mode_probed_add@PLT
.L3:
	add	rbx, 1
	cmp	DWORD PTR EDID_STD_TIMINGS[rip], ebx
	jg	.L4
.L2:
	xor	edx, edx
	mov	esi, 1
	mov	rdi, rbp
	call	version_greater@PLT
	test	rax, rax
	jne	.L17
.L5:
	mov	eax, DWORD PTR [rsp]
	add	eax, r13d
	mov	rcx, QWORD PTR 24[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L18
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	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
.L17:
	.cfi_restore_state
	mov	esi, DWORD PTR do_standard_modes[rip]
	mov	rdx, rsp
	mov	rdi, rbp
	call	drm_for_each_detailed_block@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L7:
	xor	r13d, r13d
	jmp	.L2
.L18:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	add_standard_modes, .-add_standard_modes
	.comm	do_standard_modes,4,4
	.comm	EDID_STD_TIMINGS,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_drm_edid.c_add_standard_modes.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	add_standard_modes, %function
add_standard_modes:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, #0
	ldr	r8, .L19
	sub	sp, sp, #16
	ldr	r3, [r8]
	str	r0, [sp, #8]
	cmp	r3, r6
	ldr	r3, .L19+4
	str	r1, [sp, #4]
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	mov	r5, r1
	str	r6, [sp]
	ble	.L2
	mov	r7, r0
	mov	r4, r6
.L4:
	ldr	r2, [r5]
	mov	r1, r5
	mov	r0, r7
	add	r2, r2, r4, lsl #2
	bl	drm_mode_std
	subs	r1, r0, #0
	beq	.L3
	mov	r0, r7
	bl	drm_mode_probed_add
	add	r6, r6, #1
.L3:
	ldr	r3, [r8]
	add	r4, r4, #1
	cmp	r3, r4
	bgt	.L4
.L2:
	mov	r2, #0
	mov	r1, #1
	mov	r0, r5
	bl	version_greater
	cmp	r0, #0
	bne	.L17
.L5:
	ldr	r3, .L19+4
	ldr	r0, [sp]
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	add	r0, r6, r0
	bne	.L18
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L17:
	ldr	r3, .L19+8
	mov	r0, r5
	mov	r2, sp
	ldr	r1, [r3]
	bl	drm_for_each_detailed_block
	b	.L5
.L18:
	bl	__stack_chk_fail
.L20:
	.align	2
.L19:
	.word	EDID_STD_TIMINGS
	.word	.LC0
	.word	do_standard_modes
	.size	add_standard_modes, .-add_standard_modes
	.comm	do_standard_modes,4,4
	.comm	EDID_STD_TIMINGS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
