	.file	"856251.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"cls"
	.align 8
.LC1:
	.string	"O que deseja fazer? \nDigite um numero:\n"
.LC2:
	.string	"1. Inserir elemento."
.LC3:
	.string	"2. Remover elemento."
.LC4:
	.string	"3. Listar elementos."
.LC5:
	.string	"0. Sair."
.LC6:
	.string	"%i"
.LC7:
	.string	"Qual numero deseja adicionar?"
.LC8:
	.string	"Escolha invalida."
	.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, 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -44[rbp], -1
	mov	DWORD PTR -36[rbp], 0
	mov	DWORD PTR -32[rbp], 2
	mov	DWORD PTR -28[rbp], 0
	mov	DWORD PTR -24[rbp], 0
.L14:
	lea	rdi, .LC0[rip]
	call	system@PLT
	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	rax, -44[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	scanf_s@PLT
	nop
.L3:
	call	getchar@PLT
	mov	BYTE PTR -45[rbp], al
	cmp	BYTE PTR -45[rbp], 10
	je	.L2
	cmp	BYTE PTR -45[rbp], -1
	jne	.L3
.L2:
	mov	eax, DWORD PTR -44[rbp]
	cmp	eax, 3
	je	.L4
	cmp	eax, 3
	jg	.L5
	cmp	eax, 2
	je	.L6
	cmp	eax, 2
	jg	.L5
	test	eax, eax
	je	.L7
	cmp	eax, 1
	je	.L8
	jmp	.L5
.L7:
	mov	eax, 0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L15
	jmp	.L16
.L8:
	lea	rdi, .LC0[rip]
	call	system@PLT
	lea	rdi, .LC7[rip]
	call	puts@PLT
	lea	rax, -40[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	scanf_s@PLT
	nop
.L11:
	call	getchar@PLT
	mov	BYTE PTR -45[rbp], al
	cmp	BYTE PTR -45[rbp], 10
	je	.L10
	cmp	BYTE PTR -45[rbp], -1
	jne	.L11
.L10:
	lea	r8, -24[rbp]
	lea	rdi, -28[rbp]
	lea	rcx, -32[rbp]
	lea	rdx, -36[rbp]
	lea	rsi, -40[rbp]
	lea	rax, -20[rbp]
	mov	r9, r8
	mov	r8, rdi
	mov	rdi, rax
	call	queue
	jmp	.L12
.L6:
	lea	rdi, .LC0[rip]
	call	system@PLT
	lea	rcx, -24[rbp]
	lea	rdx, -28[rbp]
	lea	rsi, -32[rbp]
	lea	rax, -36[rbp]
	mov	rdi, rax
	call	dequeue
	jmp	.L12
.L4:
	lea	rdi, .LC0[rip]
	call	system@PLT
	lea	rdi, -24[rbp]
	lea	rcx, -28[rbp]
	lea	rdx, -32[rbp]
	lea	rsi, -36[rbp]
	lea	rax, -20[rbp]
	mov	r8, rdi
	mov	rdi, rax
	call	listar
	jmp	.L12
.L5:
	lea	rdi, .LC8[rip]
	call	puts@PLT
	nop
.L12:
	mov	eax, DWORD PTR -44[rbp]
	test	eax, eax
	je	.L14
	mov	eax, DWORD PTR -44[rbp]
	cmp	eax, 1
	je	.L14
	mov	eax, DWORD PTR -44[rbp]
	cmp	eax, 2
	je	.L14
	mov	eax, DWORD PTR -44[rbp]
	cmp	eax, 3
	jmp	.L14
.L16:
	call	__stack_chk_fail@PLT
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC9:
	.string	"\nElemento adicionado.\n"
.LC10:
	.string	"pause"
	.align 8
.LC11:
	.string	"\n\nMemoria insuficiente:\nConsidere remover ao menos um elemento."
.LC12:
	.string	"\n"
	.text
	.globl	queue
	.type	queue, @function
queue:
.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, 48
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	mov	QWORD PTR -32[rbp], rcx
	mov	QWORD PTR -40[rbp], r8
	mov	QWORD PTR -48[rbp], r9
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 2
	jg	.L18
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -8[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 3
	jne	.L19
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR [rax], 0
.L19:
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR [rax], edx
	lea	rdi, .LC9[rip]
	call	puts@PLT
	lea	rdi, .LC10[rip]
	call	system@PLT
	jmp	.L21
.L18:
	lea	rdi, .LC11[rip]
	call	puts@PLT
	lea	rdi, .LC12[rip]
	call	puts@PLT
	lea	rdi, .LC10[rip]
	call	system@PLT
.L21:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	queue, .-queue
	.section	.rodata
.LC13:
	.string	"Elemento removido.\n"
	.align 8
.LC14:
	.string	"Nao ha elementos a serem removidos.\n"
	.text
	.globl	dequeue
	.type	dequeue, @function
dequeue:
.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	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	mov	QWORD PTR -32[rbp], rcx
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jle	.L23
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 3
	jne	.L24
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], 0
.L24:
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR [rax], edx
	lea	rdi, .LC13[rip]
	call	puts@PLT
	lea	rdi, .LC10[rip]
	call	system@PLT
	jmp	.L26
.L23:
	lea	rdi, .LC14[rip]
	call	puts@PLT
	lea	rdi, .LC10[rip]
	call	system@PLT
.L26:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	dequeue, .-dequeue
	.section	.rodata
.LC15:
	.string	"%i\n"
	.text
	.globl	listar
	.type	listar, @function
listar:
.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	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	QWORD PTR -48[rbp], rcx
	mov	QWORD PTR -56[rbp], r8
	mov	DWORD PTR -8[rbp], 0
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -4[rbp], eax
	jmp	.L28
.L30:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
	cmp	DWORD PTR -4[rbp], 2
	jle	.L29
	mov	DWORD PTR -4[rbp], 0
.L29:
	add	DWORD PTR -8[rbp], 1
.L28:
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -8[rbp], eax
	jl	.L30
	lea	rdi, .LC12[rip]
	call	puts@PLT
	lea	rdi, .LC10[rip]
	call	system@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	listar, .-listar
	.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	"856251.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"cls\000"
	.align	2
.LC1:
	.ascii	"O que deseja fazer? \012Digite um numero:\012\000"
	.align	2
.LC2:
	.ascii	"1. Inserir elemento.\000"
	.align	2
.LC3:
	.ascii	"2. Remover elemento.\000"
	.align	2
.LC4:
	.ascii	"3. Listar elementos.\000"
	.align	2
.LC5:
	.ascii	"0. Sair.\000"
	.align	2
.LC6:
	.ascii	"%i\000"
	.align	2
.LC7:
	.ascii	"Qual numero deseja adicionar?\000"
	.align	2
.LC8:
	.ascii	"Escolha invalida.\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	ldr	r3, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mvn	r3, #0
	str	r3, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-36]
	mov	r3, #2
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-24]
.L13:
	ldr	r0, .L16+4
	bl	system
	ldr	r0, .L16+8
	bl	puts
	ldr	r0, .L16+12
	bl	puts
	ldr	r0, .L16+16
	bl	puts
	ldr	r0, .L16+20
	bl	puts
	ldr	r0, .L16+24
	bl	puts
	sub	r3, fp, #44
	mov	r1, r3
	ldr	r0, .L16+28
	bl	scanf_s
	nop
