	.file	"24977.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"rb+"
	.text
	.globl	fun
	.type	fun, @function
fun:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, 2
	mov	rsi, -32
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, rax
	mov	edx, 1
	mov	esi, 32
	lea	rdi, 16[rbp]
	call	fwrite@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	fun, .-fun
	.section	.rodata
.LC17:
	.string	"wb"
.LC18:
	.string	"rb"
.LC19:
	.string	"\nThe original data :\n"
	.align 8
.LC20:
	.string	"\nNo: %ld  Name: %-8s      Scores:  "
.LC21:
	.string	"%6.2f "
.LC22:
	.string	"\nThe data after modifing :\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 400
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	movabs	rax, 3347421804799292531
	mov	QWORD PTR -20[rbp], rax
	mov	DWORD PTR -12[rbp], 7627108
	mov	QWORD PTR -352[rbp], 10001
	movabs	rax, 122464151757133
	mov	QWORD PTR -344[rbp], rax
	mov	WORD PTR -336[rbp], 0
	movss	xmm0, DWORD PTR .LC1[rip]
	movss	DWORD PTR -332[rbp], xmm0
	movss	xmm0, DWORD PTR .LC2[rip]
	movss	DWORD PTR -328[rbp], xmm0
	movss	xmm0, DWORD PTR .LC3[rip]
	movss	DWORD PTR -324[rbp], xmm0
	mov	QWORD PTR -320[rbp], 10002
	movabs	rax, 115866598334787
	mov	QWORD PTR -312[rbp], rax
	mov	WORD PTR -304[rbp], 0
	movss	xmm0, DWORD PTR .LC4[rip]
	movss	DWORD PTR -300[rbp], xmm0
	movss	xmm0, DWORD PTR .LC5[rip]
	movss	DWORD PTR -296[rbp], xmm0
	movss	xmm0, DWORD PTR .LC6[rip]
	movss	DWORD PTR -292[rbp], xmm0
	mov	QWORD PTR -288[rbp], 10003
	mov	QWORD PTR -280[rbp], 1767074124
	mov	WORD PTR -272[rbp], 0
	movss	xmm0, DWORD PTR .LC7[rip]
	movss	DWORD PTR -268[rbp], xmm0
	movss	xmm0, DWORD PTR .LC8[rip]
	movss	DWORD PTR -264[rbp], xmm0
	movss	xmm0, DWORD PTR .LC9[rip]
	movss	DWORD PTR -260[rbp], xmm0
	mov	QWORD PTR -256[rbp], 10004
	movabs	rax, 7453001388355641670
	mov	QWORD PTR -248[rbp], rax
	mov	WORD PTR -240[rbp], 0
	movss	xmm0, DWORD PTR .LC10[rip]
	movss	DWORD PTR -236[rbp], xmm0
	movss	xmm0, DWORD PTR .LC11[rip]
	movss	DWORD PTR -232[rbp], xmm0
	movss	xmm0, DWORD PTR .LC12[rip]
	movss	DWORD PTR -228[rbp], xmm0
	mov	QWORD PTR -224[rbp], 10005
	movabs	rax, 7953730120611620954
	mov	QWORD PTR -216[rbp], rax
	mov	WORD PTR -208[rbp], 0
	movss	xmm0, DWORD PTR .LC13[rip]
	movss	DWORD PTR -204[rbp], xmm0
	movss	xmm0, DWORD PTR .LC14[rip]
	movss	DWORD PTR -200[rbp], xmm0
	movss	xmm0, DWORD PTR .LC6[rip]
	movss	DWORD PTR -196[rbp], xmm0
	mov	QWORD PTR -384[rbp], 10006
	movabs	rax, 115807071856730
	mov	QWORD PTR -376[rbp], rax
	mov	WORD PTR -368[rbp], 0
	movss	xmm0, DWORD PTR .LC15[rip]
	movss	DWORD PTR -364[rbp], xmm0
	movss	xmm0, DWORD PTR .LC8[rip]
	movss	DWORD PTR -360[rbp], xmm0
	movss	xmm0, DWORD PTR .LC16[rip]
	movss	DWORD PTR -356[rbp], xmm0
	lea	rax, -20[rbp]
	lea	rsi, .LC17[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -392[rbp], rax
	mov	rdx, QWORD PTR -392[rbp]
	lea	rax, -352[rbp]
	mov	rcx, rdx
	mov	edx, 5
	mov	esi, 32
	mov	rdi, rax
	call	fwrite@PLT
	mov	rax, QWORD PTR -392[rbp]
	mov	rdi, rax
	call	fclose@PLT
	lea	rax, -20[rbp]
	lea	rsi, .LC18[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -392[rbp], rax
	mov	rdx, QWORD PTR -392[rbp]
	lea	rax, -192[rbp]
	mov	rcx, rdx
	mov	edx, 5
	mov	esi, 32
	mov	rdi, rax
	call	fread@PLT
	mov	rax, QWORD PTR -392[rbp]
	mov	rdi, rax
	call	fclose@PLT
	lea	rdi, .LC19[rip]
	call	puts@PLT
	mov	DWORD PTR -396[rbp], 0
	jmp	.L3
.L6:
	lea	rdx, -192[rbp]
	mov	eax, DWORD PTR -396[rbp]
	cdqe
	sal	rax, 5
	add	rax, rdx
	lea	rdx, 8[rax]
	mov	eax, DWORD PTR -396[rbp]
	cdqe
	sal	rax, 5
	add	rax, rbp
	sub	rax, 192
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -400[rbp], 0
	jmp	.L4
.L5:
	mov	eax, DWORD PTR -400[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -396[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	add	rax, 4
	movss	xmm0, DWORD PTR -188[rbp+rax*4]
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, xmm0
	movq	rax, xmm1
	movq	xmm0, rax
	lea	rdi, .LC21[rip]
	mov	eax, 1
	call	printf@PLT
	add	DWORD PTR -400[rbp], 1
.L4:
	cmp	DWORD PTR -400[rbp], 2
	jle	.L5
	mov	edi, 10
	call	putchar@PLT
	add	DWORD PTR -396[rbp], 1
.L3:
	cmp	DWORD PTR -396[rbp], 4
	jle	.L6
	lea	rax, -20[rbp]
	push	QWORD PTR -360[rbp]
	push	QWORD PTR -368[rbp]
	push	QWORD PTR -376[rbp]
	push	QWORD PTR -384[rbp]
	mov	rdi, rax
	call	fun
	add	rsp, 32
	lea	rdi, .LC22[rip]
	call	puts@PLT
	lea	rax, -20[rbp]
	lea	rsi, .LC18[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -392[rbp], rax
	mov	rdx, QWORD PTR -392[rbp]
	lea	rax, -192[rbp]
	mov	rcx, rdx
	mov	edx, 5
	mov	esi, 32
	mov	rdi, rax
	call	fread@PLT
	mov	rax, QWORD PTR -392[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	DWORD PTR -396[rbp], 0
	jmp	.L7
.L10:
	lea	rdx, -192[rbp]
	mov	eax, DWORD PTR -396[rbp]
	cdqe
	sal	rax, 5
	add	rax, rdx
	lea	rdx, 8[rax]
	mov	eax, DWORD PTR -396[rbp]
	cdqe
	sal	rax, 5
	add	rax, rbp
	sub	rax, 192
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -400[rbp], 0
	jmp	.L8
.L9:
	mov	eax, DWORD PTR -400[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -396[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	add	rax, 4
	movss	xmm0, DWORD PTR -188[rbp+rax*4]
	pxor	xmm2, xmm2
	cvtss2sd	xmm2, xmm0
	movq	rax, xmm2
	movq	xmm0, rax
	lea	rdi, .LC21[rip]
	mov	eax, 1
	call	printf@PLT
	add	DWORD PTR -400[rbp], 1
.L8:
	cmp	DWORD PTR -400[rbp], 2
	jle	.L9
	mov	edi, 10
	call	putchar@PLT
	add	DWORD PTR -396[rbp], 1
.L7:
	cmp	DWORD PTR -396[rbp], 4
	jle	.L10
	call	getchar@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.section	.rodata
	.align 4
.LC1:
	.long	1119223808
	.align 4
.LC2:
	.long	1119354880
	.align 4
.LC3:
	.long	1117388800
	.align 4
.LC4:
	.long	1117126656
	.align 4
.LC5:
	.long	1114636288
	.align 4
.LC6:
	.long	1118830592
	.align 4
.LC7:
	.long	1118437376
	.align 4
.LC8:
	.long	1116471296
	.align 4
.LC9:
	.long	1117519872
	.align 4
.LC10:
	.long	1119092736
	.align 4
.LC11:
	.long	1118044160
	.align 4
.LC12:
	.long	1118699520
	.align 4
.LC13:
	.long	1119748096
	.align 4
.LC14:
	.long	1117782016
	.align 4
.LC15:
	.long	1113325568
	.align 4
.LC16:
	.long	1116209152
	.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	"24977.c"
	.text
	.section	.rodata
	.align	2
.LC2:
	.ascii	"rb+\000"
	.text
	.align	2
	.global	fun
	.syntax unified
	.arm
	.fpu softvfp
	.type	fun, %function
fun:
	@ args = 32, pretend = 16, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	sub	sp, sp, #16
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	add	r0, fp, #8
	stm	r0, {r1, r2, r3}
	ldr	r1, .L2
	ldr	r0, [fp, #-16]
	bl	fopen
	str	r0, [fp, #-8]
	mov	r2, #2
	mvn	r1, #27
	ldr	r0, [fp, #-8]
	bl	fseek
	add	r0, fp, #8
	ldr	r3, [fp, #-8]
	mov	r2, #1
	mov	r1, #28
	bl	fwrite
	ldr	r0, [fp, #-8]
	bl	fclose
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, lr}
	add	sp, sp, #16
	bx	lr
.L3:
	.align	2
.L2:
	.word	.LC2
	.size	fun, .-fun
	.section	.rodata
	.align	2
.LC4:
	.ascii	"wb\000"
	.align	2
.LC5:
	.ascii	"rb\000"
	.align	2
.LC6:
	.ascii	"\012The original data :\012\000"
	.align	2
.LC7:
	.ascii	"\012No: %ld  Name: %-8s      Scores:  \000"
	.global	__aeabi_f2d
	.align	2
.LC8:
	.ascii	"%6.2f \000"
	.align	2
.LC9:
	.ascii	"\012The data after modifing :\012\000"
	.align	2
.LC3:
	.ascii	"student.dat\000"
	.align	2
.LC0:
	.word	10001
	.ascii	"MaChao\000"
	.space	3
	.space	2
	.word	1119223808
	.word	1119354880
	.word	1117388800
	.word	10002
	.ascii	"CaoKai\000"
	.space	3
	.space	2
	.word	1117126656
	.word	1114636288
	.word	1118830592
	.word	10003
	.ascii	"LiSi\000"
	.space	5
	.space	2
	.word	1118437376
	.word	1116471296
	.word	1117519872
	.word	10004
	.ascii	"FangFang\000"
	.space	1
	.space	2
	.word	1119092736
	.word	1118044160
	.word	1118699520
	.word	10005
	.ascii	"ZhangSan\000"
	.space	1
	.space	2
	.word	1119748096
	.word	1117782016
	.word	1118830592
	.align	2
.LC1:
	.word	10006
	.ascii	"ZhaoSi\000"
	.space	3
	.space	2
	.word	1113325568
	.word	1116471296
	.word	1116209152
	.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 = 336
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #352
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r2, .L14+4
	sub	r3, fp, #20
	ldm	r2, {r0, r1, r2}
	stm	r3, {r0, r1, r2}
	ldr	r2, .L14+8
	sub	r3, fp, #300
	mov	r1, r2
	mov	r2, #140
	mov	r0, r3
	bl	memcpy
	ldr	r3, .L14+12
	sub	ip, fp, #328
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2}
	stm	ip, {r0, r1, r2}
	sub	r3, fp, #20
	ldr	r1, .L14+16
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-332]
	sub	r0, fp, #300
	ldr	r3, [fp, #-332]
	mov	r2, #5
	mov	r1, #28
	bl	fwrite
	ldr	r0, [fp, #-332]
	bl	fclose
	sub	r3, fp, #20
	ldr	r1, .L14+20
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-332]
	sub	r0, fp, #160
	ldr	r3, [fp, #-332]
	mov	r2, #5
	mov	r1, #28
	bl	fread
	ldr	r0, [fp, #-332]
	bl	fclose
	ldr	r0, .L14+24
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-336]
	b	.L5
.L8:
	ldr	r2, [fp, #-336]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	r3, r3, #156
	ldr	r0, [r3]
	sub	r1, fp, #160
	ldr	r2, [fp, #-336]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #4
	mov	r2, r3
	mov	r1, r0
	ldr	r0, .L14+28
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-340]
	b	.L6
.L7:
	ldr	r2, [fp, #-336]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	ldr	r2, [fp, #-340]
	add	r3, r3, r2
	add	r3, r3, #4
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-156]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L14+32
	bl	printf
	ldr	r3, [fp, #-340]
	add	r3, r3, #1
	str	r3, [fp, #-340]
.L6:
	ldr	r3, [fp, #-340]
	cmp	r3, #2
	ble	.L7
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-336]
	add	r3, r3, #1
	str	r3, [fp, #-336]
.L5:
	ldr	r3, [fp, #-336]
	cmp	r3, #4
	ble	.L8
	sub	lr, fp, #20
	mov	ip, sp
	sub	r3, fp, #316
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	sub	r3, fp, #328
	ldm	r3, {r1, r2, r3}
	mov	r0, lr
	bl	fun
	ldr	r0, .L14+36
	bl	puts
	sub	r3, fp, #20
	ldr	r1, .L14+20
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-332]
	sub	r0, fp, #160
	ldr	r3, [fp, #-332]
	mov	r2, #5
	mov	r1, #28
	bl	fread
	ldr	r0, [fp, #-332]
	bl	fclose
	mov	r3, #0
	str	r3, [fp, #-336]
	b	.L9
.L12:
	ldr	r2, [fp, #-336]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	r3, r3, #156
	ldr	r0, [r3]
	sub	r1, fp, #160
	ldr	r2, [fp, #-336]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #4
	mov	r2, r3
	mov	r1, r0
	ldr	r0, .L14+28
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-340]
	b	.L10
.L11:
	ldr	r2, [fp, #-336]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	ldr	r2, [fp, #-340]
	add	r3, r3, r2
	add	r3, r3, #4
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-156]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L14+32
	bl	printf
	ldr	r3, [fp, #-340]
	add	r3, r3, #1
	str	r3, [fp, #-340]
.L10:
	ldr	r3, [fp, #-340]
	cmp	r3, #2
	ble	.L11
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-336]
	add	r3, r3, #1
	str	r3, [fp, #-336]
.L9:
	ldr	r3, [fp, #-336]
	cmp	r3, #4
	ble	.L12
	bl	getchar
	nop
	ldr	r3, .L14
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC10
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.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
