	.file	"412185.c"
	.intel_syntax noprefix
	.text
	.globl	Data
	.bss
	.align 8
	.type	Data, @object
	.size	Data, 8
Data:
	.zero	8
	.section	.rodata
.LC0:
	.string	"Portuguese"
.LC1:
	.string	"Invalid Option.\n"
.LC2:
	.string	"Thanks! Bye."
	.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, 16
	lea	rsi, .LC0[rip]
	mov	edi, 6
	call	setlocale@PLT
	mov	QWORD PTR Data[rip], 0
.L8:
	mov	eax, 0
	call	displayMenu
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jle	.L2
	cmp	DWORD PTR -4[rbp], 3
	jle	.L3
.L2:
	lea	rdi, .LC1[rip]
	call	puts@PLT
	jmp	.L4
.L3:
	cmp	DWORD PTR -4[rbp], 3
	jne	.L5
	lea	rdi, .LC2[rip]
	call	puts@PLT
	jmp	.L10
.L5:
	cmp	DWORD PTR -4[rbp], 2
	jne	.L7
	mov	eax, 0
	call	listMusic
	jmp	.L4
.L7:
	mov	eax, 0
	call	addMusic
.L4:
	jmp	.L8
.L10:
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC3:
	.string	"\nWELCOME TO RIFELI'S MUSIC STORE (RU 2136681). Our menu: "
	.align 8
.LC4:
	.string	"***************************** "
.LC5:
	.string	"[ 1 ] Add music "
.LC6:
	.string	"[ 2 ] List musics "
.LC7:
	.string	"[ 3 ] Exit "
.LC8:
	.string	"%d"
	.text
	.globl	displayMenu
	.type	displayMenu, @function
displayMenu:
.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, 16
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rdi, .LC4[rip]
	call	puts@PLT
	lea	rdi, .LC5[rip]
	call	puts@PLT
	lea	rdi, .LC6[rip]
	call	puts@PLT
	lea	rdi, .LC7[rip]
	call	puts@PLT
	lea	rdi, .LC4[rip]
	call	puts@PLT
	lea	rax, -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	nop
.L13:
	call	getchar@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 10
	je	.L12
	cmp	DWORD PTR -12[rbp], -1
	jne	.L13
.L12:
	mov	eax, DWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	displayMenu, .-displayMenu
	.section	.rodata
.LC9:
	.string	"Inserting new music "
.LC10:
	.string	"- Music name: "
.LC11:
	.string	"- Artist name: "
.LC12:
	.string	"- Duration music: "
.LC13:
	.string	"%f"
	.text
	.globl	addMusic
	.type	addMusic, @function
