	.file	"981009.c"
	.intel_syntax noprefix
	.text
	.globl	Ttable
	.bss
	.align 32
	.type	Ttable, @object
	.size	Ttable, 144
Ttable:
	.zero	144
	.globl	tape
	.align 32
	.type	tape, @object
	.size	tape, 40
tape:
	.zero	40
	.globl	headCell
	.data
	.align 4
	.type	headCell, @object
	.size	headCell, 4
headCell:
	.long	2
	.globl	step
	.bss
	.align 4
	.type	step, @object
	.size	step, 4
step:
	.zero	4
	.globl	state
	.align 4
	.type	state, @object
	.size	state, 4
state:
	.zero	4
	.section	.rodata
.LC0:
	.string	"\033[1;31m"
	.align 8
.LC1:
	.string	"\t-------------------------------------------------------------------"
.LC2:
	.string	"\033[0m"
.LC3:
	.string	"\033[1;32m"
	.align 8
.LC4:
	.string	"\t\t\tOur 3-state 2-symbol Transition table"
	.align 8
.LC5:
	.string	"\t-------------------------------------------------------------------\n"
.LC6:
	.string	"\033[1;34m"
	.align 8
.LC7:
	.string	"\t\t\t+---------+---------+--------+-------+"
	.align 8
.LC8:
	.string	"\t\t\t|         |    A    |    B   |   C   |"
	.align 8
.LC9:
	.string	"\t\t\t|    0    |   1RB   |   0RC  |  1LC  |"
	.align 8
.LC10:
	.string	"\t\t\t|    1    |   1RH   |   1RB  |  1LA  |"
	.align 8
.LC11:
	.string	"\t\t\t+---------+---------+--------+-------+\n"
	.text
	.globl	Print_TT
	.type	Print_TT, @function
Print_TT:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC1[rip]
	call	puts@PLT
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC4[rip]
	call	puts@PLT
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC5[rip]
	call	puts@PLT
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC7[rip]
	call	puts@PLT
	lea	rdi, .LC8[rip]
	call	puts@PLT
	lea	rdi, .LC7[rip]
	call	puts@PLT
	lea	rdi, .LC9[rip]
	call	puts@PLT
	lea	rdi, .LC7[rip]
	call	puts@PLT
	lea	rdi, .LC10[rip]
	call	puts@PLT
	lea	rdi, .LC11[rip]
	call	puts@PLT
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC1[rip]
	call	puts@PLT
	lea	rdi, .LC1[rip]
	call	puts@PLT
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	Print_TT, .-Print_TT
	.section	.rodata
.LC12:
	.string	"\n\t\t\t\t"
.LC13:
	.string	"%d "
.LC14:
	.string	"\033[0;33m"
.LC15:
	.string	"\t\t\t\t"
.LC16:
	.string	"\033[1;36m"
.LC17:
	.string	"\342\206\221"
.LC18:
	.string	"  "
	.text
	.globl	displayTape
	.type	displayTape, @function
displayTape:
.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, 16
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -8[rbp], 0
	jmp	.L4
