	.file	"281395.c"
	.intel_syntax noprefix
	.text
	.globl	node
	.bss
	.align 16
	.type	node, @object
	.size	node, 24
node:
	.zero	24
	.globl	head
	.align 8
	.type	head, @object
	.size	head, 8
head:
	.zero	8
	.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	DWORD PTR -12[rbp], 0
	mov	rax, QWORD PTR head[rip]
	test	rax, rax
	je	.L2
	mov	rax, QWORD PTR head[rip]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L3
.L4:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -8[rbp], rax
	add	DWORD PTR -12[rbp], 1
.L3:
	cmp	QWORD PTR -8[rbp], 0
	jne	.L4
.L2:
	mov	eax, DWORD PTR -12[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	length, .-length
	.globl	addBegin
	.type	addBegin, @function
addBegin:
.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	DWORD PTR -20[rbp], edi
	mov	edi, 24
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -20[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR head[rip]
	test	rax, rax
	je	.L7
	mov	rdx, QWORD PTR head[rip]
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR head[rip]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], rdx
	jmp	.L8
.L7:
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 16[rax], 0
.L8:
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR head[rip], rax
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	addBegin, .-addBegin
	.globl	addEnd
	.type	addEnd, @function
addEnd:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	rax, QWORD PTR head[rip]
	test	rax, rax
	jne	.L10
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	addBegin
	jmp	.L14
.L10:
	mov	edi, 24
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -20[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR head[rip]
	mov	QWORD PTR -16[rbp], rax
	jmp	.L12
.L13:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -16[rbp], rax
.L12:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	jne	.L13
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 16[rax], 0
.L14:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	addEnd, .-addEnd
	.globl	addPos
	.type	addPos, @function
addPos:
.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	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	cmp	DWORD PTR -24[rbp], 0
	js	.L21
	cmp	DWORD PTR -24[rbp], 0
	jne	.L17
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	addBegin
	jmp	.L21
.L17:
	mov	eax, 0
	call	length
	cmp	DWORD PTR -24[rbp], eax
	jl	.L18
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	addEnd
	jmp	.L21
.L18:
	mov	edi, 24
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -20[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR head[rip]
	mov	QWORD PTR -16[rbp], rax
	jmp	.L19
.L20:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -16[rbp], rax
	sub	DWORD PTR -24[rbp], 1
.L19:
	cmp	DWORD PTR -24[rbp], 0
	jg	.L20
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	QWORD PTR 16[rax], rdx
	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	rax, QWORD PTR 8[rax]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], rdx
.L21:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	addPos, .-addPos
	.globl	deleteBegin
	.type	deleteBegin, @function
deleteBegin:
.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	DWORD PTR -12[rbp], -1
	mov	rax, QWORD PTR head[rip]
	test	rax, rax
	je	.L23
	mov	rax, QWORD PTR head[rip]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR head[rip]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -12[rbp], eax
	mov	rax, QWORD PTR head[rip]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR head[rip], rax
	mov	rax, QWORD PTR head[rip]
	mov	QWORD PTR 8[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
.L23:
	mov	eax, DWORD PTR -12[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	deleteBegin, .-deleteBegin
	.globl	deleteEnd
	.type	deleteEnd, @function
deleteEnd:
.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, 32
	mov	DWORD PTR -20[rbp], -1
	mov	rax, QWORD PTR head[rip]
	test	rax, rax
	je	.L26
	mov	rax, QWORD PTR head[rip]
	mov	QWORD PTR -16[rbp], rax
	jmp	.L27
.L28:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -16[rbp], rax
.L27:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	jne	.L28
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -20[rbp], eax
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	je	.L29
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR 16[rax], 0
.L29:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
.L26:
	mov	eax, DWORD PTR -20[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	deleteEnd, .-deleteEnd
	.globl	deletePos
	.type	deletePos, @function
deletePos:
.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	DWORD PTR -20[rbp], edi
	mov	rax, QWORD PTR head[rip]
	test	rax, rax
	je	.L32
	cmp	DWORD PTR -20[rbp], 0
	jne	.L33
	mov	eax, 0
	call	deleteBegin
	jmp	.L34
.L33:
	mov	eax, 0
	call	length
	sub	eax, 1
	cmp	DWORD PTR -20[rbp], eax
	jl	.L35
	mov	eax, 0
	call	deleteEnd
	jmp	.L34
.L35:
	mov	rax, QWORD PTR head[rip]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L36
.L37:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -8[rbp], rax
	sub	DWORD PTR -20[rbp], 1
.L36:
	cmp	DWORD PTR -20[rbp], 0
	jg	.L37
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -12[rbp], eax
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdx, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 16[rdx]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdx, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 8[rdx]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 16[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, DWORD PTR -12[rbp]
	jmp	.L34
.L32:
	mov	eax, -1
.L34:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	deletePos, .-deletePos
	.section	.rodata
.LC0:
	.string	"%d "
	.text
	.globl	printList
	.type	printList, @function
printList:
.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	rax, QWORD PTR head[rip]
	test	rax, rax
	je	.L42
	mov	rax, QWORD PTR head[rip]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L40
.L41:
	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 16[rax]
	mov	QWORD PTR -8[rbp], rax
.L40:
	cmp	QWORD PTR -8[rbp], 0
	jne	.L41
.L42:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	printList, .-printList
	.globl	reverse
	.type	reverse, @function
reverse:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, QWORD PTR head[rip]
	test	rax, rax
	je	.L48
	mov	rax, QWORD PTR head[rip]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L45
.L47:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], rdx
	cmp	QWORD PTR -8[rbp], 0
	jne	.L46
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR head[rip], rax
.L46:
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR -16[rbp], rax
.L45:
	cmp	QWORD PTR -16[rbp], 0
	jne	.L47
.L48:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	reverse, .-reverse
	.section	.rodata
	.align 8
.LC1:
	.string	"1 -> Adicionar elemento no inicio."
	.align 8
.LC2:
	.string	"2 -> Adicionar elemento no fim."
	.align 8
.LC3:
	.string	"3 -> Adicionar elemento em qualquer posicao."
	.align 8
.LC4:
	.string	"4 -> Remover elemento no inicio."
.LC5:
	.string	"5 -> Remover elemento no fim."
	.align 8
.LC6:
	.string	"6 -> Remover elemento em qualquer posicao."
.LC7:
	.string	"7 -> Imprimir lista."
.LC8:
	.string	"8 -> Tamanho lista."
.LC9:
	.string	"9 -> Inverter Lista."
.LC10:
	.string	"10 -> Terminar execucao."
	.text
	.globl	printMenu
	.type	printMenu, @function
printMenu:
.LFB15:
	.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
	lea	rdi, .LC7[rip]
	call	puts@PLT
	lea	rdi, .LC8[rip]
	call	puts@PLT
	lea	rdi, .LC9[rip]
	call	puts@PLT
	lea	rdi, .LC10[rip]
	call	puts@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	printMenu, .-printMenu
	.section	.rodata
.LC11:
	.string	"%d"
.LC12:
	.string	"Valor: "
.LC13:
	.string	"Index: "
.LC14:
	.string	"\nElemento removido: %d"
.LC15:
	.string	"\nPosi\303\247\303\243o: "
.LC16:
	.string	"\nPosi\303\247\303\243o inv\303\241lida"
.LC17:
	.string	"Tamanho: %d"
.LC18:
	.string	"Execu\303\247\303\243o terminada"
	.text
	.globl	main
	.type	main, @function
main:
.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -32[rbp], 0
	mov	DWORD PTR -16[rbp], 0
	jmp	.L51
.L68:
	mov	eax, 0
	call	printMenu
	lea	rax, -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	jmp	.L52
.L53:
	mov	eax, 0
	call	printMenu
	lea	rax, -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
.L52:
	mov	eax, DWORD PTR -32[rbp]
	test	eax, eax
	js	.L53
	mov	eax, DWORD PTR -32[rbp]
	cmp	eax, 11
	jg	.L53
	mov	edi, 10
	call	putchar@PLT
	mov	eax, DWORD PTR -32[rbp]
	test	eax, eax
	jle	.L54
	mov	eax, DWORD PTR -32[rbp]
	cmp	eax, 3
	jg	.L54
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -28[rbp]
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -32[rbp]
	cmp	eax, 1
	jne	.L55
	mov	eax, DWORD PTR -28[rbp]
	mov	edi, eax
	call	addBegin
	jmp	.L58
.L55:
	mov	eax, DWORD PTR -32[rbp]
	cmp	eax, 2
	jne	.L57
	mov	eax, DWORD PTR -28[rbp]
	mov	edi, eax
	call	addEnd
	jmp	.L58
.L57:
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	edx, DWORD PTR -24[rbp]
	mov	eax, DWORD PTR -28[rbp]
	mov	esi, edx
	mov	edi, eax
	call	addPos
	jmp	.L58
.L54:
	mov	eax, DWORD PTR -32[rbp]
	cmp	eax, 3
	jle	.L59
	mov	eax, DWORD PTR -32[rbp]
	cmp	eax, 6
	jg	.L59
	mov	eax, DWORD PTR -32[rbp]
	cmp	eax, 4
	jne	.L60
	mov	eax, 0
	call	deleteBegin
	mov	esi, eax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L58
.L60:
	mov	eax, DWORD PTR -32[rbp]
	cmp	eax, 5
	jne	.L62
	mov	eax, 0
	call	deleteEnd
	mov	esi, eax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L58
.L62:
	mov	DWORD PTR -20[rbp], 0
	mov	DWORD PTR -12[rbp], 0
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -20[rbp]
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	deletePos
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], -1
	jne	.L63
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L58
.L63:
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, eax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L58
.L59:
	mov	eax, DWORD PTR -32[rbp]
	cmp	eax, 7
	jne	.L65
	mov	eax, 0
	call	printList
	jmp	.L58
.L65:
	mov	eax, DWORD PTR -32[rbp]
	cmp	eax, 8
	jne	.L66
	mov	eax, 0
	call	length
	mov	esi, eax
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L58
.L66:
	mov	eax, DWORD PTR -32[rbp]
	cmp	eax, 9
	jne	.L67
	mov	eax, 0
	call	reverse
	jmp	.L58
.L67:
	mov	DWORD PTR -16[rbp], 1
.L58:
	mov	edi, 10
	call	putchar@PLT
.L51:
	cmp	DWORD PTR -16[rbp], 0
	je	.L68
	lea	rdi, .LC18[rip]
	call	puts@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L70
	call	__stack_chk_fail@PLT
.L70:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	main, .-main
	.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	"281395.c"
	.text
	.comm	node,12,4
	.comm	head,4,4
	.align	2
	.global	length
	.syntax unified
	.arm
	.fpu softvfp
	.type	length, %function
length:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, .L6
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L2
	ldr	r3, .L6
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	b	.L3
.L4:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L3:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L4
.L2:
	ldr	r3, [fp, #-12]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L7:
	.align	2
.L6:
	.word	head
	.size	length, .-length
	.align	2
	.global	addBegin
	.syntax unified
	.arm
	.fpu softvfp
	.type	addBegin, %function
addBegin:
	@ 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]
	mov	r0, #12
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	str	r2, [r3]
	ldr	r3, .L11
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L9
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	str	r2, [r3, #8]
	ldr	r3, .L11
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #4]
	b	.L10
.L9:
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #8]
.L10:
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r2, .L11
	ldr	r3, [fp, #-8]
	str	r3, [r2]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	head
	.size	addBegin, .-addBegin
	.align	2
	.global	addEnd
	.syntax unified
	.arm
	.fpu softvfp
	.type	addEnd, %function
addEnd:
	@ 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, .L19
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L14
	ldr	r0, [fp, #-16]
	bl	addBegin
	b	.L18
.L14:
	mov	r0, #12
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	str	r2, [r3]
	ldr	r3, .L19
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	b	.L16
.L17:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-12]
.L16:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L17
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #8]
.L18:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	head
	.size	addEnd, .-addEnd
	.align	2
	.global	addPos
	.syntax unified
	.arm
	.fpu softvfp
	.type	addPos, %function
addPos:
	@ 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]
	cmp	r3, #0
	blt	.L27
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L23
	ldr	r0, [fp, #-16]
	bl	addBegin
	b	.L27
.L23:
	bl	length
	mov	r2, r0
	ldr	r3, [fp, #-20]
	cmp	r3, r2
	blt	.L24
	ldr	r0, [fp, #-16]
	bl	addEnd
	b	.L27
.L24:
	mov	r0, #12
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	str	r2, [r3]
	ldr	r3, .L28
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	b	.L25
.L26:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	str	r3, [fp, #-20]
.L25:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bgt	.L26
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-12]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #4]
.L27:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L29:
	.align	2
.L28:
	.word	head
	.size	addPos, .-addPos
	.align	2
	.global	deleteBegin
	.syntax unified
	.arm
	.fpu softvfp
	.type	deleteBegin, %function
deleteBegin:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mvn	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, .L33
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L31
	ldr	r3, .L33
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, .L33
	ldr	r3, [r3]
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	ldr	r3, .L33
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	ldr	r2, .L33
	str	r3, [r2]
	ldr	r3, .L33
	ldr	r3, [r3]
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r0, [fp, #-8]
	bl	free
.L31:
	ldr	r3, [fp, #-12]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L34:
	.align	2
.L33:
	.word	head
	.size	deleteBegin, .-deleteBegin
	.align	2
	.global	deleteEnd
	.syntax unified
	.arm
	.fpu softvfp
	.type	deleteEnd, %function
deleteEnd:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	mvn	r3, #0
	str	r3, [fp, #-16]
	ldr	r3, .L41
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L36
	ldr	r3, .L41
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	b	.L37
.L38:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-12]
.L37:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L38
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L39
	ldr	r3, [fp, #-12]
	mov	r2, #0
	str	r2, [r3, #8]
.L39:
	ldr	r0, [fp, #-8]
	bl	free
.L36:
	ldr	r3, [fp, #-16]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L42:
	.align	2
.L41:
	.word	head
	.size	deleteEnd, .-deleteEnd
	.align	2
	.global	deletePos
	.syntax unified
	.arm
	.fpu softvfp
	.type	deletePos, %function
deletePos:
	@ 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, .L50
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L44
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L45
	bl	deleteBegin
	mov	r3, r0
	b	.L46
.L45:
	bl	length
	mov	r3, r0
	sub	r3, r3, #1
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L47
	bl	deleteEnd
	mov	r3, r0
	b	.L46
.L47:
	ldr	r3, .L50
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	b	.L48
.L49:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	str	r3, [fp, #-16]
.L48:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bgt	.L49
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-12]
	ldr	r2, [r2, #8]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #8]
	ldr	r2, [fp, #-12]
	ldr	r2, [r2, #4]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-12]
	mov	r2, #0
	str	r2, [r3, #8]
	ldr	r3, [fp, #-12]
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r0, [fp, #-12]
	bl	free
	ldr	r3, [fp, #-8]
	b	.L46
.L44:
	mvn	r3, #0
.L46:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L51:
	.align	2
.L50:
	.word	head
	.size	deletePos, .-deletePos
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d \000"
	.text
	.align	2
	.global	printList
	.syntax unified
	.arm
	.fpu softvfp
	.type	printList, %function
printList:
	@ 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, .L57
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L56
	ldr	r3, .L57
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	b	.L54
.L55:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L57+4
	bl	printf
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-8]
.L54:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L55
.L56:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L58:
	.align	2
.L57:
	.word	head
	.word	.LC0
	.size	printList, .-printList
	.align	2
	.global	reverse
	.syntax unified
	.arm
	.fpu softvfp
	.type	reverse, %function
reverse:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	ldr	r3, .L65
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L64
	ldr	r3, .L65
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-8]
	b	.L61
.L63:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-12]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L62
	ldr	r2, .L65
	ldr	r3, [fp, #-12]
	str	r3, [r2]
.L62:
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-12]
.L61:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L63
.L64:
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L66:
	.align	2
.L65:
	.word	head
	.size	reverse, .-reverse
	.section	.rodata
	.align	2
.LC1:
	.ascii	"1 -> Adicionar elemento no inicio.\000"
	.align	2
.LC2:
	.ascii	"2 -> Adicionar elemento no fim.\000"
	.align	2
.LC3:
	.ascii	"3 -> Adicionar elemento em qualquer posicao.\000"
	.align	2
.LC4:
	.ascii	"4 -> Remover elemento no inicio.\000"
	.align	2
.LC5:
	.ascii	"5 -> Remover elemento no fim.\000"
	.align	2
.LC6:
	.ascii	"6 -> Remover elemento em qualquer posicao.\000"
	.align	2
.LC7:
	.ascii	"7 -> Imprimir lista.\000"
	.align	2
.LC8:
	.ascii	"8 -> Tamanho lista.\000"
	.align	2
.LC9:
	.ascii	"9 -> Inverter Lista.\000"
	.align	2
.LC10:
	.ascii	"10 -> Terminar execucao.\000"
	.text
	.align	2
	.global	printMenu
	.syntax unified
	.arm
	.fpu softvfp
	.type	printMenu, %function
printMenu:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L68
	bl	puts
	ldr	r0, .L68+4
	bl	puts
	ldr	r0, .L68+8
	bl	puts
	ldr	r0, .L68+12
	bl	puts
	ldr	r0, .L68+16
	bl	puts
	ldr	r0, .L68+20
	bl	puts
	ldr	r0, .L68+24
	bl	puts
	ldr	r0, .L68+28
	bl	puts
	ldr	r0, .L68+32
	bl	puts
	ldr	r0, .L68+36
	bl	puts
	nop
	pop	{fp, pc}
.L69:
	.align	2
.L68:
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.size	printMenu, .-printMenu
	.section	.rodata
	.align	2
.LC11:
	.ascii	"%d\000"
	.align	2
.LC12:
	.ascii	"Valor: \000"
	.align	2
.LC13:
	.ascii	"Index: \000"
	.align	2
.LC14:
	.ascii	"\012Elemento removido: %d\000"
	.align	2
.LC15:
	.ascii	"\012Posi\303\247\303\243o: \000"
	.align	2
.LC16:
	.ascii	"\012Posi\303\247\303\243o inv\303\241lida\000"
	.align	2
.LC17:
	.ascii	"Tamanho: %d\000"
	.align	2
.LC18:
	.ascii	"Execu\303\247\303\243o terminada\000"
	.align	2
.LC19:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	ldr	r3, .L91
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L71
.L88:
	bl	printMenu
	sub	r3, fp, #32
	mov	r1, r3
	ldr	r0, .L91+4
	bl	__isoc99_scanf
	b	.L72
.L73:
	bl	printMenu
	sub	r3, fp, #32
	mov	r1, r3
	ldr	r0, .L91+4
	bl	__isoc99_scanf
.L72:
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	blt	.L73
	ldr	r3, [fp, #-32]
	cmp	r3, #11
	bgt	.L73
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	ble	.L74
	ldr	r3, [fp, #-32]
	cmp	r3, #3
	bgt	.L74
	ldr	r0, .L91+8
	bl	printf
	sub	r3, fp, #28
	mov	r1, r3
	ldr	r0, .L91+4
	bl	__isoc99_scanf
	ldr	r3, [fp, #-32]
	cmp	r3, #1
	bne	.L75
	ldr	r3, [fp, #-28]
	mov	r0, r3
	bl	addBegin
	b	.L78
.L75:
	ldr	r3, [fp, #-32]
	cmp	r3, #2
	bne	.L77
	ldr	r3, [fp, #-28]
	mov	r0, r3
	bl	addEnd
	b	.L78
.L77:
	ldr	r0, .L91+12
	bl	printf
	sub	r3, fp, #24
	mov	r1, r3
	ldr	r0, .L91+4
	bl	__isoc99_scanf
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-24]
	mov	r1, r2
	mov	r0, r3
	bl	addPos
	b	.L78
.L74:
	ldr	r3, [fp, #-32]
	cmp	r3, #3
	ble	.L79
	ldr	r3, [fp, #-32]
	cmp	r3, #6
	bgt	.L79
	ldr	r3, [fp, #-32]
	cmp	r3, #4
	bne	.L80
	bl	deleteBegin
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L91+16
	bl	printf
	b	.L78
.L80:
	ldr	r3, [fp, #-32]
	cmp	r3, #5
	bne	.L82
	bl	deleteEnd
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L91+16
	bl	printf
	b	.L78
.L82:
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r0, .L91+20
	bl	printf
	sub	r3, fp, #20
	mov	r1, r3
	ldr	r0, .L91+4
	bl	__isoc99_scanf
	ldr	r3, [fp, #-20]
	mov	r0, r3
	bl	deletePos
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	bne	.L83
	ldr	r0, .L91+24
	bl	printf
	b	.L78
.L83:
	ldr	r1, [fp, #-12]
	ldr	r0, .L91+16
	bl	printf
	b	.L78
.L79:
	ldr	r3, [fp, #-32]
	cmp	r3, #7
	bne	.L85
	bl	printList
	b	.L78
.L85:
	ldr	r3, [fp, #-32]
	cmp	r3, #8
	bne	.L86
	bl	length
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L91+28
	bl	printf
	b	.L78
.L86:
	ldr	r3, [fp, #-32]
	cmp	r3, #9
	bne	.L87
	bl	reverse
	b	.L78
.L87:
	mov	r3, #1
	str	r3, [fp, #-16]
.L78:
	mov	r0, #10
	bl	putchar
.L71:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L88
	ldr	r0, .L91+32
	bl	puts
	mov	r3, #0
	ldr	r2, .L91
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L90
	bl	__stack_chk_fail
.L90:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L92:
	.align	2
.L91:
	.word	.LC19
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
