	.file	"597803.c"
	.intel_syntax noprefix
	.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, 16
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	mov	eax, 0
	call	Menu
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	add
	.type	add, @function
add:
.LFB1:
	.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 -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	mov	edx, DWORD PTR -4[rbp]
	mov	eax, DWORD PTR -8[rbp]
	add	eax, edx
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	add, .-add
	.globl	sub
	.type	sub, @function
sub:
.LFB2:
	.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 -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, DWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	sub, .-sub
	.globl	mult
	.type	mult, @function
mult:
.LFB3:
	.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 -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	mov	eax, DWORD PTR -4[rbp]
	imul	eax, DWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	mult, .-mult
	.section	.rodata
.LC0:
	.string	"result is infinitive"
	.text
	.globl	div
	.type	div, @function
div:
.LFB4:
	.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	DWORD PTR -8[rbp], esi
	cmp	DWORD PTR -8[rbp], 0
	jne	.L10
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	eax, 0
	jmp	.L11
.L10:
	mov	eax, DWORD PTR -4[rbp]
	cdq
	idiv	DWORD PTR -8[rbp]
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	div, .-div
	.globl	modulo
	.type	modulo, @function
modulo:
.LFB5:
	.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 -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	mov	eax, DWORD PTR -4[rbp]
	cdq
	idiv	DWORD PTR -8[rbp]
	mov	eax, edx
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	modulo, .-modulo
	.globl	power
	.type	power, @function
power:
.LFB6:
	.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 -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	DWORD PTR -4[rbp], 1
	mov	DWORD PTR -8[rbp], 0
	jmp	.L15
.L16:
	mov	eax, DWORD PTR -4[rbp]
	imul	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -4[rbp], eax
	add	DWORD PTR -8[rbp], 1
.L15:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -24[rbp]
	jl	.L16
	mov	eax, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	power, .-power
	.globl	doit
	.type	doit, @function
doit:
.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	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	mov	edx, DWORD PTR -32[rbp]
	mov	eax, DWORD PTR -28[rbp]
	mov	rcx, QWORD PTR -24[rbp]
	mov	esi, edx
	mov	edi, eax
	call	rcx
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	doit, .-doit
	.section	.rodata
.LC1:
	.string	"Please give %d.grade\n"
.LC2:
	.string	"%d"
	.text
	.globl	take_grades
	.type	take_grades, @function
take_grades:
.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	DWORD PTR -4[rbp], 0
	jmp	.L21
.L22:
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 1
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	DWORD PTR -4[rbp], 1
.L21:
	cmp	DWORD PTR -4[rbp], 9
	jle	.L22
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	take_grades, .-take_grades
	.section	.rodata
.LC3:
	.string	"Please give midterm grade"
.LC4:
	.string	"Please give final grade"
	.text
	.globl	take_exam_grades
	.type	take_exam_grades, @function
take_exam_grades:
.LFB9:
	.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	DWORD PTR -4[rbp], 0
	jmp	.L24
.L27:
	cmp	DWORD PTR -4[rbp], 0
	jne	.L25
	lea	rdi, .LC3[rip]
	call	puts@PLT
	jmp	.L26
.L25:
	lea	rdi, .LC4[rip]
	call	puts@PLT
.L26:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	DWORD PTR -4[rbp], 1
.L24:
	cmp	DWORD PTR -4[rbp], 1
	jle	.L27
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	take_exam_grades, .-take_exam_grades
	.globl	calculate_homework
	.type	calculate_homework, @function
calculate_homework:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	pxor	xmm0, xmm0
	movsd	QWORD PTR -8[rbp], xmm0
	mov	DWORD PTR -12[rbp], 0
	jmp	.L29
.L30:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	movsd	xmm1, QWORD PTR -8[rbp]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -8[rbp], xmm0
	add	DWORD PTR -12[rbp], 1
.L29:
	cmp	DWORD PTR -12[rbp], 9
	jle	.L30
	movsd	xmm0, QWORD PTR -8[rbp]
	movsd	xmm1, QWORD PTR .LC6[rip]
	divsd	xmm0, xmm1
	movq	rax, xmm0
	movq	xmm0, rax
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	calculate_homework, .-calculate_homework
	.globl	calculate_lab
	.type	calculate_lab, @function
calculate_lab:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	pxor	xmm0, xmm0
	movsd	QWORD PTR -8[rbp], xmm0
	mov	DWORD PTR -12[rbp], 0
	jmp	.L33
.L34:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	movsd	xmm1, QWORD PTR -8[rbp]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -8[rbp], xmm0
	add	DWORD PTR -12[rbp], 1
.L33:
	cmp	DWORD PTR -12[rbp], 9
	jle	.L34
	movsd	xmm0, QWORD PTR -8[rbp]
	movsd	xmm1, QWORD PTR .LC6[rip]
	divsd	xmm0, xmm1
	movq	rax, xmm0
	movq	xmm0, rax
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	calculate_lab, .-calculate_lab
	.globl	calculate_all
	.type	calculate_all, @function
