	.file	"539838.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Enter an operator(+,-,*,/):"
.LC1:
	.string	"%c"
.LC2:
	.string	"Enter two operands:"
.LC3:
	.string	"%lf %lf"
.LC4:
	.string	"%.1lf  +  %.1lf  =  %.1lf"
.LC5:
	.string	"%.1lf  -  %.1lf  =  %.1lf"
.LC6:
	.string	"%.1lf  *  %.1lf  =  %.1lf"
.LC7:
	.string	"%.1lf  /  %.1lf  =  %.1lf"
	.align 8
.LC8:
	.string	"Error, the entered operator is not correct."
	.text
	.globl	main
	.type	main, @function
main:
.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, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -25[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdx, -16[rbp]
	lea	rax, -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	movzx	eax, BYTE PTR -25[rbp]
	movsx	eax, al
	cmp	eax, 47
	je	.L2
	cmp	eax, 47
	jg	.L3
	cmp	eax, 45
	je	.L4
	cmp	eax, 45
	jg	.L3
	cmp	eax, 42
	je	.L5
	cmp	eax, 43
	jne	.L3
	movsd	xmm1, QWORD PTR -24[rbp]
	movsd	xmm0, QWORD PTR -16[rbp]
	addsd	xmm1, xmm0
	movsd	xmm0, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -24[rbp]
	movapd	xmm2, xmm1
	movapd	xmm1, xmm0
	movq	xmm0, rax
	lea	rdi, .LC4[rip]
	mov	eax, 3
	call	printf@PLT
	jmp	.L6
.L4:
	movsd	xmm0, QWORD PTR -24[rbp]
	movsd	xmm1, QWORD PTR -16[rbp]
	movapd	xmm2, xmm0
	subsd	xmm2, xmm1
	movsd	xmm0, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -24[rbp]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	lea	rdi, .LC5[rip]
	mov	eax, 3
	call	printf@PLT
	jmp	.L6
.L5:
	movsd	xmm1, QWORD PTR -24[rbp]
	movsd	xmm0, QWORD PTR -16[rbp]
	mulsd	xmm1, xmm0
	movsd	xmm0, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -24[rbp]
	movapd	xmm2, xmm1
	movapd	xmm1, xmm0
	movq	xmm0, rax
	lea	rdi, .LC6[rip]
	mov	eax, 3
	call	printf@PLT
	jmp	.L6
.L2:
	movsd	xmm0, QWORD PTR -24[rbp]
	movsd	xmm1, QWORD PTR -16[rbp]
	movapd	xmm2, xmm0
	divsd	xmm2, xmm1
	movsd	xmm0, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -24[rbp]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	lea	rdi, .LC7[rip]
	mov	eax, 3
	call	printf@PLT
	jmp	.L6
.L3:
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
.L6:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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	"539838.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Enter an operator(+,-,*,/):\000"
	.align	2
.LC1:
	.ascii	"%c\000"
	.align	2
.LC2:
	.ascii	"Enter two operands:\000"
	.align	2
.LC3:
	.ascii	"%lf %lf\000"
	.global	__aeabi_dadd
	.align	2
.LC4:
	.ascii	"%.1lf  +  %.1lf  =  %.1lf\000"
	.global	__aeabi_dsub
	.align	2
.LC5:
	.ascii	"%.1lf  -  %.1lf  =  %.1lf\000"
	.global	__aeabi_dmul
	.align	2
.LC6:
	.ascii	"%.1lf  *  %.1lf  =  %.1lf\000"
	.global	__aeabi_ddiv
	.align	2
.LC7:
	.ascii	"%.1lf  /  %.1lf  =  %.1lf\000"
	.align	2
.LC8:
	.ascii	"Error, the entered operator is not correct.\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 = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #48
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	ldr	r0, .L11+4
	bl	printf
	sub	r3, fp, #45
	mov	r1, r3
	ldr	r0, .L11+8
	bl	__isoc99_scanf
	ldr	r0, .L11+12
	bl	printf
	sub	r2, fp, #36
	sub	r3, fp, #44
	mov	r1, r3
	ldr	r0, .L11+16
	bl	__isoc99_scanf
	ldrb	r3, [fp, #-45]	@ zero_extendqisi2
	sub	r3, r3, #42
	cmp	r3, #5
	ldrls	pc, [pc, r3, asl #2]
	b	.L2
.L4:
	.word	.L7
	.word	.L6
	.word	.L2
	.word	.L5
	.word	.L2
	.word	.L3
.L6:
	sub	r7, fp, #44
	ldmia	r7, {r6-r7}
	sub	r5, fp, #36
	ldmia	r5, {r4-r5}
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [sp, #8]
	str	r3, [sp, #12]
	stm	sp, {r4-r5}
	mov	r2, r6
	mov	r3, r7
	ldr	r0, .L11+20
	bl	printf
	b	.L8
.L5:
	sub	r7, fp, #44
	ldmia	r7, {r6-r7}
	sub	r5, fp, #36
	ldmia	r5, {r4-r5}
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	str	r2, [sp, #8]
	str	r3, [sp, #12]
	stm	sp, {r4-r5}
	mov	r2, r6
	mov	r3, r7
	ldr	r0, .L11+24
	bl	printf
	b	.L8
.L7:
	sub	r7, fp, #44
	ldmia	r7, {r6-r7}
	sub	r5, fp, #36
	ldmia	r5, {r4-r5}
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	str	r2, [sp, #8]
	str	r3, [sp, #12]
	stm	sp, {r4-r5}
	mov	r2, r6
	mov	r3, r7
	ldr	r0, .L11+28
	bl	printf
	b	.L8
.L3:
	sub	r7, fp, #44
	ldmia	r7, {r6-r7}
	sub	r5, fp, #36
	ldmia	r5, {r4-r5}
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [sp, #8]
	str	r3, [sp, #12]
	stm	sp, {r4-r5}
	mov	r2, r6
	mov	r3, r7
	ldr	r0, .L11+32
	bl	printf
	b	.L8
.L2:
	ldr	r0, .L11+36
	bl	printf
.L8:
	mov	r3, #0
	ldr	r2, .L11
	ldr	r1, [r2]
	ldr	r2, [fp, #-24]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	mov	r0, r3
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC9
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
