	.file	"43887417.c"
	.intel_syntax noprefix
	.text
	.globl	l
	.bss
	.align 32
	.type	l, @object
	.size	l, 40
l:
	.zero	40
	.globl	pos
	.align 4
	.type	pos, @object
	.size	pos, 4
pos:
	.zero	4
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], 0
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -4[rbp]
	add	eax, eax
	mov	edi, eax
	call	inserir
	add	DWORD PTR -4[rbp], 1
.L2:
	cmp	DWORD PTR -4[rbp], 4
	jle	.L3
	mov	edi, 10
	call	putchar@PLT
	mov	eax, 0
	call	imprimir
	mov	edi, 9
	call	inserir
	mov	edi, 10
	call	inserir
	mov	edi, 9
	call	inserir
	mov	edi, 10
	call	inserir
	mov	edi, 11
	call	inserir
	mov	eax, 0
	call	imprimir
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC0:
	.string	"Elemento ja esta na lista"
	.align 8
.LC1:
	.string	"Nao foi possivel inserir %d. Lista cheia.\n"
	.text
	.globl	inserir
	.type	inserir, @function
inserir:
.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	DWORD PTR -4[rbp], 0
	mov	DWORD PTR -8[rbp], 0
	jmp	.L6
.L8:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, l[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	DWORD PTR -20[rbp], eax
	jne	.L7
	add	DWORD PTR -4[rbp], 1
.L7:
	add	DWORD PTR -8[rbp], 1
.L6:
	mov	eax, DWORD PTR pos[rip]
	cmp	DWORD PTR -8[rbp], eax
	jl	.L8
	cmp	DWORD PTR -4[rbp], 0
	jle	.L9
	lea	rdi, .LC0[rip]
	call	puts@PLT
	jmp	.L12
.L9:
	mov	eax, DWORD PTR pos[rip]
	cmp	eax, 9
	jg	.L11
	mov	eax, DWORD PTR pos[rip]
	lea	edx, 1[rax]
	mov	DWORD PTR pos[rip], edx
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rdx, l[rip]
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	jmp	.L12
.L11:
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
.L12:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	inserir, .-inserir
	.globl	buscar
	.type	buscar, @function
buscar:
.LFB8:
	.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 -20[rbp], edi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L14
.L17:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, l[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	DWORD PTR -20[rbp], eax
	jne	.L15
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L16
.L15:
	add	DWORD PTR -4[rbp], 1
.L14:
	mov	eax, DWORD PTR pos[rip]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L17
	mov	eax, -1
.L16:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	buscar, .-buscar
	.globl	remover
	.type	remover, @function
remover:
.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, 24
	mov	DWORD PTR -20[rbp], edi
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	buscar
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], -1
	je	.L23
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR -8[rbp], eax
	jmp	.L21
.L22:
	mov	eax, DWORD PTR -8[rbp]
	add	eax, 1
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, l[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edx, DWORD PTR -8[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, l[rip]
	mov	DWORD PTR [rcx+rdx], eax
	add	DWORD PTR -8[rbp], 1
.L21:
	mov	eax, DWORD PTR pos[rip]
	sub	eax, 1
	cmp	DWORD PTR -8[rbp], eax
	jl	.L22
	mov	eax, DWORD PTR pos[rip]
	sub	eax, 1
	mov	DWORD PTR pos[rip], eax
	jmp	.L18
.L23:
	nop
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	remover, .-remover
	.section	.rodata
	.align 8
.LC2:
	.string	"Indice %d fora dos limites da Lista.\n"
	.text
	.globl	obter
	.type	obter, @function
obter:
.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 -4[rbp], edi
	cmp	DWORD PTR -4[rbp], 0
	js	.L25
	mov	eax, DWORD PTR pos[rip]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L26
.L25:
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L26:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, l[rip]
	mov	eax, DWORD PTR [rdx+rax]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	obter, .-obter
	.globl	tamanho
	.type	tamanho, @function
tamanho:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR pos[rip]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	tamanho, .-tamanho
	.section	.rodata
.LC3:
	.string	"Lista atual = ["
.LC4:
	.string	" %d"
.LC5:
	.string	" ]"
	.text
	.globl	imprimir
	.type	imprimir, @function
imprimir:
.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, 16
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -4[rbp], 0
	jmp	.L31
.L32:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, l[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L31:
	mov	eax, DWORD PTR pos[rip]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L32
	lea	rdi, .LC5[rip]
	call	puts@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	imprimir, .-imprimir
	.globl	apagar
	.type	apagar, @function
apagar:
.LFB13:
	.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 pos[rip], 0
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	apagar, .-apagar
	.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	"43887417.c"
	.text
	.comm	l,40,4
	.global	pos
	.bss
	.align	2
	.type	pos, %object
	.size	pos, 4
pos:
	.space	4
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L2
.L3:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #1
	mov	r0, r3
	bl	inserir
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L2:
	ldr	r3, [fp, #-8]
	cmp	r3, #4
	ble	.L3
	mov	r0, #10
	bl	putchar
	bl	imprimir
	mov	r0, #9
	bl	inserir
	mov	r0, #10
	bl	inserir
	mov	r0, #9
	bl	inserir
	mov	r0, #10
	bl	inserir
	mov	r0, #11
	bl	inserir
	bl	imprimir
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	main, .-main
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Elemento ja esta na lista\000"
	.align	2
.LC1:
	.ascii	"Nao foi possivel inserir %d. Lista cheia.\012\000"
	.text
	.align	2
	.global	inserir
	.syntax unified
	.arm
	.fpu softvfp
	.type	inserir, %function
inserir:
	@ 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	r3, #0
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L6
.L8:
	ldr	r2, .L13
	ldr	r3, [fp, #-12]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bne	.L7
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L7:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L6:
	ldr	r3, .L13+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L8
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	ble	.L9
	ldr	r0, .L13+8
	bl	puts
	b	.L12
.L9:
	ldr	r3, .L13+4
	ldr	r3, [r3]
	cmp	r3, #9
	bgt	.L11
	ldr	r3, .L13+4
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L13+4
	str	r2, [r1]
	ldr	r1, .L13
	ldr	r2, [fp, #-16]
	str	r2, [r1, r3, lsl #2]
	b	.L12
.L11:
	ldr	r1, [fp, #-16]
	ldr	r0, .L13+12
	bl	printf
.L12:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	l
	.word	pos
	.word	.LC0
	.word	.LC1
	.size	inserir, .-inserir
	.align	2
	.global	buscar
	.syntax unified
	.arm
	.fpu softvfp
	.type	buscar, %function
buscar:
	@ 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, #-8]
	b	.L16
.L19:
	ldr	r2, .L20
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bne	.L17
	ldr	r3, [fp, #-8]
	b	.L18
.L17:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L16:
	ldr	r3, .L20+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L19
	mvn	r3, #0
.L18:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L21:
	.align	2
.L20:
	.word	l
	.word	pos
	.size	buscar, .-buscar
	.align	2
	.global	remover
	.syntax unified
	.arm
	.fpu softvfp
	.type	remover, %function
remover:
	@ 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	r0, [fp, #-16]
	bl	buscar
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	beq	.L27
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-12]
	b	.L25
.L26:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	ldr	r2, .L28
	ldr	r2, [r2, r3, lsl #2]
	ldr	r1, .L28
	ldr	r3, [fp, #-12]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L25:
	ldr	r3, .L28+4
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L26
	ldr	r3, .L28+4
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L28+4
	str	r3, [r2]
	b	.L22
.L27:
	nop
.L22:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L29:
	.align	2
.L28:
	.word	l
	.word	pos
	.size	remover, .-remover
	.section	.rodata
	.align	2
.LC2:
	.ascii	"Indice %d fora dos limites da Lista.\012\000"
	.text
	.align	2
	.global	obter
	.syntax unified
	.arm
	.fpu softvfp
	.type	obter, %function
obter:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	blt	.L31
	ldr	r3, .L34
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L32
.L31:
	ldr	r1, [fp, #-8]
	ldr	r0, .L34+4
	bl	printf
	mov	r0, #1
	bl	exit
.L32:
	ldr	r2, .L34+8
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L35:
	.align	2
.L34:
	.word	pos
	.word	.LC2
	.word	l
	.size	obter, .-obter
	.align	2
	.global	tamanho
	.syntax unified
	.arm
	.fpu softvfp
	.type	tamanho, %function
tamanho:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	ldr	r3, .L38
	ldr	r3, [r3]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L39:
	.align	2
.L38:
	.word	pos
	.size	tamanho, .-tamanho
	.section	.rodata
	.align	2
.LC3:
	.ascii	"Lista atual = [\000"
	.align	2
.LC4:
	.ascii	" %d\000"
	.align	2
.LC5:
	.ascii	" ]\000"
	.text
	.align	2
	.global	imprimir
	.syntax unified
	.arm
	.fpu softvfp
	.type	imprimir, %function
imprimir:
	@ 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	r0, .L43
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L41
.L42:
	ldr	r2, .L43+4
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L43+8
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L41:
	ldr	r3, .L43+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L42
	ldr	r0, .L43+16
	bl	puts
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L44:
	.align	2
.L43:
	.word	.LC3
	.word	l
	.word	.LC4
	.word	pos
	.word	.LC5
	.size	imprimir, .-imprimir
	.align	2
	.global	apagar
	.syntax unified
	.arm
	.fpu softvfp
	.type	apagar, %function
apagar:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	ldr	r3, .L46
	mov	r2, #0
	str	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L47:
	.align	2
.L46:
	.word	pos
	.size	apagar, .-apagar
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
