	.file	"793031.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"ERRO %s.\n"
	.align 8
.LC1:
	.string	"# ERRO: quantidade de livros deve ser maior que 0"
.LC2:
	.string	"ERRO malloc: %d\n"
	.align 8
.LC3:
	.string	"# N\303\203O FOI POSS\303\215VEL ALOCAR %d livros.\n"
.LC4:
	.string	"FIM."
	.align 8
.LC5:
	.string	"# Quantos livros voc\303\252 quer digitar:"
.LC6:
	.string	"%d"
.LC7:
	.string	"ERRO: entrada invalida."
.LC8:
	.string	"# ERRO. Digitou lixo"
.LC9:
	.string	"ERRO %d.\n"
	.align 8
.LC10:
	.string	"# ERRO malloc: n\303\243o pode alocar %i livros\n"
	.align 8
.LC11:
	.string	"# Alocou com sucesso %i LIVROS\n"
	.align 8
.LC12:
	.string	"\n# ---- FIM DO CADASTRO DE %d LIVROS ----\n\n"
.LC13:
	.string	"  "
.LC14:
	.string	"Nome do autor"
.LC15:
	.string	"Nome do livro"
.LC16:
	.string	"%-*s %-*s %*s %*s\n"
.LC17:
	.string	"Valor"
.LC18:
	.string	"Paginas"
.LC20:
	.string	"  %-*s %-*s %*d R$ %*.2lf\n"
	.align 8
.LC21:
	.string	"\n  Total de todos os %d livros: R$%10.2lf\n"
.LC22:
	.string	"  Total de paginas: %d\n"
.LC23:
	.string	"  Custo por pagina: R$ %.2lf\n"
	.align 8
.LC24:
	.string	"\n# Custo por pagina calcudo no main: R$ %.2lf\n"
