	.file	"96368.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Please enter the book title."
	.align 8
.LC1:
	.string	"Press [enter] at the start of a line to stop."
.LC2:
	.string	"Now enter the author:"
.LC3:
	.string	"Now enter the value:"
.LC4:
	.string	"%f"
.LC5:
	.string	"Enter the next title:"
.LC6:
	.string	"List of books:"
.LC7:
	.string	"%s by %s, $%.2f\n"
.LC8:
	.string	"List of books, sort by title:"
.LC9:
	.string	"List of books, sort by value:"
.LC10:
	.string	"No book? Too bad."
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 1840
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -10024[rbp], 0
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rdi, .LC1[rip]
	call	puts@PLT
	jmp	.L2
.L6:
	lea	rcx, -8416[rbp]
	mov	eax, DWORD PTR -10024[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	lea	rdx, [rcx+rax]
	mov	eax, DWORD PTR -10024[rbp]
	cdqe
	mov	QWORD PTR -10016[rbp+rax*8], rdx
	lea	rcx, -8416[rbp]
	mov	eax, DWORD PTR -10024[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	lea	rdx, [rcx+rax]
	mov	eax, DWORD PTR -10024[rbp]
	cdqe
	mov	QWORD PTR -9216[rbp+rax*8], rdx
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rcx, -8416[rbp]
	mov	eax, DWORD PTR -10024[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	rdi, rax
	mov	eax, 0
	call	gets@PLT
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -10024[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -10024[rbp], edx
	lea	rcx, -8416[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, .LC4[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	jmp	.L3
.L4:
	nop
.L3:
	call	getchar@PLT
	cmp	eax, 10
	jne	.L4
	cmp	DWORD PTR -10024[rbp], 99
	jg	.L2
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
.L2:
	cmp	DWORD PTR -10024[rbp], 99
	jg	.L5
	lea	rcx, -8416[rbp]
	mov	eax, DWORD PTR -10024[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	rdi, rax
	mov	eax, 0
	call	gets@PLT
	test	eax, eax
	je	.L5
	mov	eax, DWORD PTR -10024[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, 8416
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L6
.L5:
	cmp	DWORD PTR -10024[rbp], 0
	jle	.L7
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	DWORD PTR -10020[rbp], 0
	jmp	.L8
.L9:
	mov	eax, DWORD PTR -10020[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, 8336
	movss	xmm0, DWORD PTR [rax]
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, xmm0
	movq	rcx, xmm1
	lea	rsi, -8416[rbp]
	mov	eax, DWORD PTR -10020[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, -8416[rbp]
	mov	eax, DWORD PTR -10020[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, .LC7[rip]
	mov	eax, 1
	call	printf@PLT
	add	DWORD PTR -10020[rbp], 1
.L8:
	mov	eax, DWORD PTR -10020[rbp]
	cmp	eax, DWORD PTR -10024[rbp]
	jl	.L9
	mov	edx, DWORD PTR -10024[rbp]
	lea	rax, -10016[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	sort_by_title
	lea	rdi, .LC8[rip]
	call	puts@PLT
	mov	DWORD PTR -10020[rbp], 0
	jmp	.L10
.L11:
	mov	eax, DWORD PTR -10020[rbp]
	cdqe
	mov	rax, QWORD PTR -10016[rbp+rax*8]
	movss	xmm0, DWORD PTR 80[rax]
	pxor	xmm2, xmm2
	cvtss2sd	xmm2, xmm0
	movq	rax, xmm2
	mov	edx, DWORD PTR -10020[rbp]
	movsx	rdx, edx
	mov	rdx, QWORD PTR -10016[rbp+rdx*8]
	add	rdx, 40
	mov	ecx, DWORD PTR -10020[rbp]
	movsx	rcx, ecx
	mov	rcx, QWORD PTR -10016[rbp+rcx*8]
	movq	xmm0, rax
	mov	rsi, rcx
	lea	rdi, .LC7[rip]
	mov	eax, 1
	call	printf@PLT
	add	DWORD PTR -10020[rbp], 1
.L10:
	mov	eax, DWORD PTR -10020[rbp]
	cmp	eax, DWORD PTR -10024[rbp]
	jl	.L11
	mov	edx, DWORD PTR -10024[rbp]
	lea	rax, -9216[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	sort_by_value
	lea	rdi, .LC9[rip]
	call	puts@PLT
	mov	DWORD PTR -10020[rbp], 0
	jmp	.L12
.L13:
	mov	eax, DWORD PTR -10020[rbp]
	cdqe
	mov	rax, QWORD PTR -9216[rbp+rax*8]
	movss	xmm0, DWORD PTR 80[rax]
	pxor	xmm3, xmm3
	cvtss2sd	xmm3, xmm0
	movq	rax, xmm3
	mov	edx, DWORD PTR -10020[rbp]
	movsx	rdx, edx
	mov	rdx, QWORD PTR -9216[rbp+rdx*8]
	add	rdx, 40
	mov	ecx, DWORD PTR -10020[rbp]
	movsx	rcx, ecx
	mov	rcx, QWORD PTR -9216[rbp+rcx*8]
	movq	xmm0, rax
	mov	rsi, rcx
	lea	rdi, .LC7[rip]
	mov	eax, 1
	call	printf@PLT
	add	DWORD PTR -10020[rbp], 1
.L12:
	mov	eax, DWORD PTR -10020[rbp]
	cmp	eax, DWORD PTR -10024[rbp]
	jl	.L13
	jmp	.L14
.L7:
	lea	rdi, .LC10[rip]
	call	puts@PLT
.L14:
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	sort_by_title
	.type	sort_by_title, @function
sort_by_title:
.LFB1:
	.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	eax, DWORD PTR -28[rbp]
	sub	eax, 2
	mov	DWORD PTR -16[rbp], eax
	jmp	.L18
.L22:
	mov	DWORD PTR -12[rbp], 0
	jmp	.L19
.L21:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdx, rax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	mov	rax, QWORD PTR [rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jle	.L20
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -12[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -24[rbp]
	add	rdx, rcx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR [rdx], rax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rdx], rax
.L20:
	add	DWORD PTR -12[rbp], 1
.L19:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -16[rbp]
	jle	.L21
	sub	DWORD PTR -16[rbp], 1
.L18:
	cmp	DWORD PTR -16[rbp], 0
	jns	.L22
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	sort_by_title, .-sort_by_title
	.globl	sort_by_value
	.type	sort_by_value, @function
sort_by_value:
.LFB2:
	.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 -28[rbp], esi
	mov	DWORD PTR -16[rbp], 1
	jmp	.L24
.L29:
	mov	DWORD PTR -12[rbp], 0
	jmp	.L25
.L28:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	movss	xmm0, DWORD PTR 80[rax]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	movss	xmm1, DWORD PTR 80[rax]
	comiss	xmm0, xmm1
	jbe	.L26
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -12[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -24[rbp]
	add	rdx, rcx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR [rdx], rax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rdx], rax
.L26:
	add	DWORD PTR -12[rbp], 1
.L25:
	mov	eax, DWORD PTR -28[rbp]
	sub	eax, DWORD PTR -16[rbp]
	cmp	DWORD PTR -12[rbp], eax
	jl	.L28
	add	DWORD PTR -16[rbp], 1
.L24:
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L29
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	sort_by_value, .-sort_by_value
	.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	"96368.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Please enter the book title.\000"
	.align	2
.LC1:
	.ascii	"Press [enter] at the start of a line to stop.\000"
	.align	2
.LC2:
	.ascii	"Now enter the author:\000"
	.align	2
.LC3:
	.ascii	"Now enter the value:\000"
	.align	2
.LC4:
	.ascii	"%f\000"
	.align	2
.LC5:
	.ascii	"Enter the next title:\000"
	.align	2
.LC6:
	.ascii	"List of books:\000"
	.global	__aeabi_f2d
	.align	2
.LC7:
	.ascii	"%s by %s, $%.2f\012\000"
	.align	2
.LC8:
	.ascii	"List of books, sort by title:\000"
	.align	2
.LC9:
	.ascii	"List of books, sort by value:\000"
	.align	2
.LC10:
	.ascii	"No book? Too bad.\000"
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 9216
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #9216
	sub	sp, sp, #8
	ldr	r3, .L17
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-1020]
	ldr	r0, .L17+4
	bl	puts
	ldr	r0, .L17+8
	bl	puts
	b	.L2
.L6:
	sub	r1, fp, #8384
	sub	r1, r1, #12
	sub	r1, r1, #20
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r3, #-1020]
	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	r2, r1, r2
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-1020]
	lsl	r3, r3, #2
	add	r3, r1, r3
	str	r2, [r3, #-1012]
	sub	r1, fp, #8384
	sub	r1, r1, #12
	sub	r1, r1, #20
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r3, #-1020]
	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	r2, r1, r2
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-1020]
	lsl	r3, r3, #2
	add	r3, r1, r3
	str	r2, [r3, #-612]
	ldr	r0, .L17+12
	bl	printf
	sub	r1, fp, #8384
	sub	r1, r1, #12
	sub	r1, r1, #20
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r3, #-1020]
	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	r0, r3
	bl	gets
	ldr	r0, .L17+16
	bl	printf
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r3, #-1020]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r1, r3
	add	r3, r2, #1
	str	r3, [r1, #-1020]
	sub	r1, fp, #8384
	sub	r1, r1, #12
	sub	r1, r1, #20
	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, .L17+20
	bl	__isoc99_scanf
	b	.L3
.L4:
	nop
.L3:
	bl	getchar
	mov	r3, r0
	cmp	r3, #10
	bne	.L4
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-1020]
	cmp	r3, #99
	bgt	.L2
	ldr	r0, .L17+24
	bl	printf
.L2:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-1020]
	cmp	r3, #99
	bgt	.L5
	sub	r1, fp, #8384
	sub	r1, r1, #12
	sub	r1, r1, #20
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r3, #-1020]
	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	r0, r3
	bl	gets
	mov	r3, r0
	cmp	r3, #0
	beq	.L5
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r3, #-1020]
	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
	sub	r3, r3, #212
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L6
.L5:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-1020]
	cmp	r3, #0
	ble	.L7
	ldr	r0, .L17+28
	bl	puts
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-1016]
	b	.L8
.L9:
	sub	r1, fp, #8384
	sub	r1, r1, #12
	sub	r1, r1, #20
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r3, #-1016]
	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, #8384
	sub	r1, r1, #12
	sub	r1, r1, #20
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r3, #-1016]
	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
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r3, #-1016]
	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
	sub	r3, r3, #132
	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, .L17+32
	bl	printf
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-1016]
	add	r3, r3, #1
	str	r3, [r2, #-1016]
.L8:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r2, #-1016]
	ldr	r3, [r3, #-1020]
	cmp	r2, r3
	blt	.L9
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #9152
	sub	r3, r3, #12
	sub	r3, r3, #52
	ldr	r1, [r2, #-1020]
	mov	r0, r3
	bl	sort_by_title
	ldr	r0, .L17+36
	bl	puts
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-1016]
	b	.L10
.L11:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-1016]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #-1012]
	mov	r5, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-1016]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #-1012]
	add	r4, r3, #40
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-1016]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #-1012]
	ldr	r3, [r3, #80]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	stm	sp, {r2-r3}
	mov	r2, r4
	mov	r1, r5
	ldr	r0, .L17+32
	bl	printf
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-1016]
	add	r3, r3, #1
	str	r3, [r2, #-1016]
.L10:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r2, #-1016]
	ldr	r3, [r3, #-1020]
	cmp	r2, r3
	blt	.L11
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8768
	sub	r3, r3, #12
	sub	r3, r3, #36
	ldr	r1, [r2, #-1020]
	mov	r0, r3
	bl	sort_by_value
	ldr	r0, .L17+40
	bl	puts
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-1016]
	b	.L12
.L13:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-1016]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #-612]
	mov	r5, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-1016]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #-612]
	add	r4, r3, #40
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-1016]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #-612]
	ldr	r3, [r3, #80]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	stm	sp, {r2-r3}
	mov	r2, r4
	mov	r1, r5
	ldr	r0, .L17+32
	bl	printf
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-1016]
	add	r3, r3, #1
	str	r3, [r2, #-1016]
.L12:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r2, #-1016]
	ldr	r3, [r3, #-1020]
	cmp	r2, r3
	blt	.L13
	b	.L14
.L7:
	ldr	r0, .L17+44
	bl	puts
.L14:
	mov	r3, #0
	ldr	r2, .L17
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L16
	bl	__stack_chk_fail
.L16:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC11
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.size	main, .-main
	.align	2
	.global	sort_by_title
	.syntax unified
	.arm
	.fpu softvfp
	.type	sort_by_title, %function
sort_by_title:
	@ 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, #-24]
	str	r1, [fp, #-28]
	ldr	r3, [fp, #-28]
	sub	r3, r3, #2
	str	r3, [fp, #-16]
	b	.L20
.L24:
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L21
.L23:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	ble	.L22
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r2, r2, r3
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-24]
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [fp, #-8]
	str	r2, [r3]
.L22:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L21:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	ble	.L23
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	str	r3, [fp, #-16]
.L20:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bge	.L24
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	sort_by_title, .-sort_by_title
	.global	__aeabi_fcmpgt
	.align	2
	.global	sort_by_value
	.syntax unified
	.arm
	.fpu softvfp
	.type	sort_by_value, %function
sort_by_value:
	@ 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, #-24]
	str	r1, [fp, #-28]
	mov	r3, #1
	str	r3, [fp, #-16]
	b	.L26
.L31:
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L27
.L30:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r0, [r3, #80]	@ float
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r3, [r3, #80]	@ float
	mov	r1, r3
	bl	__aeabi_fcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L28
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r2, r2, r3
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-24]
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [fp, #-8]
	str	r2, [r3]
.L28:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L27:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-16]
	sub	r3, r2, r3
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L30
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L26:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	blt	.L31
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	sort_by_value, .-sort_by_value
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
