	.file	"77407.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"clear"
.LC1:
	.string	"\n\ncalculadora\n"
.LC2:
	.string	"\nEscolha uma opcao: "
	.align 8
.LC3:
	.string	"\na- Somar\nb-Subtrair\nc-Multiplicar\nd-Dividir\ne-Sair"
.LC4:
	.string	"%[^\n]s"
.LC5:
	.string	"Primeiro valor: "
.LC6:
	.string	"%f"
.LC7:
	.string	"Segundo valor: "
.LC8:
	.string	"Soma: [%.2f]"
.LC9:
	.string	"Subtrair: [%.2f]"
.LC10:
	.string	"Multiplicar: [%.2f]"
.LC11:
	.string	"Dividir: [%.2f]"
.LC12:
	.string	"exit"
.LC13:
	.string	"\n\nOpcao 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, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
.L10:
	lea	rdi, .LC0[rip]
	call	system@PLT
	lea	rdi, .LC1[rip]
	call	puts@PLT
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rax, -21[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	movzx	eax, BYTE PTR -21[rbp]
	movsx	eax, al
	sub	eax, 97
	cmp	eax, 4
	ja	.L2
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L4[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L4[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L4:
	.long	.L8-.L4
	.long	.L7-.L4
	.long	.L6-.L4
	.long	.L5-.L4
	.long	.L3-.L4
	.text
.L8:
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -20[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	movss	xmm0, DWORD PTR -16[rbp]
	cvtss2sd	xmm0, xmm0
	movss	xmm1, DWORD PTR -20[rbp]
	pxor	xmm2, xmm2
	cvtss2sd	xmm2, xmm1
	movq	rax, xmm2
	movapd	xmm1, xmm0
	movq	xmm0, rax
	mov	eax, 2
	call	somar@PLT
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, eax
	movss	DWORD PTR -12[rbp], xmm0
	call	getchar@PLT
	pxor	xmm3, xmm3
	cvtss2sd	xmm3, DWORD PTR -12[rbp]
	movq	rax, xmm3
	movq	xmm0, rax
	lea	rdi, .LC8[rip]
	mov	eax, 1
	call	printf@PLT
	jmp	.L9
.L7:
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -20[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	movss	xmm0, DWORD PTR -16[rbp]
	cvtss2sd	xmm0, xmm0
	movss	xmm1, DWORD PTR -20[rbp]
	pxor	xmm4, xmm4
	cvtss2sd	xmm4, xmm1
	movq	rax, xmm4
	movapd	xmm1, xmm0
	movq	xmm0, rax
	mov	eax, 2
	call	menos@PLT
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, eax
	movss	DWORD PTR -12[rbp], xmm0
	call	getchar@PLT
	pxor	xmm5, xmm5
	cvtss2sd	xmm5, DWORD PTR -12[rbp]
	movq	rax, xmm5
	movq	xmm0, rax
	lea	rdi, .LC9[rip]
	mov	eax, 1
	call	printf@PLT
	jmp	.L9
.L6:
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -20[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	movss	xmm0, DWORD PTR -16[rbp]
	cvtss2sd	xmm0, xmm0
	movss	xmm1, DWORD PTR -20[rbp]
	pxor	xmm6, xmm6
	cvtss2sd	xmm6, xmm1
	movq	rax, xmm6
	movapd	xmm1, xmm0
	movq	xmm0, rax
	mov	eax, 2
	call	multi@PLT
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, eax
	movss	DWORD PTR -12[rbp], xmm0
	call	getchar@PLT
	pxor	xmm7, xmm7
	cvtss2sd	xmm7, DWORD PTR -12[rbp]
	movq	rax, xmm7
	movq	xmm0, rax
	lea	rdi, .LC10[rip]
	mov	eax, 1
	call	printf@PLT
	jmp	.L9
.L5:
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -20[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	movss	xmm0, DWORD PTR -16[rbp]
	cvtss2sd	xmm0, xmm0
	movss	xmm1, DWORD PTR -20[rbp]
	pxor	xmm2, xmm2
	cvtss2sd	xmm2, xmm1
	movq	rax, xmm2
	movapd	xmm1, xmm0
	movq	xmm0, rax
	mov	eax, 2
	call	divid@PLT
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, eax
	movss	DWORD PTR -12[rbp], xmm0
	call	getchar@PLT
	pxor	xmm3, xmm3
	cvtss2sd	xmm3, DWORD PTR -12[rbp]
	movq	rax, xmm3
	movq	xmm0, rax
	lea	rdi, .LC11[rip]
	mov	eax, 1
	call	printf@PLT
	jmp	.L9
.L3:
	lea	rdi, .LC12[rip]
	call	system@PLT
	jmp	.L9
.L2:
	lea	rdi, .LC13[rip]
	call	puts@PLT
	call	getchar@PLT
	nop
.L9:
	movzx	eax, BYTE PTR -21[rbp]
	cmp	al, 101
	jne	.L10
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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	"77407.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"clear\000"
	.align	2
.LC1:
	.ascii	"\012\012calculadora\012\000"
	.align	2
.LC2:
	.ascii	"\012Escolha uma opcao: \000"
	.align	2
.LC3:
	.ascii	"\012a- Somar\012b-Subtrair\012c-Multiplicar\012d-Di"
	.ascii	"vidir\012e-Sair\000"
	.align	2
.LC4:
	.ascii	"%[^\012]s\000"
	.align	2
.LC5:
	.ascii	"Primeiro valor: \000"
	.align	2
.LC6:
	.ascii	"%f\000"
	.align	2
.LC7:
	.ascii	"Segundo valor: \000"
	.global	__aeabi_f2d
	.global	__aeabi_i2f
	.align	2
.LC8:
	.ascii	"Soma: [%.2f]\000"
	.align	2
.LC9:
	.ascii	"Subtrair: [%.2f]\000"
	.align	2
.LC10:
	.ascii	"Multiplicar: [%.2f]\000"
	.align	2
.LC11:
	.ascii	"Dividir: [%.2f]\000"
	.align	2
.LC12:
	.ascii	"exit\000"
	.align	2
.LC13:
	.ascii	"\012\012Opcao invalida\000"
	.align	2
.LC14:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #24
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
.L10:
	ldr	r0, .L13+4
	bl	system
	ldr	r0, .L13+8
	bl	puts
	ldr	r0, .L13+12
	bl	printf
	ldr	r0, .L13+16
	bl	puts
	sub	r3, fp, #29
	mov	r1, r3
	ldr	r0, .L13+20
	bl	__isoc99_scanf
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	sub	r3, r3, #97
	cmp	r3, #4
	ldrls	pc, [pc, r3, asl #2]
	b	.L2
.L4:
	.word	.L8
	.word	.L7
	.word	.L6
	.word	.L5
	.word	.L3
.L8:
	ldr	r0, .L13+24
	bl	printf
	sub	r3, fp, #28
	mov	r1, r3
	ldr	r0, .L13+28
	bl	__isoc99_scanf
	ldr	r0, .L13+32
	bl	printf
	sub	r3, fp, #24
	mov	r1, r3
	ldr	r0, .L13+28
	bl	__isoc99_scanf
	ldr	r3, [fp, #-28]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r4, r0
	mov	r5, r1
	ldr	r3, [fp, #-24]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	somar
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	str	r3, [fp, #-20]	@ float
	bl	getchar
	ldr	r0, [fp, #-20]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L13+36
	bl	printf
	b	.L9
.L7:
	ldr	r0, .L13+24
	bl	printf
	sub	r3, fp, #28
	mov	r1, r3
	ldr	r0, .L13+28
	bl	__isoc99_scanf
	ldr	r0, .L13+32
	bl	printf
	sub	r3, fp, #24
	mov	r1, r3
	ldr	r0, .L13+28
	bl	__isoc99_scanf
	ldr	r3, [fp, #-28]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r4, r0
	mov	r5, r1
	ldr	r3, [fp, #-24]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	menos
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	str	r3, [fp, #-20]	@ float
	bl	getchar
	ldr	r0, [fp, #-20]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L13+40
	bl	printf
	b	.L9
.L6:
	ldr	r0, .L13+24
	bl	printf
	sub	r3, fp, #28
	mov	r1, r3
	ldr	r0, .L13+28
	bl	__isoc99_scanf
	ldr	r0, .L13+32
	bl	printf
	sub	r3, fp, #24
	mov	r1, r3
	ldr	r0, .L13+28
	bl	__isoc99_scanf
	ldr	r3, [fp, #-28]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r4, r0
	mov	r5, r1
	ldr	r3, [fp, #-24]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	multi
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	str	r3, [fp, #-20]	@ float
	bl	getchar
	ldr	r0, [fp, #-20]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L13+44
	bl	printf
	b	.L9
.L5:
	ldr	r0, .L13+24
	bl	printf
	sub	r3, fp, #28
	mov	r1, r3
	ldr	r0, .L13+28
	bl	__isoc99_scanf
	ldr	r0, .L13+32
	bl	printf
	sub	r3, fp, #24
	mov	r1, r3
	ldr	r0, .L13+28
	bl	__isoc99_scanf
	ldr	r3, [fp, #-28]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r4, r0
	mov	r5, r1
	ldr	r3, [fp, #-24]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	divid
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	str	r3, [fp, #-20]	@ float
	bl	getchar
	ldr	r0, [fp, #-20]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L13+48
	bl	printf
	b	.L9
.L3:
	ldr	r0, .L13+52
	bl	system
	b	.L9
.L2:
	ldr	r0, .L13+56
	bl	puts
	bl	getchar
	nop
.L9:
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	cmp	r3, #101
	bne	.L10
	mov	r3, #0
	ldr	r2, .L13
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L12
	bl	__stack_chk_fail
.L12:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC14
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
