	.file	"263232.c"
	.intel_syntax noprefix
	.text
	.globl	pilha1
	.bss
	.align 32
	.type	pilha1, @object
	.size	pilha1, 40
pilha1:
	.zero	40
	.globl	pilha2
	.align 32
	.type	pilha2, @object
	.size	pilha2, 40
pilha2:
	.zero	40
	.section	.rodata
	.align 8
.LC0:
	.string	"A pilha est\303\241 cheia, n\303\243o \303\251 poss\303\255vel empilhar mais nenhum elemento."
	.align 8
.LC1:
	.string	"\nAperte ENTER para finalizar..."
	.text
	.globl	empilha
	.type	empilha, @function
empilha:
.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], edi
	mov	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 36[rax]
	cmp	eax, 8
	jne	.L2
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	call	getchar@PLT
	jmp	.L4
.L2:
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR 36[rax]
	mov	rax, QWORD PTR -16[rbp]
	movsx	rdx, edx
	mov	ecx, DWORD PTR -4[rbp]
	mov	DWORD PTR [rax+rdx*4], ecx
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 36[rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR 36[rax], edx
.L4:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	empilha, .-empilha
	.section	.rodata
	.align 8
.LC2:
	.string	"A pilha est\303\241 vazia, n\303\243o h\303\241 nada para desempilhar."
	.text
	.globl	desempilha
	.type	desempilha, @function
desempilha:
.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	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR 36[rax]
	mov	eax, DWORD PTR pilha1[rip+32]
	cmp	edx, eax
	jne	.L6
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	call	getchar@PLT
	jmp	.L7
.L6:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 36[rax]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 36[rax], edx
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR 36[rax]
	mov	rax, QWORD PTR -24[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	mov	DWORD PTR -4[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR 36[rax]
	mov	rax, QWORD PTR -24[rbp]
	movsx	rdx, edx
	mov	DWORD PTR [rax+rdx*4], 0
	mov	eax, DWORD PTR -4[rbp]
	lea	rsi, pilha2[rip]
	mov	edi, eax
	call	empilha
.L7:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	desempilha, .-desempilha
	.section	.rodata
.LC3:
	.string	"%d "
.LC4:
	.string	"\n"
	.text
	.globl	imprimir
	.type	imprimir, @function
imprimir:
.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 -24[rbp], rdi
	mov	edi, 10
	call	putchar@PLT
	mov	DWORD PTR -4[rbp], 0
	jmp	.L9
.L10:
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -4[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L9:
	cmp	DWORD PTR -4[rbp], 7
	jle	.L10
	lea	rdi, .LC4[rip]
	call	puts@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	imprimir, .-imprimir
	.section	.rodata
	.align 8
.LC5:
	.string	"Aperte ENTER para finalizar..."
	.text
	.globl	main
	.type	main, @function
main:
.LFB9:
	.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 pilha1[rip+36], 0
	mov	DWORD PTR pilha1[rip+32], 0
	mov	DWORD PTR pilha2[rip+36], 0
	mov	DWORD PTR pilha2[rip+32], 0
	lea	rsi, pilha1[rip]
	mov	edi, 1
	call	empilha
	lea	rsi, pilha1[rip]
	mov	edi, 9
	call	empilha
	lea	rsi, pilha1[rip]
	mov	edi, 4
	call	empilha
	lea	rsi, pilha1[rip]
	mov	edi, 5
	call	empilha
	lea	rsi, pilha1[rip]
	mov	edi, 7
	call	empilha
	lea	rsi, pilha1[rip]
	mov	edi, 9
	call	empilha
	lea	rsi, pilha1[rip]
	mov	edi, 7
	call	empilha
	lea	rsi, pilha1[rip]
	mov	edi, 5
	call	empilha
	lea	rdi, pilha1[rip]
	call	imprimir
	lea	rdi, pilha1[rip]
	call	desempilha
	lea	rdi, pilha1[rip]
	call	desempilha
	lea	rdi, pilha1[rip]
	call	desempilha
	lea	rdi, pilha1[rip]
	call	desempilha
	lea	rdi, pilha1[rip]
	call	desempilha
	lea	rdi, pilha1[rip]
	call	desempilha
	lea	rdi, pilha1[rip]
	call	desempilha
	lea	rdi, pilha1[rip]
	call	desempilha
	lea	rdi, pilha2[rip]
	call	imprimir
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	call	getchar@PLT
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.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	"263232.c"
	.text
	.comm	pilha1,40,4
	.comm	pilha2,40,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"A pilha est\303\241 cheia, n\303\243o \303\251 poss"
	.ascii	"\303\255vel empilhar mais nenhum elemento.\000"
	.align	2
.LC1:
	.ascii	"\012Aperte ENTER para finalizar...\000"
	.text
	.align	2
	.global	empilha
	.syntax unified
	.arm
	.fpu softvfp
	.type	empilha, %function
empilha:
	@ 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]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #36]
	cmp	r3, #8
	bne	.L2
	ldr	r0, .L5
	bl	printf
	ldr	r0, .L5+4
	bl	printf
	bl	getchar
	b	.L4
.L2:
	ldr	r3, [fp, #-12]
	ldr	r2, [r3, #36]
	ldr	r3, [fp, #-12]
	ldr	r1, [fp, #-8]
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #36]
	add	r2, r3, #1
	ldr	r3, [fp, #-12]
	str	r2, [r3, #36]
.L4:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.word	.LC0
	.word	.LC1
	.size	empilha, .-empilha
	.section	.rodata
	.align	2
.LC2:
	.ascii	"A pilha est\303\241 vazia, n\303\243o h\303\241 nad"
	.ascii	"a para desempilhar.\000"
	.text
	.align	2
	.global	desempilha
	.syntax unified
	.arm
	.fpu softvfp
	.type	desempilha, %function
desempilha:
	@ 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	r2, [r3, #36]
	ldr	r3, .L10
	ldr	r3, [r3, #32]
	cmp	r2, r3
	bne	.L8
	ldr	r0, .L10+4
	bl	printf
	ldr	r0, .L10+8
	bl	printf
	bl	getchar
	b	.L9
.L8:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #36]
	sub	r2, r3, #1
	ldr	r3, [fp, #-16]
	str	r2, [r3, #36]
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #36]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, r2, lsl #2]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #36]
	ldr	r3, [fp, #-16]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	ldr	r1, .L10+12
	ldr	r0, [fp, #-8]
	bl	empilha
.L9:
	nop
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	pilha1
	.word	.LC2
	.word	.LC1
	.word	pilha2
	.size	desempilha, .-desempilha
	.section	.rodata
	.align	2
.LC3:
	.ascii	"%d \000"
	.align	2
.LC4:
	.ascii	"\012\000"
	.text
	.align	2
	.global	imprimir
	.syntax unified
	.arm
	.fpu softvfp
	.type	imprimir, %function
imprimir:
	@ 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, #10
	bl	putchar
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L13
.L14:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	ldr	r3, [r3, r2, lsl #2]
	mov	r1, r3
	ldr	r0, .L15
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L13:
	ldr	r3, [fp, #-8]
	cmp	r3, #7
	ble	.L14
	ldr	r0, .L15+4
	bl	puts
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC3
	.word	.LC4
	.size	imprimir, .-imprimir
	.section	.rodata
	.align	2
.LC5:
	.ascii	"Aperte ENTER para finalizar...\000"
	.text
	.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
	ldr	r3, .L19
	mov	r2, #0
	str	r2, [r3, #36]
	ldr	r3, .L19
	mov	r2, #0
	str	r2, [r3, #32]
	ldr	r3, .L19+4
	mov	r2, #0
	str	r2, [r3, #36]
	ldr	r3, .L19+4
	mov	r2, #0
	str	r2, [r3, #32]
	ldr	r1, .L19
	mov	r0, #1
	bl	empilha
	ldr	r1, .L19
	mov	r0, #9
	bl	empilha
	ldr	r1, .L19
	mov	r0, #4
	bl	empilha
	ldr	r1, .L19
	mov	r0, #5
	bl	empilha
	ldr	r1, .L19
	mov	r0, #7
	bl	empilha
	ldr	r1, .L19
	mov	r0, #9
	bl	empilha
	ldr	r1, .L19
	mov	r0, #7
	bl	empilha
	ldr	r1, .L19
	mov	r0, #5
	bl	empilha
	ldr	r0, .L19
	bl	imprimir
	ldr	r0, .L19
	bl	desempilha
	ldr	r0, .L19
	bl	desempilha
	ldr	r0, .L19
	bl	desempilha
	ldr	r0, .L19
	bl	desempilha
	ldr	r0, .L19
	bl	desempilha
	ldr	r0, .L19
	bl	desempilha
	ldr	r0, .L19
	bl	desempilha
	ldr	r0, .L19
	bl	desempilha
	ldr	r0, .L19+4
	bl	imprimir
	ldr	r0, .L19+8
	bl	printf
	bl	getchar
	mov	r3, #0
	mov	r0, r3
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	pilha1
	.word	pilha2
	.word	.LC5
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
