	.file	"94735.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"book.dat"
.LC1:
	.string	"r+b"
.LC2:
	.string	"Can't open file \"book.dat\"\n."
.LC3:
	.string	"a+b"
	.align 8
.LC4:
	.string	"Current content of \"book.data\":"
.LC5:
	.string	"%d) %s by %s: $%.2f.\n"
	.align 8
.LC6:
	.string	"%s by %s: $%.2f.\nDelete or change this book? \"yes\" to delete \"change\" to change (empty line to keep current book): "
.LC7:
	.string	"change"
.LC8:
	.string	"Enter the title."
.LC9:
	.string	"Enter the author."
.LC10:
	.string	"Now enter the price."
.LC11:
	.string	"%f"
.LC12:
	.string	"The \"book.dat\" file is full.\n"
.LC13:
	.string	"w+b"
.LC14:
	.string	"Please add new book titles."
	.align 8
.LC15:
	.string	"Press [enter] at the start of a line to stop."
.LC16:
	.string	"Now enter the author."
.LC17:
	.string	"Now enter the value."
.LC18:
	.string	"Enter the text title."
	.align 8
.LC19:
	.string	"Here is the list of your books:"
.LC20:
	.string	"No books? Bad."
.LC21:
	.string	"Buy."
	.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
	push	rbx
	sub	rsp, 3432
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -3432[rbp], 0
	mov	DWORD PTR -3428[rbp], 0
	mov	DWORD PTR -3424[rbp], 0
	mov	DWORD PTR -3420[rbp], 84
	mov	esi, 0
	lea	rdi, .LC0[rip]
	call	access@PLT
	test	eax, eax
	jne	.L2
	lea	rsi, .LC1[rip]
	lea	rdi, .LC0[rip]
	call	fopen@PLT
	mov	QWORD PTR -3416[rbp], rax
	cmp	QWORD PTR -3416[rbp], 0
	jne	.L5
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 28
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	lea	rsi, .LC3[rip]
	lea	rdi, .LC0[rip]
	call	fopen@PLT
	mov	QWORD PTR -3416[rbp], rax
	cmp	QWORD PTR -3416[rbp], 0
	jne	.L4
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 28
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L4:
	mov	rax, QWORD PTR -3416[rbp]
	mov	rdi, rax
	call	rewind@PLT
	jmp	.L5
.L8:
	cmp	DWORD PTR -3432[rbp], 0
	jne	.L6
	lea	rdi, .LC4[rip]
	call	puts@PLT
