	.file	"1154368.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC1:
	.string	"###################"
.LC2:
	.string	"#   CALCULATOR    #"
.LC3:
	.string	"Introduce a number: "
.LC4:
	.string	"%f"
.LC5:
	.string	"Result: %f\n"
.LC6:
	.string	"Math Error"
.LC7:
	.string	"Good bye"
	.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
	pxor	xmm0, xmm0
	movss	DWORD PTR -24[rbp], xmm0
	pxor	xmm0, xmm0
	movss	DWORD PTR -20[rbp], xmm0
	mov	BYTE PTR -25[rbp], 0
	pxor	xmm0, xmm0
	movss	DWORD PTR -16[rbp], xmm0
	mov	DWORD PTR -12[rbp], 0
	lea	rdi, .LC1[rip]
	call	puts@PLT
	lea	rdi, .LC2[rip]
	call	puts@PLT
	lea	rdi, .LC1[rip]
	call	puts@PLT
	jmp	.L2
.L7:
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	scanf_s@PLT
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -20[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	scanf_s@PLT
	lea	rax, -25[rbp]
	mov	rdi, rax
	call	DrawOperationMenu
	movzx	eax, BYTE PTR -25[rbp]
	movsx	ecx, al
	movss	xmm0, DWORD PTR -20[rbp]
	mov	eax, DWORD PTR -24[rbp]
	lea	rdx, -12[rbp]
	lea	rsi, -16[rbp]
	mov	edi, ecx
	movaps	xmm1, xmm0
	movd	xmm0, eax
	call	Calculator
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, 2
	je	.L3
	cmp	eax, 2
	jg	.L10
	test	eax, eax
	je	.L5
	cmp	eax, 1
	je	.L6
	jmp	.L4
.L5:
	movss	xmm0, DWORD PTR -16[rbp]
	pxor	xmm2, xmm2
	cvtss2sd	xmm2, xmm0
	movq	rax, xmm2
	movq	xmm0, rax
	lea	rdi, .LC5[rip]
	mov	eax, 1
	call	printf@PLT
	jmp	.L2
.L6:
	lea	rdi, .LC6[rip]
	call	puts@PLT
	jmp	.L2
.L3:
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L2
.L4:
.L10:
	nop
.L2:
	movzx	eax, BYTE PTR -25[rbp]
	cmp	al, 115
	jne	.L7
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	Calculator
	.type	Calculator, @function
Calculator:
.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
	movss	DWORD PTR -4[rbp], xmm0
	movss	DWORD PTR -8[rbp], xmm1
	mov	eax, edi
	mov	QWORD PTR -24[rbp], rsi
	mov	QWORD PTR -32[rbp], rdx
	mov	BYTE PTR -12[rbp], al
	cmp	BYTE PTR -12[rbp], 43
	jne	.L12
	movss	xmm0, DWORD PTR -4[rbp]
	addss	xmm0, DWORD PTR -8[rbp]
	mov	rax, QWORD PTR -24[rbp]
	movss	DWORD PTR [rax], xmm0
	jmp	.L22
.L12:
	cmp	BYTE PTR -12[rbp], 45
	jne	.L14
	movss	xmm0, DWORD PTR -4[rbp]
	subss	xmm0, DWORD PTR -8[rbp]
	mov	rax, QWORD PTR -24[rbp]
	movss	DWORD PTR [rax], xmm0
	jmp	.L22
.L14:
	cmp	BYTE PTR -12[rbp], 42
	jne	.L15
	movss	xmm0, DWORD PTR -4[rbp]
	mulss	xmm0, DWORD PTR -8[rbp]
	mov	rax, QWORD PTR -24[rbp]
	movss	DWORD PTR [rax], xmm0
	jmp	.L22
.L15:
	cmp	BYTE PTR -12[rbp], 47
	jne	.L16
	pxor	xmm0, xmm0
	ucomiss	xmm0, DWORD PTR -8[rbp]
	jp	.L20
	pxor	xmm0, xmm0
	comiss	xmm0, DWORD PTR -8[rbp]
	je	.L21
.L20:
	movss	xmm0, DWORD PTR -4[rbp]
	divss	xmm0, DWORD PTR -8[rbp]
	mov	rax, QWORD PTR -24[rbp]
	movss	DWORD PTR [rax], xmm0
	jmp	.L22
.L21:
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR [rax], 1
	jmp	.L22
.L16:
	cmp	BYTE PTR -12[rbp], 94
	jne	.L19
	pxor	xmm0, xmm0
	cvtss2sd	xmm0, DWORD PTR -8[rbp]
	pxor	xmm2, xmm2
	cvtss2sd	xmm2, DWORD PTR -4[rbp]
	movq	rax, xmm2
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	pow@PLT
	cvtsd2ss	xmm0, xmm0
	mov	rax, QWORD PTR -24[rbp]
	movss	DWORD PTR [rax], xmm0
	jmp	.L22
.L19:
	cmp	BYTE PTR -12[rbp], 115
	jne	.L22
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR [rax], 2
.L22:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	Calculator, .-Calculator
	.section	.rodata
	.align 8
.LC8:
	.string	"Opertions: \n + (Sum)\n - (Substract)\n * (Multiply)\n / (Divide)\n ^ (Power)\n s (exit)\nChoose operation: "
.LC9:
	.string	" %c"
	.text
	.globl	DrawOperationMenu
	.type	DrawOperationMenu, @function
DrawOperationMenu:
.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	BYTE PTR -9[rbp], 0
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -9[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	movzx	edx, BYTE PTR -9[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	BYTE PTR [rax], dl
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L24
	call	__stack_chk_fail@PLT
.L24:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	DrawOperationMenu, .-DrawOperationMenu
	.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	"1154368.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"###################\000"
	.align	2
.LC1:
	.ascii	"#   CALCULATOR    #\000"
	.align	2
.LC2:
	.ascii	"Introduce a number: \000"
	.align	2
.LC3:
	.ascii	"%f\000"
	.global	__aeabi_f2d
	.align	2
.LC4:
	.ascii	"Result: %f\012\000"
	.align	2
.LC5:
	.ascii	"Math Error\000"
	.align	2
.LC6:
	.ascii	"Good bye\000"
	.align	2
.LC7:
	.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	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-24]	@ float
	mov	r3, #0
	str	r3, [fp, #-20]	@ float
	mov	r3, #0
	strb	r3, [fp, #-25]
	mov	r3, #0
	str	r3, [fp, #-16]	@ float
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r0, .L11+4
	bl	puts
	ldr	r0, .L11+8
	bl	puts
	ldr	r0, .L11+4
	bl	puts
	b	.L2
.L7:
	ldr	r0, .L11+12
	bl	printf
	sub	r3, fp, #24
	mov	r1, r3
	ldr	r0, .L11+16
	bl	scanf_s
	ldr	r0, .L11+12
	bl	printf
	sub	r3, fp, #20
	mov	r1, r3
	ldr	r0, .L11+16
	bl	scanf_s
	sub	r3, fp, #25
	mov	r0, r3
	bl	DrawOperationMenu
	ldr	r0, [fp, #-24]	@ float
	ldr	r1, [fp, #-20]	@ float
	ldrb	r2, [fp, #-25]	@ zero_extendqisi2
	sub	ip, fp, #16
	sub	r3, fp, #12
	str	r3, [sp]
	mov	r3, ip
	bl	Calculator
	ldr	r3, [fp, #-12]
	cmp	r3, #2
	beq	.L3
	cmp	r3, #2
	bgt	.L10
	cmp	r3, #0
	beq	.L5
	cmp	r3, #1
	beq	.L6
	b	.L4
.L5:
	ldr	r3, [fp, #-16]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L11+20
	bl	printf
	b	.L2
.L6:
	ldr	r0, .L11+24
	bl	puts
	b	.L2
.L3:
	ldr	r0, .L11+28
	bl	printf
	b	.L2
.L4:
.L10:
	nop
.L2:
	ldrb	r3, [fp, #-25]	@ zero_extendqisi2
	cmp	r3, #115
	bne	.L7
	mov	r3, #0
	ldr	r2, .L11
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L9
	bl	__stack_chk_fail
.L9:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC7
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	main, .-main
	.global	__aeabi_fadd
	.global	__aeabi_fsub
	.global	__aeabi_fmul
	.global	__aeabi_fcmpeq
	.global	__aeabi_fdiv
	.global	__aeabi_d2f
	.align	2
	.global	Calculator
	.syntax unified
	.arm
	.fpu softvfp
	.type	Calculator, %function
Calculator:
	@ args = 4, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #16
	str	r0, [fp, #-16]	@ float
	str	r1, [fp, #-20]	@ float
	str	r3, [fp, #-28]
	mov	r3, r2
	strb	r3, [fp, #-21]
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	cmp	r3, #43
	bne	.L14
	ldr	r1, [fp, #-20]	@ float
	ldr	r0, [fp, #-16]	@ float
	bl	__aeabi_fadd
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-28]
	str	r2, [r3]	@ float
	b	.L24
.L14:
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	cmp	r3, #45
	bne	.L16
	ldr	r1, [fp, #-20]	@ float
	ldr	r0, [fp, #-16]	@ float
	bl	__aeabi_fsub
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-28]
	str	r2, [r3]	@ float
	b	.L24
.L16:
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	cmp	r3, #42
	bne	.L17
	ldr	r1, [fp, #-20]	@ float
	ldr	r0, [fp, #-16]	@ float
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-28]
	str	r2, [r3]	@ float
	b	.L24
.L17:
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	cmp	r3, #47
	bne	.L18
	mov	r1, #0
	ldr	r0, [fp, #-20]	@ float
	bl	__aeabi_fcmpeq
	mov	r3, r0
	cmp	r3, #0
	bne	.L23
	ldr	r1, [fp, #-20]	@ float
	ldr	r0, [fp, #-16]	@ float
	bl	__aeabi_fdiv
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-28]
	str	r2, [r3]	@ float
	b	.L24
.L23:
	ldr	r3, [fp, #4]
	mov	r2, #1
	str	r2, [r3]
	b	.L24
.L18:
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	cmp	r3, #94
	bne	.L21
	ldr	r0, [fp, #-16]	@ float
	bl	__aeabi_f2d
	mov	r4, r0
	mov	r5, r1
	ldr	r0, [fp, #-20]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	pow
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2f
	mov	r2, r0
	ldr	r3, [fp, #-28]
	str	r2, [r3]	@ float
	b	.L24
.L21:
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	cmp	r3, #115
	bne	.L24
	ldr	r3, [fp, #4]
	mov	r2, #2
	str	r2, [r3]
.L24:
	nop
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
	.size	Calculator, .-Calculator
	.section	.rodata
	.align	2
.LC8:
	.ascii	"Opertions: \012 + (Sum)\012 - (Substract)\012 * (Mu"
	.ascii	"ltiply)\012 / (Divide)\012 ^ (Power)\012 s (exit)\012"
	.ascii	"Choose operation: \000"
	.align	2
.LC9:
	.ascii	" %c\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	DrawOperationMenu
	.syntax unified
	.arm
	.fpu softvfp
	.type	DrawOperationMenu, %function
DrawOperationMenu:
	@ 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, .L27
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	strb	r3, [fp, #-9]
	ldr	r0, .L27+4
	bl	printf
	sub	r3, fp, #9
	mov	r1, r3
	ldr	r0, .L27+8
	bl	__isoc99_scanf
	ldrb	r2, [fp, #-9]	@ zero_extendqisi2
	ldr	r3, [fp, #-16]
	strb	r2, [r3]
	nop
	ldr	r3, .L27
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L26
	bl	__stack_chk_fail
.L26:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L28:
	.align	2
.L27:
	.word	.LC10
	.word	.LC8
	.word	.LC9
	.size	DrawOperationMenu, .-DrawOperationMenu
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
