	.file	"162644422.c"
	.intel_syntax noprefix
	.text
	.globl	tam
	.data
	.align 4
	.type	tam, @object
	.size	tam, 4
tam:
	.long	2
	.globl	topo
	.align 4
	.type	topo, @object
	.size	topo, 4
topo:
	.long	-1
	.globl	valor
	.bss
	.align 4
	.type	valor, @object
	.size	valor, 4
valor:
	.zero	4
	.globl	pilha
	.align 8
	.type	pilha, @object
	.size	pilha, 8
pilha:
	.zero	8
	.section	.rodata
.LC0:
	.string	"\n ** Pilha cheia ** "
	.text
	.globl	push
	.type	push, @function
push:
.LFB6:
	.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 tam[rip]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR topo[rip]
	cmp	edx, eax
	jne	.L2
	lea	rdi, .LC0[rip]
	call	puts@PLT
	jmp	.L4
.L2:
	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 valor[rip]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, pilha[rip]
	mov	DWORD PTR [rcx+rdx], eax
.L4:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	push, .-push
	.section	.rodata
.LC1:
	.string	"\n ** Pilha vazia ** "
	.text
	.globl	pop
	.type	pop, @function
pop:
.LFB7:
	.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	.L6
	lea	rdi, .LC1[rip]
	call	puts@PLT
	jmp	.L8
.L6:
	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 valor[rip], eax
	mov	eax, DWORD PTR topo[rip]
	sub	eax, 1
	mov	DWORD PTR topo[rip], eax
.L8:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	pop, .-pop
	.section	.rodata
.LC2:
	.string	"-=-=-=-= Calculadora =-=-=-=-"
	.align 8
.LC3:
	.string	"\n Escolha a operacao: \n\n[ 1 ] ADICAO\n[ 2 ] SUBTRACAO\n[ 3 ] MULTIPLICACAO\n[ 4 ] DIVISAO"
.LC4:
	.string	"\nSua escolha: "
.LC5:
	.string	"%d"
.LC6:
	.string	"\nVALOR INVALIDO"
	.align 8
.LC7:
	.string	"\nDigite o primeiro valor para o calculo: "
	.align 8
.LC8:
	.string	"Digite o segundo valor para o calculo: "
.LC9:
	.string	"\nO resultado e: %.2f\n"
.LC10:
	.string	"Error"
	.align 8
.LC11:
	.string	"Para realizar outra conta digite 0 e para finalizar 1: "
	.text
	.globl	main
	.type	main, @function
