	.file	"extr_swap.c_swap_writer_finish.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"S"
.LC1:
	.string	"|\n"
	.text
	.p2align 4
	.type	swap_writer_finish, @function
swap_writer_finish:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	test	edx, edx
	je	.L10
.L2:
	mov	edi, DWORD PTR root_swap[rip]
	call	free_all_swap_pages@PLT
.L3:
	mov	rdi, rbp
	call	release_swap_writer@PLT
	mov	edi, DWORD PTR FMODE_WRITE[rip]
	call	swsusp_close@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
.L10:
	.cfi_restore_state
	mov	r13d, esi
	call	flush_swap_writer@PLT
	lea	rdi, .LC0[rip]
	call	pr_info@PLT
	mov	rdi, rbp
	mov	esi, r13d
	call	mark_swapfiles@PLT
	lea	rdi, .LC1[rip]
	mov	r12d, eax
	call	pr_cont@PLT
	test	r12d, r12d
	je	.L3
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	swap_writer_finish, .-swap_writer_finish
	.comm	root_swap,4,4
	.comm	FMODE_WRITE,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_swap.c_swap_writer_finish.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"S\000"
	.align	2
.LC1:
	.ascii	"|\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	swap_writer_finish, %function
swap_writer_finish:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	subs	r4, r2, #0
	mov	r5, r0
	beq	.L9
.L2:
	ldr	r3, .L10
	ldr	r0, [r3]
	bl	free_all_swap_pages
.L3:
	mov	r0, r5
	bl	release_swap_writer
	ldr	r3, .L10+4
	ldr	r0, [r3]
	bl	swsusp_close
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L9:
	mov	r6, r1
	bl	flush_swap_writer
	ldr	r0, .L10+8
	bl	pr_info
	mov	r1, r6
	mov	r0, r5
	bl	mark_swapfiles
	mov	r4, r0
	ldr	r0, .L10+12
	bl	pr_cont
	cmp	r4, #0
	beq	.L3
	b	.L2
.L11:
	.align	2
.L10:
	.word	root_swap
	.word	FMODE_WRITE
	.word	.LC0
	.word	.LC1
	.size	swap_writer_finish, .-swap_writer_finish
	.comm	root_swap,4,4
	.comm	FMODE_WRITE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
