	.file	"extr_vt8500lcdfb.c_vt8500lcd_ioctl.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	vt8500lcd_ioctl, @function
vt8500lcd_ioctl:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	r12d, r12d
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	ebx, esi
	call	to_vt8500lcd_info@PLT
	cmp	DWORD PTR FBIO_WAITFORVSYNC[rip], ebx
	je	.L6
.L1:
	mov	eax, r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	rbp, rax
	mov	rax, QWORD PTR [rax]
	mov	edi, -9
	lea	rsi, 60[rax]
	call	writel@PLT
	movsx	r12, DWORD PTR HZ[rip]
	mov	rax, r12
	imul	r12, r12, 1717986919
	sar	eax, 31
	sar	r12, 34
	sub	r12d, eax
	mov	rax, QWORD PTR 0[rbp]
	lea	rdi, 56[rax]
	call	readl@PLT
	mov	edi, DWORD PTR 8[rbp]
	mov	edx, r12d
	and	eax, 8
	mov	esi, eax
	call	wait_event_interruptible_timeout@PLT
	mov	rsi, QWORD PTR 0[rbp]
	mov	edi, -1
	mov	r12d, eax
	add	rsi, 60
	call	writel@PLT
	test	r12d, r12d
	jne	.L1
	mov	r12d, DWORD PTR ETIMEDOUT[rip]
	neg	r12d
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	vt8500lcd_ioctl, .-vt8500lcd_ioctl
	.comm	HZ,4,4
	.comm	FBIO_WAITFORVSYNC,4,4
	.comm	ETIMEDOUT,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_vt8500lcdfb.c_vt8500lcd_ioctl.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vt8500lcd_ioctl, %function
vt8500lcd_ioctl:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r1
	bl	to_vt8500lcd_info
	ldr	r3, .L7
	ldr	r3, [r3]
	cmp	r3, r4
	movne	r4, #0
	beq	.L6
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L6:
	mov	r5, r0
	ldr	r1, [r0]
	mvn	r0, #8
	add	r1, r1, #60
	bl	writel
	ldm	r5, {r0, r4}
	add	r0, r0, #56
	bl	readl
	ldr	r3, .L7+4
	ldr	r2, .L7+8
	ldr	r3, [r3]
	and	r1, r0, #8
	smull	r0, r2, r3, r2
	asr	r3, r3, #31
	rsb	r2, r3, r2, asr #2
	mov	r0, r4
	bl	wait_event_interruptible_timeout
	ldr	r1, [r5]
	mov	r4, r0
	add	r1, r1, #60
	mvn	r0, #0
	bl	writel
	cmp	r4, #0
	ldreq	r3, .L7+12
	ldreq	r4, [r3]
	rsbeq	r4, r4, #0
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L8:
	.align	2
.L7:
	.word	FBIO_WAITFORVSYNC
	.word	HZ
	.word	1717986919
	.word	ETIMEDOUT
	.size	vt8500lcd_ioctl, .-vt8500lcd_ioctl
	.comm	HZ,4,4
	.comm	FBIO_WAITFORVSYNC,4,4
	.comm	ETIMEDOUT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
