	.file	"176661.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Digite o nome do arquivo: "
.LC1:
	.string	"Digite um sobrenome: "
.LC2:
	.string	"Nome: "
.LC3:
	.string	"Endere\303\247o: "
.LC4:
	.string	"Cidade: "
.LC5:
	.string	"Estado (ex: PR, SP): "
.LC6:
	.string	"CEP (somente n\303\272meros): "
	.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, 560
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -64[rbp]
	mov	esi, 50
	mov	rdi, rax
	call	input
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	open_file
	mov	QWORD PTR -552[rbp], rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -544[rbp]
	add	rax, 50
	mov	esi, 255
	mov	rdi, rax
	call	input
	mov	DWORD PTR -556[rbp], eax
	jmp	.L2
.L3:
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -544[rbp]
	mov	esi, 50
	mov	rdi, rax
	call	input
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -544[rbp]
	add	rax, 150
	mov	esi, 255
	mov	rdi, rax
	call	input
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -544[rbp]
	add	rax, 405
	mov	esi, 50
	mov	rdi, rax
	call	input
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -544[rbp]
	add	rax, 455
	mov	esi, 3
	mov	rdi, rax
	call	input
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -544[rbp]
	add	rax, 458
	mov	esi, 9
	mov	rdi, rax
	call	input
	mov	rax, QWORD PTR -552[rbp]
	lea	rdx, -544[rbp]
	add	rdx, 50
	mov	rsi, rax
	mov	rdi, rdx
	call	fputs@PLT
	mov	rax, QWORD PTR -552[rbp]
	mov	rsi, rax
	mov	edi, 124
	call	fputc@PLT
	mov	rdx, QWORD PTR -552[rbp]
	lea	rax, -544[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
	mov	rax, QWORD PTR -552[rbp]
	mov	rsi, rax
	mov	edi, 124
	call	fputc@PLT
	mov	rax, QWORD PTR -552[rbp]
	lea	rdx, -544[rbp]
	add	rdx, 150
	mov	rsi, rax
	mov	rdi, rdx
	call	fputs@PLT
	mov	rax, QWORD PTR -552[rbp]
	mov	rsi, rax
	mov	edi, 124
	call	fputc@PLT
	mov	rax, QWORD PTR -552[rbp]
	lea	rdx, -544[rbp]
	add	rdx, 405
	mov	rsi, rax
	mov	rdi, rdx
	call	fputs@PLT
	mov	rax, QWORD PTR -552[rbp]
	mov	rsi, rax
	mov	edi, 124
	call	fputc@PLT
	mov	rax, QWORD PTR -552[rbp]
	lea	rdx, -544[rbp]
	add	rdx, 455
	mov	rsi, rax
	mov	rdi, rdx
	call	fputs@PLT
	mov	rax, QWORD PTR -552[rbp]
	mov	rsi, rax
	mov	edi, 124
	call	fputc@PLT
	mov	rax, QWORD PTR -552[rbp]
	lea	rdx, -544[rbp]
	add	rdx, 458
	mov	rsi, rax
	mov	rdi, rdx
	call	fputs@PLT
	mov	rax, QWORD PTR -552[rbp]
	mov	rsi, rax
	mov	edi, 124
	call	fputc@PLT
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -544[rbp]
	add	rax, 50
	mov	esi, 255
	mov	rdi, rax
	call	input
	mov	DWORD PTR -556[rbp], eax
.L2:
	cmp	DWORD PTR -556[rbp], 0
	jg	.L3
	mov	rax, QWORD PTR -552[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L5
	call	__stack_chk_fail@PLT
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	input
	.type	input, @function
input:
.LFB7:
	.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	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -4[rbp], 0
	call	getchar@PLT
	mov	BYTE PTR -5[rbp], al
	jmp	.L7
.L9:
	cmp	DWORD PTR -28[rbp], 1
	jle	.L8
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	movzx	eax, BYTE PTR -5[rbp]
	mov	BYTE PTR [rdx], al
	add	DWORD PTR -4[rbp], 1
	sub	DWORD PTR -28[rbp], 1
.L8:
	call	getchar@PLT
	mov	BYTE PTR -5[rbp], al
.L7:
	cmp	BYTE PTR -5[rbp], 10
	jne	.L9
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	eax, DWORD PTR -4[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	input, .-input
	.section	.rodata
.LC7:
	.string	"w"
	.align 8
.LC8:
	.string	"Um erro aconteceu ao abrir o arquivo."
	.text
	.globl	open_file
	.type	open_file, @function
open_file:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L12
	lea	rdi, .LC8[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L12:
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	open_file, .-open_file
	.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	"176661.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Digite o nome do arquivo: \000"
	.align	2
.LC1:
	.ascii	"Digite um sobrenome: \000"
	.align	2
.LC2:
	.ascii	"Nome: \000"
	.align	2
.LC3:
	.ascii	"Endere\303\247o: \000"
	.align	2
.LC4:
	.ascii	"Cidade: \000"
	.align	2
.LC5:
	.ascii	"Estado (ex: PR, SP): \000"
	.align	2
.LC6:
	.ascii	"CEP (somente n\303\272meros): \000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 536
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #536
	ldr	r3, .L6
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L6+4
	bl	printf
	sub	r3, fp, #60
	mov	r1, #50
	mov	r0, r3
	bl	input
	sub	r3, fp, #60
	mov	r0, r3
	bl	open_file
	str	r0, [fp, #-532]
	ldr	r0, .L6+8
	bl	printf
	sub	r3, fp, #528
	add	r3, r3, #50
	mov	r1, #255
	mov	r0, r3
	bl	input
	str	r0, [fp, #-536]
	b	.L2
.L3:
	ldr	r0, .L6+12
	bl	printf
	sub	r3, fp, #528
	mov	r1, #50
	mov	r0, r3
	bl	input
	ldr	r0, .L6+16
	bl	printf
	sub	r3, fp, #528
	add	r3, r3, #150
	mov	r1, #255
	mov	r0, r3
	bl	input
	ldr	r0, .L6+20
	bl	printf
	sub	r3, fp, #528
	add	r3, r3, #404
	add	r3, r3, #1
	mov	r1, #50
	mov	r0, r3
	bl	input
	ldr	r0, .L6+24
	bl	printf
	sub	r3, fp, #528
	add	r3, r3, #452
	add	r3, r3, #3
	mov	r1, #3
	mov	r0, r3
	bl	input
	ldr	r0, .L6+28
	bl	printf
	sub	r3, fp, #528
	add	r3, r3, #456
	add	r3, r3, #2
	mov	r1, #9
	mov	r0, r3
	bl	input
	sub	r3, fp, #528
	add	r3, r3, #50
	ldr	r1, [fp, #-532]
	mov	r0, r3
	bl	fputs
	ldr	r1, [fp, #-532]
	mov	r0, #124
	bl	fputc
	sub	r3, fp, #528
	ldr	r1, [fp, #-532]
	mov	r0, r3
	bl	fputs
	ldr	r1, [fp, #-532]
	mov	r0, #124
	bl	fputc
	sub	r3, fp, #528
	add	r3, r3, #150
	ldr	r1, [fp, #-532]
	mov	r0, r3
	bl	fputs
	ldr	r1, [fp, #-532]
	mov	r0, #124
	bl	fputc
	sub	r3, fp, #528
	add	r3, r3, #404
	add	r3, r3, #1
	ldr	r1, [fp, #-532]
	mov	r0, r3
	bl	fputs
	ldr	r1, [fp, #-532]
	mov	r0, #124
	bl	fputc
	sub	r3, fp, #528
	add	r3, r3, #452
	add	r3, r3, #3
	ldr	r1, [fp, #-532]
	mov	r0, r3
	bl	fputs
	ldr	r1, [fp, #-532]
	mov	r0, #124
	bl	fputc
	sub	r3, fp, #528
	add	r3, r3, #456
	add	r3, r3, #2
	ldr	r1, [fp, #-532]
	mov	r0, r3
	bl	fputs
	ldr	r1, [fp, #-532]
	mov	r0, #124
	bl	fputc
	ldr	r0, .L6+8
	bl	printf
	sub	r3, fp, #528
	add	r3, r3, #50
	mov	r1, #255
	mov	r0, r3
	bl	input
	str	r0, [fp, #-536]
.L2:
	ldr	r3, [fp, #-536]
	cmp	r3, #0
	bgt	.L3
	ldr	r0, [fp, #-532]
	bl	fclose
	mov	r3, #0
	ldr	r2, .L6
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L5
	bl	__stack_chk_fail
.L5:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	.LC7
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	main, .-main
	.align	2
	.global	input
	.syntax unified
	.arm
	.fpu softvfp
	.type	input, %function
input:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-8]
	bl	getchar
	mov	r3, r0
	strb	r3, [fp, #-9]
	b	.L9
.L11:
	ldr	r3, [fp, #-20]
	cmp	r3, #1
	ble	.L10
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r2, [fp, #-9]
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	str	r3, [fp, #-20]
.L10:
	bl	getchar
	mov	r3, r0
	strb	r3, [fp, #-9]
.L9:
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L11
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	input, .-input
	.section	.rodata
	.align	2
.LC8:
	.ascii	"w\000"
	.align	2
.LC9:
	.ascii	"Um erro aconteceu ao abrir o arquivo.\000"
	.text
	.align	2
	.global	open_file
	.syntax unified
	.arm
	.fpu softvfp
	.type	open_file, %function
open_file:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r1, .L16
	ldr	r0, [fp, #-16]
	bl	fopen
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L14
	ldr	r0, .L16+4
	bl	puts
	mov	r0, #1
	bl	exit
.L14:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC8
	.word	.LC9
	.size	open_file, .-open_file
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
