	.file	"22012376.c"
	.intel_syntax noprefix
	.text
	.globl	stream
	.bss
	.align 8
	.type	stream, @object
	.size	stream, 8
stream:
	.zero	8
	.section	.rodata
.LC0:
	.string	"w+"
.LC1:
	.string	"fscanf.out"
	.align 8
.LC2:
	.string	"the file fscanf.out was not opened"
.LC4:
	.string	"a-string"
.LC5:
	.string	"%s\t%ld\t%f\t%c"
.LC6:
	.string	"%s\t"
.LC7:
	.string	"%ld\t"
.LC8:
	.string	"%f\t"
.LC9:
	.string	"%c\t"
.LC10:
	.string	"%s\n%ld\n%f\n%c"
	.text
	.globl	testFscanf
	.type	testFscanf, @function
testFscanf:
.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, 48
	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 stream[rip], rax
	mov	rax, QWORD PTR stream[rip]
	test	rax, rax
	jne	.L2
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	edi, -1
	call	exit@PLT
.L2:
	mov	rax, QWORD PTR stream[rip]
	mov	rdx, QWORD PTR .LC3[rip]
	mov	r8d, 120
	movq	xmm0, rdx
	mov	ecx, 65000
	lea	rdx, .LC4[rip]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 1
	call	fprintf@PLT
	mov	rax, QWORD PTR stream[rip]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR stream[rip]
	lea	rdx, -18[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	rax, QWORD PTR stream[rip]
	lea	rdx, -32[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	rax, QWORD PTR stream[rip]
	lea	rdx, -36[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	rax, QWORD PTR stream[rip]
	lea	rdx, -37[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	movzx	eax, BYTE PTR -37[rbp]
	movsx	ecx, al
	movss	xmm0, DWORD PTR -36[rbp]
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, xmm0
	movq	rsi, xmm1
	mov	rdx, QWORD PTR -32[rbp]
	lea	rax, -18[rbp]
	movq	xmm0, rsi
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	mov	eax, 1
	call	printf@PLT
	mov	rax, QWORD PTR stream[rip]
	mov	rdi, rax
	call	fclose@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L3
	call	__stack_chk_fail@PLT
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	testFscanf, .-testFscanf
	.globl	test_putc_fputc
	.type	test_putc_fputc, @function
test_putc_fputc:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	test_putc_fputc, .-test_putc_fputc
	.section	.rodata
.LC11:
	.string	"w"
.LC12:
	.string	"demo.txt"
.LC13:
	.string	"\t Failure to open demo.txt!"
	.text
	.globl	test_write_char
	.type	test_write_char, @function
test_write_char:
.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, 16
	lea	rsi, .LC11[rip]
	lea	rdi, .LC12[rip]
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L6
	lea	rdi, .LC13[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
.L6:
	mov	edi, 10
	call	putchar@PLT
	call	getchar@PLT
	mov	DWORD PTR -12[rbp], eax
	jmp	.L7
.L8:
	mov	rdx, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR -12[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	fputc@PLT
	call	getchar@PLT
	mov	DWORD PTR -12[rbp], eax
.L7:
	cmp	DWORD PTR -12[rbp], 10
	jne	.L8
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	test_write_char, .-test_write_char
	.section	.rodata
.LC14:
	.string	"r"
.LC15:
	.string	"%c, %ld\n"
	.text
	.globl	test_read_char
	.type	test_read_char, @function
test_read_char:
.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, 32
	lea	rsi, .LC14[rip]
	lea	rdi, .LC12[rip]
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L10
	lea	rdi, .LC13[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
.L10:
	mov	edi, 10
	call	putchar@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	ftell@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	DWORD PTR -20[rbp], eax
	jmp	.L11
.L12:
	mov	rdx, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, eax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	ftell@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	DWORD PTR -20[rbp], eax
.L11:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	je	.L12
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	test_read_char, .-test_read_char
	.section	.rodata
.LC16:
	.string	"fgets.txt"
	.text
	.globl	test_fgets
	.type	test_fgets, @function
test_fgets:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 112
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rsi, .LC11[rip]
	lea	rdi, .LC16[rip]
	call	fopen@PLT
	mov	QWORD PTR -104[rbp], rax
	cmp	QWORD PTR -104[rbp], 0
	jne	.L14
	lea	rdi, .LC13[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
.L14:
	mov	edi, 10
	call	putchar@PLT
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -96[rbp]
	mov	esi, 80
	mov	rdi, rax
	call	fgets@PLT
	mov	rdx, QWORD PTR -104[rbp]
	lea	rax, -96[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
	mov	rax, QWORD PTR -104[rbp]
	mov	rdi, rax
	call	fclose@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	test_fgets, .-test_fgets
	.globl	test_fputs
	.type	test_fputs, @function
test_fputs:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 112
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rsi, .LC14[rip]
	lea	rdi, .LC16[rip]
	call	fopen@PLT
	mov	QWORD PTR -104[rbp], rax
	cmp	QWORD PTR -104[rbp], 0
	jne	.L17
	lea	rdi, .LC13[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
.L17:
	mov	edi, 10
	call	putchar@PLT
	mov	rdx, QWORD PTR -104[rbp]
	lea	rax, -96[rbp]
	mov	esi, 80
	mov	rdi, rax
	call	fgets@PLT
	mov	rdx, QWORD PTR stdout[rip]
	lea	rax, -96[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
	mov	rax, QWORD PTR -104[rbp]
	mov	rdi, rax
	call	fclose@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	test_fputs, .-test_fputs
	.section	.rodata
.LC17:
	.string	"fread.out"
.LC18:
	.string	"Wrote %d items\n"
.LC19:
	.string	"Problem openting the file"
.LC20:
	.string	"r+"
.LC21:
	.string	"Number of items read = %d\n"
.LC22:
	.string	"content is %s\n"
	.text
	.globl	test_fread
	.type	test_fread, @function
test_fread:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rsi, .LC0[rip]
	lea	rdi, .LC17[rip]
	call	fopen@PLT
	mov	QWORD PTR -56[rbp], rax
	cmp	QWORD PTR -56[rbp], 0
	je	.L20
	mov	DWORD PTR -68[rbp], 0
	jmp	.L21
.L22:
	mov	eax, DWORD PTR -68[rbp]
	mov	edx, eax
	mov	eax, 122
	sub	eax, edx
	mov	edx, eax
	mov	eax, DWORD PTR -68[rbp]
	cdqe
	mov	BYTE PTR -48[rbp+rax], dl
	add	DWORD PTR -68[rbp], 1
.L21:
	cmp	DWORD PTR -68[rbp], 25
	jle	.L22
	mov	rdx, QWORD PTR -56[rbp]
	lea	rax, -48[rbp]
	mov	rcx, rdx
	mov	edx, 26
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
	mov	DWORD PTR -64[rbp], eax
	mov	eax, DWORD PTR -64[rbp]
	mov	esi, eax
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	fclose@PLT
	jmp	.L23
.L20:
	lea	rdi, .LC19[rip]
	call	puts@PLT
.L23:
	lea	rsi, .LC20[rip]
	lea	rdi, .LC17[rip]
	call	fopen@PLT
	mov	QWORD PTR -56[rbp], rax
	cmp	QWORD PTR -56[rbp], 0
	je	.L26
	mov	rdx, QWORD PTR -56[rbp]
	lea	rax, -48[rbp]
	mov	rcx, rdx
	mov	edx, 26
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	DWORD PTR -60[rbp], eax
	mov	eax, DWORD PTR -60[rbp]
	mov	esi, eax
	lea	rdi, .LC21[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC22[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L26:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	test_fread, .-test_fread
	.globl	test_random_read_file
	.type	test_random_read_file, @function
test_random_read_file:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	test_random_read_file, .-test_random_read_file
	.globl	main
	.type	main, @function
main:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, 0
	call	test_fread
	mov	eax, 0
	call	test_random_read_file
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC3:
	.long	-1065151889
	.long	1074340298
	.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	"22012376.c"
	.text
	.comm	stream,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"w+\000"
	.align	2
.LC1:
	.ascii	"fscanf.out\000"
	.align	2
.LC2:
	.ascii	"the file fscanf.out was not opened\000"
	.align	2
.LC3:
	.ascii	"a-string\000"
	.align	2
.LC4:
	.ascii	"%s\011%ld\011%f\011%c\000"
	.align	2
.LC5:
	.ascii	"%s\011\000"
	.align	2
.LC6:
	.ascii	"%ld\011\000"
	.align	2
.LC7:
	.ascii	"%f\011\000"
	.align	2
.LC8:
	.ascii	"%c\011\000"
	.global	__aeabi_f2d
	.align	2
.LC9:
	.ascii	"%s\012%ld\012%f\012%c\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	testFscanf
	.syntax unified
	.arm
	.fpu softvfp
	.type	testFscanf, %function
testFscanf:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #52
	ldr	r3, .L4
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r1, .L4+4
	ldr	r0, .L4+8
	bl	fopen
	mov	r3, r0
	ldr	r2, .L4+12
	str	r3, [r2]
	ldr	r3, .L4+12
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L2
	ldr	r0, .L4+16
	bl	puts
	mvn	r0, #0
	bl	exit
.L2:
	ldr	r3, .L4+12
	ldr	r0, [r3]
	mov	r3, #120
	str	r3, [sp, #8]
	ldr	r2, .L4+20
	ldr	r3, .L4+24
	stm	sp, {r2-r3}
	ldr	r3, .L4+28
	ldr	r2, .L4+32
	ldr	r1, .L4+36
	bl	fprintf
	ldr	r3, .L4+12
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	fseek
	ldr	r3, .L4+12
	ldr	r3, [r3]
	sub	r2, fp, #28
	ldr	r1, .L4+40
	mov	r0, r3
	bl	__isoc99_fscanf
	ldr	r3, .L4+12
	ldr	r3, [r3]
	sub	r2, fp, #36
	ldr	r1, .L4+44
	mov	r0, r3
	bl	__isoc99_fscanf
	ldr	r3, .L4+12
	ldr	r3, [r3]
	sub	r2, fp, #32
	ldr	r1, .L4+48
	mov	r0, r3
	bl	__isoc99_fscanf
	ldr	r3, .L4+12
	ldr	r3, [r3]
	sub	r2, fp, #37
	ldr	r1, .L4+52
	mov	r0, r3
	bl	__isoc99_fscanf
	ldr	r4, [fp, #-36]
	ldr	r3, [fp, #-32]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldrb	r1, [fp, #-37]	@ zero_extendqisi2
	mov	r0, r1
	sub	r1, fp, #28
	str	r0, [sp, #8]
	stm	sp, {r2-r3}
	mov	r2, r4
	ldr	r0, .L4+56
	bl	printf
	ldr	r3, .L4+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	fclose
	nop
	ldr	r3, .L4
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L3
	bl	__stack_chk_fail
.L3:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC10
	.word	.LC0
	.word	.LC1
	.word	stream
	.word	.LC2
	.word	-1065151889
	.word	1074340298
	.word	65000
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.size	testFscanf, .-testFscanf
	.align	2
	.global	test_putc_fputc
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_putc_fputc, %function
test_putc_fputc:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	test_putc_fputc, .-test_putc_fputc
	.section	.rodata
	.align	2
.LC11:
	.ascii	"w\000"
	.align	2
.LC12:
	.ascii	"demo.txt\000"
	.align	2
.LC13:
	.ascii	"\011 Failure to open demo.txt!\000"
	.text
	.align	2
	.global	test_write_char
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_write_char, %function
test_write_char:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r1, .L11
	ldr	r0, .L11+4
	bl	fopen
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L8
	ldr	r0, .L11+8
	bl	puts
	mov	r0, #0
	bl	exit
.L8:
	mov	r0, #10
	bl	putchar
	bl	getchar
	str	r0, [fp, #-12]
	b	.L9
.L10:
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-12]
	bl	fputc
	bl	getchar
	str	r0, [fp, #-12]
.L9:
	ldr	r3, [fp, #-12]
	cmp	r3, #10
	bne	.L10
	ldr	r0, [fp, #-8]
	bl	fclose
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.size	test_write_char, .-test_write_char
	.section	.rodata
	.align	2
.LC14:
	.ascii	"r\000"
	.align	2
.LC15:
	.ascii	"%c, %ld\012\000"
	.text
	.align	2
	.global	test_read_char
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_read_char, %function
test_read_char:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r1, .L17
	ldr	r0, .L17+4
	bl	fopen
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L14
	ldr	r0, .L17+8
	bl	puts
	mov	r0, #0
	bl	exit
.L14:
	mov	r0, #10
	bl	putchar
	ldr	r0, [fp, #-8]
	bl	ftell
	str	r0, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	fgetc
	str	r0, [fp, #-16]
	b	.L15
.L16:
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-16]
	ldr	r0, .L17+12
	bl	printf
	ldr	r0, [fp, #-8]
	bl	ftell
	str	r0, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	fgetc
	str	r0, [fp, #-16]
.L15:
	ldr	r0, [fp, #-8]
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	beq	.L16
	ldr	r0, [fp, #-8]
	bl	fclose
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC14
	.word	.LC12
	.word	.LC13
	.word	.LC15
	.size	test_read_char, .-test_read_char
	.section	.rodata
	.align	2
.LC16:
	.ascii	"fgets.txt\000"
	.align	2
.LC17:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	test_fgets
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_fgets, %function
test_fgets:
	@ args = 0, pretend = 0, frame = 88
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #88
	ldr	r3, .L22
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L22+4
	ldr	r0, .L22+8
	bl	fopen
	str	r0, [fp, #-92]
	ldr	r3, [fp, #-92]
	cmp	r3, #0
	bne	.L20
	ldr	r0, .L22+12
	bl	puts
	mov	r0, #0
	bl	exit
.L20:
	mov	r0, #10
	bl	putchar
	ldr	r3, .L22+16
	ldr	r2, [r3]
	sub	r3, fp, #88
	mov	r1, #80
	mov	r0, r3
	bl	fgets
	sub	r3, fp, #88
	ldr	r1, [fp, #-92]
	mov	r0, r3
	bl	fputs
	ldr	r0, [fp, #-92]
	bl	fclose
	nop
	ldr	r3, .L22
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L21
	bl	__stack_chk_fail
.L21:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	.LC17
	.word	.LC11
	.word	.LC16
	.word	.LC13
	.word	stdin
	.size	test_fgets, .-test_fgets
	.section	.rodata
	.align	2
.LC18:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	test_fputs
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_fputs, %function
test_fputs:
	@ args = 0, pretend = 0, frame = 88
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #88
	ldr	r3, .L27
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L27+4
	ldr	r0, .L27+8
	bl	fopen
	str	r0, [fp, #-92]
	ldr	r3, [fp, #-92]
	cmp	r3, #0
	bne	.L25
	ldr	r0, .L27+12
	bl	puts
	mov	r0, #0
	bl	exit
.L25:
	mov	r0, #10
	bl	putchar
	sub	r3, fp, #88
	ldr	r2, [fp, #-92]
	mov	r1, #80
	mov	r0, r3
	bl	fgets
	ldr	r3, .L27+16
	ldr	r2, [r3]
	sub	r3, fp, #88
	mov	r1, r2
	mov	r0, r3
	bl	fputs
	ldr	r0, [fp, #-92]
	bl	fclose
	nop
	ldr	r3, .L27
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L26
	bl	__stack_chk_fail
.L26:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L28:
	.align	2
.L27:
	.word	.LC18
	.word	.LC14
	.word	.LC16
	.word	.LC13
	.word	stdout
	.size	test_fputs, .-test_fputs
	.section	.rodata
	.align	2
.LC19:
	.ascii	"fread.out\000"
	.align	2
.LC20:
	.ascii	"Wrote %d items\012\000"
	.align	2
.LC21:
	.ascii	"Problem openting the file\000"
	.align	2
.LC22:
	.ascii	"r+\000"
	.align	2
.LC23:
	.ascii	"Number of items read = %d\012\000"
	.align	2
.LC24:
	.ascii	"content is %s\012\000"
	.align	2
.LC25:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	test_fread
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_fread, %function
test_fread:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	ldr	r3, .L37
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L37+4
	ldr	r0, .L37+8
	bl	fopen
	str	r0, [fp, #-52]
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	beq	.L30
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L31
.L32:
	ldr	r3, [fp, #-56]
	and	r3, r3, #255
	rsb	r3, r3, #122
	and	r1, r3, #255
	sub	r2, fp, #40
	ldr	r3, [fp, #-56]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L31:
	ldr	r3, [fp, #-56]
	cmp	r3, #25
	ble	.L32
	sub	r0, fp, #40
	ldr	r3, [fp, #-52]
	mov	r2, #26
	mov	r1, #1
	bl	fwrite
	mov	r3, r0
	str	r3, [fp, #-48]
	ldr	r1, [fp, #-48]
	ldr	r0, .L37+12
	bl	printf
	ldr	r0, [fp, #-52]
	bl	fclose
	b	.L33
.L30:
	ldr	r0, .L37+16
	bl	puts
.L33:
	ldr	r1, .L37+20
	ldr	r0, .L37+8
	bl	fopen
	str	r0, [fp, #-52]
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	beq	.L36
	sub	r0, fp, #40
	ldr	r3, [fp, #-52]
	mov	r2, #26
	mov	r1, #1
	bl	fread
	mov	r3, r0
	str	r3, [fp, #-44]
	ldr	r1, [fp, #-44]
	ldr	r0, .L37+24
	bl	printf
	sub	r3, fp, #40
	mov	r1, r3
	ldr	r0, .L37+28
	bl	printf
	ldr	r0, [fp, #-52]
	bl	fclose
.L36:
	nop
	ldr	r3, .L37
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L35
	bl	__stack_chk_fail
.L35:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L38:
	.align	2
.L37:
	.word	.LC25
	.word	.LC0
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.size	test_fread, .-test_fread
	.align	2
	.global	test_random_read_file
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_random_read_file, %function
test_random_read_file:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	test_random_read_file, .-test_random_read_file
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	bl	test_fread
	bl	test_random_read_file
	mov	r3, #0
	mov	r0, r3
	pop	{fp, pc}
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
