	.file	"405623.c"
	.intel_syntax noprefix
	.text
	.globl	pilha
	.bss
	.align 32
	.type	pilha, @object
	.size	pilha, 292
pilha:
	.zero	292
	.globl	topo
	.data
	.align 4
	.type	topo, @object
	.size	topo, 4
topo:
	.long	-1
	.globl	num
	.bss
	.align 4
	.type	num, @object
	.size	num, 4
num:
	.zero	4
	.section	.rodata
.LC0:
	.string	"\nPilha Vazia!"
.LC1:
	.string	"%d\n"
	.text
	.globl	exibir_pilha
	.type	exibir_pilha, @function
exibir_pilha:
.LFB0:
	.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, DWORD PTR topo[rip]
	cmp	eax, -1
	jne	.L2
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L6
.L2:
	mov	eax, DWORD PTR topo[rip]
	mov	DWORD PTR -4[rbp], eax
	jmp	.L4
.L5:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, pilha[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	sub	DWORD PTR -4[rbp], 1
.L4:
	cmp	DWORD PTR -4[rbp], 0
	jns	.L5
.L6:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	exibir_pilha, .-exibir_pilha
	.section	.rodata
.LC2:
	.string	"\nPilha Cheia!"
.LC3:
	.string	"\nInforme o elemento: "
.LC4:
	.string	"%d"
	.align 8
.LC5:
	.string	"\nElemento %d foi inserirdo com sucesso!"
	.text
	.globl	inserir_elemento
	.type	inserir_elemento, @function
inserir_elemento:
.LFB1:
	.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 topo[rip]
	cmp	eax, 37
	jne	.L8
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L10
.L8:
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rsi, num[rip]
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR topo[rip]
	add	eax, 1
	mov	DWORD PTR topo[rip], eax
	mov	edx, DWORD PTR topo[rip]
	mov	eax, DWORD PTR num[rip]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, pilha[rip]
	mov	DWORD PTR [rcx+rdx], eax
	mov	eax, DWORD PTR num[rip]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
.L10:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	inserir_elemento, .-inserir_elemento
	.section	.rodata
	.align 8
.LC6:
	.string	"\nElemento %d foi removido com sucesso!"
	.text
	.globl	remover_elemento
	.type	remover_elemento, @function
remover_elemento:
.LFB2:
	.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 topo[rip]
	cmp	eax, -1
	jne	.L12
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L14
.L12:
	mov	eax, DWORD PTR topo[rip]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, pilha[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR num[rip], eax
	mov	eax, DWORD PTR topo[rip]
	sub	eax, 1
	mov	DWORD PTR topo[rip], eax
	mov	eax, DWORD PTR num[rip]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
.L14:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	remover_elemento, .-remover_elemento
	.section	.rodata
.LC7:
	.string	"\nPilha vazia!"
.LC8:
	.string	"\nElemento do topo: %d"
	.text
	.globl	exibir_topo
	.type	exibir_topo, @function
exibir_topo:
.LFB3:
	.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 topo[rip]
	cmp	eax, -1
	jne	.L16
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L18
.L16:
	mov	eax, DWORD PTR topo[rip]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, pilha[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
.L18:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	exibir_topo, .-exibir_topo
	.section	.rodata
.LC9:
	.string	"\n1 - Inserir Elementos"
.LC10:
	.string	"\n2 - Remover Elementos"
.LC11:
	.string	"\n3 - Exibir Elementos"
.LC12:
	.string	"\n4 - Exibir topo"
	.align 8
.LC13:
	.string	"\nEscolha a operacao desejada: "
.LC14:
	.string	"\nOperacao invalida!"
	.align 8
.LC15:
	.string	"\nDeseja continuar? 1 - sim | 0  - nao: "
	.text
	.globl	main
	.type	main, @function
main:
.LFB4:
	.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
.L26:
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, 4
	je	.L20
	cmp	eax, 4
	jg	.L21
	cmp	eax, 3
	je	.L22
	cmp	eax, 3
	jg	.L21
	cmp	eax, 1
	je	.L23
	cmp	eax, 2
	je	.L24
	jmp	.L21
.L23:
	mov	eax, 0
	call	inserir_elemento
	jmp	.L25
.L24:
	mov	eax, 0
	call	remover_elemento
	jmp	.L25
.L22:
	mov	eax, 0
	call	exibir_pilha
	jmp	.L25
.L20:
	mov	eax, 0
	call	exibir_topo
	jmp	.L25
.L21:
	lea	rdi, .LC14[rip]
	call	puts@PLT
.L25:
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -12[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, 1
	je	.L26
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L27
	call	__stack_chk_fail@PLT
.L27:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.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	"405623.c"
	.text
	.comm	pilha,292,4
	.global	topo
	.data
	.align	2
	.type	topo, %object
	.size	topo, 4
topo:
	.word	-1
	.comm	num,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012Pilha Vazia!\000"
	.align	2
.LC1:
	.ascii	"%d\012\000"
	.text
	.align	2
	.global	exibir_pilha
	.syntax unified
	.arm
	.fpu softvfp
	.type	exibir_pilha, %function
exibir_pilha:
	@ 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, .L7
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L2
	ldr	r0, .L7+4
	bl	printf
	b	.L6
.L2:
	ldr	r3, .L7
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	b	.L4
.L5:
	ldr	r2, .L7+8
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L7+12
	bl	printf
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	str	r3, [fp, #-8]
.L4:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L5
.L6:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	topo
	.word	.LC0
	.word	pilha
	.word	.LC1
	.size	exibir_pilha, .-exibir_pilha
	.section	.rodata
	.align	2
.LC2:
	.ascii	"\012Pilha Cheia!\000"
	.align	2
.LC3:
	.ascii	"\012Informe o elemento: \000"
	.align	2
.LC4:
	.ascii	"%d\000"
	.align	2
.LC5:
	.ascii	"\012Elemento %d foi inserirdo com sucesso!\000"
	.text
	.align	2
	.global	inserir_elemento
	.syntax unified
	.arm
	.fpu softvfp
	.type	inserir_elemento, %function
inserir_elemento:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L13
	ldr	r3, [r3]
	cmp	r3, #37
	bne	.L10
	ldr	r0, .L13+4
	bl	printf
	b	.L12
.L10:
	ldr	r0, .L13+8
	bl	printf
	ldr	r1, .L13+12
	ldr	r0, .L13+16
	bl	__isoc99_scanf
	ldr	r3, .L13
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L13
	str	r3, [r2]
	ldr	r3, .L13
	ldr	r3, [r3]
	ldr	r2, .L13+12
	ldr	r2, [r2]
	ldr	r1, .L13+20
	str	r2, [r1, r3, lsl #2]
	ldr	r3, .L13+12
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L13+24
	bl	printf
.L12:
	nop
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	topo
	.word	.LC2
	.word	.LC3
	.word	num
	.word	.LC4
	.word	pilha
	.word	.LC5
	.size	inserir_elemento, .-inserir_elemento
	.section	.rodata
	.align	2
.LC6:
	.ascii	"\012Elemento %d foi removido com sucesso!\000"
	.text
	.align	2
	.global	remover_elemento
	.syntax unified
	.arm
	.fpu softvfp
	.type	remover_elemento, %function
remover_elemento:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L19
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L16
	ldr	r0, .L19+4
	bl	printf
	b	.L18
.L16:
	ldr	r3, .L19
	ldr	r3, [r3]
	ldr	r2, .L19+8
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, .L19+12
	str	r3, [r2]
	ldr	r3, .L19
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L19
	str	r3, [r2]
	ldr	r3, .L19+12
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L19+16
	bl	printf
.L18:
	nop
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	topo
	.word	.LC0
	.word	pilha
	.word	num
	.word	.LC6
	.size	remover_elemento, .-remover_elemento
	.section	.rodata
	.align	2
.LC7:
	.ascii	"\012Pilha vazia!\000"
	.align	2
.LC8:
	.ascii	"\012Elemento do topo: %d\000"
	.text
	.align	2
	.global	exibir_topo
	.syntax unified
	.arm
	.fpu softvfp
	.type	exibir_topo, %function
exibir_topo:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L25
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L22
	ldr	r0, .L25+4
	bl	printf
	b	.L24
.L22:
	ldr	r3, .L25
	ldr	r3, [r3]
	ldr	r2, .L25+8
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L25+12
	bl	printf
.L24:
	nop
	pop	{fp, pc}
.L26:
	.align	2
.L25:
	.word	topo
	.word	.LC7
	.word	pilha
	.word	.LC8
	.size	exibir_topo, .-exibir_topo
	.section	.rodata
	.align	2
.LC9:
	.ascii	"\0121 - Inserir Elementos\000"
	.align	2
.LC10:
	.ascii	"\0122 - Remover Elementos\000"
	.align	2
.LC11:
	.ascii	"\0123 - Exibir Elementos\000"
	.align	2
.LC12:
	.ascii	"\0124 - Exibir topo\000"
	.align	2
.LC13:
	.ascii	"\012Escolha a operacao desejada: \000"
	.align	2
.LC14:
	.ascii	"\012Operacao invalida!\000"
	.align	2
.LC15:
	.ascii	"\012Deseja continuar? 1 - sim | 0  - nao: \000"
	.align	2
.LC16:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, .L37
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
.L35:
	ldr	r0, .L37+4
	bl	printf
	ldr	r0, .L37+8
	bl	printf
	ldr	r0, .L37+12
	bl	printf
	ldr	r0, .L37+16
	bl	printf
	ldr	r0, .L37+20
	bl	printf
	sub	r3, fp, #16
	mov	r1, r3
	ldr	r0, .L37+24
	bl	__isoc99_scanf
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L28
.L30:
	.word	.L33
	.word	.L32
	.word	.L31
	.word	.L29
.L33:
	bl	inserir_elemento
	b	.L34
.L32:
	bl	remover_elemento
	b	.L34
.L31:
	bl	exibir_pilha
	b	.L34
.L29:
	bl	exibir_topo
	b	.L34
.L28:
	ldr	r0, .L37+28
	bl	puts
.L34:
	ldr	r0, .L37+32
	bl	printf
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, .L37+24
	bl	__isoc99_scanf
	ldr	r3, [fp, #-12]
	cmp	r3, #1
	beq	.L35
	nop
	ldr	r3, .L37
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L36
	bl	__stack_chk_fail
.L36:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L38:
	.align	2
.L37:
	.word	.LC16
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC4
	.word	.LC14
	.word	.LC15
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
