	.file	"7950647.c"
	.intel_syntax noprefix
	.text
	.globl	PTE_FLAG_D
	.section	.rodata
	.type	PTE_FLAG_D, @object
	.size	PTE_FLAG_D, 1
PTE_FLAG_D:
	.byte	-128
	.globl	PTE_FLAG_A
	.type	PTE_FLAG_A, @object
	.size	PTE_FLAG_A, 1
PTE_FLAG_A:
	.byte	64
	.globl	PTE_FLAG_G
	.type	PTE_FLAG_G, @object
	.size	PTE_FLAG_G, 1
PTE_FLAG_G:
	.byte	32
	.globl	PTE_FLAG_U
	.type	PTE_FLAG_U, @object
	.size	PTE_FLAG_U, 1
PTE_FLAG_U:
	.byte	16
	.globl	PTE_FLAG_X
	.type	PTE_FLAG_X, @object
	.size	PTE_FLAG_X, 1
PTE_FLAG_X:
	.byte	8
	.globl	PTE_FLAG_W
	.type	PTE_FLAG_W, @object
	.size	PTE_FLAG_W, 1
PTE_FLAG_W:
	.byte	4
	.globl	PTE_FLAG_R
	.type	PTE_FLAG_R, @object
	.size	PTE_FLAG_R, 1
PTE_FLAG_R:
	.byte	2
	.globl	PTE_FLAG_V
	.type	PTE_FLAG_V, @object
	.size	PTE_FLAG_V, 1
PTE_FLAG_V:
	.byte	1
	.globl	PTE_FLAG_PTR
	.type	PTE_FLAG_PTR, @object
	.size	PTE_FLAG_PTR, 1
PTE_FLAG_PTR:
	.byte	33
	.globl	root_page_table
	.section	.data.pt,"aw"
	.align 4096
	.type	root_page_table, @object
	.size	root_page_table, 4096
root_page_table:
	.zero	4096
	.globl	kernel_page_table
	.align 4096
	.type	kernel_page_table, @object
	.size	kernel_page_table, 4096
kernel_page_table:
	.zero	4096
	.globl	user_page_table
	.align 4096
	.type	user_page_table, @object
	.size	user_page_table, 4096
user_page_table:
	.zero	4096
	.globl	MEM_BASE
	.section	.rodata
	.align 8
	.type	MEM_BASE, @object
	.size	MEM_BASE, 8
MEM_BASE:
	.quad	2147483648
	.globl	MEM_SIZE
	.align 8
	.type	MEM_SIZE, @object
	.size	MEM_SIZE, 8
MEM_SIZE:
	.quad	8388608
	.align 8
.LC0:
	.string	"Root page table not correctly aligned"
	.align 8
.LC1:
	.string	"Kernel page table not correctly aligned"
	.align 8
.LC2:
	.string	"User page table not correctly aligned"
	.text
	.globl	init_page_table
	.type	init_page_table, @function
init_page_table:
.LFB4:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rax, root_page_table[rip]
	mov	QWORD PTR -96[rbp], rax
	mov	rax, QWORD PTR -96[rbp]
	and	eax, 4095
	test	rax, rax
	je	.L3
	lea	rax, .LC0[rip]
	mov	QWORD PTR -88[rbp], rax
.L4:
	jmp	.L4
.L3:
	lea	rax, kernel_page_table[rip]
	mov	QWORD PTR -80[rbp], rax
	mov	rax, QWORD PTR -80[rbp]
	and	eax, 4095
	test	rax, rax
	je	.L6
	lea	rax, .LC1[rip]
	mov	QWORD PTR -72[rbp], rax
.L7:
	jmp	.L7
