	.file	"extr_i915_drv.c_i915_drm_freeze.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"GEM idle failed, resume might fail\n"
	.text
	.p2align 4
	.type	i915_drm_freeze, @function
i915_drm_freeze:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, QWORD PTR 8[rdi]
	lea	r12, 8[rbx]
	mov	rdi, r12
	call	mutex_lock@PLT
	mov	eax, DWORD PTR MODESET_SUSPENDED[rip]
	mov	rdi, r12
	mov	DWORD PTR 12[rbx], eax
	call	mutex_unlock@PLT
	mov	esi, 1
	mov	rdi, rbp
	call	intel_set_power_well@PLT
	mov	rdi, rbp
	call	drm_kms_helper_poll_disable@PLT
	mov	rdi, QWORD PTR 0[rbp]
	call	pci_save_state@PLT
	mov	esi, DWORD PTR DRIVER_MODESET[rip]
	mov	rdi, rbp
	call	drm_core_check_feature@PLT
	test	rax, rax
	je	.L2
	mov	rdi, rbp
	call	i915_gem_idle@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L10
	lea	rdi, 4[rbx]
	call	cancel_delayed_work_sync@PLT
	mov	rdi, rbp
	call	intel_modeset_disable@PLT
	mov	rdi, rbp
	call	drm_irq_uninstall@PLT
	mov	DWORD PTR [rbx], 0
.L2:
	mov	rdi, rbp
	xor	r12d, r12d
	call	i915_save_state@PLT
	mov	rdi, rbp
	call	intel_opregion_fini@PLT
	xor	eax, eax
	call	console_lock@PLT
	mov	rdi, rbp
	mov	esi, 1
	call	intel_fbdev_set_suspend@PLT
	xor	eax, eax
	call	console_unlock@PLT
	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
.L10:
	.cfi_restore_state
	mov	rdi, QWORD PTR 0[rbp]
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	i915_drm_freeze, .-i915_drm_freeze
	.comm	MODESET_SUSPENDED,4,4
	.comm	DRIVER_MODESET,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_i915_drv.c_i915_drm_freeze.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"GEM idle failed, resume might fail\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	i915_drm_freeze, %function
i915_drm_freeze:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r6, [r0, #4]
	add	r5, r6, #8
	mov	r0, r5
	bl	mutex_lock
	ldr	r3, .L11
	mov	r0, r5
	ldr	r3, [r3]
	str	r3, [r6, #12]
	bl	mutex_unlock
	mov	r1, #1
	mov	r0, r4
	bl	intel_set_power_well
	mov	r0, r4
	bl	drm_kms_helper_poll_disable
	ldr	r0, [r4]
	bl	pci_save_state
	ldr	r3, .L11+4
	mov	r0, r4
	ldr	r1, [r3]
	bl	drm_core_check_feature
	cmp	r0, #0
	beq	.L2
	mov	r0, r4
	bl	i915_gem_idle
	subs	r5, r0, #0
	bne	.L10
	add	r0, r6, #4
	bl	cancel_delayed_work_sync
	mov	r0, r4
	bl	intel_modeset_disable
	mov	r0, r4
	bl	drm_irq_uninstall
	str	r5, [r6]
.L2:
	mov	r5, #0
	mov	r0, r4
	bl	i915_save_state
	mov	r0, r4
	bl	intel_opregion_fini
	bl	console_lock
	mov	r1, #1
	mov	r0, r4
	bl	intel_fbdev_set_suspend
	bl	console_unlock
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L10:
	ldr	r0, [r4]
	ldr	r1, .L11+8
	bl	dev_err
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L12:
	.align	2
.L11:
	.word	MODESET_SUSPENDED
	.word	DRIVER_MODESET
	.word	.LC0
	.size	i915_drm_freeze, .-i915_drm_freeze
	.comm	MODESET_SUSPENDED,4,4
	.comm	DRIVER_MODESET,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