main:
.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
.L18:
	lea	rdi, .LC2[rip]
	call	puts@PLT
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -20[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, 4
	jg	.L10
	mov	eax, DWORD PTR -20[rbp]
	test	eax, eax
	jg	.L11
.L10:
	lea	rdi, .LC6[rip]
	call	puts@PLT
	jmp	.L9
.L11:
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rsi, valor[rip]
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, 0
	call	push
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rsi, valor[rip]
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, 0
	call	push
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, 1
	jne	.L13
	mov	eax, 0
	call	pop
	mov	eax, DWORD PTR valor[rip]
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, eax
	movss	DWORD PTR -16[rbp], xmm0
	mov	eax, 0
	call	pop
	mov	eax, DWORD PTR valor[rip]
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, eax
	movss	xmm1, DWORD PTR -16[rbp]
	addss	xmm0, xmm1
	movss	DWORD PTR -16[rbp], xmm0
	pxor	xmm2, xmm2
	cvtss2sd	xmm2, DWORD PTR -16[rbp]
	movq	rax, xmm2
	movq	xmm0, rax
	lea	rdi, .LC9[rip]
	mov	eax, 1
	call	printf@PLT
.L13:
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, 2
	jne	.L14
	mov	eax, 0
	call	pop
	mov	eax, DWORD PTR valor[rip]
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, eax
	movss	DWORD PTR -16[rbp], xmm0
	mov	eax, 0
	call	pop
	mov	eax, DWORD PTR valor[rip]
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, eax
	subss	xmm0, DWORD PTR -16[rbp]
	movss	DWORD PTR -16[rbp], xmm0
	pxor	xmm3, xmm3
	cvtss2sd	xmm3, DWORD PTR -16[rbp]
	movq	rax, xmm3
	movq	xmm0, rax
	lea	rdi, .LC9[rip]
	mov	eax, 1
	call	printf@PLT
.L14:
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, 3
	jne	.L15
	mov	eax, 0
	call	pop
	mov	eax, DWORD PTR valor[rip]
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, eax
	movss	DWORD PTR -16[rbp], xmm0
	mov	eax, 0
	call	pop
	mov	eax, DWORD PTR valor[rip]
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, eax
	movss	xmm1, DWORD PTR -16[rbp]
	mulss	xmm0, xmm1
	movss	DWORD PTR -16[rbp], xmm0
	pxor	xmm4, xmm4
	cvtss2sd	xmm4, DWORD PTR -16[rbp]
	movq	rax, xmm4
	movq	xmm0, rax
	lea	rdi, .LC9[rip]
	mov	eax, 1
	call	printf@PLT
.L15:
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, 4
	jne	.L16
	mov	eax, DWORD PTR valor[rip]
	test	eax, eax
	jne	.L17
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L16
.L17:
	mov	eax, 0
	call	pop
	mov	eax, DWORD PTR valor[rip]
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, eax
	movss	DWORD PTR -16[rbp], xmm0
	mov	eax, 0
	call	pop
	mov	eax, DWORD PTR valor[rip]
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, eax
	divss	xmm0, DWORD PTR -16[rbp]
	movss	DWORD PTR -16[rbp], xmm0
	pxor	xmm5, xmm5
	cvtss2sd	xmm5, DWORD PTR -16[rbp]
	movq	rax, xmm5
	movq	xmm0, rax
	lea	rdi, .LC9[rip]
	mov	eax, 1
	call	printf@PLT
.L16:
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	cmp	DWORD PTR -12[rbp], 0
	je	.L18
.L9:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	"162644422.c"
	.text
	.global	tam
	.data
	.align	2
	.type	tam, %object
	.size	tam, 4
tam:
	.word	2
	.global	topo
	.align	2
	.type	topo, %object
	.size	topo, 4
topo:
	.word	-1
	.comm	valor,4,4
	.comm	pilha,8,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012 ** Pilha cheia ** \000"
	.text
	.align	2
	.global	push
	.syntax unified
	.arm
	.fpu softvfp
	.type	push, %function
push:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L5
	ldr	r3, [r3]
	sub	r2, r3, #1
	ldr	r3, .L5+4
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L2
	ldr	r0, .L5+8
	bl	puts
	b	.L4
.L2:
	ldr	r3, .L5+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L5+4
	str	r3, [r2]
	ldr	r3, .L5+4
	ldr	r3, [r3]
	ldr	r2, .L5+12
	ldr	r2, [r2]
	ldr	r1, .L5+16
	str	r2, [r1, r3, lsl #2]
.L4:
	nop
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.word	tam
	.word	topo
	.word	.LC0
	.word	valor
	.word	pilha
	.size	push, .-push
	.section	.rodata
	.align	2
.LC1:
	.ascii	"\012 ** Pilha vazia ** \000"
	.text
	.align	2
	.global	pop
	.syntax unified
	.arm
	.fpu softvfp
	.type	pop, %function
pop:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L11
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L8
	ldr	r0, .L11+4
	bl	puts
	b	.L10
.L8:
	ldr	r3, .L11
	ldr	r3, [r3]
	ldr	r2, .L11+8
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, .L11+12
	str	r3, [r2]
	ldr	r3, .L11
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L11
	str	r3, [r2]
.L10:
	nop
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	topo
	.word	.LC1
	.word	pilha
	.word	valor
	.size	pop, .-pop
	.section	.rodata
	.align	2
.LC2:
	.ascii	"-=-=-=-= Calculadora =-=-=-=-\000"
	.align	2
.LC3:
	.ascii	"\012 Escolha a operacao: \012\012[ 1 ] ADICAO\012[ "
	.ascii	"2 ] SUBTRACAO\012[ 3 ] MULTIPLICACAO\012[ 4 ] DIVIS"
	.ascii	"AO\000"
	.align	2
.LC4:
	.ascii	"\012Sua escolha: \000"
	.align	2
.LC5:
	.ascii	"%d\000"
	.align	2
.LC6:
	.ascii	"\012VALOR INVALIDO\000"
	.align	2
.LC7:
	.ascii	"\012Digite o primeiro valor para o calculo: \000"
	.align	2
.LC8:
	.ascii	"Digite o segundo valor para o calculo: \000"
	.global	__aeabi_i2f
	.global	__aeabi_fadd
	.global	__aeabi_f2d
	.align	2
.LC9:
	.ascii	"\012O resultado e: %.2f\012\000"
	.global	__aeabi_fsub
	.global	__aeabi_fmul
	.align	2
.LC10:
	.ascii	"Error\000"
	.global	__aeabi_fdiv
	.align	2
.LC11:
	.ascii	"Para realizar outra conta digite 0 e para finalizar"
	.ascii	" 1: \000"
	.align	2
.LC12:
	.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, .L24
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
.L22:
	ldr	r0, .L24+4
	bl	puts
	ldr	r0, .L24+8
	bl	puts
	ldr	r0, .L24+12
	bl	printf
	sub	r3, fp, #20
	mov	r1, r3
	ldr	r0, .L24+16
	bl	__isoc99_scanf
	ldr	r3, [fp, #-20]
	cmp	r3, #4
	bgt	.L14
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bgt	.L15
.L14:
	ldr	r0, .L24+20
	bl	puts
	b	.L13
.L15:
	ldr	r0, .L24+24
	bl	printf
	ldr	r1, .L24+28
	ldr	r0, .L24+16
	bl	__isoc99_scanf
	bl	push
	ldr	r0, .L24+32
	bl	printf
	ldr	r1, .L24+28
	ldr	r0, .L24+16
	bl	__isoc99_scanf
	bl	push
	ldr	r3, [fp, #-20]
	cmp	r3, #1
	bne	.L17
	bl	pop
	ldr	r3, .L24+28
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	str	r3, [fp, #-16]	@ float
	bl	pop
	ldr	r3, .L24+28
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-16]	@ float
	bl	__aeabi_fadd
	mov	r3, r0
	str	r3, [fp, #-16]	@ float
	ldr	r0, [fp, #-16]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L24+36
	bl	printf
.L17:
	ldr	r3, [fp, #-20]
	cmp	r3, #2
	bne	.L18
	bl	pop
	ldr	r3, .L24+28
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	str	r3, [fp, #-16]	@ float
	bl	pop
	ldr	r3, .L24+28
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	ldr	r1, [fp, #-16]	@ float
	mov	r0, r3
	bl	__aeabi_fsub
	mov	r3, r0
	str	r3, [fp, #-16]	@ float
	ldr	r0, [fp, #-16]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L24+36
	bl	printf
.L18:
	ldr	r3, [fp, #-20]
	cmp	r3, #3
	bne	.L19
	bl	pop
	ldr	r3, .L24+28
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	str	r3, [fp, #-16]	@ float
	bl	pop
	ldr	r3, .L24+28
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-16]	@ float
	bl	__aeabi_fmul
	mov	r3, r0
	str	r3, [fp, #-16]	@ float
	ldr	r0, [fp, #-16]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L24+36
	bl	printf
.L19:
	ldr	r3, [fp, #-20]
	cmp	r3, #4
	bne	.L20
	ldr	r3, .L24+28
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L21
	ldr	r0, .L24+40
	bl	printf
	b	.L20
.L21:
	bl	pop
	ldr	r3, .L24+28
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	str	r3, [fp, #-16]	@ float
	bl	pop
	ldr	r3, .L24+28
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	ldr	r1, [fp, #-16]	@ float
	mov	r0, r3
	bl	__aeabi_fdiv
	mov	r3, r0
	str	r3, [fp, #-16]	@ float
	ldr	r0, [fp, #-16]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L24+36
	bl	printf
.L20:
	ldr	r0, .L24+44
	bl	printf
	ldr	r1, [fp, #-12]
	ldr	r0, .L24+16
	bl	__isoc99_scanf
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L22
.L13:
	ldr	r3, .L24
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L23
	bl	__stack_chk_fail
.L23:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L25:
	.align	2
.L24:
	.word	.LC12
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	valor
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
