	.file	"29826179.c"
	.intel_syntax noprefix
	.text
	.globl	Length
	.type	Length, @function
Length:
.LFB6:
	.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 -12[rbp], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L2
.L3:
	add	DWORD PTR -12[rbp], 1
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -8[rbp], rax
.L2:
	cmp	QWORD PTR -8[rbp], 0
	jne	.L3
	mov	eax, DWORD PTR -12[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	Length, .-Length
	.globl	Push
	.type	Push, @function
Push:
.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	edi, 16
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -28[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], rdx
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	Push, .-Push
	.globl	BuildOneTwoThree
	.type	BuildOneTwoThree, @function
BuildOneTwoThree:
.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -16[rbp], 0
	lea	rax, -16[rbp]
	mov	esi, 3
	mov	rdi, rax
	call	Push
	lea	rax, -16[rbp]
	mov	esi, 2
	mov	rdi, rax
	call	Push
	lea	rax, -16[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	Push
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	BuildOneTwoThree, .-BuildOneTwoThree
	.section	.rodata
.LC0:
	.string	"%d-->"
.LC1:
	.string	"NULL"
	.text
	.globl	Visualize
	.type	Visualize, @function
Visualize:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L10
.L11:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -8[rbp], rax
.L10:
	cmp	QWORD PTR -8[rbp], 0
	jne	.L11
	lea	rdi, .LC1[rip]
	call	puts@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	Visualize, .-Visualize
	.globl	Count
	.type	Count, @function
Count:
.LFB10:
	.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 -12[rbp], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L13
.L15:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -28[rbp], eax
	jne	.L14
	add	DWORD PTR -12[rbp], 1
.L14:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -8[rbp], rax
.L13:
	cmp	QWORD PTR -8[rbp], 0
	jne	.L15
	mov	eax, DWORD PTR -12[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	Count, .-Count
	.section	.rodata
.LC2:
	.string	"the_stack_data/29826179.c"
.LC3:
	.string	"count == 1"
	.text
	.globl	CountTest
	.type	CountTest, @function
CountTest:
.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	eax, 0
	call	BuildOneTwoThree
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 2
	mov	rdi, rax
	call	Count
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 1
	je	.L19
	lea	rcx, __PRETTY_FUNCTION__.7[rip]
	mov	edx, 64
	lea	rsi, .LC2[rip]
	lea	rdi, .LC3[rip]
	call	__assert_fail@PLT
.L19:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	CountTest, .-CountTest
	.section	.rodata
.LC4:
	.string	"index < Length(head)"
	.text
	.globl	GetNth
	.type	GetNth, @function
GetNth:
.LFB12:
	.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	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	Length
	cmp	DWORD PTR -28[rbp], eax
	jl	.L21
	lea	rcx, __PRETTY_FUNCTION__.6[rip]
	mov	edx, 70
	lea	rsi, .LC2[rip]
	lea	rdi, .LC4[rip]
	call	__assert_fail@PLT
.L21:
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L22
.L24:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -8[rbp], rax
.L22:
	cmp	QWORD PTR -8[rbp], 0
	je	.L23
	mov	eax, DWORD PTR -28[rbp]
	lea	edx, -1[rax]
	mov	DWORD PTR -28[rbp], edx
	test	eax, eax
	jne	.L24
.L23:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	GetNth, .-GetNth
	.section	.rodata
.LC5:
	.string	"lastNode == 3"
	.text
	.globl	GetNthTest
	.type	GetNthTest, @function
GetNthTest:
.LFB13:
	.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	eax, 0
	call	BuildOneTwoThree
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 2
	mov	rdi, rax
	call	GetNth
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 3
	je	.L28
	lea	rcx, __PRETTY_FUNCTION__.5[rip]
	mov	edx, 81
	lea	rsi, .LC2[rip]
	lea	rdi, .LC5[rip]
	call	__assert_fail@PLT
.L28:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	GetNthTest, .-GetNthTest
	.globl	DeleteList
	.type	DeleteList, @function
DeleteList:
.LFB14:
	.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	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -16[rbp], rax
	jmp	.L30
.L31:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR -16[rbp], rax
.L30:
	cmp	QWORD PTR -16[rbp], 0
	jne	.L31
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR [rax], 0
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	DeleteList, .-DeleteList
	.section	.rodata
.LC6:
	.string	"myList == NULL"
	.text
	.globl	DeleteListTest
	.type	DeleteListTest, @function
DeleteListTest:
.LFB15:
	.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
	mov	eax, 0
	call	BuildOneTwoThree
	mov	QWORD PTR -16[rbp], rax
	lea	rax, -16[rbp]
	mov	rdi, rax
	call	DeleteList
	mov	rax, QWORD PTR -16[rbp]
	test	rax, rax
	je	.L35
	lea	rcx, __PRETTY_FUNCTION__.4[rip]
	mov	edx, 99
	lea	rsi, .LC2[rip]
	lea	rdi, .LC6[rip]
	call	__assert_fail@PLT
.L35:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L34
	call	__stack_chk_fail@PLT
.L34:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	DeleteListTest, .-DeleteListTest
	.section	.rodata
.LC7:
	.string	"Length(*headRef) > 0"
.LC8:
	.string	"current != NULL"
	.text
	.globl	Pop
	.type	Pop, @function
Pop:
.LFB16:
	.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	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	Length
	test	eax, eax
	jg	.L37
	lea	rcx, __PRETTY_FUNCTION__.3[rip]
	mov	edx, 106
	lea	rsi, .LC2[rip]
	lea	rdi, .LC7[rip]
	call	__assert_fail@PLT
.L37:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L38
	lea	rcx, __PRETTY_FUNCTION__.3[rip]
	mov	edx, 108
	lea	rsi, .LC2[rip]
	lea	rdi, .LC8[rip]
	call	__assert_fail@PLT
.L38:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -12[rbp], eax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, DWORD PTR -12[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	Pop, .-Pop
	.section	.rodata
.LC9:
	.string	"a==1"
.LC10:
	.string	"b==2"
.LC11:
	.string	"c==3"
.LC12:
	.string	"len == 0"
	.text
	.globl	PopTest
	.type	PopTest, @function
PopTest:
.LFB17:
	.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	eax, 0
	call	BuildOneTwoThree
	mov	QWORD PTR -16[rbp], rax
	lea	rax, -16[rbp]
	mov	rdi, rax
	call	Pop
	mov	DWORD PTR -32[rbp], eax
	cmp	DWORD PTR -32[rbp], 1
	je	.L41
	lea	rcx, __PRETTY_FUNCTION__.2[rip]
	mov	edx, 118
	lea	rsi, .LC2[rip]
	lea	rdi, .LC9[rip]
	call	__assert_fail@PLT
.L41:
	lea	rax, -16[rbp]
	mov	rdi, rax
	call	Pop
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -28[rbp], 2
	je	.L42
	lea	rcx, __PRETTY_FUNCTION__.2[rip]
	mov	edx, 120
	lea	rsi, .LC2[rip]
	lea	rdi, .LC10[rip]
	call	__assert_fail@PLT
.L42:
	lea	rax, -16[rbp]
	mov	rdi, rax
	call	Pop
	mov	DWORD PTR -24[rbp], eax
	cmp	DWORD PTR -24[rbp], 3
	je	.L43
	lea	rcx, __PRETTY_FUNCTION__.2[rip]
	mov	edx, 122
	lea	rsi, .LC2[rip]
	lea	rdi, .LC11[rip]
	call	__assert_fail@PLT
.L43:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	Length
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	je	.L44
	lea	rcx, __PRETTY_FUNCTION__.2[rip]
	mov	edx, 124
	lea	rsi, .LC2[rip]
	lea	rdi, .LC12[rip]
	call	__assert_fail@PLT
.L44:
	lea	rax, -16[rbp]
	mov	rdi, rax
	call	DeleteList
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L45
	call	__stack_chk_fail@PLT
.L45:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	PopTest, .-PopTest
	.section	.rodata
.LC13:
	.string	"index < Length(*headRef) + 1"
	.text
	.globl	InsertNth
	.type	InsertNth, @function
InsertNth:
.LFB18:
	.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 -40[rbp], rdi
	mov	DWORD PTR -44[rbp], esi
	mov	DWORD PTR -48[rbp], edx
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	Length
	cmp	DWORD PTR -44[rbp], eax
	jle	.L47
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 132
	lea	rsi, .LC2[rip]
	lea	rdi, .LC13[rip]
	call	__assert_fail@PLT
.L47:
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -16[rbp], rax
	mov	DWORD PTR -20[rbp], 0
	jmp	.L48
.L49:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -16[rbp], rax
.L48:
	add	DWORD PTR -20[rbp], 1
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, DWORD PTR -44[rbp]
	jl	.L49
	mov	edi, 16
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -48[rbp]
	mov	DWORD PTR [rax], edx
	cmp	QWORD PTR -16[rbp], 0
	jne	.L50
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], rdx
	jmp	.L52
.L50:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], rdx
.L52:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	InsertNth, .-InsertNth
	.section	.rodata
.LC14:
	.string	"Running InsertNthTest"
.LC15:
	.string	"Length(head) == 3"
	.text
	.globl	InsertNthTest
	.type	InsertNthTest, @function
InsertNthTest:
.LFB19:
	.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
	mov	QWORD PTR -16[rbp], 0
	lea	rdi, .LC14[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	Visualize
	lea	rax, -16[rbp]
	mov	edx, 13
	mov	esi, 0
	mov	rdi, rax
	call	InsertNth
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	Visualize
	lea	rax, -16[rbp]
	mov	edx, 42
	mov	esi, 1
	mov	rdi, rax
	call	InsertNth
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	Visualize
	lea	rax, -16[rbp]
	mov	edx, 5
	mov	esi, 1
	mov	rdi, rax
	call	InsertNth
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	Length
	cmp	eax, 3
	je	.L54
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 156
	lea	rsi, .LC2[rip]
	lea	rdi, .LC15[rip]
	call	__assert_fail@PLT
.L54:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	Visualize
	lea	rax, -16[rbp]
	mov	rdi, rax
	call	DeleteList
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L55
	call	__stack_chk_fail@PLT
.L55:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.size	InsertNthTest, .-InsertNthTest
	.section	.rodata
.LC16:
	.string	"Inserting Node with data %d\n"
	.text
	.globl	SortedInsert
	.type	SortedInsert, @function
SortedInsert:
.LFB20:
	.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	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -16[rbp], rax
	mov	QWORD PTR -8[rbp], 0
	cmp	QWORD PTR -16[rbp], 0
	jne	.L59
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	QWORD PTR [rax], rdx
	jmp	.L56
.L64:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	edx, eax
	jle	.L60
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	cmp	QWORD PTR -16[rbp], rax
	jne	.L65
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	QWORD PTR [rax], rdx
	jmp	.L65
.L60:
	cmp	QWORD PTR -8[rbp], 0
	jne	.L62
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], rdx
	jmp	.L63
.L62:
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	edx, eax
	jg	.L63
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], rdx
	jmp	.L56
.L63:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -16[rbp], rax
.L59:
	cmp	QWORD PTR -16[rbp], 0
	jne	.L64
	jmp	.L56
.L65:
	nop
.L56:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE20:
	.size	SortedInsert, .-SortedInsert
	.section	.rodata
.LC17:
	.string	"Running SortedInsertTest"
.LC18:
	.string	"Test empty SortedInsertTest"
.LC19:
	.string	"Try adding something else"
	.text
	.globl	SortedInsertTest
	.type	SortedInsertTest, @function
SortedInsertTest:
.LFB21:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC17[rip]
	call	puts@PLT
	mov	QWORD PTR -72[rbp], 0
	lea	rax, -72[rbp]
	mov	esi, 10
	mov	rdi, rax
	call	Push
	lea	rax, -72[rbp]
	mov	esi, 5
	mov	rdi, rax
	call	Push
	lea	rax, -72[rbp]
	mov	esi, 3
	mov	rdi, rax
	call	Push
	lea	rax, -72[rbp]
	mov	esi, 2
	mov	rdi, rax
	call	Push
	lea	rax, -72[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	Push
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	Visualize
	mov	edi, 16
	call	malloc@PLT
	mov	QWORD PTR -56[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR [rax], 0
	mov	rdx, QWORD PTR -56[rbp]
	lea	rax, -72[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	SortedInsert
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	Visualize
	mov	edi, 16
	call	malloc@PLT
	mov	QWORD PTR -48[rbp], rax
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR [rax], 4
	mov	rdx, QWORD PTR -48[rbp]
	lea	rax, -72[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	SortedInsert
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	Visualize
	mov	edi, 16
	call	malloc@PLT
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR [rax], 8
	mov	rdx, QWORD PTR -40[rbp]
	lea	rax, -72[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	SortedInsert
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	Visualize
	mov	edi, 16
	call	malloc@PLT
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR [rax], 80
	mov	rdx, QWORD PTR -32[rbp]
	lea	rax, -72[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	SortedInsert
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	Visualize
	lea	rdi, .LC18[rip]
	call	puts@PLT
	mov	QWORD PTR -64[rbp], 0
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	Visualize
	mov	edi, 16
	call	malloc@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR [rax], 10
	mov	rdx, QWORD PTR -24[rbp]
	lea	rax, -64[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	SortedInsert
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	Visualize
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 16
	call	malloc@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR [rax], -2
	mov	rdx, QWORD PTR -16[rbp]
	lea	rax, -64[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	SortedInsert
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	Visualize
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	DeleteList
	lea	rax, -72[rbp]
	mov	rdi, rax
	call	DeleteList
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L67
	call	__stack_chk_fail@PLT
.L67:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE21:
	.size	SortedInsertTest, .-SortedInsertTest
	.globl	InsertSort
	.type	InsertSort, @function
InsertSort:
.LFB22:
	.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 -40[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -32[rbp], 0
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -24[rbp], rax
	jmp	.L69
.L70:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -16[rbp], rax
	mov	rdx, QWORD PTR -24[rbp]
	lea	rax, -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	SortedInsert
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR -24[rbp], rax
.L69:
	cmp	QWORD PTR -24[rbp], 0
	jne	.L70
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR [rax], rdx
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L71
	call	__stack_chk_fail@PLT
.L71:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE22:
	.size	InsertSort, .-InsertSort
	.section	.rodata
	.align 8
.LC20:
	.string	"==========\nStarting Insert Sort Test"
	.text
	.globl	InsertSortTest
	.type	InsertSortTest, @function
InsertSortTest:
.LFB23:
	.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, .LC20[rip]
	call	puts@PLT
	mov	QWORD PTR -16[rbp], 0
	lea	rax, -16[rbp]
	mov	esi, 10
	mov	rdi, rax
	call	Push
	lea	rax, -16[rbp]
	mov	esi, 12
	mov	rdi, rax
	call	Push
	lea	rax, -16[rbp]
	mov	esi, 48
	mov	rdi, rax
	call	Push
	lea	rax, -16[rbp]
	mov	esi, 8
	mov	rdi, rax
	call	Push
	lea	rax, -16[rbp]
	mov	esi, -2
	mov	rdi, rax
	call	Push
	lea	rax, -16[rbp]
	mov	esi, 3
	mov	rdi, rax
	call	Push
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	Visualize
	lea	rax, -16[rbp]
	mov	rdi, rax
	call	InsertSort
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	Visualize
	lea	rax, -16[rbp]
	mov	rdi, rax
	call	DeleteList
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L73
	call	__stack_chk_fail@PLT
.L73:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE23:
	.size	InsertSortTest, .-InsertSortTest
	.section	.rodata
	.align 8
.LC21:
	.string	"Appending list A (length: %d) list B (length: %d)\n"
	.text
	.globl	Append
	.type	Append, @function
Append:
.LFB24:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 40
	.cfi_offset 3, -24
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	Length
	mov	ebx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	Length
	mov	edx, ebx
	mov	esi, eax
	lea	rdi, .LC21[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L75
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR [rax], rdx
	jmp	.L76
.L75:
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L76
	jmp	.L77
.L78:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -24[rbp], rax
.L77:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	jne	.L78
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 8[rax], rdx
.L76:
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR [rax], 0
	nop
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE24:
	.size	Append, .-Append
	.section	.rodata
	.align 8
.LC22:
	.string	"============================\nAppend Tests"
	.align 8
.LC23:
	.string	"Testing a,b as normal populated lists"
.LC24:
	.string	"Testing a,b as empty lists"
.LC25:
	.string	"A empty Not B"
.LC26:
	.string	"B empty Not A"
.LC27:
	.string	"A empty B empty"
	.text
	.globl	AppendTest
	.type	AppendTest, @function
AppendTest:
.LFB25:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC22[rip]
	call	puts@PLT
	mov	QWORD PTR -72[rbp], 0
	mov	QWORD PTR -64[rbp], 0
	mov	QWORD PTR -56[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	QWORD PTR -16[rbp], 0
	lea	rdi, .LC23[rip]
	call	puts@PLT
	lea	rax, -72[rbp]
	mov	esi, 2
	mov	rdi, rax
	call	Push
	lea	rax, -72[rbp]
	mov	esi, 13
	mov	rdi, rax
	call	Push
	lea	rax, -72[rbp]
	mov	esi, 581
	mov	rdi, rax
	call	Push
	lea	rax, -64[rbp]
	mov	esi, 132
	mov	rdi, rax
	call	Push
	lea	rax, -64[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	Push
	lea	rax, -64[rbp]
	mov	esi, 783
	mov	rdi, rax
	call	Push
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	Visualize
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	Visualize
	lea	rdx, -64[rbp]
	lea	rax, -72[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	Append
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	Visualize
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	Visualize
	lea	rdi, .LC24[rip]
	call	puts@PLT
	lea	rdi, .LC25[rip]
	call	puts@PLT
	mov	eax, 0
	call	BuildOneTwoThree
	mov	QWORD PTR -48[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	Visualize
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	Visualize
	lea	rdx, -48[rbp]
	lea	rax, -56[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	Append
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	Visualize
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	Visualize
	lea	rdi, .LC26[rip]
	call	puts@PLT
	mov	eax, 0
	call	BuildOneTwoThree
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	Visualize
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	Visualize
	lea	rdx, -32[rbp]
	lea	rax, -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	Append
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	Visualize
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	Visualize
	lea	rdi, .LC27[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	Visualize
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	Visualize
	lea	rdx, -16[rbp]
	lea	rax, -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	Append
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	Visualize
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	Visualize
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L80
	call	__stack_chk_fail@PLT
.L80:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE25:
	.size	AppendTest, .-AppendTest
	.globl	main
	.type	main, @function
main:
.LFB26:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, 0
	call	CountTest
	mov	eax, 0
	call	GetNthTest
	mov	eax, 0
	call	DeleteListTest
	mov	eax, 0
	call	PopTest
	mov	eax, 0
	call	InsertNthTest
	mov	eax, 0
	call	SortedInsertTest
	mov	eax, 0
	call	InsertSortTest
	mov	eax, 0
	call	AppendTest
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE26:
	.size	main, .-main
	.section	.rodata
	.align 8
	.type	__PRETTY_FUNCTION__.7, @object
	.size	__PRETTY_FUNCTION__.7, 10
__PRETTY_FUNCTION__.7:
	.string	"CountTest"
	.type	__PRETTY_FUNCTION__.6, @object
	.size	__PRETTY_FUNCTION__.6, 7
__PRETTY_FUNCTION__.6:
	.string	"GetNth"
	.align 8
	.type	__PRETTY_FUNCTION__.5, @object
	.size	__PRETTY_FUNCTION__.5, 11
__PRETTY_FUNCTION__.5:
	.string	"GetNthTest"
	.align 8
	.type	__PRETTY_FUNCTION__.4, @object
	.size	__PRETTY_FUNCTION__.4, 15
__PRETTY_FUNCTION__.4:
	.string	"DeleteListTest"
	.type	__PRETTY_FUNCTION__.3, @object
	.size	__PRETTY_FUNCTION__.3, 4
__PRETTY_FUNCTION__.3:
	.string	"Pop"
	.align 8
	.type	__PRETTY_FUNCTION__.2, @object
	.size	__PRETTY_FUNCTION__.2, 8
__PRETTY_FUNCTION__.2:
	.string	"PopTest"
	.align 8
	.type	__PRETTY_FUNCTION__.1, @object
	.size	__PRETTY_FUNCTION__.1, 10
__PRETTY_FUNCTION__.1:
	.string	"InsertNth"
	.align 8
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 14
__PRETTY_FUNCTION__.0:
	.string	"InsertNthTest"
	.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	"29826179.c"
	.text
	.align	2
	.global	Length
	.syntax unified
	.arm
	.fpu softvfp
	.type	Length, %function
Length:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-8]
	b	.L2
.L3:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-8]
.L2:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L3
	ldr	r3, [fp, #-12]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	Length, .-Length
	.align	2
	.global	Push
	.syntax unified
	.arm
	.fpu softvfp
	.type	Push, %function
Push:
	@ 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]
	mov	r0, #8
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-20]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	str	r2, [r3]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	Push, .-Push
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	BuildOneTwoThree
	.syntax unified
	.arm
	.fpu softvfp
	.type	BuildOneTwoThree, %function
BuildOneTwoThree:
	@ 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	r3, .L9
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-12]
	sub	r3, fp, #12
	mov	r1, #3
	mov	r0, r3
	bl	Push
	sub	r3, fp, #12
	mov	r1, #2
	mov	r0, r3
	bl	Push
	sub	r3, fp, #12
	mov	r1, #1
	mov	r0, r3
	bl	Push
	ldr	r3, [fp, #-12]
	ldr	r2, .L9
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L8
	bl	__stack_chk_fail
.L8:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC0
	.size	BuildOneTwoThree, .-BuildOneTwoThree
	.section	.rodata
	.align	2
.LC1:
	.ascii	"%d-->\000"
	.align	2
.LC2:
	.ascii	"NULL\000"
	.text
	.align	2
	.global	Visualize
	.syntax unified
	.arm
	.fpu softvfp
	.type	Visualize, %function
Visualize:
	@ 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]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-8]
	b	.L12
.L13:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L14
	bl	printf
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-8]
.L12:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L13
	ldr	r0, .L14+4
	bl	puts
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC1
	.word	.LC2
	.size	Visualize, .-Visualize
	.align	2
	.global	Count
	.syntax unified
	.arm
	.fpu softvfp
	.type	Count, %function
Count:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-8]
	b	.L17
.L19:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	bne	.L18
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L18:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-8]
.L17:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L19
	ldr	r3, [fp, #-12]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	Count, .-Count
	.section	.rodata
	.align	2
.LC3:
	.ascii	"the_stack_data/29826179.c\000"
	.align	2
.LC4:
	.ascii	"count == 1\000"
	.text
	.align	2
	.global	CountTest
	.syntax unified
	.arm
	.fpu softvfp
	.type	CountTest, %function
CountTest:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	bl	BuildOneTwoThree
	str	r0, [fp, #-12]
	mov	r1, #2
	ldr	r0, [fp, #-12]
	bl	Count
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #1
	beq	.L23
	ldr	r3, .L24
	mov	r2, #64
	ldr	r1, .L24+4
	ldr	r0, .L24+8
	bl	__assert_fail
.L23:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L25:
	.align	2
.L24:
	.word	__PRETTY_FUNCTION__.5168
	.word	.LC3
	.word	.LC4
	.size	CountTest, .-CountTest
	.section	.rodata
	.align	2
.LC5:
	.ascii	"index < Length(head)\000"
	.text
	.align	2
	.global	GetNth
	.syntax unified
	.arm
	.fpu softvfp
	.type	GetNth, %function
GetNth:
	@ 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	r0, [fp, #-16]
	bl	Length
	mov	r2, r0
	ldr	r3, [fp, #-20]
	cmp	r3, r2
	blt	.L27
	ldr	r3, .L32
	mov	r2, #70
	ldr	r1, .L32+4
	ldr	r0, .L32+8
	bl	__assert_fail
.L27:
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-8]
	b	.L28
.L30:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-8]
.L28:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L29
	ldr	r3, [fp, #-20]
	sub	r2, r3, #1
	str	r2, [fp, #-20]
	cmp	r3, #0
	bne	.L30
.L29:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L33:
	.align	2
.L32:
	.word	__PRETTY_FUNCTION__.5173
	.word	.LC3
	.word	.LC5
	.size	GetNth, .-GetNth
	.section	.rodata
	.align	2
.LC6:
	.ascii	"lastNode == 3\000"
	.text
	.align	2
	.global	GetNthTest
	.syntax unified
	.arm
	.fpu softvfp
	.type	GetNthTest, %function
GetNthTest:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	bl	BuildOneTwoThree
	str	r0, [fp, #-12]
	mov	r1, #2
	ldr	r0, [fp, #-12]
	bl	GetNth
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #3
	beq	.L36
	ldr	r3, .L37
	mov	r2, #81
	ldr	r1, .L37+4
	ldr	r0, .L37+8
	bl	__assert_fail
.L36:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L38:
	.align	2
.L37:
	.word	__PRETTY_FUNCTION__.5182
	.word	.LC3
	.word	.LC6
	.size	GetNthTest, .-GetNthTest
	.align	2
	.global	DeleteList
	.syntax unified
	.arm
	.fpu softvfp
	.type	DeleteList, %function
DeleteList:
	@ 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]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	b	.L40
.L41:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-8]
	ldr	r0, [fp, #-12]
	bl	free
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-12]
.L40:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L41
	ldr	r3, [fp, #-16]
	mov	r2, #0
	str	r2, [r3]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	DeleteList, .-DeleteList
	.section	.rodata
	.align	2
.LC7:
	.ascii	"myList == NULL\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	DeleteListTest
	.syntax unified
	.arm
	.fpu softvfp
	.type	DeleteListTest, %function
DeleteListTest:
	@ 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	r3, .L46
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	bl	BuildOneTwoThree
	mov	r3, r0
	str	r3, [fp, #-12]
	sub	r3, fp, #12
	mov	r0, r3
	bl	DeleteList
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L45
	ldr	r3, .L46+4
	mov	r2, #99
	ldr	r1, .L46+8
	ldr	r0, .L46+12
	bl	__assert_fail
.L45:
	nop
	ldr	r3, .L46
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L44
	bl	__stack_chk_fail
.L44:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L47:
	.align	2
.L46:
	.word	.LC8
	.word	__PRETTY_FUNCTION__.5194
	.word	.LC3
	.word	.LC7
	.size	DeleteListTest, .-DeleteListTest
	.section	.rodata
	.align	2
.LC9:
	.ascii	"Length(*headRef) > 0\000"
	.align	2
.LC10:
	.ascii	"current != NULL\000"
	.text
	.align	2
	.global	Pop
	.syntax unified
	.arm
	.fpu softvfp
	.type	Pop, %function
Pop:
	@ 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]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	mov	r0, r3
	bl	Length
	mov	r3, r0
	cmp	r3, #0
	bgt	.L49
	ldr	r3, .L52
	mov	r2, #106
	ldr	r1, .L52+4
	ldr	r0, .L52+8
	bl	__assert_fail
.L49:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L50
	ldr	r3, .L52
	mov	r2, #108
	ldr	r1, .L52+4
	ldr	r0, .L52+12
	bl	__assert_fail
.L50:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	str	r2, [r3]
	ldr	r0, [fp, #-12]
	bl	free
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L53:
	.align	2
.L52:
	.word	__PRETTY_FUNCTION__.5198
	.word	.LC3
	.word	.LC9
	.word	.LC10
	.size	Pop, .-Pop
	.section	.rodata
	.align	2
.LC11:
	.ascii	"a==1\000"
	.align	2
.LC12:
	.ascii	"b==2\000"
	.align	2
.LC13:
	.ascii	"c==3\000"
	.align	2
.LC14:
	.ascii	"len == 0\000"
	.align	2
.LC15:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	PopTest
	.syntax unified
	.arm
	.fpu softvfp
	.type	PopTest, %function
PopTest:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	ldr	r3, .L60
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	bl	BuildOneTwoThree
	mov	r3, r0
	str	r3, [fp, #-28]
	sub	r3, fp, #28
	mov	r0, r3
	bl	Pop
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #1
	beq	.L55
	ldr	r3, .L60+4
	mov	r2, #118
	ldr	r1, .L60+8
	ldr	r0, .L60+12
	bl	__assert_fail
.L55:
	sub	r3, fp, #28
	mov	r0, r3
	bl	Pop
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #2
	beq	.L56
	ldr	r3, .L60+4
	mov	r2, #120
	ldr	r1, .L60+8
	ldr	r0, .L60+16
	bl	__assert_fail
.L56:
	sub	r3, fp, #28
	mov	r0, r3
	bl	Pop
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #3
	beq	.L57
	ldr	r3, .L60+4
	mov	r2, #122
	ldr	r1, .L60+8
	ldr	r0, .L60+20
	bl	__assert_fail
.L57:
	ldr	r3, [fp, #-28]
	mov	r0, r3
	bl	Length
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L58
	ldr	r3, .L60+4
	mov	r2, #124
	ldr	r1, .L60+8
	ldr	r0, .L60+24
	bl	__assert_fail
.L58:
	sub	r3, fp, #28
	mov	r0, r3
	bl	DeleteList
	nop
	ldr	r3, .L60
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L59
	bl	__stack_chk_fail
.L59:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L61:
	.align	2
.L60:
	.word	.LC15
	.word	__PRETTY_FUNCTION__.5205
	.word	.LC3
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.size	PopTest, .-PopTest
	.section	.rodata
	.align	2
.LC16:
	.ascii	"index < Length(*headRef) + 1\000"
	.text
	.align	2
	.global	InsertNth
	.syntax unified
	.arm
	.fpu softvfp
	.type	InsertNth, %function
InsertNth:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	mov	r0, r3
	bl	Length
	mov	r2, r0
	ldr	r3, [fp, #-28]
	cmp	r3, r2
	ble	.L63
	ldr	r3, .L69
	mov	r2, #132
	ldr	r1, .L69+4
	ldr	r0, .L69+8
	bl	__assert_fail
.L63:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L64
.L65:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-16]
.L64:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	blt	.L65
	mov	r0, #8
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-32]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L66
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-8]
	str	r2, [r3]
	b	.L68
.L66:
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #4]
.L68:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L70:
	.align	2
.L69:
	.word	__PRETTY_FUNCTION__.5214
	.word	.LC3
	.word	.LC16
	.size	InsertNth, .-InsertNth
	.section	.rodata
	.align	2
.LC17:
	.ascii	"Running InsertNthTest\000"
	.align	2
.LC18:
	.ascii	"Length(head) == 3\000"
	.align	2
.LC19:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	InsertNthTest
	.syntax unified
	.arm
	.fpu softvfp
	.type	InsertNthTest, %function
InsertNthTest:
	@ 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	r3, .L74
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r0, .L74+4
	bl	puts
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	Visualize
	sub	r3, fp, #12
	mov	r2, #13
	mov	r1, #0
	mov	r0, r3
	bl	InsertNth
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	Visualize
	sub	r3, fp, #12
	mov	r2, #42
	mov	r1, #1
	mov	r0, r3
	bl	InsertNth
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	Visualize
	sub	r3, fp, #12
	mov	r2, #5
	mov	r1, #1
	mov	r0, r3
	bl	InsertNth
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	Length
	mov	r3, r0
	cmp	r3, #3
	beq	.L72
	ldr	r3, .L74+8
	mov	r2, #156
	ldr	r1, .L74+12
	ldr	r0, .L74+16
	bl	__assert_fail
.L72:
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	Visualize
	sub	r3, fp, #12
	mov	r0, r3
	bl	DeleteList
	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	.LC19
	.word	.LC17
	.word	__PRETTY_FUNCTION__.5224
	.word	.LC3
	.word	.LC18
	.size	InsertNthTest, .-InsertNthTest
	.section	.rodata
	.align	2
.LC20:
	.ascii	"Inserting Node with data %d\012\000"
	.text
	.align	2
	.global	SortedInsert
	.syntax unified
	.arm
	.fpu softvfp
	.type	SortedInsert, %function
SortedInsert:
	@ 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, [fp, #-20]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L86
	bl	printf
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L79
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-20]
	str	r2, [r3]
	b	.L76
.L84:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	cmp	r2, r3
	ble	.L80
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-12]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bne	.L85
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-20]
	str	r2, [r3]
	b	.L85
.L80:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L82
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-20]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #4]
	b	.L83
.L82:
	ldr	r3, [fp, #-20]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r2, r3
	bgt	.L83
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-20]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #4]
	b	.L76
.L83:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-12]
.L79:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L84
	b	.L76
.L85:
	nop
.L76:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L87:
	.align	2
.L86:
	.word	.LC20
	.size	SortedInsert, .-SortedInsert
	.section	.rodata
	.align	2
.LC21:
	.ascii	"Running SortedInsertTest\000"
	.align	2
.LC22:
	.ascii	"Test empty SortedInsertTest\000"
	.align	2
.LC23:
	.ascii	"Try adding something else\000"
	.align	2
.LC24:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	SortedInsertTest
	.syntax unified
	.arm
	.fpu softvfp
	.type	SortedInsertTest, %function
SortedInsertTest:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	ldr	r3, .L90
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L90+4
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-40]
	sub	r3, fp, #40
	mov	r1, #10
	mov	r0, r3
	bl	Push
	sub	r3, fp, #40
	mov	r1, #5
	mov	r0, r3
	bl	Push
	sub	r3, fp, #40
	mov	r1, #3
	mov	r0, r3
	bl	Push
	sub	r3, fp, #40
	mov	r1, #2
	mov	r0, r3
	bl	Push
	sub	r3, fp, #40
	mov	r1, #1
	mov	r0, r3
	bl	Push
	ldr	r3, [fp, #-40]
	mov	r0, r3
	bl	Visualize
	mov	r0, #8
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	mov	r2, #0
	str	r2, [r3]
	sub	r3, fp, #40
	ldr	r1, [fp, #-32]
	mov	r0, r3
	bl	SortedInsert
	ldr	r3, [fp, #-40]
	mov	r0, r3
	bl	Visualize
	mov	r0, #8
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	mov	r2, #4
	str	r2, [r3]
	sub	r3, fp, #40
	ldr	r1, [fp, #-28]
	mov	r0, r3
	bl	SortedInsert
	ldr	r3, [fp, #-40]
	mov	r0, r3
	bl	Visualize
	mov	r0, #8
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	mov	r2, #8
	str	r2, [r3]
	sub	r3, fp, #40
	ldr	r1, [fp, #-24]
	mov	r0, r3
	bl	SortedInsert
	ldr	r3, [fp, #-40]
	mov	r0, r3
	bl	Visualize
	mov	r0, #8
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	mov	r2, #80
	str	r2, [r3]
	sub	r3, fp, #40
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	SortedInsert
	ldr	r3, [fp, #-40]
	mov	r0, r3
	bl	Visualize
	ldr	r0, .L90+8
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-36]
	mov	r0, r3
	bl	Visualize
	mov	r0, #8
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	mov	r2, #10
	str	r2, [r3]
	sub	r3, fp, #36
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	SortedInsert
	ldr	r3, [fp, #-36]
	mov	r0, r3
	bl	Visualize
	ldr	r0, .L90+12
	bl	printf
	mov	r0, #8
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	mvn	r2, #1
	str	r2, [r3]
	sub	r3, fp, #36
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	SortedInsert
	ldr	r3, [fp, #-36]
	mov	r0, r3
	bl	Visualize
	sub	r3, fp, #36
	mov	r0, r3
	bl	DeleteList
	sub	r3, fp, #40
	mov	r0, r3
	bl	DeleteList
	nop
	ldr	r3, .L90
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L89
	bl	__stack_chk_fail
.L89:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L91:
	.align	2
.L90:
	.word	.LC24
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.size	SortedInsertTest, .-SortedInsertTest
	.section	.rodata
	.align	2
.LC25:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	InsertSort
	.syntax unified
	.arm
	.fpu softvfp
	.type	InsertSort, %function
InsertSort:
	@ 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]
	ldr	r3, .L96
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	b	.L93
.L94:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-12]
	sub	r3, fp, #20
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	SortedInsert
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-16]
.L93:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L94
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-24]
	str	r2, [r3]
	nop
	ldr	r3, .L96
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L95
	bl	__stack_chk_fail
.L95:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L97:
	.align	2
.L96:
	.word	.LC25
	.size	InsertSort, .-InsertSort
	.section	.rodata
	.align	2
.LC26:
	.ascii	"==========\012Starting Insert Sort Test\000"
	.align	2
.LC27:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	InsertSortTest
	.syntax unified
	.arm
	.fpu softvfp
	.type	InsertSortTest, %function
InsertSortTest:
	@ 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	r3, .L100
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L100+4
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-12]
	sub	r3, fp, #12
	mov	r1, #10
	mov	r0, r3
	bl	Push
	sub	r3, fp, #12
	mov	r1, #12
	mov	r0, r3
	bl	Push
	sub	r3, fp, #12
	mov	r1, #48
	mov	r0, r3
	bl	Push
	sub	r3, fp, #12
	mov	r1, #8
	mov	r0, r3
	bl	Push
	sub	r3, fp, #12
	mvn	r1, #1
	mov	r0, r3
	bl	Push
	sub	r3, fp, #12
	mov	r1, #3
	mov	r0, r3
	bl	Push
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	Visualize
	sub	r3, fp, #12
	mov	r0, r3
	bl	InsertSort
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	Visualize
	sub	r3, fp, #12
	mov	r0, r3
	bl	DeleteList
	nop
	ldr	r3, .L100
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L99
	bl	__stack_chk_fail
.L99:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L101:
	.align	2
.L100:
	.word	.LC27
	.word	.LC26
	.size	InsertSortTest, .-InsertSortTest
	.section	.rodata
	.align	2
.LC28:
	.ascii	"Appending list A (length: %d) list B (length: %d)\012"
	.ascii	"\000"
	.text
	.align	2
	.global	Append
	.syntax unified
	.arm
	.fpu softvfp
	.type	Append, %function
Append:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	mov	r0, r3
	bl	Length
	mov	r4, r0
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	mov	r0, r3
	bl	Length
	mov	r3, r0
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L107
	bl	printf
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L103
	ldr	r3, [fp, #-28]
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	str	r2, [r3]
	b	.L104
.L103:
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L104
	b	.L105
.L106:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-16]
.L105:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bne	.L106
	ldr	r3, [fp, #-28]
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	str	r2, [r3, #4]
.L104:
	ldr	r3, [fp, #-28]
	mov	r2, #0
	str	r2, [r3]
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L108:
	.align	2
.L107:
	.word	.LC28
	.size	Append, .-Append
	.section	.rodata
	.align	2
.LC29:
	.ascii	"============================\012Append Tests\000"
	.align	2
.LC30:
	.ascii	"Testing a,b as normal populated lists\000"
	.align	2
.LC31:
	.ascii	"Testing a,b as empty lists\000"
	.align	2
.LC32:
	.ascii	"A empty Not B\000"
	.align	2
.LC33:
	.ascii	"B empty Not A\000"
	.align	2
.LC34:
	.ascii	"A empty B empty\000"
	.align	2
.LC35:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	AppendTest
	.syntax unified
	.arm
	.fpu softvfp
	.type	AppendTest, %function
AppendTest:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	ldr	r3, .L111
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L111+4
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r0, .L111+8
	bl	puts
	sub	r3, fp, #40
	mov	r1, #2
	mov	r0, r3
	bl	Push
	sub	r3, fp, #40
	mov	r1, #13
	mov	r0, r3
	bl	Push
	sub	r3, fp, #40
	ldr	r1, .L111+12
	mov	r0, r3
	bl	Push
	sub	r3, fp, #36
	mov	r1, #132
	mov	r0, r3
	bl	Push
	sub	r3, fp, #36
	mov	r1, #1
	mov	r0, r3
	bl	Push
	sub	r3, fp, #36
	ldr	r1, .L111+16
	mov	r0, r3
	bl	Push
	ldr	r3, [fp, #-40]
	mov	r0, r3
	bl	Visualize
	ldr	r3, [fp, #-36]
	mov	r0, r3
	bl	Visualize
	sub	r2, fp, #36
	sub	r3, fp, #40
	mov	r1, r2
	mov	r0, r3
	bl	Append
	ldr	r3, [fp, #-40]
	mov	r0, r3
	bl	Visualize
	ldr	r3, [fp, #-36]
	mov	r0, r3
	bl	Visualize
	ldr	r0, .L111+20
	bl	puts
	ldr	r0, .L111+24
	bl	puts
	bl	BuildOneTwoThree
	mov	r3, r0
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-32]
	mov	r0, r3
	bl	Visualize
	ldr	r3, [fp, #-28]
	mov	r0, r3
	bl	Visualize
	sub	r2, fp, #28
	sub	r3, fp, #32
	mov	r1, r2
	mov	r0, r3
	bl	Append
	ldr	r3, [fp, #-32]
	mov	r0, r3
	bl	Visualize
	ldr	r3, [fp, #-28]
	mov	r0, r3
	bl	Visualize
	ldr	r0, .L111+28
	bl	puts
	bl	BuildOneTwoThree
	mov	r3, r0
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	mov	r0, r3
	bl	Visualize
	ldr	r3, [fp, #-20]
	mov	r0, r3
	bl	Visualize
	sub	r2, fp, #20
	sub	r3, fp, #24
	mov	r1, r2
	mov	r0, r3
	bl	Append
	ldr	r3, [fp, #-24]
	mov	r0, r3
	bl	Visualize
	ldr	r3, [fp, #-20]
	mov	r0, r3
	bl	Visualize
	ldr	r0, .L111+32
	bl	puts
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	Visualize
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	Visualize
	sub	r2, fp, #12
	sub	r3, fp, #16
	mov	r1, r2
	mov	r0, r3
	bl	Append
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	Visualize
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	Visualize
	nop
	ldr	r3, .L111
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L110
	bl	__stack_chk_fail
.L110:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L112:
	.align	2
.L111:
	.word	.LC35
	.word	.LC29
	.word	.LC30
	.word	581
	.word	783
	.word	.LC31
	.word	.LC32
	.word	.LC33
	.word	.LC34
	.size	AppendTest, .-AppendTest
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	bl	CountTest
	bl	GetNthTest
	bl	DeleteListTest
	bl	PopTest
	bl	InsertNthTest
	bl	SortedInsertTest
	bl	InsertSortTest
	bl	AppendTest
	mov	r3, #0
	mov	r0, r3
	pop	{fp, pc}
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.5168, %object
	.size	__PRETTY_FUNCTION__.5168, 10
__PRETTY_FUNCTION__.5168:
	.ascii	"CountTest\000"
	.align	2
	.type	__PRETTY_FUNCTION__.5173, %object
	.size	__PRETTY_FUNCTION__.5173, 7
__PRETTY_FUNCTION__.5173:
	.ascii	"GetNth\000"
	.align	2
	.type	__PRETTY_FUNCTION__.5182, %object
	.size	__PRETTY_FUNCTION__.5182, 11
__PRETTY_FUNCTION__.5182:
	.ascii	"GetNthTest\000"
	.align	2
	.type	__PRETTY_FUNCTION__.5194, %object
	.size	__PRETTY_FUNCTION__.5194, 15
__PRETTY_FUNCTION__.5194:
	.ascii	"DeleteListTest\000"
	.align	2
	.type	__PRETTY_FUNCTION__.5198, %object
	.size	__PRETTY_FUNCTION__.5198, 4
__PRETTY_FUNCTION__.5198:
	.ascii	"Pop\000"
	.align	2
	.type	__PRETTY_FUNCTION__.5205, %object
	.size	__PRETTY_FUNCTION__.5205, 8
__PRETTY_FUNCTION__.5205:
	.ascii	"PopTest\000"
	.align	2
	.type	__PRETTY_FUNCTION__.5214, %object
	.size	__PRETTY_FUNCTION__.5214, 10
__PRETTY_FUNCTION__.5214:
	.ascii	"InsertNth\000"
	.align	2
	.type	__PRETTY_FUNCTION__.5224, %object
	.size	__PRETTY_FUNCTION__.5224, 14
__PRETTY_FUNCTION__.5224:
	.ascii	"InsertNthTest\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
