	.file	"418631.c"
	.intel_syntax noprefix
	.text
	.globl	my_tm
	.bss
	.align 32
	.type	my_tm, @object
	.size	my_tm, 56
my_tm:
	.zero	56
	.text
	.globl	consume_stuff
	.type	consume_stuff, @function
consume_stuff:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	call	getchar@PLT
	mov	BYTE PTR -1[rbp], al
	jmp	.L2
.L3:
	call	getchar@PLT
	mov	BYTE PTR -1[rbp], al
.L2:
	cmp	BYTE PTR -1[rbp], 10
	jne	.L3
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	consume_stuff, .-consume_stuff
	.globl	ascii_encoder
	.type	ascii_encoder, @function
ascii_encoder:
.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
	mov	DWORD PTR -4[rbp], edi
	cmp	DWORD PTR -4[rbp], 96
	jle	.L5
	cmp	DWORD PTR -4[rbp], 122
	jg	.L5
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, 97
	jmp	.L6
.L5:
	cmp	DWORD PTR -4[rbp], 95
	jne	.L7
	mov	eax, 26
	jmp	.L6
.L7:
	cmp	DWORD PTR -4[rbp], 64
	jle	.L8
	cmp	DWORD PTR -4[rbp], 90
	jg	.L8
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, 38
	jmp	.L6
.L8:
	cmp	DWORD PTR -4[rbp], 47
	jle	.L9
	cmp	DWORD PTR -4[rbp], 57
	jg	.L9
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 5
	jmp	.L6
.L9:
	mov	edi, 1
	call	exit@PLT
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	ascii_encoder, .-ascii_encoder
	.globl	nondeterministic_move
	.type	nondeterministic_move, @function
