	.file	"799909.c"
	.intel_syntax noprefix
	.text
	.globl	note
	.bss
	.align 16
	.type	note, @object
	.size	note, 16
note:
	.zero	16
	.text
	.globl	getnum
	.type	getnum, @function
getnum:
.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, 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -48[rbp]
	mov	edx, 24
	mov	rsi, rax
	mov	edi, 0
	call	read@PLT
	lea	rax, -48[rbp]
	mov	rdi, rax
	call	atoll@PLT
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L3
	call	__stack_chk_fail@PLT
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	getnum, .-getnum
	.globl	setup
	.type	setup, @function
setup:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, QWORD PTR stdin[rip]
	mov	ecx, 0
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	setvbuf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	ecx, 0
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	setvbuf@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	ecx, 0
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	setvbuf@PLT
	mov	edi, 20
	call	alarm@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	setup, .-setup
	.section	.rodata
.LC0:
	.string	"I need your name: "
	.align 8
.LC1:
	.string	"Enter the index of the you want to write: "
.LC2:
	.string	"Enter data: "
.LC3:
	.string	"Bye"
	.text
	.globl	handler
	.type	handler, @function
handler:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 288
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edi, 512
	call	malloc@PLT
	mov	QWORD PTR note[rip], rax
	mov	edi, 512
	call	malloc@PLT
	mov	QWORD PTR note[rip+8], rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -272[rbp]
	mov	edx, 80
	mov	rsi, rax
	mov	edi, 0
	call	read@PLT
	lea	rax, -272[rbp]
	mov	rdi, rax
	call	puts@PLT
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	call	getnum
	mov	QWORD PTR -280[rbp], rax
	cmp	QWORD PTR -280[rbp], 1
	jg	.L6
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -280[rbp]
	lea	rdx, 0[0+rax*8]
	lea	rax, note[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	edx, 232
	mov	rsi, rax
	mov	edi, 0
	call	read@PLT
.L6:
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	edi, 4919
	call	_exit@PLT
	.cfi_endproc
.LFE8:
	.size	handler, .-handler
	.globl	main
	.type	main, @function
main:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, 0
	call	setup
	mov	eax, 0
	call	handler
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.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	"799909.c"
	.text
	.comm	note,8,4
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	getnum
	.syntax unified
	.arm
	.fpu softvfp
	.type	getnum, %function
getnum:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	ldr	r3, .L4
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #40
	mov	r2, #24
	mov	r1, r3
	mov	r0, #0
	bl	read
	sub	r3, fp, #40
	mov	r0, r3
	bl	atoll
	mov	r2, r0
	mov	r3, r1
	mov	r3, r2
	ldr	r2, .L4
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L3
	bl	__stack_chk_fail
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC0
	.size	getnum, .-getnum
	.align	2
	.global	setup
	.syntax unified
	.arm
	.fpu softvfp
	.type	setup, %function
setup:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L7
	ldr	r0, [r3]
	mov	r3, #0
	mov	r2, #2
	mov	r1, #0
	bl	setvbuf
	ldr	r3, .L7+4
	ldr	r0, [r3]
	mov	r3, #0
	mov	r2, #2
	mov	r1, #0
	bl	setvbuf
	ldr	r3, .L7+8
	ldr	r0, [r3]
	mov	r3, #0
	mov	r2, #2
	mov	r1, #0
	bl	setvbuf
	mov	r0, #20
	bl	alarm
	nop
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	stdin
	.word	stdout
	.word	stderr
	.size	setup, .-setup
	.section	.rodata
	.align	2
.LC1:
	.ascii	"I need your name: \000"
	.align	2
.LC2:
	.ascii	"Enter the index of the you want to write: \000"
	.align	2
.LC3:
	.ascii	"Enter data: \000"
	.align	2
.LC4:
	.ascii	"Bye\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	handler
	.syntax unified
	.arm
	.fpu softvfp
	.type	handler, %function
handler:
	@ args = 0, pretend = 0, frame = 264
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #264
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r0, #512
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L12+4
	str	r2, [r3]
	mov	r0, #512
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L12+4
	str	r2, [r3, #4]
	ldr	r0, .L12+8
	bl	printf
	sub	r3, fp, #264
	mov	r2, #80
	mov	r1, r3
	mov	r0, #0
	bl	read
	sub	r3, fp, #264
	mov	r0, r3
	bl	puts
	ldr	r0, .L12+12
	bl	printf
	bl	getnum
	str	r0, [fp, #-268]
	ldr	r3, [fp, #-268]
	cmp	r3, #1
	bgt	.L10
	ldr	r0, .L12+16
	bl	printf
	ldr	r2, .L12+4
	ldr	r3, [fp, #-268]
	ldr	r3, [r2, r3, lsl #2]
	mov	r2, #232
	mov	r1, r3
	mov	r0, #0
	bl	read
.L10:
	ldr	r0, .L12+20
	bl	puts
	ldr	r0, .L12+24
	bl	_exit
.L13:
	.align	2
.L12:
	.word	.LC5
	.word	note
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	4919
	.size	handler, .-handler
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	bl	setup
	bl	handler
	mov	r3, #0
	mov	r0, r3
	pop	{fp, pc}
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
