	.file	"50331.c"
	.intel_syntax noprefix
	.text
	.globl	input_arg
	.bss
	.align 4
	.type	input_arg, @object
	.size	input_arg, 4
input_arg:
	.zero	4
	.section	.rodata
.LC0:
	.string	"%d: Received signal %d\n"
	.text
	.globl	handler
	.type	handler, @function
handler:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR input_arg[rip]
	mov	edx, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	handler, .-handler
	.section	.rodata
.LC1:
	.string	"Usage: %s <k>\n"
	.align 8
.LC2:
	.string	"Page exists, but not allowed to read from kernel area"
	.align 8
.LC3:
	.string	"Try to read from page that does not exist"
	.align 8
.LC4:
	.string	"Page exists, but not allowed to write to text area"
	.align 8
.LC5:
	.string	"Try to read from page that does exist"
.LC6:
	.string	"%d: OK\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	lea	rsi, handler[rip]
	mov	edi, 11
	call	signal@PLT
	cmp	DWORD PTR -20[rbp], 2
	je	.L3
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR input_arg[rip], eax
	mov	eax, DWORD PTR input_arg[rip]
	cmp	eax, 3
	je	.L4
	cmp	eax, 3
	jg	.L5
	cmp	eax, 2
	je	.L6
	cmp	eax, 2
	jg	.L5
	test	eax, eax
	je	.L7
	cmp	eax, 1
	je	.L8
	jmp	.L5
.L7:
	lea	rdi, .LC2[rip]
	call	puts@PLT
	movabs	rax, 140737488355328
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -12[rbp], eax
	jmp	.L9
.L8:
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	QWORD PTR -8[rbp], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -12[rbp], eax
	jmp	.L9
.L6:
	lea	rdi, .LC4[rip]
	call	puts@PLT
	lea	rax, main[rip]
	mov	QWORD PTR -8[rbp], rax
	mov	DWORD PTR -12[rbp], 0
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], edx
	jmp	.L9
.L4:
	lea	rdi, .LC5[rip]
	call	puts@PLT
	lea	rax, main[rip]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -12[rbp], eax
	jmp	.L9
.L5:
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L9:
	mov	eax, DWORD PTR input_arg[rip]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.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	"50331.c"
	.text
	.comm	input_arg,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d: Received signal %d\012\000"
	.text
	.align	2
	.global	handler
	.syntax unified
	.arm
	.fpu softvfp
	.type	handler, %function
handler:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, .L2
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	mov	r1, r3
	ldr	r0, .L2+4
	bl	printf
	ldr	r3, .L2+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	mov	r0, #0
	bl	exit
.L3:
	.align	2
.L2:
	.word	input_arg
	.word	.LC0
	.word	stdout
	.size	handler, .-handler
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Usage: %s <k>\012\000"
	.align	2
.LC2:
	.ascii	"Page exists, but not allowed to read from kernel ar"
	.ascii	"ea\000"
	.align	2
.LC3:
	.ascii	"Try to read from page that does not exist\000"
	.align	2
.LC4:
	.ascii	"Page exists, but not allowed to write to text area\000"
	.align	2
.LC5:
	.ascii	"Try to read from page that does exist\000"
	.align	2
.LC6:
	.ascii	"%d: OK\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r1, .L13
	mov	r0, #11
	bl	signal
	ldr	r3, [fp, #-16]
	cmp	r3, #2
	beq	.L5
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L13+4
	bl	printf
	mov	r0, #1
	bl	exit
.L5:
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	ldr	r2, .L13+8
	str	r3, [r2]
	ldr	r3, .L13+8
	ldr	r3, [r3]
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L6
.L8:
	.word	.L11
	.word	.L10
	.word	.L9
	.word	.L7
.L11:
	ldr	r0, .L13+12
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	b	.L12
.L10:
	ldr	r0, .L13+16
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	b	.L12
.L9:
	ldr	r0, .L13+20
	bl	puts
	ldr	r3, .L13+24
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	str	r2, [r3]
	b	.L12
.L7:
	ldr	r0, .L13+28
	bl	puts
	ldr	r3, .L13+24
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	b	.L12
.L6:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L13+4
	bl	printf
	mov	r0, #1
	bl	exit
.L12:
	ldr	r3, .L13+8
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L13+32
	bl	printf
	mov	r0, #0
	bl	exit
.L14:
	.align	2
.L13:
	.word	handler
	.word	.LC1
	.word	input_arg
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	main
	.word	.LC5
	.word	.LC6
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
