	.file	"329132.c"
	.intel_syntax noprefix
	.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
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC0:
	.string	"\033[2J"
	.align 8
.LC1:
	.string	"***** MENU *****\n1. Play Lucky Number\n2. Draw Hourglass\n3. Draw Mountain Road\n4. Exit\nChoice: "
.LC2:
	.string	"%d"
	.align 8
.LC3:
	.string	"\n \nPress enter to back to menu"
.LC4:
	.string	"\n\nExiting..."
	.align 8
.LC5:
	.string	"\nThis is an invalid choice.Try again!"
	.text
	.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
	sub	rsp, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edi, 0
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
	mov	DWORD PTR -20[rbp], 0
	mov	DWORD PTR -16[rbp], 0
	mov	DWORD PTR -24[rbp], 0
	jmp	.L4
.L12:
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -28[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, 4
	je	.L5
	cmp	eax, 4
	jg	.L6
	cmp	eax, 3
	je	.L7
	cmp	eax, 3
	jg	.L6
	cmp	eax, 1
	je	.L8
	cmp	eax, 2
	je	.L9
	jmp	.L6
.L8:
	mov	eax, 0
	call	game_one
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	jne	.L10
	add	DWORD PTR -16[rbp], 1
	jmp	.L11
.L10:
	add	DWORD PTR -20[rbp], 1
.L11:
	mov	edx, DWORD PTR -16[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, edx
	mov	edi, eax
	call	show_score
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	call	getchar@PLT
	call	getchar@PLT
	jmp	.L4
.L9:
	mov	eax, 0
	call	game_two
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	call	getchar@PLT
	call	getchar@PLT
	jmp	.L4
.L7:
	mov	eax, 0
	call	game_three
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	call	getchar@PLT
	call	getchar@PLT
	jmp	.L4
.L5:
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -24[rbp], 1
	jmp	.L4
.L6:
	lea	rdi, .LC5[rip]
	call	puts@PLT
.L4:
	cmp	DWORD PTR -24[rbp], 0
	je	.L12
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	menu, .-menu
	.section	.rodata
.LC6:
	.string	"Distance: 0. You win!"
.LC7:
	.string	"Distance: %d."
	.text
	.globl	game_one
	.type	game_one, @function
game_one:
.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
	call	rand@PLT
	movsx	rdx, eax
	imul	rdx, rdx, 2145388543
	shr	rdx, 32
	sar	edx, 9
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	mov	DWORD PTR -16[rbp], edx
	mov	ecx, DWORD PTR -16[rbp]
	mov	edx, ecx
	sal	edx, 10
	add	edx, ecx
	sub	eax, edx
	mov	DWORD PTR -16[rbp], eax
	mov	DWORD PTR -20[rbp], 0
	mov	DWORD PTR -32[rbp], 1
	mov	DWORD PTR -28[rbp], 0
	mov	DWORD PTR -24[rbp], 1024
	jmp	.L15
.L19:
	mov	edx, DWORD PTR -24[rbp]
	mov	ecx, DWORD PTR -28[rbp]
	mov	eax, DWORD PTR -32[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	make_a_guess
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -16[rbp]
	jne	.L16
	mov	DWORD PTR -20[rbp], 1
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L15
.L16:
	mov	eax, DWORD PTR -16[rbp]
	sub	eax, DWORD PTR -12[rbp]
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	mov	edi, eax
	call	distance_calculator
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -32[rbp], 1
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -16[rbp]
	jge	.L17
	mov	eax, DWORD PTR -12[rbp]
	mov	DWORD PTR -28[rbp], eax
	jmp	.L15
.L17:
	mov	eax, DWORD PTR -12[rbp]
	mov	DWORD PTR -24[rbp], eax
.L15:
	cmp	DWORD PTR -32[rbp], 10
	jg	.L18
	cmp	DWORD PTR -20[rbp], 1
	jne	.L19
.L18:
	mov	eax, DWORD PTR -20[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	game_one, .-game_one
	.section	.rodata
	.align 8
.LC8:
	.string	"Plese enter positive odd number "
	.align 8
.LC9:
	.string	"This number is not positive odd number. "
	.text
	.globl	game_two
	.type	game_two, @function
game_two:
.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, 16
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
.L25:
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@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]
	and	eax, 1
	test	eax, eax
	je	.L22
	mov	eax, DWORD PTR -12[rbp]
	test	eax, eax
	jns	.L23
.L22:
	lea	rdi, .LC9[rip]
	call	puts@PLT
	jmp	.L24
.L23:
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	draw_hourglass
.L24:
	mov	eax, DWORD PTR -12[rbp]
	and	eax, 1
	test	eax, eax
	je	.L25
	mov	eax, DWORD PTR -12[rbp]
	test	eax, eax
	js	.L25
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L26
	call	__stack_chk_fail@PLT
.L26:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	game_two, .-game_two
	.section	.rodata
.LC10:
	.string	"Please enter the length "
	.align 8
.LC11:
	.string	"Please enter the maximum radius "
	.text
	.globl	game_three
	.type	game_three, @function
game_three:
.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, 16
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -12[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC11[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	edx, DWORD PTR -16[rbp]
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, edx
	mov	edi, eax
	call	draw_mountain_road
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L28
	call	__stack_chk_fail@PLT
.L28:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	game_three, .-game_three
	.section	.rodata
	.align 8
.LC12:
	.string	"\nYour score: %d Program Score: %d"
	.text
	.globl	show_score
	.type	show_score, @function
show_score:
.LFB11:
	.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
	mov	edx, DWORD PTR -8[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	show_score, .-show_score
	.section	.rodata
	.align 8
.LC13:
	.string	"\n(Trial: %d) Make a guess between %d and %d :"
	.text
	.globl	make_a_guess
	.type	make_a_guess, @function
make_a_guess:
.LFB12:
	.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 -24[rbp], esi
	mov	DWORD PTR -28[rbp], edx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
.L31:
	mov	ecx, DWORD PTR -28[rbp]
	mov	edx, DWORD PTR -24[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, eax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@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	DWORD PTR -28[rbp], eax
	jl	.L31
	mov	eax, DWORD PTR -12[rbp]
	cmp	DWORD PTR -24[rbp], eax
	jg	.L31
	mov	eax, DWORD PTR -12[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L33
	call	__stack_chk_fail@PLT
.L33:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	make_a_guess, .-make_a_guess
	.globl	draw_hourglass
	.type	draw_hourglass, @function
draw_hourglass:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	eax, DWORD PTR -20[rbp]
	add	eax, 1
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	sub	eax, 1
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	DWORD PTR -4[rbp], eax
	mov	DWORD PTR -16[rbp], 0
	jmp	.L35
.L40:
	mov	DWORD PTR -12[rbp], 0
	jmp	.L36
.L37:
	mov	edi, 32
	call	putchar@PLT
	add	DWORD PTR -12[rbp], 1
.L36:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -16[rbp]
	jl	.L37
	mov	DWORD PTR -12[rbp], 0
	jmp	.L38
.L39:
	mov	edi, 42
	call	putchar@PLT
	add	DWORD PTR -12[rbp], 1
.L38:
	mov	eax, DWORD PTR -8[rbp]
	sub	eax, DWORD PTR -16[rbp]
	add	eax, eax
	sub	eax, 1
	cmp	DWORD PTR -12[rbp], eax
	jl	.L39
	mov	edi, 10
	call	putchar@PLT
	add	DWORD PTR -16[rbp], 1
.L35:
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -8[rbp]
	jl	.L40
	mov	DWORD PTR -16[rbp], 1
	jmp	.L41
.L46:
	mov	DWORD PTR -12[rbp], 0
	jmp	.L42
.L43:
	mov	edi, 32
	call	putchar@PLT
	add	DWORD PTR -12[rbp], 1
.L42:
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, DWORD PTR -16[rbp]
	cmp	DWORD PTR -12[rbp], eax
	jl	.L43
	mov	DWORD PTR -12[rbp], 0
	jmp	.L44
.L45:
	mov	edi, 42
	call	putchar@PLT
	add	DWORD PTR -12[rbp], 1
.L44:
	mov	eax, DWORD PTR -16[rbp]
	add	eax, eax
	cmp	DWORD PTR -12[rbp], eax
	jle	.L45
	mov	edi, 10
	call	putchar@PLT
	add	DWORD PTR -16[rbp], 1
.L41:
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	jle	.L46
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	draw_hourglass, .-draw_hourglass
	.section	.rodata
.LC14:
	.string	"|"
	.text
	.globl	draw_mountain_road
	.type	draw_mountain_road, @function
draw_mountain_road:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	DWORD PTR -36[rbp], edi
	mov	DWORD PTR -40[rbp], esi
	mov	eax, DWORD PTR -40[rbp]
	mov	DWORD PTR -8[rbp], eax
	mov	DWORD PTR -12[rbp], 1
	jmp	.L48
.L73:
	call	rand@PLT
	mov	edx, DWORD PTR -40[rbp]
	lea	ecx, 1[rdx]
	cdq
	idiv	ecx
	mov	DWORD PTR -4[rbp], edx
	mov	eax, DWORD PTR -12[rbp]
	cdq
	shr	edx, 31
	add	eax, edx
	and	eax, 1
	sub	eax, edx
	cmp	eax, 1
	jne	.L49
	mov	DWORD PTR -20[rbp], 1
	jmp	.L50
.L53:
	mov	DWORD PTR -16[rbp], 1
	jmp	.L51
.L52:
	mov	edi, 32
	call	putchar@PLT
	add	DWORD PTR -16[rbp], 1
.L51:
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -8[rbp]
	jle	.L52
	mov	edi, 47
	call	putchar@PLT
	mov	edi, 10
	call	putchar@PLT
	sub	DWORD PTR -8[rbp], 1
	add	DWORD PTR -20[rbp], 1
.L50:
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	jle	.L53
	mov	DWORD PTR -16[rbp], 1
	jmp	.L54
.L55:
	mov	edi, 32
	call	putchar@PLT
	add	DWORD PTR -16[rbp], 1
.L54:
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -8[rbp]
	jle	.L55
	cmp	DWORD PTR -4[rbp], 0
	je	.L56
	add	DWORD PTR -8[rbp], 1
.L56:
	lea	rdi, .LC14[rip]
	call	puts@PLT
	mov	DWORD PTR -20[rbp], 1
	jmp	.L57
.L60:
	mov	DWORD PTR -16[rbp], 1
	jmp	.L58
.L59:
	mov	edi, 32
	call	putchar@PLT
	add	DWORD PTR -16[rbp], 1
.L58:
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -8[rbp]
	jle	.L59
	mov	edi, 92
	call	putchar@PLT
	mov	edi, 10
	call	putchar@PLT
	add	DWORD PTR -8[rbp], 1
	add	DWORD PTR -20[rbp], 1
.L57:
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	jle	.L60
	jmp	.L61
.L49:
	mov	DWORD PTR -20[rbp], 1
	jmp	.L62
.L65:
	mov	DWORD PTR -16[rbp], 1
	jmp	.L63
.L64:
	mov	edi, 32
	call	putchar@PLT
	add	DWORD PTR -16[rbp], 1
.L63:
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -8[rbp]
	jle	.L64
	mov	edi, 92
	call	putchar@PLT
	mov	edi, 10
	call	putchar@PLT
	add	DWORD PTR -8[rbp], 1
	add	DWORD PTR -20[rbp], 1
.L62:
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	jle	.L65
	mov	DWORD PTR -16[rbp], 1
	jmp	.L66
.L67:
	mov	edi, 32
	call	putchar@PLT
	add	DWORD PTR -16[rbp], 1
.L66:
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -8[rbp]
	jle	.L67
	cmp	DWORD PTR -4[rbp], 0
	je	.L68
	sub	DWORD PTR -8[rbp], 1
.L68:
	lea	rdi, .LC14[rip]
	call	puts@PLT
	mov	DWORD PTR -20[rbp], 1
	jmp	.L69
.L72:
	mov	DWORD PTR -16[rbp], 1
	jmp	.L70
.L71:
	mov	edi, 32
	call	putchar@PLT
	add	DWORD PTR -16[rbp], 1
.L70:
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -8[rbp]
	jle	.L71
	mov	edi, 47
	call	putchar@PLT
	mov	edi, 10
	call	putchar@PLT
	sub	DWORD PTR -8[rbp], 1
	add	DWORD PTR -20[rbp], 1
.L69:
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	jle	.L72
.L61:
	add	DWORD PTR -12[rbp], 1
.L48:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jle	.L73
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	draw_mountain_road, .-draw_mountain_road
	.globl	distance_calculator
	.type	distance_calculator, @function
distance_calculator:
.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
	cmp	DWORD PTR -20[rbp], 0
	jns	.L76
	neg	DWORD PTR -20[rbp]
.L76:
	add	DWORD PTR -4[rbp], 1
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, DWORD PTR -20[rbp]
	movsd	QWORD PTR -32[rbp], xmm2
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -4[rbp]
	mov	rax, QWORD PTR .LC15[rip]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	pow@PLT
	movsd	xmm2, QWORD PTR -32[rbp]
	comisd	xmm2, xmm0
	jnb	.L76
	mov	eax, DWORD PTR -4[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	distance_calculator, .-distance_calculator
	.section	.rodata
	.align 8
.LC15:
	.long	0
	.long	1073741824
	.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	"329132.c"
	.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
	mov	r3, #0
	mov	r0, r3
	pop	{fp, pc}
	.size	main, .-main
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\033[2J\000"
	.align	2
.LC1:
	.ascii	"***** MENU *****\0121. Play Lucky Number\0122. Draw"
	.ascii	" Hourglass\0123. Draw Mountain Road\0124. Exit\012C"
	.ascii	"hoice: \000"
	.align	2
.LC2:
	.ascii	"%d\000"
	.align	2
.LC3:
	.ascii	"\012 \012Press enter to back to menu\000"
	.align	2
.LC4:
	.ascii	"\012\012Exiting...\000"
	.align	2
.LC5:
	.ascii	"\012This is an invalid choice.Try again!\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	menu
	.syntax unified
	.arm
	.fpu softvfp
	.type	menu, %function
menu:
	@ 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, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L4
.L13:
	ldr	r0, .L15+4
	bl	printf
	ldr	r0, .L15+8
	bl	printf
	sub	r3, fp, #28
	mov	r1, r3
	ldr	r0, .L15+12
	bl	__isoc99_scanf
	ldr	r3, [fp, #-28]
	sub	r3, r3, #1
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L5
.L7:
	.word	.L10
	.word	.L9
	.word	.L8
	.word	.L6
.L10:
	bl	game_one
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L11
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	b	.L12
.L11:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L12:
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-20]
	bl	show_score
	ldr	r0, .L15+16
	bl	printf
	bl	getchar
	bl	getchar
	b	.L4
.L9:
	bl	game_two
	ldr	r0, .L15+16
	bl	printf
	bl	getchar
	bl	getchar
	b	.L4
.L8:
	bl	game_three
	ldr	r0, .L15+16
	bl	printf
	bl	getchar
	bl	getchar
	b	.L4
.L6:
	ldr	r0, .L15+20
	bl	printf
	mov	r3, #1
	str	r3, [fp, #-24]
	b	.L4
.L5:
	ldr	r0, .L15+24
	bl	puts
.L4:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L13
	nop
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L14
	bl	__stack_chk_fail
.L14:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC6
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	menu, .-menu
	.section	.rodata
	.align	2
.LC7:
	.ascii	"Distance: 0. You win!\000"
	.align	2
.LC8:
	.ascii	"Distance: %d.\000"
	.text
	.align	2
	.global	game_one
	.syntax unified
	.arm
	.fpu softvfp
	.type	game_one, %function
game_one:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	bl	rand
	mov	r2, r0
	ldr	r3, .L24
	smull	r1, r3, r2, r3
	asr	r1, r3, #9
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #10
	add	r3, r3, r1
	sub	r3, r2, r3
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r3, #1
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-32]
	mov	r3, #1024
	str	r3, [fp, #-28]
	b	.L18
.L22:
	ldr	r2, [fp, #-28]
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-36]
	bl	make_a_guess
	str	r0, [fp, #-16]
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	bne	.L19
	mov	r3, #1
	str	r3, [fp, #-24]
	ldr	r0, .L24+4
	bl	printf
	b	.L18
.L19:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-16]
	sub	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r0, [fp, #-12]
	bl	distance_calculator
	str	r0, [fp, #-8]
	ldr	r1, [fp, #-8]
	ldr	r0, .L24+8
	bl	printf
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	bge	.L20
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-32]
	b	.L18
.L20:
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-28]
.L18:
	ldr	r3, [fp, #-36]
	cmp	r3, #10
	bgt	.L21
	ldr	r3, [fp, #-24]
	cmp	r3, #1
	bne	.L22
.L21:
	ldr	r3, [fp, #-24]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L25:
	.align	2
.L24:
	.word	2145388543
	.word	.LC7
	.word	.LC8
	.size	game_one, .-game_one
	.section	.rodata
	.align	2
.LC9:
	.ascii	"Plese enter positive odd number \000"
	.align	2
.LC10:
	.ascii	"This number is not positive odd number. \000"
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	game_two
	.syntax unified
	.arm
	.fpu softvfp
	.type	game_two, %function
game_two:
	@ 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, .L32
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
.L30:
	ldr	r0, .L32+4
	bl	printf
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, .L32+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-12]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L27
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bge	.L28
.L27:
	ldr	r0, .L32+12
	bl	puts
	b	.L29
.L28:
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	draw_hourglass
.L29:
	ldr	r3, [fp, #-12]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L30
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	blt	.L30
	nop
	ldr	r3, .L32
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L31
	bl	__stack_chk_fail
.L31:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L33:
	.align	2
.L32:
	.word	.LC11
	.word	.LC9
	.word	.LC2
	.word	.LC10
	.size	game_two, .-game_two
	.section	.rodata
	.align	2
.LC12:
	.ascii	"Please enter the length \000"
	.align	2
.LC13:
	.ascii	"Please enter the maximum radius \000"
	.align	2
.LC14:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	game_three
	.syntax unified
	.arm
	.fpu softvfp
	.type	game_three, %function
game_three:
	@ 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, .L36
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L36+4
	bl	printf
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, .L36+8
	bl	__isoc99_scanf
	ldr	r0, .L36+12
	bl	printf
	sub	r3, fp, #16
	mov	r1, r3
	ldr	r0, .L36+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-16]
	mov	r1, r2
	mov	r0, r3
	bl	draw_mountain_road
	nop
	ldr	r3, .L36
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L35
	bl	__stack_chk_fail
.L35:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L37:
	.align	2
.L36:
	.word	.LC14
	.word	.LC12
	.word	.LC2
	.word	.LC13
	.size	game_three, .-game_three
	.section	.rodata
	.align	2
.LC15:
	.ascii	"\012Your score: %d Program Score: %d\000"
	.text
	.align	2
	.global	show_score
	.syntax unified
	.arm
	.fpu softvfp
	.type	show_score, %function
show_score:
	@ 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	r2, [fp, #-12]
	ldr	r1, [fp, #-8]
	ldr	r0, .L39
	bl	printf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L40:
	.align	2
.L39:
	.word	.LC15
	.size	show_score, .-show_score
	.section	.rodata
	.align	2
.LC16:
	.ascii	"\012(Trial: %d) Make a guess between %d and %d :\000"
	.align	2
.LC17:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	make_a_guess
	.syntax unified
	.arm
	.fpu softvfp
	.type	make_a_guess, %function
make_a_guess:
	@ 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, .L45
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
.L42:
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-16]
	ldr	r0, .L45+4
	bl	printf
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, .L45+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	blt	.L42
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	bgt	.L42
	ldr	r3, [fp, #-12]
	ldr	r2, .L45
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L44
	bl	__stack_chk_fail
.L44:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L46:
	.align	2
.L45:
	.word	.LC17
	.word	.LC16
	.word	.LC2
	.size	make_a_guess, .-make_a_guess
	.align	2
	.global	draw_hourglass
	.syntax unified
	.arm
	.fpu softvfp
	.type	draw_hourglass, %function
draw_hourglass:
	@ 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, [fp, #-24]
	add	r3, r3, #1
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L48
.L53:
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L49
.L50:
	mov	r0, #32
	bl	putchar
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L49:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L50
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L51
.L52:
	mov	r0, #42
	bl	putchar
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L51:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-20]
	sub	r3, r2, r3
	lsl	r3, r3, #1
	sub	r3, r3, #1
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L52
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L48:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	blt	.L53
	mov	r3, #1
	str	r3, [fp, #-20]
	b	.L54
.L59:
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L55
.L56:
	mov	r0, #32
	bl	putchar
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L55:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	sub	r3, r2, r3
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L56
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L57
.L58:
	mov	r0, #42
	bl	putchar
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L57:
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	ble	.L58
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L54:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	ble	.L59
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	draw_hourglass, .-draw_hourglass
	.global	__aeabi_idivmod
	.section	.rodata
	.align	2
.LC18:
	.ascii	"|\000"
	.text
	.align	2
	.global	draw_mountain_road
	.syntax unified
	.arm
	.fpu softvfp
	.type	draw_mountain_road, %function
draw_mountain_road:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, [fp, #-36]
	str	r3, [fp, #-12]
	mov	r3, #1
	str	r3, [fp, #-16]
	b	.L61
.L86:
	bl	rand
	mov	r2, r0
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_idivmod
	mov	r3, r1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	and	r3, r3, #1
	rsblt	r3, r3, #0
	cmp	r3, #1
	bne	.L62
	mov	r3, #1
	str	r3, [fp, #-24]
	b	.L63
.L66:
	mov	r3, #1
	str	r3, [fp, #-20]
	b	.L64
.L65:
	mov	r0, #32
	bl	putchar
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L64:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	ble	.L65
	mov	r0, #47
	bl	putchar
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L63:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	ble	.L66
	mov	r3, #1
	str	r3, [fp, #-20]
	b	.L67
.L68:
	mov	r0, #32
	bl	putchar
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L67:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	ble	.L68
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L69
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L69:
	ldr	r0, .L87
	bl	puts
	mov	r3, #1
	str	r3, [fp, #-24]
	b	.L70
.L73:
	mov	r3, #1
	str	r3, [fp, #-20]
	b	.L71
.L72:
	mov	r0, #32
	bl	putchar
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L71:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	ble	.L72
	mov	r0, #92
	bl	putchar
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L70:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	ble	.L73
	b	.L74
.L62:
	mov	r3, #1
	str	r3, [fp, #-24]
	b	.L75
.L78:
	mov	r3, #1
	str	r3, [fp, #-20]
	b	.L76
.L77:
	mov	r0, #32
	bl	putchar
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L76:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	ble	.L77
	mov	r0, #92
	bl	putchar
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L75:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	ble	.L78
	mov	r3, #1
	str	r3, [fp, #-20]
	b	.L79
.L80:
	mov	r0, #32
	bl	putchar
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L79:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	ble	.L80
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L81
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	str	r3, [fp, #-12]
.L81:
	ldr	r0, .L87
	bl	puts
	mov	r3, #1
	str	r3, [fp, #-24]
	b	.L82
.L85:
	mov	r3, #1
	str	r3, [fp, #-20]
	b	.L83
.L84:
	mov	r0, #32
	bl	putchar
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L83:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	ble	.L84
	mov	r0, #47
	bl	putchar
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L82:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	ble	.L85
.L74:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L61:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	ble	.L86
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L88:
	.align	2
.L87:
	.word	.LC18
	.size	draw_mountain_road, .-draw_mountain_road
	.global	__aeabi_i2d
	.global	__aeabi_dcmpge
	.align	2
	.global	distance_calculator
	.syntax unified
	.arm
	.fpu softvfp
	.type	distance_calculator, %function
distance_calculator:
	@ 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, #-24]
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bge	.L91
	ldr	r3, [fp, #-24]
	rsb	r3, r3, #0
	str	r3, [fp, #-24]
.L91:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r0, [fp, #-24]
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r0, [fp, #-16]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, #0
	mov	r1, #1073741824
	bl	pow
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dcmpge
	mov	r3, r0
	cmp	r3, #0
	bne	.L91
	ldr	r3, [fp, #-16]
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
	.size	distance_calculator, .-distance_calculator
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
