	.file	"830193.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"a+b"
.LC1:
	.string	"book.dat"
.LC2:
	.string	"Can't open book.dat file\n"
.LC3:
	.string	"Current contents of book.dat:"
.LC4:
	.string	"%s by %s: $%.2f\n"
.LC5:
	.string	"The book.dat file is full."
.LC6:
	.string	"Please add new book titles."
	.align 8
.LC7:
	.string	"Press [enter] at the start of a line to stop."
.LC8:
	.string	"Now enter the author."
.LC9:
	.string	"Now enter the value."
.LC10:
	.string	"%f"
.LC11:
	.string	"Enter the next title."
	.align 8
.LC12:
	.string	"Here is the list of your books:"
.LC13:
	.string	"No bookds? Too bad.\n"
.LC14:
	.string	"Bye.\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, 880
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -872[rbp], 0
	mov	DWORD PTR -864[rbp], 84
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	fopen@PLT
	mov	QWORD PTR -856[rbp], rax
	cmp	QWORD PTR -856[rbp], 0
	jne	.L2
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 25
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	rax, QWORD PTR -856[rbp]
	mov	rdi, rax
	call	rewind@PLT
	jmp	.L3
.L6:
	cmp	DWORD PTR -872[rbp], 0
	jne	.L4
	lea	rdi, .LC3[rip]
	call	puts@PLT
