	.file	"extr_snapshot.c_swsusp_save.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Creating hibernation image:\n"
.LC1:
	.string	"Need to copy %u pages\n"
.LC2:
	.string	"Not enough free memory\n"
.LC3:
	.string	"Memory allocation failed\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC4:
	.string	"Hibernation image created (%d pages copied)\n"
	.text
	.p2align 4
	.globl	swsusp_save
	.type	swsusp_save, @function
swsusp_save:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	lea	rdi, .LC0[rip]
	xor	eax, eax
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	call	pr_info@PLT
	xor	edi, edi
	call	drain_local_pages@PLT
	xor	eax, eax
	call	count_data_pages@PLT
	mov	ebp, eax
	xor	eax, eax
	call	count_highmem_pages@PLT
	lea	rdi, .LC1[rip]
	lea	r13d, 0[rbp+rax]
	mov	r12d, eax
	xor	eax, eax
	mov	esi, r13d
	call	pr_info@PLT
	mov	esi, r12d
	mov	edi, ebp
	call	enough_free_mem@PLT
	test	eax, eax
	je	.L7
	mov	edx, r12d
	mov	esi, ebp
	lea	rdi, copy_bm[rip]
	call	swsusp_alloc@PLT
	test	rax, rax
	jne	.L8
	xor	edi, edi
	call	drain_local_pages@PLT
	lea	rsi, orig_bm[rip]
	lea	rdi, copy_bm[rip]
	call	copy_data_pages@PLT
	mov	esi, DWORD PTR PAGE_SIZE[rip]
	lea	edi, 0[0+r13*8]
	mov	DWORD PTR nr_copy_pages[rip], r13d
	call	DIV_ROUND_UP@PLT
	mov	esi, r13d
	lea	rdi, .LC4[rip]
	mov	DWORD PTR nr_meta_pages[rip], eax
	xor	eax, eax
	call	pr_info@PLT
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	lea	rdi, .LC3[rip]
	call	pr_err@PLT
	mov	eax, DWORD PTR ENOMEM[rip]
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	lea	rdi, .LC2[rip]
	call	pr_err@PLT
	mov	eax, DWORD PTR ENOMEM[rip]
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	swsusp_save, .-swsusp_save
	.comm	orig_bm,4,4
	.comm	nr_meta_pages,4,4
	.comm	nr_copy_pages,4,4
	.comm	copy_bm,4,4
	.comm	PAGE_SIZE,4,4
	.comm	ENOMEM,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_snapshot.c_swsusp_save.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Creating hibernation image:\012\000"
	.align	2
.LC1:
	.ascii	"Need to copy %u pages\012\000"
	.align	2
.LC2:
	.ascii	"Not enough free memory\012\000"
	.align	2
.LC3:
	.ascii	"Memory allocation failed\012\000"
	.align	2
.LC4:
	.ascii	"Hibernation image created (%d pages copied)\012\000"
	.text
	.align	2
	.global	swsusp_save
	.syntax unified
	.arm
	.fpu softvfp
	.type	swsusp_save, %function
swsusp_save:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r0, .L9
	bl	pr_info
	mov	r0, #0
	bl	drain_local_pages
	bl	count_data_pages
	mov	r4, r0
	bl	count_highmem_pages
	mov	r5, r0
	add	r6, r4, r0
	mov	r1, r6
	ldr	r0, .L9+4
	bl	pr_info
	mov	r1, r5
	mov	r0, r4
	bl	enough_free_mem
	cmp	r0, #0
	beq	.L7
	mov	r1, r4
	mov	r2, r5
	ldr	r0, .L9+8
	bl	swsusp_alloc
	subs	r4, r0, #0
	bne	.L8
	bl	drain_local_pages
	ldr	r1, .L9+12
	ldr	r0, .L9+8
	bl	copy_data_pages
	ldr	r2, .L9+16
	ldr	r3, .L9+20
	ldr	r1, [r2]
	lsl	r0, r6, #2
	str	r6, [r3]
	bl	DIV_ROUND_UP
	mov	r2, r0
	ldr	r3, .L9+24
	mov	r1, r6
	ldr	r0, .L9+28
	str	r2, [r3]
	bl	pr_info
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L8:
	ldr	r0, .L9+32
	bl	pr_err
	ldr	r3, .L9+36
	ldr	r4, [r3]
	rsb	r4, r4, #0
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L7:
	ldr	r0, .L9+40
	bl	pr_err
	ldr	r3, .L9+36
	ldr	r4, [r3]
	rsb	r4, r4, #0
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L10:
	.align	2
.L9:
	.word	.LC0
	.word	.LC1
	.word	copy_bm
	.word	orig_bm
	.word	PAGE_SIZE
	.word	nr_copy_pages
	.word	nr_meta_pages
	.word	.LC4
	.word	.LC3
	.word	ENOMEM
	.word	.LC2
	.size	swsusp_save, .-swsusp_save
	.comm	orig_bm,4,4
	.comm	nr_meta_pages,4,4
	.comm	nr_copy_pages,4,4
	.comm	copy_bm,4,4
	.comm	PAGE_SIZE,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