nondeterministic_move:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	edi, 40
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	strlen@PLT
	add	rax, 1
	mov	rdi, rax
	call	malloc@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	strlen@PLT
	add	rax, 1
	mov	rdi, rax
	call	malloc@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 16[rax]
	movsx	eax, al
	cmp	eax, 108
	je	.L11
	cmp	eax, 114
	jne	.L12
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR 4[rax]
	cmp	eax, -1
	jne	.L13
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 20[rax]
	test	eax, eax
	jne	.L13
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 20[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR 16[rax], 108
	jmp	.L14
.L13:
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR 20[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR 4[rax]
	add	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 20[rax], edx
	mov	rax, QWORD PTR -24[rbp]
	movzx	edx, BYTE PTR 16[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR 16[rax], dl
.L14:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 20[rax]
	mov	eax, eax
	add	rdx, rax
	mov	rax, QWORD PTR -32[rbp]
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR [rdx], al
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, DWORD PTR 8[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 24[rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 32[rax], 0
	jmp	.L12
.L11:
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR 4[rax]
	cmp	eax, 1
	jne	.L15
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 20[rax]
	test	eax, eax
	jne	.L15
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 20[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR 16[rax], 114
	jmp	.L16
.L15:
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR 20[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR 4[rax]
	sub	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 20[rax], edx
	mov	rax, QWORD PTR -24[rbp]
	movzx	edx, BYTE PTR 16[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR 16[rax], dl
.L16:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 20[rax]
	mov	eax, eax
	add	rdx, rax
	mov	rax, QWORD PTR -32[rbp]
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR [rdx], al
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, DWORD PTR 8[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 24[rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 32[rax], 0
	nop
.L12:
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	nondeterministic_move, .-nondeterministic_move
	.globl	deterministic_move
	.type	deterministic_move, @function
deterministic_move:
.LFB9:
	.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 -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR 16[rax]
	movsx	eax, al
	cmp	eax, 108
	je	.L19
	cmp	eax, 114
	jne	.L20
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 4[rax]
	cmp	eax, -1
	jne	.L21
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 20[rax]
	test	eax, eax
	jne	.L21
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 20[rax]
	mov	eax, eax
	add	rdx, rax
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR [rdx], al
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 20[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR 16[rax], 108
	jmp	.L22
.L21:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 20[rax]
	mov	eax, eax
	add	rdx, rax
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR [rdx], al
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR 20[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 4[rax]
	add	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 20[rax], edx
.L22:
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR 8[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 24[rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 32[rax], 0
	jmp	.L20
.L19:
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 4[rax]
	cmp	eax, 1
	jne	.L23
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 20[rax]
	test	eax, eax
	jne	.L23
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 20[rax]
	mov	eax, eax
	add	rdx, rax
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR [rdx], al
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 20[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR 16[rax], 114
	jmp	.L24
.L23:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 20[rax]
	mov	eax, eax
	add	rdx, rax
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR [rdx], al
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR 20[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 4[rax]
	sub	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 20[rax], edx
.L24:
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR 8[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 24[rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 32[rax], 0
	nop
.L20:
	mov	rax, QWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	deterministic_move, .-deterministic_move
	.globl	enqueue
	.type	enqueue, @function
enqueue:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	cmp	QWORD PTR -32[rbp], 0
	jne	.L27
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -32[rbp], rax
	jmp	.L28
.L27:
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 32[rax], rdx
.L28:
	mov	rax, QWORD PTR -32[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	enqueue, .-enqueue
	.section	.rodata
.LC0:
	.string	"%d %c %c %c %d "
.LC1:
	.string	"%d%*c"
.LC2:
	.string	"%lu%*c\n"
	.text
	.globl	tm_setup
	.type	tm_setup, @function
tm_setup:
.LFB11:
	.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, 88
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	eax, 0
	call	consume_stuff
	mov	DWORD PTR -72[rbp], 0
	mov	edi, 8
	call	malloc@PLT
	mov	QWORD PTR my_tm[rip], rax
	jmp	.L31
.L46:
	mov	eax, DWORD PTR -84[rbp]
	cmp	DWORD PTR -72[rbp], eax
	jg	.L32
	mov	eax, DWORD PTR -84[rbp]
	add	eax, 1
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR my_tm[rip]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR my_tm[rip], rax
	mov	eax, DWORD PTR -72[rbp]
	mov	DWORD PTR -68[rbp], eax
	jmp	.L33
.L36:
	mov	rdx, QWORD PTR my_tm[rip]
	mov	eax, DWORD PTR -68[rbp]
	cdqe
	sal	rax, 3
	lea	rbx, [rdx+rax]
	mov	edi, 504
	call	malloc@PLT
	mov	QWORD PTR [rbx], rax
	mov	DWORD PTR -64[rbp], 0
	jmp	.L34
.L35:
	mov	rdx, QWORD PTR my_tm[rip]
	mov	eax, DWORD PTR -68[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -64[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	QWORD PTR [rax], 0
	add	DWORD PTR -64[rbp], 1
.L34:
	cmp	DWORD PTR -64[rbp], 62
	jle	.L35
	add	DWORD PTR -68[rbp], 1
.L33:
	mov	eax, DWORD PTR -84[rbp]
	cmp	DWORD PTR -68[rbp], eax
	jle	.L36
	mov	eax, DWORD PTR -84[rbp]
	add	eax, 1
	mov	DWORD PTR -72[rbp], eax
.L32:
	mov	edx, DWORD PTR my_tm[rip+40]
	mov	eax, DWORD PTR -84[rbp]
	cmp	edx, eax
	jge	.L37
	mov	eax, DWORD PTR -84[rbp]
	mov	DWORD PTR my_tm[rip+40], eax
.L37:
	mov	edx, DWORD PTR my_tm[rip+40]
	mov	eax, DWORD PTR -80[rbp]
	cmp	edx, eax
	jge	.L38
	mov	eax, DWORD PTR -80[rbp]
	mov	DWORD PTR my_tm[rip+40], eax
.L38:
	mov	edi, 24
	call	malloc@PLT
	mov	QWORD PTR -32[rbp], rax
	movzx	eax, BYTE PTR -87[rbp]
	movsx	eax, al
	mov	edi, eax
	call	ascii_encoder
	mov	DWORD PTR -44[rbp], eax
	mov	rdx, QWORD PTR my_tm[rip]
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L39
	mov	rdx, QWORD PTR my_tm[rip]
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -40[rbp], rax
	jmp	.L40
.L41:
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -40[rbp], rax
.L40:
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	jne	.L41
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	QWORD PTR 16[rax], rdx
	jmp	.L42
.L39:
	mov	rdx, QWORD PTR my_tm[rip]
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	sal	rax, 3
	add	rdx, rax
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR [rdx], rax
.L42:
	movzx	edx, BYTE PTR -86[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	BYTE PTR [rax], dl
	movzx	eax, BYTE PTR -85[rbp]
	movsx	eax, al
	cmp	eax, 83
	je	.L43
	cmp	eax, 83
	jg	.L44
	cmp	eax, 76
	je	.L45
	cmp	eax, 82
	jne	.L44
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR 4[rax], 1
	jmp	.L44
.L45:
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR 4[rax], -1
	jmp	.L44
.L43:
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR 4[rax], 0
	nop
.L44:
	mov	edx, DWORD PTR -80[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR 8[rax], edx
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR 16[rax], 0
.L31:
	lea	rdi, -80[rbp]
	lea	rsi, -85[rbp]
	lea	rcx, -86[rbp]
	lea	rdx, -87[rbp]
	lea	rax, -84[rbp]
	mov	r9, rdi
	mov	r8, rsi
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	test	eax, eax
	setg	al
	movzx	eax, al
	mov	DWORD PTR -48[rbp], eax
	cmp	DWORD PTR -48[rbp], 0
	jne	.L46
	mov	eax, DWORD PTR -72[rbp]
	sub	eax, 1
	mov	DWORD PTR my_tm[rip+44], eax
	mov	eax, DWORD PTR my_tm[rip+40]
	add	eax, 1
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR my_tm[rip]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR my_tm[rip], rax
	mov	eax, DWORD PTR my_tm[rip+44]
	add	eax, 1
	mov	DWORD PTR -60[rbp], eax
	jmp	.L47
.L50:
	mov	rdx, QWORD PTR my_tm[rip]
	mov	eax, DWORD PTR -60[rbp]
	cdqe
	sal	rax, 3
	lea	rbx, [rdx+rax]
	mov	edi, 504
	call	malloc@PLT
	mov	QWORD PTR [rbx], rax
	mov	DWORD PTR -56[rbp], 0
	jmp	.L48
.L49:
	mov	rdx, QWORD PTR my_tm[rip]
	mov	eax, DWORD PTR -60[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	QWORD PTR [rax], 0
	add	DWORD PTR -56[rbp], 1
.L48:
	cmp	DWORD PTR -56[rbp], 62
	jle	.L49
	add	DWORD PTR -60[rbp], 1
.L47:
	mov	eax, DWORD PTR my_tm[rip+40]
	cmp	DWORD PTR -60[rbp], eax
	jle	.L50
	mov	eax, 0
	call	consume_stuff
	mov	DWORD PTR -72[rbp], 0
	mov	edi, 1
	call	malloc@PLT
	mov	QWORD PTR my_tm[rip+16], rax
	jmp	.L51
.L55:
	mov	eax, DWORD PTR -76[rbp]
	cmp	DWORD PTR -72[rbp], eax
	jg	.L52
	mov	eax, DWORD PTR -76[rbp]
	add	eax, 1
	movsx	rdx, eax
	mov	rax, QWORD PTR my_tm[rip+16]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR my_tm[rip+16], rax
	mov	eax, DWORD PTR -72[rbp]
	mov	DWORD PTR -52[rbp], eax
	jmp	.L53
.L54:
	mov	rdx, QWORD PTR my_tm[rip+16]
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	add	rax, rdx
	mov	BYTE PTR [rax], 110
	add	DWORD PTR -52[rbp], 1
.L53:
	mov	eax, DWORD PTR -76[rbp]
	cmp	DWORD PTR -52[rbp], eax
	jl	.L54
	mov	eax, DWORD PTR -76[rbp]
	mov	DWORD PTR my_tm[rip+48], eax
	mov	eax, DWORD PTR -76[rbp]
	add	eax, 1
	mov	DWORD PTR -72[rbp], eax
.L52:
	mov	rdx, QWORD PTR my_tm[rip+16]
	mov	eax, DWORD PTR -76[rbp]
	cdqe
	add	rax, rdx
	mov	BYTE PTR [rax], 121
.L51:
	lea	rax, -76[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	test	eax, eax
	setg	al
	movzx	eax, al
	mov	DWORD PTR -48[rbp], eax
	cmp	DWORD PTR -48[rbp], 0
	jne	.L55
	mov	eax, DWORD PTR -72[rbp]
	sub	eax, 1
	mov	DWORD PTR my_tm[rip+48], eax
	mov	eax, DWORD PTR my_tm[rip+40]
	add	eax, 1
	movsx	rdx, eax
	mov	rax, QWORD PTR my_tm[rip+16]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR my_tm[rip+16], rax
	mov	eax, DWORD PTR my_tm[rip+48]
	add	eax, 1
	mov	DWORD PTR -60[rbp], eax
	jmp	.L56
.L57:
	mov	rdx, QWORD PTR my_tm[rip+16]
	mov	eax, DWORD PTR -60[rbp]
	cdqe
	add	rax, rdx
	mov	BYTE PTR [rax], 110
	add	DWORD PTR -60[rbp], 1
.L56:
	mov	eax, DWORD PTR my_tm[rip+40]
	cmp	DWORD PTR -60[rbp], eax
	jle	.L57
	mov	eax, 0
	call	consume_stuff
	lea	rsi, my_tm[rip+24]
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, 0
	call	consume_stuff
	nop
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L58
	call	__stack_chk_fail@PLT
.L58:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	tm_setup, .-tm_setup
	.section	.rodata
.LC3:
	.string	"0"
.LC4:
	.string	"1"
.LC5:
	.string	"U"
.LC6:
	.string	"%ms"
	.text
	.globl	tm_execution
	.type	tm_execution, @function
tm_execution:
.LFB12:
	.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
	mov	QWORD PTR -104[rbp], 0
	mov	DWORD PTR -124[rbp], 64
	mov	DWORD PTR -120[rbp], 64
	jmp	.L60
.L86:
	mov	DWORD PTR -112[rbp], 0
	mov	DWORD PTR -108[rbp], 0
	mov	eax, DWORD PTR -124[rbp]
	add	eax, 1
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -64[rbp], rax
	mov	eax, DWORD PTR -124[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -64[rbp]
	mov	esi, 95
	mov	rdi, rax
	call	memset@PLT
	mov	eax, DWORD PTR -124[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	eax, DWORD PTR -120[rbp]
	add	eax, 1
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -56[rbp], rax
	mov	eax, DWORD PTR -120[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -56[rbp]
	mov	esi, 95
	mov	rdi, rax
	call	memset@PLT
	mov	eax, DWORD PTR -120[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	edi, 40
	call	malloc@PLT
	mov	QWORD PTR my_tm[rip+8], rax
	mov	rax, QWORD PTR -104[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	eax, DWORD PTR -124[rbp]
	cdqe
	add	rax, rdx
	add	rax, 1
	mov	rbx, QWORD PTR my_tm[rip+8]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR [rbx], rax
	mov	rdx, QWORD PTR -104[rbp]
	mov	rax, QWORD PTR my_tm[rip+8]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	rax, QWORD PTR my_tm[rip+8]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -64[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	mov	eax, DWORD PTR -120[rbp]
	add	eax, 1
	cdqe
	mov	rbx, QWORD PTR my_tm[rip+8]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR 8[rbx], rax
	mov	rax, QWORD PTR my_tm[rip+8]
	mov	rax, QWORD PTR 8[rax]
	mov	rdx, QWORD PTR -56[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	rax, QWORD PTR -104[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR my_tm[rip+8]
	mov	DWORD PTR 20[rax], 0
	mov	rax, QWORD PTR my_tm[rip+8]
	mov	DWORD PTR 24[rax], 0
	mov	rax, QWORD PTR my_tm[rip+8]
	mov	BYTE PTR 16[rax], 114
	mov	rax, QWORD PTR my_tm[rip+8]
	mov	QWORD PTR 32[rax], 0
	mov	DWORD PTR -116[rbp], -1
	mov	QWORD PTR my_tm[rip+32], 0
.L78:
	mov	rax, QWORD PTR my_tm[rip+8]
	mov	QWORD PTR -96[rbp], rax
	mov	QWORD PTR -88[rbp], 0
	jmp	.L61
.L73:
	mov	rax, QWORD PTR -96[rbp]
	movzx	eax, BYTE PTR 16[rax]
	movsx	eax, al
	cmp	eax, 108
	je	.L62
	cmp	eax, 114
	jne	.L63
	mov	rax, QWORD PTR -96[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -96[rbp]
	mov	eax, DWORD PTR 20[rax]
	mov	eax, eax
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L64
	mov	rax, QWORD PTR -96[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	eax, DWORD PTR -124[rbp]
	cdqe
	add	rax, rdx
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -96[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	rdx, QWORD PTR -96[rbp]
	mov	QWORD PTR [rdx], rax
	mov	eax, DWORD PTR -124[rbp]
	add	eax, 1
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -64[rbp], rax
	mov	eax, DWORD PTR -124[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -64[rbp]
	mov	esi, 95
	mov	rdi, rax
	call	memset@PLT
	mov	eax, DWORD PTR -124[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -96[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -64[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	free@PLT
	add	DWORD PTR -124[rbp], 64
.L64:
	mov	rdx, QWORD PTR my_tm[rip]
	mov	rax, QWORD PTR -96[rbp]
	mov	eax, DWORD PTR 24[rax]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rbx, QWORD PTR [rax]
	mov	rax, QWORD PTR -96[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -96[rbp]
	mov	eax, DWORD PTR 20[rax]
	mov	eax, eax
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	ascii_encoder
	cdqe
	sal	rax, 3
	add	rax, rbx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -80[rbp], rax
	jmp	.L63
.L62:
	mov	rax, QWORD PTR -96[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -96[rbp]
	mov	eax, DWORD PTR 20[rax]
	mov	eax, eax
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L65
	mov	rax, QWORD PTR -96[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	eax, DWORD PTR -120[rbp]
	cdqe
	add	rax, rdx
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -96[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	rdx, QWORD PTR -96[rbp]
	mov	QWORD PTR 8[rdx], rax
	mov	eax, DWORD PTR -120[rbp]
	add	eax, 1
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -56[rbp], rax
	mov	eax, DWORD PTR -120[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -56[rbp]
	mov	esi, 95
	mov	rdi, rax
	call	memset@PLT
	mov	eax, DWORD PTR -120[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -96[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdx, QWORD PTR -56[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	free@PLT
	add	DWORD PTR -120[rbp], 64
.L65:
	mov	rdx, QWORD PTR my_tm[rip]
	mov	rax, QWORD PTR -96[rbp]
	mov	eax, DWORD PTR 24[rax]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rbx, QWORD PTR [rax]
	mov	rax, QWORD PTR -96[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -96[rbp]
	mov	eax, DWORD PTR 20[rax]
	mov	eax, eax
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	ascii_encoder
	cdqe
	sal	rax, 3
	add	rax, rbx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -80[rbp], rax
	nop
.L63:
	mov	rax, QWORD PTR -96[rbp]
	mov	rax, QWORD PTR 32[rax]
	mov	QWORD PTR -48[rbp], rax
	cmp	QWORD PTR -80[rbp], 0
	jne	.L66
	mov	rdx, QWORD PTR my_tm[rip+16]
	mov	rax, QWORD PTR -96[rbp]
	mov	eax, DWORD PTR 24[rax]
	cdqe
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 121
	jne	.L67
	mov	DWORD PTR -116[rbp], 1
	jmp	.L68
.L67:
	mov	rax, QWORD PTR -96[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -96[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -96[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR my_tm[rip+8], rax
	jmp	.L69
.L66:
	mov	rdx, QWORD PTR my_tm[rip+32]
	mov	rax, QWORD PTR my_tm[rip+24]
	cmp	rdx, rax
	jnb	.L70
	jmp	.L71
.L72:
	mov	rdx, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR -96[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	nondeterministic_move
	mov	rdx, rax
	mov	rax, QWORD PTR -88[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	enqueue
	mov	QWORD PTR -88[rbp], rax
	mov	rax, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -80[rbp], rax
.L71:
	mov	rax, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	jne	.L72
	mov	rdx, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR -96[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	deterministic_move
	mov	rdx, rax
	mov	rax, QWORD PTR -88[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	enqueue
	mov	QWORD PTR -88[rbp], rax
	jmp	.L69
.L70:
	mov	DWORD PTR -116[rbp], 2
	jmp	.L68
.L69:
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR -96[rbp], rax
.L61:
	cmp	QWORD PTR -96[rbp], 0
	jne	.L73
.L68:
	mov	rax, QWORD PTR my_tm[rip+32]
	add	rax, 1
	mov	QWORD PTR my_tm[rip+32], rax
	cmp	DWORD PTR -116[rbp], 0
	jns	.L88
	mov	rax, QWORD PTR -88[rbp]
	mov	QWORD PTR my_tm[rip+8], rax
	mov	QWORD PTR -88[rbp], 0
	mov	rax, QWORD PTR my_tm[rip+8]
	test	rax, rax
	jne	.L76
	mov	DWORD PTR -116[rbp], 0
.L76:
	cmp	DWORD PTR -116[rbp], 0
	jns	.L89
	jmp	.L78
.L88:
	nop
	jmp	.L75
.L89:
	nop
.L75:
	cmp	DWORD PTR -116[rbp], 2
	je	.L79
	cmp	DWORD PTR -116[rbp], 2
	jg	.L60
	cmp	DWORD PTR -116[rbp], 0
	je	.L80
	cmp	DWORD PTR -116[rbp], 1
	je	.L81
	jmp	.L60
.L80:
	lea	rdi, .LC3[rip]
	call	puts@PLT
	jmp	.L60
.L81:
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	rax, QWORD PTR my_tm[rip+8]
	mov	QWORD PTR -72[rbp], rax
	jmp	.L82
.L83:
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -72[rbp]
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR 32[rax]
	mov	QWORD PTR -72[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	free@PLT
.L82:
	cmp	QWORD PTR -72[rbp], 0
	jne	.L83
	mov	QWORD PTR my_tm[rip+8], 0
	jmp	.L60
.L79:
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	rax, QWORD PTR my_tm[rip+8]
	mov	QWORD PTR -72[rbp], rax
	jmp	.L84
.L85:
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -72[rbp]
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR 32[rax]
	mov	QWORD PTR -72[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	free@PLT
.L84:
	cmp	QWORD PTR -72[rbp], 0
	jne	.L85
	mov	QWORD PTR my_tm[rip+8], 0
	nop
.L60:
	lea	rax, -104[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	cmp	eax, -1
	jne	.L86
	nop
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L87
	call	__stack_chk_fail@PLT
.L87:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	tm_execution, .-tm_execution
	.globl	main
	.type	main, @function
main:
.LFB13:
	.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	tm_setup
	mov	eax, 0
	call	tm_execution
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.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	"418631.c"
	.text
	.comm	my_tm,32,4
	.align	2
	.global	consume_stuff
	.syntax unified
	.arm
	.fpu softvfp
	.type	consume_stuff, %function
consume_stuff:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	bl	getchar
	mov	r3, r0
	strb	r3, [fp, #-5]
	b	.L2
.L3:
	bl	getchar
	mov	r3, r0
	strb	r3, [fp, #-5]
.L2:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L3
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	consume_stuff, .-consume_stuff
	.align	2
	.global	ascii_encoder
	.syntax unified
	.arm
	.fpu softvfp
	.type	ascii_encoder, %function
ascii_encoder:
	@ 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]
	ldr	r3, [fp, #-8]
	cmp	r3, #96
	ble	.L5
	ldr	r3, [fp, #-8]
	cmp	r3, #122
	bgt	.L5
	ldr	r3, [fp, #-8]
	sub	r3, r3, #97
	b	.L6
.L5:
	ldr	r3, [fp, #-8]
	cmp	r3, #95
	bne	.L7
	mov	r3, #26
	b	.L6
.L7:
	ldr	r3, [fp, #-8]
	cmp	r3, #64
	ble	.L8
	ldr	r3, [fp, #-8]
	cmp	r3, #90
	bgt	.L8
	ldr	r3, [fp, #-8]
	sub	r3, r3, #38
	b	.L6
.L8:
	ldr	r3, [fp, #-8]
	cmp	r3, #47
	ble	.L9
	ldr	r3, [fp, #-8]
	cmp	r3, #57
	bgt	.L9
	ldr	r3, [fp, #-8]
	add	r3, r3, #5
	b	.L6
.L9:
	mov	r0, #1
	bl	exit
.L6:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	ascii_encoder, .-ascii_encoder
	.align	2
	.global	nondeterministic_move
	.syntax unified
	.arm
	.fpu softvfp
	.type	nondeterministic_move, %function
nondeterministic_move:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r0, #24
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	add	r3, r3, #1
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-8]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, r2
	bl	strcpy
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	add	r3, r3, #1
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-8]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	mov	r1, r3
	mov	r0, r2
	bl	strcpy
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3, #8]	@ zero_extendqisi2
	cmp	r3, #108
	beq	.L11
	cmp	r3, #114
	bne	.L12
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #4]
	cmn	r3, #1
	bne	.L13
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #12]
	cmp	r3, #0
	bne	.L13
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #12]
	ldr	r3, [fp, #-8]
	mov	r2, #108
	strb	r2, [r3, #8]
	b	.L14
.L13:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #12]
	ldr	r2, [fp, #-20]
	ldr	r2, [r2, #4]
	add	r2, r3, r2
	ldr	r3, [fp, #-8]
	str	r2, [r3, #12]
	ldr	r3, [fp, #-16]
	ldrb	r2, [r3, #8]	@ zero_extendqisi2
	ldr	r3, [fp, #-8]
	strb	r2, [r3, #8]
.L14:
	ldr	r3, [fp, #-8]
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #12]
	add	r3, r2, r3
	ldr	r2, [fp, #-20]
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-20]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-8]
	str	r2, [r3, #16]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #20]
	b	.L12
.L11:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #4]
	cmp	r3, #1
	bne	.L15
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #12]
	cmp	r3, #0
	bne	.L15
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #12]
	ldr	r3, [fp, #-8]
	mov	r2, #114
	strb	r2, [r3, #8]
	b	.L16
.L15:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #12]
	ldr	r2, [fp, #-20]
	ldr	r2, [r2, #4]
	sub	r2, r3, r2
	ldr	r3, [fp, #-8]
	str	r2, [r3, #12]
	ldr	r3, [fp, #-16]
	ldrb	r2, [r3, #8]	@ zero_extendqisi2
	ldr	r3, [fp, #-8]
	strb	r2, [r3, #8]
.L16:
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #12]
	add	r3, r2, r3
	ldr	r2, [fp, #-20]
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-20]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-8]
	str	r2, [r3, #16]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #20]
	nop
.L12:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	nondeterministic_move, .-nondeterministic_move
	.align	2
	.global	deterministic_move
	.syntax unified
	.arm
	.fpu softvfp
	.type	deterministic_move, %function
deterministic_move:
	@ 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]
	ldrb	r3, [r3, #8]	@ zero_extendqisi2
	cmp	r3, #108
	beq	.L19
	cmp	r3, #114
	bne	.L20
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #4]
	cmn	r3, #1
	bne	.L21
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
	cmp	r3, #0
	bne	.L21
	ldr	r3, [fp, #-8]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
	add	r3, r2, r3
	ldr	r2, [fp, #-12]
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #12]
	ldr	r3, [fp, #-8]
	mov	r2, #108
	strb	r2, [r3, #8]
	b	.L22
.L21:
	ldr	r3, [fp, #-8]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
	add	r3, r2, r3
	ldr	r2, [fp, #-12]
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
	ldr	r2, [fp, #-12]
	ldr	r2, [r2, #4]
	add	r2, r3, r2
	ldr	r3, [fp, #-8]
	str	r2, [r3, #12]
.L22:
	ldr	r3, [fp, #-12]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-8]
	str	r2, [r3, #16]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #20]
	b	.L20
.L19:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #4]
	cmp	r3, #1
	bne	.L23
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
	cmp	r3, #0
	bne	.L23
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
	add	r3, r2, r3
	ldr	r2, [fp, #-12]
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #12]
	ldr	r3, [fp, #-8]
	mov	r2, #114
	strb	r2, [r3, #8]
	b	.L24
.L23:
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
	add	r3, r2, r3
	ldr	r2, [fp, #-12]
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
	ldr	r2, [fp, #-12]
	ldr	r2, [r2, #4]
	sub	r2, r3, r2
	ldr	r3, [fp, #-8]
	str	r2, [r3, #12]
.L24:
	ldr	r3, [fp, #-12]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-8]
	str	r2, [r3, #16]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #20]
	nop
.L20:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	deterministic_move, .-deterministic_move
	.align	2
	.global	enqueue
	.syntax unified
	.arm
	.fpu softvfp
	.type	enqueue, %function
enqueue:
	@ 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]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L27
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-20]
	b	.L28
.L27:
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #20]
.L28:
	ldr	r3, [fp, #-20]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	enqueue, .-enqueue
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d %c %c %c %d \000"
	.align	2
.LC1:
	.ascii	"%d%*c\000"
	.align	2
.LC2:
	.ascii	"%lu%*c\012\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	tm_setup
	.syntax unified
	.arm
	.fpu softvfp
	.type	tm_setup, %function
tm_setup:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #76
	ldr	r3, .L59
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	bl	consume_stuff
	mov	r3, #0
	str	r3, [fp, #-56]
	mov	r0, #4
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L59+4
	str	r2, [r3]
	b	.L31
.L46:
	ldr	r3, [fp, #-68]
	ldr	r2, [fp, #-56]
	cmp	r2, r3
	bgt	.L32
	ldr	r3, .L59+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-68]
	add	r3, r3, #1
	lsl	r3, r3, #2
	mov	r1, r3
	mov	r0, r2
	bl	realloc
	mov	r3, r0
	ldr	r2, .L59+4
	str	r3, [r2]
	ldr	r3, [fp, #-56]
	str	r3, [fp, #-52]
	b	.L33
.L36:
	ldr	r3, .L59+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #2
	add	r4, r2, r3
	mov	r0, #252
	bl	malloc
	mov	r3, r0
	str	r3, [r4]
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L34
.L35:
	ldr	r3, .L59+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L34:
	ldr	r3, [fp, #-48]
	cmp	r3, #62
	ble	.L35
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L33:
	ldr	r3, [fp, #-68]
	ldr	r2, [fp, #-52]
	cmp	r2, r3
	ble	.L36
	ldr	r3, [fp, #-68]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L32:
	ldr	r3, .L59+4
	ldr	r2, [r3, #20]
	ldr	r3, [fp, #-68]
	cmp	r2, r3
	bge	.L37
	ldr	r3, [fp, #-68]
	ldr	r2, .L59+4
	str	r3, [r2, #20]
.L37:
	ldr	r3, .L59+4
	ldr	r2, [r3, #20]
	ldr	r3, [fp, #-64]
	cmp	r2, r3
	bge	.L38
	ldr	r3, [fp, #-64]
	ldr	r2, .L59+4
	str	r3, [r2, #20]
.L38:
	mov	r0, #16
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-24]
	ldrb	r3, [fp, #-71]	@ zero_extendqisi2
	mov	r0, r3
	bl	ascii_encoder
	str	r0, [fp, #-20]
	ldr	r3, .L59+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-68]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L39
	ldr	r3, .L59+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-68]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-44]
	b	.L40
.L41:
	ldr	r3, [fp, #-44]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-44]
.L40:
	ldr	r3, [fp, #-44]
	ldr	r3, [r3, #12]
	cmp	r3, #0
	bne	.L41
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-24]
	str	r2, [r3, #12]
	b	.L42
.L39:
	ldr	r3, .L59+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-68]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [fp, #-24]
	str	r2, [r3]
.L42:
	ldrb	r2, [fp, #-70]	@ zero_extendqisi2
	ldr	r3, [fp, #-24]
	strb	r2, [r3]
	ldrb	r3, [fp, #-69]	@ zero_extendqisi2
	cmp	r3, #83
	beq	.L43
	cmp	r3, #83
	bgt	.L44
	cmp	r3, #76
	beq	.L45
	cmp	r3, #82
	bne	.L44
	ldr	r3, [fp, #-24]
	mov	r2, #1
	str	r2, [r3, #4]
	b	.L44
.L45:
	ldr	r3, [fp, #-24]
	mvn	r2, #0
	str	r2, [r3, #4]
	b	.L44
.L43:
	ldr	r3, [fp, #-24]
	mov	r2, #0
	str	r2, [r3, #4]
	nop
.L44:
	ldr	r2, [fp, #-64]
	ldr	r3, [fp, #-24]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-24]
	mov	r2, #0
	str	r2, [r3, #12]
.L31:
	sub	r0, fp, #70
	sub	r2, fp, #71
	sub	r1, fp, #68
	sub	r3, fp, #64
	str	r3, [sp, #4]
	sub	r3, fp, #69
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, .L59+8
	bl	__isoc99_scanf
	mov	r3, r0
	cmp	r3, #0
	movgt	r3, #1
	movle	r3, #0
	and	r3, r3, #255
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L46
	ldr	r3, [fp, #-56]
	sub	r3, r3, #1
	ldr	r2, .L59+4
	str	r3, [r2, #24]
	ldr	r3, .L59+4
	ldr	r2, [r3]
	ldr	r3, .L59+4
	ldr	r3, [r3, #20]
	add	r3, r3, #1
	lsl	r3, r3, #2
	mov	r1, r3
	mov	r0, r2
	bl	realloc
	mov	r3, r0
	ldr	r2, .L59+4
	str	r3, [r2]
	ldr	r3, .L59+4
	ldr	r3, [r3, #24]
	add	r3, r3, #1
	str	r3, [fp, #-40]
	b	.L47
.L50:
	ldr	r3, .L59+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #2
	add	r4, r2, r3
	mov	r0, #252
	bl	malloc
	mov	r3, r0
	str	r3, [r4]
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L48
.L49:
	ldr	r3, .L59+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L48:
	ldr	r3, [fp, #-36]
	cmp	r3, #62
	ble	.L49
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L47:
	ldr	r3, .L59+4
	ldr	r3, [r3, #20]
	ldr	r2, [fp, #-40]
	cmp	r2, r3
	ble	.L50
	bl	consume_stuff
	mov	r3, #0
	str	r3, [fp, #-56]
	mov	r0, #1
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L59+4
	str	r2, [r3, #8]
	b	.L51
.L55:
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #-56]
	cmp	r2, r3
	bgt	.L52
	ldr	r3, .L59+4
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	mov	r1, r3
	mov	r0, r2
	bl	realloc
	mov	r3, r0
	ldr	r2, .L59+4
	str	r3, [r2, #8]
	ldr	r3, [fp, #-56]
	str	r3, [fp, #-32]
	b	.L53
.L54:
	ldr	r3, .L59+4
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	mov	r2, #110
	strb	r2, [r3]
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L53:
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	blt	.L54
	ldr	r3, [fp, #-60]
	ldr	r2, .L59+4
	str	r3, [r2, #28]
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L52:
	ldr	r3, .L59+4
	ldr	r3, [r3, #8]
	ldr	r2, [fp, #-60]
	add	r3, r3, r2
	mov	r2, #121
	strb	r2, [r3]
.L51:
	sub	r3, fp, #60
	mov	r1, r3
	ldr	r0, .L59+12
	bl	__isoc99_scanf
	mov	r3, r0
	cmp	r3, #0
	movgt	r3, #1
	movle	r3, #0
	and	r3, r3, #255
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L55
	ldr	r3, [fp, #-56]
	sub	r3, r3, #1
	ldr	r2, .L59+4
	str	r3, [r2, #28]
	ldr	r3, .L59+4
	ldr	r2, [r3, #8]
	ldr	r3, .L59+4
	ldr	r3, [r3, #20]
	add	r3, r3, #1
	mov	r1, r3
	mov	r0, r2
	bl	realloc
	mov	r3, r0
	ldr	r2, .L59+4
	str	r3, [r2, #8]
	ldr	r3, .L59+4
	ldr	r3, [r3, #28]
	add	r3, r3, #1
	str	r3, [fp, #-40]
	b	.L56
.L57:
	ldr	r3, .L59+4
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-40]
	add	r3, r2, r3
	mov	r2, #110
	strb	r2, [r3]
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L56:
	ldr	r3, .L59+4
	ldr	r3, [r3, #20]
	ldr	r2, [fp, #-40]
	cmp	r2, r3
	ble	.L57
	bl	consume_stuff
	ldr	r1, .L59+16
	ldr	r0, .L59+20
	bl	__isoc99_scanf
	bl	consume_stuff
	nop
	ldr	r3, .L59
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L58
	bl	__stack_chk_fail
.L58:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L60:
	.align	2
.L59:
	.word	.LC3
	.word	my_tm
	.word	.LC0
	.word	.LC1
	.word	my_tm+12
	.word	.LC2
	.size	tm_setup, .-tm_setup
	.section	.rodata
	.align	2
.LC4:
	.ascii	"0\000"
	.align	2
.LC5:
	.ascii	"1\000"
	.align	2
.LC6:
	.ascii	"U\000"
	.align	2
.LC7:
	.ascii	"%ms\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	tm_execution
	.syntax unified
	.arm
	.fpu softvfp
	.type	tm_execution, %function
tm_execution:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #68
	ldr	r3, .L92
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-76]
	mov	r3, #64
	str	r3, [fp, #-72]
	mov	r3, #64
	str	r3, [fp, #-68]
	b	.L62
.L88:
	mov	r3, #0
	str	r3, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-72]
	add	r3, r3, #1
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-72]
	mov	r2, r3
	mov	r1, #95
	ldr	r0, [fp, #-36]
	bl	memset
	ldr	r3, [fp, #-72]
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-68]
	add	r3, r3, #1
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-68]
	mov	r2, r3
	mov	r1, #95
	ldr	r0, [fp, #-32]
	bl	memset
	ldr	r3, [fp, #-68]
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	mov	r0, #24
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L92+4
	str	r2, [r3, #4]
	ldr	r3, [fp, #-76]
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-72]
	add	r3, r2, r3
	add	r3, r3, #1
	ldr	r2, .L92+4
	ldr	r4, [r2, #4]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, .L92+4
	ldr	r3, [r3, #4]
	ldr	r3, [r3]
	ldr	r2, [fp, #-76]
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	ldr	r3, .L92+4
	ldr	r3, [r3, #4]
	ldr	r3, [r3]
	ldr	r1, [fp, #-36]
	mov	r0, r3
	bl	strcat
	ldr	r3, [fp, #-68]
	add	r3, r3, #1
	mov	r2, r3
	ldr	r3, .L92+4
	ldr	r4, [r3, #4]
	mov	r0, r2
	bl	malloc
	mov	r3, r0
	str	r3, [r4, #4]
	ldr	r3, .L92+4
	ldr	r3, [r3, #4]
	ldr	r3, [r3, #4]
	ldr	r1, [fp, #-32]
	mov	r0, r3
	bl	strcpy
	ldr	r3, [fp, #-76]
	mov	r0, r3
	bl	free
	ldr	r0, [fp, #-36]
	bl	free
	ldr	r0, [fp, #-32]
	bl	free
	ldr	r3, .L92+4
	ldr	r3, [r3, #4]
	mov	r2, #0
	str	r2, [r3, #12]
	ldr	r3, .L92+4
	ldr	r3, [r3, #4]
	mov	r2, #0
	str	r2, [r3, #16]
	ldr	r3, .L92+4
	ldr	r3, [r3, #4]
	mov	r2, #114
	strb	r2, [r3, #8]
	ldr	r3, .L92+4
	ldr	r3, [r3, #4]
	mov	r2, #0
	str	r2, [r3, #20]
	mvn	r3, #0
	str	r3, [fp, #-64]
	ldr	r3, .L92+4
	mov	r2, #0
	str	r2, [r3, #16]
.L80:
	ldr	r3, .L92+4
	ldr	r3, [r3, #4]
	str	r3, [fp, #-60]
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L63
.L75:
	ldr	r3, [fp, #-60]
	ldrb	r3, [r3, #8]	@ zero_extendqisi2
	cmp	r3, #108
	beq	.L64
	cmp	r3, #114
	bne	.L65
	ldr	r3, [fp, #-60]
	ldr	r2, [r3]
	ldr	r3, [fp, #-60]
	ldr	r3, [r3, #12]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L66
	ldr	r3, [fp, #-60]
	ldr	r4, [r3]
	ldr	r3, [fp, #-60]
	ldr	r3, [r3]
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-72]
	add	r3, r2, r3
	add	r3, r3, #1
	mov	r1, r3
	mov	r0, r4
	bl	realloc
	mov	r2, r0
	ldr	r3, [fp, #-60]
	str	r2, [r3]
	ldr	r3, [fp, #-72]
	add	r3, r3, #1
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-72]
	mov	r2, r3
	mov	r1, #95
	ldr	r0, [fp, #-36]
	bl	memset
	ldr	r3, [fp, #-72]
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-60]
	ldr	r3, [r3]
	ldr	r1, [fp, #-36]
	mov	r0, r3
	bl	strcat
	ldr	r0, [fp, #-36]
	bl	free
	ldr	r3, [fp, #-72]
	add	r3, r3, #64
	str	r3, [fp, #-72]
.L66:
	ldr	r3, .L92+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-60]
	ldr	r3, [r3, #16]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r4, [r3]
	ldr	r3, [fp, #-60]
	ldr	r2, [r3]
	ldr	r3, [fp, #-60]
	ldr	r3, [r3, #12]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	ascii_encoder
	mov	r3, r0
	lsl	r3, r3, #2
	add	r3, r4, r3
	ldr	r3, [r3]
	str	r3, [fp, #-52]
	b	.L65
.L64:
	ldr	r3, [fp, #-60]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-60]
	ldr	r3, [r3, #12]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L67
	ldr	r3, [fp, #-60]
	ldr	r4, [r3, #4]
	ldr	r3, [fp, #-60]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-68]
	add	r3, r2, r3
	add	r3, r3, #1
	mov	r1, r3
	mov	r0, r4
	bl	realloc
	mov	r2, r0
	ldr	r3, [fp, #-60]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-68]
	add	r3, r3, #1
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-68]
	mov	r2, r3
	mov	r1, #95
	ldr	r0, [fp, #-32]
	bl	memset
	ldr	r3, [fp, #-68]
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-60]
	ldr	r3, [r3, #4]
	ldr	r1, [fp, #-32]
	mov	r0, r3
	bl	strcat
	ldr	r0, [fp, #-32]
	bl	free
	ldr	r3, [fp, #-68]
	add	r3, r3, #64
	str	r3, [fp, #-68]
.L67:
	ldr	r3, .L92+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-60]
	ldr	r3, [r3, #16]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r4, [r3]
	ldr	r3, [fp, #-60]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-60]
	ldr	r3, [r3, #12]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	ascii_encoder
	mov	r3, r0
	lsl	r3, r3, #2
	add	r3, r4, r3
	ldr	r3, [r3]
	str	r3, [fp, #-52]
	nop
.L65:
	ldr	r3, [fp, #-60]
	ldr	r3, [r3, #20]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	bne	.L68
	ldr	r3, .L92+4
	ldr	r3, [r3, #8]
	ldr	r2, [fp, #-60]
	ldr	r2, [r2, #16]
	add	r3, r3, r2
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #121
	bne	.L69
	mov	r3, #1
	str	r3, [fp, #-64]
	b	.L70
.L69:
	ldr	r3, [fp, #-60]
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-60]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	free
	ldr	r0, [fp, #-60]
	bl	free
	ldr	r2, .L92+4
	ldr	r3, [fp, #-28]
	str	r3, [r2, #4]
	b	.L71
.L68:
	ldr	r3, .L92+4
	ldr	r2, [r3, #16]
	ldr	r3, .L92+4
	ldr	r3, [r3, #12]
	cmp	r2, r3
	bcs	.L72
	b	.L73
.L74:
	ldr	r1, [fp, #-52]
	ldr	r0, [fp, #-60]
	bl	nondeterministic_move
	mov	r3, r0
	ldr	r1, [fp, #-56]
	mov	r0, r3
	bl	enqueue
	str	r0, [fp, #-56]
	ldr	r3, [fp, #-52]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-52]
.L73:
	ldr	r3, [fp, #-52]
	ldr	r3, [r3, #12]
	cmp	r3, #0
	bne	.L74
	ldr	r1, [fp, #-52]
	ldr	r0, [fp, #-60]
	bl	deterministic_move
	mov	r3, r0
	ldr	r1, [fp, #-56]
	mov	r0, r3
	bl	enqueue
	str	r0, [fp, #-56]
	b	.L71
.L72:
	mov	r3, #2
	str	r3, [fp, #-64]
	b	.L70
.L71:
	ldr	r3, [fp, #-28]
	str	r3, [fp, #-60]
.L63:
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	bne	.L75
.L70:
	ldr	r3, .L92+4
	ldr	r3, [r3, #16]
	add	r3, r3, #1
	ldr	r2, .L92+4
	str	r3, [r2, #16]
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	bge	.L90
	ldr	r2, .L92+4
	ldr	r3, [fp, #-56]
	str	r3, [r2, #4]
	mov	r3, #0
	str	r3, [fp, #-56]
	ldr	r3, .L92+4
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bne	.L78
	mov	r3, #0
	str	r3, [fp, #-64]
.L78:
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	bge	.L91
	b	.L80
.L90:
	nop
	b	.L77
.L91:
	nop
.L77:
	ldr	r3, [fp, #-64]
	cmp	r3, #2
	beq	.L81
	ldr	r3, [fp, #-64]
	cmp	r3, #2
	bgt	.L62
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	beq	.L82
	ldr	r3, [fp, #-64]
	cmp	r3, #1
	beq	.L83
	b	.L62
.L82:
	ldr	r0, .L92+8
	bl	puts
	b	.L62
.L83:
	ldr	r0, .L92+12
	bl	puts
	ldr	r3, .L92+4
	ldr	r3, [r3, #4]
	str	r3, [fp, #-48]
	b	.L84
.L85:
	ldr	r3, [fp, #-48]
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-48]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #20]
	str	r3, [fp, #-48]
	ldr	r0, [fp, #-20]
	bl	free
.L84:
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	bne	.L85
	ldr	r3, .L92+4
	mov	r2, #0
	str	r2, [r3, #4]
	b	.L62
.L81:
	ldr	r0, .L92+16
	bl	puts
	ldr	r3, .L92+4
	ldr	r3, [r3, #4]
	str	r3, [fp, #-48]
	b	.L86
.L87:
	ldr	r3, [fp, #-48]
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-48]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #20]
	str	r3, [fp, #-48]
	ldr	r0, [fp, #-24]
	bl	free
.L86:
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	bne	.L87
	ldr	r3, .L92+4
	mov	r2, #0
	str	r2, [r3, #4]
	nop
.L62:
	sub	r3, fp, #76
	mov	r1, r3
	ldr	r0, .L92+20
	bl	__isoc99_scanf
	mov	r3, r0
	cmn	r3, #1
	bne	.L88
	nop
	ldr	r3, .L92
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L89
	bl	__stack_chk_fail
.L89:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L93:
	.align	2
.L92:
	.word	.LC8
	.word	my_tm
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	tm_execution, .-tm_execution
	.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	tm_setup
	bl	tm_execution
	mov	r3, #0
	mov	r0, r3
	pop	{fp, pc}
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