calculate_all:
.LFB12:
	.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 -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -24[rbp], edx
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -20[rbp]
	movsd	xmm2, QWORD PTR .LC6[rip]
	movapd	xmm1, xmm0
	divsd	xmm1, xmm2
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -24[rbp]
	movsd	xmm2, QWORD PTR .LC7[rip]
	divsd	xmm0, xmm2
	addsd	xmm1, xmm0
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR [rax]
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, eax
	movsd	xmm0, QWORD PTR .LC8[rip]
	mulsd	xmm0, xmm2
	movsd	xmm2, QWORD PTR .LC6[rip]
	divsd	xmm0, xmm2
	addsd	xmm1, xmm0
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 4
	mov	eax, DWORD PTR [rax]
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, eax
	movsd	xmm0, QWORD PTR .LC9[rip]
	mulsd	xmm0, xmm2
	movsd	xmm2, QWORD PTR .LC6[rip]
	divsd	xmm0, xmm2
	addsd	xmm0, xmm1
	movsd	QWORD PTR -8[rbp], xmm0
	movsd	xmm0, QWORD PTR -8[rbp]
	movq	rax, xmm0
	movq	xmm0, rax
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	calculate_all, .-calculate_all
	.section	.rodata
.LC10:
	.string	"ESC\n"
.LC11:
	.string	"esc\n"
.LC12:
	.string	"+"
.LC13:
	.string	"-"
.LC14:
	.string	"*"
.LC15:
	.string	"/"
.LC16:
	.string	"**"
.LC17:
	.string	"%"
.LC18:
	.string	"result is : %d\n"
	.text
	.globl	Run_Part1
	.type	Run_Part1, @function
Run_Part1:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 144
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -124[rbp], 0
	mov	DWORD PTR -120[rbp], 0
	lea	rax, -115[rbp]
	mov	edx, 3
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rax, -112[rbp]
	mov	edx, 100
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -112[rbp]
	mov	esi, 100
	mov	rdi, rax
	call	fgets@PLT