.L2:
	bl	getchar
	mov	r3, r0
	strb	r3, [fp, #-45]
	ldrb	r3, [fp, #-45]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L2
	ldr	r3, [fp, #-44]
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L3
.L5:
	.word	.L8
	.word	.L7
	.word	.L6
	.word	.L4
.L8:
	mov	r3, #0
	ldr	r2, .L16
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L14
	b	.L15
.L7:
	ldr	r0, .L16+4
	bl	system
	ldr	r0, .L16+32
	bl	puts
	sub	r3, fp, #40
	mov	r1, r3
	ldr	r0, .L16+28
	bl	scanf_s
	nop
.L10:
	bl	getchar
	mov	r3, r0
	strb	r3, [fp, #-45]
	ldrb	r3, [fp, #-45]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L10
	sub	ip, fp, #32
	sub	r2, fp, #36
	sub	r1, fp, #40
	sub	r0, fp, #20
	sub	r3, fp, #24
	str	r3, [sp, #4]
	sub	r3, fp, #28
	str	r3, [sp]
	mov	r3, ip
	bl	queue
	b	.L11
.L6:
	ldr	r0, .L16+4
	bl	system
	sub	r3, fp, #24
	sub	r2, fp, #28
	sub	r1, fp, #32
	sub	r0, fp, #36
	bl	dequeue
	b	.L11
.L4:
	ldr	r0, .L16+4
	bl	system
	sub	ip, fp, #28
	sub	r2, fp, #32
	sub	r1, fp, #36
	sub	r0, fp, #20
	sub	r3, fp, #24
	str	r3, [sp]
	mov	r3, ip
	bl	listar
	b	.L11
.L3:
	ldr	r0, .L16+36
	bl	puts
	nop
.L11:
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	beq	.L13
	ldr	r3, [fp, #-44]
	cmp	r3, #1
	beq	.L13
	ldr	r3, [fp, #-44]
	cmp	r3, #2
	beq	.L13
	ldr	r3, [fp, #-44]
	cmp	r3, #3
	b	.L13
.L15:
	bl	__stack_chk_fail
.L14:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC9
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	main, .-main
	.section	.rodata
	.align	2
.LC10:
	.ascii	"\012Elemento adicionado.\012\000"
	.align	2
.LC11:
	.ascii	"pause\000"
	.align	2
.LC12:
	.ascii	"\012\012Memoria insuficiente:\012Considere remover "
	.ascii	"ao menos um elemento.\000"
	.align	2
.LC13:
	.ascii	"\012\000"
	.text
	.align	2
	.global	queue
	.syntax unified
	.arm
	.fpu softvfp
	.type	queue, %function
queue:
	@ args = 8, 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, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #8]
	ldr	r3, [r3]
	cmp	r3, #2
	bgt	.L19
	ldr	r3, [fp, #4]
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	ldr	r2, [fp, #-12]
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, [fp, #4]
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, [fp, #4]
	str	r2, [r3]
	ldr	r3, [fp, #4]
	ldr	r3, [r3]
	cmp	r3, #3
	bne	.L20
	ldr	r3, [fp, #4]
	mov	r2, #0
	str	r2, [r3]
.L20:
	ldr	r3, [fp, #8]
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, [fp, #8]
	str	r2, [r3]
	ldr	r0, .L23
	bl	puts
	ldr	r0, .L23+4
	bl	system
	b	.L22
.L19:
	ldr	r0, .L23+8
	bl	puts
	ldr	r0, .L23+12
	bl	puts
	ldr	r0, .L23+4
	bl	system
.L22:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L24:
	.align	2
.L23:
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.size	queue, .-queue
	.section	.rodata
	.align	2
.LC14:
	.ascii	"Elemento removido.\012\000"
	.align	2
.LC15:
	.ascii	"Nao ha elementos a serem removidos.\012\000"
	.text
	.align	2
	.global	dequeue
	.syntax unified
	.arm
	.fpu softvfp
	.type	dequeue, %function
dequeue:
	@ 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, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L26
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, [fp, #-8]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r3, #3
	bne	.L27
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3]
.L27:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	sub	r2, r3, #1
	ldr	r3, [fp, #-20]
	str	r2, [r3]
	ldr	r0, .L30
	bl	puts
	ldr	r0, .L30+4
	bl	system
	b	.L29
.L26:
	ldr	r0, .L30+8
	bl	puts
	ldr	r0, .L30+4
	bl	system
.L29:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L31:
	.align	2
.L30:
	.word	.LC14
	.word	.LC11
	.word	.LC15
	.size	dequeue, .-dequeue
	.section	.rodata
	.align	2
.LC16:
	.ascii	"%i\012\000"
	.text
	.align	2
	.global	listar
	.syntax unified
	.arm
	.fpu softvfp
	.type	listar, %function
listar:
	@ args = 4, 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, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	b	.L33
.L35:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L36
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #2
	ble	.L34
	mov	r3, #0
	str	r3, [fp, #-8]
.L34:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L33:
	ldr	r3, [fp, #4]
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L35
	ldr	r0, .L36+4
	bl	puts
	ldr	r0, .L36+8
	bl	system
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L37:
	.align	2
.L36:
	.word	.LC16
	.word	.LC13
	.word	.LC11
	.size	listar, .-listar
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
