	.file	"419837.c"
	.intel_syntax noprefix
	.text
	.globl	MAX_LENGTH
	.section	.rodata
	.align 4
	.type	MAX_LENGTH, @object
	.size	MAX_LENGTH, 4
MAX_LENGTH:
	.long	1024
.LC0:
	.string	"Personal Music Library.\n"
	.align 8
.LC1:
	.string	"Commands are I (insert), D (delete), S (search by song name),\nP (print), Q (quit)."
.LC2:
	.string	"\nCommand"
	.align 8
.LC3:
	.string	"\nEnter the name of the song to be deleted"
	.align 8
.LC4:
	.string	"\nEnter the name of the song to search for"
.LC5:
	.string	"\nInvalid command."
	.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	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 56
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	rax, rsp
	mov	rbx, rax
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	eax, 1024
	add	eax, 1
	cdqe
	sub	rax, 1
	mov	QWORD PTR -88[rbp], rax
	mov	eax, 1024
	add	eax, 1
	cdqe
	mov	r14, rax
	mov	r15d, 0
	mov	eax, 1024
	add	eax, 1
	cdqe
	mov	r12, rax
	mov	r13d, 0
	mov	eax, 1024
	add	eax, 1
	cdqe
	mov	edx, 16
	sub	rdx, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L2:
	cmp	rsp, rdx
	je	.L3
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L2
.L3:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L4
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L4:
	mov	rax, rsp
	add	rax, 0
	mov	QWORD PTR -80[rbp], rax
