	.file	"extr_drm_fb_helper.c_drm_fb_helper_restore_fbdev_mode_unlocked.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	drm_fb_helper_restore_fbdev_mode_unlocked
	.type	drm_fb_helper_restore_fbdev_mode_unlocked, @function
drm_fb_helper_restore_fbdev_mode_unlocked:
.LFB0:
	.cfi_startproc
	endbr64
	mov	edx, DWORD PTR drm_fbdev_emulation[rip]
	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
	test	edx, edx
	je	.L7
	mov	rbp, rdi
	test	rdi, rdi
	je	.L7
	mov	edi, DWORD PTR 12[rdi]
	xor	r12d, r12d
	call	READ_ONCE@PLT
	test	rax, rax
	jne	.L1
	lea	r13, 4[rbp]
	mov	rdi, r13
	call	mutex_lock@PLT
	lea	rdi, 8[rbp]
	call	drm_client_modeset_commit_force@PLT
	mov	r12d, eax
	mov	eax, DWORD PTR 0[rbp]
	test	eax, eax
	je	.L5
	mov	DWORD PTR 0[rbp], 0
	mov	rdi, r13
	call	mutex_unlock@PLT
	mov	rdi, rbp
	call	drm_fb_helper_hotplug_event@PLT
	mov	eax, r12d
	pop	rbp
	.cfi_remember_state
	.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
.L7:
	.cfi_restore_state
	mov	r12d, DWORD PTR ENODEV[rip]
	neg	r12d
.L1:
	mov	eax, r12d
	pop	rbp
	.cfi_remember_state
	.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
.L5:
	.cfi_restore_state
	mov	rdi, r13
	call	mutex_unlock@PLT
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	drm_fb_helper_restore_fbdev_mode_unlocked, .-drm_fb_helper_restore_fbdev_mode_unlocked
	.comm	drm_fbdev_emulation,4,4
	.comm	ENODEV,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_fb_helper.c_drm_fb_helper_restore_fbdev_mode_unlocked.c"
	.text
	.align	2
	.global	drm_fb_helper_restore_fbdev_mode_unlocked
	.syntax unified
	.arm
	.fpu softvfp
	.type	drm_fb_helper_restore_fbdev_mode_unlocked, %function
drm_fb_helper_restore_fbdev_mode_unlocked:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	clz	r3, r0
	ldr	r2, .L8
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r4, [r2]
	lsr	r3, r3, #5
	cmp	r4, #0
	movne	r4, r3
	moveq	r4, #1
	cmp	r4, #0
	beq	.L2
	ldr	r3, .L8+4
	ldr	r4, [r3]
	rsb	r4, r4, #0
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	mov	r5, r0
	ldr	r0, [r0, #12]
	bl	READ_ONCE
	subs	r6, r0, #0
	bne	.L1
	add	r7, r5, #4
	mov	r0, r7
	bl	mutex_lock
	add	r0, r5, #8
	bl	drm_client_modeset_commit_force
	ldr	r3, [r5]
	mov	r4, r0
	cmp	r3, #0
	beq	.L4
	mov	r0, r7
	str	r6, [r5]
	bl	mutex_unlock
	mov	r0, r5
	bl	drm_fb_helper_hotplug_event
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L4:
	mov	r0, r7
	bl	mutex_unlock
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	.align	2
.L8:
	.word	drm_fbdev_emulation
	.word	ENODEV
	.size	drm_fb_helper_restore_fbdev_mode_unlocked, .-drm_fb_helper_restore_fbdev_mode_unlocked
	.comm	drm_fbdev_emulation,4,4
	.comm	ENODEV,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