.LC25:
	.string	"\nFIM."
	.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, 80
	mov	DWORD PTR -68[rbp], edi
	mov	QWORD PTR -80[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -44[rbp], 10
	mov	DWORD PTR -40[rbp], 13
	mov	DWORD PTR -64[rbp], 0
	cmp	DWORD PTR -68[rbp], 1
	jle	.L2
	mov	rax, QWORD PTR -80[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -64[rbp], eax
	mov	eax, DWORD PTR -64[rbp]
	test	eax, eax
	jg	.L2
	mov	rax, QWORD PTR -80[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC1[rip]
	call	puts@PLT
.L2:
	mov	QWORD PTR -24[rbp], 0
	mov	eax, DWORD PTR -64[rbp]
	test	eax, eax
	jle	.L5
	mov	eax, DWORD PTR -64[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	lea	rdx, 0[0+rax*8]
	add	rax, rdx
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	jne	.L5
	mov	eax, DWORD PTR -64[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -64[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L16
.L9:
	lea	rdi, .LC5[rip]
	call	puts@PLT
	lea	rax, -64[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	test	eax, eax
	jne	.L6
	lea	rdi, .LC7[rip]
	call	puts@PLT
	lea	rdi, .LC8[rip]
	call	puts@PLT
	nop
.L7:
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	fgetc@PLT
	cmp	eax, 10
	jne	.L7
	jmp	.L5
.L6:
	mov	eax, DWORD PTR -64[rbp]
	test	eax, eax
	jg	.L8
	mov	eax, DWORD PTR -64[rbp]
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC1[rip]
	call	puts@PLT
	jmp	.L5
.L8:
	mov	eax, DWORD PTR -64[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	lea	rdx, 0[0+rax*8]
	add	rax, rdx
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	jne	.L5
	mov	eax, DWORD PTR -64[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -64[rbp]
	mov	esi, eax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 1
	jmp	.L16
.L5:
	cmp	QWORD PTR -24[rbp], 0
	je	.L9
	mov	eax, DWORD PTR -64[rbp]
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	mov	ecx, DWORD PTR -64[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, 101
	mov	esi, ecx
	mov	rdi, rax
	call	lelivros
	mov	eax, DWORD PTR -64[rbp]
	mov	esi, eax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -56[rbp], -1
	mov	eax, DWORD PTR -56[rbp]
	mov	DWORD PTR -60[rbp], eax
	mov	DWORD PTR -52[rbp], 0
	jmp	.L10
.L11:
	mov	eax, DWORD PTR -52[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	lea	rdx, 0[0+rax*8]
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdi, rax
	call	tamanho
	mov	DWORD PTR -36[rbp], eax
	mov	eax, DWORD PTR -36[rbp]
	cmp	DWORD PTR -60[rbp], eax
	cmovge	eax, DWORD PTR -60[rbp]
	mov	DWORD PTR -60[rbp], eax
	mov	eax, DWORD PTR -52[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	lea	rdx, 0[0+rax*8]
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	add	rax, 101
	mov	rdi, rax
	call	tamanho
	mov	DWORD PTR -36[rbp], eax
	mov	eax, DWORD PTR -36[rbp]
	cmp	DWORD PTR -56[rbp], eax
	cmovge	eax, DWORD PTR -56[rbp]
	mov	DWORD PTR -56[rbp], eax
	add	DWORD PTR -52[rbp], 1
.L10:
	mov	eax, DWORD PTR -64[rbp]
	cmp	DWORD PTR -52[rbp], eax
	jl	.L11
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	mov	esi, DWORD PTR -44[rbp]
	mov	edx, DWORD PTR -56[rbp]
	mov	eax, DWORD PTR -60[rbp]
	sub	rsp, 8
	lea	rcx, .LC17[rip]
	push	rcx
	mov	ecx, DWORD PTR -40[rbp]
	push	rcx
	lea	rcx, .LC18[rip]
	push	rcx
	mov	r9d, esi
	lea	r8, .LC14[rip]
	mov	ecx, edx
	lea	rdx, .LC15[rip]
	mov	esi, eax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	add	rsp, 32
	mov	DWORD PTR -36[rbp], eax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -52[rbp], 0
	jmp	.L12
.L13:
	mov	edi, 45
	call	putchar@PLT
	add	DWORD PTR -52[rbp], 1
.L12:
	mov	eax, DWORD PTR -52[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jl	.L13
	mov	edi, 10
	call	putchar@PLT
	pxor	xmm0, xmm0
	movsd	QWORD PTR -16[rbp], xmm0
	mov	DWORD PTR -48[rbp], 0
	lea	rax, -32[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	calcPg
	mov	DWORD PTR -52[rbp], 0
	jmp	.L14
.L15:
	mov	eax, DWORD PTR -52[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	lea	rdx, 0[0+rax*8]
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rcx, QWORD PTR 208[rax]
	mov	eax, DWORD PTR -40[rbp]
	lea	edi, -3[rax]
	mov	eax, DWORD PTR -52[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	lea	rdx, 0[0+rax*8]
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	esi, DWORD PTR 204[rax]
	mov	eax, DWORD PTR -52[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	lea	rdx, 0[0+rax*8]
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	lea	r10, 101[rax]
	mov	eax, DWORD PTR -52[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	lea	rdx, 0[0+rax*8]
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	r11, rax
	mov	r8d, DWORD PTR -44[rbp]
	mov	edx, DWORD PTR -56[rbp]
	mov	eax, DWORD PTR -60[rbp]
	push	rdi
	push	rsi
	movq	xmm0, rcx
	mov	r9d, r8d
	mov	r8, r10
	mov	ecx, edx
	mov	rdx, r11
	mov	esi, eax
	lea	rdi, .LC20[rip]
	mov	eax, 1
	call	printf@PLT
	add	rsp, 16
	mov	eax, DWORD PTR -52[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	lea	rdx, 0[0+rax*8]
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR 208[rax]
	movsd	xmm1, QWORD PTR -16[rbp]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -16[rbp], xmm0
	mov	eax, DWORD PTR -52[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	lea	rdx, 0[0+rax*8]
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR 204[rax]
	add	DWORD PTR -48[rbp], eax
	mov	eax, DWORD PTR -52[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	lea	rdx, 0[0+rax*8]
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	lea	rax, -32[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	calcPg
	add	DWORD PTR -52[rbp], 1
.L14:
	mov	eax, DWORD PTR -64[rbp]
	cmp	DWORD PTR -52[rbp], eax
	jl	.L15
	mov	eax, DWORD PTR -64[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	movq	xmm0, rdx
	mov	esi, eax
	lea	rdi, .LC21[rip]
	mov	eax, 1
	call	printf@PLT
	mov	eax, DWORD PTR -48[rbp]
	mov	esi, eax
	lea	rdi, .LC22[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -32[rbp]
	movq	xmm0, rax
	lea	rdi, .LC23[rip]
	mov	eax, 1
	call	printf@PLT
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, DWORD PTR -48[rbp]
	movsd	xmm0, QWORD PTR -16[rbp]
	divsd	xmm0, xmm1
	movq	rax, xmm0
	movq	xmm0, rax
	lea	rdi, .LC24[rip]
	mov	eax, 1
	call	printf@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
	lea	rdi, .LC25[rip]
	call	puts@PLT
	mov	eax, 0
.L16:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC26:
	.string	"# Digite os dados para %d livros\n"
.LC27:
	.string	"\n# --- Livro [%d] ---\n"
.LC28:
	.string	"# Nome do livro:"
.LC29:
	.string	"\n# Nome do autor:"
.LC30:
	.string	"\n# Quantas p\303\241ginas:"
.LC32:
	.string	"\n# Valor em reais:"
.LC33:
	.string	"%lf"
	.text
	.globl	lelivros
	.type	lelivros, @function
lelivros:
.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 -32[rbp], edx
	mov	eax, DWORD PTR -28[rbp]
	mov	esi, eax
	lea	rdi, .LC26[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -4[rbp], 0
	jmp	.L19
.L26:
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC27[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC28[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	lea	rdx, 0[0+rax*8]
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, rax
	mov	eax, DWORD PTR -32[rbp]
	mov	esi, eax
	mov	rdi, rdx
	call	lestring
	lea	rdi, .LC29[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	lea	rdx, 0[0+rax*8]
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	lea	rdx, 101[rax]
	mov	eax, DWORD PTR -32[rbp]
	mov	esi, eax
	mov	rdi, rdx
	call	lestring
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	lea	rdx, 0[0+rax*8]
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	DWORD PTR 204[rax], -1
	jmp	.L20
.L22:
	lea	rdi, .LC30[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	lea	rdx, 0[0+rax*8]
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	add	rax, 204
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	test	eax, eax
	jne	.L20
	lea	rdi, .LC7[rip]
	call	puts@PLT
	lea	rdi, .LC8[rip]
	call	puts@PLT
	nop
.L21:
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	fgetc@PLT
	cmp	eax, 10
	jne	.L21
	nop
.L20:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	lea	rdx, 0[0+rax*8]
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR 204[rax]
	test	eax, eax
	js	.L22
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	lea	rdx, 0[0+rax*8]
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR .LC31[rip]
	movsd	QWORD PTR 208[rax], xmm0
	jmp	.L23
.L25:
	lea	rdi, .LC32[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	lea	rdx, 0[0+rax*8]
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	add	rax, 208
	mov	rsi, rax
	lea	rdi, .LC33[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	test	eax, eax
	jne	.L23
	lea	rdi, .LC7[rip]
	call	puts@PLT
	lea	rdi, .LC8[rip]
	call	puts@PLT
	nop
.L24:
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	fgetc@PLT
	cmp	eax, 10
	jne	.L24
	nop
.L23:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	lea	rdx, 0[0+rax*8]
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movsd	xmm1, QWORD PTR 208[rax]
	pxor	xmm0, xmm0
	comisd	xmm0, xmm1
	ja	.L25
	add	DWORD PTR -4[rbp], 1
.L19:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L26
	mov	eax, DWORD PTR -4[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	lelivros, .-lelivros
	.globl	tamanho
	.type	tamanho, @function
tamanho:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -4[rbp], 0
	mov	DWORD PTR -4[rbp], 0
	jmp	.L29
.L30:
	add	DWORD PTR -4[rbp], 1
.L29:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L30
	mov	eax, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	tamanho, .-tamanho
	.globl	lestring
	.type	lestring, @function
lestring:
.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
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -4[rbp], 0
	mov	DWORD PTR -4[rbp], 0
	jmp	.L33
.L39:
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	fgetc@PLT
	mov	BYTE PTR -5[rbp], al
	cmp	BYTE PTR -5[rbp], 13
	jne	.L34
	sub	DWORD PTR -4[rbp], 1
	jmp	.L35
.L34:
	cmp	BYTE PTR -5[rbp], 10
	jne	.L36
	cmp	DWORD PTR -4[rbp], 0
	jne	.L36
	sub	DWORD PTR -4[rbp], 1
	jmp	.L35
.L36:
	cmp	BYTE PTR -5[rbp], 10
	je	.L41
	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
.L35:
	add	DWORD PTR -4[rbp], 1
.L33:
	mov	eax, DWORD PTR -28[rbp]
	sub	eax, 1
	cmp	DWORD PTR -4[rbp], eax
	jl	.L39
	jmp	.L38
.L41:
	nop
.L38:
	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
.LFE9:
	.size	lestring, .-lestring
	.globl	calcPg
	.type	calcPg, @function
calcPg:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	cmp	QWORD PTR -8[rbp], 0
	jne	.L43
	mov	DWORD PTR totpg.1[rip], 0
	pxor	xmm0, xmm0
	movsd	QWORD PTR valor.0[rip], xmm0
	mov	rax, QWORD PTR -16[rbp]
	pxor	xmm0, xmm0
	movsd	QWORD PTR [rax], xmm0
	mov	eax, 0
	jmp	.L44
.L43:
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR 204[rax]
	mov	eax, DWORD PTR totpg.1[rip]
	add	eax, edx
	mov	DWORD PTR totpg.1[rip], eax
	mov	rax, QWORD PTR -8[rbp]
	movsd	xmm1, QWORD PTR 208[rax]
	movsd	xmm0, QWORD PTR valor.0[rip]
	addsd	xmm0, xmm1
	movsd	QWORD PTR valor.0[rip], xmm0
	movsd	xmm0, QWORD PTR valor.0[rip]
	mov	eax, DWORD PTR totpg.1[rip]
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, eax
	divsd	xmm0, xmm1
	mov	rax, QWORD PTR -16[rbp]
	movsd	QWORD PTR [rax], xmm0
	mov	eax, DWORD PTR totpg.1[rip]
.L44:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	calcPg, .-calcPg
	.local	totpg.1
	.comm	totpg.1,4,4
	.local	valor.0
	.comm	valor.0,8,8
	.section	.rodata
	.align 8
.LC31:
	.long	0
	.long	-1074790400
	.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	"793031.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"ERRO %s.\012\000"
	.align	2
.LC1:
	.ascii	"# ERRO: quantidade de livros deve ser maior que 0\000"
	.align	2
.LC2:
	.ascii	"ERRO malloc: %d\012\000"
	.align	2
.LC3:
	.ascii	"# N\303\203O FOI POSS\303\215VEL ALOCAR %d livros.\012"
	.ascii	"\000"
	.align	2
.LC4:
	.ascii	"FIM.\000"
	.align	2
.LC5:
	.ascii	"# Quantos livros voc\303\252 quer digitar:\000"
	.align	2
.LC6:
	.ascii	"%d\000"
	.align	2
.LC7:
	.ascii	"ERRO: entrada invalida.\000"
	.align	2
.LC8:
	.ascii	"# ERRO. Digitou lixo\000"
	.align	2
.LC9:
	.ascii	"ERRO %d.\012\000"
	.align	2
.LC10:
	.ascii	"# ERRO malloc: n\303\243o pode alocar %i livros\012"
	.ascii	"\000"
	.align	2
.LC11:
	.ascii	"# Alocou com sucesso %i LIVROS\012\000"
	.align	2
.LC12:
	.ascii	"\012# ---- FIM DO CADASTRO DE %d LIVROS ----\012\012"
	.ascii	"\000"
	.align	2
.LC13:
	.ascii	"  \000"
	.align	2
.LC14:
	.ascii	"Nome do livro\000"
	.align	2
.LC15:
	.ascii	"%-*s %-*s %*s %*s\012\000"
	.align	2
.LC16:
	.ascii	"Valor\000"
	.align	2
.LC17:
	.ascii	"Paginas\000"
	.align	2
.LC18:
	.ascii	"Nome do autor\000"
	.align	2
.LC19:
	.ascii	"  %-*s %-*s %*d R$ %*.2lf\012\000"
	.global	__aeabi_dadd
	.align	2
.LC20:
	.ascii	"\012  Total de todos os %d livros: R$%10.2lf\012\000"
	.align	2
.LC21:
	.ascii	"  Total de paginas: %d\012\000"
	.align	2
.LC22:
	.ascii	"  Custo por pagina: R$ %.2lf\012\000"
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.align	2
.LC23:
	.ascii	"\012# Custo por pagina calcudo no main: R$ %.2lf\012"
	.ascii	"\000"
	.align	2
.LC24:
	.ascii	"\012FIM.\000"
	.align	2
.LC25:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #96
	str	r0, [fp, #-72]
	str	r1, [fp, #-76]
	ldr	r3, .L18
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #10
	str	r3, [fp, #-40]
	mov	r3, #13
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-72]
	cmp	r3, #1
	ble	.L2
	ldr	r3, [fp, #-76]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	bgt	.L2
	ldr	r3, [fp, #-76]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L18+4
	bl	printf
	ldr	r0, .L18+8
	bl	puts
.L2:
	mov	r3, #0
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	ble	.L5
	ldr	r3, [fp, #-64]
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	bne	.L5
	ldr	r3, [fp, #-64]
	mov	r1, r3
	ldr	r0, .L18+12
	bl	printf
	ldr	r3, [fp, #-64]
	mov	r1, r3
	ldr	r0, .L18+16
	bl	printf
	ldr	r0, .L18+20
	bl	puts
	mov	r3, #1
	b	.L16
.L9:
	ldr	r0, .L18+24
	bl	puts
	sub	r3, fp, #64
	mov	r1, r3
	ldr	r0, .L18+28
	bl	__isoc99_scanf
	mov	r3, r0
	cmp	r3, #0
	bne	.L6
	ldr	r0, .L18+32
	bl	puts
	ldr	r0, .L18+36
	bl	puts
	nop
.L7:
	ldr	r3, .L18+40
	ldr	r3, [r3]
	mov	r0, r3
	bl	fgetc
	mov	r3, r0
	cmp	r3, #10
	bne	.L7
	b	.L5
.L6:
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	bgt	.L8
	ldr	r3, [fp, #-64]
	mov	r1, r3
	ldr	r0, .L18+44
	bl	printf
	ldr	r0, .L18+8
	bl	puts
	b	.L5
.L8:
	ldr	r3, [fp, #-64]
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	bne	.L5
	ldr	r3, [fp, #-64]
	mov	r1, r3
	ldr	r0, .L18+12
	bl	printf
	ldr	r0, .L18+20
	bl	puts
	ldr	r3, [fp, #-64]
	mov	r1, r3
	ldr	r0, .L18+48
	bl	printf
	mov	r3, #1
	b	.L16
.L5:
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	beq	.L9
	ldr	r3, [fp, #-64]
	mov	r1, r3
	ldr	r0, .L18+52
	bl	printf
	ldr	r3, [fp, #-64]
	mov	r2, #101
	mov	r1, r3
	ldr	r0, [fp, #-60]
	bl	lelivros
	ldr	r3, [fp, #-64]
	mov	r1, r3
	ldr	r0, .L18+56
	bl	printf
	mvn	r3, #0
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-52]
	str	r3, [fp, #-56]
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L10
.L11:
	ldr	r2, [fp, #-48]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-60]
	add	r3, r3, r2
	mov	r0, r3
	bl	tamanho
	str	r0, [fp, #-32]
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	movge	r3, r2
	movlt	r3, r3
	str	r3, [fp, #-56]
	ldr	r2, [fp, #-48]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-60]
	add	r3, r3, r2
	add	r3, r3, #101
	mov	r0, r3
	bl	tamanho
	str	r0, [fp, #-32]
	ldr	r2, [fp, #-52]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	movge	r3, r2
	movlt	r3, r3
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L10:
	ldr	r3, [fp, #-64]
	ldr	r2, [fp, #-48]
	cmp	r2, r3
	blt	.L11
	ldr	r0, .L18+60
	bl	printf
	ldr	r3, .L18+64
	str	r3, [sp, #16]
	ldr	r3, [fp, #-36]
	str	r3, [sp, #12]
	ldr	r3, .L18+68
	str	r3, [sp, #8]
	ldr	r3, [fp, #-40]
	str	r3, [sp, #4]
	ldr	r3, .L18+72
	str	r3, [sp]
	ldr	r3, [fp, #-52]
	ldr	r2, .L18+76
	ldr	r1, [fp, #-56]
	ldr	r0, .L18+80
	bl	printf
	str	r0, [fp, #-32]
	ldr	r0, .L18+60
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L12
.L13:
	mov	r0, #45
	bl	putchar
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L12:
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	blt	.L13
	mov	r0, #10
	bl	putchar
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-44]
	sub	r3, fp, #28
	mov	r1, r3
	mov	r0, #0
	bl	calcPg
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L14
.L15:
	ldr	r2, [fp, #-48]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-60]
	add	r3, r3, r2
	mov	lr, r3
	ldr	r2, [fp, #-48]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-60]
	add	r3, r3, r2
	add	r1, r3, #101
	ldr	r2, [fp, #-48]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-60]
	add	r3, r3, r2
	ldr	r0, [r3, #204]
	ldr	r3, [fp, #-36]
	sub	ip, r3, #3
	ldr	r2, [fp, #-48]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-60]
	add	r3, r3, r2
	add	r3, r3, #208
	ldmia	r3, {r2-r3}
	str	r2, [sp, #16]
	str	r3, [sp, #20]
	str	ip, [sp, #12]
	str	r0, [sp, #8]
	ldr	r3, [fp, #-40]
	str	r3, [sp, #4]
	str	r1, [sp]
	ldr	r3, [fp, #-52]
	mov	r2, lr
	ldr	r1, [fp, #-56]
	ldr	r0, .L18+84
	bl	printf
	ldr	r2, [fp, #-48]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-60]
	add	r3, r3, r2
	add	r3, r3, #208
	ldmia	r3, {r2-r3}
	sub	r1, fp, #20
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	ldr	r2, [fp, #-48]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-60]
	add	r3, r3, r2
	ldr	r3, [r3, #204]
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	str	r3, [fp, #-44]
	ldr	r2, [fp, #-48]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-60]
	add	r3, r3, r2
	sub	r2, fp, #28
	mov	r1, r2
	mov	r0, r3
	bl	calcPg
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L14:
	ldr	r3, [fp, #-64]
	ldr	r2, [fp, #-48]
	cmp	r2, r3
	blt	.L15
	ldr	r1, [fp, #-64]
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	ldr	r0, .L18+88
	bl	printf
	ldr	r1, [fp, #-44]
	ldr	r0, .L18+92
	bl	printf
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	ldr	r0, .L18+96
	bl	printf
	ldr	r0, [fp, #-44]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #20
	ldmia	r1, {r0-r1}
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L18+100
	bl	printf
	ldr	r0, [fp, #-60]
	bl	free
	ldr	r0, .L18+104
	bl	puts
	mov	r3, #0
.L16:
	ldr	r2, .L18
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L17
	bl	__stack_chk_fail
.L17:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC25
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	stdin
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC14
	.word	.LC15
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.size	main, .-main
	.section	.rodata
	.align	2
.LC26:
	.ascii	"# Digite os dados para %d livros\012\000"
	.align	2
.LC27:
	.ascii	"\012# --- Livro [%d] ---\012\000"
	.align	2
.LC28:
	.ascii	"# Nome do livro:\000"
	.align	2
.LC29:
	.ascii	"\012# Nome do autor:\000"
	.align	2
.LC30:
	.ascii	"\012# Quantas p\303\241ginas:\000"
	.align	2
.LC31:
	.ascii	"\012# Valor em reais:\000"
	.align	2
.LC32:
	.ascii	"%lf\000"
	.global	__aeabi_dcmplt
	.text
	.align	2
	.global	lelivros
	.syntax unified
	.arm
	.fpu softvfp
	.type	lelivros, %function
lelivros:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r1, [fp, #-20]
	ldr	r0, .L30
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L21
.L28:
	ldr	r1, [fp, #-8]
	ldr	r0, .L30+4
	bl	printf
	ldr	r0, .L30+8
	bl	puts
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	ldr	r1, [fp, #-24]
	mov	r0, r3
	bl	lestring
	ldr	r0, .L30+12
	bl	puts
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	add	r3, r3, #101
	ldr	r1, [fp, #-24]
	mov	r0, r3
	bl	lestring
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	mvn	r2, #0
	str	r2, [r3, #204]
	b	.L22
.L24:
	ldr	r0, .L30+16
	bl	puts
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	add	r3, r3, #204
	mov	r1, r3
	ldr	r0, .L30+20
	bl	__isoc99_scanf
	mov	r3, r0
	cmp	r3, #0
	bne	.L22
	ldr	r0, .L30+24
	bl	puts
	ldr	r0, .L30+28
	bl	puts
	nop
.L23:
	ldr	r3, .L30+32
	ldr	r3, [r3]
	mov	r0, r3
	bl	fgetc
	mov	r3, r0
	cmp	r3, #10
	bne	.L23
	nop
.L22:
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	ldr	r3, [r3, #204]
	cmp	r3, #0
	blt	.L24
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r1, r3, r2
	mov	r2, #0
	ldr	r3, .L30+36
	str	r2, [r1, #208]
	str	r3, [r1, #212]
	b	.L25
.L27:
	ldr	r0, .L30+40
	bl	puts
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	add	r3, r3, #208
	mov	r1, r3
	ldr	r0, .L30+44
	bl	__isoc99_scanf
	mov	r3, r0
	cmp	r3, #0
	bne	.L25
	ldr	r0, .L30+24
	bl	puts
	ldr	r0, .L30+28
	bl	puts
	nop
.L26:
	ldr	r3, .L30+32
	ldr	r3, [r3]
	mov	r0, r3
	bl	fgetc
	mov	r3, r0
	cmp	r3, #10
	bne	.L26
	nop
.L25:
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	add	r1, r3, #208
	ldmia	r1, {r0-r1}
	mov	r2, #0
	mov	r3, #0
	bl	__aeabi_dcmplt
	mov	r3, r0
	cmp	r3, #0
	bne	.L27
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L21:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L28
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L31:
	.align	2
.L30:
	.word	.LC26
	.word	.LC27
	.word	.LC28
	.word	.LC29
	.word	.LC30
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	stdin
	.word	-1074790400
	.word	.LC31
	.word	.LC32
	.size	lelivros, .-lelivros
	.align	2
	.global	tamanho
	.syntax unified
	.arm
	.fpu softvfp
	.type	tamanho, %function
tamanho:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L33
.L34:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L33:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L34
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	tamanho, .-tamanho
	.align	2
	.global	lestring
	.syntax unified
	.arm
	.fpu softvfp
	.type	lestring, %function
lestring:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L37
.L43:
	ldr	r3, .L46
	ldr	r3, [r3]
	mov	r0, r3
	bl	fgetc
	mov	r3, r0
	strb	r3, [fp, #-9]
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	cmp	r3, #13
	bne	.L38
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	str	r3, [fp, #-8]
	b	.L39
.L38:
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L40
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L40
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	str	r3, [fp, #-8]
	b	.L39
.L40:
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	cmp	r3, #10
	beq	.L45
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r2, [fp, #-9]
	strb	r2, [r3]
.L39:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L37:
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L43
	b	.L42
.L45:
	nop
.L42:
	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}
.L47:
	.align	2
.L46:
	.word	stdin
	.size	lestring, .-lestring
	.align	2
	.global	calcPg
	.syntax unified
	.arm
	.fpu softvfp
	.type	calcPg, %function
calcPg:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #8
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L49
	ldr	r3, .L51
	mov	r2, #0
	str	r2, [r3]
	ldr	r1, .L51+4
	mov	r2, #0
	mov	r3, #0
	stm	r1, {r2-r3}
	ldr	r1, [fp, #-20]
	mov	r2, #0
	mov	r3, #0
	stm	r1, {r2-r3}
	mov	r3, #0
	b	.L50
.L49:
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #204]
	ldr	r3, .L51
	ldr	r3, [r3]
	add	r3, r2, r3
	ldr	r2, .L51
	str	r3, [r2]
	ldr	r3, [fp, #-16]
	add	r1, r3, #208
	ldmia	r1, {r0-r1}
	ldr	r3, .L51+4
	ldmia	r3, {r2-r3}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L51+4
	stm	r1, {r2-r3}
	ldr	r3, .L51+4
	ldmia	r3, {r4-r5}
	ldr	r3, .L51
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	ldr	r1, [fp, #-20]
	stm	r1, {r2-r3}
	ldr	r3, .L51
	ldr	r3, [r3]
.L50:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L52:
	.align	2
.L51:
	.word	totpg.5204
	.word	valor.5205
	.size	calcPg, .-calcPg
	.local	totpg.5204
	.comm	totpg.5204,4,4
	.local	valor.5205
	.comm	valor.5205,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
