	.file	"592121.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"r"
.LC1:
	.string	"Student.txt"
.LC2:
	.string	"w"
.LC3:
	.string	"BookPrize.txt"
	.align 8
.LC4:
	.string	"Cannot open %s file for reading, does the file exist?\n"
	.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, 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	fopen@PLT
	mov	QWORD PTR -80[rbp], rax
	lea	rsi, .LC2[rip]
	lea	rdi, .LC3[rip]
	call	fopen@PLT
	mov	QWORD PTR -72[rbp], rax
	cmp	QWORD PTR -80[rbp], 0
	jne	.L2
	lea	rsi, .LC1[rip]
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, -1
	call	exit@PLT
.L2:
	mov	eax, 0
	call	heading
	mov	rdx, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR -80[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	printDetails
	mov	DWORD PTR -84[rbp], eax
	lea	rax, -84[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	footer
	mov	rax, QWORD PTR -80[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L4
	call	__stack_chk_fail@PLT
.L4:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC5:
	.string	"         LIST OF STUDENTS                   \nStudent ID          Name                CGPA\n==========          ====                ===="
	.text
	.globl	heading
	.type	heading, @function
heading:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC5[rip]
	call	puts@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	heading, .-heading
	.section	.rodata
.LC7:
	.string	"%-19s %-19s %-2.2lf\n"
.LC8:
	.string	"%20[^|]|%20[^|]|%lf\n"
	.text
	.globl	printDetails
	.type	printDetails, @function
printDetails:
.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, 96
	mov	QWORD PTR -88[rbp], rdi
	mov	QWORD PTR -96[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -76[rbp], 0
	jmp	.L7
.L9:
	movsd	xmm0, QWORD PTR -72[rbp]
	comisd	xmm0, QWORD PTR .LC6[rip]
	jnb	.L12
	jmp	.L7
.L12:
	mov	rsi, QWORD PTR -72[rbp]
	lea	rcx, -32[rbp]
	lea	rdx, -64[rbp]
	mov	rax, QWORD PTR -96[rbp]
	movq	xmm0, rsi
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 1
	call	fprintf@PLT
	add	DWORD PTR -76[rbp], 1
.L7:
	lea	rsi, -72[rbp]
	lea	rcx, -32[rbp]
	lea	rdx, -64[rbp]
	mov	rax, QWORD PTR -88[rbp]
	mov	r8, rsi
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	cmp	eax, -1
	jne	.L9
	mov	eax, DWORD PTR -76[rbp]
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	printDetails, .-printDetails
	.section	.rodata
	.align 8
.LC9:
	.string	"============================================"
	.align 8
.LC10:
	.string	"%d record(s) copied to BookPrize.txt\n"
	.text
	.globl	footer
	.type	footer, @function
footer:
.LFB9:
	.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	QWORD PTR -8[rbp], rdi
	lea	rdi, .LC9[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	footer, .-footer
	.section	.rodata
	.align 8
.LC6:
	.long	0
	.long	1074528256
	.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	"592121.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"r\000"
	.align	2
.LC1:
	.ascii	"Student.txt\000"
	.align	2
.LC2:
	.ascii	"w\000"
	.align	2
.LC3:
	.ascii	"BookPrize.txt\000"
	.align	2
.LC4:
	.ascii	"Cannot open %s file for reading, does the file exis"
	.ascii	"t?\012\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #72
	ldr	r3, .L5
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L5+4
	ldr	r0, .L5+8
	bl	fopen
	str	r0, [fp, #-68]
	ldr	r1, .L5+12
	ldr	r0, .L5+16
	bl	fopen
	str	r0, [fp, #-64]
	ldr	r3, [fp, #-68]
	cmp	r3, #0
	bne	.L2
	ldr	r1, .L5+8
	ldr	r0, .L5+20
	bl	printf
	mvn	r0, #0
	bl	exit
.L2:
	bl	heading
	ldr	r1, [fp, #-64]
	ldr	r0, [fp, #-68]
	bl	printDetails
	mov	r3, r0
	str	r3, [fp, #-72]
	sub	r3, fp, #72
	mov	r0, r3
	bl	footer
	ldr	r0, [fp, #-68]
	bl	fclose
	mov	r3, #0
	ldr	r2, .L5
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L4
	bl	__stack_chk_fail
.L4:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.word	.LC5
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	main, .-main
	.section	.rodata
	.align	2
.LC6:
	.ascii	"         LIST OF STUDENTS                   \012Stu"
	.ascii	"dent ID          Name                CGPA\012======"
	.ascii	"====          ====                ====\000"
	.text
	.align	2
	.global	heading
	.syntax unified
	.arm
	.fpu softvfp
	.type	heading, %function
heading:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L8
	bl	puts
	nop
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC6
	.size	heading, .-heading
	.global	__aeabi_dcmpge
	.section	.rodata
	.align	2
.LC7:
	.ascii	"%-19s %-19s %-2.2lf\012\000"
	.align	2
.LC8:
	.ascii	"%20[^|]|%20[^|]|%lf\012\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	printDetails
	.syntax unified
	.arm
	.fpu softvfp
	.type	printDetails, %function
printDetails:
	@ args = 0, pretend = 0, frame = 80
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #88
	str	r0, [fp, #-80]
	str	r1, [fp, #-84]
	ldr	r3, .L17
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-72]
	b	.L11
.L13:
	sub	r1, fp, #68
	ldmia	r1, {r0-r1}
	mov	r2, #0
	ldr	r3, .L17+4
	bl	__aeabi_dcmpge
	mov	r3, r0
	cmp	r3, #0
	bne	.L16
	b	.L11
.L16:
	sub	r3, fp, #68
	ldmia	r3, {r2-r3}
	sub	r0, fp, #32
	sub	r1, fp, #56
	stm	sp, {r2-r3}
	mov	r3, r0
	mov	r2, r1
	ldr	r1, .L17+8
	ldr	r0, [fp, #-84]
	bl	fprintf
	ldr	r3, [fp, #-72]
	add	r3, r3, #1
	str	r3, [fp, #-72]
.L11:
	sub	r1, fp, #32
	sub	r2, fp, #56
	sub	r3, fp, #68
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L17+12
	ldr	r0, [fp, #-80]
	bl	__isoc99_fscanf
	mov	r3, r0
	cmn	r3, #1
	bne	.L13
	ldr	r3, [fp, #-72]
	ldr	r2, .L17
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L15
	bl	__stack_chk_fail
.L15:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC9
	.word	1074528256
	.word	.LC7
	.word	.LC8
	.size	printDetails, .-printDetails
	.section	.rodata
	.align	2
.LC10:
	.ascii	"============================================\000"
	.align	2
.LC11:
	.ascii	"%d record(s) copied to BookPrize.txt\012\000"
	.text
	.align	2
	.global	footer
	.syntax unified
	.arm
	.fpu softvfp
	.type	footer, %function
footer:
	@ 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	r0, .L20
	bl	puts
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L20+4
	bl	printf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L21:
	.align	2
.L20:
	.word	.LC10
	.word	.LC11
	.size	footer, .-footer
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
