	.file	"999580.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Number of students: "
.LC1:
	.string	"%d"
	.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
	push	rbx
	sub	rsp, 56
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -64[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -64[rbp]
	mov	eax, eax
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -56[rbp], rax
	mov	DWORD PTR -60[rbp], 0
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -60[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -56[rbp]
	lea	rbx, [rdx+rax]
	mov	edi, 7
	call	malloc@PLT
	mov	QWORD PTR [rbx], rax
	add	DWORD PTR -60[rbp], 1
.L2:
	mov	eax, DWORD PTR -64[rbp]
	cmp	DWORD PTR -60[rbp], eax
	jb	.L3
	mov	eax, DWORD PTR -64[rbp]
	mov	eax, eax
	add	rax, rax
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -48[rbp], rax
	mov	eax, DWORD PTR -64[rbp]
	mov	eax, eax
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -40[rbp], rax
	mov	DWORD PTR -60[rbp], 0
	jmp	.L4
.L5:
	mov	eax, DWORD PTR -60[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	lea	rbx, [rdx+rax]
	mov	edi, 48
	call	malloc@PLT
	mov	QWORD PTR [rbx], rax
	add	DWORD PTR -60[rbp], 1
.L4:
	mov	eax, DWORD PTR -64[rbp]
	cmp	DWORD PTR -60[rbp], eax
	jb	.L5
	mov	eax, DWORD PTR -64[rbp]
	mov	eax, eax
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -32[rbp], rax
	mov	DWORD PTR -60[rbp], 0
	jmp	.L6
.L7:
	mov	eax, DWORD PTR -60[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	lea	rbx, [rdx+rax]
	mov	edi, 41
	call	malloc@PLT
	mov	QWORD PTR [rbx], rax
	add	DWORD PTR -60[rbp], 1
.L6:
	mov	eax, DWORD PTR -64[rbp]
	cmp	DWORD PTR -60[rbp], eax
	jb	.L7
	mov	eax, DWORD PTR -64[rbp]
	mov	rdi, QWORD PTR -40[rbp]
	mov	rcx, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rsi, QWORD PTR -56[rbp]
	mov	r8, rdi
	mov	edi, eax
	call	readInput
	mov	eax, DWORD PTR -64[rbp]
	mov	rdi, QWORD PTR -40[rbp]
	mov	rcx, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rsi, QWORD PTR -56[rbp]
	mov	r8, rdi
	mov	edi, eax
	call	writeFile
	mov	eax, 0
	mov	rcx, QWORD PTR -24[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC2:
	.string	"%s"
	.align 8
.LC3:
	.string	"Stud Name: %s\t AM: %s\t Semester: %d\t Grades: [%.1lf][%.1lf][%.1lf][%.1lf][%.1lf]\n"
	.text
	.globl	readInput
	.type	readInput, @function
readInput:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 200
	.cfi_offset 3, -24
	mov	DWORD PTR -164[rbp], edi
	mov	QWORD PTR -176[rbp], rsi
	mov	QWORD PTR -184[rbp], rdx
	mov	QWORD PTR -192[rbp], rcx
	mov	QWORD PTR -200[rbp], r8
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -152[rbp], 0
	jmp	.L11
.L14:
	lea	rax, -128[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	movzx	eax, BYTE PTR -122[rbp]
	mov	BYTE PTR -130[rbp], al
	mov	BYTE PTR -129[rbp], 0
	lea	rdx, -130[rbp]
	lea	rax, -128[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strtok@PLT
	mov	QWORD PTR -144[rbp], rax
	mov	eax, DWORD PTR -152[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -176[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -144[rbp]
	mov	QWORD PTR [rdx], rax
	lea	rax, -130[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -144[rbp], rax
	mov	eax, DWORD PTR -152[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -184[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -144[rbp]
	mov	QWORD PTR [rdx], rax
	lea	rax, -130[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -144[rbp], rax
	mov	rax, QWORD PTR -144[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	edx, DWORD PTR -152[rbp]
	lea	rcx, [rdx+rdx]
	mov	rdx, QWORD PTR -192[rbp]
	add	rdx, rcx
	mov	WORD PTR [rdx], ax
	mov	eax, DWORD PTR -152[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -176[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	puts@PLT
	mov	DWORD PTR -148[rbp], 0
	jmp	.L12
.L13:
	lea	rax, -130[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -144[rbp], rax
	mov	eax, DWORD PTR -152[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -200[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -148[rbp]
	sal	rax, 3
	lea	rbx, [rdx+rax]
	mov	rax, QWORD PTR -144[rbp]
	mov	rdi, rax
	call	atof@PLT
	movq	rax, xmm0
	mov	QWORD PTR [rbx], rax
	add	DWORD PTR -148[rbp], 1
.L12:
	cmp	DWORD PTR -148[rbp], 4
	jbe	.L13
	mov	eax, DWORD PTR -152[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -200[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	add	rax, 32
	movsd	xmm3, QWORD PTR [rax]
	mov	eax, DWORD PTR -152[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -200[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	add	rax, 24
	movsd	xmm2, QWORD PTR [rax]
	mov	eax, DWORD PTR -152[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -200[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	add	rax, 16
	movsd	xmm1, QWORD PTR [rax]
	mov	eax, DWORD PTR -152[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -200[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	add	rax, 8
	movsd	xmm0, QWORD PTR [rax]
	mov	eax, DWORD PTR -152[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -200[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rsi, QWORD PTR [rax]
	mov	eax, DWORD PTR -152[rbp]
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -192[rbp]
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movsx	ecx, ax
	mov	eax, DWORD PTR -152[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -176[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -152[rbp]
	lea	rdi, 0[0+rax*8]
	mov	rax, QWORD PTR -184[rbp]
	add	rax, rdi
	mov	rax, QWORD PTR [rax]
	movapd	xmm4, xmm3
	movapd	xmm3, xmm2
	movapd	xmm2, xmm1
	movapd	xmm1, xmm0
	movq	xmm0, rsi
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 5
	call	printf@PLT
	add	DWORD PTR -152[rbp], 1
.L11:
	mov	eax, DWORD PTR -152[rbp]
	cmp	eax, DWORD PTR -164[rbp]
	jb	.L14
	nop
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	readInput, .-readInput
	.section	.rodata
.LC4:
	.string	"w+"
.LC5:
	.string	"registry.txt"
	.text
	.globl	writeFile
	.type	writeFile, @function
writeFile:
.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, 64
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	QWORD PTR -48[rbp], rcx
	mov	QWORD PTR -56[rbp], r8
	mov	rax, QWORD PTR stdout[rip]
	mov	rdx, rax
	lea	rsi, .LC4[rip]
	lea	rdi, .LC5[rip]
	call	freopen@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	DWORD PTR -12[rbp], 0
	jmp	.L17
.L18:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	add	rax, 32
	movsd	xmm3, QWORD PTR [rax]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	add	rax, 24
	movsd	xmm2, QWORD PTR [rax]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	add	rax, 16
	movsd	xmm1, QWORD PTR [rax]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	add	rax, 8
	movsd	xmm0, QWORD PTR [rax]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rsi, QWORD PTR [rax]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movsx	ecx, ax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdi, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdi
	mov	rax, QWORD PTR [rax]
	movapd	xmm4, xmm3
	movapd	xmm3, xmm2
	movapd	xmm2, xmm1
	movapd	xmm1, xmm0
	movq	xmm0, rsi
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 5
	call	printf@PLT
	add	DWORD PTR -12[rbp], 1
.L17:
	mov	eax, DWORD PTR -12[rbp]
	cmp	DWORD PTR -20[rbp], eax
	ja	.L18
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	writeFile, .-writeFile
	.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	"999580.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Number of students: \000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #44
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r0, .L10+4
	bl	printf
	sub	r3, fp, #40
	mov	r1, r3
	ldr	r0, .L10+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-40]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L2
.L3:
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r4, r2, r3
	mov	r0, #7
	bl	malloc
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L2:
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-36]
	cmp	r2, r3
	bcc	.L3
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #1
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #3
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L4
.L5:
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r4, r2, r3
	mov	r0, #48
	bl	malloc
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L4:
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-36]
	cmp	r2, r3
	bcc	.L5
	ldr	r3, [fp, #-40]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L6
.L7:
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r4, r2, r3
	mov	r0, #41
	bl	malloc
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L6:
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-36]
	cmp	r2, r3
	bcc	.L7
	ldr	r0, [fp, #-40]
	ldr	r3, [fp, #-24]
	str	r3, [sp]
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-32]
	bl	readInput
	ldr	r0, [fp, #-40]
	ldr	r3, [fp, #-24]
	str	r3, [sp]
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-32]
	bl	writeFile
	mov	r3, #0
	ldr	r2, .L10
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L9
	bl	__stack_chk_fail
.L9:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.size	main, .-main
	.section	.rodata
	.align	2
.LC3:
	.ascii	"%s\000"
	.align	2
.LC4:
	.ascii	"Stud Name: %s\011 AM: %s\011 Semester: %d\011 Grade"
	.ascii	"s: [%.1lf][%.1lf][%.1lf][%.1lf][%.1lf]\012\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	readInput
	.syntax unified
	.arm
	.fpu softvfp
	.type	readInput, %function
readInput:
	@ args = 4, pretend = 0, frame = 152
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #196
	str	r0, [fp, #-160]
	str	r1, [fp, #-164]
	str	r2, [fp, #-168]
	str	r3, [fp, #-172]
	ldr	r3, [fp, #4]
	str	r3, [fp, #-176]
	ldr	r3, .L18
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-156]
	b	.L13
.L16:
	sub	r3, fp, #140
	mov	r1, r3
	ldr	r0, .L18+4
	bl	__isoc99_scanf
	ldrb	r3, [fp, #-134]	@ zero_extendqisi2
	strb	r3, [fp, #-144]
	mov	r3, #0
	strb	r3, [fp, #-143]
	sub	r2, fp, #144
	sub	r3, fp, #140
	mov	r1, r2
	mov	r0, r3
	bl	strtok
	str	r0, [fp, #-148]
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-164]
	add	r3, r2, r3
	ldr	r2, [fp, #-148]
	str	r2, [r3]
	sub	r3, fp, #144
	mov	r1, r3
	mov	r0, #0
	bl	strtok
	str	r0, [fp, #-148]
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-168]
	add	r3, r2, r3
	ldr	r2, [fp, #-148]
	str	r2, [r3]
	sub	r3, fp, #144
	mov	r1, r3
	mov	r0, #0
	bl	strtok
	str	r0, [fp, #-148]
	ldr	r0, [fp, #-148]
	bl	atoi
	mov	r1, r0
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-172]
	add	r3, r2, r3
	lsl	r2, r1, #16
	asr	r2, r2, #16
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-164]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-152]
	b	.L14
.L15:
	sub	r3, fp, #144
	mov	r1, r3
	mov	r0, #0
	bl	strtok
	str	r0, [fp, #-148]
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-176]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-152]
	lsl	r3, r3, #3
	add	r4, r2, r3
	ldr	r0, [fp, #-148]
	bl	atof
	mov	r2, r0
	mov	r3, r1
	stm	r4, {r2-r3}
	ldr	r3, [fp, #-152]
	add	r3, r3, #1
	str	r3, [fp, #-152]
.L14:
	ldr	r3, [fp, #-152]
	cmp	r3, #4
	bls	.L15
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-168]
	add	r3, r2, r3
	ldr	r10, [r3]
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-164]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-180]
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-172]
	add	r3, r2, r3
	ldrsh	r3, [r3]
	str	r3, [fp, #-184]
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-176]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldmia	r3, {r2-r3}
	ldr	r1, [fp, #-156]
	lsl	r1, r1, #2
	ldr	r0, [fp, #-176]
	add	r1, r0, r1
	ldr	r1, [r1]
	add	r1, r1, #8
	ldmia	r1, {r0-r1}
	ldr	ip, [fp, #-156]
	lsl	ip, ip, #2
	ldr	lr, [fp, #-176]
	add	ip, lr, ip
	ldr	ip, [ip]
	add	ip, ip, #16
	ldmia	ip, {r4-r5}
	ldr	ip, [fp, #-156]
	lsl	ip, ip, #2
	ldr	lr, [fp, #-176]
	add	ip, lr, ip
	ldr	ip, [ip]
	add	ip, ip, #24
	ldmia	ip, {r6-r7}
	ldr	ip, [fp, #-156]
	lsl	ip, ip, #2
	ldr	lr, [fp, #-176]
	add	ip, lr, ip
	ldr	ip, [ip]
	add	ip, ip, #32
	ldmia	ip, {r8-r9}
	str	r8, [sp, #32]
	str	r9, [sp, #36]
	str	r6, [sp, #24]
	str	r7, [sp, #28]
	str	r4, [sp, #16]
	str	r5, [sp, #20]
	str	r0, [sp, #8]
	str	r1, [sp, #12]
	stm	sp, {r2-r3}
	ldr	r3, [fp, #-184]
	ldr	r2, [fp, #-180]
	mov	r1, r10
	ldr	r0, .L18+8
	bl	printf
	ldr	r3, [fp, #-156]
	add	r3, r3, #1
	str	r3, [fp, #-156]
.L13:
	ldr	r2, [fp, #-156]
	ldr	r3, [fp, #-160]
	cmp	r2, r3
	bcc	.L16
	nop
	ldr	r3, .L18
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L17
	bl	__stack_chk_fail
.L17:
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC5
	.word	.LC3
	.word	.LC4
	.size	readInput, .-readInput
	.section	.rodata
	.align	2
.LC6:
	.ascii	"w+\000"
	.align	2
.LC7:
	.ascii	"registry.txt\000"
	.text
	.align	2
	.global	writeFile
	.syntax unified
	.arm
	.fpu softvfp
	.type	writeFile, %function
writeFile:
	@ args = 4, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #76
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	str	r2, [fp, #-56]
	str	r3, [fp, #-60]
	ldr	r3, .L23
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L23+4
	ldr	r0, .L23+8
	bl	freopen
	str	r0, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L21
.L22:
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-56]
	add	r3, r2, r3
	ldr	r10, [r3]
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-52]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-60]
	add	r3, r2, r3
	ldrsh	r3, [r3]
	str	r3, [fp, #-68]
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	ldr	r2, [fp, #4]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldmia	r3, {r2-r3}
	ldr	r1, [fp, #-44]
	lsl	r1, r1, #2
	ldr	r0, [fp, #4]
	add	r1, r0, r1
	ldr	r1, [r1]
	add	r1, r1, #8
	ldmia	r1, {r0-r1}
	ldr	ip, [fp, #-44]
	lsl	ip, ip, #2
	ldr	lr, [fp, #4]
	add	ip, lr, ip
	ldr	ip, [ip]
	add	ip, ip, #16
	ldmia	ip, {r4-r5}
	ldr	ip, [fp, #-44]
	lsl	ip, ip, #2
	ldr	lr, [fp, #4]
	add	ip, lr, ip
	ldr	ip, [ip]
	add	ip, ip, #24
	ldmia	ip, {r6-r7}
	ldr	ip, [fp, #-44]
	lsl	ip, ip, #2
	ldr	lr, [fp, #4]
	add	ip, lr, ip
	ldr	ip, [ip]
	add	ip, ip, #32
	ldmia	ip, {r8-r9}
	str	r8, [sp, #32]
	str	r9, [sp, #36]
	str	r6, [sp, #24]
	str	r7, [sp, #28]
	str	r4, [sp, #16]
	str	r5, [sp, #20]
	str	r0, [sp, #8]
	str	r1, [sp, #12]
	stm	sp, {r2-r3}
	ldr	r3, [fp, #-68]
	ldr	r2, [fp, #-64]
	mov	r1, r10
	ldr	r0, .L23+12
	bl	printf
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L21:
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-48]
	cmp	r2, r3
	bhi	.L22
	ldr	r0, [fp, #-40]
	bl	fclose
	nop
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L24:
	.align	2
.L23:
	.word	stdout
	.word	.LC6
	.word	.LC7
	.word	.LC4
	.size	writeFile, .-writeFile
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