addMusic:
.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	edi, 56
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	lea	rdi, .LC9[rip]
	call	puts@PLT
	lea	rdi, .LC10[rip]
	call	puts@PLT
	mov	rdx, QWORD PTR stdin[rip]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 20
	mov	rdi, rax
	call	fgets@PLT
	lea	rdi, .LC11[rip]
	call	puts@PLT
	mov	rax, QWORD PTR stdin[rip]
	mov	rdx, QWORD PTR -8[rbp]
	lea	rcx, 20[rdx]
	mov	rdx, rax
	mov	esi, 20
	mov	rdi, rcx
	call	fgets@PLT
	lea	rdi, .LC12[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 40
	mov	rsi, rax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	nop
.L18:
	call	getchar@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 10
	je	.L17
	cmp	DWORD PTR -12[rbp], -1
	jne	.L18
.L17:
	mov	rax, QWORD PTR Data[rip]
	test	rax, rax
	jne	.L19
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR Data[rip], rax
	mov	rax, QWORD PTR Data[rip]
	mov	QWORD PTR 48[rax], 0
	jmp	.L16
.L19:
	mov	rdx, QWORD PTR Data[rip]
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 48[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR Data[rip], rax
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	addMusic, .-addMusic
	.section	.rodata
.LC14:
	.string	"Listing musics "
.LC15:
	.string	"The music list is empty."
.LC16:
	.string	"- Music name: %s"
.LC17:
	.string	"- Artist name: %s"
.LC18:
	.string	"- Duration: %.2f\n"
	.text
	.globl	listMusic
	.type	listMusic, @function
listMusic:
.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	edi, 56
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR Data[rip]
	mov	QWORD PTR -8[rbp], rax
	lea	rdi, .LC14[rip]
	call	puts@PLT
	mov	rax, QWORD PTR Data[rip]
	test	rax, rax
	jne	.L24
	lea	rdi, .LC15[rip]
	call	puts@PLT
	jmp	.L21
.L25:
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 20
	mov	rsi, rax
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	movss	xmm0, DWORD PTR 40[rax]
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, xmm0
	movq	rax, xmm1
	movq	xmm0, rax
	lea	rdi, .LC18[rip]
	mov	eax, 1
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 48[rax]
	mov	QWORD PTR -8[rbp], rax
	lea	rdi, .LC4[rip]
	call	puts@PLT
.L24:
	cmp	QWORD PTR -8[rbp], 0
	jne	.L25
.L21:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	listMusic, .-listMusic
	.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	"412185.c"
	.text
	.comm	Data,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Portuguese\000"
	.align	2
.LC1:
	.ascii	"Invalid Option.\012\000"
	.align	2
.LC2:
	.ascii	"Thanks! Bye.\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r1, .L11
	mov	r0, #6
	bl	setlocale
	ldr	r3, .L11+4
	mov	r2, #0
	str	r2, [r3]
.L8:
	bl	displayMenu
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	ble	.L2
	ldr	r3, [fp, #-8]
	cmp	r3, #3
	ble	.L3
.L2:
	ldr	r0, .L11+8
	bl	puts
	b	.L4
.L3:
	ldr	r3, [fp, #-8]
	cmp	r3, #3
	bne	.L5
	ldr	r0, .L11+12
	bl	puts
	b	.L10
.L5:
	ldr	r3, [fp, #-8]
	cmp	r3, #2
	bne	.L7
	bl	listMusic
	b	.L4
.L7:
	bl	addMusic
.L4:
	b	.L8
.L10:
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC0
	.word	Data
	.word	.LC1
	.word	.LC2
	.size	main, .-main
	.section	.rodata
	.align	2
.LC3:
	.ascii	"\012WELCOME TO RIFELI'S MUSIC STORE (RU 2136681). O"
	.ascii	"ur menu: \000"
	.align	2
.LC4:
	.ascii	"***************************** \000"
	.align	2
.LC5:
	.ascii	"[ 1 ] Add music \000"
	.align	2
.LC6:
	.ascii	"[ 2 ] List musics \000"
	.align	2
.LC7:
	.ascii	"[ 3 ] Exit \000"
	.align	2
.LC8:
	.ascii	"%d\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	displayMenu
	.syntax unified
	.arm
	.fpu softvfp
	.type	displayMenu, %function
displayMenu:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, .L18
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L18+4
	bl	puts
	ldr	r0, .L18+8
	bl	puts
	ldr	r0, .L18+12
	bl	puts
	ldr	r0, .L18+16
	bl	puts
	ldr	r0, .L18+20
	bl	puts
	ldr	r0, .L18+8
	bl	puts
	sub	r3, fp, #16
	mov	r1, r3
	ldr	r0, .L18+24
	bl	__isoc99_scanf
	nop
.L15:
	bl	getchar
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #10
	beq	.L14
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	bne	.L15
.L14:
	ldr	r3, [fp, #-16]
	ldr	r2, .L18
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L17
	bl	__stack_chk_fail
.L17:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC9
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	displayMenu, .-displayMenu
	.section	.rodata
	.align	2
.LC10:
	.ascii	"Inserting new music \000"
	.align	2
.LC11:
	.ascii	"- Music name: \000"
	.align	2
.LC12:
	.ascii	"- Artist name: \000"
	.align	2
.LC13:
	.ascii	"- Duration music: \000"
	.align	2
.LC14:
	.ascii	"%f\000"
	.text
	.align	2
	.global	addMusic
	.syntax unified
	.arm
	.fpu softvfp
	.type	addMusic, %function
addMusic:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r0, #48
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r0, .L25
	bl	puts
	ldr	r0, .L25+4
	bl	puts
	ldr	r3, [fp, #-12]
	ldr	r2, .L25+8
	ldr	r2, [r2]
	mov	r1, #20
	mov	r0, r3
	bl	fgets
	ldr	r0, .L25+12
	bl	puts
	ldr	r3, [fp, #-12]
	add	r3, r3, #20
	ldr	r2, .L25+8
	ldr	r2, [r2]
	mov	r1, #20
	mov	r0, r3
	bl	fgets
	ldr	r0, .L25+16
	bl	puts
	ldr	r3, [fp, #-12]
	add	r3, r3, #40
	mov	r1, r3
	ldr	r0, .L25+20
	bl	__isoc99_scanf
	nop
.L22:
	bl	getchar
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #10
	beq	.L21
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L22
.L21:
	ldr	r3, .L25+24
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L23
	ldr	r2, .L25+24
	ldr	r3, [fp, #-12]
	str	r3, [r2]
	ldr	r3, .L25+24
	ldr	r3, [r3]
	mov	r2, #0
	str	r2, [r3, #44]
	b	.L20
.L23:
	ldr	r3, .L25+24
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	str	r2, [r3, #44]
	ldr	r2, .L25+24
	ldr	r3, [fp, #-12]
	str	r3, [r2]
.L20:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L26:
	.align	2
.L25:
	.word	.LC10
	.word	.LC11
	.word	stdin
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	Data
	.size	addMusic, .-addMusic
	.section	.rodata
	.align	2
.LC15:
	.ascii	"Listing musics \000"
	.align	2
.LC16:
	.ascii	"The music list is empty.\000"
	.align	2
.LC17:
	.ascii	"- Music name: %s\000"
	.align	2
.LC18:
	.ascii	"- Artist name: %s\000"
	.global	__aeabi_f2d
	.align	2
.LC19:
	.ascii	"- Duration: %.2f\012\000"
	.text
	.align	2
	.global	listMusic
	.syntax unified
	.arm
	.fpu softvfp
	.type	listMusic, %function
listMusic:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r0, #48
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, .L32
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r0, .L32+4
	bl	puts
	ldr	r3, .L32
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L30
	ldr	r0, .L32+8
	bl	puts
	b	.L27
.L31:
	ldr	r3, [fp, #-8]
	mov	r1, r3
	ldr	r0, .L32+12
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #20
	mov	r1, r3
	ldr	r0, .L32+16
	bl	printf
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #40]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L32+20
	bl	printf
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #44]
	str	r3, [fp, #-8]
	ldr	r0, .L32+24
	bl	puts
.L30:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L31
.L27:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L33:
	.align	2
.L32:
	.word	Data
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC4
	.size	listMusic, .-listMusic
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
