	.file	"767043.c"
	.intel_syntax noprefix
	.text
	.globl	readline
	.type	readline, @function
readline:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -8[rbp], 0
	mov	DWORD PTR -12[rbp], 0
.L3:
	mov	eax, DWORD PTR -12[rbp]
	add	eax, 1
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	edx, eax
	mov	eax, DWORD PTR -12[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rcx
	mov	BYTE PTR [rax], dl
	mov	eax, DWORD PTR -12[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -12[rbp], edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 10
	je	.L2
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	je	.L3
.L2:
	sub	DWORD PTR -12[rbp], 1
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	readline, .-readline
	.section	.rodata
	.align 8
.LC0:
	.string	"Voce ja tem 10 livros alugados"
.LC1:
	.string	" alugado com sucesso\n"
.LC2:
	.string	"Livro ja alugado\n"
	.align 8
.LC3:
	.string	"Livro nao encontrado na biblioteca\n"
	.text
	.globl	rentBook
	.type	rentBook, @function
rentBook:
.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, 64
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR 12[rax]
	cmp	eax, 9
	jle	.L6
	lea	rdi, .LC0[rip]
	call	puts@PLT
	jmp	.L7
.L6:
	mov	DWORD PTR -36[rbp], 0
	jmp	.L8
.L12:
	mov	rax, QWORD PTR -64[rbp]
	mov	rcx, QWORD PTR [rax]
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -56[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L9
	mov	rax, QWORD PTR -64[rbp]
	mov	rcx, QWORD PTR [rax]
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	eax, DWORD PTR 12[rax]
	test	eax, eax
	jne	.L10
	mov	rax, QWORD PTR -64[rbp]
	mov	rcx, QWORD PTR [rax]
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	DWORD PTR 12[rax], 1
	mov	rax, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR 12[rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -64[rbp]
	mov	DWORD PTR 12[rax], edx
	mov	rax, QWORD PTR -64[rbp]
	mov	rcx, QWORD PTR [rax]
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	lea	rdx, [rcx+rax]
	mov	rax, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR 12[rax]
	mov	DWORD PTR 16[rdx], eax
	mov	rax, QWORD PTR -64[rbp]
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR 12[rax]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	sub	rax, 24
	add	rcx, rax
	mov	rax, QWORD PTR [rcx]
	mov	rdx, QWORD PTR 8[rcx]
	mov	QWORD PTR -32[rbp], rax
	mov	QWORD PTR -24[rbp], rdx
	mov	rax, QWORD PTR 16[rcx]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	mov	rcx, QWORD PTR [rax]
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	lea	rsi, [rcx+rax]
	mov	rax, QWORD PTR -64[rbp]
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR 12[rax]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	sub	rax, 24
	add	rcx, rax
	mov	rax, QWORD PTR [rsi]
	mov	rdx, QWORD PTR 8[rsi]
	mov	QWORD PTR [rcx], rax
	mov	QWORD PTR 8[rcx], rdx
	mov	rax, QWORD PTR 16[rsi]
	mov	QWORD PTR 16[rcx], rax
	mov	rax, QWORD PTR -64[rbp]
	mov	rcx, QWORD PTR [rax]
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rcx, rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR [rcx], rax
	mov	QWORD PTR 8[rcx], rdx
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR 16[rcx], rax
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	free@PLT
	lea	rax, .LC1[rip]
	jmp	.L11
.L10:
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	free@PLT
	lea	rax, .LC2[rip]
	jmp	.L11
.L9:
	add	DWORD PTR -36[rbp], 1
.L8:
	mov	rax, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR 8[rax]
	cmp	DWORD PTR -36[rbp], eax
	jl	.L12
.L7:
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	free@PLT
	lea	rax, .LC3[rip]
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	rentBook, .-rentBook
	.section	.rodata
.LC4:
	.string	"Voce nao tem livros alugados"
.LC5:
	.string	"Voce tem %d livros alugados\n"
.LC6:
	.string	"Livro nome: %s\n"
.LC7:
	.string	"Devolve-lo daqui %d dias\n"
	.text
	.globl	searchBooks
	.type	searchBooks, @function
searchBooks:
.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]
	mov	eax, DWORD PTR 12[rax]
	test	eax, eax
	jne	.L14
	lea	rdi, .LC4[rip]
	call	puts@PLT
	jmp	.L18
.L14:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 12[rax]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -4[rbp], 0
	jmp	.L16
.L17:
	mov	rax, QWORD PTR -24[rbp]
	mov	rcx, QWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rcx, QWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	eax, DWORD PTR 8[rax]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L16:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 12[rax]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L17
.L18:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	searchBooks, .-searchBooks
	.section	.rodata
.LC8:
	.string	" foi devolvido com sucesso\n"
.LC9:
	.string	"Voce nao possui esse livro\n"
	.text
	.globl	returnBook
	.type	returnBook, @function
returnBook:
.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	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L20
.L23:
	mov	rax, QWORD PTR -32[rbp]
	mov	rcx, QWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L21
	mov	rax, QWORD PTR -32[rbp]
	mov	rcx, QWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	eax, DWORD PTR 12[rax]
	cmp	eax, 1
	jne	.L21
	mov	rax, QWORD PTR -32[rbp]
	mov	rcx, QWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	DWORD PTR 12[rax], 0
	mov	rax, QWORD PTR -32[rbp]
	mov	rcx, QWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	DWORD PTR 16[rax], 0
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR 12[rax]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR 12[rax], edx
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
	lea	rax, .LC8[rip]
	jmp	.L22
.L21:
	add	DWORD PTR -4[rbp], 1
.L20:
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR 8[rax]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L23
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
	lea	rax, .LC9[rip]
.L22:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	returnBook, .-returnBook
	.section	.rodata
	.align 8
.LC10:
	.string	"Digite o livro que voce procura:"
	.align 8
.LC11:
	.string	"Digite o livro que deseja devolver:"
.LC12:
	.string	"Programa finalizado"
	.text
	.globl	main
	.type	main, @function
main:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 56
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	mov	esi, 24
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR -48[rbp], rax
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	readline
	mov	edx, 10
	mov	esi, 0
	mov	rdi, rax
	call	strtol@PLT
	mov	DWORD PTR -40[rbp], eax
	mov	DWORD PTR -36[rbp], 0
	mov	DWORD PTR -56[rbp], 0
	jmp	.L25
.L26:
	mov	rdx, QWORD PTR stdin[rip]
	mov	rsi, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR -56[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	sal	rax, 3
	lea	rbx, [rsi+rax]
	mov	rdi, rdx
	call	readline
	mov	QWORD PTR [rbx], rax
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	readline
	mov	edx, 10
	mov	esi, 0
	mov	rdi, rax
	call	strtol@PLT
	mov	rdx, rax
	mov	rsi, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR -56[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	sal	rax, 3
	add	rax, rsi
	mov	DWORD PTR 8[rax], edx
	mov	rcx, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR -56[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	DWORD PTR 12[rax], 0
	mov	rcx, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR -56[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	DWORD PTR 16[rax], 0
	add	DWORD PTR -56[rbp], 1
.L25:
	mov	eax, DWORD PTR -40[rbp]
	cmp	DWORD PTR -56[rbp], eax
	jl	.L26
.L35:
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	readline
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	cmp	eax, 52
	je	.L27
	cmp	eax, 52
	jg	.L35
	cmp	eax, 51
	je	.L29
	cmp	eax, 51
	jg	.L35
	cmp	eax, 49
	je	.L30
	cmp	eax, 50
	je	.L31
	jmp	.L35
.L30:
	lea	rdi, .LC10[rip]
	call	puts@PLT
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	readline
	mov	rdx, rax
	lea	rax, -48[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	rentBook
	mov	rdi, rax
	mov	eax, 0
	call	printf@PLT
	jmp	.L28
.L31:
	lea	rax, -48[rbp]
	mov	rdi, rax
	call	searchBooks
	jmp	.L28
.L29:
	lea	rdi, .LC11[rip]
	call	puts@PLT
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	readline
	mov	rdx, rax
	lea	rax, -48[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	returnBook
	mov	rdi, rax
	mov	eax, 0
	call	printf@PLT
	jmp	.L28
.L27:
	lea	rdi, .LC12[rip]
	call	puts@PLT
	mov	DWORD PTR -52[rbp], 0
	jmp	.L32
.L33:
	mov	rcx, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR -52[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	add	DWORD PTR -52[rbp], 1
.L32:
	mov	eax, DWORD PTR -40[rbp]
	cmp	DWORD PTR -52[rbp], eax
	jl	.L33
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L36
	jmp	.L37
.L28:
	jmp	.L35
.L37:
	call	__stack_chk_fail@PLT
.L36:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.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	"767043.c"
	.text
	.align	2
	.global	readline
	.syntax unified
	.arm
	.fpu softvfp
	.type	readline, %function
readline:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-8]
.L3:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, [fp, #-12]
	bl	realloc
	str	r0, [fp, #-12]
	ldr	r0, [fp, #-16]
	bl	fgetc
	mov	r1, r0
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	and	r2, r1, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r2, r3, #1
	str	r2, [fp, #-8]
	mov	r2, r3
	ldr	r3, [fp, #-12]
	add	r3, r3, r2
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	beq	.L2
	ldr	r0, [fp, #-16]
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	beq	.L3
.L2:
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-12]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	readline, .-readline
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Voce ja tem 10 livros alugados\000"
	.align	2
.LC1:
	.ascii	" alugado com sucesso\012\000"
	.align	2
.LC2:
	.ascii	"Livro ja alugado\012\000"
	.align	2
.LC3:
	.ascii	"Livro nao encontrado na biblioteca\012\000"
	.text
	.align	2
	.global	rentBook
	.syntax unified
	.arm
	.fpu softvfp
	.type	rentBook, %function
rentBook:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, [fp, #-36]
	ldr	r3, [r3, #8]
	cmp	r3, #9
	ble	.L6
	ldr	r0, .L13
	bl	puts
	b	.L7
.L6:
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L8
.L12:
	ldr	r3, [fp, #-36]
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, [fp, #-32]
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L9
	ldr	r3, [fp, #-36]
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L10
	ldr	r3, [fp, #-36]
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #4
	add	r3, r2, r3
	mov	r2, #1
	str	r2, [r3, #8]
	ldr	r3, [fp, #-36]
	ldr	r3, [r3, #8]
	add	r2, r3, #1
	ldr	r3, [fp, #-36]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-36]
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r2, [fp, #-36]
	ldr	r2, [r2, #8]
	str	r2, [r3, #12]
	ldr	r3, [fp, #-36]
	ldr	r2, [r3]
	ldr	r3, [fp, #-36]
	ldr	r3, [r3, #8]
	sub	r3, r3, #-268435455
	lsl	r3, r3, #4
	add	r3, r2, r3
	sub	ip, fp, #20
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	ldr	r3, [fp, #-36]
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #4
	add	r1, r2, r3
	ldr	r3, [fp, #-36]
	ldr	r2, [r3]
	ldr	r3, [fp, #-36]
	ldr	r3, [r3, #8]
	sub	r3, r3, #-268435455
	lsl	r3, r3, #4
	add	r3, r2, r3
	mov	ip, r3
	mov	r3, r1
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	ldr	r3, [fp, #-36]
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #4
	add	r3, r2, r3
	mov	ip, r3
	sub	r3, fp, #20
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	ldr	r0, [fp, #-32]
	bl	printf
	ldr	r0, [fp, #-32]
	bl	free
	ldr	r3, .L13+4
	b	.L11
.L10:
	ldr	r0, [fp, #-32]
	bl	free
	ldr	r3, .L13+8
	b	.L11
.L9:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L8:
	ldr	r3, [fp, #-36]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	blt	.L12
.L7:
	ldr	r0, [fp, #-32]
	bl	free
	ldr	r3, .L13+12
.L11:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	rentBook, .-rentBook
	.section	.rodata
	.align	2
.LC4:
	.ascii	"Voce nao tem livros alugados\000"
	.align	2
.LC5:
	.ascii	"Voce tem %d livros alugados\012\000"
	.align	2
.LC6:
	.ascii	"Livro nome: %s\012\000"
	.align	2
.LC7:
	.ascii	"Devolve-lo daqui %d dias\012\000"
	.text
	.align	2
	.global	searchBooks
	.syntax unified
	.arm
	.fpu softvfp
	.type	searchBooks, %function
searchBooks:
	@ 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	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L16
	ldr	r0, .L21
	bl	puts
	b	.L20
.L16:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	mov	r1, r3
	ldr	r0, .L21+4
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L18
.L19:
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L21+8
	bl	printf
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	mov	r1, r3
	ldr	r0, .L21+12
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L18:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L19
.L20:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L22:
	.align	2
.L21:
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	searchBooks, .-searchBooks
	.section	.rodata
	.align	2
.LC8:
	.ascii	" foi devolvido com sucesso\012\000"
	.align	2
.LC9:
	.ascii	"Voce nao possui esse livro\012\000"
	.text
	.align	2
	.global	returnBook
	.syntax unified
	.arm
	.fpu softvfp
	.type	returnBook, %function
returnBook:
	@ 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]
	b	.L24
.L27:
	ldr	r3, [fp, #-20]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L25
	ldr	r3, [fp, #-20]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r3, [r3, #8]
	cmp	r3, #1
	bne	.L25
	ldr	r3, [fp, #-20]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #4
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #8]
	ldr	r3, [fp, #-20]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #4
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #12]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #8]
	sub	r2, r3, #1
	ldr	r3, [fp, #-20]
	str	r2, [r3, #8]
	ldr	r0, [fp, #-16]
	bl	printf
	ldr	r0, [fp, #-16]
	bl	free
	ldr	r3, .L28
	b	.L26
.L25:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L24:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L27
	ldr	r0, [fp, #-16]
	bl	free
	ldr	r3, .L28+4
.L26:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L29:
	.align	2
.L28:
	.word	.LC8
	.word	.LC9
	.size	returnBook, .-returnBook
	.section	.rodata
	.align	2
.LC10:
	.ascii	"Digite o livro que voce procura:\000"
	.align	2
.LC11:
	.ascii	"Digite o livro que deseja devolver:\000"
	.align	2
.LC12:
	.ascii	"Programa finalizado\000"
	.align	2
.LC13:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #28
	ldr	r3, .L45
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #-24]
	mov	r1, #16
	mov	r0, r3
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-28]
	ldr	r3, .L45+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	readline
	mov	r3, r0
	mov	r2, #10
	mov	r1, #0
	mov	r0, r3
	bl	strtol
	mov	r3, r0
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L31
.L32:
	ldr	r3, .L45+4
	ldr	r1, [r3]
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #4
	add	r4, r2, r3
	mov	r0, r1
	bl	readline
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, .L45+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	readline
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #4
	add	r4, r2, r3
	mov	r2, #10
	mov	r1, #0
	bl	strtol
	mov	r3, r0
	str	r3, [r4, #4]
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #4
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #8]
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #4
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #12]
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L31:
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-36]
	cmp	r2, r3
	blt	.L32
.L42:
	ldr	r3, .L45+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	readline
	mov	r3, r0
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #49
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L42
.L35:
	.word	.L38
	.word	.L37
	.word	.L36
	.word	.L34
.L38:
	ldr	r0, .L45+8
	bl	puts
	ldr	r3, .L45+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	readline
	mov	r2, r0
	sub	r3, fp, #28
	mov	r1, r3
	mov	r0, r2
	bl	rentBook
	mov	r3, r0
	mov	r0, r3
	bl	printf
	b	.L33
.L37:
	sub	r3, fp, #28
	mov	r0, r3
	bl	searchBooks
	b	.L33
.L36:
	ldr	r0, .L45+12
	bl	puts
	ldr	r3, .L45+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	readline
	mov	r2, r0
	sub	r3, fp, #28
	mov	r1, r3
	mov	r0, r2
	bl	returnBook
	mov	r3, r0
	mov	r0, r3
	bl	printf
	b	.L33
.L34:
	ldr	r0, .L45+16
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L39
.L40:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L39:
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	blt	.L40
	ldr	r3, [fp, #-28]
	mov	r0, r3
	bl	free
	mov	r3, #0
	ldr	r2, .L45
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L43
	b	.L44
.L33:
	b	.L42
.L44:
	bl	__stack_chk_fail
.L43:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L46:
	.align	2
.L45:
	.word	.LC13
	.word	stdin
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
