	.file	"810098.c"
	.intel_syntax noprefix
	.text
	.globl	board
	.bss
	.align 32
	.type	board, @object
	.size	board, 324
board:
	.zero	324
	.globl	d
	.align 4
	.type	d, @object
	.size	d, 4
d:
	.zero	4
	.section	.rodata
.LC0:
	.string	"Board dimension: "
.LC1:
	.string	"You win!!!"
.LC2:
	.string	"Tile to move: "
.LC3:
	.string	"\nIllegal move.\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
.L2:
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	call	get_int
	mov	DWORD PTR d[rip], eax
	mov	eax, DWORD PTR d[rip]
	cmp	eax, 2
	jle	.L2
	mov	eax, DWORD PTR d[rip]
	cmp	eax, 9
	jg	.L2
	call	init
.L7:
	call	draw
	call	won
	test	eax, eax
	je	.L3
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L4
.L3:
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	call	get_int
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	je	.L9
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	move
	test	eax, eax
	jne	.L7
	lea	rdi, .LC3[rip]
	call	puts@PLT
	jmp	.L7
.L9:
	nop
.L4:
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	init
	.type	init, @function
init:
.LFB1:
	.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	edx, DWORD PTR d[rip]
	mov	eax, DWORD PTR d[rip]
	imul	eax, edx
	sub	eax, 1
	mov	DWORD PTR -12[rbp], eax
	mov	DWORD PTR -8[rbp], 0
	jmp	.L11
