	.file	"72013935.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"- HOSTEL MANAGEMENT SYSTEM -\n"
.LC1:
	.string	"a+"
.LC2:
	.string	"ERROR"
	.align 8
.LC3:
	.string	"(1) - for adding student details"
.LC4:
	.string	"(2) - for listing student"
	.align 8
.LC5:
	.string	"(3) - for deleting from database"
.LC6:
	.string	"(4) - to exit"
.LC7:
	.string	"%d"
	.align 8
.LC8:
	.string	"Enter the details of the students\n "
.LC9:
	.string	"Enter name "
.LC10:
	.string	"Enter the sex "
.LC11:
	.string	"Enter the course "
.LC12:
	.string	"Enter the date alloted till "
.LC13:
	.string	"Enter the age "
.LC14:
	.string	"Enter the hostel_num "
.LC15:
	.string	"Enter the room_num "
.LC16:
	.string	"Enter the year "
.LC17:
	.string	"%s\n%s\n%s\n%s\n%d\n%d\n%d\n%d\n\n"
.LC18:
	.string	" %d \n"
	.align 8
.LC19:
	.string	"Name : %s\nsex : %s\ncourse : %s\ndate alloted till : %s\nage : %d\nhostel number : %d\nroom number : %d\nyear : %d\n"
	.align 8
.LC20:
	.string	"Enter the name of the student to remove: "
.LC21:
	.string	"w"
.LC22:
	.string	"new.txt"
.LC23:
	.string	"%s\n"
.LC24:
	.string	"student deleted"
.LC25:
	.string	"r"
.LC26:
	.string	"database.txt"
.LC27:
	.string	"\n- program has ended -"
	.text
	.globl	main
	.type	main, @function
