	.file	"896630.c"
	.intel_syntax noprefix
	.text
	.globl	is_solvable
	.type	is_solvable, @function
is_solvable:
.LFB6:
	.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 -40[rbp], rdi
	mov	DWORD PTR -8[rbp], 0
	mov	DWORD PTR -16[rbp], 0
	jmp	.L2
.L16:
	mov	DWORD PTR -12[rbp], 0
	jmp	.L3
.L15:
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	mov	eax, DWORD PTR [rdx+rax*4]
	test	eax, eax
	jne	.L4
	mov	eax, DWORD PTR -16[rbp]
	add	DWORD PTR -8[rbp], eax
	jmp	.L5
.L4:
	cmp	DWORD PTR -12[rbp], 0
	jle	.L6
	mov	eax, DWORD PTR -12[rbp]
	sub	eax, 1
	jmp	.L7
.L6:
	mov	eax, 3
.L7:
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	jg	.L8
	mov	eax, DWORD PTR -16[rbp]
	sub	eax, 1
	jmp	.L9
.L8:
	mov	eax, DWORD PTR -16[rbp]
.L9:
	mov	DWORD PTR -24[rbp], eax
	jmp	.L10
.L14:
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR -20[rbp], eax
	jmp	.L11
.L13:
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	mov	edx, DWORD PTR [rdx+rax*4]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	sal	rax, 4
	mov	rcx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rcx, rax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	mov	eax, DWORD PTR [rcx+rax*4]
	cmp	edx, eax
	jge	.L12
	add	DWORD PTR -8[rbp], 1
.L12:
	sub	DWORD PTR -20[rbp], 1
.L11:
	cmp	DWORD PTR -20[rbp], 0
	jns	.L13
	mov	DWORD PTR -4[rbp], 3
	sub	DWORD PTR -24[rbp], 1
.L10:
	cmp	DWORD PTR -24[rbp], 0
	jns	.L14
.L5:
	add	DWORD PTR -12[rbp], 1
.L3:
	cmp	DWORD PTR -12[rbp], 3
	jle	.L15
	add	DWORD PTR -16[rbp], 1
.L2:
	cmp	DWORD PTR -16[rbp], 3
	jle	.L16
	mov	eax, DWORD PTR -8[rbp]
	and	eax, 1
	test	eax, eax
	je	.L17
	mov	eax, 1
	jmp	.L18
.L17:
	mov	eax, 0
.L18:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	is_solvable, .-is_solvable
	.globl	is_solution
	.type	is_solution, @function
is_solution:
.LFB7:
	.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	DWORD PTR -8[rbp], 0
	jmp	.L20
.L26:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L21
.L25:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	mov	eax, DWORD PTR [rdx+rax*4]
	test	eax, eax
	jne	.L22
	mov	eax, DWORD PTR -8[rbp]
	lea	edx, 0[0+rax*4]
	mov	eax, DWORD PTR -4[rbp]
	add	eax, edx
	cmp	eax, 15
	je	.L23
	mov	eax, 0
	jmp	.L24
.L22:
	mov	eax, DWORD PTR -8[rbp]
	lea	edx, 0[0+rax*4]
	mov	eax, DWORD PTR -4[rbp]
	lea	ecx, [rdx+rax]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	mov	eax, DWORD PTR [rdx+rax*4]
	sub	eax, 1
	cmp	ecx, eax
	je	.L23
	mov	eax, 0
	jmp	.L24
.L23:
	add	DWORD PTR -4[rbp], 1
.L21:
	cmp	DWORD PTR -4[rbp], 3
	jle	.L25
	add	DWORD PTR -8[rbp], 1
.L20:
	cmp	DWORD PTR -8[rbp], 3
	jle	.L26
	mov	eax, 1
.L24:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	is_solution, .-is_solution
	.globl	is_valid
	.type	is_valid, @function
is_valid:
.LFB8:
	.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	DWORD PTR -28[rbp], esi
	mov	QWORD PTR -40[rbp], rdx
	mov	QWORD PTR -48[rbp], rcx
	mov	QWORD PTR -56[rbp], r8
	mov	DWORD PTR -4[rbp], 0
	mov	DWORD PTR -12[rbp], 0
	jmp	.L28
.L32:
	mov	DWORD PTR -8[rbp], 0
	jmp	.L29