.L15:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L12
.L14:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	add	rax, rcx
	lea	rcx, 0[0+rax*4]
	lea	rdx, board[rip]
	mov	eax, DWORD PTR -12[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	sub	DWORD PTR -12[rbp], 1
	mov	eax, DWORD PTR d[rip]
	sub	eax, 1
	cmp	DWORD PTR -8[rbp], eax
	jne	.L13
	mov	eax, DWORD PTR d[rip]
	sub	eax, 1
	cmp	DWORD PTR -4[rbp], eax
	jne	.L13
	mov	eax, DWORD PTR d[rip]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR d[rip]
	sub	eax, 1
	movsx	rcx, eax
	movsx	rdx, edx
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	lea	rax, board[rip]
	mov	DWORD PTR [rdx+rax], 95
	mov	eax, DWORD PTR d[rip]
	and	eax, 1
	test	eax, eax
	jne	.L13
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, 2
	movsx	rcx, eax
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	lea	rax, board[rip]
	add	rdx, rax
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, 1
	movsx	rsi, eax
	mov	eax, DWORD PTR -8[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 3
	add	rax, rcx
	add	rax, rsi
	lea	rcx, 0[0+rax*4]
	lea	rax, board[rip]
	add	rax, rcx
	mov	rsi, rdx
	mov	rdi, rax
	call	swap
.L13:
	add	DWORD PTR -4[rbp], 1
.L12:
	mov	eax, DWORD PTR d[rip]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L14
	add	DWORD PTR -8[rbp], 1
.L11:
	mov	eax, DWORD PTR d[rip]
	cmp	DWORD PTR -8[rbp], eax
	jl	.L15
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	init, .-init
	.section	.rodata
.LC4:
	.string	"    %c"
.LC5:
	.string	"%5d"
.LC6:
	.string	"\n"
	.text
	.globl	draw
	.type	draw, @function
draw:
.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, 16
	mov	DWORD PTR -8[rbp], 0
	jmp	.L17
.L22:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L18
.L21:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	lea	rax, board[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, 95
	jne	.L19
	mov	eax, DWORD PTR -4[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	lea	rax, board[rip]
	mov	eax, DWORD PTR [rdx+rax]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L20
.L19:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	lea	rax, board[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
.L20:
	add	DWORD PTR -4[rbp], 1
.L18:
	mov	eax, DWORD PTR d[rip]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L21
	lea	rdi, .LC6[rip]
	call	puts@PLT
	add	DWORD PTR -8[rbp], 1
.L17:
	mov	eax, DWORD PTR d[rip]
	cmp	DWORD PTR -8[rbp], eax
	jl	.L22
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	draw, .-draw
	.globl	move
	.type	move, @function
move:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -16[rbp], 0
	jmp	.L24
.L37:
	mov	DWORD PTR -12[rbp], 0
	jmp	.L25
.L36:
	mov	eax, DWORD PTR -12[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	lea	rax, board[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	DWORD PTR -20[rbp], eax
	sete	al
	movzx	eax, al
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	je	.L26
	mov	DWORD PTR -8[rbp], 0
	mov	eax, DWORD PTR -12[rbp]
	sub	eax, 1
	movsx	rcx, eax
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	lea	rax, board[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, 95
	jne	.L28
	mov	eax, DWORD PTR -12[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	lea	rax, board[rip]
	add	rdx, rax
	mov	eax, DWORD PTR -12[rbp]
	sub	eax, 1
	movsx	rsi, eax
	mov	eax, DWORD PTR -16[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 3
	add	rax, rcx
	add	rax, rsi
	lea	rcx, 0[0+rax*4]
	lea	rax, board[rip]
	add	rax, rcx
	mov	rsi, rdx
	mov	rdi, rax
	call	swap
	mov	DWORD PTR -8[rbp], eax
.L28:
	mov	eax, DWORD PTR -16[rbp]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR -12[rbp]
	movsx	rcx, eax
	movsx	rdx, edx
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	lea	rax, board[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, 95
	jne	.L30
	mov	eax, DWORD PTR -12[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	lea	rax, board[rip]
	add	rdx, rax
	mov	eax, DWORD PTR -16[rbp]
	lea	ecx, -1[rax]
	mov	eax, DWORD PTR -12[rbp]
	movsx	rsi, eax
	movsx	rcx, ecx
	mov	rax, rcx
	sal	rax, 3
	add	rax, rcx
	add	rax, rsi
	lea	rcx, 0[0+rax*4]
	lea	rax, board[rip]
	add	rax, rcx
	mov	rsi, rdx
	mov	rdi, rax
	call	swap
	mov	DWORD PTR -8[rbp], eax
.L30:
	mov	eax, DWORD PTR -16[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -12[rbp]
	movsx	rcx, eax
	movsx	rdx, edx
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	lea	rax, board[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, 95
	jne	.L32
	mov	eax, DWORD PTR -12[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	lea	rax, board[rip]
	add	rdx, rax
	mov	eax, DWORD PTR -16[rbp]
	lea	ecx, 1[rax]
	mov	eax, DWORD PTR -12[rbp]
	movsx	rsi, eax
	movsx	rcx, ecx
	mov	rax, rcx
	sal	rax, 3
	add	rax, rcx
	add	rax, rsi
	lea	rcx, 0[0+rax*4]
	lea	rax, board[rip]
	add	rax, rcx
	mov	rsi, rdx
	mov	rdi, rax
	call	swap
	mov	DWORD PTR -8[rbp], eax
.L32:
	mov	eax, DWORD PTR -12[rbp]
	add	eax, 1
	movsx	rcx, eax
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	lea	rax, board[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, 95
	jne	.L34
	mov	eax, DWORD PTR -12[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	lea	rax, board[rip]
	add	rdx, rax
	mov	eax, DWORD PTR -12[rbp]
	add	eax, 1
	movsx	rsi, eax
	mov	eax, DWORD PTR -16[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 3
	add	rax, rcx
	add	rax, rsi
	lea	rcx, 0[0+rax*4]
	lea	rax, board[rip]
	add	rax, rcx
	mov	rsi, rdx
	mov	rdi, rax
	call	swap
	mov	DWORD PTR -8[rbp], eax
.L34:
	cmp	DWORD PTR -8[rbp], 1
	jne	.L26
	mov	eax, 1
	jmp	.L35
.L26:
	add	DWORD PTR -12[rbp], 1
.L25:
	mov	eax, DWORD PTR d[rip]
	cmp	DWORD PTR -12[rbp], eax
	jl	.L36
	add	DWORD PTR -16[rbp], 1
.L24:
	mov	eax, DWORD PTR d[rip]
	cmp	DWORD PTR -16[rbp], eax
	jl	.L37
	mov	eax, 0
.L35:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	move, .-move
	.globl	won
	.type	won, @function
won:
.LFB4:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -12[rbp], 0
	mov	DWORD PTR -8[rbp], 1
	jmp	.L39
.L45:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L40
.L44:
	mov	eax, DWORD PTR d[rip]
	sub	eax, 1
	cmp	DWORD PTR -12[rbp], eax
	jne	.L41
	mov	eax, DWORD PTR d[rip]
	sub	eax, 1
	cmp	DWORD PTR -4[rbp], eax
	jne	.L41
	mov	eax, DWORD PTR d[rip]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR d[rip]
	sub	eax, 1
	movsx	rcx, eax
	movsx	rdx, edx
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	lea	rax, board[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, 95
	je	.L41
	mov	eax, 0
	jmp	.L42
.L41:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	lea	rax, board[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	DWORD PTR -8[rbp], eax
	je	.L43
	mov	eax, 0
	jmp	.L42
.L43:
	add	DWORD PTR -4[rbp], 1
.L40:
	mov	eax, DWORD PTR d[rip]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L44
	add	DWORD PTR -8[rbp], 1
	add	DWORD PTR -12[rbp], 1
.L39:
	mov	edx, DWORD PTR d[rip]
	mov	eax, DWORD PTR d[rip]
	imul	eax, edx
	sub	eax, 1
	cmp	DWORD PTR -8[rbp], eax
	jl	.L45
	mov	eax, 0
.L42:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	won, .-won
	.section	.rodata
.LC7:
	.string	"\033[2J"
.LC8:
	.string	"\033[%d;%dH"
	.text
	.globl	clear
	.type	clear, @function
clear:
.LFB5:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edx, 0
	mov	esi, 0
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	clear, .-clear
	.section	.rodata
.LC9:
	.string	"%7d"
	.text
	.globl	get_int
	.type	get_int, @function
get_int:
.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
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -12[rbp], 0
	lea	rax, -12[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -12[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L49
	call	__stack_chk_fail@PLT
.L49:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	get_int, .-get_int
	.globl	swap
	.type	swap, @function
swap:
.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	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -4[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -4[rbp]
	mov	DWORD PTR [rax], edx
	mov	eax, 1
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	swap, .-swap
	.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	"810098.c"
	.text
	.comm	board,324,4
	.comm	d,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Board dimension: \000"
	.align	2
.LC1:
	.ascii	"You win!!!\000"
	.align	2
.LC2:
	.ascii	"Tile to move: \000"
	.align	2
.LC3:
	.ascii	"\012Illegal move.\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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]
.L2:
	ldr	r0, .L10
	bl	printf
	bl	get_int
	mov	r3, r0
	ldr	r2, .L10+4
	str	r3, [r2]
	ldr	r3, .L10+4
	ldr	r3, [r3]
	cmp	r3, #2
	ble	.L2
	ldr	r3, .L10+4
	ldr	r3, [r3]
	cmp	r3, #9
	bgt	.L2
	bl	init
.L7:
	bl	draw
	bl	won
	mov	r3, r0
	cmp	r3, #0
	beq	.L3
	ldr	r0, .L10+8
	bl	printf
	b	.L4
.L3:
	ldr	r0, .L10+12
	bl	printf
	bl	get_int
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L9
	ldr	r0, [fp, #-8]
	bl	move
	mov	r3, r0
	cmp	r3, #0
	bne	.L7
	ldr	r0, .L10+16
	bl	puts
	b	.L7
.L9:
	nop
.L4:
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC0
	.word	d
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	main, .-main
	.align	2
	.global	init
	.syntax unified
	.arm
	.fpu softvfp
	.type	init, %function
init:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, .L18
	ldr	r3, [r3]
	ldr	r2, .L18
	ldr	r2, [r2]
	mul	r3, r2, r3
	sub	r3, r3, #1
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L13
.L17:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L14
.L16:
	ldr	r1, .L18+4
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	ldr	r2, [fp, #-8]
	add	r3, r3, r2
	ldr	r2, [fp, #-16]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, .L18
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bne	.L15
	ldr	r3, .L18
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bne	.L15
	ldr	r3, .L18
	ldr	r3, [r3]
	sub	r2, r3, #1
	ldr	r3, .L18
	ldr	r3, [r3]
	sub	r1, r3, #1
	ldr	r0, .L18+4
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	add	r3, r3, r1
	mov	r2, #95
	str	r2, [r0, r3, lsl #2]
	ldr	r3, .L18
	ldr	r3, [r3]
	and	r3, r3, #1
	cmp	r3, #0
	bne	.L15
	ldr	r3, [fp, #-8]
	sub	r1, r3, #1
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	add	r3, r3, r1
	lsl	r3, r3, #2
	ldr	r2, .L18+4
	add	r0, r3, r2
	ldr	r3, [fp, #-8]
	sub	r1, r3, #2
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	add	r3, r3, r1
	lsl	r3, r3, #2
	ldr	r2, .L18+4
	add	r3, r3, r2
	mov	r1, r3
	bl	swap
.L15:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L14:
	ldr	r3, .L18
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L16
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L13:
	ldr	r3, .L18
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L17
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	d
	.word	board
	.size	init, .-init
	.section	.rodata
	.align	2
.LC4:
	.ascii	"    %c\000"
	.align	2
.LC5:
	.ascii	"%5d\000"
	.align	2
.LC6:
	.ascii	"\012\000"
	.text
	.align	2
	.global	draw
	.syntax unified
	.arm
	.fpu softvfp
	.type	draw, %function
draw:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L21
.L26:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L22
.L25:
	ldr	r1, .L27
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	ldr	r2, [fp, #-8]
	add	r3, r3, r2
	ldr	r3, [r1, r3, lsl #2]
	cmp	r3, #95
	bne	.L23
	ldr	r1, .L27
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	ldr	r2, [fp, #-8]
	add	r3, r3, r2
	ldr	r3, [r1, r3, lsl #2]
	and	r3, r3, #255
	mov	r1, r3
	ldr	r0, .L27+4
	bl	printf
	b	.L24
.L23:
	ldr	r1, .L27
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	ldr	r2, [fp, #-8]
	add	r3, r3, r2
	ldr	r3, [r1, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L27+8
	bl	printf
.L24:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L22:
	ldr	r3, .L27+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L25
	ldr	r0, .L27+16
	bl	puts
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L21:
	ldr	r3, .L27+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L26
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L28:
	.align	2
.L27:
	.word	board
	.word	.LC4
	.word	.LC5
	.word	d
	.word	.LC6
	.size	draw, .-draw
	.align	2
	.global	move
	.syntax unified
	.arm
	.fpu softvfp
	.type	move, %function
move:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L30
.L43:
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L31
.L42:
	ldr	r1, .L44
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	ldr	r2, [fp, #-16]
	add	r3, r3, r2
	ldr	r3, [r1, r3, lsl #2]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L32
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	sub	r1, r3, #1
	ldr	r0, .L44
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	add	r3, r3, r1
	ldr	r3, [r0, r3, lsl #2]
	cmp	r3, #95
	bne	.L34
	ldr	r3, [fp, #-16]
	sub	r1, r3, #1
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	add	r3, r3, r1
	lsl	r3, r3, #2
	ldr	r2, .L44
	add	r0, r3, r2
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	ldr	r2, [fp, #-16]
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, .L44
	add	r3, r3, r2
	mov	r1, r3
	bl	swap
	str	r0, [fp, #-12]
.L34:
	ldr	r3, [fp, #-20]
	sub	r2, r3, #1
	ldr	r1, .L44
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	ldr	r2, [fp, #-16]
	add	r3, r3, r2
	ldr	r3, [r1, r3, lsl #2]
	cmp	r3, #95
	bne	.L36
	ldr	r3, [fp, #-20]
	sub	r2, r3, #1
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	ldr	r2, [fp, #-16]
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, .L44
	add	r0, r3, r2
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	ldr	r2, [fp, #-16]
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, .L44
	add	r3, r3, r2
	mov	r1, r3
	bl	swap
	str	r0, [fp, #-12]
.L36:
	ldr	r3, [fp, #-20]
	add	r2, r3, #1
	ldr	r1, .L44
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	ldr	r2, [fp, #-16]
	add	r3, r3, r2
	ldr	r3, [r1, r3, lsl #2]
	cmp	r3, #95
	bne	.L38
	ldr	r3, [fp, #-20]
	add	r2, r3, #1
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	ldr	r2, [fp, #-16]
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, .L44
	add	r0, r3, r2
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	ldr	r2, [fp, #-16]
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, .L44
	add	r3, r3, r2
	mov	r1, r3
	bl	swap
	str	r0, [fp, #-12]
.L38:
	ldr	r3, [fp, #-16]
	add	r1, r3, #1
	ldr	r0, .L44
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	add	r3, r3, r1
	ldr	r3, [r0, r3, lsl #2]
	cmp	r3, #95
	bne	.L40
	ldr	r3, [fp, #-16]
	add	r1, r3, #1
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	add	r3, r3, r1
	lsl	r3, r3, #2
	ldr	r2, .L44
	add	r0, r3, r2
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	ldr	r2, [fp, #-16]
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, .L44
	add	r3, r3, r2
	mov	r1, r3
	bl	swap
	str	r0, [fp, #-12]
.L40:
	ldr	r3, [fp, #-12]
	cmp	r3, #1
	bne	.L32
	mov	r3, #1
	b	.L41
.L32:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L31:
	ldr	r3, .L44+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L42
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L30:
	ldr	r3, .L44+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	blt	.L43
	mov	r3, #0
.L41:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L45:
	.align	2
.L44:
	.word	board
	.word	d
	.size	move, .-move
	.align	2
	.global	won
	.syntax unified
	.arm
	.fpu softvfp
	.type	won, %function
won:
	@ 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
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #1
	str	r3, [fp, #-12]
	b	.L47
.L53:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L48
.L52:
	ldr	r3, .L54
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bne	.L49
	ldr	r3, .L54
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bne	.L49
	ldr	r3, .L54
	ldr	r3, [r3]
	sub	r2, r3, #1
	ldr	r3, .L54
	ldr	r3, [r3]
	sub	r1, r3, #1
	ldr	r0, .L54+4
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	add	r3, r3, r1
	ldr	r3, [r0, r3, lsl #2]
	cmp	r3, #95
	beq	.L49
	mov	r3, #0
	b	.L50
.L49:
	ldr	r1, .L54+4
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	ldr	r2, [fp, #-8]
	add	r3, r3, r2
	ldr	r3, [r1, r3, lsl #2]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	beq	.L51
	mov	r3, #0
	b	.L50
.L51:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L48:
	ldr	r3, .L54
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L52
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L47:
	ldr	r3, .L54
	ldr	r3, [r3]
	ldr	r2, .L54
	ldr	r2, [r2]
	mul	r3, r2, r3
	sub	r3, r3, #1
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L53
	mov	r3, #0
.L50:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L55:
	.align	2
.L54:
	.word	d
	.word	board
	.size	won, .-won
	.section	.rodata
	.align	2
.LC7:
	.ascii	"\033[2J\000"
	.align	2
.LC8:
	.ascii	"\033[%d;%dH\000"
	.text
	.align	2
	.global	clear
	.syntax unified
	.arm
	.fpu softvfp
	.type	clear, %function
clear:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L57
	bl	printf
	mov	r2, #0
	mov	r1, #0
	ldr	r0, .L57+4
	bl	printf
	nop
	pop	{fp, pc}
.L58:
	.align	2
.L57:
	.word	.LC7
	.word	.LC8
	.size	clear, .-clear
	.section	.rodata
	.align	2
.LC9:
	.ascii	"%7d\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	get_int
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_int, %function
get_int:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L62
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-12]
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, .L62+4
	bl	__isoc99_scanf
	ldr	r3, [fp, #-12]
	ldr	r2, .L62
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L61
	bl	__stack_chk_fail
.L61:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L63:
	.align	2
.L62:
	.word	.LC10
	.word	.LC9
	.size	get_int, .-get_int
	.align	2
	.global	swap
	.syntax unified
	.arm
	.fpu softvfp
	.type	swap, %function
swap:
	@ 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]
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	str	r2, [r3]
	mov	r3, #1
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	swap, .-swap
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