.L6:
	mov	eax, DWORD PTR -3432[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	lea	rax, -16[rax]
	add	rax, rbp
	sub	rax, 3312
	movss	xmm0, DWORD PTR [rax]
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, xmm0
	movq	rcx, xmm1
	lea	rsi, -3408[rbp]
	mov	eax, DWORD PTR -3432[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	add	rax, 32
	add	rax, rsi
	lea	rsi, 8[rax]
	lea	rdi, -3408[rbp]
	mov	eax, DWORD PTR -3432[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	lea	rdx, [rdi+rax]
	mov	eax, DWORD PTR -3432[rbp]
	add	eax, 1
	movq	xmm0, rcx
	mov	rcx, rsi
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 1
	call	printf@PLT
	add	DWORD PTR -3432[rbp], 1
.L5:
	cmp	DWORD PTR -3432[rbp], 19
	jg	.L7
	mov	eax, DWORD PTR -3420[rbp]
	movsx	rsi, eax
	lea	rcx, -3408[rbp]
	mov	eax, DWORD PTR -3432[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	lea	rdi, [rcx+rax]
	mov	rax, QWORD PTR -3416[rbp]
	mov	rcx, rax
	mov	edx, 1
	call	fread@PLT
	cmp	rax, 1
	je	.L8
.L7:
	mov	DWORD PTR -3432[rbp], 0
	mov	rax, QWORD PTR -3416[rbp]
	mov	rdi, rax
	call	rewind@PLT
	jmp	.L9
.L13:
	mov	eax, DWORD PTR -3432[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	lea	rax, -16[rax]
	add	rax, rbp
	sub	rax, 3312
	movss	xmm0, DWORD PTR [rax]
	pxor	xmm2, xmm2
	cvtss2sd	xmm2, xmm0
	movq	rcx, xmm2
	lea	rsi, -3408[rbp]
	mov	eax, DWORD PTR -3432[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	add	rax, 32
	add	rax, rsi
	lea	rsi, 8[rax]
	lea	rdi, -3408[rbp]
	mov	eax, DWORD PTR -3432[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	add	rax, rdi
	movq	xmm0, rcx
	mov	rdx, rsi
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 1
	call	printf@PLT
	lea	rax, -34[rbp]
	mov	esi, 10
	mov	rdi, rax
	call	s_gets
	lea	rax, -34[rbp]
	mov	rdi, rax
	call	toLower
	movzx	eax, BYTE PTR -34[rbp]
	test	al, al
	jne	.L10
	mov	eax, DWORD PTR -3428[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -3428[rbp], edx
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	lea	rax, -16[rax]
	add	rax, rbp
	lea	rdx, -1712[rax]
	mov	eax, DWORD PTR -3432[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 2
	add	rax, rcx
	sal	rax, 2
	add	rax, rcx
	sal	rax, 2
	lea	rax, -16[rax]
	add	rax, rbp
	sub	rax, 3392
	mov	rcx, QWORD PTR [rax]
	mov	rbx, QWORD PTR 8[rax]
	mov	QWORD PTR [rdx], rcx
	mov	QWORD PTR 8[rdx], rbx
	mov	rcx, QWORD PTR 16[rax]
	mov	rbx, QWORD PTR 24[rax]
	mov	QWORD PTR 16[rdx], rcx
	mov	QWORD PTR 24[rdx], rbx
	mov	rcx, QWORD PTR 32[rax]
	mov	rbx, QWORD PTR 40[rax]
	mov	QWORD PTR 32[rdx], rcx
	mov	QWORD PTR 40[rdx], rbx
	mov	rcx, QWORD PTR 48[rax]
	mov	rbx, QWORD PTR 56[rax]
	mov	QWORD PTR 48[rdx], rcx
	mov	QWORD PTR 56[rdx], rbx
	mov	rcx, QWORD PTR 64[rax]
	mov	rbx, QWORD PTR 72[rax]
	mov	QWORD PTR 64[rdx], rcx
	mov	QWORD PTR 72[rdx], rbx
	mov	eax, DWORD PTR 80[rax]
	mov	DWORD PTR 80[rdx], eax
	jmp	.L9
.L10:
	lea	rax, -34[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L11
	lea	rdi, .LC8[rip]
	call	puts@PLT
	lea	rcx, -1728[rbp]
	mov	eax, DWORD PTR -3428[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	mov	esi, 40
	mov	rdi, rax
	call	s_gets
	lea	rdi, .LC9[rip]
	call	puts@PLT
	lea	rcx, -1728[rbp]
	mov	eax, DWORD PTR -3428[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	add	rax, 32
	add	rax, rcx
	add	rax, 8
	mov	esi, 40
	mov	rdi, rax
	call	s_gets
	lea	rdi, .LC10[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -3428[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -3428[rbp], edx
	lea	rcx, -1728[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	add	rax, 80
	add	rax, rcx
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	call	eat_line
	mov	eax, DWORD PTR -3428[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -3428[rbp], edx
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	lea	rax, -16[rax]
	add	rax, rbp
	lea	rdx, -1712[rax]
	mov	eax, DWORD PTR -3432[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 2
	add	rax, rcx
	sal	rax, 2
	add	rax, rcx
	sal	rax, 2
	lea	rax, -16[rax]
	add	rax, rbp
	sub	rax, 3392
	mov	rcx, QWORD PTR [rax]
	mov	rbx, QWORD PTR 8[rax]
	mov	QWORD PTR [rdx], rcx
	mov	QWORD PTR 8[rdx], rbx
	mov	rcx, QWORD PTR 16[rax]
	mov	rbx, QWORD PTR 24[rax]
	mov	QWORD PTR 16[rdx], rcx
	mov	QWORD PTR 24[rdx], rbx
	mov	rcx, QWORD PTR 32[rax]
	mov	rbx, QWORD PTR 40[rax]
	mov	QWORD PTR 32[rdx], rcx
	mov	QWORD PTR 40[rdx], rbx
	mov	rcx, QWORD PTR 48[rax]
	mov	rbx, QWORD PTR 56[rax]
	mov	QWORD PTR 48[rdx], rcx
	mov	QWORD PTR 56[rdx], rbx
	mov	rcx, QWORD PTR 64[rax]
	mov	rbx, QWORD PTR 72[rax]
	mov	QWORD PTR 64[rdx], rcx
	mov	QWORD PTR 72[rdx], rbx
	mov	eax, DWORD PTR 80[rax]
	mov	DWORD PTR 80[rdx], eax
.L11:
	add	DWORD PTR -3432[rbp], 1
.L9:
	cmp	DWORD PTR -3432[rbp], 19
	jg	.L12
	mov	eax, DWORD PTR -3420[rbp]
	movsx	rsi, eax
	lea	rcx, -3408[rbp]
	mov	eax, DWORD PTR -3432[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	lea	rdi, [rcx+rax]
	mov	rax, QWORD PTR -3416[rbp]
	mov	rcx, rax
	mov	edx, 1
	call	fread@PLT
	cmp	rax, 1
	je	.L13
.L12:
	mov	rax, QWORD PTR -3416[rbp]
	mov	rdi, rax
	call	fclose@PLT
	cmp	DWORD PTR -3428[rbp], 20
	jne	.L14
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 29
	mov	esi, 1
	lea	rdi, .LC12[rip]
	call	fwrite@PLT
	mov	edi, 2
	call	exit@PLT
.L14:
	lea	rsi, .LC13[rip]
	lea	rdi, .LC0[rip]
	call	fopen@PLT
	mov	QWORD PTR -3416[rbp], rax
	cmp	QWORD PTR -3416[rbp], 0
	jne	.L15
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 28
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L15:
	lea	rdi, .LC14[rip]
	call	puts@PLT
	lea	rdi, .LC15[rip]
	call	puts@PLT
	jmp	.L16
.L18:
	lea	rdi, .LC16[rip]
	call	puts@PLT
	lea	rcx, -1728[rbp]
	mov	eax, DWORD PTR -3428[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	add	rax, 32
	add	rax, rcx
	add	rax, 8
	mov	esi, 40
	mov	rdi, rax
	call	s_gets
	lea	rdi, .LC17[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -3428[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -3428[rbp], edx
	lea	rcx, -1728[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	add	rax, 80
	add	rax, rcx
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	call	eat_line
	cmp	DWORD PTR -3428[rbp], 19
	jg	.L16
	lea	rdi, .LC18[rip]
	call	puts@PLT
.L16:
	cmp	DWORD PTR -3428[rbp], 19
	jg	.L17
	lea	rcx, -1728[rbp]
	mov	eax, DWORD PTR -3428[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	mov	esi, 40
	mov	rdi, rax
	call	s_gets
	test	rax, rax
	je	.L17
	mov	eax, DWORD PTR -3428[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	lea	rax, -16[rax]
	add	rax, rbp
	sub	rax, 1712
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L18
.L17:
	cmp	DWORD PTR -3428[rbp], 0
	jle	.L19
	lea	rdi, .LC19[rip]
	call	puts@PLT
	mov	DWORD PTR -3424[rbp], 0
	jmp	.L20
.L21:
	mov	eax, DWORD PTR -3424[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	lea	rax, -16[rax]
	add	rax, rbp
	sub	rax, 1632
	movss	xmm0, DWORD PTR [rax]
	pxor	xmm3, xmm3
	cvtss2sd	xmm3, xmm0
	movq	rcx, xmm3
	lea	rsi, -1728[rbp]
	mov	eax, DWORD PTR -3424[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	add	rax, 32
	add	rax, rsi
	lea	rsi, 8[rax]
	lea	rdi, -1728[rbp]
	mov	eax, DWORD PTR -3424[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	lea	rdx, [rdi+rax]
	mov	eax, DWORD PTR -3424[rbp]
	add	eax, 1
	movq	xmm0, rcx
	mov	rcx, rsi
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 1
	call	printf@PLT
	add	DWORD PTR -3424[rbp], 1
.L20:
	mov	eax, DWORD PTR -3424[rbp]
	cmp	eax, DWORD PTR -3428[rbp]
	jl	.L21
	mov	eax, DWORD PTR -3428[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -3420[rbp]
	movsx	rsi, eax
	mov	rcx, QWORD PTR -3416[rbp]
	lea	rax, -1728[rbp]
	mov	rdi, rax
	call	fwrite@PLT
	jmp	.L22
.L19:
	lea	rdi, .LC20[rip]
	call	puts@PLT
.L22:
	mov	rax, QWORD PTR -3416[rbp]
	mov	rdi, rax
	call	fclose@PLT
	lea	rdi, .LC21[rip]
	call	puts@PLT
	mov	eax, 0
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L24
	call	__stack_chk_fail@PLT
.L24:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	eat_line
	.type	eat_line, @function
eat_line:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	jmp	.L26
.L27:
	nop
.L26:
	call	getchar@PLT
	cmp	eax, 10
	jne	.L27
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	eat_line, .-eat_line
	.globl	toLower
	.type	toLower, @function
toLower:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	jmp	.L29
.L30:
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	tolower@PLT
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR [rax], dl
	add	QWORD PTR -8[rbp], 1
.L29:
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L30
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	toLower, .-toLower
	.globl	s_gets
	.type	s_gets, @function
s_gets:
.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	rdx, QWORD PTR stdin[rip]
	mov	ecx, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	fgets@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	je	.L32
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 10
	mov	rdi, rax
	call	strchr@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L34
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR [rax], 0
	jmp	.L32
.L35:
	nop
.L34:
	call	getchar@PLT
	cmp	eax, 10
	jne	.L35
.L32:
	mov	rax, QWORD PTR -16[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	s_gets, .-s_gets
	.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	"94735.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"book.dat\000"
	.align	2
.LC1:
	.ascii	"r+b\000"
	.align	2
.LC2:
	.ascii	"Can't open file \"book.dat\"\012.\000"
	.align	2
.LC3:
	.ascii	"a+b\000"
	.align	2
.LC4:
	.ascii	"Current content of \"book.data\":\000"
	.global	__aeabi_f2d
	.align	2
.LC5:
	.ascii	"%d) %s by %s: $%.2f.\012\000"
	.align	2
.LC6:
	.ascii	"%s by %s: $%.2f.\012Delete or change this book? \"y"
	.ascii	"es\" to delete \"change\" to change (empty line to "
	.ascii	"keep current book): \000"
	.align	2
.LC7:
	.ascii	"change\000"
	.align	2
.LC8:
	.ascii	"Enter the title.\000"
	.align	2
.LC9:
	.ascii	"Enter the author.\000"
	.align	2
.LC10:
	.ascii	"Now enter the price.\000"
	.align	2
.LC11:
	.ascii	"%f\000"
	.align	2
.LC12:
	.ascii	"The \"book.dat\" file is full.\012\000"
	.align	2
.LC13:
	.ascii	"w+b\000"
	.align	2
.LC14:
	.ascii	"Please add new book titles.\000"
	.align	2
.LC15:
	.ascii	"Press [enter] at the start of a line to stop.\000"
	.align	2
.LC16:
	.ascii	"Now enter the author.\000"
	.align	2
.LC17:
	.ascii	"Now enter the value.\000"
	.align	2
.LC18:
	.ascii	"Enter the text title.\000"
	.align	2
.LC19:
	.ascii	"Here is the list of your books:\000"
	.align	2
.LC20:
	.ascii	"No books? Bad.\000"
	.align	2
.LC21:
	.ascii	"Buy.\000"
	.align	2
.LC22:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 3400
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #3408
	sub	sp, sp, #4
	ldr	r3, .L25
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-3416]
	mov	r3, #0
	str	r3, [fp, #-3412]
	mov	r3, #0
	str	r3, [fp, #-3408]
	mov	r3, #84
	str	r3, [fp, #-3400]
	mov	r1, #0
	ldr	r0, .L25+4
	bl	access
	mov	r3, r0
	cmp	r3, #0
	bne	.L2
	ldr	r1, .L25+8
	ldr	r0, .L25+4
	bl	fopen
	str	r0, [fp, #-3404]
	ldr	r3, [fp, #-3404]
	cmp	r3, #0
	bne	.L5
	ldr	r3, .L25+12
	ldr	r3, [r3]
	mov	r2, #28
	mov	r1, #1
	ldr	r0, .L25+16
	bl	fwrite
	mov	r0, #1
	bl	exit
.L2:
	ldr	r1, .L25+20
	ldr	r0, .L25+4
	bl	fopen
	str	r0, [fp, #-3404]
	ldr	r3, [fp, #-3404]
	cmp	r3, #0
	bne	.L4
	ldr	r3, .L25+12
	ldr	r3, [r3]
	mov	r2, #28
	mov	r1, #1
	ldr	r0, .L25+16
	bl	fwrite
	mov	r0, #1
	bl	exit
.L4:
	ldr	r0, [fp, #-3404]
	bl	rewind
	b	.L5
.L8:
	ldr	r3, [fp, #-3416]
	cmp	r3, #0
	bne	.L6
	ldr	r0, .L25+24
	bl	puts
.L6:
	ldr	r3, [fp, #-3416]
	add	r4, r3, #1
	sub	r1, fp, #3392
	sub	r1, r1, #4
	ldr	r2, [fp, #-3416]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	lsl	r3, r2, #2
	mov	r2, r3
	add	r5, r1, r2
	sub	r1, fp, #3392
	sub	r1, r1, #4
	ldr	r2, [fp, #-3416]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	lsl	r3, r2, #2
	mov	r2, r3
	add	r3, r2, #40
	add	r6, r1, r3
	ldr	r2, [fp, #-3416]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	lsl	r3, r2, #2
	mov	r2, r3
	sub	r3, fp, #20
	add	r3, r3, r2
	sub	r3, r3, #3296
	ldr	r3, [r3]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	stm	sp, {r2-r3}
	mov	r3, r6
	mov	r2, r5
	mov	r1, r4
	ldr	r0, .L25+28
	bl	printf
	ldr	r3, [fp, #-3416]
	add	r3, r3, #1
	str	r3, [fp, #-3416]
.L5:
	ldr	r3, [fp, #-3416]
	cmp	r3, #19
	bgt	.L7
	sub	r1, fp, #3392
	sub	r1, r1, #4
	ldr	r2, [fp, #-3416]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	lsl	r3, r2, #2
	mov	r2, r3
	add	r0, r1, r2
	ldr	r1, [fp, #-3400]
	ldr	r3, [fp, #-3404]
	mov	r2, #1
	bl	fread
	mov	r3, r0
	cmp	r3, #1
	beq	.L8
.L7:
	mov	r3, #0
	str	r3, [fp, #-3416]
	ldr	r0, [fp, #-3404]
	bl	rewind
	b	.L9
.L13:
	sub	r1, fp, #3392
	sub	r1, r1, #4
	ldr	r2, [fp, #-3416]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	lsl	r3, r2, #2
	mov	r2, r3
	add	r4, r1, r2
	sub	r1, fp, #3392
	sub	r1, r1, #4
	ldr	r2, [fp, #-3416]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	lsl	r3, r2, #2
	mov	r2, r3
	add	r3, r2, #40
	add	r5, r1, r3
	ldr	r2, [fp, #-3416]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	lsl	r3, r2, #2
	mov	r2, r3
	sub	r3, fp, #20
	add	r3, r3, r2
	sub	r3, r3, #3296
	ldr	r3, [r3]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	stm	sp, {r2-r3}
	mov	r2, r5
	mov	r1, r4
	ldr	r0, .L25+32
	bl	printf
	sub	r3, fp, #36
	mov	r1, #10
	mov	r0, r3
	bl	s_gets
	sub	r3, fp, #36
	mov	r0, r3
	bl	toLower
	ldrb	r3, [fp, #-36]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L10
	ldr	r2, [fp, #-3412]
	add	r3, r2, #1
	str	r3, [fp, #-3412]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	lsl	r3, r2, #2
	mov	r2, r3
	sub	r3, fp, #20
	add	r3, r3, r2
	sub	r1, r3, #1696
	ldr	r2, [fp, #-3416]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	lsl	r3, r2, #2
	mov	r2, r3
	sub	r3, fp, #20
	add	r3, r3, r2
	sub	r3, r3, #3376
	mov	r0, r1
	mov	r1, r3
	mov	r3, #84
	mov	r2, r3
	bl	memcpy
	b	.L9
.L10:
	sub	r3, fp, #36
	ldr	r1, .L25+36
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L11
	ldr	r0, .L25+40
	bl	puts
	sub	r1, fp, #1712
	sub	r1, r1, #4
	ldr	r2, [fp, #-3412]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	lsl	r3, r2, #2
	mov	r2, r3
	add	r3, r1, r2
	mov	r1, #40
	mov	r0, r3
	bl	s_gets
	ldr	r0, .L25+44
	bl	puts
	sub	r1, fp, #1712
	sub	r1, r1, #4
	ldr	r2, [fp, #-3412]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	lsl	r3, r2, #2
	mov	r2, r3
	add	r3, r2, #40
	add	r3, r1, r3
	mov	r1, #40
	mov	r0, r3
	bl	s_gets
	ldr	r0, .L25+48
	bl	puts
	ldr	r2, [fp, #-3412]
	add	r3, r2, #1
	str	r3, [fp, #-3412]
	sub	r1, fp, #1712
	sub	r1, r1, #4
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	lsl	r3, r2, #2
	mov	r2, r3
	add	r3, r2, #80
	add	r3, r1, r3
	mov	r1, r3
	ldr	r0, .L25+52
	bl	__isoc99_scanf
	bl	eat_line
	ldr	r2, [fp, #-3412]
	add	r3, r2, #1
	str	r3, [fp, #-3412]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	lsl	r3, r2, #2
	mov	r2, r3
	sub	r3, fp, #20
	add	r3, r3, r2
	sub	r1, r3, #1696
	ldr	r2, [fp, #-3416]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	lsl	r3, r2, #2
	mov	r2, r3
	sub	r3, fp, #20
	add	r3, r3, r2
	sub	r3, r3, #3376
	mov	r0, r1
	mov	r1, r3
	mov	r3, #84
	mov	r2, r3
	bl	memcpy
.L11:
	ldr	r3, [fp, #-3416]
	add	r3, r3, #1
	str	r3, [fp, #-3416]
.L9:
	ldr	r3, [fp, #-3416]
	cmp	r3, #19
	bgt	.L12
	sub	r1, fp, #3392
	sub	r1, r1, #4
	ldr	r2, [fp, #-3416]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	lsl	r3, r2, #2
	mov	r2, r3
	add	r0, r1, r2
	ldr	r1, [fp, #-3400]
	ldr	r3, [fp, #-3404]
	mov	r2, #1
	bl	fread
	mov	r3, r0
	cmp	r3, #1
	beq	.L13
.L12:
	ldr	r0, [fp, #-3404]
	bl	fclose
	ldr	r3, [fp, #-3412]
	cmp	r3, #20
	bne	.L14
	ldr	r3, .L25+12
	ldr	r3, [r3]
	mov	r2, #29
	mov	r1, #1
	ldr	r0, .L25+56
	bl	fwrite
	mov	r0, #2
	bl	exit
.L14:
	ldr	r1, .L25+60
	ldr	r0, .L25+4
	bl	fopen
	str	r0, [fp, #-3404]
	ldr	r3, [fp, #-3404]
	cmp	r3, #0
	bne	.L15
	ldr	r3, .L25+12
	ldr	r3, [r3]
	mov	r2, #28
	mov	r1, #1
	ldr	r0, .L25+16
	bl	fwrite
	mov	r0, #1
	bl	exit
.L15:
	ldr	r0, .L25+64
	bl	puts
	ldr	r0, .L25+68
	bl	puts
	b	.L16
.L18:
	ldr	r0, .L25+72
	bl	puts
	sub	r1, fp, #1712
	sub	r1, r1, #4
	ldr	r2, [fp, #-3412]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	lsl	r3, r2, #2
	mov	r2, r3
	add	r3, r2, #40
	add	r3, r1, r3
	mov	r1, #40
	mov	r0, r3
	bl	s_gets
	ldr	r0, .L25+76
	bl	puts
	ldr	r2, [fp, #-3412]
	add	r3, r2, #1
	str	r3, [fp, #-3412]
	sub	r1, fp, #1712
	sub	r1, r1, #4
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	lsl	r3, r2, #2
	mov	r2, r3
	add	r3, r2, #80
	add	r3, r1, r3
	mov	r1, r3
	ldr	r0, .L25+52
	bl	__isoc99_scanf
	bl	eat_line
	ldr	r3, [fp, #-3412]
	cmp	r3, #19
	bgt	.L16
	ldr	r0, .L25+80
	bl	puts
.L16:
	ldr	r3, [fp, #-3412]
	cmp	r3, #19
	bgt	.L17
	sub	r1, fp, #1712
	sub	r1, r1, #4
	ldr	r2, [fp, #-3412]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	lsl	r3, r2, #2
	mov	r2, r3
	add	r3, r1, r2
	mov	r1, #40
	mov	r0, r3
	bl	s_gets
	mov	r3, r0
	cmp	r3, #0
	beq	.L17
	ldr	r2, [fp, #-3412]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	lsl	r3, r2, #2
	mov	r2, r3
	sub	r3, fp, #20
	add	r3, r3, r2
	sub	r3, r3, #1696
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L18
.L17:
	ldr	r3, [fp, #-3412]
	cmp	r3, #0
	ble	.L19
	ldr	r0, .L25+84
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-3408]
	b	.L20
.L21:
	ldr	r3, [fp, #-3408]
	add	r4, r3, #1
	sub	r1, fp, #1712
	sub	r1, r1, #4
	ldr	r2, [fp, #-3408]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	lsl	r3, r2, #2
	mov	r2, r3
	add	r5, r1, r2
	sub	r1, fp, #1712
	sub	r1, r1, #4
	ldr	r2, [fp, #-3408]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	lsl	r3, r2, #2
	mov	r2, r3
	add	r3, r2, #40
	add	r6, r1, r3
	ldr	r2, [fp, #-3408]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	lsl	r3, r2, #2
	mov	r2, r3
	sub	r3, fp, #20
	add	r3, r3, r2
	sub	r3, r3, #1616
	ldr	r3, [r3]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	stm	sp, {r2-r3}
	mov	r3, r6
	mov	r2, r5
	mov	r1, r4
	ldr	r0, .L25+28
	bl	printf
	ldr	r3, [fp, #-3408]
	add	r3, r3, #1
	str	r3, [fp, #-3408]
.L20:
	ldr	r2, [fp, #-3408]
	ldr	r3, [fp, #-3412]
	cmp	r2, r3
	blt	.L21
	ldr	r1, [fp, #-3400]
	ldr	r2, [fp, #-3412]
	sub	r0, fp, #1712
	sub	r0, r0, #4
	ldr	r3, [fp, #-3404]
	bl	fwrite
	b	.L22
.L19:
	ldr	r0, .L25+88
	bl	puts
.L22:
	ldr	r0, [fp, #-3404]
	bl	fclose
	ldr	r0, .L25+92
	bl	puts
	mov	r3, #0
	ldr	r2, .L25
	ldr	r1, [r2]
	ldr	r2, [fp, #-24]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L24
	bl	__stack_chk_fail
.L24:
	mov	r0, r3
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, fp, pc}
.L26:
	.align	2
.L25:
	.word	.LC22
	.word	.LC0
	.word	.LC1
	.word	stderr
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.size	main, .-main
	.align	2
	.global	eat_line
	.syntax unified
	.arm
	.fpu softvfp
	.type	eat_line, %function
eat_line:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	b	.L28
.L29:
	nop
.L28:
	bl	getchar
	mov	r3, r0
	cmp	r3, #10
	bne	.L29
	nop
	nop
	pop	{fp, pc}
	.size	eat_line, .-eat_line
	.align	2
	.global	toLower
	.syntax unified
	.arm
	.fpu softvfp
	.type	toLower, %function
toLower:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	b	.L31
.L32:
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	tolower
	mov	r3, r0
	and	r2, r3, #255
	ldr	r3, [fp, #-8]
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L31:
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L32
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	toLower, .-toLower
	.align	2
	.global	s_gets
	.syntax unified
	.arm
	.fpu softvfp
	.type	s_gets, %function
s_gets:
	@ 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]
	ldr	r3, .L39
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	fgets
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L34
	mov	r1, #10
	ldr	r0, [fp, #-16]
	bl	strchr
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L36
	ldr	r3, [fp, #-8]
	mov	r2, #0
	strb	r2, [r3]
	b	.L34
.L37:
	nop
.L36:
	bl	getchar
	mov	r3, r0
	cmp	r3, #10
	bne	.L37
.L34:
	ldr	r3, [fp, #-12]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L40:
	.align	2
.L39:
	.word	stdin
	.size	s_gets, .-s_gets
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
