	.file	"extr_hibernate.c_arch_hibernation_header_restore.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Unrecognized hibernate image header format!\n"
	.align 8
.LC1:
	.string	"Hibernate inconsistent memory map detected!\n"
	.text
	.p2align 4
	.globl	arch_hibernation_header_restore
	.type	arch_hibernation_header_restore, @function
arch_hibernation_header_restore:
.LFB0:
	.cfi_startproc
	endbr64
	sub	rsp, 8
	.cfi_def_cfa_offset 16
	mov	rax, QWORD PTR RESTORE_MAGIC[rip]
	cmp	QWORD PTR [rdi], rax
	je	.L2
	lea	rdi, .LC0[rip]
	call	pr_crit@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	eax, DWORD PTR 20[rdi]
	mov	DWORD PTR restore_jump_address[rip], eax
	mov	eax, DWORD PTR 16[rdi]
	mov	DWORD PTR jump_address_phys[rip], eax
	mov	eax, DWORD PTR 12[rdi]
	mov	edi, DWORD PTR 8[rdi]
	mov	DWORD PTR restore_cr3[rip], eax
	call	hibernation_e820_mismatch@PLT
	mov	r8, rax
	xor	eax, eax
	test	r8, r8
	je	.L1
	lea	rdi, .LC1[rip]
	call	pr_crit@PLT
	mov	eax, DWORD PTR ENODEV[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	arch_hibernation_header_restore, .-arch_hibernation_header_restore
	.comm	restore_jump_address,4,4
	.comm	restore_cr3,4,4
	.comm	jump_address_phys,4,4
	.comm	RESTORE_MAGIC,8,8
	.comm	ENODEV,4,4
	.comm	EINVAL,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_arch_hibernation_header_restore.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Unrecognized hibernate image header format!\012\000"
	.align	2
.LC1:
	.ascii	"Hibernate inconsistent memory map detected!\012\000"
	.text
	.align	2
	.global	arch_hibernation_header_restore
	.syntax unified
	.arm
	.fpu softvfp
	.type	arch_hibernation_header_restore, %function
arch_hibernation_header_restore:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L9
	ldr	r2, [r0]
	ldr	r3, [r3]
	push	{r4, lr}
	cmp	r2, r3
	beq	.L2
	ldr	r0, .L9+4
	bl	pr_crit
	ldr	r3, .L9+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, pc}
.L2:
	ldr	lr, [r0, #16]
	ldr	r2, .L9+12
	ldr	ip, [r0, #12]
	ldr	r1, .L9+16
	ldr	r3, .L9+20
	str	lr, [r2]
	ldmib	r0, {r0, r2}
	str	ip, [r1]
	str	r2, [r3]
	bl	hibernation_e820_mismatch
	cmp	r0, #0
	popeq	{r4, pc}
	ldr	r0, .L9+24
	bl	pr_crit
	ldr	r3, .L9+28
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, pc}
.L10:
	.align	2
.L9:
	.word	RESTORE_MAGIC
	.word	.LC0
	.word	EINVAL
	.word	restore_jump_address
	.word	jump_address_phys
	.word	restore_cr3
	.word	.LC1
	.word	ENODEV
	.size	arch_hibernation_header_restore, .-arch_hibernation_header_restore
	.comm	restore_jump_address,4,4
	.comm	restore_cr3,4,4
	.comm	jump_address_phys,4,4
	.comm	RESTORE_MAGIC,4,4
	.comm	ENODEV,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
