	.file	"634390.c"
	.intel_syntax noprefix
	.text
	.globl	matrix
	.bss
	.align 8
	.type	matrix, @object
	.size	matrix, 9
matrix:
	.zero	9
	.text
	.globl	init_matrix
	.type	init_matrix, @function
init_matrix:
.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 -8[rbp], 0
	jmp	.L2
.L5:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L3
.L4:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	lea	rdx, [rax+rcx]
	lea	rax, matrix[rip]
	add	rax, rdx
	mov	BYTE PTR [rax], 32
	add	DWORD PTR -4[rbp], 1
.L3:
	cmp	DWORD PTR -4[rbp], 2
	jle	.L4
	add	DWORD PTR -8[rbp], 1
.L2:
	cmp	DWORD PTR -8[rbp], 2
	jle	.L5
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	init_matrix, .-init_matrix
	.section	.rodata
	.align 8
.LC0:
	.string	"\nEnter the X and Y coordinates: "
.LC1:
	.string	"%d%*c%d"
.LC2:
	.string	"Invalid move, try again! "
	.text
	.globl	player_move
	.type	player_move, @function
player_move:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdx, -12[rbp]
	lea	rax, -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -16[rbp]
	sub	eax, 1
	mov	DWORD PTR -16[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	sub	eax, 1
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -16[rbp]
	mov	edx, DWORD PTR -12[rbp]
	movsx	rcx, edx
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	lea	rdx, [rax+rcx]
	lea	rax, matrix[rip]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	je	.L7
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	eax, 0
	call	player_move
	jmp	.L10
.L7:
	mov	eax, DWORD PTR -16[rbp]
	mov	edx, DWORD PTR -12[rbp]
	movsx	rcx, edx
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	lea	rdx, [rax+rcx]
	lea	rax, matrix[rip]
	add	rax, rdx
	mov	BYTE PTR [rax], 88
.L10:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	player_move, .-player_move
	.section	.rodata
.LC3:
	.string	"Draw"
	.text
	.globl	computer_move
	.type	computer_move, @function
computer_move:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -8[rbp], 0
	jmp	.L12
.L19:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L13
.L16:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	lea	rdx, [rax+rcx]
	lea	rax, matrix[rip]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	je	.L21
	add	DWORD PTR -4[rbp], 1
.L13:
	cmp	DWORD PTR -4[rbp], 2
	jle	.L16
	jmp	.L15
.L21:
	nop
.L15:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	lea	rdx, [rax+rcx]
	lea	rax, matrix[rip]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	je	.L22
	add	DWORD PTR -8[rbp], 1
.L12:
	cmp	DWORD PTR -8[rbp], 2
	jle	.L19
	jmp	.L18
.L22:
	nop
.L18:
	mov	eax, DWORD PTR -8[rbp]
	imul	eax, DWORD PTR -4[rbp]
	cmp	eax, 9
	jne	.L20
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
.L20:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	lea	rdx, [rax+rcx]
	lea	rax, matrix[rip]
	add	rax, rdx
	mov	BYTE PTR [rax], 79
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	computer_move, .-computer_move
	.globl	check
	.type	check, @function
check:
.LFB9:
	.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 -8[rbp], 0
	jmp	.L24
.L27:
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rdx, rax
	lea	rax, matrix[rip]
	movzx	ecx, BYTE PTR [rdx+rax]
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rdx, rax
	lea	rax, matrix[rip+1]
	movzx	eax, BYTE PTR [rdx+rax]
	cmp	cl, al
	jne	.L25
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rdx, rax
	lea	rax, matrix[rip]
	movzx	ecx, BYTE PTR [rdx+rax]
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rdx, rax
	lea	rax, matrix[rip+2]
	movzx	eax, BYTE PTR [rdx+rax]
	cmp	cl, al
	jne	.L25
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rdx, rax
	lea	rax, matrix[rip]
	movzx	eax, BYTE PTR [rdx+rax]
	jmp	.L26
.L25:
	add	DWORD PTR -8[rbp], 1
.L24:
	cmp	DWORD PTR -8[rbp], 2
	jle	.L27
	mov	DWORD PTR -4[rbp], 0
	jmp	.L28
.L30:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, matrix[rip]
	movzx	edx, BYTE PTR [rax+rdx]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rcx, matrix[rip+3]
	movzx	eax, BYTE PTR [rax+rcx]
	cmp	dl, al
	jne	.L29
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, matrix[rip]
	movzx	edx, BYTE PTR [rax+rdx]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rcx, matrix[rip+6]
	movzx	eax, BYTE PTR [rax+rcx]
	cmp	dl, al
	jne	.L29
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, matrix[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	jmp	.L26
.L29:
	add	DWORD PTR -4[rbp], 1
.L28:
	cmp	DWORD PTR -4[rbp], 2
	jle	.L30
	movzx	edx, BYTE PTR matrix[rip]
	movzx	eax, BYTE PTR matrix[rip+4]
	cmp	dl, al
	jne	.L31
	movzx	edx, BYTE PTR matrix[rip]
	movzx	eax, BYTE PTR matrix[rip+8]
	cmp	dl, al
	jne	.L31
	movzx	eax, BYTE PTR matrix[rip]
	jmp	.L26
.L31:
	movzx	edx, BYTE PTR matrix[rip+2]
	movzx	eax, BYTE PTR matrix[rip+4]
	cmp	dl, al
	jne	.L32
	movzx	edx, BYTE PTR matrix[rip+2]
	movzx	eax, BYTE PTR matrix[rip+6]
	cmp	dl, al
	jne	.L32
	movzx	eax, BYTE PTR matrix[rip+2]
	jmp	.L26
.L32:
	mov	eax, 32
.L26:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	check, .-check
	.section	.rodata
.LC4:
	.string	" %c | %c | %c "
.LC5:
	.string	"\n---|---|---"
	.text
	.globl	display_matrix
	.type	display_matrix, @function
display_matrix:
.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	DWORD PTR -4[rbp], 0
	jmp	.L34
.L36:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rdx, rax
	lea	rax, matrix[rip+2]
	movzx	eax, BYTE PTR [rdx+rax]
	movsx	ecx, al
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rdx, rax
	lea	rax, matrix[rip+1]
	movzx	eax, BYTE PTR [rdx+rax]
	movsx	edx, al
	mov	eax, DWORD PTR -4[rbp]
	movsx	rsi, eax
	mov	rax, rsi
	add	rax, rax
	add	rsi, rax
	lea	rax, matrix[rip]
	movzx	eax, BYTE PTR [rsi+rax]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	DWORD PTR -4[rbp], 2
	je	.L35
	lea	rdi, .LC5[rip]
	call	puts@PLT
.L35:
	add	DWORD PTR -4[rbp], 1
.L34:
	cmp	DWORD PTR -4[rbp], 2
	jle	.L36
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	display_matrix, .-display_matrix
	.section	.rodata
	.align 8
.LC6:
	.string	"This is a game of tic tac toe:"
.LC7:
	.string	"Player Won!"
.LC8:
	.string	"AI Won!"
	.text
	.globl	main
	.type	main, @function
main:
.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, 16
	mov	BYTE PTR -1[rbp], 32
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	eax, 0
	call	init_matrix
.L40:
	mov	eax, 0
	call	display_matrix
	mov	eax, 0
	call	player_move
	mov	eax, 0
	call	check
	mov	BYTE PTR -1[rbp], al
	cmp	BYTE PTR -1[rbp], 32
	jne	.L44
	mov	eax, 0
	call	computer_move
	mov	eax, 0
	call	check
	mov	BYTE PTR -1[rbp], al
	cmp	BYTE PTR -1[rbp], 32
	je	.L40
	jmp	.L39
.L44:
	nop
.L39:
	cmp	BYTE PTR -1[rbp], 88
	jne	.L41
	lea	rdi, .LC7[rip]
	call	puts@PLT
	jmp	.L42
.L41:
	lea	rdi, .LC8[rip]
	call	puts@PLT
.L42:
	mov	eax, 0
	call	display_matrix
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.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	"634390.c"
	.text
	.comm	matrix,9,4
	.align	2
	.global	init_matrix
	.syntax unified
	.arm
	.fpu softvfp
	.type	init_matrix, %function
init_matrix:
	@ 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, #-12]
	b	.L2
.L5:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L3
.L4:
	ldr	r1, .L6
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	add	r2, r1, r3
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	mov	r2, #32
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L3:
	ldr	r3, [fp, #-8]
	cmp	r3, #2
	ble	.L4
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L2:
	ldr	r3, [fp, #-12]
	cmp	r3, #2
	ble	.L5
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L7:
	.align	2
.L6:
	.word	matrix
	.size	init_matrix, .-init_matrix
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012Enter the X and Y coordinates: \000"
	.align	2
.LC1:
	.ascii	"%d%*c%d\000"
	.align	2
.LC2:
	.ascii	"Invalid move, try again! \000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	player_move
	.syntax unified
	.arm
	.fpu softvfp
	.type	player_move, %function
player_move:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L13+4
	bl	printf
	sub	r2, fp, #12
	sub	r3, fp, #16
	mov	r1, r3
	ldr	r0, .L13+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-12]
	ldr	r0, .L13+12
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	add	r3, r0, r3
	add	r3, r3, r1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L9
	ldr	r0, .L13+16
	bl	puts
	bl	player_move
	b	.L12
.L9:
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-12]
	ldr	r0, .L13+12
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	add	r3, r0, r3
	add	r3, r3, r1
	mov	r2, #88
	strb	r2, [r3]
.L12:
	nop
	ldr	r3, .L13
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	matrix
	.word	.LC2
	.size	player_move, .-player_move
	.section	.rodata
	.align	2
.LC4:
	.ascii	"Draw\000"
	.text
	.align	2
	.global	computer_move
	.syntax unified
	.arm
	.fpu softvfp
	.type	computer_move, %function
computer_move:
	@ 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	.L16
.L23:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L17
.L20:
	ldr	r1, .L27
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	add	r2, r1, r3
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L25
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L17:
	ldr	r3, [fp, #-8]
	cmp	r3, #2
	ble	.L20
	b	.L19
.L25:
	nop
.L19:
	ldr	r1, .L27
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	add	r2, r1, r3
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L26
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L16:
	ldr	r3, [fp, #-12]
	cmp	r3, #2
	ble	.L23
	b	.L22
.L26:
	nop
.L22:
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-8]
	mul	r3, r2, r3
	cmp	r3, #9
	bne	.L24
	ldr	r0, .L27+4
	bl	puts
	mov	r0, #0
	bl	exit
.L24:
	ldr	r1, .L27
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	add	r2, r1, r3
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	mov	r2, #79
	strb	r2, [r3]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L28:
	.align	2
.L27:
	.word	matrix
	.word	.LC4
	.size	computer_move, .-computer_move
	.align	2
	.global	check
	.syntax unified
	.arm
	.fpu softvfp
	.type	check, %function
check:
	@ 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, #-12]
	b	.L30
.L33:
	ldr	r1, .L39
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	add	r3, r1, r3
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r0, .L39
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	add	r3, r0, r3
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r1, r3
	bne	.L31
	ldr	r1, .L39
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	add	r3, r1, r3
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r0, .L39
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	add	r3, r0, r3
	add	r3, r3, #2
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r1, r3
	bne	.L31
	ldr	r1, .L39
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	b	.L32
.L31:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L30:
	ldr	r3, [fp, #-12]
	cmp	r3, #2
	ble	.L33
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L34
.L36:
	ldr	r2, .L39
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r1, .L39
	ldr	r3, [fp, #-8]
	add	r3, r1, r3
	add	r3, r3, #3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L35
	ldr	r2, .L39
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r1, .L39
	ldr	r3, [fp, #-8]
	add	r3, r1, r3
	add	r3, r3, #6
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L35
	ldr	r2, .L39
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	b	.L32
.L35:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L34:
	ldr	r3, [fp, #-8]
	cmp	r3, #2
	ble	.L36
	ldr	r3, .L39
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, .L39
	ldrb	r3, [r3, #4]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L37
	ldr	r3, .L39
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, .L39
	ldrb	r3, [r3, #8]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L37
	ldr	r3, .L39
	ldrb	r3, [r3]	@ zero_extendqisi2
	b	.L32
.L37:
	ldr	r3, .L39
	ldrb	r2, [r3, #2]	@ zero_extendqisi2
	ldr	r3, .L39
	ldrb	r3, [r3, #4]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L38
	ldr	r3, .L39
	ldrb	r2, [r3, #2]	@ zero_extendqisi2
	ldr	r3, .L39
	ldrb	r3, [r3, #6]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L38
	ldr	r3, .L39
	ldrb	r3, [r3, #2]	@ zero_extendqisi2
	b	.L32
.L38:
	mov	r3, #32
.L32:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L40:
	.align	2
.L39:
	.word	matrix
	.size	check, .-check
	.section	.rodata
	.align	2
.LC5:
	.ascii	" %c | %c | %c \000"
	.align	2
.LC6:
	.ascii	"\012---|---|---\000"
	.text
	.align	2
	.global	display_matrix
	.syntax unified
	.arm
	.fpu softvfp
	.type	display_matrix, %function
display_matrix:
	@ 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, #-8]
	b	.L42
.L44:
	ldr	r1, .L45
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	ldr	r1, .L45
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	add	r3, r1, r3
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	ip, r3
	ldr	r1, .L45
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	add	r3, r1, r3
	add	r3, r3, #2
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, ip
	mov	r1, r0
	ldr	r0, .L45+4
	bl	printf
	ldr	r3, [fp, #-8]
	cmp	r3, #2
	beq	.L43
	ldr	r0, .L45+8
	bl	puts
.L43:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L42:
	ldr	r3, [fp, #-8]
	cmp	r3, #2
	ble	.L44
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L46:
	.align	2
.L45:
	.word	matrix
	.word	.LC5
	.word	.LC6
	.size	display_matrix, .-display_matrix
	.section	.rodata
	.align	2
.LC7:
	.ascii	"This is a game of tic tac toe:\000"
	.align	2
.LC8:
	.ascii	"Player Won!\000"
	.align	2
.LC9:
	.ascii	"AI Won!\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, #32
	strb	r3, [fp, #-5]
	ldr	r0, .L55
	bl	puts
	bl	init_matrix
.L50:
	bl	display_matrix
	bl	player_move
	bl	check
	mov	r3, r0
	strb	r3, [fp, #-5]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L54
	bl	computer_move
	bl	check
	mov	r3, r0
	strb	r3, [fp, #-5]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L50
	b	.L49
.L54:
	nop
.L49:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #88
	bne	.L51
	ldr	r0, .L55+4
	bl	puts
	b	.L52
.L51:
	ldr	r0, .L55+8
	bl	puts
.L52:
	bl	display_matrix
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L56:
	.align	2
.L55:
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
