	.file	"extr_drm_modes.c_drm_mode_vrefresh.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	drm_mode_vrefresh
	.type	drm_mode_vrefresh, @function
drm_mode_vrefresh:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR [rdi]
	test	eax, eax
	jle	.L14
.L1:
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	mov	ecx, DWORD PTR 4[rdi]
	xor	eax, eax
	test	ecx, ecx
	je	.L1
	mov	r8d, DWORD PTR 8[rdi]
	test	r8d, r8d
	jle	.L1
	imul	eax, DWORD PTR 12[rdi], 1000
	xor	edx, edx
	mov	esi, r8d
	sar	esi
	div	ecx
	xor	edx, edx
	add	eax, esi
	div	r8d
	mov	edx, DWORD PTR 16[rdi]
	test	DWORD PTR DRM_MODE_FLAG_INTERLACE[rip], edx
	lea	ecx, [rax+rax]
	cmovne	eax, ecx
	test	DWORD PTR DRM_MODE_FLAG_DBLSCAN[rip], edx
	je	.L4
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
.L4:
	mov	ecx, DWORD PTR 20[rdi]
	cmp	ecx, 1
	jle	.L1
	cdq
	idiv	ecx
	ret
	.cfi_endproc
.LFE0:
	.size	drm_mode_vrefresh, .-drm_mode_vrefresh
	.comm	DRM_MODE_FLAG_INTERLACE,4,4
	.comm	DRM_MODE_FLAG_DBLSCAN,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_modes.c_drm_mode_vrefresh.c"
	.text
	.global	__aeabi_uidiv
	.global	__aeabi_idiv
	.align	2
	.global	drm_mode_vrefresh
	.syntax unified
	.arm
	.fpu softvfp
	.type	drm_mode_vrefresh, %function
drm_mode_vrefresh:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r0, [r0]
	cmp	r0, #0
	popgt	{r4, r5, r6, pc}
	ldr	r1, [r4, #4]
	cmp	r1, #0
	beq	.L6
	ldr	r5, [r4, #8]
	cmp	r5, #0
	ble	.L6
	ldr	r0, [r4, #12]
	rsb	r3, r0, r0, lsl #5
	add	r0, r0, r3, lsl #2
	lsl	r0, r0, #3
	bl	__aeabi_uidiv
	mov	r1, r5
	asr	r5, r5, #1
	add	r0, r5, r0
	bl	__aeabi_uidiv
	ldr	r2, .L15
	ldr	r3, [r4, #16]
	ldr	r2, [r2]
	tst	r3, r2
	ldr	r2, .L15+4
	lslne	r0, r0, #1
	ldr	r2, [r2]
	tst	r3, r2
	addne	r1, r0, r0, lsr #31
	asrne	r0, r1, #1
	ldr	r1, [r4, #20]
	cmp	r1, #1
	pople	{r4, r5, r6, pc}
	bl	__aeabi_idiv
	pop	{r4, r5, r6, pc}
.L6:
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L16:
	.align	2
.L15:
	.word	DRM_MODE_FLAG_INTERLACE
	.word	DRM_MODE_FLAG_DBLSCAN
	.size	drm_mode_vrefresh, .-drm_mode_vrefresh
	.comm	DRM_MODE_FLAG_INTERLACE,4,4
	.comm	DRM_MODE_FLAG_DBLSCAN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
