	.file	"64200757.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"Enter your choice:\n 1.Create File \n 2.See List\n 3.Add new record\n "
.LC1:
	.string	"%d"
.LC2:
	.string	"wb"
.LC3:
	.string	"stu.dat"
	.align 8
.LC4:
	.string	"enter roll and then marks in 2 subject:"
.LC5:
	.string	"%d %d %d"
.LC6:
	.string	"rb"
.LC7:
	.string	"%d %d %d\n"
.LC8:
	.string	"ab"
.LC9:
	.string	"You choosed wrong"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.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	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -40[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -40[rbp]
	cmp	eax, 3
	je	.L2
	cmp	eax, 3
	jg	.L3
	cmp	eax, 1
	je	.L4
	cmp	eax, 2
	je	.L5
	jmp	.L3
.L4:
	lea	rsi, .LC2[rip]
	lea	rdi, .LC3[rip]
	call	fopen@PLT
	mov	QWORD PTR -32[rbp], rax
	mov	DWORD PTR -36[rbp], 0
	jmp	.L6
.L7:
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -20[rbp]
	lea	rcx, 8[rax]
	lea	rax, -20[rbp]
	lea	rdx, 4[rax]
	lea	rax, -20[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	rdx, QWORD PTR -32[rbp]
	lea	rax, -20[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 12
	mov	rdi, rax
	call	fwrite@PLT
	add	DWORD PTR -36[rbp], 1
.L6:
	cmp	DWORD PTR -36[rbp], 4
	jle	.L7
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	fclose@PLT
	jmp	.L8
.L5:
	lea	rsi, .LC6[rip]
	lea	rdi, .LC3[rip]
	call	fopen@PLT
	mov	QWORD PTR -32[rbp], rax
	jmp	.L9
.L10:
	mov	ecx, DWORD PTR -12[rbp]
	mov	edx, DWORD PTR -16[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
.L9:
	mov	rdx, QWORD PTR -32[rbp]
	lea	rax, -20[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 12
	mov	rdi, rax
	call	fread@PLT
	cmp	rax, 1
	je	.L10
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	fclose@PLT
	jmp	.L8
.L2:
	lea	rsi, .LC8[rip]
	lea	rdi, .LC3[rip]
	call	fopen@PLT
	mov	QWORD PTR -32[rbp], rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -20[rbp]
	lea	rcx, 8[rax]
	lea	rax, -20[rbp]
	lea	rdx, 4[rax]
	lea	rax, -20[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	rdx, QWORD PTR -32[rbp]
	lea	rax, -20[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 12
	mov	rdi, rax
	call	fwrite@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	fclose@PLT
	jmp	.L8
.L3:
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
.L8:
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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	"64200757.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Enter your choice:\012 1.Create File \012 2.See Lis"
	.ascii	"t\012 3.Add new record\012 \000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.align	2
.LC2:
	.ascii	"wb\000"
	.align	2
.LC3:
	.ascii	"stu.dat\000"
	.align	2
.LC4:
	.ascii	"enter roll and then marks in 2 subject:\000"
	.align	2
.LC5:
	.ascii	"%d %d %d\000"
	.align	2
.LC6:
	.ascii	"rb\000"
	.align	2
.LC7:
	.ascii	"%d %d %d\012\000"
	.align	2
.LC8:
	.ascii	"ab\000"
	.align	2
.LC9:
	.ascii	"You choosed wrong\000"
	.align	2
.LC10:
	.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	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L13+4
	bl	printf
	sub	r3, fp, #32
	mov	r1, r3
	ldr	r0, .L13+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-32]
	cmp	r3, #3
	beq	.L2
	cmp	r3, #3
	bgt	.L3
	cmp	r3, #1
	beq	.L4
	cmp	r3, #2
	beq	.L5
	b	.L3
.L4:
	ldr	r1, .L13+12
	ldr	r0, .L13+16
	bl	fopen
	str	r0, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L6
.L7:
	ldr	r0, .L13+20
	bl	printf
	sub	r3, fp, #20
	add	r0, r3, #8
	sub	r3, fp, #20
	add	r2, r3, #4
	sub	r1, fp, #20
	mov	r3, r0
	ldr	r0, .L13+24
	bl	__isoc99_scanf
	sub	r0, fp, #20
	ldr	r3, [fp, #-24]
	mov	r2, #1
	mov	r1, #12
	bl	fwrite
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L6:
	ldr	r3, [fp, #-28]
	cmp	r3, #4
	ble	.L7
	ldr	r0, [fp, #-24]
	bl	fclose
	b	.L8
.L5:
	ldr	r1, .L13+28
	ldr	r0, .L13+16
	bl	fopen
	str	r0, [fp, #-24]
	b	.L9
.L10:
	ldr	r1, [fp, #-20]
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	ldr	r0, .L13+32
	bl	printf
.L9:
	sub	r0, fp, #20
	ldr	r3, [fp, #-24]
	mov	r2, #1
	mov	r1, #12
	bl	fread
	mov	r3, r0
	cmp	r3, #1
	beq	.L10
	ldr	r0, [fp, #-24]
	bl	fclose
	b	.L8
.L2:
	ldr	r1, .L13+36
	ldr	r0, .L13+16
	bl	fopen
	str	r0, [fp, #-24]
	ldr	r0, .L13+20
	bl	printf
	sub	r3, fp, #20
	add	r0, r3, #8
	sub	r3, fp, #20
	add	r2, r3, #4
	sub	r1, fp, #20
	mov	r3, r0
	ldr	r0, .L13+24
	bl	__isoc99_scanf
	sub	r0, fp, #20
	ldr	r3, [fp, #-24]
	mov	r2, #1
	mov	r1, #12
	bl	fwrite
	ldr	r0, [fp, #-24]
	bl	fclose
	b	.L8
.L3:
	ldr	r0, .L13+40
	bl	printf
.L8:
	mov	r3, #0
	ldr	r2, .L13
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L12
	bl	__stack_chk_fail
.L12:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC10
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
