	.file	"extr_snapshot.c_create_basic_memory_bitmaps.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Basic memory bitmaps created\n"
	.text
	.p2align 4
	.globl	create_basic_memory_bitmaps
	.type	create_basic_memory_bitmaps, @function
create_basic_memory_bitmaps:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	QWORD PTR forbidden_pages_map[rip], 0
	mov	rax, QWORD PTR free_pages_map[rip]
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	je	.L2
	xor	r12d, r12d
	mov	edi, 1
	test	rax, rax
	je	.L4
.L1:
	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
.L2:
	.cfi_restore_state
	xor	edi, edi
	test	rax, rax
	setne	dil
.L4:
	call	BUG_ON@PLT
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, 4
	call	kzalloc@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L14
	mov	edx, DWORD PTR PG_ANY[rip]
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	rdi, rax
	call	memory_bm_create@PLT
	test	eax, eax
	jne	.L6
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, 4
	call	kzalloc@PLT
	mov	r13, rax
	test	rax, rax
	je	.L7
	mov	edx, DWORD PTR PG_ANY[rip]
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	rdi, rax
	call	memory_bm_create@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L16
	mov	rdi, rbp
	mov	QWORD PTR forbidden_pages_map[rip], rbp
	mov	QWORD PTR free_pages_map[rip], r13
	call	mark_nosave_pages@PLT
	lea	rdi, .LC0[rip]
	call	pr_debug@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L16:
	mov	rdi, r13
	call	kfree@PLT
.L7:
	mov	esi, DWORD PTR PG_UNSAFE_CLEAR[rip]
	mov	rdi, rbp
	call	memory_bm_free@PLT
.L6:
	mov	rdi, rbp
	call	kfree@PLT
.L14:
	mov	r12d, DWORD PTR ENOMEM[rip]
	pop	rbp
	.cfi_def_cfa_offset 24
	neg	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	create_basic_memory_bitmaps, .-create_basic_memory_bitmaps
	.comm	free_pages_map,8,8
	.comm	forbidden_pages_map,8,8
	.comm	PG_UNSAFE_CLEAR,4,4
	.comm	PG_ANY,4,4
	.comm	GFP_KERNEL,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_create_basic_memory_bitmaps.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Basic memory bitmaps created\012\000"
	.text
	.align	2
	.global	create_basic_memory_bitmaps
	.syntax unified
	.arm
	.fpu softvfp
	.type	create_basic_memory_bitmaps, %function
create_basic_memory_bitmaps:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r7, .L17
	ldr	r6, .L17+4
	ldr	r3, [r7]
	ldr	r0, [r6]
	cmp	r3, #0
	beq	.L2
	cmp	r0, #0
	moveq	r0, #1
	beq	.L4
	mov	r4, #0
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	subs	r0, r0, #0
	movne	r0, #1
.L4:
	ldr	r4, .L17+8
	bl	BUG_ON
	mov	r0, #4
	ldr	r1, [r4]
	bl	kzalloc
	subs	r5, r0, #0
	beq	.L14
	ldr	r8, .L17+12
	ldr	r1, [r4]
	ldr	r2, [r8]
	bl	memory_bm_create
	cmp	r0, #0
	bne	.L6
	mov	r0, #4
	ldr	r1, [r4]
	bl	kzalloc
	subs	r9, r0, #0
	beq	.L7
	ldr	r1, [r4]
	ldr	r2, [r8]
	bl	memory_bm_create
	subs	r4, r0, #0
	bne	.L16
	mov	r0, r5
	str	r5, [r7]
	str	r9, [r6]
	bl	mark_nosave_pages
	ldr	r0, .L17+16
	bl	pr_debug
	b	.L1
.L16:
	mov	r0, r9
	bl	kfree
.L7:
	ldr	r3, .L17+20
	mov	r0, r5
	ldr	r1, [r3]
	bl	memory_bm_free
.L6:
	mov	r0, r5
	bl	kfree
.L14:
	ldr	r3, .L17+24
	ldr	r4, [r3]
	rsb	r4, r4, #0
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L18:
	.align	2
.L17:
	.word	forbidden_pages_map
	.word	free_pages_map
	.word	GFP_KERNEL
	.word	PG_ANY
	.word	.LC0
	.word	PG_UNSAFE_CLEAR
	.word	ENOMEM
	.size	create_basic_memory_bitmaps, .-create_basic_memory_bitmaps
	.comm	free_pages_map,4,4
	.comm	forbidden_pages_map,4,4
	.comm	PG_UNSAFE_CLEAR,4,4
	.comm	PG_ANY,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
