	.file	"173577783.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"teste.b"
.LC1:
	.string	"Erro na abertura de arquivo"
.LC2:
	.string	"Erro na leitura de arquivo"
	.align 8
.LC3:
	.string	"1a. Leitura: Foram lidos %d bytes.\n"
	.align 8
.LC4:
	.string	"2a. Leitura: Foram lidos %d bytes.\n"
	.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, 544
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edx, 384
	mov	esi, 192
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -536[rbp], eax
	cmp	DWORD PTR -536[rbp], -1
	jne	.L2
	mov	edx, 384
	mov	esi, 0
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -536[rbp], eax
	cmp	DWORD PTR -536[rbp], -1
	jne	.L2
	lea	rdi, .LC1[rip]
	call	puts@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	exit@PLT
.L2:
	lea	rcx, -528[rbp]
	mov	eax, DWORD PTR -536[rbp]
	mov	edx, 512
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -532[rbp], eax
	cmp	DWORD PTR -532[rbp], -1
	jne	.L3
	lea	rdi, .LC2[rip]
	call	puts@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	exit@PLT
.L3:
	mov	eax, DWORD PTR -532[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -532[rbp], 0
	jmp	.L4
.L5:
	mov	eax, DWORD PTR -532[rbp]
	cdqe
	movzx	eax, BYTE PTR -528[rbp+rax]
	movsx	eax, al
	mov	edi, eax
	call	putchar@PLT
	add	DWORD PTR -532[rbp], 1
.L4:
	mov	eax, DWORD PTR -532[rbp]
	cmp	eax, 511
	jbe	.L5
	mov	edi, 10
	call	putchar@PLT
	mov	edi, 5
	call	sleep@PLT
	lea	rcx, -528[rbp]
	mov	eax, DWORD PTR -536[rbp]
	mov	edx, 512
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -532[rbp], eax
	cmp	DWORD PTR -532[rbp], -1
	jne	.L6
	lea	rdi, .LC2[rip]
	call	puts@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	exit@PLT
.L6:
	mov	eax, DWORD PTR -532[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -532[rbp], 0
	jmp	.L7
.L8:
	mov	eax, DWORD PTR -532[rbp]
	cdqe
	movzx	eax, BYTE PTR -528[rbp+rax]
	movsx	eax, al
	mov	edi, eax
	call	putchar@PLT
	add	DWORD PTR -532[rbp], 1
.L7:
	mov	eax, DWORD PTR -532[rbp]
	cmp	eax, 511
	jbe	.L8
	mov	edi, 10
	call	putchar@PLT
	mov	eax, DWORD PTR -536[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edi, 0
	call	exit@PLT
	.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	"173577783.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"teste.b\000"
	.align	2
.LC1:
	.ascii	"Erro na abertura de arquivo\000"
	.align	2
.LC2:
	.ascii	"Erro na leitura de arquivo\000"
	.align	2
.LC3:
	.ascii	"1a. Leitura: Foram lidos %d bytes.\012\000"
	.align	2
.LC4:
	.ascii	"2a. Leitura: Foram lidos %d bytes.\012\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 528
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #528
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r2, #384
	mov	r1, #192
	ldr	r0, .L10+4
	bl	open
	str	r0, [fp, #-528]
	ldr	r3, [fp, #-528]
	cmn	r3, #1
	bne	.L2
	mov	r2, #384
	mov	r1, #0
	ldr	r0, .L10+4
	bl	open
	str	r0, [fp, #-528]
	ldr	r3, [fp, #-528]
	cmn	r3, #1
	bne	.L2
	ldr	r0, .L10+8
	bl	puts
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	exit
.L2:
	sub	r3, fp, #520
	mov	r2, #512
	mov	r1, r3
	ldr	r0, [fp, #-528]
	bl	read
	str	r0, [fp, #-524]
	ldr	r3, [fp, #-524]
	cmn	r3, #1
	bne	.L3
	ldr	r0, .L10+12
	bl	puts
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	exit
.L3:
	ldr	r1, [fp, #-524]
	ldr	r0, .L10+16
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-524]
	b	.L4
.L5:
	sub	r2, fp, #520
	ldr	r3, [fp, #-524]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	putchar
	ldr	r3, [fp, #-524]
	add	r3, r3, #1
	str	r3, [fp, #-524]
.L4:
	ldr	r3, [fp, #-524]
	cmp	r3, #512
	bcc	.L5
	mov	r0, #10
	bl	putchar
	mov	r0, #5
	bl	sleep
	sub	r3, fp, #520
	mov	r2, #512
	mov	r1, r3
	ldr	r0, [fp, #-528]
	bl	read
	str	r0, [fp, #-524]
	ldr	r3, [fp, #-524]
	cmn	r3, #1
	bne	.L6
	ldr	r0, .L10+12
	bl	puts
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	exit
.L6:
	ldr	r1, [fp, #-524]
	ldr	r0, .L10+20
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-524]
	b	.L7
.L8:
	sub	r2, fp, #520
	ldr	r3, [fp, #-524]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	putchar
	ldr	r3, [fp, #-524]
	add	r3, r3, #1
	str	r3, [fp, #-524]
.L7:
	ldr	r3, [fp, #-524]
	cmp	r3, #512
	bcc	.L8
	mov	r0, #10
	bl	putchar
	ldr	r0, [fp, #-528]
	bl	close
	mov	r0, #0
	bl	exit
.L11:
	.align	2
.L10:
	.word	.LC5
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
