	.file	"extr_hibernate.c_hibernation_platform_enter.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	hibernation_platform_enter
	.type	hibernation_platform_enter, @function
hibernation_platform_enter:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	rdx, QWORD PTR hibernation_ops[rip]
	mov	r12d, DWORD PTR ENOSYS[rip]
	neg	r12d
	test	rdx, rdx
	je	.L1
	xor	eax, eax
	call	[QWORD PTR [rdx]]
	mov	r12d, eax
	test	eax, eax
	je	.L14
.L4:
	mov	rdx, QWORD PTR hibernation_ops[rip]
	xor	eax, eax
	call	[QWORD PTR 16[rdx]]
.L1:
	mov	eax, r12d
	pop	r12
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L14:
	.cfi_restore_state
	mov	DWORD PTR entering_platform_hibernation[rip], 1
	xor	eax, eax
	call	suspend_console@PLT
	mov	edi, DWORD PTR PMSG_HIBERNATE[rip]
	call	dpm_suspend_start@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L5
	mov	rax, QWORD PTR hibernation_ops[rip]
	mov	rdx, QWORD PTR 40[rax]
	test	rdx, rdx
	je	.L6
	xor	eax, eax
	call	rdx
.L6:
	mov	DWORD PTR entering_platform_hibernation[rip], 0
	mov	edi, DWORD PTR PMSG_RESTORE[rip]
	call	dpm_resume_end@PLT
	xor	eax, eax
	call	resume_console@PLT
	jmp	.L4
.L5:
	mov	edi, DWORD PTR PMSG_HIBERNATE[rip]
	call	dpm_suspend_noirq@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L6
	mov	rdx, QWORD PTR hibernation_ops[rip]
	xor	eax, eax
	call	[QWORD PTR 8[rdx]]
	mov	r12d, eax
	test	eax, eax
	jne	.L7
	xor	eax, eax
	call	disable_nonboot_cpus@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L15
.L7:
	mov	rdx, QWORD PTR hibernation_ops[rip]
	xor	eax, eax
	call	[QWORD PTR 24[rdx]]
	mov	edi, DWORD PTR PMSG_RESTORE[rip]
	call	dpm_suspend_noirq@PLT
	jmp	.L6
.L15:
	xor	eax, eax
	call	local_irq_disable@PLT
	mov	edi, DWORD PTR PMSG_HIBERNATE[rip]
	call	sysdev_suspend@PLT
	mov	rdx, QWORD PTR hibernation_ops[rip]
	xor	eax, eax
	call	[QWORD PTR 32[rdx]]
.L8:
	jmp	.L8
	.cfi_endproc
.LFE0:
	.size	hibernation_platform_enter, .-hibernation_platform_enter
	.comm	hibernation_ops,8,8
	.comm	entering_platform_hibernation,4,4
	.comm	PMSG_RESTORE,4,4
	.comm	PMSG_HIBERNATE,4,4
	.comm	ENOSYS,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_hibernate.c_hibernation_platform_enter.c"
	.text
	.align	2
	.global	hibernation_platform_enter
	.syntax unified
	.arm
	.fpu softvfp
	.type	hibernation_platform_enter, %function
hibernation_platform_enter:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r6, .L20
	ldr	r3, [r6]
	cmp	r3, #0
	beq	.L17
	ldr	r3, [r3]
	blx	r3
	subs	r4, r0, #0
	beq	.L18
.L4:
	ldr	r3, [r6]
	ldr	r3, [r3, #8]
	blx	r3
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L18:
	mov	r3, #1
	ldr	r7, .L20+4
	ldr	r5, .L20+8
	str	r3, [r7]
	bl	suspend_console
	ldr	r0, [r5]
	bl	dpm_suspend_start
	subs	r4, r0, #0
	beq	.L5
	ldr	r3, [r6]
	ldr	r3, [r3, #20]
	cmp	r3, #0
	beq	.L15
	blx	r3
.L15:
	ldr	r5, .L20+12
.L6:
	mov	r3, #0
	ldr	r0, [r5]
	str	r3, [r7]
	bl	dpm_resume_end
	bl	resume_console
	b	.L4
.L5:
	ldr	r0, [r5]
	bl	dpm_suspend_noirq
	subs	r4, r0, #0
	bne	.L15
	ldr	r3, [r6]
	ldr	r3, [r3, #4]
	blx	r3
	subs	r4, r0, #0
	bne	.L7
	bl	disable_nonboot_cpus
	subs	r4, r0, #0
	beq	.L19
.L7:
	ldr	r3, [r6]
	ldr	r5, .L20+12
	ldr	r3, [r3, #12]
	blx	r3
	ldr	r0, [r5]
	bl	dpm_suspend_noirq
	b	.L6
.L17:
	ldr	r3, .L20+16
	ldr	r4, [r3]
	rsb	r4, r4, #0
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L19:
	bl	local_irq_disable
	ldr	r0, [r5]
	bl	sysdev_suspend
	ldr	r3, [r6]
	ldr	r3, [r3, #16]
	blx	r3
.L8:
	b	.L8
.L21:
	.align	2
.L20:
	.word	hibernation_ops
	.word	entering_platform_hibernation
	.word	PMSG_HIBERNATE
	.word	PMSG_RESTORE
	.word	ENOSYS
	.size	hibernation_platform_enter, .-hibernation_platform_enter
	.comm	hibernation_ops,4,4
	.comm	entering_platform_hibernation,4,4
	.comm	PMSG_RESTORE,4,4
	.comm	PMSG_HIBERNATE,4,4
	.comm	ENOSYS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