.L6:
	lea	rax, user_page_table[rip]
	mov	QWORD PTR -64[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	and	eax, 4095
	test	rax, rax
	je	.L9
	lea	rax, .LC2[rip]
	mov	QWORD PTR -56[rbp], rax
.L10:
	jmp	.L10
.L9:
	mov	eax, 33
	movzx	eax, al
	lea	rdx, user_page_table[rip]
	mov	QWORD PTR -8[rbp], rdx
	mov	rdx, QWORD PTR -8[rbp]
	shr	rdx, 12
	mov	QWORD PTR -16[rbp], rdx
	mov	BYTE PTR -97[rbp], al
	mov	rax, QWORD PTR -16[rbp]
	sal	eax, 10
	mov	edx, eax
	movzx	eax, BYTE PTR -97[rbp]
	or	eax, edx
	mov	DWORD PTR root_page_table[rip], eax
	mov	eax, 33
	movzx	eax, al
	lea	rdx, kernel_page_table[rip]
	mov	QWORD PTR -24[rbp], rdx
	mov	rdx, QWORD PTR -24[rbp]
	shr	rdx, 12
	mov	QWORD PTR -32[rbp], rdx
	mov	BYTE PTR -98[rbp], al
	mov	rax, QWORD PTR -32[rbp]
	sal	eax, 10
	mov	edx, eax
	movzx	eax, BYTE PTR -98[rbp]
	or	eax, edx
	mov	DWORD PTR root_page_table[rip+4092], eax
	mov	eax, 33
	movzx	eax, al
	mov	ecx, 2147483648
	mov	edx, 8388608
	sub	rdx, 4096
	add	rdx, rcx
	mov	QWORD PTR -40[rbp], rdx
	mov	rdx, QWORD PTR -40[rbp]
	shr	rdx, 12
	mov	QWORD PTR -48[rbp], rdx
	mov	BYTE PTR -99[rbp], al
	mov	rax, QWORD PTR -48[rbp]
	sal	eax, 10
	mov	edx, eax
	movzx	eax, BYTE PTR -99[rbp]
	or	eax, edx
	mov	DWORD PTR root_page_table[rip+4], eax
	lea	rax, root_page_table[rip]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	init_page_table, .-init_page_table
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"7950647.c"
	.text
	.global	PTE_FLAG_D
	.section	.rodata
	.type	PTE_FLAG_D, %object
	.size	PTE_FLAG_D, 1
PTE_FLAG_D:
	.byte	-128
	.global	PTE_FLAG_A
	.type	PTE_FLAG_A, %object
	.size	PTE_FLAG_A, 1
PTE_FLAG_A:
	.byte	64
	.global	PTE_FLAG_G
	.type	PTE_FLAG_G, %object
	.size	PTE_FLAG_G, 1
PTE_FLAG_G:
	.byte	32
	.global	PTE_FLAG_U
	.type	PTE_FLAG_U, %object
	.size	PTE_FLAG_U, 1
PTE_FLAG_U:
	.byte	16
	.global	PTE_FLAG_X
	.type	PTE_FLAG_X, %object
	.size	PTE_FLAG_X, 1
PTE_FLAG_X:
	.byte	8
	.global	PTE_FLAG_W
	.type	PTE_FLAG_W, %object
	.size	PTE_FLAG_W, 1
PTE_FLAG_W:
	.byte	4
	.global	PTE_FLAG_R
	.type	PTE_FLAG_R, %object
	.size	PTE_FLAG_R, 1
PTE_FLAG_R:
	.byte	2
	.global	PTE_FLAG_V
	.type	PTE_FLAG_V, %object
	.size	PTE_FLAG_V, 1
PTE_FLAG_V:
	.byte	1
	.global	PTE_FLAG_PTR
	.type	PTE_FLAG_PTR, %object
	.size	PTE_FLAG_PTR, 1
PTE_FLAG_PTR:
	.byte	33
	.global	root_page_table
	.section	.data.pt,"aw"
	.align	12
	.type	root_page_table, %object
	.size	root_page_table, 4096
root_page_table:
	.space	4096
	.global	kernel_page_table
	.align	12
	.type	kernel_page_table, %object
	.size	kernel_page_table, 4096
kernel_page_table:
	.space	4096
	.global	user_page_table
	.align	12
	.type	user_page_table, %object
	.size	user_page_table, 4096
user_page_table:
	.space	4096
	.global	MEM_BASE
	.section	.rodata
	.align	2
	.type	MEM_BASE, %object
	.size	MEM_BASE, 4
MEM_BASE:
	.word	-2147483648
	.global	MEM_SIZE
	.align	2
	.type	MEM_SIZE, %object
	.size	MEM_SIZE, 4
MEM_SIZE:
	.word	8388608
	.align	2
.LC0:
	.ascii	"Root page table not correctly aligned\000"
	.align	2
.LC1:
	.ascii	"Kernel page table not correctly aligned\000"
	.align	2
.LC2:
	.ascii	"User page table not correctly aligned\000"
	.text
	.align	2
	.global	init_page_table
	.syntax unified
	.arm
	.fpu softvfp
	.type	init_page_table, %function
init_page_table:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #60
	ldr	r3, .L18
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #20
	lsr	r3, r3, #20
	cmp	r3, #0
	beq	.L3
	ldr	r3, .L18+4
	str	r3, [fp, #-48]
.L4:
	b	.L4
.L3:
	ldr	r3, .L18+8
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #20
	lsr	r3, r3, #20
	cmp	r3, #0
	beq	.L6
	ldr	r3, .L18+12
	str	r3, [fp, #-40]
.L7:
	b	.L7
.L6:
	ldr	r3, .L18+16
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #20
	lsr	r3, r3, #20
	cmp	r3, #0
	beq	.L9
	ldr	r3, .L18+20
	str	r3, [fp, #-32]
.L10:
	b	.L10
.L9:
	ldr	r3, .L18+16
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	lsr	r3, r3, #12
	mov	r2, #33
	str	r3, [fp, #-12]
	mov	r3, r2
	strb	r3, [fp, #-53]
	ldr	r3, [fp, #-12]
	lsl	r2, r3, #10
	ldrb	r3, [fp, #-53]	@ zero_extendqisi2
	orr	r3, r2, r3
	ldr	r2, .L18
	str	r3, [r2]
	ldr	r3, .L18+8
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	lsr	r3, r3, #12
	mov	r2, #33
	str	r3, [fp, #-20]
	mov	r3, r2
	strb	r3, [fp, #-54]
	ldr	r3, [fp, #-20]
	lsl	r2, r3, #10
	ldrb	r3, [fp, #-54]	@ zero_extendqisi2
	orr	r3, r2, r3
	ldr	r2, .L18
	str	r3, [r2, #4092]
	mov	r2, #-2147483648
	mov	r3, #8388608
	sub	r3, r3, #4096
	add	r3, r2, r3
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	lsr	r3, r3, #12
	mov	r2, #33
	str	r3, [fp, #-28]
	mov	r3, r2
	strb	r3, [fp, #-55]
	ldr	r3, [fp, #-28]
	lsl	r2, r3, #10
	ldrb	r3, [fp, #-55]	@ zero_extendqisi2
	orr	r3, r2, r3
	ldr	r2, .L18
	str	r3, [r2, #4]
	ldr	r3, .L18
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L19:
	.align	2
.L18:
	.word	root_page_table
	.word	.LC0
	.word	kernel_page_table
	.word	.LC1
	.word	user_page_table
	.word	.LC2
	.size	init_page_table, .-init_page_table
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