.L57:
	mov	DWORD PTR -120[rbp], 0
	lea	rax, -115[rbp]
	mov	edx, 3
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rax, -112[rbp]
	mov	edx, 100
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -112[rbp]
	mov	esi, 100
	mov	rdi, rax
	call	fgets@PLT
	lea	rax, -112[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L39
	lea	rax, -112[rbp]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L39
	jmp	.L40
.L41:
	mov	eax, DWORD PTR -120[rbp]
	cdqe
	movzx	edx, BYTE PTR -112[rbp+rax]
	mov	eax, DWORD PTR -120[rbp]
	cdqe
	mov	BYTE PTR -115[rbp+rax], dl
	add	DWORD PTR -120[rbp], 1
.L40:
	mov	eax, DWORD PTR -120[rbp]
	cdqe
	movzx	eax, BYTE PTR -112[rbp+rax]
	cmp	al, 32
	jne	.L41
	add	DWORD PTR -120[rbp], 1
	mov	DWORD PTR -132[rbp], 0
	jmp	.L42
.L44:
	mov	eax, DWORD PTR -120[rbp]
	cdqe
	movzx	eax, BYTE PTR -112[rbp+rax]
	movsx	eax, al
	lea	ecx, -48[rax]
	mov	edx, DWORD PTR -132[rbp]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	add	eax, ecx
	mov	DWORD PTR -132[rbp], eax
	add	DWORD PTR -120[rbp], 1
.L42:
	mov	eax, DWORD PTR -120[rbp]
	cdqe
	movzx	eax, BYTE PTR -112[rbp+rax]
	cmp	al, 32
	je	.L43
	mov	eax, DWORD PTR -120[rbp]
	cdqe
	movzx	eax, BYTE PTR -112[rbp+rax]
	test	al, al
	je	.L43
	mov	eax, DWORD PTR -120[rbp]
	cdqe
	movzx	eax, BYTE PTR -112[rbp+rax]
	cmp	al, 10
	jne	.L44
.L43:
	mov	eax, DWORD PTR -120[rbp]
	cdqe
	movzx	eax, BYTE PTR -112[rbp+rax]
	cmp	al, 10
	je	.L45
	mov	eax, DWORD PTR -120[rbp]
	cdqe
	movzx	eax, BYTE PTR -112[rbp+rax]
	test	al, al
	jne	.L46
.L45:
	mov	eax, DWORD PTR -132[rbp]
	mov	DWORD PTR -128[rbp], eax
	mov	eax, DWORD PTR -124[rbp]
	mov	DWORD PTR -132[rbp], eax
	jmp	.L47
.L46:
	add	DWORD PTR -120[rbp], 1
	mov	DWORD PTR -128[rbp], 0
	jmp	.L48
.L49:
	mov	eax, DWORD PTR -120[rbp]
	cdqe
	movzx	eax, BYTE PTR -112[rbp+rax]
	movsx	eax, al
	lea	ecx, -48[rax]
	mov	edx, DWORD PTR -128[rbp]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	add	eax, ecx
	mov	DWORD PTR -128[rbp], eax
	add	DWORD PTR -120[rbp], 1
.L48:
	mov	eax, DWORD PTR -120[rbp]
	cdqe
	movzx	eax, BYTE PTR -112[rbp+rax]
	cmp	al, 32
	je	.L47
	mov	eax, DWORD PTR -120[rbp]
	cdqe
	movzx	eax, BYTE PTR -112[rbp+rax]
	test	al, al
	je	.L47
	mov	eax, DWORD PTR -120[rbp]
	cdqe
	movzx	eax, BYTE PTR -112[rbp+rax]
	cmp	al, 10
	jne	.L49
.L47:
	lea	rax, -115[rbp]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L50
	mov	edx, DWORD PTR -128[rbp]
	mov	eax, DWORD PTR -132[rbp]
	mov	esi, eax
	lea	rdi, add[rip]
	call	doit
	mov	DWORD PTR -124[rbp], eax
	jmp	.L51
.L50:
	lea	rax, -115[rbp]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L52
	mov	edx, DWORD PTR -128[rbp]
	mov	eax, DWORD PTR -132[rbp]
	mov	esi, eax
	lea	rdi, sub[rip]
	call	doit
	mov	DWORD PTR -124[rbp], eax
	jmp	.L51
.L52:
	lea	rax, -115[rbp]
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L53
	mov	edx, DWORD PTR -128[rbp]
	mov	eax, DWORD PTR -132[rbp]
	mov	esi, eax
	lea	rdi, mult[rip]
	call	doit
	mov	DWORD PTR -124[rbp], eax
	jmp	.L51
.L53:
	lea	rax, -115[rbp]
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L54
	mov	edx, DWORD PTR -128[rbp]
	mov	eax, DWORD PTR -132[rbp]
	mov	esi, eax
	lea	rdi, div[rip]
	call	doit
	mov	DWORD PTR -124[rbp], eax
	jmp	.L51
.L54:
	lea	rax, -115[rbp]
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L55
	mov	edx, DWORD PTR -128[rbp]
	mov	eax, DWORD PTR -132[rbp]
	mov	esi, eax
	lea	rdi, power[rip]
	call	doit
	mov	DWORD PTR -124[rbp], eax
	jmp	.L51
.L55:
	lea	rax, -115[rbp]
	lea	rsi, .LC17[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L51
	mov	edx, DWORD PTR -128[rbp]
	mov	eax, DWORD PTR -132[rbp]
	mov	esi, eax
	lea	rdi, modulo[rip]
	call	doit
	mov	DWORD PTR -124[rbp], eax
.L51:
	mov	eax, DWORD PTR -124[rbp]
	mov	esi, eax
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
.L39:
	lea	rax, -112[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L59
	lea	rax, -112[rbp]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L57
.L59:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L58
	call	__stack_chk_fail@PLT
.L58:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	Run_Part1, .-Run_Part1
	.section	.rodata
.LC19:
	.string	"HOMEWORK GRADES:\n"
.LC20:
	.string	"LAB GRADES:\n"
.LC21:
	.string	"EXAM GRADES:\n"
.LC22:
	.string	"final_grade: %lf\n"
	.text
	.globl	Run_Part2
	.type	Run_Part2, @function
Run_Part2:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	add	rsp, -128
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC19[rip]
	call	puts@PLT
	lea	rax, -96[rbp]
	mov	rdi, rax
	call	take_grades
	lea	rdi, .LC20[rip]
	call	puts@PLT
	lea	rax, -48[rbp]
	mov	rdi, rax
	call	take_grades
	lea	rdi, .LC21[rip]
	call	puts@PLT
	lea	rax, -104[rbp]
	mov	rdi, rax
	call	take_exam_grades
	lea	rax, -96[rbp]
	mov	rdi, rax
	call	calculate_homework
	movq	rax, xmm0
	mov	QWORD PTR -128[rbp], rax
	lea	rax, -48[rbp]
	mov	rdi, rax
	call	calculate_lab
	movq	rax, xmm0
	mov	QWORD PTR -120[rbp], rax
	movsd	xmm0, QWORD PTR -120[rbp]
	cvttsd2si	edx, xmm0
	movsd	xmm0, QWORD PTR -128[rbp]
	cvttsd2si	eax, xmm0
	lea	rcx, -104[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	calculate_all
	movq	rax, xmm0
	mov	QWORD PTR -112[rbp], rax
	mov	rax, QWORD PTR -112[rbp]
	movq	xmm0, rax
	lea	rdi, .LC22[rip]
	mov	eax, 1
	call	printf@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L61
	call	__stack_chk_fail@PLT
.L61:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	Run_Part2, .-Run_Part2
	.globl	print_whitespaces
	.type	print_whitespaces, @function
print_whitespaces:
.LFB15:
	.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	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L63
.L64:
	mov	edi, 32
	call	putchar@PLT
	add	DWORD PTR -4[rbp], 1
.L63:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jl	.L64
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	print_whitespaces, .-print_whitespaces
	.globl	print_stars
	.type	print_stars, @function
print_stars:
.LFB16:
	.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	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L66
.L67:
	mov	edi, 42
	call	putchar@PLT
	add	DWORD PTR -4[rbp], 1
.L66:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jl	.L67
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	print_stars, .-print_stars
	.section	.rodata
.LC23:
	.string	"Please give the height: "
	.text
	.globl	Run_Part3
	.type	Run_Part3, @function
Run_Part3:
.LFB17:
	.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
	mov	DWORD PTR -16[rbp], 0
	lea	rdi, .LC23[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -24[rbp]
	sub	eax, 1
	mov	DWORD PTR -12[rbp], eax
	mov	DWORD PTR -20[rbp], 0
	jmp	.L69
.L70:
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	print_whitespaces
	mov	edi, 47
	call	putchar@PLT
	mov	eax, DWORD PTR -16[rbp]
	mov	edi, eax
	call	print_stars
	mov	edi, 92
	call	putchar@PLT
	sub	DWORD PTR -12[rbp], 1
	add	DWORD PTR -16[rbp], 2
	mov	edi, 10
	call	putchar@PLT
	add	DWORD PTR -20[rbp], 1
.L69:
	mov	eax, DWORD PTR -24[rbp]
	cmp	DWORD PTR -20[rbp], eax
	jl	.L70
	mov	DWORD PTR -12[rbp], 0
	sub	DWORD PTR -16[rbp], 2
	mov	DWORD PTR -20[rbp], 0
	jmp	.L71
.L72:
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	print_whitespaces
	mov	edi, 92
	call	putchar@PLT
	mov	eax, DWORD PTR -16[rbp]
	mov	edi, eax
	call	print_stars
	mov	edi, 47
	call	putchar@PLT
	add	DWORD PTR -12[rbp], 1
	sub	DWORD PTR -16[rbp], 2
	mov	edi, 10
	call	putchar@PLT
	add	DWORD PTR -20[rbp], 1
.L71:
	mov	eax, DWORD PTR -24[rbp]
	cmp	DWORD PTR -20[rbp], eax
	jl	.L72
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L73
	call	__stack_chk_fail@PLT
.L73:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	Run_Part3, .-Run_Part3
	.section	.rodata
.LC24:
	.string	"***** MENU *****"
.LC25:
	.string	"1.Run_Part1"
.LC26:
	.string	"2.Run_Part2"
.LC27:
	.string	"3.Run_Part3"
.LC28:
	.string	"4. Exit"
.LC29:
	.string	"\nWelcome to calculator"
.LC30:
	.string	"for addition '+'"
.LC31:
	.string	"for subtraction '-'"
.LC32:
	.string	"for multiplication '*'"
.LC33:
	.string	"for division '/'"
.LC34:
	.string	"for power '**'"
.LC35:
	.string	"for modulo '%%'\n"
	.align 8
.LC36:
	.string	"\nyou can enter process like: + 10 2 or for one input / 5 "
	.align 8
.LC37:
	.string	"to get back to the menu, please write 'ESC' or 'esc' and enter it"
.LC38:
	.string	"\nThank you for playing this ."
	.align 8
.LC39:
	.string	"You entered an invalid number, please enter a valid number"
	.text
	.globl	Menu
	.type	Menu, @function
Menu:
.LFB18:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
.L81:
	mov	edi, 10
	call	putchar@PLT
	lea	rdi, .LC24[rip]
	call	puts@PLT
	lea	rdi, .LC25[rip]
	call	puts@PLT
	lea	rdi, .LC26[rip]
	call	puts@PLT
	lea	rdi, .LC27[rip]
	call	puts@PLT
	lea	rdi, .LC28[rip]
	call	puts@PLT
	lea	rax, -12[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, 4
	je	.L75
	cmp	eax, 4
	jg	.L76
	cmp	eax, 3
	je	.L77
	cmp	eax, 3
	jg	.L76
	cmp	eax, 1
	je	.L78
	cmp	eax, 2
	je	.L79
	jmp	.L76
.L78:
	lea	rdi, .LC29[rip]
	call	puts@PLT
	lea	rdi, .LC30[rip]
	call	puts@PLT
	lea	rdi, .LC31[rip]
	call	puts@PLT
	lea	rdi, .LC32[rip]
	call	puts@PLT
	lea	rdi, .LC33[rip]
	call	puts@PLT
	lea	rdi, .LC34[rip]
	call	puts@PLT
	lea	rdi, .LC35[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC36[rip]
	call	puts@PLT
	lea	rdi, .LC37[rip]
	call	puts@PLT
	mov	eax, 0
	call	Run_Part1
	jmp	.L80
.L79:
	mov	eax, 0
	call	Run_Part2
	jmp	.L80
.L77:
	mov	eax, 0
	call	Run_Part3
	jmp	.L80
.L75:
	lea	rdi, .LC38[rip]
	call	puts@PLT
	jmp	.L80
.L76:
	lea	rdi, .LC39[rip]
	call	puts@PLT
.L80:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, 4
	jne	.L81
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L82
	call	__stack_chk_fail@PLT
.L82:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	Menu, .-Menu
	.section	.rodata
	.align 8
.LC6:
	.long	0
	.long	1076101120
	.align 8
.LC7:
	.long	0
	.long	1075052544
	.align 8
.LC8:
	.long	0
	.long	1074266112
	.align 8
.LC9:
	.long	0
	.long	1074790400
	.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	"597803.c"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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]
	bl	Menu
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	main, .-main
	.align	2
	.global	add
	.syntax unified
	.arm
	.fpu softvfp
	.type	add, %function
add:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	add, .-add
	.align	2
	.global	sub
	.syntax unified
	.arm
	.fpu softvfp
	.type	sub, %function
sub:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	sub	r3, r2, r3
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	sub, .-sub
	.align	2
	.global	mult
	.syntax unified
	.arm
	.fpu softvfp
	.type	mult, %function
mult:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	mul	r3, r2, r3
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	mult, .-mult
	.section	.rodata
	.align	2
.LC0:
	.ascii	"result is infinitive\000"
	.global	__aeabi_idiv
	.text
	.align	2
	.global	div
	.syntax unified
	.arm
	.fpu softvfp
	.type	div, %function
div:
	@ 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]
	cmp	r3, #0
	bne	.L10
	ldr	r0, .L12
	bl	puts
	mov	r3, #0
	b	.L11
.L10:
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	__aeabi_idiv
	mov	r3, r0
.L11:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC0
	.size	div, .-div
	.global	__aeabi_idivmod
	.align	2
	.global	modulo
	.syntax unified
	.arm
	.fpu softvfp
	.type	modulo, %function
modulo:
	@ 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, #-8]
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	modulo, .-modulo
	.align	2
	.global	power
	.syntax unified
	.arm
	.fpu softvfp
	.type	power, %function
power:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #1
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L17
.L18:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	mul	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L17:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L18
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	power, .-power
	.align	2
	.global	doit
	.syntax unified
	.arm
	.fpu softvfp
	.type	doit, %function
doit:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r3, [fp, #-16]
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-20]
	blx	r3
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	doit, .-doit
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Please give %d.grade\012\000"
	.align	2
.LC2:
	.ascii	"%d\000"
	.text
	.align	2
	.global	take_grades
	.syntax unified
	.arm
	.fpu softvfp
	.type	take_grades, %function
take_grades:
	@ 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	r3, #0
	str	r3, [fp, #-8]
	b	.L23
.L24:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L25
	bl	printf
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L25+4
	bl	__isoc99_scanf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L23:
	ldr	r3, [fp, #-8]
	cmp	r3, #9
	ble	.L24
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L26:
	.align	2
.L25:
	.word	.LC1
	.word	.LC2
	.size	take_grades, .-take_grades
	.section	.rodata
	.align	2
.LC3:
	.ascii	"Please give midterm grade\000"
	.align	2
.LC4:
	.ascii	"Please give final grade\000"
	.text
	.align	2
	.global	take_exam_grades
	.syntax unified
	.arm
	.fpu softvfp
	.type	take_exam_grades, %function
take_exam_grades:
	@ 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	r3, #0
	str	r3, [fp, #-8]
	b	.L28
.L31:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L29
	ldr	r0, .L32
	bl	puts
	b	.L30
.L29:
	ldr	r0, .L32+4
	bl	puts
.L30:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L32+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L28:
	ldr	r3, [fp, #-8]
	cmp	r3, #1
	ble	.L31
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L33:
	.align	2
.L32:
	.word	.LC3
	.word	.LC4
	.word	.LC2
	.size	take_exam_grades, .-take_exam_grades
	.global	__aeabi_i2d
	.global	__aeabi_dadd
	.global	__aeabi_ddiv
	.align	2
	.global	calculate_homework
	.syntax unified
	.arm
	.fpu softvfp
	.type	calculate_homework, %function
calculate_homework:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-12]
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L35
.L36:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #12
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-12]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L35:
	ldr	r3, [fp, #-16]
	cmp	r3, #9
	ble	.L36
	mov	r2, #0
	ldr	r3, .L38
	sub	r1, fp, #12
	ldmia	r1, {r0-r1}
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L39:
	.align	2
.L38:
	.word	1076101120
	.size	calculate_homework, .-calculate_homework
	.align	2
	.global	calculate_lab
	.syntax unified
	.arm
	.fpu softvfp
	.type	calculate_lab, %function
calculate_lab:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-12]
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L41
.L42:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #12
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-12]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L41:
	ldr	r3, [fp, #-16]
	cmp	r3, #9
	ble	.L42
	mov	r2, #0
	ldr	r3, .L44
	sub	r1, fp, #12
	ldmia	r1, {r0-r1}
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L45:
	.align	2
.L44:
	.word	1076101120
	.size	calculate_lab, .-calculate_lab
	.global	__aeabi_dmul
	.align	2
	.global	calculate_all
	.syntax unified
	.arm
	.fpu softvfp
	.type	calculate_all, %function
calculate_all:
	@ 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
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	ldr	r0, [fp, #-24]
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L48
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r0, [fp, #-32]
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L48+4
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L48+8
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L48
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r3, [fp, #-28]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L48+12
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L48
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L49:
	.align	2
.L48:
	.word	1076101120
	.word	1075052544
	.word	1074266112
	.word	1074790400
	.size	calculate_all, .-calculate_all
	.section	.rodata
	.align	2
.LC5:
	.ascii	"ESC\012\000"
	.align	2
.LC6:
	.ascii	"esc\012\000"
	.align	2
.LC7:
	.ascii	"+\000"
	.align	2
.LC8:
	.ascii	"-\000"
	.align	2
.LC9:
	.ascii	"*\000"
	.align	2
.LC10:
	.ascii	"/\000"
	.align	2
.LC11:
	.ascii	"**\000"
	.align	2
.LC12:
	.ascii	"%\000"
	.align	2
.LC13:
	.ascii	"result is : %d\012\000"
	.align	2
.LC14:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	Run_Part1
	.syntax unified
	.arm
	.fpu softvfp
	.type	Run_Part1, %function
Run_Part1:
	@ args = 0, pretend = 0, frame = 128
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #128
	ldr	r3, .L72
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-120]
	mov	r3, #0
	str	r3, [fp, #-116]
	sub	r3, fp, #112
	mov	r2, #3
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #108
	mov	r2, #100
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, .L72+4
	ldr	r2, [r3]
	sub	r3, fp, #108
	mov	r1, #100
	mov	r0, r3
	bl	fgets
.L69:
	mov	r3, #0
	str	r3, [fp, #-116]
	sub	r3, fp, #112
	mov	r2, #3
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #108
	mov	r2, #100
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, .L72+4
	ldr	r2, [r3]
	sub	r3, fp, #108
	mov	r1, #100
	mov	r0, r3
	bl	fgets
	sub	r3, fp, #108
	ldr	r1, .L72+8
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L51
	sub	r3, fp, #108
	ldr	r1, .L72+12
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L51
	b	.L52
.L53:
	sub	r2, fp, #108
	ldr	r3, [fp, #-116]
	add	r3, r2, r3
	ldrb	r1, [r3]	@ zero_extendqisi2
	sub	r2, fp, #112
	ldr	r3, [fp, #-116]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-116]
	add	r3, r3, #1
	str	r3, [fp, #-116]
.L52:
	sub	r2, fp, #108
	ldr	r3, [fp, #-116]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L53
	ldr	r3, [fp, #-116]
	add	r3, r3, #1
	str	r3, [fp, #-116]
	mov	r3, #0
	str	r3, [fp, #-128]
	b	.L54
.L56:
	sub	r2, fp, #108
	ldr	r3, [fp, #-116]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r1, r3, #48
	ldr	r2, [fp, #-128]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r1, r3
	str	r3, [fp, #-128]
	ldr	r3, [fp, #-116]
	add	r3, r3, #1
	str	r3, [fp, #-116]
.L54:
	sub	r2, fp, #108
	ldr	r3, [fp, #-116]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L55
	sub	r2, fp, #108
	ldr	r3, [fp, #-116]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L55
	sub	r2, fp, #108
	ldr	r3, [fp, #-116]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L56
.L55:
	sub	r2, fp, #108
	ldr	r3, [fp, #-116]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	beq	.L57
	sub	r2, fp, #108
	ldr	r3, [fp, #-116]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L58
.L57:
	ldr	r3, [fp, #-128]
	str	r3, [fp, #-124]
	ldr	r3, [fp, #-120]
	str	r3, [fp, #-128]
	b	.L59
.L58:
	ldr	r3, [fp, #-116]
	add	r3, r3, #1
	str	r3, [fp, #-116]
	mov	r3, #0
	str	r3, [fp, #-124]
	b	.L60
.L61:
	sub	r2, fp, #108
	ldr	r3, [fp, #-116]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r1, r3, #48
	ldr	r2, [fp, #-124]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r1, r3
	str	r3, [fp, #-124]
	ldr	r3, [fp, #-116]
	add	r3, r3, #1
	str	r3, [fp, #-116]
.L60:
	sub	r2, fp, #108
	ldr	r3, [fp, #-116]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L59
	sub	r2, fp, #108
	ldr	r3, [fp, #-116]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L59
	sub	r2, fp, #108
	ldr	r3, [fp, #-116]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L61
.L59:
	sub	r3, fp, #112
	ldr	r1, .L72+16
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L62
	ldr	r2, [fp, #-124]
	ldr	r1, [fp, #-128]
	ldr	r0, .L72+20
	bl	doit
	str	r0, [fp, #-120]
	b	.L63
.L62:
	sub	r3, fp, #112
	ldr	r1, .L72+24
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L64
	ldr	r2, [fp, #-124]
	ldr	r1, [fp, #-128]
	ldr	r0, .L72+28
	bl	doit
	str	r0, [fp, #-120]
	b	.L63
.L64:
	sub	r3, fp, #112
	ldr	r1, .L72+32
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L65
	ldr	r2, [fp, #-124]
	ldr	r1, [fp, #-128]
	ldr	r0, .L72+36
	bl	doit
	str	r0, [fp, #-120]
	b	.L63
.L65:
	sub	r3, fp, #112
	ldr	r1, .L72+40
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L66
	ldr	r2, [fp, #-124]
	ldr	r1, [fp, #-128]
	ldr	r0, .L72+44
	bl	doit
	str	r0, [fp, #-120]
	b	.L63
.L66:
	sub	r3, fp, #112
	ldr	r1, .L72+48
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L67
	ldr	r2, [fp, #-124]
	ldr	r1, [fp, #-128]
	ldr	r0, .L72+52
	bl	doit
	str	r0, [fp, #-120]
	b	.L63
.L67:
	sub	r3, fp, #112
	ldr	r1, .L72+56
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L63
	ldr	r2, [fp, #-124]
	ldr	r1, [fp, #-128]
	ldr	r0, .L72+60
	bl	doit
	str	r0, [fp, #-120]
.L63:
	ldr	r1, [fp, #-120]
	ldr	r0, .L72+64
	bl	printf
.L51:
	sub	r3, fp, #108
	ldr	r1, .L72+8
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L71
	sub	r3, fp, #108
	ldr	r1, .L72+12
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L69
.L71:
	nop
	ldr	r3, .L72
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L70
	bl	__stack_chk_fail
.L70:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L73:
	.align	2
.L72:
	.word	.LC14
	.word	stdin
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	add
	.word	.LC8
	.word	sub
	.word	.LC9
	.word	mult
	.word	.LC10
	.word	div
	.word	.LC11
	.word	power
	.word	.LC12
	.word	modulo
	.word	.LC13
	.size	Run_Part1, .-Run_Part1
	.section	.rodata
	.align	2
.LC15:
	.ascii	"HOMEWORK GRADES:\012\000"
	.align	2
.LC16:
	.ascii	"LAB GRADES:\012\000"
	.align	2
.LC17:
	.ascii	"EXAM GRADES:\012\000"
	.global	__aeabi_d2iz
	.align	2
.LC18:
	.ascii	"final_grade: %lf\012\000"
	.align	2
.LC19:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	Run_Part2
	.syntax unified
	.arm
	.fpu softvfp
	.type	Run_Part2, %function
Run_Part2:
	@ args = 0, pretend = 0, frame = 120
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #124
	ldr	r3, .L76
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r0, .L76+4
	bl	puts
	sub	r3, fp, #96
	mov	r0, r3
	bl	take_grades
	ldr	r0, .L76+8
	bl	puts
	sub	r3, fp, #56
	mov	r0, r3
	bl	take_grades
	ldr	r0, .L76+12
	bl	puts
	sub	r3, fp, #104
	mov	r0, r3
	bl	take_exam_grades
	sub	r3, fp, #96
	mov	r0, r3
	bl	calculate_homework
	str	r0, [fp, #-132]
	str	r1, [fp, #-128]
	sub	r3, fp, #56
	mov	r0, r3
	bl	calculate_lab
	str	r0, [fp, #-124]
	str	r1, [fp, #-120]
	sub	r1, fp, #132
	ldmia	r1, {r0-r1}
	bl	__aeabi_d2iz
	mov	r4, r0
	sub	r1, fp, #124
	ldmia	r1, {r0-r1}
	bl	__aeabi_d2iz
	mov	r2, r0
	sub	r3, fp, #104
	mov	r1, r3
	mov	r0, r4
	bl	calculate_all
	str	r0, [fp, #-116]
	str	r1, [fp, #-112]
	sub	r3, fp, #116
	ldmia	r3, {r2-r3}
	ldr	r0, .L76+16
	bl	printf
	nop
	ldr	r3, .L76
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L75
	bl	__stack_chk_fail
.L75:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L77:
	.align	2
.L76:
	.word	.LC19
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.size	Run_Part2, .-Run_Part2
	.align	2
	.global	print_whitespaces
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_whitespaces, %function
print_whitespaces:
	@ 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	r3, #0
	str	r3, [fp, #-8]
	b	.L79
.L80:
	mov	r0, #32
	bl	putchar
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L79:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	blt	.L80
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	print_whitespaces, .-print_whitespaces
	.align	2
	.global	print_stars
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_stars, %function
print_stars:
	@ 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	r3, #0
	str	r3, [fp, #-8]
	b	.L82
.L83:
	mov	r0, #42
	bl	putchar
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L82:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	blt	.L83
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	print_stars, .-print_stars
	.section	.rodata
	.align	2
.LC20:
	.ascii	"Please give the height: \000"
	.align	2
.LC21:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	Run_Part3
	.syntax unified
	.arm
	.fpu softvfp
	.type	Run_Part3, %function
Run_Part3:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	ldr	r3, .L90
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r0, .L90+4
	bl	printf
	sub	r3, fp, #24
	mov	r1, r3
	ldr	r0, .L90+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L85
.L86:
	ldr	r0, [fp, #-12]
	bl	print_whitespaces
	mov	r0, #47
	bl	putchar
	ldr	r0, [fp, #-16]
	bl	print_stars
	mov	r0, #92
	bl	putchar
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	add	r3, r3, #2
	str	r3, [fp, #-16]
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L85:
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	blt	.L86
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	sub	r3, r3, #2
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L87
.L88:
	ldr	r0, [fp, #-12]
	bl	print_whitespaces
	mov	r0, #92
	bl	putchar
	ldr	r0, [fp, #-16]
	bl	print_stars
	mov	r0, #47
	bl	putchar
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	sub	r3, r3, #2
	str	r3, [fp, #-16]
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L87:
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	blt	.L88
	nop
	ldr	r3, .L90
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L89
	bl	__stack_chk_fail
.L89:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L91:
	.align	2
.L90:
	.word	.LC21
	.word	.LC20
	.word	.LC2
	.size	Run_Part3, .-Run_Part3
	.section	.rodata
	.align	2
.LC22:
	.ascii	"***** MENU *****\000"
	.align	2
.LC23:
	.ascii	"1.Run_Part1\000"
	.align	2
.LC24:
	.ascii	"2.Run_Part2\000"
	.align	2
.LC25:
	.ascii	"3.Run_Part3\000"
	.align	2
.LC26:
	.ascii	"4. Exit\000"
	.align	2
.LC27:
	.ascii	"\012Welcome to calculator\000"
	.align	2
.LC28:
	.ascii	"for addition '+'\000"
	.align	2
.LC29:
	.ascii	"for subtraction '-'\000"
	.align	2
.LC30:
	.ascii	"for multiplication '*'\000"
	.align	2
.LC31:
	.ascii	"for division '/'\000"
	.align	2
.LC32:
	.ascii	"for power '**'\000"
	.align	2
.LC33:
	.ascii	"for modulo '%%'\012\000"
	.align	2
.LC34:
	.ascii	"\012you can enter process like: + 10 2 or for one i"
	.ascii	"nput / 5 \000"
	.align	2
.LC35:
	.ascii	"to get back to the menu, please write 'ESC' or 'esc"
	.ascii	"' and enter it\000"
	.align	2
.LC36:
	.ascii	"\012Thank you for playing this .\000"
	.align	2
.LC37:
	.ascii	"You entered an invalid number, please enter a valid"
	.ascii	" number\000"
	.align	2
.LC38:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	Menu
	.syntax unified
	.arm
	.fpu softvfp
	.type	Menu, %function
Menu:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L102
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
.L100:
	mov	r0, #10
	bl	putchar
	ldr	r0, .L102+4
	bl	puts
	ldr	r0, .L102+8
	bl	puts
	ldr	r0, .L102+12
	bl	puts
	ldr	r0, .L102+16
	bl	puts
	ldr	r0, .L102+20
	bl	puts
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, .L102+24
	bl	__isoc99_scanf
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L93
.L95:
	.word	.L98
	.word	.L97
	.word	.L96
	.word	.L94
.L98:
	ldr	r0, .L102+28
	bl	puts
	ldr	r0, .L102+32
	bl	puts
	ldr	r0, .L102+36
	bl	puts
	ldr	r0, .L102+40
	bl	puts
	ldr	r0, .L102+44
	bl	puts
	ldr	r0, .L102+48
	bl	puts
	ldr	r0, .L102+52
	bl	printf
	ldr	r0, .L102+56
	bl	puts
	ldr	r0, .L102+60
	bl	puts
	bl	Run_Part1
	b	.L99
.L97:
	bl	Run_Part2
	b	.L99
.L96:
	bl	Run_Part3
	b	.L99
.L94:
	ldr	r0, .L102+64
	bl	puts
	b	.L99
.L93:
	ldr	r0, .L102+68
	bl	puts
.L99:
	ldr	r3, [fp, #-12]
	cmp	r3, #4
	bne	.L100
	nop
	ldr	r3, .L102
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L101
	bl	__stack_chk_fail
.L101:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L103:
	.align	2
.L102:
	.word	.LC38
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.word	.LC26
	.word	.LC2
	.word	.LC27
	.word	.LC28
	.word	.LC29
	.word	.LC30
	.word	.LC31
	.word	.LC32
	.word	.LC33
	.word	.LC34
	.word	.LC35
	.word	.LC36
	.word	.LC37
	.size	Menu, .-Menu
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
