	.file	"413455.c"
	.intel_syntax noprefix
	.text
	.globl	isFirst
	.data
	.align 4
	.type	isFirst, @object
	.size	isFirst, 4
isFirst:
	.long	1
	.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
	mov	eax, 0
	call	menu
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	menu
	.type	menu, @function
menu:
.LFB7:
	.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 isFirst[rip], 1
	mov	eax, 0
	call	getChoice
	cmp	eax, 4
	je	.L3
	cmp	eax, 4
	jg	.L4
	cmp	eax, 3
	je	.L5
	cmp	eax, 3
	jg	.L4
	cmp	eax, 1
	je	.L6
	cmp	eax, 2
	je	.L7
	jmp	.L4
.L6:
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	edi, 0
	call	calculator
	jmp	.L8
.L7:
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	eax, 0
	call	weightedAverage
	jmp	.L8
.L5:
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	eax, 0
	call	drawTetragon
	jmp	.L8
.L3:
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	fflush@PLT
	jmp	.L8
.L4:
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	eax, 0
	call	getChoice
	nop
.L8:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	menu, .-menu
	.section	.rodata
	.align 8
.LC0:
	.string	"This is an invalid choice. Try again!\n"
	.align 8
.LC1:
	.string	"\n***** MENU *****\n1. Calculator\n2. Calculate Weighted Average\n3. Draw Tetragon\n4. Exit\nChoice: "
.LC2:
	.string	"%d"
	.text
	.globl	getChoice
	.type	getChoice, @function
getChoice:
.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, 16
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
.L11:
	mov	eax, DWORD PTR isFirst[rip]
	test	eax, eax
	jne	.L10
	lea	rdi, .LC0[rip]
	call	puts@PLT
.L10:
	mov	DWORD PTR isFirst[rip], 0
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -16[rbp]
	test	eax, eax
	jle	.L11
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, 4
	jg	.L11
	nop
.L13:
	call	getchar@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 10
	je	.L12
	cmp	DWORD PTR -12[rbp], -1
	jne	.L13
.L12:
	mov	eax, DWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	getChoice, .-getChoice
	.section	.rodata
	.align 8
.LC3:
	.string	"\nWrite what you want to calculate ( write: + 3 4 -> output: 7)"
.LC4:
	.string	"%d%c"
	.align 8
.LC5:
	.string	"Wrong input! Denominator can not be zero! Try again..."
	.align 8
.LC6:
	.string	"Wrong input! Denominator can not be zero!  Try again..."
	.align 8
.LC7:
	.string	"Wrong input as operator! Try again... %c"
	.text
	.globl	calculator
	.type	calculator, @function
