	.file	"813558.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"CMakeCache.txt"
.LC1:
	.string	"perror open()"
	.align 8
.LC2:
	.string	"Error: file {%s} is not a regular file!!"
.LC3:
	.string	"perror close()"
.LC4:
	.string	"close(%d), errno = %d\n"
.LC5:
	.string	"r"
.LC6:
	.string	"perror fdopen()"
.LC7:
	.string	"perror fread()"
.LC8:
	.string	"perror fclose()"
.LC9:
	.string	"fread fp  %u chars: '%s'\n"
.LC10:
	.string	"Done"
	.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, 224
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -224[rbp], 0
	mov	DWORD PTR -220[rbp], 30
	lea	rax, .LC0[rip]
	mov	QWORD PTR -200[rbp], rax
	mov	esi, 0
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -216[rbp], eax
	cmp	DWORD PTR -216[rbp], -1
	jne	.L2
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L14
.L2:
	lea	rdx, -192[rbp]
	mov	eax, DWORD PTR -216[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	fstat@PLT
	test	eax, eax
	jne	.L4
	mov	eax, DWORD PTR -168[rbp]
	and	eax, 61440
	cmp	eax, 32768
	je	.L5
.L4:
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -200[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, DWORD PTR -216[rbp]
	mov	edi, eax
	call	close@PLT
	cmp	eax, -1
	jne	.L6
	lea	rdi, .LC3[rip]
	call	perror@PLT
	call	__errno_location@PLT
	mov	ecx, DWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -216[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L6:
	mov	eax, -1
	jmp	.L14
.L5:
	mov	eax, DWORD PTR -216[rbp]
	lea	rsi, .LC5[rip]
	mov	edi, eax
	call	fdopen@PLT
	mov	QWORD PTR -208[rbp], rax
	cmp	QWORD PTR -208[rbp], 0
	jne	.L7
	lea	rdi, .LC6[rip]
	call	perror@PLT
	mov	eax, DWORD PTR -216[rbp]
	mov	edi, eax
	call	close@PLT
	cmp	eax, -1
	jne	.L8
	lea	rdi, .LC3[rip]
	call	perror@PLT
	call	__errno_location@PLT
	mov	ecx, DWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -216[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L8:
	mov	eax, -1
	jmp	.L14
.L7:
	mov	edx, DWORD PTR -220[rbp]
	mov	rcx, QWORD PTR -208[rbp]
	lea	rax, -48[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	DWORD PTR -212[rbp], eax
	mov	eax, DWORD PTR -212[rbp]
	cmp	eax, DWORD PTR -220[rbp]
	je	.L9
	mov	rax, QWORD PTR -208[rbp]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	jne	.L9
	lea	rdi, .LC7[rip]
	call	perror@PLT
	mov	rax, QWORD PTR -208[rbp]
	mov	rdi, rax
	call	fclose@PLT
	cmp	eax, -1
	jne	.L10
	lea	rdi, .LC8[rip]
	call	perror@PLT
.L10:
	mov	DWORD PTR -224[rbp], -1
	jmp	.L11
.L9:
	mov	eax, DWORD PTR -212[rbp]
	mov	BYTE PTR -48[rbp+rax], 0
	lea	rdx, -48[rbp]
	mov	eax, DWORD PTR -212[rbp]
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -208[rbp]
	mov	rdi, rax
	call	fclose@PLT
	cmp	eax, -1
	jne	.L12
	lea	rdi, .LC8[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L14
.L12:
	mov	QWORD PTR -208[rbp], 0
.L11:
	mov	rax, QWORD PTR -208[rbp]
	mov	rdi, rax
	call	fclose@PLT
	cmp	eax, -1
	jne	.L13
	lea	rdi, .LC8[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L14
.L13:
	mov	QWORD PTR -208[rbp], 0
	lea	rdi, .LC10[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -224[rbp]
.L14:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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	"813558.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"CMakeCache.txt\000"
	.align	2
.LC1:
	.ascii	"perror open()\000"
	.align	2
.LC2:
	.ascii	"Error: file {%s} is not a regular file!!\000"
	.align	2
.LC3:
	.ascii	"perror close()\000"
	.align	2
.LC4:
	.ascii	"close(%d), errno = %d\012\000"
	.align	2
.LC5:
	.ascii	"r\000"
	.align	2
.LC6:
	.ascii	"perror fdopen()\000"
	.align	2
.LC7:
	.ascii	"perror fread()\000"
	.align	2
.LC8:
	.ascii	"perror fclose()\000"
	.align	2
.LC9:
	.ascii	"fread fp  %u chars: '%s'\012\000"
	.align	2
.LC10:
	.ascii	"Done\000"
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 152
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #156
	ldr	r3, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-160]
	mov	r3, #30
	str	r3, [fp, #-156]
	ldr	r3, .L16+4
	str	r3, [fp, #-152]
	mov	r1, #0
	ldr	r0, .L16+4
	bl	open
	str	r0, [fp, #-148]
	ldr	r3, [fp, #-148]
	cmn	r3, #1
	bne	.L2
	ldr	r0, .L16+8
	bl	perror
	mvn	r3, #0
	b	.L14
.L2:
	sub	r3, fp, #140
	mov	r1, r3
	ldr	r0, [fp, #-148]
	bl	fstat
	mov	r3, r0
	cmp	r3, #0
	bne	.L4
	ldr	r3, [fp, #-124]
	and	r3, r3, #61440
	cmp	r3, #32768
	beq	.L5
.L4:
	ldr	r3, .L16+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-152]
	ldr	r1, .L16+16
	mov	r0, r3
	bl	fprintf
	ldr	r0, [fp, #-148]
	bl	close
	mov	r3, r0
	cmn	r3, #1
	bne	.L6
	ldr	r0, .L16+20
	bl	perror
	ldr	r3, .L16+12
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	ldr	r2, [fp, #-148]
	ldr	r1, .L16+24
	mov	r0, r4
	bl	fprintf
.L6:
	mvn	r3, #0
	b	.L14
.L5:
	ldr	r1, .L16+28
	ldr	r0, [fp, #-148]
	bl	fdopen
	str	r0, [fp, #-164]
	ldr	r3, [fp, #-164]
	cmp	r3, #0
	bne	.L7
	ldr	r0, .L16+32
	bl	perror
	ldr	r0, [fp, #-148]
	bl	close
	mov	r3, r0
	cmn	r3, #1
	bne	.L8
	ldr	r0, .L16+20
	bl	perror
	ldr	r3, .L16+12
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	ldr	r2, [fp, #-148]
	ldr	r1, .L16+24
	mov	r0, r4
	bl	fprintf
.L8:
	mvn	r3, #0
	b	.L14
.L7:
	sub	r0, fp, #48
	ldr	r3, [fp, #-164]
	ldr	r2, [fp, #-156]
	mov	r1, #1
	bl	fread
	str	r0, [fp, #-144]
	ldr	r2, [fp, #-144]
	ldr	r3, [fp, #-156]
	cmp	r2, r3
	beq	.L9
	ldr	r0, [fp, #-164]
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	bne	.L9
	ldr	r0, .L16+36
	bl	perror
	ldr	r0, [fp, #-164]
	bl	fclose
	mov	r3, r0
	cmn	r3, #1
	bne	.L10
	ldr	r0, .L16+40
	bl	perror
.L10:
	mvn	r3, #0
	str	r3, [fp, #-160]
	b	.L11
.L9:
	sub	r2, fp, #48
	ldr	r3, [fp, #-144]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #48
	mov	r2, r3
	ldr	r1, [fp, #-144]
	ldr	r0, .L16+44
	bl	printf
	ldr	r0, [fp, #-164]
	bl	fclose
	mov	r3, r0
	cmn	r3, #1
	bne	.L12
	ldr	r0, .L16+40
	bl	perror
	mvn	r3, #0
	b	.L14
.L12:
	mov	r3, #0
	str	r3, [fp, #-164]
.L11:
	ldr	r0, [fp, #-164]
	bl	fclose
	mov	r3, r0
	cmn	r3, #1
	bne	.L13
	ldr	r0, .L16+40
	bl	perror
	mvn	r3, #0
	b	.L14
.L13:
	mov	r3, #0
	str	r3, [fp, #-164]
	ldr	r0, .L16+48
	bl	puts
	ldr	r3, [fp, #-160]
.L14:
	ldr	r2, .L16
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L15
	bl	__stack_chk_fail
.L15:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC11
	.word	.LC0
	.word	.LC1
	.word	stderr
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
