	.file	"290838.c"
	.intel_syntax noprefix
	.text
	.globl	board
	.data
	.align 8
	.type	board, @object
	.size	board, 10
board:
	.string	"012345678"
	.globl	wins
	.align 32
	.type	wins, @object
	.size	wins, 96
wins:
	.long	0
	.long	1
	.long	2
	.long	3
	.long	4
	.long	5
	.long	6
	.long	7
	.long	8
	.long	0
	.long	3
	.long	6
	.long	1
	.long	4
	.long	7
	.long	2
	.long	5
	.long	8
	.long	0
	.long	4
	.long	8
	.long	2
	.long	4
	.long	6
	.text
	.globl	hasWon
	.type	hasWon, @function
hasWon:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, edi
	mov	BYTE PTR -20[rbp], al
	mov	DWORD PTR -16[rbp], 0
	jmp	.L2
.L5:
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, wins[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, wins[rip+4]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, wins[rip+8]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, board[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	BYTE PTR -20[rbp], al
	jne	.L3
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, board[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	BYTE PTR -20[rbp], al
	jne	.L3
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, board[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	BYTE PTR -20[rbp], al
	jne	.L3
	mov	eax, 1
	jmp	.L4
.L3:
	add	DWORD PTR -16[rbp], 1
.L2:
	cmp	DWORD PTR -16[rbp], 7
	jle	.L5
	mov	eax, 0
.L4:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	hasWon, .-hasWon
	.globl	scoreBoard
	.type	scoreBoard, @function
scoreBoard:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	edi, 88
	call	hasWon
	test	eax, eax
	je	.L7
	mov	eax, -10
	jmp	.L8
.L7:
	mov	edi, 79
	call	hasWon
	test	eax, eax
	je	.L9
	mov	eax, 10
	jmp	.L8
.L9:
	mov	eax, 0
.L8:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	scoreBoard, .-scoreBoard
	.globl	nextTurn
	.type	nextTurn, @function
nextTurn:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, edi
	mov	BYTE PTR -4[rbp], al
	cmp	BYTE PTR -4[rbp], 88
	jne	.L11
	mov	eax, 79
	jmp	.L13
.L11:
	mov	eax, 88
.L13:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	nextTurn, .-nextTurn
	.globl	toChar
	.type	toChar, @function
toChar:
.LFB3:
	.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 -4[rbp], edi
	cmp	DWORD PTR -4[rbp], 0
	jne	.L15
	mov	eax, 48
	jmp	.L14
.L15:
	cmp	DWORD PTR -4[rbp], 1
	jne	.L17
	mov	eax, 49
	jmp	.L14
.L17:
	cmp	DWORD PTR -4[rbp], 2
	jne	.L18
	mov	eax, 50
	jmp	.L14
.L18:
	cmp	DWORD PTR -4[rbp], 3
	jne	.L19
	mov	eax, 51
	jmp	.L14
.L19:
	cmp	DWORD PTR -4[rbp], 4
	jne	.L20
	mov	eax, 52
	jmp	.L14
.L20:
	cmp	DWORD PTR -4[rbp], 5
	jne	.L21
	mov	eax, 53
	jmp	.L14
.L21:
	cmp	DWORD PTR -4[rbp], 6
	jne	.L22
	mov	eax, 54
	jmp	.L14
.L22:
	cmp	DWORD PTR -4[rbp], 7
	jne	.L23
	mov	eax, 55
	jmp	.L14
.L23:
	cmp	DWORD PTR -4[rbp], 8
	jne	.L24
	mov	eax, 56
	jmp	.L14
.L24:
.L14:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	toChar, .-toChar
	.section	.rodata
.LC0:
	.string	"-------"
.LC1:
	.string	" %c"
.LC2:
	.string	"\n"
	.text
	.globl	drawBoard
	.type	drawBoard, @function
drawBoard:
.LFB4:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	DWORD PTR -4[rbp], 0
	jmp	.L26
.L29:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, board[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	DWORD PTR -4[rbp], 2
	je	.L27
	cmp	DWORD PTR -4[rbp], 5
	je	.L27
	cmp	DWORD PTR -4[rbp], 8
	jne	.L28
.L27:
	lea	rdi, .LC2[rip]
	call	puts@PLT
.L28:
	add	DWORD PTR -4[rbp], 1
.L26:
	cmp	DWORD PTR -4[rbp], 8
	jle	.L29
	mov	edi, 10
	call	putchar@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	drawBoard, .-drawBoard
	.globl	countEmptyCells
	.type	countEmptyCells, @function
countEmptyCells:
.LFB5:
	.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 -4[rbp], 0
	mov	DWORD PTR -8[rbp], 0
	jmp	.L31
.L33:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, board[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	al, 88
	je	.L32
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, board[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	al, 79
	je	.L32
	add	DWORD PTR -4[rbp], 1
.L32:
	add	DWORD PTR -8[rbp], 1
.L31:
	cmp	DWORD PTR -8[rbp], 8
	jle	.L33
	mov	eax, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	countEmptyCells, .-countEmptyCells
	.globl	isValidMove
	.type	isValidMove, @function
isValidMove:
.LFB6:
	.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 -4[rbp], edi
	cmp	DWORD PTR -4[rbp], 0
	js	.L36
	cmp	DWORD PTR -4[rbp], 8
	jle	.L37
.L36:
	mov	eax, 0
	jmp	.L38
.L37:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, board[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	al, 88
	je	.L39
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, board[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	al, 79
	jne	.L40
.L39:
	mov	eax, 0
	jmp	.L38
.L40:
	mov	eax, 1
.L38:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	isValidMove, .-isValidMove
	.globl	minimax
	.type	minimax, @function
minimax:
.LFB7:
	.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, 40
	.cfi_offset 3, -24
	mov	eax, edi
	mov	DWORD PTR -40[rbp], esi
	mov	BYTE PTR -36[rbp], al
	mov	eax, 0
	call	countEmptyCells
	test	eax, eax
	je	.L42
	mov	eax, 0
	call	scoreBoard
	test	eax, eax
	je	.L43
.L42:
	mov	eax, 0
	call	scoreBoard
	test	eax, eax
	js	.L44
	mov	eax, 0
	call	scoreBoard
	sub	eax, DWORD PTR -40[rbp]
	jmp	.L45
.L44:
	mov	eax, 0
	call	scoreBoard
	mov	edx, eax
	mov	eax, DWORD PTR -40[rbp]
	add	eax, eax
	add	eax, edx
	jmp	.L45
.L43:
	cmp	BYTE PTR -36[rbp], 79
	jne	.L46
	mov	eax, -100
	jmp	.L47
.L46:
	mov	eax, 100
.L47:
	mov	DWORD PTR -24[rbp], eax
	mov	DWORD PTR -32[rbp], 0
	jmp	.L48
.L54:
	mov	eax, DWORD PTR -32[rbp]
	mov	edi, eax
	call	isValidMove
	test	eax, eax
	je	.L56
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	lea	rcx, board[rip]
	movzx	edx, BYTE PTR -36[rbp]
	mov	BYTE PTR [rax+rcx], dl
	mov	eax, DWORD PTR -40[rbp]
	lea	ebx, 1[rax]
	movsx	eax, BYTE PTR -36[rbp]
	mov	edi, eax
	call	nextTurn
	movsx	eax, al
	mov	esi, ebx
	mov	edi, eax
	call	minimax
	mov	DWORD PTR -20[rbp], eax
	cmp	BYTE PTR -36[rbp], 79
	jne	.L51
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, DWORD PTR -24[rbp]
	jg	.L52
.L51:
	cmp	BYTE PTR -36[rbp], 88
	jne	.L53
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, DWORD PTR -24[rbp]
	jge	.L53
.L52:
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -24[rbp], eax
	mov	eax, DWORD PTR -32[rbp]
	mov	DWORD PTR -28[rbp], eax
.L53:
	mov	eax, DWORD PTR -32[rbp]
	mov	edi, eax
	call	toChar
	mov	edx, DWORD PTR -32[rbp]
	movsx	rdx, edx
	lea	rcx, board[rip]
	mov	BYTE PTR [rdx+rcx], al
	jmp	.L50
.L56:
	nop
.L50:
	add	DWORD PTR -32[rbp], 1
.L48:
	cmp	DWORD PTR -32[rbp], 8
	jle	.L54
	cmp	DWORD PTR -40[rbp], 0
	jne	.L55
	mov	eax, DWORD PTR -28[rbp]
	jmp	.L45
.L55:
	mov	eax, DWORD PTR -24[rbp]
.L45:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	minimax, .-minimax
	.section	.rodata
.LC3:
	.string	"O: %d\n"
	.text
	.globl	moveO
	.type	moveO, @function
moveO:
.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, 16
	mov	esi, 0
	mov	edi, 79
	call	minimax
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -4[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	moveO, .-moveO
	.section	.rodata
.LC4:
	.string	"X: "
.LC5:
	.string	"%d"
	.text
	.globl	moveX
	.type	moveX, @function
moveX:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
.L60:
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -12[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	isValidMove
	test	eax, eax
	je	.L60
	mov	eax, DWORD PTR -12[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L62
	call	__stack_chk_fail@PLT
.L62:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	moveX, .-moveX
	.section	.rodata
	.align 8
.LC6:
	.string	"\n\tMINIMAXO - an XO game, USER-COMPUTER (minimax algorithm)\n"
	.align 8
.LC7:
	.string	"\n\n-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-\n"
.LC8:
	.string	"YOU WIN!!"
.LC9:
	.string	"YOU LOSE"
.LC10:
	.string	"DRAW"
	.text
	.globl	main
	.type	main, @function
main:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	BYTE PTR -1[rbp], 88
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	eax, 0
	call	drawBoard
	jmp	.L64
.L68:
	cmp	BYTE PTR -1[rbp], 88
	jne	.L65
	mov	eax, 0
	call	moveX
	cdqe
	lea	rdx, board[rip]
	mov	BYTE PTR [rax+rdx], 88
	jmp	.L66
.L65:
	mov	eax, 0
	call	moveO
	cdqe
	lea	rdx, board[rip]
	mov	BYTE PTR [rax+rdx], 79
.L66:
	movsx	eax, BYTE PTR -1[rbp]
	mov	edi, eax
	call	nextTurn
	mov	BYTE PTR -1[rbp], al
	mov	eax, 0
	call	drawBoard
.L64:
	mov	eax, 0
	call	scoreBoard
	test	eax, eax
	jne	.L67
	mov	eax, 0
	call	countEmptyCells
	test	eax, eax
	jne	.L68
.L67:
	lea	rdi, .LC7[rip]
	call	puts@PLT
	mov	eax, 0
	call	scoreBoard
	cmp	eax, 10
	je	.L69
	cmp	eax, 10
	jg	.L70
	cmp	eax, -10
	je	.L71
	test	eax, eax
	je	.L72
	jmp	.L70
.L71:
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L70
.L69:
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L70
.L72:
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	nop
.L70:
	lea	rdi, .LC7[rip]
	call	puts@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"290838.c"
	.text
	.global	board
	.data
	.align	2
	.type	board, %object
	.size	board, 10
board:
	.ascii	"012345678\000"
	.global	wins
	.align	2
	.type	wins, %object
	.size	wins, 96
wins:
	.word	0
	.word	1
	.word	2
	.word	3
	.word	4
	.word	5
	.word	6
	.word	7
	.word	8
	.word	0
	.word	3
	.word	6
	.word	1
	.word	4
	.word	7
	.word	2
	.word	5
	.word	8
	.word	0
	.word	4
	.word	8
	.word	2
	.word	4
	.word	6
	.text
	.align	2
	.global	hasWon
	.syntax unified
	.arm
	.fpu softvfp
	.type	hasWon, %function
hasWon:
	@ args = 0, 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
	mov	r3, r0
	strb	r3, [fp, #-21]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L2
.L5:
	ldr	r1, .L6
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	ldr	r1, .L6
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #4
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	ldr	r1, .L6
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #8
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r2, .L6+4
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldrb	r2, [fp, #-21]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L3
	ldr	r2, .L6+4
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldrb	r2, [fp, #-21]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L3
	ldr	r2, .L6+4
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldrb	r2, [fp, #-21]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L3
	mov	r3, #1
	b	.L4
.L3:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L2:
	ldr	r3, [fp, #-20]
	cmp	r3, #7
	ble	.L5
	mov	r3, #0
.L4:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L7:
	.align	2
.L6:
	.word	wins
	.word	board
	.size	hasWon, .-hasWon
	.align	2
	.global	scoreBoard
	.syntax unified
	.arm
	.fpu softvfp
	.type	scoreBoard, %function
scoreBoard:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	mov	r0, #88
	bl	hasWon
	mov	r3, r0
	cmp	r3, #0
	beq	.L9
	mvn	r3, #9
	b	.L10
.L9:
	mov	r0, #79
	bl	hasWon
	mov	r3, r0
	cmp	r3, #0
	beq	.L11
	mov	r3, #10
	b	.L10
.L11:
	mov	r3, #0
.L10:
	mov	r0, r3
	pop	{fp, pc}
	.size	scoreBoard, .-scoreBoard
	.align	2
	.global	nextTurn
	.syntax unified
	.arm
	.fpu softvfp
	.type	nextTurn, %function
nextTurn:
	@ 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
	mov	r3, r0
	strb	r3, [fp, #-5]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #88
	bne	.L13
	mov	r3, #79
	b	.L14
.L13:
	mov	r3, #88
.L14:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	nextTurn, .-nextTurn
	.align	2
	.global	toChar
	.syntax unified
	.arm
	.fpu softvfp
	.type	toChar, %function
toChar:
	@ 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]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L17
	mov	r3, #48
	b	.L16
.L17:
	ldr	r3, [fp, #-8]
	cmp	r3, #1
	bne	.L19
	mov	r3, #49
	b	.L16
.L19:
	ldr	r3, [fp, #-8]
	cmp	r3, #2
	bne	.L20
	mov	r3, #50
	b	.L16
.L20:
	ldr	r3, [fp, #-8]
	cmp	r3, #3
	bne	.L21
	mov	r3, #51
	b	.L16
.L21:
	ldr	r3, [fp, #-8]
	cmp	r3, #4
	bne	.L22
	mov	r3, #52
	b	.L16
.L22:
	ldr	r3, [fp, #-8]
	cmp	r3, #5
	bne	.L23
	mov	r3, #53
	b	.L16
.L23:
	ldr	r3, [fp, #-8]
	cmp	r3, #6
	bne	.L24
	mov	r3, #54
	b	.L16
.L24:
	ldr	r3, [fp, #-8]
	cmp	r3, #7
	bne	.L25
	mov	r3, #55
	b	.L16
.L25:
	ldr	r3, [fp, #-8]
	cmp	r3, #8
	bne	.L26
	mov	r3, #56
	b	.L16
.L26:
.L16:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	toChar, .-toChar
	.section	.rodata
	.align	2
.LC0:
	.ascii	"-------\000"
	.align	2
.LC1:
	.ascii	" %c\000"
	.align	2
.LC2:
	.ascii	"\012\000"
	.text
	.align	2
	.global	drawBoard
	.syntax unified
	.arm
	.fpu softvfp
	.type	drawBoard, %function
drawBoard:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r0, .L32
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L28
.L31:
	ldr	r2, .L32+4
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L32+8
	bl	printf
	ldr	r3, [fp, #-8]
	cmp	r3, #2
	beq	.L29
	ldr	r3, [fp, #-8]
	cmp	r3, #5
	beq	.L29
	ldr	r3, [fp, #-8]
	cmp	r3, #8
	bne	.L30
.L29:
	ldr	r0, .L32+12
	bl	puts
.L30:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L28:
	ldr	r3, [fp, #-8]
	cmp	r3, #8
	ble	.L31
	mov	r0, #10
	bl	putchar
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L33:
	.align	2
.L32:
	.word	.LC0
	.word	board
	.word	.LC1
	.word	.LC2
	.size	drawBoard, .-drawBoard
	.align	2
	.global	countEmptyCells
	.syntax unified
	.arm
	.fpu softvfp
	.type	countEmptyCells, %function
countEmptyCells:
	@ 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
	mov	r3, #0
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L35
.L37:
	ldr	r2, .L39
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #88
	beq	.L36
	ldr	r2, .L39
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #79
	beq	.L36
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L36:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L35:
	ldr	r3, [fp, #-12]
	cmp	r3, #8
	ble	.L37
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L40:
	.align	2
.L39:
	.word	board
	.size	countEmptyCells, .-countEmptyCells
	.align	2
	.global	isValidMove
	.syntax unified
	.arm
	.fpu softvfp
	.type	isValidMove, %function
isValidMove:
	@ 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]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	blt	.L42
	ldr	r3, [fp, #-8]
	cmp	r3, #8
	ble	.L43
.L42:
	mov	r3, #0
	b	.L44
.L43:
	ldr	r2, .L47
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #88
	beq	.L45
	ldr	r2, .L47
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #79
	bne	.L46
.L45:
	mov	r3, #0
	b	.L44
.L46:
	mov	r3, #1
.L44:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L48:
	.align	2
.L47:
	.word	board
	.size	isValidMove, .-isValidMove
	.align	2
	.global	minimax
	.syntax unified
	.arm
	.fpu softvfp
	.type	minimax, %function
minimax:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	mov	r3, r0
	str	r1, [fp, #-28]
	strb	r3, [fp, #-21]
	bl	countEmptyCells
	mov	r3, r0
	cmp	r3, #0
	beq	.L50
	bl	scoreBoard
	mov	r3, r0
	cmp	r3, #0
	beq	.L51
.L50:
	bl	scoreBoard
	mov	r3, r0
	cmp	r3, #0
	blt	.L52
	bl	scoreBoard
	mov	r2, r0
	ldr	r3, [fp, #-28]
	sub	r3, r2, r3
	b	.L53
.L52:
	bl	scoreBoard
	mov	r2, r0
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #1
	add	r3, r2, r3
	b	.L53
.L51:
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	cmp	r3, #79
	bne	.L54
	mvn	r3, #99
	b	.L55
.L54:
	mov	r3, #100
.L55:
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L56
.L62:
	ldr	r0, [fp, #-20]
	bl	isValidMove
	mov	r3, r0
	cmp	r3, #0
	beq	.L64
	ldr	r2, .L65
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	ldrb	r2, [fp, #-21]
	strb	r2, [r3]
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	mov	r0, r3
	bl	nextTurn
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	mov	r1, r3
	mov	r0, r2
	bl	minimax
	str	r0, [fp, #-8]
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	cmp	r3, #79
	bne	.L59
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	bgt	.L60
.L59:
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	cmp	r3, #88
	bne	.L61
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	bge	.L61
.L60:
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-16]
.L61:
	ldr	r0, [fp, #-20]
	bl	toChar
	mov	r3, r0
	mov	r1, r3
	ldr	r2, .L65
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	b	.L58
.L64:
	nop
.L58:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L56:
	ldr	r3, [fp, #-20]
	cmp	r3, #8
	ble	.L62
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L63
	ldr	r3, [fp, #-16]
	b	.L53
.L63:
	ldr	r3, [fp, #-12]
.L53:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L66:
	.align	2
.L65:
	.word	board
	.size	minimax, .-minimax
	.section	.rodata
	.align	2
.LC3:
	.ascii	"O: %d\012\000"
	.text
	.align	2
	.global	moveO
	.syntax unified
	.arm
	.fpu softvfp
	.type	moveO, %function
moveO:
	@ 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	r1, #0
	mov	r0, #79
	bl	minimax
	str	r0, [fp, #-8]
	ldr	r1, [fp, #-8]
	ldr	r0, .L69
	bl	printf
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L70:
	.align	2
.L69:
	.word	.LC3
	.size	moveO, .-moveO
	.section	.rodata
	.align	2
.LC4:
	.ascii	"X: \000"
	.align	2
.LC5:
	.ascii	"%d\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	moveX
	.syntax unified
	.arm
	.fpu softvfp
	.type	moveX, %function
moveX:
	@ 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, .L75
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
.L72:
	ldr	r0, .L75+4
	bl	printf
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, .L75+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	isValidMove
	mov	r3, r0
	cmp	r3, #0
	beq	.L72
	ldr	r3, [fp, #-12]
	ldr	r2, .L75
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L74
	bl	__stack_chk_fail
.L74:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L76:
	.align	2
.L75:
	.word	.LC6
	.word	.LC4
	.word	.LC5
	.size	moveX, .-moveX
	.section	.rodata
	.align	2
.LC7:
	.ascii	"\012\011MINIMAXO - an XO game, USER-COMPUTER (minim"
	.ascii	"ax algorithm)\012\000"
	.align	2
.LC8:
	.ascii	"\012\012-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-\012"
	.ascii	"\000"
	.align	2
.LC9:
	.ascii	"YOU WIN!!\000"
	.align	2
.LC10:
	.ascii	"YOU LOSE\000"
	.align	2
.LC11:
	.ascii	"DRAW\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, #88
	strb	r3, [fp, #-5]
	ldr	r0, .L88
	bl	puts
	bl	drawBoard
	b	.L78
.L82:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #88
	bne	.L79
	bl	moveX
	mov	r3, r0
	ldr	r2, .L88+4
	mov	r1, #88
	strb	r1, [r2, r3]
	b	.L80
.L79:
	bl	moveO
	mov	r3, r0
	ldr	r2, .L88+4
	mov	r1, #79
	strb	r1, [r2, r3]
.L80:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	mov	r0, r3
	bl	nextTurn
	mov	r3, r0
	strb	r3, [fp, #-5]
	bl	drawBoard
.L78:
	bl	scoreBoard
	mov	r3, r0
	cmp	r3, #0
	bne	.L81
	bl	countEmptyCells
	mov	r3, r0
	cmp	r3, #0
	bne	.L82
.L81:
	ldr	r0, .L88+8
	bl	puts
	bl	scoreBoard
	mov	r3, r0
	cmp	r3, #10
	beq	.L83
	cmp	r3, #10
	bgt	.L84
	cmn	r3, #10
	beq	.L85
	cmp	r3, #0
	beq	.L86
	b	.L84
.L85:
	ldr	r0, .L88+12
	bl	printf
	b	.L84
.L83:
	ldr	r0, .L88+16
	bl	printf
	b	.L84
.L86:
	ldr	r0, .L88+20
	bl	printf
	nop
.L84:
	ldr	r0, .L88+8
	bl	puts
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L89:
	.align	2
.L88:
	.word	.LC7
	.word	board
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