main:
.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, 816
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC0[rip]
	call	puts@PLT
	movabs	rax, 7310293695322153316
	mov	edx, 1954051118
	mov	QWORD PTR -368[rbp], rax
	mov	QWORD PTR -360[rbp], rdx
	mov	DWORD PTR -352[rbp], 0
	lea	rax, -368[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -800[rbp], rax
	cmp	QWORD PTR -800[rbp], 0
	jne	.L2
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L29
.L2:
	mov	DWORD PTR -816[rbp], 0
.L28:
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rdi, .LC4[rip]
	call	puts@PLT
	lea	rdi, .LC5[rip]
	call	puts@PLT
	lea	rdi, .LC6[rip]
	call	puts@PLT
	lea	rax, -816[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rax, -368[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -800[rbp], rax
	mov	eax, DWORD PTR -816[rbp]
	cmp	eax, 4
	je	.L32
	mov	eax, DWORD PTR -816[rbp]
	cmp	eax, 1
	jne	.L6
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	call	getchar@PLT
	lea	rax, -784[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	gets@PLT
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -784[rbp]
	add	rax, 100
	mov	rdi, rax
	mov	eax, 0
	call	gets@PLT
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -784[rbp]
	add	rax, 200
	mov	rdi, rax
	mov	eax, 0
	call	gets@PLT
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -784[rbp]
	add	rax, 300
	mov	rdi, rax
	mov	eax, 0
	call	gets@PLT
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -784[rbp]
	add	rax, 400
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -784[rbp]
	add	rax, 404
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -784[rbp]
	add	rax, 408
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -784[rbp]
	add	rax, 412
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	r9d, DWORD PTR -372[rbp]
	mov	r8d, DWORD PTR -376[rbp]
	mov	edi, DWORD PTR -380[rbp]
	mov	esi, DWORD PTR -384[rbp]
	lea	rax, -784[rbp]
	lea	r11, 300[rax]
	lea	rax, -784[rbp]
	lea	r10, 200[rax]
	lea	rax, -784[rbp]
	lea	rcx, 100[rax]
	lea	rdx, -784[rbp]
	mov	rax, QWORD PTR -800[rbp]
	push	r9
	push	r8
	push	rdi
	push	rsi
	mov	r9, r11
	mov	r8, r10
	lea	rsi, .LC17[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	add	rsp, 32
	jmp	.L7
.L6:
	mov	eax, DWORD PTR -816[rbp]
	cmp	eax, 2
	jne	.L8
	mov	edi, 10
	call	putchar@PLT
	mov	DWORD PTR -812[rbp], 0
	mov	DWORD PTR -808[rbp], 0
	jmp	.L9
.L19:
	movzx	eax, BYTE PTR -112[rbp]
	cmp	al, 10
	jne	.L10
	mov	eax, DWORD PTR -808[rbp]
	add	eax, 1
	mov	esi, eax
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
	mov	r8d, DWORD PTR -372[rbp]
	mov	edi, DWORD PTR -376[rbp]
	mov	esi, DWORD PTR -380[rbp]
	mov	r9d, DWORD PTR -384[rbp]
	lea	rax, -784[rbp]
	lea	r10, 300[rax]
	lea	rax, -784[rbp]
	lea	rcx, 200[rax]
	lea	rax, -784[rbp]
	lea	rdx, 100[rax]
	lea	rax, -784[rbp]
	sub	rsp, 8
	push	r8
	push	rdi
	push	rsi
	mov	r8, r10
	mov	rsi, rax
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
	add	rsp, 32
	mov	DWORD PTR -812[rbp], 0
	add	DWORD PTR -808[rbp], 1
	jmp	.L9
.L10:
	cmp	DWORD PTR -812[rbp], 0
	jne	.L11
	lea	rdx, -112[rbp]
	lea	rax, -784[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	jmp	.L12
.L11:
	cmp	DWORD PTR -812[rbp], 1
	jne	.L13
	lea	rax, -112[rbp]
	lea	rdx, -784[rbp]
	add	rdx, 100
	mov	rsi, rax
	mov	rdi, rdx
	call	strcpy@PLT
	jmp	.L12
.L13:
	cmp	DWORD PTR -812[rbp], 2
	jne	.L14
	lea	rax, -112[rbp]
	lea	rdx, -784[rbp]
	add	rdx, 200
	mov	rsi, rax
	mov	rdi, rdx
	call	strcpy@PLT
	jmp	.L12
.L14:
	cmp	DWORD PTR -812[rbp], 3
	jne	.L15
	lea	rax, -112[rbp]
	lea	rdx, -784[rbp]
	add	rdx, 300
	mov	rsi, rax
	mov	rdi, rdx
	call	strcpy@PLT
	jmp	.L12
.L15:
	cmp	DWORD PTR -812[rbp], 4
	jne	.L16
	lea	rax, -112[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -384[rbp], eax
	jmp	.L12
.L16:
	cmp	DWORD PTR -812[rbp], 5
	jne	.L17
	lea	rax, -112[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -380[rbp], eax
	jmp	.L12
.L17:
	cmp	DWORD PTR -812[rbp], 6
	jne	.L18
	lea	rax, -112[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -376[rbp], eax
	jmp	.L12
.L18:
	lea	rax, -112[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -372[rbp], eax
.L12:
	add	DWORD PTR -812[rbp], 1
.L9:
	mov	rdx, QWORD PTR -800[rbp]
	lea	rax, -112[rbp]
	mov	esi, 100
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L19
	mov	edi, 10
	call	putchar@PLT
	jmp	.L7
.L8:
	mov	eax, DWORD PTR -816[rbp]
	cmp	eax, 3
	jne	.L7
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	printf@PLT
	call	getchar@PLT
	lea	rax, -336[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	gets@PLT
	lea	rsi, .LC21[rip]
	lea	rdi, .LC22[rip]
	call	fopen@PLT
	mov	QWORD PTR -792[rbp], rax
	mov	DWORD PTR -804[rbp], 0
	jmp	.L20
.L25:
	lea	rdx, -224[rbp]
	lea	rax, -112[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	lea	rdx, -112[rbp]
	lea	rax, -336[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L21
	lea	rdx, -112[rbp]
	lea	rax, -112[rbp]
	lea	rsi, .LC23[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	test	eax, eax
	je	.L22
	lea	rdx, -112[rbp]
	lea	rax, -336[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L22
.L21:
	lea	rdi, .LC24[rip]
	call	puts@PLT
	mov	DWORD PTR -804[rbp], 1
	jmp	.L20
.L22:
	cmp	DWORD PTR -804[rbp], 1
	je	.L23
	cmp	DWORD PTR -804[rbp], 2
	je	.L23
	cmp	DWORD PTR -804[rbp], 3
	je	.L23
	cmp	DWORD PTR -804[rbp], 4
	je	.L23
	cmp	DWORD PTR -804[rbp], 5
	je	.L23
	cmp	DWORD PTR -804[rbp], 6
	je	.L23
	cmp	DWORD PTR -804[rbp], 7
	jne	.L24
.L23:
	add	DWORD PTR -804[rbp], 1
	jmp	.L20
.L24:
	mov	rdx, QWORD PTR -792[rbp]
	lea	rax, -224[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
.L20:
	mov	rdx, QWORD PTR -800[rbp]
	lea	rax, -224[rbp]
	mov	esi, 100
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L25
	mov	rax, QWORD PTR -800[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -792[rbp]
	mov	rdi, rax
	call	fclose@PLT
	lea	rsi, .LC25[rip]
	lea	rdi, .LC22[rip]
	call	fopen@PLT
	mov	QWORD PTR -792[rbp], rax
	lea	rsi, .LC21[rip]
	lea	rdi, .LC26[rip]
	call	fopen@PLT
	mov	QWORD PTR -800[rbp], rax
	jmp	.L26
.L27:
	mov	rdx, QWORD PTR -800[rbp]
	lea	rax, -224[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
.L26:
	mov	rdx, QWORD PTR -792[rbp]
	lea	rax, -224[rbp]
	mov	esi, 100
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L27
	mov	rax, QWORD PTR -792[rbp]
	mov	rdi, rax
	call	fclose@PLT
	lea	rdi, .LC26[rip]
	call	remove@PLT
	lea	rsi, .LC26[rip]
	lea	rdi, .LC22[rip]
	call	rename@PLT
.L7:
	mov	rax, QWORD PTR -800[rbp]
	mov	rdi, rax
	call	fclose@PLT
	jmp	.L28
.L32:
	nop
	lea	rdi, .LC27[rip]
	call	puts@PLT
	mov	eax, 0
.L29:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L30
	call	__stack_chk_fail@PLT
.L30:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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	"72013935.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"- HOSTEL MANAGEMENT SYSTEM -\012\000"
	.align	2
.LC2:
	.ascii	"a+\000"
	.align	2
.LC3:
	.ascii	"ERROR\000"
	.align	2
.LC4:
	.ascii	"(1) - for adding student details\000"
	.align	2
.LC5:
	.ascii	"(2) - for listing student\000"
	.align	2
.LC6:
	.ascii	"(3) - for deleting from database\000"
	.align	2
.LC7:
	.ascii	"(4) - to exit\000"
	.align	2
.LC8:
	.ascii	"%d\000"
	.align	2
.LC9:
	.ascii	"Enter the details of the students\012 \000"
	.align	2
.LC10:
	.ascii	"Enter name \000"
	.align	2
.LC11:
	.ascii	"Enter the sex \000"
	.align	2
.LC12:
	.ascii	"Enter the course \000"
	.align	2
.LC13:
	.ascii	"Enter the date alloted till \000"
	.align	2
.LC14:
	.ascii	"Enter the age \000"
	.align	2
.LC15:
	.ascii	"Enter the hostel_num \000"
	.align	2
.LC16:
	.ascii	"Enter the room_num \000"
	.align	2
.LC17:
	.ascii	"Enter the year \000"
	.align	2
.LC18:
	.ascii	"%s\012%s\012%s\012%s\012%d\012%d\012%d\012%d\012\012"
	.ascii	"\000"
	.align	2
.LC19:
	.ascii	" %d \012\000"
	.align	2
.LC20:
	.ascii	"Name : %s\012sex : %s\012course : %s\012date allote"
	.ascii	"d till : %s\012age : %d\012hostel number : %d\012ro"
	.ascii	"om number : %d\012year : %d\012\000"
	.align	2
.LC21:
	.ascii	"Enter the name of the student to remove: \000"
	.align	2
.LC22:
	.ascii	"w\000"
	.align	2
.LC23:
	.ascii	"new.txt\000"
	.align	2
.LC24:
	.ascii	"%s\012\000"
	.align	2
.LC25:
	.ascii	"student deleted\000"
	.align	2
.LC26:
	.ascii	"r\000"
	.align	2
.LC27:
	.ascii	"database.txt\000"
	.align	2
.LC28:
	.ascii	"\012- program has ended -\000"
	.align	2
.LC1:
	.ascii	"database.txt\000"
	.space	7
	.align	2
.LC29:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 768
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #796
	ldr	r3, .L33
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r0, .L33+4
	bl	puts
	ldr	r3, .L33+8
	sub	ip, fp, #336
	ldm	r3, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2}
	strb	r3, [ip]
	sub	r3, fp, #320
	sub	r3, r3, #3
	mov	r2, #0
	mov	r1, r2
	strb	r1, [r3]
	mov	r1, r2
	strb	r1, [r3, #1]
	mov	r1, r2
	strb	r1, [r3, #2]
	mov	r1, r2
	strb	r1, [r3, #3]
	mov	r1, r2
	strb	r1, [r3, #4]
	mov	r1, r2
	strb	r1, [r3, #5]
	strb	r2, [r3, #6]
	sub	r3, fp, #336
	ldr	r1, .L33+12
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-772]
	ldr	r3, [fp, #-772]
	cmp	r3, #0
	bne	.L2
	ldr	r0, .L33+16
	bl	puts
	mvn	r3, #0
	b	.L29
.L2:
	mov	r3, #0
	str	r3, [fp, #-776]
.L28:
	ldr	r0, .L33+20
	bl	puts
	ldr	r0, .L33+24
	bl	puts
	ldr	r0, .L33+28
	bl	puts
	ldr	r0, .L33+32
	bl	puts
	sub	r3, fp, #776
	mov	r1, r3
	ldr	r0, .L33+36
	bl	__isoc99_scanf
	sub	r3, fp, #336
	ldr	r1, .L33+12
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-772]
	ldr	r3, [fp, #-776]
	cmp	r3, #4
	beq	.L32
	ldr	r3, [fp, #-776]
	cmp	r3, #1
	bne	.L6
	ldr	r0, .L33+40
	bl	printf
	ldr	r0, .L33+44
	bl	printf
	bl	getchar
	sub	r3, fp, #752
	mov	r0, r3
	bl	gets
	ldr	r0, .L33+48
	bl	printf
	sub	r3, fp, #752
	add	r3, r3, #100
	mov	r0, r3
	bl	gets
	ldr	r0, .L33+52
	bl	printf
	sub	r3, fp, #752
	add	r3, r3, #200
	mov	r0, r3
	bl	gets
	ldr	r0, .L33+56
	bl	printf
	sub	r3, fp, #752
	add	r3, r3, #300
	mov	r0, r3
	bl	gets
	ldr	r0, .L33+60
	bl	printf
	sub	r3, fp, #752
	add	r3, r3, #400
	mov	r1, r3
	ldr	r0, .L33+36
	bl	__isoc99_scanf
	ldr	r0, .L33+64
	bl	printf
	sub	r3, fp, #752
	add	r3, r3, #404
	mov	r1, r3
	ldr	r0, .L33+36
	bl	__isoc99_scanf
	ldr	r0, .L33+68
	bl	printf
	sub	r3, fp, #752
	add	r3, r3, #408
	mov	r1, r3
	ldr	r0, .L33+36
	bl	__isoc99_scanf
	ldr	r0, .L33+72
	bl	printf
	sub	r3, fp, #752
	add	r3, r3, #412
	mov	r1, r3
	ldr	r0, .L33+36
	bl	__isoc99_scanf
	ldr	r3, [fp, #-352]
	ldr	r2, [fp, #-348]
	ldr	r1, [fp, #-344]
	ldr	r0, [fp, #-340]
	sub	ip, fp, #752
	add	lr, ip, #100
	sub	ip, fp, #752
	str	r0, [sp, #20]
	str	r1, [sp, #16]
	str	r2, [sp, #12]
	str	r3, [sp, #8]
	sub	r3, fp, #752
	add	r3, r3, #300
	str	r3, [sp, #4]
	sub	r3, fp, #752
	add	r3, r3, #200
	str	r3, [sp]
	mov	r3, lr
	mov	r2, ip
	ldr	r1, .L33+76
	ldr	r0, [fp, #-772]
	bl	fprintf
	b	.L7
.L6:
	ldr	r3, [fp, #-776]
	cmp	r3, #2
	bne	.L8
	mov	r0, #10
	bl	putchar
	mov	r3, #0
	str	r3, [fp, #-768]
	mov	r3, #0
	str	r3, [fp, #-764]
	b	.L9
.L19:
	ldrb	r3, [fp, #-116]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L10
	ldr	r3, [fp, #-764]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L33+80
	bl	printf
	ldr	r3, [fp, #-352]
	ldr	r2, [fp, #-348]
	ldr	r1, [fp, #-344]
	ldr	r0, [fp, #-340]
	sub	ip, fp, #752
	add	r4, ip, #200
	sub	ip, fp, #752
	add	lr, ip, #100
	sub	ip, fp, #752
	str	r0, [sp, #16]
	str	r1, [sp, #12]
	str	r2, [sp, #8]
	str	r3, [sp, #4]
	sub	r3, fp, #752
	add	r3, r3, #300
	str	r3, [sp]
	mov	r3, r4
	mov	r2, lr
	mov	r1, ip
	ldr	r0, .L33+84
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-768]
	ldr	r3, [fp, #-764]
	add	r3, r3, #1
	str	r3, [fp, #-764]
	b	.L9
.L10:
	ldr	r3, [fp, #-768]
	cmp	r3, #0
	bne	.L11
	sub	r2, fp, #116
	sub	r3, fp, #752
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	b	.L12
.L11:
	ldr	r3, [fp, #-768]
	cmp	r3, #1
	bne	.L13
	sub	r2, fp, #116
	sub	r3, fp, #752
	add	r3, r3, #100
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	b	.L12
.L13:
	ldr	r3, [fp, #-768]
	cmp	r3, #2
	bne	.L14
	sub	r2, fp, #116
	sub	r3, fp, #752
	add	r3, r3, #200
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	b	.L12
.L14:
	ldr	r3, [fp, #-768]
	cmp	r3, #3
	bne	.L15
	sub	r2, fp, #116
	sub	r3, fp, #752
	add	r3, r3, #300
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	b	.L12
.L15:
	ldr	r3, [fp, #-768]
	cmp	r3, #4
	bne	.L16
	sub	r3, fp, #116
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	str	r3, [fp, #-352]
	b	.L12
.L16:
	ldr	r3, [fp, #-768]
	cmp	r3, #5
	bne	.L17
	sub	r3, fp, #116
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	str	r3, [fp, #-348]
	b	.L12
.L17:
	ldr	r3, [fp, #-768]
	cmp	r3, #6
	bne	.L18
	sub	r3, fp, #116
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	str	r3, [fp, #-344]
	b	.L12
.L18:
	sub	r3, fp, #116
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	str	r3, [fp, #-340]
.L12:
	ldr	r3, [fp, #-768]
	add	r3, r3, #1
	str	r3, [fp, #-768]
.L9:
	sub	r3, fp, #116
	ldr	r2, [fp, #-772]
	mov	r1, #100
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L19
	mov	r0, #10
	bl	putchar
	b	.L7
.L8:
	ldr	r3, [fp, #-776]
	cmp	r3, #3
	bne	.L7
	ldr	r0, .L33+88
	bl	printf
	bl	getchar
	sub	r3, fp, #316
	mov	r0, r3
	bl	gets
	ldr	r1, .L33+92
	ldr	r0, .L33+96
	bl	fopen
	str	r0, [fp, #-756]
	mov	r3, #0
	str	r3, [fp, #-760]
	b	.L20
.L25:
	sub	r2, fp, #216
	sub	r3, fp, #116
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	sub	r2, fp, #116
	sub	r3, fp, #316
	mov	r1, r2
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L21
	sub	r2, fp, #116
	sub	r3, fp, #116
	ldr	r1, .L33+100
	mov	r0, r3
	bl	__isoc99_sscanf
	mov	r3, r0
	cmp	r3, #0
	beq	.L22
	sub	r2, fp, #116
	sub	r3, fp, #316
	mov	r1, r2
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L22
.L21:
	ldr	r0, .L33+104
	bl	puts
	mov	r3, #1
	str	r3, [fp, #-760]
	b	.L20
.L22:
	ldr	r3, [fp, #-760]
	cmp	r3, #1
	beq	.L23
	ldr	r3, [fp, #-760]
	cmp	r3, #2
	beq	.L23
	ldr	r3, [fp, #-760]
	cmp	r3, #3
	beq	.L23
	ldr	r3, [fp, #-760]
	cmp	r3, #4
	beq	.L23
	ldr	r3, [fp, #-760]
	cmp	r3, #5
	beq	.L23
	ldr	r3, [fp, #-760]
	cmp	r3, #6
	beq	.L23
	ldr	r3, [fp, #-760]
	cmp	r3, #7
	bne	.L24
.L23:
	ldr	r3, [fp, #-760]
	add	r3, r3, #1
	str	r3, [fp, #-760]
	b	.L20
.L24:
	sub	r3, fp, #216
	ldr	r1, [fp, #-756]
	mov	r0, r3
	bl	fputs
.L20:
	sub	r3, fp, #216
	ldr	r2, [fp, #-772]
	mov	r1, #100
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L25
	ldr	r0, [fp, #-772]
	bl	fclose
	ldr	r0, [fp, #-756]
	bl	fclose
	ldr	r1, .L33+108
	ldr	r0, .L33+96
	bl	fopen
	str	r0, [fp, #-756]
	ldr	r1, .L33+92
	ldr	r0, .L33+112
	bl	fopen
	str	r0, [fp, #-772]
	b	.L26
.L27:
	sub	r3, fp, #216
	ldr	r1, [fp, #-772]
	mov	r0, r3
	bl	fputs
.L26:
	sub	r3, fp, #216
	ldr	r2, [fp, #-756]
	mov	r1, #100
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L27
	ldr	r0, [fp, #-756]
	bl	fclose
	ldr	r0, .L33+112
	bl	remove
	ldr	r1, .L33+112
	ldr	r0, .L33+96
	bl	rename
.L7:
	ldr	r0, [fp, #-772]
	bl	fclose
	b	.L28
.L32:
	nop
	ldr	r0, .L33+116
	bl	puts
	mov	r3, #0
.L29:
	ldr	r2, .L33
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L30
	bl	__stack_chk_fail
.L30:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L34:
	.align	2
.L33:
	.word	.LC29
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.word	.LC26
	.word	.LC27
	.word	.LC28
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
