	.file	"315534.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%c"
	.text
	.globl	readin
	.type	readin, @function
readin:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	DWORD PTR -8[rbp], 0
	jmp	.L2
.L13:
	cmp	DWORD PTR -8[rbp], 0
	je	.L3
	mov	DWORD PTR -4[rbp], 0
	jmp	.L4
.L6:
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	cmp	al, 32
	jne	.L5
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, DWORD PTR -8[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR -4[rbp]
	mov	DWORD PTR [rax], edx
.L5:
	add	DWORD PTR -4[rbp], 1
.L4:
	cmp	DWORD PTR -4[rbp], 4
	jle	.L6
	jmp	.L7
.L3:
	mov	DWORD PTR -4[rbp], 1
	jmp	.L8
.L10:
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	cmp	al, 32
	jne	.L9
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, DWORD PTR -8[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR -4[rbp]
	mov	DWORD PTR [rax], edx
.L9:
	add	DWORD PTR -4[rbp], 1
.L8:
	cmp	DWORD PTR -4[rbp], 4
	jle	.L10
.L7:
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR 4[rax]
	cmp	al, 10
	jne	.L11
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	BYTE PTR 4[rax], 32
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, DWORD PTR -8[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR [rax], 4
	jmp	.L12
.L11:
	call	getchar@PLT
.L12:
	add	DWORD PTR -8[rbp], 1
.L2:
	cmp	DWORD PTR -8[rbp], 4
	jle	.L13
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	readin, .-readin
	.globl	move
	.type	move, @function
move:
.LFB1:
	.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
	mov	QWORD PTR -40[rbp], rdx
	mov	DWORD PTR -44[rbp], ecx
	mov	DWORD PTR -48[rbp], r8d
	mov	QWORD PTR -56[rbp], r9
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -44[rbp]
	add	eax, edx
	cmp	eax, 4
	jg	.L15
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -44[rbp]
	add	eax, edx
	test	eax, eax
	js	.L15
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -48[rbp]
	add	eax, edx
	test	eax, eax
	js	.L15
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -48[rbp]
	add	eax, edx
	cmp	eax, 4
	jle	.L16
.L15:
	mov	rax, QWORD PTR -56[rbp]
	mov	BYTE PTR [rax], 0
	jmp	.L14
.L16:
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR [rax]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	mov	BYTE PTR -1[rbp], al
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -44[rbp]
	add	eax, edx
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	lea	rdi, [rdx+rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -48[rbp]
	lea	r8d, [rdx+rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR [rax]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	lea	rcx, [rdx+rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, DWORD PTR [rax]
	movsx	rax, r8d
	movzx	edx, BYTE PTR [rdi+rax]
	movsx	rax, esi
	mov	BYTE PTR [rcx+rax], dl
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -44[rbp]
	add	eax, edx
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	lea	rcx, [rdx+rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -48[rbp]
	add	eax, edx
	cdqe
	movzx	edx, BYTE PTR -1[rbp]
	mov	BYTE PTR [rcx+rax], dl
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -44[rbp]
	add	edx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -48[rbp]
	add	edx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR [rax], edx
.L14:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	move, .-move
	.section	.rodata
.LC1:
	.string	"%c%c"
	.text
	.globl	showpuzzle
	.type	showpuzzle, @function
showpuzzle:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -8[rbp], 0
	jmp	.L19
.L24:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L20
.L23:
	cmp	DWORD PTR -4[rbp], 4
	jne	.L21
	mov	ecx, 10
	jmp	.L22
.L21:
	mov	ecx, 32
.L22:
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	movsx	eax, al
	mov	edx, ecx
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L20:
	cmp	DWORD PTR -4[rbp], 4
	jle	.L23
	add	DWORD PTR -8[rbp], 1
.L19:
	cmp	DWORD PTR -8[rbp], 4
	jle	.L24
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	showpuzzle, .-showpuzzle
	.section	.rodata
.LC2:
	.string	"Puzzle #%d:\n"
	.align 8
.LC3:
	.string	"This puzzle has no final configuration."
	.text
	.globl	main
	.type	main, @function
main:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -52[rbp], 0
	jmp	.L26
.L37:
	cmp	DWORD PTR -52[rbp], 0
	je	.L27
	mov	edi, 10
	call	putchar@PLT
.L27:
	add	DWORD PTR -52[rbp], 1
	mov	eax, DWORD PTR -52[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, BYTE PTR -48[rbp]
	cmp	al, 32
	jne	.L28
	mov	DWORD PTR -56[rbp], 0
	mov	eax, DWORD PTR -56[rbp]
	mov	DWORD PTR -60[rbp], eax
.L28:
	lea	rdx, -56[rbp]
	lea	rcx, -60[rbp]
	lea	rax, -48[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	readin
	mov	BYTE PTR -61[rbp], 1
	jmp	.L29
.L35:
	movzx	eax, BYTE PTR -61[rbp]
	test	al, al
	je	.L40
	movzx	eax, BYTE PTR -62[rbp]
	movsx	eax, al
	cmp	eax, 82
	je	.L30
	cmp	eax, 82
	jg	.L31
	cmp	eax, 76
	je	.L32
	cmp	eax, 76
	jg	.L31
	cmp	eax, 66
	je	.L33
	cmp	eax, 66
	jg	.L31
	cmp	eax, 10
	je	.L29
	cmp	eax, 65
	jne	.L31
	lea	rcx, -61[rbp]
	lea	rdx, -56[rbp]
	lea	rsi, -60[rbp]
	lea	rax, -48[rbp]
	mov	r9, rcx
	mov	r8d, 0
	mov	ecx, -1
	mov	rdi, rax
	call	move
	jmp	.L29
.L33:
	lea	rcx, -61[rbp]
	lea	rdx, -56[rbp]
	lea	rsi, -60[rbp]
	lea	rax, -48[rbp]
	mov	r9, rcx
	mov	r8d, 0
	mov	ecx, 1
	mov	rdi, rax
	call	move
	jmp	.L29
.L32:
	lea	rcx, -61[rbp]
	lea	rdx, -56[rbp]
	lea	rsi, -60[rbp]
	lea	rax, -48[rbp]
	mov	r9, rcx
	mov	r8d, -1
	mov	ecx, 0
	mov	rdi, rax
	call	move
	jmp	.L29
.L30:
	lea	rcx, -61[rbp]
	lea	rdx, -56[rbp]
	lea	rsi, -60[rbp]
	lea	rax, -48[rbp]
	mov	r9, rcx
	mov	r8d, 1
	mov	ecx, 0
	mov	rdi, rax
	call	move
	jmp	.L29
.L31:
	mov	BYTE PTR -61[rbp], 0
	jmp	.L29
.L40:
	nop
.L29:
	lea	rax, -62[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	movzx	eax, BYTE PTR -62[rbp]
	cmp	al, 48
	jne	.L35
	call	getchar@PLT
	movzx	eax, BYTE PTR -61[rbp]
	test	al, al
	je	.L36
	lea	rax, -48[rbp]
	mov	rdi, rax
	call	showpuzzle
	jmp	.L26
.L36:
	lea	rdi, .LC3[rip]
	call	puts@PLT
.L26:
	lea	rax, -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	movzx	eax, BYTE PTR -48[rbp]
	cmp	al, 90
	jne	.L37
	mov	eax, 0
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L39
	call	__stack_chk_fail@PLT
.L39:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.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	"315534.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%c\000"
	.text
	.align	2
	.global	readin
	.syntax unified
	.arm
	.fpu softvfp
	.type	readin, %function
readin:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L2
.L13:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L3
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L4
.L6:
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	ldr	r2, [fp, #-16]
	add	r2, r2, r3
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L14
	bl	__isoc99_scanf
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	ldr	r2, [fp, #-16]
	add	r2, r2, r3
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L5
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-12]
	str	r2, [r3]
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-8]
	str	r2, [r3]
.L5:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L4:
	ldr	r3, [fp, #-8]
	cmp	r3, #4
	ble	.L6
	b	.L7
.L3:
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L8
.L10:
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	ldr	r2, [fp, #-16]
	add	r2, r2, r3
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L14
	bl	__isoc99_scanf
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	ldr	r2, [fp, #-16]
	add	r2, r2, r3
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L9
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-12]
	str	r2, [r3]
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-8]
	str	r2, [r3]
.L9:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L8:
	ldr	r3, [fp, #-8]
	cmp	r3, #4
	ble	.L10
.L7:
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3, #4]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L11
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #32
	strb	r2, [r3, #4]
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-12]
	str	r2, [r3]
	ldr	r3, [fp, #-24]
	mov	r2, #4
	str	r2, [r3]
	b	.L12
.L11:
	bl	getchar
.L12:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L2:
	ldr	r3, [fp, #-12]
	cmp	r3, #4
	ble	.L13
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC0
	.size	readin, .-readin
	.align	2
	.global	move
	.syntax unified
	.arm
	.fpu softvfp
	.type	move, %function
move:
	@ args = 8, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-20]
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	cmp	r3, #4
	bgt	.L17
	ldr	r3, [fp, #-20]
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	cmp	r3, #0
	blt	.L17
	ldr	r3, [fp, #-24]
	ldr	r2, [r3]
	ldr	r3, [fp, #4]
	add	r3, r2, r3
	cmp	r3, #0
	blt	.L17
	ldr	r3, [fp, #-24]
	ldr	r2, [r3]
	ldr	r3, [fp, #4]
	add	r3, r2, r3
	cmp	r3, #4
	ble	.L18
.L17:
	ldr	r3, [fp, #8]
	mov	r2, #0
	strb	r2, [r3]
	b	.L16
.L18:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	ldr	r2, [fp, #-16]
	add	r2, r2, r3
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	ldrb	r3, [r2, r3]
	strb	r3, [fp, #-5]
	ldr	r3, [fp, #-20]
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	ldr	r2, [fp, #-16]
	add	r0, r2, r3
	ldr	r3, [fp, #-24]
	ldr	r2, [r3]
	ldr	r3, [fp, #4]
	add	r1, r2, r3
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	ldr	r2, [fp, #-16]
	add	r2, r2, r3
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	ldrb	r1, [r0, r1]	@ zero_extendqisi2
	strb	r1, [r2, r3]
	ldr	r3, [fp, #-20]
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	ldr	r2, [fp, #-16]
	add	r2, r2, r3
	ldr	r3, [fp, #-24]
	ldr	r1, [r3]
	ldr	r3, [fp, #4]
	add	r3, r1, r3
	ldrb	r1, [fp, #-5]
	strb	r1, [r2, r3]
	ldr	r3, [fp, #-20]
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	add	r2, r2, r3
	ldr	r3, [fp, #-20]
	str	r2, [r3]
	ldr	r3, [fp, #-24]
	ldr	r2, [r3]
	ldr	r3, [fp, #4]
	add	r2, r2, r3
	ldr	r3, [fp, #-24]
	str	r2, [r3]
.L16:
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	move, .-move
	.section	.rodata
	.align	2
.LC1:
	.ascii	"%c%c\000"
	.text
	.align	2
	.global	showpuzzle
	.syntax unified
	.arm
	.fpu softvfp
	.type	showpuzzle, %function
showpuzzle:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L21
.L26:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L22
.L25:
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	ldr	r2, [fp, #-16]
	add	r2, r2, r3
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r3, [fp, #-8]
	cmp	r3, #4
	bne	.L23
	mov	r3, #10
	b	.L24
.L23:
	mov	r3, #32
.L24:
	mov	r2, r3
	ldr	r0, .L27
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L22:
	ldr	r3, [fp, #-8]
	cmp	r3, #4
	ble	.L25
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L21:
	ldr	r3, [fp, #-12]
	cmp	r3, #4
	ble	.L26
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L28:
	.align	2
.L27:
	.word	.LC1
	.size	showpuzzle, .-showpuzzle
	.section	.rodata
	.align	2
.LC2:
	.ascii	"Puzzle #%d:\012\000"
	.align	2
.LC3:
	.ascii	"This puzzle has no final configuration.\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	ldr	r3, .L47
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L30
.L43:
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	beq	.L31
	mov	r0, #10
	bl	putchar
.L31:
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
	ldr	r1, [fp, #-40]
	ldr	r0, .L47+4
	bl	printf
	ldrb	r3, [fp, #-36]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L32
	mov	r3, #0
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-44]
	str	r3, [fp, #-48]
.L32:
	sub	r2, fp, #44
	sub	r1, fp, #48
	sub	r3, fp, #36
	mov	r0, r3
	bl	readin
	mov	r3, #1
	strb	r3, [fp, #-49]
	b	.L33
.L41:
	ldrb	r3, [fp, #-49]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L46
	ldrb	r3, [fp, #-50]	@ zero_extendqisi2
	cmp	r3, #10
	beq	.L33
	cmp	r3, #10
	blt	.L35
	cmp	r3, #82
	bgt	.L35
	cmp	r3, #65
	blt	.L35
	sub	r3, r3, #65
	cmp	r3, #17
	ldrls	pc, [pc, r3, asl #2]
	b	.L35
.L37:
	.word	.L40
	.word	.L39
	.word	.L35
	.word	.L35
	.word	.L35
	.word	.L35
	.word	.L35
	.word	.L35
	.word	.L35
	.word	.L35
	.word	.L35
	.word	.L38
	.word	.L35
	.word	.L35
	.word	.L35
	.word	.L35
	.word	.L35
	.word	.L36
.L40:
	sub	r2, fp, #44
	sub	r1, fp, #48
	sub	r0, fp, #36
	sub	r3, fp, #49
	str	r3, [sp, #4]
	mov	r3, #0
	str	r3, [sp]
	mvn	r3, #0
	bl	move
	b	.L33
.L39:
	sub	r2, fp, #44
	sub	r1, fp, #48
	sub	r0, fp, #36
	sub	r3, fp, #49
	str	r3, [sp, #4]
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #1
	bl	move
	b	.L33
.L38:
	sub	r2, fp, #44
	sub	r1, fp, #48
	sub	r0, fp, #36
	sub	r3, fp, #49
	str	r3, [sp, #4]
	mvn	r3, #0
	str	r3, [sp]
	mov	r3, #0
	bl	move
	b	.L33
.L36:
	sub	r2, fp, #44
	sub	r1, fp, #48
	sub	r0, fp, #36
	sub	r3, fp, #49
	str	r3, [sp, #4]
	mov	r3, #1
	str	r3, [sp]
	mov	r3, #0
	bl	move
	b	.L33
.L35:
	mov	r3, #0
	strb	r3, [fp, #-49]
	b	.L33
.L46:
	nop
.L33:
	sub	r3, fp, #50
	mov	r1, r3
	ldr	r0, .L47+8
	bl	__isoc99_scanf
	ldrb	r3, [fp, #-50]	@ zero_extendqisi2
	cmp	r3, #48
	bne	.L41
	bl	getchar
	ldrb	r3, [fp, #-49]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L42
	sub	r3, fp, #36
	mov	r0, r3
	bl	showpuzzle
	b	.L30
.L42:
	ldr	r0, .L47+12
	bl	puts
.L30:
	sub	r3, fp, #36
	mov	r1, r3
	ldr	r0, .L47+8
	bl	__isoc99_scanf
	ldrb	r3, [fp, #-36]	@ zero_extendqisi2
	cmp	r3, #90
	bne	.L43
	mov	r3, #0
	ldr	r2, .L47
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L45
	bl	__stack_chk_fail
.L45:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L48:
	.align	2
.L47:
	.word	.LC4
	.word	.LC2
	.word	.LC0
	.word	.LC3
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
