	.file	"20449099.c"
	.intel_syntax noprefix
	.text
	.globl	ARTISTS
	.section	.rodata
	.align 4
	.type	ARTISTS, @object
	.size	ARTISTS, 4
ARTISTS:
	.long	100
.LC0:
	.string	"%d"
	.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, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -20[rbp], 0
	mov	DWORD PTR -24[rbp], 0
	mov	QWORD PTR -16[rbp], 0
	mov	eax, 100
	cdqe
	sal	rax, 5
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	eax, 0
	call	listOptions
	lea	rax, -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, 5
	ja	.L21
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L4[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L4[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L4:
	.long	.L21-.L4
	.long	.L8-.L4
	.long	.L7-.L4
	.long	.L6-.L4
	.long	.L5-.L4
	.long	.L21-.L4
	.text
.L8:
	mov	rdx, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	stockNewCD
	add	DWORD PTR -20[rbp], eax
	jmp	.L9
.L7:
	mov	rdx, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	printAllCds
	jmp	.L9
.L6:
	mov	rdx, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	searchForCd
	jmp	.L9
.L5:
	mov	rdx, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	sellCD
	jmp	.L9
.L21:
	nop
.L9:
	jmp	.L10
.L18:
	mov	eax, 0
	call	listOptions
	lea	rax, -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, 5
	ja	.L22
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L13[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L13[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L13:
	.long	.L22-.L13
	.long	.L17-.L13
	.long	.L16-.L13
	.long	.L15-.L13
	.long	.L14-.L13
	.long	.L10-.L13
	.text
.L17:
	mov	rdx, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	stockNewCD
	add	DWORD PTR -20[rbp], eax
	jmp	.L10
.L16:
	mov	rdx, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	printAllCds
	jmp	.L10
.L15:
	mov	rdx, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	searchForCd
	jmp	.L10
.L14:
	mov	rdx, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	sellCD
	jmp	.L10
.L22:
	nop
.L10:
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, 5
	jne	.L18
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC1:
	.string	"Please select one of the following options:"
.LC2:
	.string	"1) Stock a new CD"
	.align 8
.LC3:
	.string	"2) Print the details of an artist"
.LC4:
	.string	"3) Search a CD"
.LC5:
	.string	"4) Sell a CD"
.LC6:
	.string	"5) Quit"
	.text
	.globl	listOptions
	.type	listOptions, @function
listOptions:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC1[rip]
	call	puts@PLT
	lea	rdi, .LC2[rip]
	call	puts@PLT
	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
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	listOptions, .-listOptions
	.section	.rodata
.LC7:
	.string	"Please enter the artist name:"
.LC8:
	.string	" %s"
.LC9:
	.string	"Please enter the CD number:"
.LC10:
	.string	" %d"
.LC11:
	.string	"Please enter the CD title:"
	.align 8
.LC12:
	.string	"Please enter the amount to be stocked:"
	.text
	.globl	stockNewCD
	.type	stockNewCD, @function
stockNewCD:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	add	rsp, -128
	mov	DWORD PTR -116[rbp], edi
	mov	QWORD PTR -128[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -104[rbp], 0
	lea	rdi, .LC7[rip]
	call	puts@PLT
	lea	rax, -64[rbp]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC9[rip]
	call	puts@PLT
	lea	rax, -112[rbp]
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC11[rip]
	call	puts@PLT
	lea	rax, -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC12[rip]
	call	puts@PLT
	lea	rax, -108[rbp]
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	cmp	DWORD PTR -116[rbp], 0
	jg	.L26
	mov	QWORD PTR -72[rbp], 0
	mov	edi, 40
	call	malloc@PLT
	mov	QWORD PTR -72[rbp], rax
	mov	eax, DWORD PTR -116[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	mov	rax, QWORD PTR -128[rbp]
	add	rax, rdx
	mov	rdx, rax
	lea	rax, -64[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	strcpy@PLT
	mov	eax, DWORD PTR -116[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	mov	rax, QWORD PTR -128[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -72[rbp]
	mov	QWORD PTR 24[rdx], rax
	mov	edx, DWORD PTR -112[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -72[rbp]
	lea	rdx, 4[rax]
	lea	rax, -32[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	strcpy@PLT
	mov	edx, DWORD PTR -108[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	DWORD PTR 24[rax], edx
	mov	rax, QWORD PTR -72[rbp]
	mov	QWORD PTR 32[rax], 0
	mov	DWORD PTR -104[rbp], 1
	jmp	.L27
.L26:
	mov	DWORD PTR -100[rbp], 0
	mov	DWORD PTR -100[rbp], 0
	jmp	.L28
.L33:
	mov	eax, DWORD PTR -100[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	mov	rax, QWORD PTR -128[rbp]
	add	rax, rdx
	mov	rdx, rax
	lea	rax, -64[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	strcmp@PLT
	test	eax, eax
	jne	.L29
	mov	QWORD PTR -96[rbp], 0
	mov	QWORD PTR -80[rbp], 0
	mov	edi, 40
	call	malloc@PLT
	mov	QWORD PTR -96[rbp], rax
	mov	edi, 40
	call	malloc@PLT
	mov	QWORD PTR -80[rbp], rax
	mov	eax, DWORD PTR -100[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	mov	rax, QWORD PTR -128[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR 24[rax]
	mov	QWORD PTR -96[rbp], rax
	jmp	.L30
.L31:
	mov	rax, QWORD PTR -96[rbp]
	mov	rax, QWORD PTR 32[rax]
	mov	QWORD PTR -96[rbp], rax
.L30:
	mov	rax, QWORD PTR -96[rbp]
	mov	rax, QWORD PTR 32[rax]
	test	rax, rax
	jne	.L31
	mov	rax, QWORD PTR -80[rbp]
	mov	QWORD PTR 32[rax], 0
	mov	edx, DWORD PTR -112[rbp]
	mov	rax, QWORD PTR -80[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -80[rbp]
	lea	rdx, 4[rax]
	lea	rax, -32[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	strcpy@PLT
	mov	edx, DWORD PTR -108[rbp]
	mov	rax, QWORD PTR -80[rbp]
	mov	DWORD PTR 24[rax], edx
	mov	rax, QWORD PTR -96[rbp]
	mov	rdx, QWORD PTR -80[rbp]
	mov	QWORD PTR 32[rax], rdx
	jmp	.L32
.L29:
	mov	QWORD PTR -88[rbp], 0
	mov	edi, 40
	call	malloc@PLT
	mov	QWORD PTR -88[rbp], rax
	mov	eax, DWORD PTR -116[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	mov	rax, QWORD PTR -128[rbp]
	add	rax, rdx
	mov	rdx, rax
	lea	rax, -64[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	strcpy@PLT
	mov	eax, DWORD PTR -116[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	mov	rax, QWORD PTR -128[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -88[rbp]
	mov	QWORD PTR 24[rdx], rax
	mov	edx, DWORD PTR -112[rbp]
	mov	rax, QWORD PTR -88[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -88[rbp]
	lea	rdx, 4[rax]
	lea	rax, -32[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	strcpy@PLT
	mov	edx, DWORD PTR -108[rbp]
	mov	rax, QWORD PTR -88[rbp]
	mov	DWORD PTR 24[rax], edx
	mov	rax, QWORD PTR -88[rbp]
	mov	QWORD PTR 32[rax], 0
	mov	DWORD PTR -104[rbp], 1
.L32:
	add	DWORD PTR -100[rbp], 1
.L28:
	mov	eax, DWORD PTR -116[rbp]
	cmp	eax, DWORD PTR -100[rbp]
	jge	.L33
.L27:
	mov	eax, DWORD PTR -104[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L35
	call	__stack_chk_fail@PLT
.L35:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	stockNewCD, .-stockNewCD
	.section	.rodata
.LC13:
	.string	"Which artist to find?"
	.align 8
.LC14:
	.string	"CD Title for: %s; CD Number: %d; Amount remaining: %d \n"
.LC15:
	.string	"Artist could not be found"
	.text
	.globl	printAllCds
	.type	printAllCds, @function
printAllCds:
.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, 64
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC13[rip]
	call	puts@PLT
	lea	rax, -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -44[rbp], -1
	mov	DWORD PTR -48[rbp], 0
	mov	DWORD PTR -48[rbp], 0
	jmp	.L37
.L42:
	mov	eax, DWORD PTR -48[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	rdx, rax
	lea	rax, -32[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	strcmp@PLT
	test	eax, eax
	jne	.L38
	mov	eax, DWORD PTR -48[rbp]
	mov	DWORD PTR -44[rbp], eax
	cmp	DWORD PTR -44[rbp], -1
	je	.L39
	mov	QWORD PTR -40[rbp], 0
	mov	edi, 40
	call	malloc@PLT
	mov	QWORD PTR -40[rbp], rax
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR 24[rax]
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR 24[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	mov	rcx, QWORD PTR -40[rbp]
	lea	rsi, 4[rcx]
	mov	ecx, edx
	mov	edx, eax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L40
.L41:
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 32[rax]
	mov	QWORD PTR -40[rbp], rax
.L40:
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 32[rax]
	test	rax, rax
	jne	.L41
	jmp	.L38
.L39:
	lea	rdi, .LC15[rip]
	call	puts@PLT
.L38:
	add	DWORD PTR -48[rbp], 1
.L37:
	mov	eax, DWORD PTR -48[rbp]
	cmp	eax, DWORD PTR -52[rbp]
	jle	.L42
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L43
	call	__stack_chk_fail@PLT
.L43:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	printAllCds, .-printAllCds
	.section	.rodata
	.align 8
.LC16:
	.string	"Please enter the CD number to find:"
.LC17:
	.string	"Found: %s %d. Remaining: %d \n"
	.text
	.globl	searchForCd
	.type	searchForCd, @function
searchForCd:
.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, 48
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC16[rip]
	call	puts@PLT
	lea	rax, -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	QWORD PTR -16[rbp], 0
	mov	edi, 40
	call	malloc@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	DWORD PTR -20[rbp], 0
	mov	DWORD PTR -20[rbp], 0
	jmp	.L45
.L52:
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, 40
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR 24[rax]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -24[rbp]
	cmp	edx, eax
	jne	.L48
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR 24[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR [rax]
	mov	rcx, QWORD PTR -16[rbp]
	lea	rsi, 4[rcx]
	mov	ecx, edx
	mov	edx, eax
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -36[rbp]
	add	eax, 1
	mov	DWORD PTR -20[rbp], eax
	jmp	.L47
.L51:
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -24[rbp]
	cmp	edx, eax
	jne	.L49
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR 24[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR [rax]
	mov	rcx, QWORD PTR -16[rbp]
	lea	rsi, 4[rcx]
	mov	ecx, edx
	mov	edx, eax
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -36[rbp]
	add	eax, 1
	mov	DWORD PTR -20[rbp], eax
	jmp	.L50
.L49:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 32[rax]
	mov	QWORD PTR -16[rbp], rax
.L48:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 32[rax]
	test	rax, rax
	jne	.L51
.L50:
	add	DWORD PTR -20[rbp], 1
.L45:
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jle	.L52
.L47:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L53
	call	__stack_chk_fail@PLT
.L53:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	searchForCd, .-searchForCd
	.section	.rodata
	.align 8
.LC18:
	.string	"Please enter the CD number to sell:"
.LC19:
	.string	"Sold: %s %d. Remaining: %d \n"
	.text
	.globl	sellCD
	.type	sellCD, @function
sellCD:
.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, 48
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC18[rip]
	call	puts@PLT
	lea	rax, -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	QWORD PTR -16[rbp], 0
	mov	edi, 40
	call	malloc@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	DWORD PTR -20[rbp], 0
	mov	DWORD PTR -20[rbp], 0
	jmp	.L55
.L62:
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, 40
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR 24[rax]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -24[rbp]
	cmp	edx, eax
	jne	.L58
	mov	eax, DWORD PTR -36[rbp]
	add	eax, 1
	mov	DWORD PTR -20[rbp], eax
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 24[rax]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR 24[rax], edx
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR 24[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR [rax]
	mov	rcx, QWORD PTR -16[rbp]
	lea	rsi, 4[rcx]
	mov	ecx, edx
	mov	edx, eax
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L57
.L61:
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -24[rbp]
	cmp	edx, eax
	jne	.L59
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 24[rax]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR 24[rax], edx
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR 24[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR [rax]
	mov	rcx, QWORD PTR -16[rbp]
	lea	rsi, 4[rcx]
	mov	ecx, edx
	mov	edx, eax
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -36[rbp]
	add	eax, 1
	mov	DWORD PTR -20[rbp], eax
	jmp	.L60
.L59:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 32[rax]
	mov	QWORD PTR -16[rbp], rax
.L58:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 32[rax]
	test	rax, rax
	jne	.L61
.L60:
	add	DWORD PTR -20[rbp], 1
.L55:
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jle	.L62
.L57:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L63
	call	__stack_chk_fail@PLT
.L63:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	sellCD, .-sellCD
	.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	"20449099.c"
	.text
	.global	ARTISTS
	.section	.rodata
	.align	2
	.type	ARTISTS, %object
	.size	ARTISTS, 4
ARTISTS:
	.word	100
	.align	2
.LC0:
	.ascii	"%d\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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, .L23
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #100
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-12]
	bl	listOptions
	sub	r3, fp, #20
	mov	r1, r3
	ldr	r0, .L23+4
	bl	__isoc99_scanf
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	cmp	r3, #4
	ldrls	pc, [pc, r3, asl #2]
	b	.L21
.L4:
	.word	.L8
	.word	.L7
	.word	.L6
	.word	.L5
	.word	.L21
.L8:
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-16]
	bl	stockNewCD
	mov	r2, r0
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	str	r3, [fp, #-16]
	b	.L9
.L7:
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-16]
	bl	printAllCds
	b	.L9
.L6:
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-16]
	bl	searchForCd
	b	.L9
.L5:
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-16]
	bl	sellCD
	b	.L9
.L21:
	nop
.L9:
	b	.L10
.L18:
	bl	listOptions
	sub	r3, fp, #20
	mov	r1, r3
	ldr	r0, .L23+4
	bl	__isoc99_scanf
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	cmp	r3, #4
	ldrls	pc, [pc, r3, asl #2]
	b	.L22
.L13:
	.word	.L17
	.word	.L16
	.word	.L15
	.word	.L14
	.word	.L10
.L17:
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-16]
	bl	stockNewCD
	mov	r2, r0
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	str	r3, [fp, #-16]
	b	.L10
.L16:
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-16]
	bl	printAllCds
	b	.L10
.L15:
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-16]
	bl	searchForCd
	b	.L10
.L14:
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-16]
	bl	sellCD
	b	.L10
.L22:
	nop
.L10:
	ldr	r3, [fp, #-20]
	cmp	r3, #5
	bne	.L18
	mov	r3, #0
	ldr	r2, .L23
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L20
	bl	__stack_chk_fail
.L20:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L24:
	.align	2
.L23:
	.word	.LC1
	.word	.LC0
	.size	main, .-main
	.section	.rodata
	.align	2
.LC2:
	.ascii	"Please select one of the following options:\000"
	.align	2
.LC3:
	.ascii	"1) Stock a new CD\000"
	.align	2
.LC4:
	.ascii	"2) Print the details of an artist\000"
	.align	2
.LC5:
	.ascii	"3) Search a CD\000"
	.align	2
.LC6:
	.ascii	"4) Sell a CD\000"
	.align	2
.LC7:
	.ascii	"5) Quit\000"
	.text
	.align	2
	.global	listOptions
	.syntax unified
	.arm
	.fpu softvfp
	.type	listOptions, %function
listOptions:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L27
	bl	puts
	ldr	r0, .L27+4
	bl	puts
	ldr	r0, .L27+8
	bl	puts
	ldr	r0, .L27+12
	bl	puts
	ldr	r0, .L27+16
	bl	puts
	ldr	r0, .L27+20
	bl	puts
	nop
	pop	{fp, pc}
.L28:
	.align	2
.L27:
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	listOptions, .-listOptions
	.section	.rodata
	.align	2
.LC8:
	.ascii	"Please enter the artist name:\000"
	.align	2
.LC9:
	.ascii	" %s\000"
	.align	2
.LC10:
	.ascii	"Please enter the CD number:\000"
	.align	2
.LC11:
	.ascii	" %d\000"
	.align	2
.LC12:
	.ascii	"Please enter the CD title:\000"
	.align	2
.LC13:
	.ascii	"Please enter the amount to be stocked:\000"
	.align	2
.LC14:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	stockNewCD
	.syntax unified
	.arm
	.fpu softvfp
	.type	stockNewCD, %function
stockNewCD:
	@ args = 0, pretend = 0, frame = 88
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #88
	str	r0, [fp, #-88]
	str	r1, [fp, #-92]
	ldr	r3, .L40
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-72]
	ldr	r0, .L40+4
	bl	puts
	sub	r3, fp, #48
	mov	r1, r3
	ldr	r0, .L40+8
	bl	__isoc99_scanf
	ldr	r0, .L40+12
	bl	puts
	sub	r3, fp, #80
	mov	r1, r3
	ldr	r0, .L40+16
	bl	__isoc99_scanf
	ldr	r0, .L40+20
	bl	puts
	sub	r3, fp, #28
	mov	r1, r3
	ldr	r0, .L40+8
	bl	__isoc99_scanf
	ldr	r0, .L40+24
	bl	puts
	sub	r3, fp, #76
	mov	r1, r3
	ldr	r0, .L40+16
	bl	__isoc99_scanf
	ldr	r3, [fp, #-88]
	cmp	r3, #0
	bgt	.L30
	mov	r3, #0
	str	r3, [fp, #-52]
	mov	r0, #32
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-52]
	ldr	r2, [fp, #-88]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-92]
	add	r3, r3, r2
	mov	r2, r3
	sub	r3, fp, #48
	mov	r1, r3
	mov	r0, r2
	bl	strcpy
	ldr	r2, [fp, #-88]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-92]
	add	r3, r3, r2
	ldr	r2, [fp, #-52]
	str	r2, [r3, #20]
	ldr	r2, [fp, #-80]
	ldr	r3, [fp, #-52]
	str	r2, [r3]
	ldr	r3, [fp, #-52]
	add	r3, r3, #4
	sub	r2, fp, #28
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	ldr	r2, [fp, #-76]
	ldr	r3, [fp, #-52]
	str	r2, [r3, #24]
	ldr	r3, [fp, #-52]
	mov	r2, #0
	str	r2, [r3, #28]
	mov	r3, #1
	str	r3, [fp, #-72]
	b	.L31
.L30:
	mov	r3, #0
	str	r3, [fp, #-68]
	mov	r3, #0
	str	r3, [fp, #-68]
	b	.L32
.L37:
	ldr	r2, [fp, #-68]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-92]
	add	r3, r3, r2
	mov	r2, r3
	sub	r3, fp, #48
	mov	r1, r3
	mov	r0, r2
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L33
	mov	r3, #0
	str	r3, [fp, #-64]
	mov	r3, #0
	str	r3, [fp, #-56]
	mov	r0, #32
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-64]
	mov	r0, #32
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-56]
	ldr	r2, [fp, #-68]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-92]
	add	r3, r3, r2
	ldr	r3, [r3, #20]
	str	r3, [fp, #-64]
	b	.L34
.L35:
	ldr	r3, [fp, #-64]
	ldr	r3, [r3, #28]
	str	r3, [fp, #-64]
.L34:
	ldr	r3, [fp, #-64]
	ldr	r3, [r3, #28]
	cmp	r3, #0
	bne	.L35
	ldr	r3, [fp, #-56]
	mov	r2, #0
	str	r2, [r3, #28]
	ldr	r2, [fp, #-80]
	ldr	r3, [fp, #-56]
	str	r2, [r3]
	ldr	r3, [fp, #-56]
	add	r3, r3, #4
	sub	r2, fp, #28
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	ldr	r2, [fp, #-76]
	ldr	r3, [fp, #-56]
	str	r2, [r3, #24]
	ldr	r3, [fp, #-64]
	ldr	r2, [fp, #-56]
	str	r2, [r3, #28]
	b	.L36
.L33:
	mov	r3, #0
	str	r3, [fp, #-60]
	mov	r0, #32
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-60]
	ldr	r2, [fp, #-88]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-92]
	add	r3, r3, r2
	mov	r2, r3
	sub	r3, fp, #48
	mov	r1, r3
	mov	r0, r2
	bl	strcpy
	ldr	r2, [fp, #-88]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-92]
	add	r3, r3, r2
	ldr	r2, [fp, #-60]
	str	r2, [r3, #20]
	ldr	r2, [fp, #-80]
	ldr	r3, [fp, #-60]
	str	r2, [r3]
	ldr	r3, [fp, #-60]
	add	r3, r3, #4
	sub	r2, fp, #28
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	ldr	r2, [fp, #-76]
	ldr	r3, [fp, #-60]
	str	r2, [r3, #24]
	ldr	r3, [fp, #-60]
	mov	r2, #0
	str	r2, [r3, #28]
	mov	r3, #1
	str	r3, [fp, #-72]
.L36:
	ldr	r3, [fp, #-68]
	add	r3, r3, #1
	str	r3, [fp, #-68]
.L32:
	ldr	r2, [fp, #-88]
	ldr	r3, [fp, #-68]
	cmp	r2, r3
	bge	.L37
.L31:
	ldr	r3, [fp, #-72]
	ldr	r2, .L40
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L39
	bl	__stack_chk_fail
.L39:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L41:
	.align	2
.L40:
	.word	.LC14
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.size	stockNewCD, .-stockNewCD
	.section	.rodata
	.align	2
.LC15:
	.ascii	"Which artist to find?\000"
	.align	2
.LC16:
	.ascii	"CD Title for: %s; CD Number: %d; Amount remaining: "
	.ascii	"%d \012\000"
	.align	2
.LC17:
	.ascii	"Artist could not be found\000"
	.align	2
.LC18:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	printAllCds
	.syntax unified
	.arm
	.fpu softvfp
	.type	printAllCds, %function
printAllCds:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	ldr	r3, .L50
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L50+4
	bl	puts
	sub	r3, fp, #28
	mov	r1, r3
	ldr	r0, .L50+8
	bl	__isoc99_scanf
	mvn	r3, #0
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L43
.L48:
	ldr	r2, [fp, #-40]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-52]
	add	r3, r3, r2
	mov	r2, r3
	sub	r3, fp, #28
	mov	r1, r3
	mov	r0, r2
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L44
	ldr	r3, [fp, #-40]
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmn	r3, #1
	beq	.L45
	mov	r3, #0
	str	r3, [fp, #-36]
	mov	r0, #32
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-36]
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-52]
	add	r3, r3, r2
	ldr	r3, [r3, #20]
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-36]
	add	r1, r3, #4
	ldr	r3, [fp, #-36]
	ldr	r2, [r3]
	ldr	r3, [fp, #-36]
	ldr	r3, [r3, #24]
	ldr	r0, .L50+12
	bl	printf
	b	.L46
.L47:
	ldr	r3, [fp, #-36]
	ldr	r3, [r3, #28]
	str	r3, [fp, #-36]
.L46:
	ldr	r3, [fp, #-36]
	ldr	r3, [r3, #28]
	cmp	r3, #0
	bne	.L47
	b	.L44
.L45:
	ldr	r0, .L50+16
	bl	puts
.L44:
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L43:
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-48]
	cmp	r2, r3
	ble	.L48
	nop
	ldr	r3, .L50
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L49
	bl	__stack_chk_fail
.L49:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L51:
	.align	2
.L50:
	.word	.LC18
	.word	.LC15
	.word	.LC9
	.word	.LC16
	.word	.LC17
	.size	printAllCds, .-printAllCds
	.section	.rodata
	.align	2
.LC19:
	.ascii	"Please enter the CD number to find:\000"
	.align	2
.LC20:
	.ascii	"Found: %s %d. Remaining: %d \012\000"
	.align	2
.LC21:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	searchForCd
	.syntax unified
	.arm
	.fpu softvfp
	.type	searchForCd, %function
searchForCd:
	@ 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, .L62
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L62+4
	bl	puts
	sub	r3, fp, #20
	mov	r1, r3
	ldr	r0, .L62+8
	bl	__isoc99_scanf
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r0, #32
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L53
.L60:
	mov	r1, #32
	ldr	r0, [fp, #-16]
	bl	realloc
	str	r0, [fp, #-16]
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-28]
	add	r3, r3, r2
	ldr	r3, [r3, #20]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	bne	.L56
	ldr	r3, [fp, #-16]
	add	r1, r3, #4
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #24]
	ldr	r0, .L62+12
	bl	printf
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	b	.L55
.L59:
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	bne	.L57
	ldr	r3, [fp, #-16]
	add	r1, r3, #4
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #24]
	ldr	r0, .L62+12
	bl	printf
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	b	.L58
.L57:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #28]
	str	r3, [fp, #-16]
.L56:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #28]
	cmp	r3, #0
	bne	.L59
.L58:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L53:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	ble	.L60
.L55:
	nop
	ldr	r3, .L62
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L61
	bl	__stack_chk_fail
.L61:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L63:
	.align	2
.L62:
	.word	.LC21
	.word	.LC19
	.word	.LC11
	.word	.LC20
	.size	searchForCd, .-searchForCd
	.section	.rodata
	.align	2
.LC22:
	.ascii	"Please enter the CD number to sell:\000"
	.align	2
.LC23:
	.ascii	"Sold: %s %d. Remaining: %d \012\000"
	.align	2
.LC24:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	sellCD
	.syntax unified
	.arm
	.fpu softvfp
	.type	sellCD, %function
sellCD:
	@ 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, .L74
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L74+4
	bl	puts
	sub	r3, fp, #20
	mov	r1, r3
	ldr	r0, .L74+8
	bl	__isoc99_scanf
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r0, #32
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L65
.L72:
	mov	r1, #32
	ldr	r0, [fp, #-16]
	bl	realloc
	str	r0, [fp, #-16]
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-28]
	add	r3, r3, r2
	ldr	r3, [r3, #20]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	bne	.L68
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #24]
	sub	r2, r3, #1
	ldr	r3, [fp, #-16]
	str	r2, [r3, #24]
	ldr	r3, [fp, #-16]
	add	r1, r3, #4
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #24]
	ldr	r0, .L74+12
	bl	printf
	b	.L67
.L71:
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	bne	.L69
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #24]
	sub	r2, r3, #1
	ldr	r3, [fp, #-16]
	str	r2, [r3, #24]
	ldr	r3, [fp, #-16]
	add	r1, r3, #4
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #24]
	ldr	r0, .L74+12
	bl	printf
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	b	.L70
.L69:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #28]
	str	r3, [fp, #-16]
.L68:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #28]
	cmp	r3, #0
	bne	.L71
.L70:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L65:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	ble	.L72
.L67:
	nop
	ldr	r3, .L74
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L73
	bl	__stack_chk_fail
.L73:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L75:
	.align	2
.L74:
	.word	.LC24
	.word	.LC22
	.word	.LC11
	.word	.LC23
	.size	sellCD, .-sellCD
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