.L31:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	mov	eax, DWORD PTR [rdx+rax*4]
	test	eax, eax
	je	.L30
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	mov	eax, DWORD PTR [rdx+rax*4]
	sub	eax, 1
	lea	edx, 3[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 2
	neg	eax
	mov	edx, eax
	mov	eax, DWORD PTR -12[rbp]
	add	eax, edx
	cdq
	xor	eax, edx
	sub	eax, edx
	add	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	mov	eax, DWORD PTR [rdx+rax*4]
	add	eax, 3
	cdq
	shr	edx, 30
	add	eax, edx
	and	eax, 3
	sub	eax, edx
	mov	edx, eax
	mov	eax, DWORD PTR -8[rbp]
	sub	eax, edx
	cdq
	xor	eax, edx
	sub	eax, edx
	add	DWORD PTR -4[rbp], eax
.L30:
	add	DWORD PTR -8[rbp], 1
.L29:
	cmp	DWORD PTR -8[rbp], 3
	jle	.L31
	add	DWORD PTR -12[rbp], 1
.L28:
	cmp	DWORD PTR -12[rbp], 3
	jle	.L32
	cmp	DWORD PTR -4[rbp], 0
	jne	.L33
	mov	eax, 2
	jmp	.L34
.L33:
	cmp	DWORD PTR -28[rbp], 0
	jne	.L35
	mov	eax, 1
	jmp	.L34
.L35:
	mov	edx, DWORD PTR -4[rbp]
	mov	eax, DWORD PTR -28[rbp]
	add	eax, edx
	cmp	eax, 60
	jle	.L36
	mov	eax, 0
	jmp	.L34
.L36:
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR [rax]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR [rdx], eax
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR [rax]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR [rax]
	add	eax, 1
	mov	ecx, eax
	sar	ecx, 31
	shr	ecx, 31
	add	eax, ecx
	and	eax, 1
	sub	eax, ecx
	cdqe
	lea	rcx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rcx
	mov	eax, DWORD PTR [rax]
	cmp	edx, eax
	jle	.L37
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR [rax], edx
	jmp	.L38
.L37:
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR [rax], 0
.L38:
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR [rax]
	add	eax, 1
	cdq
	shr	edx, 31
	add	eax, edx
	and	eax, 1
	sub	eax, edx
	mov	edx, eax
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 2
	jle	.L39
	mov	eax, 0
	jmp	.L34
.L39:
	mov	eax, 1
.L34:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	is_valid, .-is_valid
	.globl	move
	.type	move, @function
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	eax, esi
	mov	QWORD PTR -24[rbp], rdx
	mov	BYTE PTR -12[rbp], al
	cmp	BYTE PTR -12[rbp], 85
	jne	.L41
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 4
	mov	eax, DWORD PTR [rax]
	cdqe
	sal	rax, 4
	lea	rdx, -16[rax]
	mov	rax, QWORD PTR -8[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	edi, DWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 4
	mov	eax, DWORD PTR [rax]
	cdqe
	sal	rax, 4
	mov	rcx, rax
	mov	rax, QWORD PTR -8[rbp]
	add	rcx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, DWORD PTR [rax]
	movsx	rax, edi
	mov	edx, DWORD PTR [rdx+rax*4]
	movsx	rax, esi
	mov	DWORD PTR [rcx+rax*4], edx
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 4
	mov	eax, DWORD PTR [rax]
	cdqe
	sal	rax, 4
	lea	rdx, -16[rax]
	mov	rax, QWORD PTR -8[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	cdqe
	mov	DWORD PTR [rdx+rax*4], 0
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 4
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 4
	sub	edx, 1
	mov	DWORD PTR [rax], edx
	jmp	.L45
.L41:
	cmp	BYTE PTR -12[rbp], 68
	jne	.L43
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 4
	mov	eax, DWORD PTR [rax]
	cdqe
	add	rax, 1
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	edi, DWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 4
	mov	eax, DWORD PTR [rax]
	cdqe
	sal	rax, 4
	mov	rcx, rax
	mov	rax, QWORD PTR -8[rbp]
	add	rcx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, DWORD PTR [rax]
	movsx	rax, edi
	mov	edx, DWORD PTR [rdx+rax*4]
	movsx	rax, esi
	mov	DWORD PTR [rcx+rax*4], edx
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 4
	mov	eax, DWORD PTR [rax]
	cdqe
	add	rax, 1
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	cdqe
	mov	DWORD PTR [rdx+rax*4], 0
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 4
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 4
	add	edx, 1
	mov	DWORD PTR [rax], edx
	jmp	.L45
.L43:
	cmp	BYTE PTR -12[rbp], 76
	jne	.L44
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 4
	mov	eax, DWORD PTR [rax]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edi, -1[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 4
	mov	eax, DWORD PTR [rax]
	cdqe
	sal	rax, 4
	mov	rcx, rax
	mov	rax, QWORD PTR -8[rbp]
	add	rcx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, DWORD PTR [rax]
	movsx	rax, edi
	mov	edx, DWORD PTR [rdx+rax*4]
	movsx	rax, esi
	mov	DWORD PTR [rcx+rax*4], edx
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 4
	mov	eax, DWORD PTR [rax]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	sub	eax, 1
	cdqe
	mov	DWORD PTR [rdx+rax*4], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR [rax], edx
	jmp	.L45
.L44:
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 4
	mov	eax, DWORD PTR [rax]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edi, 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 4
	mov	eax, DWORD PTR [rax]
	cdqe
	sal	rax, 4
	mov	rcx, rax
	mov	rax, QWORD PTR -8[rbp]
	add	rcx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, DWORD PTR [rax]
	movsx	rax, edi
	mov	edx, DWORD PTR [rdx+rax*4]
	movsx	rax, esi
	mov	DWORD PTR [rcx+rax*4], edx
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 4
	mov	eax, DWORD PTR [rax]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	add	eax, 1
	cdqe
	mov	DWORD PTR [rdx+rax*4], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR [rax], edx
.L45:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	move, .-move
	.globl	construct_candidates
	.type	construct_candidates, @function
construct_candidates:
.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 -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	mov	DWORD PTR -28[rbp], ecx
	mov	QWORD PTR -40[rbp], r8
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR [rax], 0
	cmp	DWORD PTR -28[rbp], 0
	je	.L47
	cmp	DWORD PTR -28[rbp], 0
	jle	.L48
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 68
	je	.L48
.L47:
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 4
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jle	.L48
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR [rax]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 85
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR [rax], edx
.L48:
	cmp	DWORD PTR -28[rbp], 0
	je	.L49
	cmp	DWORD PTR -28[rbp], 0
	jle	.L50
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 85
	je	.L50
.L49:
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 4
	mov	eax, DWORD PTR [rax]
	cmp	eax, 2
	jg	.L50
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR [rax]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 68
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR [rax], edx
.L50:
	cmp	DWORD PTR -28[rbp], 0
	je	.L51
	cmp	DWORD PTR -28[rbp], 0
	jle	.L52
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 82
	je	.L52
.L51:
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jle	.L52
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR [rax]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 76
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR [rax], edx
.L52:
	cmp	DWORD PTR -28[rbp], 0
	je	.L53
	cmp	DWORD PTR -28[rbp], 0
	jle	.L55
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 76
	je	.L55
.L53:
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 2
	jg	.L55
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR [rax]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 82
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR [rax], edx
.L55:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	construct_candidates, .-construct_candidates
	.globl	move_back
	.type	move_back, @function
move_back:
.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, 24
	mov	QWORD PTR -8[rbp], rdi
	mov	eax, esi
	mov	QWORD PTR -24[rbp], rdx
	mov	BYTE PTR -12[rbp], al
	cmp	BYTE PTR -12[rbp], 85
	jne	.L57
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 68
	mov	rdi, rax
	call	move
	jmp	.L61
.L57:
	cmp	BYTE PTR -12[rbp], 68
	jne	.L59
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 85
	mov	rdi, rax
	call	move
	jmp	.L61
.L59:
	cmp	BYTE PTR -12[rbp], 82
	jne	.L60
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 76
	mov	rdi, rax
	call	move
	jmp	.L61
.L60:
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 82
	mov	rdi, rax
	call	move
.L61:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	move_back, .-move_back
	.globl	finished
	.bss
	.type	finished, @object
	.size	finished, 1
finished:
	.zero	1
	.globl	solution
	.align 32
	.type	solution, @object
	.size	solution, 61
solution:
	.zero	61
	.text
	.globl	backtrack
	.type	backtrack, @function
backtrack:
.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, 80
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	DWORD PTR -52[rbp], edx
	mov	QWORD PTR -64[rbp], rcx
	mov	DWORD PTR -56[rbp], r8d
	mov	DWORD PTR -68[rbp], r9d
	mov	rax, QWORD PTR 16[rbp]
	mov	QWORD PTR -80[rbp], rax
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, -68[rbp]
	lea	rcx, -56[rbp]
	mov	rdx, QWORD PTR -64[rbp]
	mov	esi, DWORD PTR -52[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	r8, rdi
	mov	rdi, rax
	call	is_valid
	mov	DWORD PTR -16[rbp], eax
	cmp	DWORD PTR -16[rbp], 2
	jne	.L63
	mov	eax, DWORD PTR -52[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	BYTE PTR finished[rip], 1
	jmp	.L62
.L63:
	cmp	DWORD PTR -16[rbp], 1
	jne	.L62
	mov	rdi, QWORD PTR -80[rbp]
	mov	ecx, DWORD PTR -52[rbp]
	mov	rdx, QWORD PTR -48[rbp]
	lea	rsi, -24[rbp]
	lea	rax, -11[rbp]
	mov	r8, rdi
	mov	rdi, rax
	call	construct_candidates
	mov	DWORD PTR -20[rbp], 0
	jmp	.L65
.L68:
	mov	eax, DWORD PTR -52[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -48[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	movzx	eax, BYTE PTR -11[rbp+rax]
	mov	BYTE PTR [rdx], al
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	movzx	eax, BYTE PTR -11[rbp+rax]
	movsx	ecx, al
	mov	rdx, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	move
	mov	r8d, DWORD PTR -68[rbp]
	mov	ecx, DWORD PTR -56[rbp]
	mov	eax, DWORD PTR -52[rbp]
	lea	edi, 1[rax]
	mov	rdx, QWORD PTR -64[rbp]
	mov	rsi, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -40[rbp]
	sub	rsp, 8
	push	QWORD PTR -80[rbp]
	mov	r9d, r8d
	mov	r8d, ecx
	mov	rcx, rdx
	mov	edx, edi
	mov	rdi, rax
	call	backtrack
	add	rsp, 16
	movzx	eax, BYTE PTR finished[rip]
	test	al, al
	jne	.L70
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	movzx	eax, BYTE PTR -11[rbp+rax]
	movsx	ecx, al
	mov	rdx, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	move_back
	add	DWORD PTR -20[rbp], 1
.L65:
	mov	eax, DWORD PTR -24[rbp]
	cmp	DWORD PTR -20[rbp], eax
	jl	.L68
	jmp	.L62
.L70:
	nop
.L62:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L69
	call	__stack_chk_fail@PLT
.L69:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	backtrack, .-backtrack
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"This puzzle is not solvable."
	.text
	.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
	sub	rsp, 112
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -108[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	jmp	.L72
.L81:
	mov	DWORD PTR -104[rbp], 0
	jmp	.L73
.L77:
	mov	DWORD PTR -100[rbp], 0
	jmp	.L74
.L76:
	lea	rdx, -80[rbp]
	mov	eax, DWORD PTR -100[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -104[rbp]
	cdqe
	sal	rax, 2
	add	rax, rcx
	sal	rax, 2
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -100[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -104[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR -80[rbp+rax*4]
	test	eax, eax
	jne	.L75
	mov	eax, DWORD PTR -100[rbp]
	mov	DWORD PTR -88[rbp], eax
	mov	eax, DWORD PTR -104[rbp]
	mov	DWORD PTR -84[rbp], eax
.L75:
	add	DWORD PTR -100[rbp], 1
.L74:
	cmp	DWORD PTR -100[rbp], 3
	jle	.L76
	add	DWORD PTR -104[rbp], 1
.L73:
	cmp	DWORD PTR -104[rbp], 3
	jle	.L77
	mov	BYTE PTR finished[rip], 0
	lea	rax, -80[rbp]
	mov	rdi, rax
	call	is_solvable
	test	eax, eax
	jne	.L78
	lea	rdi, .LC1[rip]
	call	puts@PLT
	jmp	.L79
.L78:
	lea	rdx, -96[rbp]
	lea	rax, -80[rbp]
	sub	rsp, 8
	lea	rcx, -88[rbp]
	push	rcx
	mov	r9d, 0
	mov	r8d, 0
	mov	rcx, rdx
	mov	edx, 0
	lea	rsi, solution[rip]
	mov	rdi, rax
	call	backtrack
	add	rsp, 16
	movzx	eax, BYTE PTR finished[rip]
	test	al, al
	je	.L80
	lea	rdi, solution[rip]
	call	puts@PLT
	jmp	.L79
.L80:
	lea	rdi, .LC1[rip]
	call	puts@PLT
.L79:
	mov	eax, DWORD PTR -108[rbp]
	sub	eax, 1
	mov	DWORD PTR -108[rbp], eax
.L72:
	mov	eax, DWORD PTR -108[rbp]
	test	eax, eax
	jne	.L81
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L83
	call	__stack_chk_fail@PLT
.L83:
	leave
	.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	"896630.c"
	.text
	.align	2
	.global	is_solvable
	.syntax unified
	.arm
	.fpu softvfp
	.type	is_solvable, %function
is_solvable:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #36
	str	r0, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L2
.L16:
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L3
.L15:
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r2, [fp, #-16]
	ldr	r3, [r3, r2, lsl #2]
	cmp	r3, #0
	bne	.L4
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	str	r3, [fp, #-12]
	b	.L5
.L4:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	ble	.L6
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	b	.L7
.L6:
	mov	r3, #3
.L7:
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bgt	.L8
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	b	.L9
.L8:
	ldr	r3, [fp, #-20]
.L9:
	str	r3, [fp, #-28]
	b	.L10
.L14:
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-24]
	b	.L11
.L13:
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r2, [fp, #-16]
	ldr	r2, [r3, r2, lsl #2]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #4
	ldr	r1, [fp, #-32]
	add	r3, r1, r3
	ldr	r1, [fp, #-24]
	ldr	r3, [r3, r1, lsl #2]
	cmp	r2, r3
	bge	.L12
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L12:
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	str	r3, [fp, #-24]
.L11:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bge	.L13
	mov	r3, #3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-28]
	sub	r3, r3, #1
	str	r3, [fp, #-28]
.L10:
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bge	.L14
.L5:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L3:
	ldr	r3, [fp, #-16]
	cmp	r3, #3
	ble	.L15
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L2:
	ldr	r3, [fp, #-20]
	cmp	r3, #3
	ble	.L16
	ldr	r3, [fp, #-12]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L17
	mov	r3, #1
	b	.L18
.L17:
	mov	r3, #0
.L18:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	is_solvable, .-is_solvable
	.align	2
	.global	is_solution
	.syntax unified
	.arm
	.fpu softvfp
	.type	is_solution, %function
is_solution:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L20
.L26:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L21
.L25:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [fp, #-8]
	ldr	r3, [r3, r2, lsl #2]
	cmp	r3, #0
	bne	.L22
	ldr	r3, [fp, #-12]
	lsl	r2, r3, #2
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	cmp	r3, #15
	beq	.L23
	mov	r3, #0
	b	.L24
.L22:
	ldr	r3, [fp, #-12]
	lsl	r2, r3, #2
	ldr	r3, [fp, #-8]
	add	r2, r2, r3
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #4
	ldr	r1, [fp, #-16]
	add	r3, r1, r3
	ldr	r1, [fp, #-8]
	ldr	r3, [r3, r1, lsl #2]
	sub	r3, r3, #1
	cmp	r2, r3
	beq	.L23
	mov	r3, #0
	b	.L24
.L23:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L21:
	ldr	r3, [fp, #-8]
	cmp	r3, #3
	ble	.L25
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L20:
	ldr	r3, [fp, #-12]
	cmp	r3, #3
	ble	.L26
	mov	r3, #1
.L24:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	is_solution, .-is_solution
	.align	2
	.global	is_valid
	.syntax unified
	.arm
	.fpu softvfp
	.type	is_valid, %function
is_valid:
	@ args = 4, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #36
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L28
.L32:
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L29
.L31:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [fp, #-12]
	ldr	r3, [r3, r2, lsl #2]
	cmp	r3, #0
	beq	.L30
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [fp, #-12]
	ldr	r3, [r3, r2, lsl #2]
	sub	r3, r3, #1
	add	r2, r3, #3
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #2
	rsb	r3, r3, #0
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	cmp	r3, #0
	rsblt	r3, r3, #0
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [fp, #-12]
	ldr	r3, [r3, r2, lsl #2]
	add	r3, r3, #3
	rsbs	r2, r3, #0
	and	r3, r3, #3
	and	r2, r2, #3
	rsbpl	r3, r2, #0
	ldr	r2, [fp, #-12]
	sub	r3, r2, r3
	cmp	r3, #0
	rsblt	r3, r3, #0
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	str	r3, [fp, #-8]
.L30:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L29:
	ldr	r3, [fp, #-12]
	cmp	r3, #3
	ble	.L31
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L28:
	ldr	r3, [fp, #-16]
	cmp	r3, #3
	ble	.L32
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L33
	mov	r3, #2
	b	.L34
.L33:
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L35
	mov	r3, #1
	b	.L34
.L35:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	cmp	r3, #60
	ble	.L36
	mov	r3, #0
	b	.L34
.L36:
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r2, [fp, #-8]
	str	r2, [r3]
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	add	r3, r3, #1
	cmp	r3, #0
	and	r3, r3, #1
	rsblt	r3, r3, #0
	lsl	r3, r3, #2
	ldr	r1, [fp, #-32]
	add	r3, r1, r3
	ldr	r3, [r3]
	cmp	r2, r3
	ble	.L37
	ldr	r3, [fp, #4]
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, [fp, #4]
	str	r2, [r3]
	b	.L38
.L37:
	ldr	r3, [fp, #4]
	mov	r2, #0
	str	r2, [r3]
.L38:
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	add	r3, r3, #1
	cmp	r3, #0
	and	r3, r3, #1
	rsblt	r3, r3, #0
	mov	r2, r3
	ldr	r3, [fp, #-36]
	str	r2, [r3]
	ldr	r3, [fp, #4]
	ldr	r3, [r3]
	cmp	r3, #2
	ble	.L39
	mov	r3, #0
	b	.L34
.L39:
	mov	r3, #1
.L34:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	is_valid, .-is_valid
	.align	2
	.global	move
	.syntax unified
	.arm
	.fpu softvfp
	.type	move, %function
move:
	@ 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, #-8]
	mov	r3, r1
	str	r2, [fp, #-16]
	strb	r3, [fp, #-9]
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	cmp	r3, #85
	bne	.L41
	ldr	r3, [fp, #-16]
	add	r3, r3, #4
	ldr	r3, [r3]
	sub	r3, r3, #-268435455
	lsl	r3, r3, #4
	ldr	r2, [fp, #-8]
	add	r1, r2, r3
	ldr	r3, [fp, #-16]
	ldr	r0, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #4
	ldr	r3, [r3]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	ldr	r2, [fp, #-16]
	ldr	r2, [r2]
	ldr	r1, [r1, r0, lsl #2]
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-16]
	add	r3, r3, #4
	ldr	r3, [r3]
	sub	r3, r3, #-268435455
	lsl	r3, r3, #4
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	ldr	r2, [fp, #-16]
	ldr	r2, [r2]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-16]
	add	r3, r3, #4
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #4
	sub	r2, r2, #1
	str	r2, [r3]
	b	.L45
.L41:
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	cmp	r3, #68
	bne	.L43
	ldr	r3, [fp, #-16]
	add	r3, r3, #4
	ldr	r3, [r3]
	add	r3, r3, #1
	lsl	r3, r3, #4
	ldr	r2, [fp, #-8]
	add	r1, r2, r3
	ldr	r3, [fp, #-16]
	ldr	r0, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #4
	ldr	r3, [r3]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	ldr	r2, [fp, #-16]
	ldr	r2, [r2]
	ldr	r1, [r1, r0, lsl #2]
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-16]
	add	r3, r3, #4
	ldr	r3, [r3]
	add	r3, r3, #1
	lsl	r3, r3, #4
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	ldr	r2, [fp, #-16]
	ldr	r2, [r2]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-16]
	add	r3, r3, #4
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #4
	add	r2, r2, #1
	str	r2, [r3]
	b	.L45
.L43:
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	cmp	r3, #76
	bne	.L44
	ldr	r3, [fp, #-16]
	add	r3, r3, #4
	ldr	r3, [r3]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-8]
	add	r1, r2, r3
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	sub	r0, r3, #1
	ldr	r3, [fp, #-16]
	add	r3, r3, #4
	ldr	r3, [r3]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	ldr	r2, [fp, #-16]
	ldr	r2, [r2]
	ldr	r1, [r1, r0, lsl #2]
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-16]
	add	r3, r3, #4
	ldr	r3, [r3]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	ldr	r2, [fp, #-16]
	ldr	r2, [r2]
	sub	r2, r2, #1
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	sub	r2, r3, #1
	ldr	r3, [fp, #-16]
	str	r2, [r3]
	b	.L45
.L44:
	ldr	r3, [fp, #-16]
	add	r3, r3, #4
	ldr	r3, [r3]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-8]
	add	r1, r2, r3
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	add	r0, r3, #1
	ldr	r3, [fp, #-16]
	add	r3, r3, #4
	ldr	r3, [r3]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	ldr	r2, [fp, #-16]
	ldr	r2, [r2]
	ldr	r1, [r1, r0, lsl #2]
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-16]
	add	r3, r3, #4
	ldr	r3, [r3]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	ldr	r2, [fp, #-16]
	ldr	r2, [r2]
	add	r2, r2, #1
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, [fp, #-16]
	str	r2, [r3]
.L45:
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	move, .-move
	.align	2
	.global	construct_candidates
	.syntax unified
	.arm
	.fpu softvfp
	.type	construct_candidates, %function
construct_candidates:
	@ args = 4, 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, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-12]
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L47
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	ble	.L48
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #68
	beq	.L48
.L47:
	ldr	r3, [fp, #4]
	add	r3, r3, #4
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L48
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #-8]
	add	r3, r3, r2
	mov	r2, #85
	strb	r2, [r3]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, [fp, #-12]
	str	r2, [r3]
.L48:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L49
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	ble	.L50
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #85
	beq	.L50
.L49:
	ldr	r3, [fp, #4]
	add	r3, r3, #4
	ldr	r3, [r3]
	cmp	r3, #2
	bgt	.L50
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #-8]
	add	r3, r3, r2
	mov	r2, #68
	strb	r2, [r3]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, [fp, #-12]
	str	r2, [r3]
.L50:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L51
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	ble	.L52
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #82
	beq	.L52
.L51:
	ldr	r3, [fp, #4]
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L52
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #-8]
	add	r3, r3, r2
	mov	r2, #76
	strb	r2, [r3]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, [fp, #-12]
	str	r2, [r3]
.L52:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L53
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	ble	.L55
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #76
	beq	.L55
.L53:
	ldr	r3, [fp, #4]
	ldr	r3, [r3]
	cmp	r3, #2
	bgt	.L55
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #-8]
	add	r3, r3, r2
	mov	r2, #82
	strb	r2, [r3]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, [fp, #-12]
	str	r2, [r3]
.L55:
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	construct_candidates, .-construct_candidates
	.align	2
	.global	move_back
	.syntax unified
	.arm
	.fpu softvfp
	.type	move_back, %function
move_back:
	@ 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, #-8]
	mov	r3, r1
	str	r2, [fp, #-16]
	strb	r3, [fp, #-9]
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	cmp	r3, #85
	bne	.L57
	ldr	r2, [fp, #-16]
	mov	r1, #68
	ldr	r0, [fp, #-8]
	bl	move
	b	.L61
.L57:
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	cmp	r3, #68
	bne	.L59
	ldr	r2, [fp, #-16]
	mov	r1, #85
	ldr	r0, [fp, #-8]
	bl	move
	b	.L61
.L59:
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	cmp	r3, #82
	bne	.L60
	ldr	r2, [fp, #-16]
	mov	r1, #76
	ldr	r0, [fp, #-8]
	bl	move
	b	.L61
.L60:
	ldr	r2, [fp, #-16]
	mov	r1, #82
	ldr	r0, [fp, #-8]
	bl	move
.L61:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	move_back, .-move_back
	.comm	finished,1,1
	.comm	solution,61,4
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	backtrack
	.syntax unified
	.arm
	.fpu softvfp
	.type	backtrack, %function
backtrack:
	@ args = 12, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #64
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	str	r3, [fp, #-44]
	ldr	r3, [fp, #12]
	str	r3, [fp, #-48]
	ldr	r3, .L71
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	add	r3, fp, #8
	str	r3, [sp]
	add	r3, fp, #4
	ldr	r2, [fp, #-44]
	ldr	r1, [fp, #-40]
	ldr	r0, [fp, #-32]
	bl	is_valid
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #2
	bne	.L63
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, .L71+4
	mov	r2, #1
	strb	r2, [r3]
	b	.L62
.L63:
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	bne	.L62
	sub	r1, fp, #24
	sub	r0, fp, #12
	ldr	r3, [fp, #-48]
	str	r3, [sp]
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-36]
	bl	construct_candidates
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L65
.L68:
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	sub	r1, fp, #12
	ldr	r2, [fp, #-20]
	add	r2, r1, r2
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	sub	r2, fp, #12
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldr	r2, [fp, #-48]
	mov	r1, r3
	ldr	r0, [fp, #-32]
	bl	move
	ldr	r3, [fp, #-40]
	add	r0, r3, #1
	ldr	r3, [fp, #4]
	ldr	r2, [fp, #8]
	ldr	r1, [fp, #-48]
	str	r1, [sp, #8]
	str	r2, [sp, #4]
	str	r3, [sp]
	ldr	r3, [fp, #-44]
	mov	r2, r0
	ldr	r1, [fp, #-36]
	ldr	r0, [fp, #-32]
	bl	backtrack
	ldr	r3, .L71+4
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L70
	sub	r2, fp, #12
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldr	r2, [fp, #-48]
	mov	r1, r3
	ldr	r0, [fp, #-32]
	bl	move_back
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L65:
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	blt	.L68
	b	.L62
.L70:
	nop
.L62:
	ldr	r3, .L71
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L69
	bl	__stack_chk_fail
.L69:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L72:
	.align	2
.L71:
	.word	.LC0
	.word	finished
	.size	backtrack, .-backtrack
	.section	.rodata
	.align	2
.LC1:
	.ascii	"%d\000"
	.align	2
.LC2:
	.ascii	"This puzzle is not solvable.\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 96
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #112
	ldr	r3, .L86
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #100
	mov	r1, r3
	ldr	r0, .L86+4
	bl	__isoc99_scanf
	b	.L74
.L83:
	mov	r3, #0
	str	r3, [fp, #-96]
	b	.L75
.L79:
	mov	r3, #0
	str	r3, [fp, #-92]
	b	.L76
.L78:
	sub	r2, fp, #72
	ldr	r3, [fp, #-96]
	lsl	r1, r3, #2
	ldr	r3, [fp, #-92]
	add	r3, r1, r3
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L86+4
	bl	__isoc99_scanf
	ldr	r3, [fp, #-96]
	lsl	r2, r3, #2
	ldr	r3, [fp, #-92]
	add	r3, r2, r3
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-68]
	cmp	r3, #0
	bne	.L77
	ldr	r3, [fp, #-92]
	str	r3, [fp, #-80]
	ldr	r3, [fp, #-96]
	str	r3, [fp, #-76]
.L77:
	ldr	r3, [fp, #-92]
	add	r3, r3, #1
	str	r3, [fp, #-92]
.L76:
	ldr	r3, [fp, #-92]
	cmp	r3, #3
	ble	.L78
	ldr	r3, [fp, #-96]
	add	r3, r3, #1
	str	r3, [fp, #-96]
.L75:
	ldr	r3, [fp, #-96]
	cmp	r3, #3
	ble	.L79
	ldr	r3, .L86+8
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #72
	mov	r0, r3
	bl	is_solvable
	mov	r3, r0
	cmp	r3, #0
	bne	.L80
	ldr	r0, .L86+12
	bl	puts
	b	.L81
.L80:
	sub	r2, fp, #88
	sub	r0, fp, #72
	sub	r3, fp, #80
	str	r3, [sp, #8]
	mov	r3, #0
	str	r3, [sp, #4]
	mov	r3, #0
	str	r3, [sp]
	mov	r3, r2
	mov	r2, #0
	ldr	r1, .L86+16
	bl	backtrack
	ldr	r3, .L86+8
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L82
	ldr	r0, .L86+16
	bl	puts
	b	.L81
.L82:
	ldr	r0, .L86+12
	bl	puts
.L81:
	ldr	r3, [fp, #-100]
	sub	r3, r3, #1
	str	r3, [fp, #-100]
.L74:
	ldr	r3, [fp, #-100]
	cmp	r3, #0
	bne	.L83
	mov	r3, #0
	ldr	r2, .L86
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L85
	bl	__stack_chk_fail
.L85:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L87:
	.align	2
.L86:
	.word	.LC3
	.word	.LC1
	.word	finished
	.word	.LC2
	.word	solution
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