.L7:
	mov	eax, DWORD PTR headCell[rip]
	cmp	DWORD PTR -8[rbp], eax
	jne	.L5
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, tape[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	esi, eax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L6
.L5:
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, tape[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	esi, eax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
.L6:
	add	DWORD PTR -8[rbp], 1
.L4:
	cmp	DWORD PTR -8[rbp], 9
	jle	.L7
	mov	edi, 10
	call	putchar@PLT
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -4[rbp], 0
	jmp	.L8
.L11:
	mov	eax, DWORD PTR headCell[rip]
	cmp	DWORD PTR -4[rbp], eax
	jne	.L9
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 10
	call	putchar@PLT
	jmp	.L10
.L9:
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L8:
	cmp	DWORD PTR -4[rbp], 9
	jle	.L11
	nop
.L10:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	displayTape, .-displayTape
	.section	.rodata
.LC19:
	.string	"\033[1;35m"
.LC20:
	.string	"-->> "
.LC21:
	.string	"Step: "
.LC22:
	.string	"%d ; "
.LC23:
	.string	"State: "
.LC24:
	.string	"%c\n\n"
	.text
	.globl	GameStats
	.type	GameStats, @function
GameStats:
.LFB8:
	.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	displayTape
	mov	edi, 10
	call	putchar@PLT
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC21[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR step[rip]
	mov	esi, eax
	lea	rdi, .LC22[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC23[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR state[rip]
	test	eax, eax
	je	.L13
	mov	eax, DWORD PTR state[rip]
	cmp	eax, 1
	je	.L14
	mov	eax, DWORD PTR state[rip]
	cmp	eax, 2
	jne	.L15
	mov	eax, 67
	jmp	.L18
.L15:
	mov	eax, 72
	jmp	.L18
.L14:
	mov	eax, 66
	jmp	.L18
.L13:
	mov	eax, 65
.L18:
	mov	esi, eax
	lea	rdi, .LC24[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	GameStats, .-GameStats
	.section	.rodata
.LC25:
	.string	"clear"
.LC26:
	.string	"\033[0;37m"
.LC27:
	.string	"Tape condition at the start"
	.align 8
.LC28:
	.string	"\t*******************************************************************"
	.text
	.globl	Game
	.type	Game, @function
Game:
.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
	lea	rdi, .LC25[rip]
	call	system@PLT
	mov	DWORD PTR step[rip], 0
	mov	DWORD PTR state[rip], 0
	mov	DWORD PTR Ttable[rip], 1
	mov	DWORD PTR Ttable[rip+48], 1
	mov	BYTE PTR Ttable[rip+8], 82
	mov	BYTE PTR Ttable[rip+56], 82
	mov	DWORD PTR Ttable[rip+4], 1
	mov	DWORD PTR Ttable[rip+52], 3
	mov	DWORD PTR Ttable[rip+12], 0
	mov	DWORD PTR Ttable[rip+60], 1
	mov	BYTE PTR Ttable[rip+20], 82
	mov	BYTE PTR Ttable[rip+68], 82
	mov	DWORD PTR Ttable[rip+16], 2
	mov	DWORD PTR Ttable[rip+64], 1
	mov	DWORD PTR Ttable[rip+24], 1
	mov	DWORD PTR Ttable[rip+72], 1
	mov	BYTE PTR Ttable[rip+32], 76
	mov	BYTE PTR Ttable[rip+80], 76
	mov	DWORD PTR Ttable[rip+28], 2
	mov	DWORD PTR Ttable[rip+76], 0
.L23:
	lea	rdi, .LC25[rip]
	call	system@PLT
	mov	eax, 0
	call	Print_TT
	mov	eax, DWORD PTR step[rip]
	test	eax, eax
	jne	.L20
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC26[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC27[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
.L20:
	mov	eax, 0
	call	GameStats
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC28[rip]
	call	puts@PLT
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR step[rip]
	add	eax, 1
	mov	DWORD PTR step[rip], eax
	mov	eax, DWORD PTR headCell[rip]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, tape[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR headCell[rip]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, tape[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR state[rip]
	mov	esi, DWORD PTR headCell[rip]
	cdqe
	movsx	rcx, edx
	mov	rdx, rax
	add	rdx, rdx
	add	rdx, rax
	lea	rax, 0[0+rdx*4]
	mov	rdx, rax
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	sal	rax, 4
	add	rdx, rax
	lea	rax, Ttable[rip]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	movsx	rdx, esi
	lea	rcx, 0[0+rdx*4]
	lea	rdx, tape[rip]
	mov	DWORD PTR [rcx+rdx], eax
	mov	eax, DWORD PTR state[rip]
	cdqe
	mov	edx, DWORD PTR -4[rbp]
	movsx	rcx, edx
	mov	rdx, rax
	add	rdx, rdx
	add	rdx, rax
	lea	rax, 0[0+rdx*4]
	mov	rdx, rax
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	sal	rax, 4
	add	rdx, rax
	lea	rax, Ttable[rip+8]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 82
	jne	.L21
	mov	eax, DWORD PTR headCell[rip]
	add	eax, 1
	mov	DWORD PTR headCell[rip], eax
	jmp	.L22
.L21:
	mov	eax, DWORD PTR headCell[rip]
	sub	eax, 1
	mov	DWORD PTR headCell[rip], eax
.L22:
	mov	eax, DWORD PTR state[rip]
	cdqe
	mov	edx, DWORD PTR -4[rbp]
	movsx	rcx, edx
	mov	rdx, rax
	add	rdx, rdx
	add	rdx, rax
	lea	rax, 0[0+rdx*4]
	mov	rdx, rax
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	sal	rax, 4
	add	rdx, rax
	lea	rax, Ttable[rip+4]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR state[rip], eax
	mov	edi, 2
	call	sleep@PLT
	mov	eax, DWORD PTR state[rip]
	cmp	eax, 3
	jne	.L23
	lea	rdi, .LC25[rip]
	call	system@PLT
	mov	eax, 0
	call	Print_TT
	mov	eax, 0
	call	GameStats
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC28[rip]
	call	puts@PLT
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	Game, .-Game
	.section	.rodata
	.align 8
.LC29:
	.string	"--- Do you want to look at the 3-state 2-symbol busy beaver ? "
	.align 8
.LC30:
	.string	"--- Enter 'Y' to start and 'N' to exit"
.LC31:
	.string	"--- (Y/N): "
.LC32:
	.string	"%c"
.LC33:
	.string	"\n\n\t\t\t\t\033[1;31mThank You :)\033\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, .LC25[rip]
	call	system@PLT
	mov	BYTE PTR -10[rbp], 89
	mov	BYTE PTR -9[rbp], 78
	lea	rdi, .LC29[rip]
	call	puts@PLT
	lea	rdi, .LC30[rip]
	call	puts@PLT
	lea	rdi, .LC31[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -11[rbp]
	mov	rsi, rax
	lea	rdi, .LC32[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	movzx	eax, BYTE PTR -11[rbp]
	cmp	BYTE PTR -10[rbp], al
	je	.L26
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC33[rip]
	call	puts@PLT
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	jmp	.L28
.L26:
	mov	eax, 0
	call	Game
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC33[rip]
	call	puts@PLT
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
.L28:
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L29
	call	__stack_chk_fail@PLT
.L29:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"981009.c"
	.text
	.comm	Ttable,144,4
	.global	tape
	.bss
	.align	2
	.type	tape, %object
	.size	tape, 40
tape:
	.space	40
	.global	headCell
	.data
	.align	2
	.type	headCell, %object
	.size	headCell, 4
headCell:
	.word	2
	.comm	step,4,4
	.comm	state,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\033[1;31m\000"
	.align	2
.LC1:
	.ascii	"\011-----------------------------------------------"
	.ascii	"--------------------\000"
	.align	2
.LC2:
	.ascii	"\033[0m\000"
	.align	2
.LC3:
	.ascii	"\033[1;32m\000"
	.align	2
.LC4:
	.ascii	"\011\011\011Our 3-state 2-symbol Transition table\000"
	.align	2
.LC5:
	.ascii	"\011-----------------------------------------------"
	.ascii	"--------------------\012\000"
	.align	2
.LC6:
	.ascii	"\033[1;34m\000"
	.align	2
.LC7:
	.ascii	"\011\011\011+---------+---------+--------+-------+\000"
	.align	2
.LC8:
	.ascii	"\011\011\011|         |    A    |    B   |   C   |\000"
	.align	2
.LC9:
	.ascii	"\011\011\011|    0    |   1RB   |   0RC  |  1LC  |\000"
	.align	2
.LC10:
	.ascii	"\011\011\011|    1    |   1RH   |   1RB  |  1LA  |\000"
	.align	2
.LC11:
	.ascii	"\011\011\011+---------+---------+--------+-------+\012"
	.ascii	"\000"
	.text
	.align	2
	.global	Print_TT
	.syntax unified
	.arm
	.fpu softvfp
	.type	Print_TT, %function
Print_TT:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L3
	bl	printf
	ldr	r0, .L3+4
	bl	puts
	ldr	r0, .L3+8
	bl	printf
	ldr	r0, .L3+12
	bl	printf
	ldr	r0, .L3+16
	bl	puts
	ldr	r0, .L3+8
	bl	printf
	ldr	r0, .L3
	bl	printf
	ldr	r0, .L3+20
	bl	puts
	ldr	r0, .L3+8
	bl	printf
	ldr	r0, .L3+24
	bl	printf
	ldr	r0, .L3+28
	bl	puts
	ldr	r0, .L3+32
	bl	puts
	ldr	r0, .L3+28
	bl	puts
	ldr	r0, .L3+36
	bl	puts
	ldr	r0, .L3+28
	bl	puts
	ldr	r0, .L3+40
	bl	puts
	ldr	r0, .L3+44
	bl	puts
	ldr	r0, .L3+8
	bl	printf
	ldr	r0, .L3
	bl	printf
	ldr	r0, .L3+4
	bl	puts
	ldr	r0, .L3+4
	bl	puts
	ldr	r0, .L3+8
	bl	printf
	nop
	pop	{fp, pc}
.L4:
	.align	2
.L3:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.size	Print_TT, .-Print_TT
	.section	.rodata
	.align	2
.LC12:
	.ascii	"\012\011\011\011\011\000"
	.align	2
.LC13:
	.ascii	"%d \000"
	.align	2
.LC14:
	.ascii	"\033[0;33m\000"
	.align	2
.LC15:
	.ascii	"\011\011\011\011\000"
	.align	2
.LC16:
	.ascii	"\033[1;36m\000"
	.align	2
.LC17:
	.ascii	"\342\206\221\000"
	.align	2
.LC18:
	.ascii	"  \000"
	.text
	.align	2
	.global	displayTape
	.syntax unified
	.arm
	.fpu softvfp
	.type	displayTape, %function
displayTape:
	@ 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	r0, .L14
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L6
.L9:
	ldr	r3, .L14+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bne	.L7
	ldr	r0, .L14+8
	bl	printf
	ldr	r2, .L14+12
	ldr	r3, [fp, #-12]
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L14+16
	bl	printf
	ldr	r0, .L14+20
	bl	printf
	b	.L8
.L7:
	ldr	r0, .L14+24
	bl	printf
	ldr	r2, .L14+12
	ldr	r3, [fp, #-12]
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L14+16
	bl	printf
	ldr	r0, .L14+20
	bl	printf
.L8:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L6:
	ldr	r3, [fp, #-12]
	cmp	r3, #9
	ble	.L9
	mov	r0, #10
	bl	putchar
	ldr	r0, .L14+28
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L10
.L13:
	ldr	r3, .L14+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bne	.L11
	ldr	r0, .L14+32
	bl	printf
	ldr	r0, .L14+36
	bl	printf
	ldr	r0, .L14+20
	bl	printf
	mov	r0, #10
	bl	putchar
	b	.L12
.L11:
	ldr	r0, .L14+40
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L10:
	ldr	r3, [fp, #-8]
	cmp	r3, #9
	ble	.L13
	nop
.L12:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC12
	.word	headCell
	.word	.LC0
	.word	tape
	.word	.LC13
	.word	.LC2
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.size	displayTape, .-displayTape
	.section	.rodata
	.align	2
.LC19:
	.ascii	"\033[1;35m\000"
	.align	2
.LC20:
	.ascii	"-->> \000"
	.align	2
.LC21:
	.ascii	"Step: \000"
	.align	2
.LC22:
	.ascii	"%d ; \000"
	.align	2
.LC23:
	.ascii	"State: \000"
	.align	2
.LC24:
	.ascii	"%c\012\012\000"
	.text
	.align	2
	.global	GameStats
	.syntax unified
	.arm
	.fpu softvfp
	.type	GameStats, %function
GameStats:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	bl	displayTape
	mov	r0, #10
	bl	putchar
	ldr	r0, .L23
	bl	printf
	ldr	r0, .L23+4
	bl	printf
	ldr	r0, .L23+8
	bl	printf
	ldr	r0, .L23+12
	bl	printf
	ldr	r0, .L23+16
	bl	printf
	ldr	r0, .L23+8
	bl	printf
	ldr	r0, .L23+20
	bl	printf
	ldr	r3, .L23+24
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L23+28
	bl	printf
	ldr	r0, .L23+8
	bl	printf
	ldr	r0, .L23+12
	bl	printf
	ldr	r0, .L23+32
	bl	printf
	ldr	r0, .L23+8
	bl	printf
	ldr	r0, .L23+20
	bl	printf
	ldr	r3, .L23+36
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L17
	ldr	r3, .L23+36
	ldr	r3, [r3]
	cmp	r3, #1
	beq	.L18
	ldr	r3, .L23+36
	ldr	r3, [r3]
	cmp	r3, #2
	bne	.L19
	mov	r3, #67
	b	.L22
.L19:
	mov	r3, #72
	b	.L22
.L18:
	mov	r3, #66
	b	.L22
.L17:
	mov	r3, #65
.L22:
	mov	r1, r3
	ldr	r0, .L23+40
	bl	printf
	ldr	r0, .L23+8
	bl	printf
	nop
	pop	{fp, pc}
.L24:
	.align	2
.L23:
	.word	.LC19
	.word	.LC20
	.word	.LC2
	.word	.LC6
	.word	.LC21
	.word	.LC0
	.word	step
	.word	.LC22
	.word	.LC23
	.word	state
	.word	.LC24
	.size	GameStats, .-GameStats
	.section	.rodata
	.align	2
.LC25:
	.ascii	"clear\000"
	.align	2
.LC26:
	.ascii	"\033[0;37m\000"
	.align	2
.LC27:
	.ascii	"Tape condition at the start\000"
	.align	2
.LC28:
	.ascii	"\011***********************************************"
	.ascii	"********************\000"
	.text
	.align	2
	.global	Game
	.syntax unified
	.arm
	.fpu softvfp
	.type	Game, %function
Game:
	@ 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	r0, .L31
	bl	system
	ldr	r3, .L31+4
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L31+8
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L31+12
	mov	r2, #1
	str	r2, [r3]
	ldr	r3, .L31+12
	mov	r2, #1
	str	r2, [r3, #48]
	ldr	r3, .L31+12
	mov	r2, #82
	strb	r2, [r3, #8]
	ldr	r3, .L31+12
	mov	r2, #82
	strb	r2, [r3, #56]
	ldr	r3, .L31+12
	mov	r2, #1
	str	r2, [r3, #4]
	ldr	r3, .L31+12
	mov	r2, #3
	str	r2, [r3, #52]
	ldr	r3, .L31+12
	mov	r2, #0
	str	r2, [r3, #12]
	ldr	r3, .L31+12
	mov	r2, #1
	str	r2, [r3, #60]
	ldr	r3, .L31+12
	mov	r2, #82
	strb	r2, [r3, #20]
	ldr	r3, .L31+12
	mov	r2, #82
	strb	r2, [r3, #68]
	ldr	r3, .L31+12
	mov	r2, #2
	str	r2, [r3, #16]
	ldr	r3, .L31+12
	mov	r2, #1
	str	r2, [r3, #64]
	ldr	r3, .L31+12
	mov	r2, #1
	str	r2, [r3, #24]
	ldr	r3, .L31+12
	mov	r2, #1
	str	r2, [r3, #72]
	ldr	r3, .L31+12
	mov	r2, #76
	strb	r2, [r3, #32]
	ldr	r3, .L31+12
	mov	r2, #76
	strb	r2, [r3, #80]
	ldr	r3, .L31+12
	mov	r2, #2
	str	r2, [r3, #28]
	ldr	r3, .L31+12
	mov	r2, #0
	str	r2, [r3, #76]
.L29:
	ldr	r0, .L31
	bl	system
	bl	Print_TT
	ldr	r3, .L31+4
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L26
	ldr	r0, .L31+16
	bl	printf
	ldr	r0, .L31+20
	bl	printf
	ldr	r0, .L31+24
	bl	printf
	ldr	r0, .L31+28
	bl	printf
	ldr	r0, .L31+32
	bl	printf
	ldr	r0, .L31+24
	bl	printf
.L26:
	bl	GameStats
	ldr	r0, .L31+36
	bl	printf
	ldr	r0, .L31+40
	bl	puts
	ldr	r0, .L31+24
	bl	printf
	ldr	r3, .L31+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L31+4
	str	r3, [r2]
	ldr	r3, .L31+44
	ldr	r3, [r3]
	ldr	r2, .L31+48
	ldr	r3, [r2, r3, lsl #2]
	str	r3, [fp, #-8]
	ldr	r3, .L31+44
	ldr	r3, [r3]
	ldr	r2, .L31+48
	ldr	r1, [r2, r3, lsl #2]
	ldr	r3, .L31+8
	ldr	r3, [r3]
	ldr	r2, .L31+44
	ldr	r0, [r2]
	ldr	ip, .L31+12
	mov	r2, r3
	lsl	r2, r2, #1
	add	r2, r2, r3
	lsl	r3, r2, #2
	mov	r2, r3
	mov	r3, r1
	lsl	r3, r3, #1
	add	r3, r3, r1
	lsl	r3, r3, #4
	add	r3, r2, r3
	add	r3, ip, r3
	ldr	r3, [r3]
	ldr	r2, .L31+48
	str	r3, [r2, r0, lsl #2]
	ldr	r3, .L31+8
	ldr	r3, [r3]
	ldr	r0, .L31+12
	ldr	r1, [fp, #-8]
	mov	r2, r3
	lsl	r2, r2, #1
	add	r2, r2, r3
	lsl	r3, r2, #2
	mov	r2, r3
	mov	r3, r1
	lsl	r3, r3, #1
	add	r3, r3, r1
	lsl	r3, r3, #4
	add	r3, r2, r3
	add	r3, r0, r3
	add	r3, r3, #8
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #82
	bne	.L27
	ldr	r3, .L31+44
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L31+44
	str	r3, [r2]
	b	.L28
.L27:
	ldr	r3, .L31+44
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L31+44
	str	r3, [r2]
.L28:
	ldr	r3, .L31+8
	ldr	r3, [r3]
	ldr	r0, .L31+12
	ldr	r1, [fp, #-8]
	mov	r2, r3
	lsl	r2, r2, #1
	add	r2, r2, r3
	lsl	r3, r2, #2
	mov	r2, r3
	mov	r3, r1
	lsl	r3, r3, #1
	add	r3, r3, r1
	lsl	r3, r3, #4
	add	r3, r2, r3
	add	r3, r0, r3
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r2, .L31+8
	str	r3, [r2]
	mov	r0, #2
	bl	sleep
	ldr	r3, .L31+8
	ldr	r3, [r3]
	cmp	r3, #3
	bne	.L29
	ldr	r0, .L31
	bl	system
	bl	Print_TT
	bl	GameStats
	ldr	r0, .L31+36
	bl	printf
	ldr	r0, .L31+40
	bl	puts
	ldr	r0, .L31+24
	bl	printf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L32:
	.align	2
.L31:
	.word	.LC25
	.word	step
	.word	state
	.word	Ttable
	.word	.LC19
	.word	.LC20
	.word	.LC2
	.word	.LC26
	.word	.LC27
	.word	.LC3
	.word	.LC28
	.word	headCell
	.word	tape
	.size	Game, .-Game
	.section	.rodata
	.align	2
.LC29:
	.ascii	"--- Do you want to look at the 3-state 2-symbol bus"
	.ascii	"y beaver ? \000"
	.align	2
.LC30:
	.ascii	"--- Enter 'Y' to start and 'N' to exit\000"
	.align	2
.LC31:
	.ascii	"--- (Y/N): \000"
	.align	2
.LC32:
	.ascii	"%c\000"
	.align	2
.LC33:
	.ascii	"\012\012\011\011\011\011\033[1;31mThank You :)\033\012"
	.ascii	"\000"
	.align	2
.LC34:
	.word	__stack_chk_guard
	.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
	ldr	r3, .L38
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L38+4
	bl	system
	mov	r3, #89
	strb	r3, [fp, #-10]
	mov	r3, #78
	strb	r3, [fp, #-9]
	ldr	r0, .L38+8
	bl	puts
	ldr	r0, .L38+12
	bl	puts
	ldr	r0, .L38+16
	bl	printf
	sub	r3, fp, #11
	mov	r1, r3
	ldr	r0, .L38+20
	bl	__isoc99_scanf
	ldrb	r3, [fp, #-11]	@ zero_extendqisi2
	ldrb	r2, [fp, #-10]	@ zero_extendqisi2
	cmp	r2, r3
	beq	.L34
	ldr	r0, .L38+24
	bl	printf
	ldr	r0, .L38+28
	bl	puts
	ldr	r0, .L38+32
	bl	printf
	mov	r3, #0
	b	.L36
.L34:
	bl	Game
	ldr	r0, .L38+24
	bl	printf
	ldr	r0, .L38+28
	bl	puts
	ldr	r0, .L38+32
	bl	printf
	mov	r3, #0
.L36:
	ldr	r2, .L38
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L37
	bl	__stack_chk_fail
.L37:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L39:
	.align	2
.L38:
	.word	.LC34
	.word	.LC25
	.word	.LC29
	.word	.LC30
	.word	.LC31
	.word	.LC32
	.word	.LC3
	.word	.LC33
	.word	.LC2
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
