	.file	"800801.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC5:
	.string	"wb"
.LC6:
	.string	"test.bin"
.LC7:
	.string	"rb"
	.align 8
.LC8:
	.string	"Array read successfully, contents: "
.LC9:
	.string	"%f "
	.align 8
.LC10:
	.string	"Error reading test.bin: unexpected end of file"
.LC11:
	.string	"Error reading test.bin"
	.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
	add	rsp, -128
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	movsd	xmm0, QWORD PTR .LC0[rip]
	movsd	QWORD PTR -96[rbp], xmm0
	movsd	xmm0, QWORD PTR .LC1[rip]
	movsd	QWORD PTR -88[rbp], xmm0
	movsd	xmm0, QWORD PTR .LC2[rip]
	movsd	QWORD PTR -80[rbp], xmm0
	movsd	xmm0, QWORD PTR .LC3[rip]
	movsd	QWORD PTR -72[rbp], xmm0
	movsd	xmm0, QWORD PTR .LC4[rip]
	movsd	QWORD PTR -64[rbp], xmm0
	lea	rsi, .LC5[rip]
	lea	rdi, .LC6[rip]
	call	fopen@PLT
	mov	QWORD PTR -112[rbp], rax
	mov	rdx, QWORD PTR -112[rbp]
	lea	rax, -96[rbp]
	mov	rcx, rdx
	mov	edx, 5
	mov	esi, 8
	mov	rdi, rax
	call	fwrite@PLT
	mov	rax, QWORD PTR -112[rbp]
	mov	rdi, rax
	call	fclose@PLT
	lea	rsi, .LC7[rip]
	lea	rdi, .LC6[rip]
	call	fopen@PLT
	mov	QWORD PTR -112[rbp], rax
	mov	rdx, QWORD PTR -112[rbp]
	lea	rax, -48[rbp]
	mov	rcx, rdx
	mov	edx, 5
	mov	esi, 8
	mov	rdi, rax
	call	fread@PLT
	mov	QWORD PTR -104[rbp], rax
	cmp	QWORD PTR -104[rbp], 5
	jne	.L2
	lea	rdi, .LC8[rip]
	call	puts@PLT
	mov	DWORD PTR -116[rbp], 0
	jmp	.L3
.L4:
	mov	eax, DWORD PTR -116[rbp]
	cdqe
	mov	rax, QWORD PTR -48[rbp+rax*8]
	movq	xmm0, rax
	lea	rdi, .LC9[rip]
	mov	eax, 1
	call	printf@PLT
	add	DWORD PTR -116[rbp], 1
.L3:
	cmp	DWORD PTR -116[rbp], 4
	jle	.L4
	mov	edi, 10
	call	putchar@PLT
	jmp	.L5
.L2:
	mov	rax, QWORD PTR -112[rbp]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	je	.L6
	lea	rdi, .LC10[rip]
	call	puts@PLT
	jmp	.L5
.L6:
	mov	rax, QWORD PTR -112[rbp]
	mov	rdi, rax
	call	ferror@PLT
	test	eax, eax
	je	.L5
	lea	rdi, .LC11[rip]
	call	perror@PLT
.L5:
	mov	rax, QWORD PTR -112[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC0:
	.long	0
	.long	1072693248
	.align 8
.LC1:
	.long	0
	.long	1073741824
	.align 8
.LC2:
	.long	0
	.long	1074266112
	.align 8
.LC3:
	.long	0
	.long	1074790400
	.align 8
.LC4:
	.long	0
	.long	1075052544
	.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	"800801.c"
	.text
	.section	.rodata
	.align	2
.LC1:
	.ascii	"wb\000"
	.align	2
.LC2:
	.ascii	"test.bin\000"
	.align	2
.LC3:
	.ascii	"rb\000"
	.align	2
.LC4:
	.ascii	"Array read successfully, contents: \000"
	.align	2
.LC5:
	.ascii	"%f \000"
	.align	2
.LC6:
	.ascii	"Error reading test.bin: unexpected end of file\000"
	.align	2
.LC7:
	.ascii	"Error reading test.bin\000"
	.align	3
.LC0:
	.word	0
	.word	1072693248
	.word	0
	.word	1073741824
	.word	0
	.word	1074266112
	.word	0
	.word	1074790400
	.word	0
	.word	1075052544
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 104
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #104
	ldr	r3, .L9
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L9+4
	sub	ip, fp, #92
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1}
	stm	ip, {r0, r1}
	ldr	r1, .L9+8
	ldr	r0, .L9+12
	bl	fopen
	str	r0, [fp, #-100]
	sub	r0, fp, #92
	ldr	r3, [fp, #-100]
	mov	r2, #5
	mov	r1, #8
	bl	fwrite
	ldr	r0, [fp, #-100]
	bl	fclose
	ldr	r1, .L9+16
	ldr	r0, .L9+12
	bl	fopen
	str	r0, [fp, #-100]
	sub	r0, fp, #52
	ldr	r3, [fp, #-100]
	mov	r2, #5
	mov	r1, #8
	bl	fread
	str	r0, [fp, #-96]
	ldr	r3, [fp, #-96]
	cmp	r3, #5
	bne	.L2
	ldr	r0, .L9+20
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-104]
	b	.L3
.L4:
	ldr	r3, [fp, #-104]
	lsl	r3, r3, #3
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	r3, r3, #48
	ldmia	r3, {r2-r3}
	ldr	r0, .L9+24
	bl	printf
	ldr	r3, [fp, #-104]
	add	r3, r3, #1
	str	r3, [fp, #-104]
.L3:
	ldr	r3, [fp, #-104]
	cmp	r3, #4
	ble	.L4
	mov	r0, #10
	bl	putchar
	b	.L5
.L2:
	ldr	r0, [fp, #-100]
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	beq	.L6
	ldr	r0, .L9+28
	bl	puts
	b	.L5
.L6:
	ldr	r0, [fp, #-100]
	bl	ferror
	mov	r3, r0
	cmp	r3, #0
	beq	.L5
	ldr	r0, .L9+32
	bl	perror
.L5:
	ldr	r0, [fp, #-100]
	bl	fclose
	mov	r3, #0
	ldr	r2, .L9
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L8
	bl	__stack_chk_fail
.L8:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC8
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