calculator:
.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, 64
	mov	DWORD PTR -52[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -32[rbp], 0
	mov	DWORD PTR -28[rbp], 0
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	BYTE PTR -9[rbp], 32
	jmp	.L17
.L19:
	mov	eax, DWORD PTR -24[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	mov	BYTE PTR -10[rbp+rax], dl
	add	DWORD PTR -28[rbp], 1
.L17:
	call	getchar@PLT
	mov	DWORD PTR -24[rbp], eax
	cmp	DWORD PTR -24[rbp], 32
	je	.L18
	cmp	DWORD PTR -28[rbp], 1
	jle	.L19
.L18:
	movzx	eax, BYTE PTR -9[rbp]
	cmp	al, 42
	jne	.L20
	mov	BYTE PTR -33[rbp], 38
	jmp	.L23
.L20:
	movzx	eax, BYTE PTR -10[rbp]
	mov	BYTE PTR -33[rbp], al
.L23:
	lea	rdx, -20[rbp]
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	sal	rax, 2
	lea	rcx, [rdx+rax]
	lea	rax, -34[rbp]
	mov	rdx, rax
	mov	rsi, rcx
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	DWORD PTR -32[rbp], 1
	movzx	eax, BYTE PTR -34[rbp]
	cmp	al, 10
	je	.L22
	cmp	DWORD PTR -32[rbp], 1
	jle	.L23
.L22:
	cmp	DWORD PTR -32[rbp], 1
	jne	.L24
	mov	eax, DWORD PTR -52[rbp]
	mov	DWORD PTR -16[rbp], eax
.L24:
	cmp	BYTE PTR -33[rbp], 43
	jne	.L25
	mov	edx, DWORD PTR -16[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, eax
	lea	rdi, add[rip]
	call	doit
	jmp	.L16
.L25:
	cmp	BYTE PTR -33[rbp], 45
	jne	.L27
	mov	edx, DWORD PTR -16[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, eax
	lea	rdi, sub[rip]
	call	doit
	jmp	.L16
.L27:
	cmp	BYTE PTR -33[rbp], 42
	jne	.L28
	mov	edx, DWORD PTR -16[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, eax
	lea	rdi, mult[rip]
	call	doit
	jmp	.L16
.L28:
	cmp	BYTE PTR -33[rbp], 47
	jne	.L30
	mov	eax, DWORD PTR -16[rbp]
	test	eax, eax
	jne	.L31
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -52[rbp]
	mov	edi, eax
	call	calculator
	jmp	.L16
.L31:
	mov	edx, DWORD PTR -16[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, eax
	lea	rdi, divide[rip]
	call	doit
	jmp	.L16
.L30:
	cmp	BYTE PTR -33[rbp], 38
	jne	.L32
	mov	edx, DWORD PTR -16[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, eax
	lea	rdi, power[rip]
	call	doit
	jmp	.L16
.L32:
	cmp	BYTE PTR -33[rbp], 37
	jne	.L33
	mov	eax, DWORD PTR -16[rbp]
	test	eax, eax
	jne	.L34
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -52[rbp]
	mov	edi, eax
	call	calculator
.L34:
	mov	edx, DWORD PTR -16[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, eax
	lea	rdi, mod[rip]
	call	doit
	jmp	.L16
.L33:
	movsx	eax, BYTE PTR -33[rbp]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 0
	call	calculator
	nop
.L16:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L35
	call	__stack_chk_fail@PLT
.L35:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	calculator, .-calculator
	.section	.rodata
.LC8:
	.string	"%d\n"
	.text
	.globl	doit
	.type	doit, @function
doit:
.LFB10:
	.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]
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	call	menu
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	doit, .-doit
	.globl	add
	.type	add, @function
add:
.LFB11:
	.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
.LFE11:
	.size	add, .-add
	.globl	sub
	.type	sub, @function
sub:
.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 -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	mov	eax, DWORD PTR -8[rbp]
	sub	eax, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	sub, .-sub
	.globl	mult
	.type	mult, @function
mult:
.LFB13:
	.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
.LFE13:
	.size	mult, .-mult
	.globl	divide
	.type	divide, @function
divide:
.LFB14:
	.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 -8[rbp]
	cdq
	idiv	DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	divide, .-divide
	.globl	power
	.type	power, @function
power:
.LFB15:
	.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 -8[rbp], 1
	cmp	DWORD PTR -24[rbp], 0
	jne	.L46
	mov	eax, 1
	jmp	.L47
.L46:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L48
.L49:
	mov	eax, DWORD PTR -8[rbp]
	imul	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -8[rbp], eax
	add	DWORD PTR -4[rbp], 1
.L48:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -24[rbp]
	jl	.L49
	mov	eax, DWORD PTR -8[rbp]
.L47:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	power, .-power
	.globl	mod
	.type	mod, @function
mod:
.LFB16:
	.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 -8[rbp]
	cdq
	idiv	DWORD PTR -4[rbp]
	mov	eax, edx
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	mod, .-mod
	.section	.rodata
.LC9:
	.string	"\nEnter 10 homework grades:"
.LC10:
	.string	"\nEnter 10 lab grades:"
	.align 8
.LC11:
	.string	"\nEnter midterm and final grades:"
.LC12:
	.string	"\nWeighted Average: %f\n\n"
	.text
	.globl	weightedAverage
	.type	weightedAverage, @function
weightedAverage:
.LFB17:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 120
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -112[rbp]
	mov	rdi, rax
	call	take_grades
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	take_grades
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -120[rbp]
	mov	rdi, rax
	call	take_exam_grades
	lea	rax, -112[rbp]
	mov	rdi, rax
	call	calculate_homework
	cvttsd2si	ebx, xmm0
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	calculate_lab
	cvttsd2si	eax, xmm0
	lea	rcx, -120[rbp]
	mov	edx, ebx
	mov	rsi, rcx
	mov	edi, eax
	call	calculate_all
	movq	rax, xmm0
	movq	xmm0, rax
	lea	rdi, .LC12[rip]
	mov	eax, 1
	call	printf@PLT
	mov	eax, 0
	call	menu
	nop
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L53
	call	__stack_chk_fail@PLT
.L53:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	weightedAverage, .-weightedAverage
	.globl	take_grades
	.type	take_grades, @function
take_grades:
.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, 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 -13[rbp], 32
	mov	DWORD PTR -12[rbp], 0
.L56:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	lea	rcx, [rdx+rax]
	lea	rax, -13[rbp]
	mov	rdx, rax
	mov	rsi, rcx
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	DWORD PTR -12[rbp], 1
	movzx	eax, BYTE PTR -13[rbp]
	cmp	al, 10
	je	.L55
	cmp	DWORD PTR -12[rbp], 9
	jle	.L56
.L55:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L58
	call	__stack_chk_fail@PLT
.L58:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	take_grades, .-take_grades
	.globl	take_exam_grades
	.type	take_exam_grades, @function
take_exam_grades:
.LFB19:
	.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 -13[rbp], 32
	mov	DWORD PTR -12[rbp], 0
.L61:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	lea	rcx, [rdx+rax]
	lea	rax, -13[rbp]
	mov	rdx, rax
	mov	rsi, rcx
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	DWORD PTR -12[rbp], 1
	movzx	eax, BYTE PTR -13[rbp]
	cmp	al, 10
	je	.L60
	cmp	DWORD PTR -12[rbp], 1
	jle	.L61
.L60:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L63
	call	__stack_chk_fail@PLT
.L63:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.size	take_exam_grades, .-take_exam_grades
	.globl	calculate_homework
	.type	calculate_homework, @function
calculate_homework:
.LFB20:
	.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	.L65
.L66:
	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
.L65:
	cmp	DWORD PTR -12[rbp], 9
	jle	.L66
	movsd	xmm0, QWORD PTR -8[rbp]
	movsd	xmm1, QWORD PTR .LC14[rip]
	divsd	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
.LFE20:
	.size	calculate_homework, .-calculate_homework
	.globl	calculate_lab
	.type	calculate_lab, @function
calculate_lab:
.LFB21:
	.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	.L69
.L70:
	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
.L69:
	cmp	DWORD PTR -12[rbp], 9
	jle	.L70
	movsd	xmm0, QWORD PTR -8[rbp]
	movsd	xmm1, QWORD PTR .LC14[rip]
	divsd	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
.LFE21:
	.size	calculate_lab, .-calculate_lab
	.globl	calculate_all
	.type	calculate_all, @function
calculate_all:
.LFB22:
	.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	QWORD PTR -16[rbp], rsi
	mov	DWORD PTR -8[rbp], edx
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, DWORD PTR -8[rbp]
	movsd	xmm0, QWORD PTR .LC15[rip]
	mulsd	xmm1, xmm0
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, DWORD PTR -4[rbp]
	movsd	xmm0, QWORD PTR .LC16[rip]
	mulsd	xmm0, xmm2
	addsd	xmm1, xmm0
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR [rax]
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, eax
	movsd	xmm0, QWORD PTR .LC17[rip]
	mulsd	xmm0, xmm2
	addsd	xmm1, xmm0
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 4
	mov	eax, DWORD PTR [rax]
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, eax
	movsd	xmm0, QWORD PTR .LC18[rip]
	mulsd	xmm0, xmm2
	addsd	xmm0, xmm1
	movq	rax, xmm0
	movq	xmm0, rax
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE22:
	.size	calculate_all, .-calculate_all
	.section	.rodata
.LC19:
	.string	"\nEnter heihgt:"
	.text
	.globl	drawTetragon
	.type	drawTetragon, @function
drawTetragon:
.LFB23:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 136
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	rax, rsp
	mov	QWORD PTR -168[rbp], rax
	mov	DWORD PTR -112[rbp], 0
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -112[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	ecx, DWORD PTR -112[rbp]
	mov	esi, DWORD PTR -112[rbp]
	movsx	rax, ecx
	sub	rax, 1
	mov	QWORD PTR -80[rbp], rax
	movsx	rax, ecx
	mov	QWORD PTR -160[rbp], rax
	mov	QWORD PTR -152[rbp], 0
	movsx	rbx, ecx
	movsx	rax, esi
	sub	rax, 1
	mov	QWORD PTR -72[rbp], rax
	movsx	rax, ecx
	mov	QWORD PTR -128[rbp], rax
	mov	QWORD PTR -120[rbp], 0
	movsx	rax, esi
	mov	QWORD PTR -144[rbp], rax
	mov	QWORD PTR -136[rbp], 0
	mov	r8, QWORD PTR -128[rbp]
	mov	r9, QWORD PTR -120[rbp]
	mov	rdx, r9
	mov	r10, QWORD PTR -144[rbp]
	mov	r11, QWORD PTR -136[rbp]
	imul	rdx, r10
	mov	rax, r11
	imul	rax, r8
	lea	rdi, [rdx+rax]
	mov	rax, r8
	mul	r10
	add	rdi, rdx
	mov	rdx, rdi
	movsx	rax, ecx
	mov	r14, rax
	mov	r15d, 0
	movsx	rax, esi
	mov	r12, rax
	mov	r13d, 0
	mov	rdx, r15
	imul	rdx, r12
	mov	rax, r13
	imul	rax, r14
	lea	rdi, [rdx+rax]
	mov	rax, r14
	mul	r12
	add	rdi, rdx
	mov	rdx, rdi
	movsx	rdx, ecx
	movsx	rax, esi
	imul	rax, rdx
	mov	edx, 16
	sub	rdx, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L75:
	cmp	rsp, rdx
	je	.L76
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L75
.L76:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L77
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L77:
	mov	rax, rsp
	add	rax, 0
	mov	QWORD PTR -64[rbp], rax
	mov	eax, DWORD PTR -112[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	add	eax, 1
	mov	DWORD PTR -84[rbp], eax
	mov	DWORD PTR -88[rbp], 0
	jmp	.L78
.L89:
	mov	DWORD PTR -92[rbp], 0
	jmp	.L79
.L83:
	mov	edx, DWORD PTR -88[rbp]
	mov	eax, DWORD PTR -92[rbp]
	add	eax, edx
	cmp	DWORD PTR -84[rbp], eax
	jle	.L80
	mov	rcx, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -92[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -88[rbp]
	cdqe
	imul	rax, rbx
	add	rdx, rcx
	add	rax, rdx
	mov	BYTE PTR [rax], 32
	jmp	.L81
.L80:
	mov	edx, DWORD PTR -88[rbp]
	mov	eax, DWORD PTR -92[rbp]
	add	eax, edx
	cmp	DWORD PTR -84[rbp], eax
	jne	.L82
	mov	rcx, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -92[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -88[rbp]
	cdqe
	imul	rax, rbx
	add	rdx, rcx
	add	rax, rdx
	mov	BYTE PTR [rax], 47
	jmp	.L81
.L82:
	mov	edx, DWORD PTR -88[rbp]
	mov	eax, DWORD PTR -92[rbp]
	add	eax, edx
	cmp	DWORD PTR -84[rbp], eax
	jge	.L81
	mov	rcx, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -92[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -88[rbp]
	cdqe
	imul	rax, rbx
	add	rdx, rcx
	add	rax, rdx
	mov	BYTE PTR [rax], 42
.L81:
	mov	rcx, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -92[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -88[rbp]
	cdqe
	imul	rax, rbx
	add	rdx, rcx
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	putchar@PLT
	add	DWORD PTR -92[rbp], 1
.L79:
	mov	eax, DWORD PTR -112[rbp]
	cmp	DWORD PTR -92[rbp], eax
	jl	.L83
	mov	DWORD PTR -96[rbp], 0
	jmp	.L84
.L88:
	mov	eax, DWORD PTR -88[rbp]
	cmp	eax, DWORD PTR -96[rbp]
	jge	.L85
	mov	rcx, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -96[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -88[rbp]
	cdqe
	imul	rax, rbx
	add	rdx, rcx
	add	rax, rdx
	mov	BYTE PTR [rax], 32
	jmp	.L86
.L85:
	mov	eax, DWORD PTR -88[rbp]
	cmp	eax, DWORD PTR -96[rbp]
	jne	.L87
	mov	rcx, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -96[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -88[rbp]
	cdqe
	imul	rax, rbx
	add	rdx, rcx
	add	rax, rdx
	mov	BYTE PTR [rax], 92
	jmp	.L86
.L87:
	mov	eax, DWORD PTR -88[rbp]
	cmp	eax, DWORD PTR -96[rbp]
	jle	.L86
	mov	rcx, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -96[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -88[rbp]
	cdqe
	imul	rax, rbx
	add	rdx, rcx
	add	rax, rdx
	mov	BYTE PTR [rax], 42
.L86:
	mov	rcx, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -96[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -88[rbp]
	cdqe
	imul	rax, rbx
	add	rdx, rcx
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	putchar@PLT
	add	DWORD PTR -96[rbp], 1
.L84:
	mov	eax, DWORD PTR -112[rbp]
	cmp	DWORD PTR -96[rbp], eax
	jl	.L88
	mov	edi, 10
	call	putchar@PLT
	add	DWORD PTR -88[rbp], 1
.L78:
	mov	eax, DWORD PTR -112[rbp]
	cmp	DWORD PTR -88[rbp], eax
	jl	.L89
	mov	DWORD PTR -100[rbp], 0
	jmp	.L90
.L101:
	mov	DWORD PTR -104[rbp], 0
	jmp	.L91
.L95:
	mov	eax, DWORD PTR -100[rbp]
	cmp	eax, DWORD PTR -104[rbp]
	jge	.L92
	mov	rcx, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -104[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -100[rbp]
	cdqe
	imul	rax, rbx
	add	rdx, rcx
	add	rax, rdx
	mov	BYTE PTR [rax], 42
	jmp	.L93
.L92:
	mov	eax, DWORD PTR -100[rbp]
	cmp	eax, DWORD PTR -104[rbp]
	jne	.L94
	mov	rcx, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -104[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -100[rbp]
	cdqe
	imul	rax, rbx
	add	rdx, rcx
	add	rax, rdx
	mov	BYTE PTR [rax], 92
	jmp	.L93
.L94:
	mov	eax, DWORD PTR -100[rbp]
	cmp	eax, DWORD PTR -104[rbp]
	jle	.L93
	mov	rcx, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -104[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -100[rbp]
	cdqe
	imul	rax, rbx
	add	rdx, rcx
	add	rax, rdx
	mov	BYTE PTR [rax], 32
.L93:
	mov	rcx, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -104[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -100[rbp]
	cdqe
	imul	rax, rbx
	add	rdx, rcx
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	putchar@PLT
	add	DWORD PTR -104[rbp], 1
.L91:
	mov	eax, DWORD PTR -112[rbp]
	cmp	DWORD PTR -104[rbp], eax
	jl	.L95
	mov	DWORD PTR -108[rbp], 0
	jmp	.L96
.L100:
	mov	edx, DWORD PTR -100[rbp]
	mov	eax, DWORD PTR -108[rbp]
	add	eax, edx
	cmp	DWORD PTR -84[rbp], eax
	jle	.L97
	mov	rcx, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -108[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -100[rbp]
	cdqe
	imul	rax, rbx
	add	rdx, rcx
	add	rax, rdx
	mov	BYTE PTR [rax], 42
	jmp	.L98
.L97:
	mov	edx, DWORD PTR -100[rbp]
	mov	eax, DWORD PTR -108[rbp]
	add	eax, edx
	cmp	DWORD PTR -84[rbp], eax
	jne	.L99
	mov	rcx, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -108[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -100[rbp]
	cdqe
	imul	rax, rbx
	add	rdx, rcx
	add	rax, rdx
	mov	BYTE PTR [rax], 47
	jmp	.L98
.L99:
	mov	edx, DWORD PTR -100[rbp]
	mov	eax, DWORD PTR -108[rbp]
	add	eax, edx
	cmp	DWORD PTR -84[rbp], eax
	jge	.L98
	mov	rcx, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -108[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -100[rbp]
	cdqe
	imul	rax, rbx
	add	rdx, rcx
	add	rax, rdx
	mov	BYTE PTR [rax], 32
.L98:
	mov	rcx, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -108[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -100[rbp]
	cdqe
	imul	rax, rbx
	add	rdx, rcx
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	putchar@PLT
	add	DWORD PTR -108[rbp], 1
.L96:
	mov	eax, DWORD PTR -112[rbp]
	cmp	DWORD PTR -108[rbp], eax
	jl	.L100
	mov	edi, 10
	call	putchar@PLT
	add	DWORD PTR -100[rbp], 1
.L90:
	mov	eax, DWORD PTR -112[rbp]
	cmp	DWORD PTR -100[rbp], eax
	jl	.L101
	mov	eax, 0
	call	menu
	mov	rsp, QWORD PTR -168[rbp]
	nop
	mov	rax, QWORD PTR -56[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L102
	call	__stack_chk_fail@PLT
.L102:
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE23:
	.size	drawTetragon, .-drawTetragon
	.section	.rodata
	.align 8
.LC14:
	.long	0
	.long	1076101120
	.align 8
.LC15:
	.long	-1717986918
	.long	1069128089
	.align 8
.LC16:
	.long	-1717986918
	.long	1070176665
	.align 8
.LC17:
	.long	858993459
	.long	1070805811
	.align 8
.LC18:
	.long	-1717986918
	.long	1071225241
	.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	"413455.c"
	.text
	.global	isFirst
	.data
	.align	2
	.type	isFirst, %object
	.size	isFirst, 4
isFirst:
	.word	1
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	bl	menu
	nop
	pop	{fp, pc}
	.size	main, .-main
	.align	2
	.global	menu
	.syntax unified
	.arm
	.fpu softvfp
	.type	menu, %function
menu:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L10
	mov	r2, #1
	str	r2, [r3]
	bl	getChoice
	mov	r3, r0
	sub	r3, r3, #1
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L3
.L5:
	.word	.L8
	.word	.L7
	.word	.L6
	.word	.L4
.L8:
	ldr	r3, .L10+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	mov	r0, #0
	bl	calculator
	b	.L9
.L7:
	ldr	r3, .L10+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	bl	weightedAverage
	b	.L9
.L6:
	ldr	r3, .L10+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	bl	drawTetragon
	b	.L9
.L4:
	ldr	r3, .L10+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	b	.L9
.L3:
	ldr	r3, .L10+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	bl	getChoice
	nop
.L9:
	nop
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	isFirst
	.word	stdin
	.size	menu, .-menu
	.section	.rodata
	.align	2
.LC0:
	.ascii	"This is an invalid choice. Try again!\012\000"
	.align	2
.LC1:
	.ascii	"\012***** MENU *****\0121. Calculator\0122. Calcula"
	.ascii	"te Weighted Average\0123. Draw Tetragon\0124. Exit\012"
	.ascii	"Choice: \000"
	.align	2
.LC2:
	.ascii	"%d\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	getChoice
	.syntax unified
	.arm
	.fpu softvfp
	.type	getChoice, %function
getChoice:
	@ 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, .L19
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
.L14:
	ldr	r3, .L19+4
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L13
	ldr	r0, .L19+8
	bl	puts
.L13:
	ldr	r3, .L19+4
	mov	r2, #0
	str	r2, [r3]
	ldr	r0, .L19+12
	bl	printf
	sub	r3, fp, #16
	mov	r1, r3
	ldr	r0, .L19+16
	bl	__isoc99_scanf
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	ble	.L14
	ldr	r3, [fp, #-16]
	cmp	r3, #4
	bgt	.L14
	nop
.L16:
	bl	getchar
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #10
	beq	.L15
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	bne	.L16
.L15:
	ldr	r3, [fp, #-16]
	ldr	r2, .L19
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L18
	bl	__stack_chk_fail
.L18:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC3
	.word	isFirst
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	getChoice, .-getChoice
	.section	.rodata
	.align	2
.LC4:
	.ascii	"\012Write what you want to calculate ( write: + 3 4"
	.ascii	" -> output: 7)\000"
	.align	2
.LC5:
	.ascii	"%d%c\000"
	.align	2
.LC6:
	.ascii	"Wrong input! Denominator can not be zero! Try again"
	.ascii	"...\000"
	.align	2
.LC7:
	.ascii	"Wrong input! Denominator can not be zero!  Try agai"
	.ascii	"n...\000"
	.align	2
.LC8:
	.ascii	"Wrong input as operator! Try again... %c\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	calculator
	.syntax unified
	.arm
	.fpu softvfp
	.type	calculator, %function
calculator:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-40]
	ldr	r3, .L41
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-28]
	ldr	r0, .L41+4
	bl	puts
	mov	r3, #32
	strb	r3, [fp, #-11]
	b	.L22
.L24:
	ldr	r3, [fp, #-24]
	and	r1, r3, #255
	sub	r2, fp, #12
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L22:
	bl	getchar
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #32
	beq	.L23
	ldr	r3, [fp, #-28]
	cmp	r3, #1
	ble	.L24
.L23:
	ldrb	r3, [fp, #-11]	@ zero_extendqisi2
	cmp	r3, #42
	bne	.L25
	mov	r3, #38
	strb	r3, [fp, #-33]
	b	.L28
.L25:
	ldrb	r3, [fp, #-12]
	strb	r3, [fp, #-33]
.L28:
	sub	r2, fp, #20
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	add	r3, r2, r3
	sub	r2, fp, #34
	mov	r1, r3
	ldr	r0, .L41+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
	ldrb	r3, [fp, #-34]	@ zero_extendqisi2
	cmp	r3, #10
	beq	.L27
	ldr	r3, [fp, #-32]
	cmp	r3, #1
	ble	.L28
.L27:
	ldr	r3, [fp, #-32]
	cmp	r3, #1
	bne	.L29
	ldr	r3, [fp, #-40]
	str	r3, [fp, #-16]
.L29:
	ldrb	r3, [fp, #-33]	@ zero_extendqisi2
	cmp	r3, #43
	bne	.L30
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-16]
	mov	r1, r3
	ldr	r0, .L41+12
	bl	doit
	b	.L21
.L30:
	ldrb	r3, [fp, #-33]	@ zero_extendqisi2
	cmp	r3, #45
	bne	.L32
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-16]
	mov	r1, r3
	ldr	r0, .L41+16
	bl	doit
	b	.L21
.L32:
	ldrb	r3, [fp, #-33]	@ zero_extendqisi2
	cmp	r3, #42
	bne	.L33
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-16]
	mov	r1, r3
	ldr	r0, .L41+20
	bl	doit
	b	.L21
.L33:
	ldrb	r3, [fp, #-33]	@ zero_extendqisi2
	cmp	r3, #47
	bne	.L35
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L36
	ldr	r0, .L41+24
	bl	printf
	ldr	r0, [fp, #-40]
	bl	calculator
	b	.L21
.L36:
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-16]
	mov	r1, r3
	ldr	r0, .L41+28
	bl	doit
	b	.L21
.L35:
	ldrb	r3, [fp, #-33]	@ zero_extendqisi2
	cmp	r3, #38
	bne	.L37
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-16]
	mov	r1, r3
	ldr	r0, .L41+32
	bl	doit
	b	.L21
.L37:
	ldrb	r3, [fp, #-33]	@ zero_extendqisi2
	cmp	r3, #37
	bne	.L38
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L39
	ldr	r0, .L41+36
	bl	printf
	ldr	r0, [fp, #-40]
	bl	calculator
.L39:
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-16]
	mov	r1, r3
	ldr	r0, .L41+40
	bl	doit
	b	.L21
.L38:
	ldrb	r3, [fp, #-33]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L41+44
	bl	printf
	mov	r0, #0
	bl	calculator
	nop
.L21:
	ldr	r3, .L41
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L40
	bl	__stack_chk_fail
.L40:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L42:
	.align	2
.L41:
	.word	.LC9
	.word	.LC4
	.word	.LC5
	.word	add
	.word	sub
	.word	mult
	.word	.LC6
	.word	divide
	.word	power
	.word	.LC7
	.word	mod
	.word	.LC8
	.size	calculator, .-calculator
	.section	.rodata
	.align	2
.LC10:
	.ascii	"%d\012\000"
	.text
	.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	r1, [fp, #-8]
	ldr	r0, .L44
	bl	printf
	bl	menu
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L45:
	.align	2
.L44:
	.word	.LC10
	.size	doit, .-doit
	.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, #-12]
	ldr	r3, [fp, #-8]
	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
	.global	__aeabi_idiv
	.align	2
	.global	divide
	.syntax unified
	.arm
	.fpu softvfp
	.type	divide, %function
divide:
	@ 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	r1, [fp, #-8]
	ldr	r0, [fp, #-12]
	bl	__aeabi_idiv
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	divide, .-divide
	.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, #-12]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L55
	mov	r3, #1
	b	.L56
.L55:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L57
.L58:
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-16]
	mul	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L57:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L58
	ldr	r3, [fp, #-12]
.L56:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	power, .-power
	.global	__aeabi_idivmod
	.align	2
	.global	mod
	.syntax unified
	.arm
	.fpu softvfp
	.type	mod, %function
mod:
	@ 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]
	ldr	r1, [fp, #-8]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	mod, .-mod
	.section	.rodata
	.align	2
.LC11:
	.ascii	"\012Enter 10 homework grades:\000"
	.align	2
.LC12:
	.ascii	"\012Enter 10 lab grades:\000"
	.align	2
.LC13:
	.ascii	"\012Enter midterm and final grades:\000"
	.global	__aeabi_d2iz
	.align	2
.LC14:
	.ascii	"\012Weighted Average: %f\012\012\000"
	.align	2
.LC15:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	weightedAverage
	.syntax unified
	.arm
	.fpu softvfp
	.type	weightedAverage, %function
weightedAverage:
	@ args = 0, pretend = 0, frame = 96
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #100
	ldr	r3, .L63
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r0, .L63+4
	bl	printf
	sub	r3, fp, #96
	mov	r0, r3
	bl	take_grades
	ldr	r0, .L63+8
	bl	printf
	sub	r3, fp, #56
	mov	r0, r3
	bl	take_grades
	ldr	r0, .L63+12
	bl	printf
	sub	r3, fp, #104
	mov	r0, r3
	bl	take_exam_grades
	sub	r3, fp, #56
	mov	r0, r3
	bl	calculate_lab
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r4, r0
	sub	r3, fp, #96
	mov	r0, r3
	bl	calculate_homework
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r2, r0
	sub	r3, fp, #104
	mov	r1, r3
	mov	r0, r4
	bl	calculate_all
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L63+16
	bl	printf
	bl	menu
	nop
	ldr	r3, .L63
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L62
	bl	__stack_chk_fail
.L62:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L64:
	.align	2
.L63:
	.word	.LC15
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.size	weightedAverage, .-weightedAverage
	.section	.rodata
	.align	2
.LC16:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	take_grades
	.syntax unified
	.arm
	.fpu softvfp
	.type	take_grades, %function
take_grades:
	@ 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]
	ldr	r3, .L70
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #32
	strb	r3, [fp, #-13]
	mov	r3, #0
	str	r3, [fp, #-12]
.L67:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	sub	r2, fp, #13
	mov	r1, r3
	ldr	r0, .L70+4
	bl	__isoc99_scanf
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	cmp	r3, #10
	beq	.L66
	ldr	r3, [fp, #-12]
	cmp	r3, #9
	ble	.L67
.L66:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	ldr	r2, .L70
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L69
	bl	__stack_chk_fail
.L69:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L71:
	.align	2
.L70:
	.word	.LC16
	.word	.LC5
	.size	take_grades, .-take_grades
	.section	.rodata
	.align	2
.LC17:
	.word	__stack_chk_guard
	.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 = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	ldr	r3, .L77
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #32
	strb	r3, [fp, #-13]
	mov	r3, #0
	str	r3, [fp, #-12]
.L74:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	sub	r2, fp, #13
	mov	r1, r3
	ldr	r0, .L77+4
	bl	__isoc99_scanf
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	cmp	r3, #10
	beq	.L73
	ldr	r3, [fp, #-12]
	cmp	r3, #1
	ble	.L74
.L73:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	ldr	r2, .L77
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L76
	bl	__stack_chk_fail
.L76:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L78:
	.align	2
.L77:
	.word	.LC17
	.word	.LC5
	.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	.L80
.L81:
	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]
.L80:
	ldr	r3, [fp, #-16]
	cmp	r3, #9
	ble	.L81
	mov	r2, #0
	ldr	r3, .L83
	sub	r1, fp, #12
	ldmia	r1, {r0-r1}
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-12]
	str	r3, [fp, #-8]
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L84:
	.align	2
.L83:
	.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	.L86
.L87:
	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]
.L86:
	ldr	r3, [fp, #-16]
	cmp	r3, #9
	ble	.L87
	mov	r2, #0
	ldr	r3, .L89
	sub	r1, fp, #12
	ldmia	r1, {r0-r1}
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-12]
	str	r3, [fp, #-8]
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L90:
	.align	2
.L89:
	.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 = 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]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r0, [fp, #-24]
	bl	__aeabi_i2d
	ldr	r2, .L93
	ldr	r3, .L93+4
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r0, [fp, #-16]
	bl	__aeabi_i2d
	ldr	r2, .L93
	ldr	r3, .L93+8
	bl	__aeabi_dmul
	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, #-20]
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2d
	ldr	r2, .L93+12
	ldr	r3, .L93+16
	bl	__aeabi_dmul
	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, #-20]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2d
	ldr	r2, .L93
	ldr	r3, .L93+20
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L94:
	.align	2
.L93:
	.word	-1717986918
	.word	1069128089
	.word	1070176665
	.word	858993459
	.word	1070805811
	.word	1071225241
	.size	calculate_all, .-calculate_all
	.section	.rodata
	.align	2
.LC18:
	.ascii	"\012Enter heihgt:\000"
	.align	2
.LC19:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	drawTetragon
	.syntax unified
	.arm
	.fpu softvfp
	.type	drawTetragon, %function
drawTetragon:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, fp, lr}
	add	fp, sp, #24
	sub	sp, sp, #52
	ldr	r3, .L121
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	mov	r3, sp
	mov	r8, r3
	mov	r3, #0
	str	r3, [fp, #-76]
	ldr	r0, .L121+4
	bl	printf
	sub	r3, fp, #76
	mov	r1, r3
	ldr	r0, .L121+8
	bl	__isoc99_scanf
	ldr	ip, [fp, #-76]
	ldr	lr, [fp, #-76]
	sub	r3, ip, #1
	str	r3, [fp, #-48]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	mov	r4, ip
	sub	r3, lr, #1
	str	r3, [fp, #-44]
	mov	r3, ip
	mov	r6, r3
	mov	r7, #0
	mov	r3, lr
	mov	r0, r3
	mov	r1, #0
	mul	r2, r0, r7
	mul	r3, r6, r1
	add	r5, r2, r3
	umull	r2, r3, r6, r0
	add	r1, r5, r3
	mov	r3, r1
	mov	r0, #0
	mov	r1, #0
	lsl	r1, r3, #3
	orr	r1, r1, r2, lsr #29
	lsl	r0, r2, #3
	mov	r3, ip
	mov	r6, r3
	mov	r7, #0
	mov	r3, lr
	mov	r0, r3
	mov	r1, #0
	mul	r2, r0, r7
	mul	r3, r6, r1
	add	r5, r2, r3
	umull	r2, r3, r6, r0
	add	r1, r5, r3
	mov	r3, r1
	mov	r0, #0
	mov	r1, #0
	lsl	r1, r3, #3
	orr	r1, r1, r2, lsr #29
	lsl	r0, r2, #3
	mov	r3, ip
	mov	r2, lr
	mul	r3, r2, r3
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #0
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-76]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	add	r3, r3, #1
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-52]
	b	.L96
.L107:
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L97
.L101:
	ldr	r2, [fp, #-52]
	ldr	r3, [fp, #-56]
	add	r3, r2, r3
	ldr	r2, [fp, #-36]
	cmp	r2, r3
	ble	.L98
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-52]
	mul	r3, r4, r3
	add	r2, r2, r3
	ldr	r3, [fp, #-56]
	add	r3, r2, r3
	mov	r2, #32
	strb	r2, [r3]
	b	.L99
.L98:
	ldr	r2, [fp, #-52]
	ldr	r3, [fp, #-56]
	add	r3, r2, r3
	ldr	r2, [fp, #-36]
	cmp	r2, r3
	bne	.L100
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-52]
	mul	r3, r4, r3
	add	r2, r2, r3
	ldr	r3, [fp, #-56]
	add	r3, r2, r3
	mov	r2, #47
	strb	r2, [r3]
	b	.L99
.L100:
	ldr	r2, [fp, #-52]
	ldr	r3, [fp, #-56]
	add	r3, r2, r3
	ldr	r2, [fp, #-36]
	cmp	r2, r3
	bge	.L99
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-52]
	mul	r3, r4, r3
	add	r2, r2, r3
	ldr	r3, [fp, #-56]
	add	r3, r2, r3
	mov	r2, #42
	strb	r2, [r3]
.L99:
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-52]
	mul	r3, r4, r3
	add	r2, r2, r3
	ldr	r3, [fp, #-56]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	putchar
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L97:
	ldr	r3, [fp, #-76]
	ldr	r2, [fp, #-56]
	cmp	r2, r3
	blt	.L101
	mov	r3, #0
	str	r3, [fp, #-60]
	b	.L102
.L106:
	ldr	r2, [fp, #-52]
	ldr	r3, [fp, #-60]
	cmp	r2, r3
	bge	.L103
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-52]
	mul	r3, r4, r3
	add	r2, r2, r3
	ldr	r3, [fp, #-60]
	add	r3, r2, r3
	mov	r2, #32
	strb	r2, [r3]
	b	.L104
.L103:
	ldr	r2, [fp, #-52]
	ldr	r3, [fp, #-60]
	cmp	r2, r3
	bne	.L105
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-52]
	mul	r3, r4, r3
	add	r2, r2, r3
	ldr	r3, [fp, #-60]
	add	r3, r2, r3
	mov	r2, #92
	strb	r2, [r3]
	b	.L104
.L105:
	ldr	r2, [fp, #-52]
	ldr	r3, [fp, #-60]
	cmp	r2, r3
	ble	.L104
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-52]
	mul	r3, r4, r3
	add	r2, r2, r3
	ldr	r3, [fp, #-60]
	add	r3, r2, r3
	mov	r2, #42
	strb	r2, [r3]
.L104:
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-52]
	mul	r3, r4, r3
	add	r2, r2, r3
	ldr	r3, [fp, #-60]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	putchar
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L102:
	ldr	r3, [fp, #-76]
	ldr	r2, [fp, #-60]
	cmp	r2, r3
	blt	.L106
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L96:
	ldr	r3, [fp, #-76]
	ldr	r2, [fp, #-52]
	cmp	r2, r3
	blt	.L107
	mov	r3, #0
	str	r3, [fp, #-64]
	b	.L108
.L119:
	mov	r3, #0
	str	r3, [fp, #-68]
	b	.L109
.L113:
	ldr	r2, [fp, #-64]
	ldr	r3, [fp, #-68]
	cmp	r2, r3
	bge	.L110
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-64]
	mul	r3, r4, r3
	add	r2, r2, r3
	ldr	r3, [fp, #-68]
	add	r3, r2, r3
	mov	r2, #42
	strb	r2, [r3]
	b	.L111
.L110:
	ldr	r2, [fp, #-64]
	ldr	r3, [fp, #-68]
	cmp	r2, r3
	bne	.L112
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-64]
	mul	r3, r4, r3
	add	r2, r2, r3
	ldr	r3, [fp, #-68]
	add	r3, r2, r3
	mov	r2, #92
	strb	r2, [r3]
	b	.L111
.L112:
	ldr	r2, [fp, #-64]
	ldr	r3, [fp, #-68]
	cmp	r2, r3
	ble	.L111
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-64]
	mul	r3, r4, r3
	add	r2, r2, r3
	ldr	r3, [fp, #-68]
	add	r3, r2, r3
	mov	r2, #32
	strb	r2, [r3]
.L111:
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-64]
	mul	r3, r4, r3
	add	r2, r2, r3
	ldr	r3, [fp, #-68]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	putchar
	ldr	r3, [fp, #-68]
	add	r3, r3, #1
	str	r3, [fp, #-68]
.L109:
	ldr	r3, [fp, #-76]
	ldr	r2, [fp, #-68]
	cmp	r2, r3
	blt	.L113
	mov	r3, #0
	str	r3, [fp, #-72]
	b	.L114
.L118:
	ldr	r2, [fp, #-64]
	ldr	r3, [fp, #-72]
	add	r3, r2, r3
	ldr	r2, [fp, #-36]
	cmp	r2, r3
	ble	.L115
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-64]
	mul	r3, r4, r3
	add	r2, r2, r3
	ldr	r3, [fp, #-72]
	add	r3, r2, r3
	mov	r2, #42
	strb	r2, [r3]
	b	.L116
.L115:
	ldr	r2, [fp, #-64]
	ldr	r3, [fp, #-72]
	add	r3, r2, r3
	ldr	r2, [fp, #-36]
	cmp	r2, r3
	bne	.L117
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-64]
	mul	r3, r4, r3
	add	r2, r2, r3
	ldr	r3, [fp, #-72]
	add	r3, r2, r3
	mov	r2, #47
	strb	r2, [r3]
	b	.L116
.L117:
	ldr	r2, [fp, #-64]
	ldr	r3, [fp, #-72]
	add	r3, r2, r3
	ldr	r2, [fp, #-36]
	cmp	r2, r3
	bge	.L116
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-64]
	mul	r3, r4, r3
	add	r2, r2, r3
	ldr	r3, [fp, #-72]
	add	r3, r2, r3
	mov	r2, #32
	strb	r2, [r3]
.L116:
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-64]
	mul	r3, r4, r3
	add	r2, r2, r3
	ldr	r3, [fp, #-72]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	putchar
	ldr	r3, [fp, #-72]
	add	r3, r3, #1
	str	r3, [fp, #-72]
.L114:
	ldr	r3, [fp, #-76]
	ldr	r2, [fp, #-72]
	cmp	r2, r3
	blt	.L118
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	str	r3, [fp, #-64]
.L108:
	ldr	r3, [fp, #-76]
	ldr	r2, [fp, #-64]
	cmp	r2, r3
	blt	.L119
	bl	menu
	mov	sp, r8
	nop
	ldr	r3, .L121
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L120
	bl	__stack_chk_fail
.L120:
	sub	sp, fp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, fp, pc}
.L122:
	.align	2
.L121:
	.word	.LC19
	.word	.LC18
	.word	.LC2
	.size	drawTetragon, .-drawTetragon
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