.L4:
	mov	eax, DWORD PTR -872[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	add	rax, rbp
	sub	rax, 768
	movss	xmm0, DWORD PTR [rax]
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, xmm0
	movq	rcx, xmm1
	lea	rsi, -848[rbp]
	mov	eax, DWORD PTR -872[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, -848[rbp]
	mov	eax, DWORD PTR -872[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, .LC4[rip]
	mov	eax, 1
	call	printf@PLT
	add	DWORD PTR -872[rbp], 1
.L3:
	cmp	DWORD PTR -872[rbp], 9
	jg	.L5
	mov	eax, DWORD PTR -864[rbp]
	movsx	rsi, eax
	lea	rcx, -848[rbp]
	mov	eax, DWORD PTR -872[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 -856[rbp]
	mov	rcx, rax
	mov	edx, 1
	call	fread@PLT
	cmp	rax, 1
	je	.L6
.L5:
	mov	eax, DWORD PTR -872[rbp]
	mov	DWORD PTR -860[rbp], eax
	cmp	DWORD PTR -872[rbp], 10
	jne	.L7
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 26
	mov	esi, 1
	lea	rdi, .LC5[rip]
	call	fwrite@PLT
	mov	edi, 2
	call	exit@PLT
.L7:
	lea	rdi, .LC6[rip]
	call	puts@PLT
	lea	rdi, .LC7[rip]
	call	puts@PLT
	jmp	.L8
.L12:
	lea	rdi, .LC8[rip]
	call	puts@PLT
	lea	rcx, -848[rbp]
	mov	eax, DWORD PTR -872[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, .LC9[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -872[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -872[rbp], edx
	lea	rcx, -848[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, .LC10[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	jmp	.L9
.L10:
	nop
.L9:
	call	getchar@PLT
	cmp	eax, 10
	jne	.L10
	cmp	DWORD PTR -872[rbp], 9
	jg	.L8
	lea	rdi, .LC11[rip]
	call	puts@PLT
.L8:
	cmp	DWORD PTR -872[rbp], 9
	jg	.L11
	lea	rcx, -848[rbp]
	mov	eax, DWORD PTR -872[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	.L11
	mov	eax, DWORD PTR -872[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	add	rax, rbp
	sub	rax, 848
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L12
.L11:
	cmp	DWORD PTR -872[rbp], 0
	jle	.L13
	lea	rdi, .LC12[rip]
	call	puts@PLT
	mov	DWORD PTR -868[rbp], 0
	jmp	.L14
.L15:
	mov	eax, DWORD PTR -868[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	add	rax, rbp
	sub	rax, 768
	movss	xmm0, DWORD PTR [rax]
	pxor	xmm2, xmm2
	cvtss2sd	xmm2, xmm0
	movq	rcx, xmm2
	lea	rsi, -848[rbp]
	mov	eax, DWORD PTR -868[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, -848[rbp]
	mov	eax, DWORD PTR -868[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, .LC4[rip]
	mov	eax, 1
	call	printf@PLT
	add	DWORD PTR -868[rbp], 1
.L14:
	mov	eax, DWORD PTR -868[rbp]
	cmp	eax, DWORD PTR -872[rbp]
	jl	.L15
	mov	eax, DWORD PTR -872[rbp]
	sub	eax, DWORD PTR -860[rbp]
	movsx	rdi, eax
	mov	eax, DWORD PTR -864[rbp]
	movsx	rsi, eax
	lea	rcx, -848[rbp]
	mov	eax, DWORD PTR -860[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	lea	r8, [rcx+rax]
	mov	rax, QWORD PTR -856[rbp]
	mov	rcx, rax
	mov	rdx, rdi
	mov	rdi, r8
	call	fwrite@PLT
	jmp	.L16
.L13:
	lea	rdi, .LC13[rip]
	call	puts@PLT
.L16:
	lea	rdi, .LC14[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -856[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	s_gets
	.type	s_gets, @function
s_gets:
.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	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	.L20
	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	.L22
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR [rax], 0
	jmp	.L20
.L23:
	nop
.L22:
	call	getchar@PLT
	cmp	eax, 10
	jne	.L23
.L20:
	mov	rax, QWORD PTR -16[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	"830193.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"a+b\000"
	.align	2
.LC1:
	.ascii	"book.dat\000"
	.align	2
.LC2:
	.ascii	"Can't open book.dat file\012\000"
	.align	2
.LC3:
	.ascii	"Current contents of book.dat:\000"
	.global	__aeabi_f2d
	.align	2
.LC4:
	.ascii	"%s by %s: $%.2f\012\000"
	.align	2
.LC5:
	.ascii	"The book.dat file is full.\000"
	.align	2
.LC6:
	.ascii	"Please add new book titles.\000"
	.align	2
.LC7:
	.ascii	"Press [enter] at the start of a line to stop.\000"
	.align	2
.LC8:
	.ascii	"Now enter the author.\000"
	.align	2
.LC9:
	.ascii	"Now enter the value.\000"
	.align	2
.LC10:
	.ascii	"%f\000"
	.align	2
.LC11:
	.ascii	"Enter the next title.\000"
	.align	2
.LC12:
	.ascii	"Here is the list of your books:\000"
	.align	2
.LC13:
	.ascii	"No bookds? Too bad.\012\000"
	.align	2
.LC14:
	.ascii	"Bye.\012\000"
	.align	2
.LC15:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 864
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #872
	ldr	r3, .L19
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-876]
	mov	r3, #84
	str	r3, [fp, #-868]
	ldr	r1, .L19+4
	ldr	r0, .L19+8
	bl	fopen
	str	r0, [fp, #-864]
	ldr	r3, [fp, #-864]
	cmp	r3, #0
	bne	.L2
	ldr	r3, .L19+12
	ldr	r3, [r3]
	mov	r2, #25
	mov	r1, #1
	ldr	r0, .L19+16
	bl	fwrite
	mov	r0, #1
	bl	exit
.L2:
	ldr	r0, [fp, #-864]
	bl	rewind
	b	.L3
.L6:
	ldr	r3, [fp, #-876]
	cmp	r3, #0
	bne	.L4
	ldr	r0, .L19+20
	bl	puts
.L4:
	sub	r1, fp, #856
	ldr	r2, [fp, #-876]
	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, #856
	ldr	r2, [fp, #-876]
	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, #-876]
	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, #12
	add	r3, r3, r2
	sub	r3, r3, #764
	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, .L19+24
	bl	printf
	ldr	r3, [fp, #-876]
	add	r3, r3, #1
	str	r3, [fp, #-876]
.L3:
	ldr	r3, [fp, #-876]
	cmp	r3, #9
	bgt	.L5
	sub	r1, fp, #856
	ldr	r2, [fp, #-876]
	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, #-868]
	ldr	r3, [fp, #-864]
	mov	r2, #1
	bl	fread
	mov	r3, r0
	cmp	r3, #1
	beq	.L6
.L5:
	ldr	r3, [fp, #-876]
	str	r3, [fp, #-860]
	ldr	r3, [fp, #-876]
	cmp	r3, #10
	bne	.L7
	ldr	r3, .L19+12
	ldr	r3, [r3]
	mov	r2, #26
	mov	r1, #1
	ldr	r0, .L19+28
	bl	fwrite
	mov	r0, #2
	bl	exit
.L7:
	ldr	r0, .L19+32
	bl	puts
	ldr	r0, .L19+36
	bl	puts
	b	.L8
.L12:
	ldr	r0, .L19+40
	bl	puts
	sub	r1, fp, #856
	ldr	r2, [fp, #-876]
	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, .L19+44
	bl	puts
	ldr	r2, [fp, #-876]
	add	r3, r2, #1
	str	r3, [fp, #-876]
	sub	r1, fp, #856
	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, .L19+48
	bl	__isoc99_scanf
	b	.L9
.L10:
	nop
.L9:
	bl	getchar
	mov	r3, r0
	cmp	r3, #10
	bne	.L10
	ldr	r3, [fp, #-876]
	cmp	r3, #9
	bgt	.L8
	ldr	r0, .L19+52
	bl	puts
.L8:
	ldr	r3, [fp, #-876]
	cmp	r3, #9
	bgt	.L11
	sub	r1, fp, #856
	ldr	r2, [fp, #-876]
	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	.L11
	ldr	r2, [fp, #-876]
	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, #12
	add	r3, r3, r2
	sub	r3, r3, #844
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L12
.L11:
	ldr	r3, [fp, #-876]
	cmp	r3, #0
	ble	.L13
	ldr	r0, .L19+56
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-872]
	b	.L14
.L15:
	sub	r1, fp, #856
	ldr	r2, [fp, #-872]
	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, #856
	ldr	r2, [fp, #-872]
	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, #-872]
	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, #12
	add	r3, r3, r2
	sub	r3, r3, #764
	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, .L19+24
	bl	printf
	ldr	r3, [fp, #-872]
	add	r3, r3, #1
	str	r3, [fp, #-872]
.L14:
	ldr	r2, [fp, #-872]
	ldr	r3, [fp, #-876]
	cmp	r2, r3
	blt	.L15
	sub	r1, fp, #856
	ldr	r2, [fp, #-860]
	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, #-868]
	ldr	r2, [fp, #-876]
	ldr	r3, [fp, #-860]
	sub	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-864]
	bl	fwrite
	b	.L16
.L13:
	ldr	r0, .L19+60
	bl	puts
.L16:
	ldr	r0, .L19+64
	bl	puts
	ldr	r0, [fp, #-864]
	bl	fclose
	mov	r3, #0
	ldr	r2, .L19
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L18
	bl	__stack_chk_fail
.L18:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC15
	.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
	.size	main, .-main
	.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, .L27
	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	.L22
	mov	r1, #10
	ldr	r0, [fp, #-16]
	bl	strchr
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L24
	ldr	r3, [fp, #-8]
	mov	r2, #0
	strb	r2, [r3]
	b	.L22
.L25:
	nop
.L24:
	bl	getchar
	mov	r3, r0
	cmp	r3, #10
	bne	.L25
.L22:
	ldr	r3, [fp, #-12]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L28:
	.align	2
.L27:
	.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