.L8:
	mov	edx, 1024
	mov	rax, QWORD PTR -80[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	call	inputStringFromUser
	mov	rax, QWORD PTR -80[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	toupper@PLT
	mov	BYTE PTR -89[rbp], al
	cmp	BYTE PTR -89[rbp], 73
	je	.L5
	cmp	BYTE PTR -89[rbp], 68
	jne	.L6
	lea	rax, .LC3[rip]
	mov	QWORD PTR -64[rbp], rax
	jmp	.L5
.L6:
	cmp	BYTE PTR -89[rbp], 83
	jne	.L7
	lea	rax, .LC4[rip]
	mov	QWORD PTR -72[rbp], rax
	jmp	.L5
.L7:
	cmp	BYTE PTR -89[rbp], 80
	je	.L5
	cmp	BYTE PTR -89[rbp], 81
	je	.L5
	lea	rdi, .LC5[rip]
	call	puts@PLT
.L5:
	cmp	BYTE PTR -89[rbp], 81
	jne	.L8
	mov	eax, 0
	mov	rsp, rbx
	mov	rsi, QWORD PTR -56[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC6:
	.string	"%s --> "
	.text
	.globl	inputStringFromUser
	.type	inputStringFromUser, @function
inputStringFromUser:
.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, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -36[rbp], edx
	mov	DWORD PTR -4[rbp], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L12
.L14:
	mov	eax, DWORD PTR -4[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -4[rbp], edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -32[rbp]
	add	rdx, rax
	movzx	eax, BYTE PTR -5[rbp]
	mov	BYTE PTR [rdx], al
.L12:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jge	.L13
	call	getchar@PLT
	mov	BYTE PTR -5[rbp], al
	cmp	BYTE PTR -5[rbp], 10
	jne	.L14
.L13:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	inputStringFromUser, .-inputStringFromUser
	.section	.rodata
	.align 8
.LC7:
	.string	"\nA song with the name '%s' is already in the music library.\nNo new song entered.\n"
	.text
	.globl	songNameDuplicate
	.type	songNameDuplicate, @function
songNameDuplicate:
.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
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	songNameDuplicate, .-songNameDuplicate
	.section	.rodata
	.align 8
.LC8:
	.string	"\nThe song name '%s' was found in the music library.\n"
	.text
	.globl	songNameFound
	.type	songNameFound, @function
songNameFound:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	songNameFound, .-songNameFound
	.section	.rodata
	.align 8
.LC9:
	.string	"\nThe song name '%s' was not found in the music library.\n"
	.text
	.globl	songNameNotFound
	.type	songNameNotFound, @function
songNameNotFound:
.LFB10:
	.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
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	songNameNotFound, .-songNameNotFound
	.section	.rodata
	.align 8
.LC10:
	.string	"\nDeleting a song with name '%s' from the music library.\n"
	.text
	.globl	songNameDeleted
	.type	songNameDeleted, @function
songNameDeleted:
.LFB11:
	.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
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	songNameDeleted, .-songNameDeleted
	.section	.rodata
.LC11:
	.string	"\nThe music library is empty."
	.text
	.globl	printMusicLibraryEmpty
	.type	printMusicLibraryEmpty, @function
printMusicLibraryEmpty:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC11[rip]
	call	puts@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	printMusicLibraryEmpty, .-printMusicLibraryEmpty
	.section	.rodata
.LC12:
	.string	"\nMy Personal Music Library: "
	.text
	.globl	printMusicLibraryTitle
	.type	printMusicLibraryTitle, @function
printMusicLibraryTitle:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC12[rip]
	call	puts@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	printMusicLibraryTitle, .-printMusicLibraryTitle
	.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	"419837.c"
	.text
	.global	MAX_LENGTH
	.section	.rodata
	.align	2
	.type	MAX_LENGTH, %object
	.size	MAX_LENGTH, 4
MAX_LENGTH:
	.word	1024
	.align	2
.LC0:
	.ascii	"Personal Music Library.\012\000"
	.align	2
.LC1:
	.ascii	"Commands are I (insert), D (delete), S (search by s"
	.ascii	"ong name),\012P (print), Q (quit).\000"
	.align	2
.LC2:
	.ascii	"\012Command\000"
	.align	2
.LC3:
	.ascii	"\012Enter the name of the song to be deleted\000"
	.align	2
.LC4:
	.ascii	"\012Enter the name of the song to search for\000"
	.align	2
.LC5:
	.ascii	"\012Invalid command.\000"
	.align	2
.LC6:
	.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, .L8
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, sp
	mov	r4, r3
	ldr	r0, .L8+4
	bl	puts
	ldr	r0, .L8+8
	bl	puts
	mov	r3, #1024
	str	r3, [fp, #-32]
	mov	r3, #1024
	add	r3, r3, #1
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	mov	r3, #1024
	add	r3, r3, #1
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	mov	r3, #1024
	add	r3, r3, #1
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #0
	str	r3, [fp, #-28]
.L5:
	mov	r3, #1024
	mov	r2, r3
	ldr	r1, [fp, #-28]
	ldr	r0, .L8+12
	bl	inputStringFromUser
	ldr	r3, [fp, #-28]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	toupper
	mov	r3, r0
	strb	r3, [fp, #-33]
	ldrb	r3, [fp, #-33]	@ zero_extendqisi2
	cmp	r3, #73
	beq	.L2
	ldrb	r3, [fp, #-33]	@ zero_extendqisi2
	cmp	r3, #68
	bne	.L3
	ldr	r3, .L8+16
	str	r3, [fp, #-20]
	b	.L2
.L3:
	ldrb	r3, [fp, #-33]	@ zero_extendqisi2
	cmp	r3, #83
	bne	.L4
	ldr	r3, .L8+20
	str	r3, [fp, #-24]
	b	.L2
.L4:
	ldrb	r3, [fp, #-33]	@ zero_extendqisi2
	cmp	r3, #80
	beq	.L2
	ldrb	r3, [fp, #-33]	@ zero_extendqisi2
	cmp	r3, #81
	beq	.L2
	ldr	r0, .L8+24
	bl	puts
.L2:
	ldrb	r3, [fp, #-33]	@ zero_extendqisi2
	cmp	r3, #81
	bne	.L5
	mov	r3, #0
	mov	sp, r4
	ldr	r2, .L8
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L7
	bl	__stack_chk_fail
.L7:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC6
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	main, .-main
	.section	.rodata
	.align	2
.LC7:
	.ascii	"%s --> \000"
	.text
	.align	2
	.global	inputStringFromUser
	.syntax unified
	.arm
	.fpu softvfp
	.type	inputStringFromUser, %function
inputStringFromUser:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r1, [fp, #-16]
	ldr	r0, .L14
	bl	printf
	b	.L11
.L13:
	ldr	r3, [fp, #-8]
	add	r2, r3, #1
	str	r2, [fp, #-8]
	mov	r2, r3
	ldr	r3, [fp, #-20]
	add	r3, r3, r2
	ldrb	r2, [fp, #-9]
	strb	r2, [r3]
.L11:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	bge	.L12
	bl	getchar
	mov	r3, r0
	strb	r3, [fp, #-9]
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L13
.L12:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC7
	.size	inputStringFromUser, .-inputStringFromUser
	.section	.rodata
	.align	2
.LC8:
	.ascii	"\012A song with the name '%s' is already in the mus"
	.ascii	"ic library.\012No new song entered.\012\000"
	.text
	.align	2
	.global	songNameDuplicate
	.syntax unified
	.arm
	.fpu softvfp
	.type	songNameDuplicate, %function
songNameDuplicate:
	@ 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]
	ldr	r1, [fp, #-8]
	ldr	r0, .L17
	bl	printf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC8
	.size	songNameDuplicate, .-songNameDuplicate
	.section	.rodata
	.align	2
.LC9:
	.ascii	"\012The song name '%s' was found in the music libra"
	.ascii	"ry.\012\000"
	.text
	.align	2
	.global	songNameFound
	.syntax unified
	.arm
	.fpu softvfp
	.type	songNameFound, %function
songNameFound:
	@ 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]
	ldr	r1, [fp, #-8]
	ldr	r0, .L20
	bl	printf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L21:
	.align	2
.L20:
	.word	.LC9
	.size	songNameFound, .-songNameFound
	.section	.rodata
	.align	2
.LC10:
	.ascii	"\012The song name '%s' was not found in the music l"
	.ascii	"ibrary.\012\000"
	.text
	.align	2
	.global	songNameNotFound
	.syntax unified
	.arm
	.fpu softvfp
	.type	songNameNotFound, %function
songNameNotFound:
	@ 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]
	ldr	r1, [fp, #-8]
	ldr	r0, .L23
	bl	printf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L24:
	.align	2
.L23:
	.word	.LC10
	.size	songNameNotFound, .-songNameNotFound
	.section	.rodata
	.align	2
.LC11:
	.ascii	"\012Deleting a song with name '%s' from the music l"
	.ascii	"ibrary.\012\000"
	.text
	.align	2
	.global	songNameDeleted
	.syntax unified
	.arm
	.fpu softvfp
	.type	songNameDeleted, %function
songNameDeleted:
	@ 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]
	ldr	r1, [fp, #-8]
	ldr	r0, .L26
	bl	printf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L27:
	.align	2
.L26:
	.word	.LC11
	.size	songNameDeleted, .-songNameDeleted
	.section	.rodata
	.align	2
.LC12:
	.ascii	"\012The music library is empty.\000"
	.text
	.align	2
	.global	printMusicLibraryEmpty
	.syntax unified
	.arm
	.fpu softvfp
	.type	printMusicLibraryEmpty, %function
printMusicLibraryEmpty:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L29
	bl	puts
	nop
	pop	{fp, pc}
.L30:
	.align	2
.L29:
	.word	.LC12
	.size	printMusicLibraryEmpty, .-printMusicLibraryEmpty
	.section	.rodata
	.align	2
.LC13:
	.ascii	"\012My Personal Music Library: \000"
	.text
	.align	2
	.global	printMusicLibraryTitle
	.syntax unified
	.arm
	.fpu softvfp
	.type	printMusicLibraryTitle, %function
printMusicLibraryTitle:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L32
	bl	puts
	nop
	pop	{fp, pc}
.L33:
	.align	2
.L32:
	.word	.LC13
	.size	printMusicLibraryTitle, .-printMusicLibraryTitle
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
