	.file	"extr_drm_edid.c_do_detailed_mode.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	do_detailed_mode, @function
do_detailed_mode:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	QWORD PTR [rdi], 0
	jne	.L14
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rdx, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rax, QWORD PTR 8[rbx]
	mov	ecx, DWORD PTR 16[rsi]
	mov	esi, DWORD PTR 20[rsi]
	mov	edi, DWORD PTR [rax]
	call	drm_mode_detailed@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L1
	mov	eax, DWORD PTR [rbx]
	test	eax, eax
	jne	.L15
.L5:
	mov	rdi, rbp
	call	fixup_detailed_cea_mode_clock@PLT
	mov	rdi, QWORD PTR 8[rbx]
	mov	rsi, rbp
	call	drm_mode_probed_add@PLT
	add	DWORD PTR 4[rbx], 1
	mov	DWORD PTR [rbx], 0
.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
.L15:
	.cfi_restore_state
	mov	eax, DWORD PTR DRM_MODE_TYPE_PREFERRED[rip]
	or	DWORD PTR 0[rbp], eax
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	do_detailed_mode, .-do_detailed_mode
	.comm	DRM_MODE_TYPE_PREFERRED,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_do_detailed_mode.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	do_detailed_mode, %function
do_detailed_mode:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	cmp	r3, #0
	bxeq	lr
	ldr	r3, [r1, #8]
	push	{r4, r5, r6, lr}
	mov	r2, r0
	mov	r4, r1
	ldr	r0, [r3]
	ldr	r3, [r1, #12]
	ldr	r1, [r1, #16]
	bl	drm_mode_detailed
	subs	r5, r0, #0
	popeq	{r4, r5, r6, pc}
	ldr	r3, [r4]
	mov	r0, r5
	cmp	r3, #0
	ldrne	r2, .L17
	ldrne	r3, [r5]
	ldrne	r2, [r2]
	orrne	r3, r3, r2
	strne	r3, [r5]
	bl	fixup_detailed_cea_mode_clock
	mov	r1, r5
	ldr	r0, [r4, #8]
	bl	drm_mode_probed_add
	mov	r2, #0
	ldr	r3, [r4, #4]
	str	r2, [r4]
	add	r3, r3, #1
	str	r3, [r4, #4]
	pop	{r4, r5, r6, pc}
.L18:
	.align	2
.L17:
	.word	DRM_MODE_TYPE_PREFERRED
	.size	do_detailed_mode, .-do_detailed_mode
	.comm	DRM_MODE_TYPE_PREFERRED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
