	.file	"360461.c"
	.intel_syntax noprefix
	.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, 16
	mov	QWORD PTR -8[rbp], 67108864
	mov	rax, QWORD PTR -8[rbp]
	mov	WORD PTR [rax], 3843
	mov	eax, 0
	call	play_othello
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	div
	.type	div, @function
div:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	edx, edi
	mov	eax, esi
	mov	WORD PTR -20[rbp], dx
	mov	WORD PTR -24[rbp], ax
	mov	WORD PTR -2[rbp], 0
	jmp	.L4
.L5:
	movzx	edx, WORD PTR -24[rbp]
	movzx	eax, WORD PTR -20[rbp]
	sub	eax, edx
	mov	WORD PTR -20[rbp], ax
	movzx	eax, WORD PTR -2[rbp]
	add	eax, 1
	mov	WORD PTR -2[rbp], ax
.L4:
	movzx	edx, WORD PTR -20[rbp]
	movzx	eax, WORD PTR -24[rbp]
	cmp	dx, ax
	jnb	.L5
	movzx	eax, WORD PTR -2[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	div, .-div
	.globl	move_player
	.type	move_player, @function
move_player:
.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	eax, ecx
	mov	ecx, edi
	mov	WORD PTR -4[rbp], cx
	mov	ecx, esi
	mov	WORD PTR -8[rbp], cx
	mov	WORD PTR -12[rbp], dx
	mov	WORD PTR -16[rbp], ax
	movzx	edx, WORD PTR -12[rbp]
	movzx	eax, WORD PTR -4[rbp]
	cmp	dx, ax
	je	.L8
	movzx	eax, WORD PTR -12[rbp]
	movzx	eax, WORD PTR -12[rbp]
	cmp	ax, 7
	ja	.L9
	movzx	eax, WORD PTR -8[rbp]
	movzx	ecx, ax
	movzx	eax, WORD PTR -4[rbp]
	movzx	eax, ax
	mov	edx, 0
	mov	esi, ecx
	mov	edi, eax
	call	draw_box_line
	movzx	eax, WORD PTR -16[rbp]
	movzx	ecx, ax
	movzx	eax, WORD PTR -12[rbp]
	movzx	eax, ax
	mov	edx, 31
	mov	esi, ecx
	mov	edi, eax
	call	draw_box_line
	movzx	eax, WORD PTR -12[rbp]
	jmp	.L7
.L9:
	movzx	eax, WORD PTR -4[rbp]
	jmp	.L7
.L8:
	movzx	edx, WORD PTR -16[rbp]
	movzx	eax, WORD PTR -8[rbp]
	cmp	dx, ax
	je	.L11
	movzx	eax, WORD PTR -16[rbp]
	movzx	eax, WORD PTR -16[rbp]
	cmp	ax, 7
	ja	.L12
	movzx	eax, WORD PTR -8[rbp]
	movzx	ecx, ax
	movzx	eax, WORD PTR -4[rbp]
	movzx	eax, ax
	mov	edx, 0
	mov	esi, ecx
	mov	edi, eax
	call	draw_box_line
	movzx	eax, WORD PTR -16[rbp]
	movzx	ecx, ax
	movzx	eax, WORD PTR -12[rbp]
	movzx	eax, ax
	mov	edx, 31
	mov	esi, ecx
	mov	edi, eax
	call	draw_box_line
	movzx	eax, WORD PTR -16[rbp]
	jmp	.L7
.L12:
	movzx	eax, WORD PTR -8[rbp]
	jmp	.L7
.L11:
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	move_player, .-move_player
	.globl	put_piece
	.type	put_piece, @function
put_piece:
.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	ecx, esi
	mov	eax, edx
	mov	edx, edi
	mov	WORD PTR -20[rbp], dx
	mov	edx, ecx
	mov	WORD PTR -24[rbp], dx
	mov	WORD PTR -28[rbp], ax
	movzx	eax, WORD PTR -28[rbp]
	cmp	ax, 1
	jne	.L14
	mov	WORD PTR -2[rbp], 0
	jmp	.L15
.L14:
	mov	WORD PTR -2[rbp], 32767
.L15:
	movzx	eax, WORD PTR -2[rbp]
	movzx	edx, ax
	movzx	eax, WORD PTR -24[rbp]
	movzx	ecx, ax
	movzx	eax, WORD PTR -20[rbp]
	movzx	eax, ax
	mov	esi, ecx
	mov	edi, eax
	call	draw_box_circle
	movzx	eax, WORD PTR -28[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	put_piece, .-put_piece
	.globl	can_put_piece
	.type	can_put_piece, @function
can_put_piece:
.LFB4:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	add	rsp, -128
	mov	QWORD PTR -112[rbp], rdx
	mov	eax, ecx
	mov	edx, edi
	mov	WORD PTR -100[rbp], dx
	mov	edx, esi
	mov	WORD PTR -104[rbp], dx
	mov	WORD PTR -116[rbp], ax
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	movzx	eax, WORD PTR -104[rbp]
	movzx	eax, ax
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -112[rbp]
	add	rdx, rax
	movzx	eax, WORD PTR -100[rbp]
	movzx	eax, ax
	cdqe
	movzx	eax, WORD PTR [rdx+rax*2]
	test	ax, ax
	je	.L18
	mov	eax, 0
	jmp	.L19
.L18:
	movzx	eax, WORD PTR -116[rbp]
	neg	eax
	mov	WORD PTR -90[rbp], ax
	mov	WORD PTR -48[rbp], 0
	mov	WORD PTR -46[rbp], -1
	mov	WORD PTR -44[rbp], 1
	mov	WORD PTR -42[rbp], -1
	mov	WORD PTR -40[rbp], 1
	mov	WORD PTR -38[rbp], 0
	mov	WORD PTR -36[rbp], 1
	mov	WORD PTR -34[rbp], 1
	mov	WORD PTR -32[rbp], 0
	mov	WORD PTR -30[rbp], 1
	mov	WORD PTR -28[rbp], -1
	mov	WORD PTR -26[rbp], 1
	mov	WORD PTR -24[rbp], -1
	mov	WORD PTR -22[rbp], 0
	mov	WORD PTR -20[rbp], -1
	mov	WORD PTR -18[rbp], -1
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	mov	QWORD PTR -80[rbp], rax
	mov	QWORD PTR -72[rbp], rdx
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR -64[rbp], rax
	mov	QWORD PTR -56[rbp], rdx
	mov	WORD PTR -88[rbp], 0
	jmp	.L20
.L27:
	movzx	eax, WORD PTR -100[rbp]
	mov	WORD PTR -86[rbp], ax
	movzx	eax, WORD PTR -104[rbp]
	mov	WORD PTR -84[rbp], ax
	mov	WORD PTR -82[rbp], 0
.L26:
	movzx	eax, WORD PTR -88[rbp]
	movzx	eax, ax
	cdqe
	movzx	edx, WORD PTR -80[rbp+rax*4]
	movzx	eax, WORD PTR -86[rbp]
	add	eax, edx
	mov	WORD PTR -86[rbp], ax
	movzx	eax, WORD PTR -88[rbp]
	movzx	eax, ax
	cdqe
	movzx	edx, WORD PTR -78[rbp+rax*4]
	movzx	eax, WORD PTR -84[rbp]
	add	eax, edx
	mov	WORD PTR -84[rbp], ax
	movzx	eax, WORD PTR -86[rbp]
	movzx	eax, WORD PTR -86[rbp]
	cmp	ax, 7
	ja	.L21
	movzx	eax, WORD PTR -84[rbp]
	movzx	eax, WORD PTR -84[rbp]
	cmp	ax, 7
	ja	.L21
	movzx	eax, WORD PTR -84[rbp]
	movzx	eax, ax
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -112[rbp]
	add	rdx, rax
	movzx	eax, WORD PTR -86[rbp]
	movzx	eax, ax
	cdqe
	movzx	eax, WORD PTR [rdx+rax*2]
	test	ax, ax
	je	.L29
	movzx	eax, WORD PTR -84[rbp]
	movzx	eax, ax
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -112[rbp]
	add	rdx, rax
	movzx	eax, WORD PTR -86[rbp]
	movzx	eax, ax
	cdqe
	movzx	edx, WORD PTR [rdx+rax*2]
	movzx	eax, WORD PTR -90[rbp]
	cmp	dx, ax
	jne	.L23
	mov	WORD PTR -82[rbp], 1
	jmp	.L26
.L23:
	movzx	eax, WORD PTR -84[rbp]
	movzx	eax, ax
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -112[rbp]
	add	rdx, rax
	movzx	eax, WORD PTR -86[rbp]
	movzx	eax, ax
	cdqe
	movzx	edx, WORD PTR [rdx+rax*2]
	movzx	eax, WORD PTR -116[rbp]
	cmp	dx, ax
	jne	.L26
	movzx	eax, WORD PTR -82[rbp]
	cmp	ax, 1
	jne	.L30
	movzx	eax, WORD PTR -116[rbp]
	jmp	.L19
.L29:
	nop
	jmp	.L21
.L30:
	nop
.L21:
	movzx	eax, WORD PTR -88[rbp]
	add	eax, 1
	mov	WORD PTR -88[rbp], ax
.L20:
	movzx	eax, WORD PTR -88[rbp]
	cmp	ax, 7
	jbe	.L27
	mov	eax, 0
.L19:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L28
	call	__stack_chk_fail@PLT
.L28:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	can_put_piece, .-can_put_piece
	.globl	can_put_any_piece
	.type	can_put_any_piece, @function
can_put_any_piece:
.LFB5:
	.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	eax, esi
	mov	WORD PTR -28[rbp], ax
	mov	WORD PTR -2[rbp], 0
	jmp	.L32
.L37:
	mov	WORD PTR -4[rbp], 0
	jmp	.L33
.L36:
	movzx	eax, WORD PTR -2[rbp]
	movzx	eax, ax
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	movzx	eax, WORD PTR -4[rbp]
	movzx	eax, ax
	cdqe
	movzx	eax, WORD PTR [rdx+rax*2]
	test	ax, ax
	jne	.L34
	movzx	eax, WORD PTR -28[rbp]
	movzx	ecx, ax
	movzx	eax, WORD PTR -2[rbp]
	movzx	esi, ax
	movzx	eax, WORD PTR -4[rbp]
	movzx	eax, ax
	mov	rdx, QWORD PTR -24[rbp]
	mov	edi, eax
	call	can_put_piece
	movzx	edx, WORD PTR -28[rbp]
	cmp	ax, dx
	jne	.L34
	movzx	eax, WORD PTR -28[rbp]
	jmp	.L35
.L34:
	movzx	eax, WORD PTR -4[rbp]
	add	eax, 1
	mov	WORD PTR -4[rbp], ax
.L33:
	movzx	eax, WORD PTR -4[rbp]
	cmp	ax, 7
	jbe	.L36
	movzx	eax, WORD PTR -2[rbp]
	add	eax, 1
	mov	WORD PTR -2[rbp], ax
.L32:
	movzx	eax, WORD PTR -2[rbp]
	cmp	ax, 7
	jbe	.L37
	mov	eax, 0
.L35:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	can_put_any_piece, .-can_put_any_piece
	.globl	is_gameset
	.type	is_gameset, @function
is_gameset:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	WORD PTR -10[rbp], 0
	mov	WORD PTR -8[rbp], 0
	mov	WORD PTR -6[rbp], 0
	mov	WORD PTR -2[rbp], 0
	jmp	.L39
.L45:
	mov	WORD PTR -4[rbp], 0
	jmp	.L40
.L44:
	movzx	eax, WORD PTR -2[rbp]
	movzx	eax, ax
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	movzx	eax, WORD PTR -4[rbp]
	movzx	eax, ax
	cdqe
	movzx	eax, WORD PTR [rdx+rax*2]
	test	ax, ax
	jne	.L41
	movzx	eax, WORD PTR -10[rbp]
	add	eax, 1
	mov	WORD PTR -10[rbp], ax
	jmp	.L42
.L41:
	movzx	eax, WORD PTR -2[rbp]
	movzx	eax, ax
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	movzx	eax, WORD PTR -4[rbp]
	movzx	eax, ax
	cdqe
	movzx	eax, WORD PTR [rdx+rax*2]
	cmp	ax, 1
	jne	.L43
	movzx	eax, WORD PTR -8[rbp]
	add	eax, 1
	mov	WORD PTR -8[rbp], ax
	jmp	.L42
.L43:
	movzx	eax, WORD PTR -6[rbp]
	add	eax, 1
	mov	WORD PTR -6[rbp], ax
.L42:
	movzx	eax, WORD PTR -4[rbp]
	add	eax, 1
	mov	WORD PTR -4[rbp], ax
.L40:
	movzx	eax, WORD PTR -4[rbp]
	cmp	ax, 7
	jbe	.L44
	movzx	eax, WORD PTR -2[rbp]
	add	eax, 1
	mov	WORD PTR -2[rbp], ax
.L39:
	movzx	eax, WORD PTR -2[rbp]
	cmp	ax, 7
	jbe	.L45
	movzx	eax, WORD PTR -8[rbp]
	test	ax, ax
	jne	.L46
	mov	edi, 32767
	call	draw_finish_window
	jmp	.L47
.L46:
	movzx	eax, WORD PTR -6[rbp]
	test	ax, ax
	jne	.L48
	mov	edi, 0
	call	draw_finish_window
	jmp	.L47
.L48:
	movzx	eax, WORD PTR -10[rbp]
	test	ax, ax
	jne	.L53
	movzx	edx, WORD PTR -8[rbp]
	movzx	eax, WORD PTR -6[rbp]
	cmp	dx, ax
	jne	.L50
	mov	edi, 25368
	call	draw_finish_window
	jmp	.L47
.L50:
	movzx	edx, WORD PTR -8[rbp]
	movzx	eax, WORD PTR -6[rbp]
	cmp	dx, ax
	jbe	.L51
	mov	edi, 0
	call	draw_finish_window
	jmp	.L47
.L51:
	mov	edi, 32767
	call	draw_finish_window
.L47:
	jmp	.L47
.L53:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	is_gameset, .-is_gameset
	.globl	draw_finish_window
	.type	draw_finish_window, @function
draw_finish_window:
.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	eax, edi
	mov	WORD PTR -4[rbp], ax
	movzx	eax, WORD PTR -4[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	draw_window
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	draw_finish_window, .-draw_finish_window
	.globl	draw_board
	.type	draw_board, @function
draw_board:
.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	WORD PTR -2[rbp], 0
	jmp	.L56
.L59:
	mov	WORD PTR -4[rbp], 0
	jmp	.L57
.L58:
	movzx	eax, WORD PTR -2[rbp]
	movzx	edx, ax
	movzx	eax, WORD PTR -4[rbp]
	movzx	eax, ax
	mov	esi, edx
	mov	edi, eax
	call	draw_box_bg
	movzx	eax, WORD PTR -2[rbp]
	movzx	ecx, ax
	movzx	eax, WORD PTR -4[rbp]
	movzx	eax, ax
	mov	edx, 0
	mov	esi, ecx
	mov	edi, eax
	call	draw_box_line
	movzx	eax, WORD PTR -4[rbp]
	add	eax, 1
	mov	WORD PTR -4[rbp], ax
.L57:
	movzx	eax, WORD PTR -4[rbp]
	cmp	ax, 7
	jbe	.L58
	movzx	eax, WORD PTR -2[rbp]
	add	eax, 1
	mov	WORD PTR -2[rbp], ax
.L56:
	movzx	eax, WORD PTR -2[rbp]
	cmp	ax, 7
	jbe	.L59
	mov	edx, 0
	mov	esi, 3
	mov	edi, 3
	call	draw_box_circle
	mov	edx, 0
	mov	esi, 4
	mov	edi, 4
	call	draw_box_circle
	mov	edx, 32767
	mov	esi, 4
	mov	edi, 3
	call	draw_box_circle
	mov	edx, 32767
	mov	esi, 3
	mov	edi, 4
	call	draw_box_circle
	mov	eax, 0
	call	draw_side_circle
	mov	edi, 1
	call	draw_side_arrow
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	draw_board, .-draw_board
	.globl	draw_side_circle
	.type	draw_side_circle, @function
draw_side_circle:
.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	WORD PTR -10[rbp], 30
	mov	WORD PTR -8[rbp], 30
	mov	WORD PTR -6[rbp], 210
	mov	WORD PTR -4[rbp], 30
	mov	WORD PTR -2[rbp], 20
	movzx	eax, WORD PTR -2[rbp]
	movzx	edx, ax
	movzx	eax, WORD PTR -8[rbp]
	movzx	esi, ax
	movzx	eax, WORD PTR -10[rbp]
	movzx	eax, ax
	mov	ecx, 0
	mov	edi, eax
	call	draw_circle
	movzx	eax, WORD PTR -2[rbp]
	movzx	edx, ax
	movzx	eax, WORD PTR -4[rbp]
	movzx	esi, ax
	movzx	eax, WORD PTR -6[rbp]
	movzx	eax, ax
	mov	ecx, 32767
	mov	edi, eax
	call	draw_circle
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	draw_side_circle, .-draw_side_circle
	.globl	draw_side_arrow
	.type	draw_side_arrow, @function
draw_side_arrow:
.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	eax, edi
	mov	WORD PTR -4[rbp], ax
	movzx	eax, WORD PTR -4[rbp]
	cmp	ax, 1
	jne	.L62
	mov	edx, 31
	mov	esi, 60
	mov	edi, 30
	call	draw_arrow
	mov	edx, 25368
	mov	esi, 60
	mov	edi, 210
	call	draw_arrow
	jmp	.L64
.L62:
	mov	edx, 25368
	mov	esi, 60
	mov	edi, 30
	call	draw_arrow
	mov	edx, 31
	mov	esi, 60
	mov	edi, 210
	call	draw_arrow
.L64:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	draw_side_arrow, .-draw_side_arrow
	.globl	draw_arrow
	.type	draw_arrow, @function
draw_arrow:
.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, 32
	mov	ecx, esi
	mov	eax, edx
	mov	edx, edi
	mov	WORD PTR -20[rbp], dx
	mov	edx, ecx
	mov	WORD PTR -24[rbp], dx
	mov	WORD PTR -28[rbp], ax
	mov	WORD PTR -2[rbp], 0
	jmp	.L66
.L67:
	movzx	eax, WORD PTR -28[rbp]
	movzx	edx, ax
	movzx	ecx, WORD PTR -24[rbp]
	movzx	eax, WORD PTR -2[rbp]
	add	eax, ecx
	movzx	ecx, ax
	movzx	eax, WORD PTR -20[rbp]
	movzx	esi, WORD PTR -2[rbp]
	sub	eax, esi
	movzx	eax, ax
	mov	esi, ecx
	mov	edi, eax
	call	draw_point
	movzx	eax, WORD PTR -28[rbp]
	movzx	edx, ax
	movzx	ecx, WORD PTR -24[rbp]
	movzx	eax, WORD PTR -2[rbp]
	add	eax, ecx
	movzx	ecx, ax
	movzx	esi, WORD PTR -20[rbp]
	movzx	eax, WORD PTR -2[rbp]
	add	eax, esi
	movzx	eax, ax
	mov	esi, ecx
	mov	edi, eax
	call	draw_point
	movzx	eax, WORD PTR -2[rbp]
	add	eax, 1
	mov	WORD PTR -2[rbp], ax
.L66:
	movzx	eax, WORD PTR -2[rbp]
	cmp	ax, 14
	jbe	.L67
	mov	WORD PTR -2[rbp], 0
	jmp	.L68
.L69:
	movzx	eax, WORD PTR -28[rbp]
	movzx	edx, ax
	movzx	ecx, WORD PTR -24[rbp]
	movzx	eax, WORD PTR -2[rbp]
	add	eax, ecx
	movzx	ecx, ax
	movzx	eax, WORD PTR -20[rbp]
	movzx	eax, ax
	mov	esi, ecx
	mov	edi, eax
	call	draw_point
	movzx	eax, WORD PTR -2[rbp]
	add	eax, 1
	mov	WORD PTR -2[rbp], ax
.L68:
	movzx	eax, WORD PTR -2[rbp]
	cmp	ax, 29
	jbe	.L69
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	draw_arrow, .-draw_arrow
	.globl	draw_box_bg
	.type	draw_box_bg, @function
draw_box_bg:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r12
	push	rbx
	sub	rsp, 32
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	edx, edi
	mov	eax, esi
	mov	WORD PTR -36[rbp], dx
	mov	WORD PTR -40[rbp], ax
	mov	esi, 2
	mov	edi, 240
	call	div
	mov	r12d, eax
	movzx	ebx, WORD PTR -36[rbp]
	mov	esi, 2
	mov	edi, 8
	call	div
	mov	edx, eax
	mov	eax, ebx
	sub	eax, edx
	sal	eax, 4
	add	eax, r12d
	mov	WORD PTR -24[rbp], ax
	mov	esi, 2
	mov	edi, 160
	call	div
	mov	r12d, eax
	movzx	ebx, WORD PTR -40[rbp]
	mov	esi, 2
	mov	edi, 8
	call	div
	mov	edx, eax
	mov	eax, ebx
	sub	eax, edx
	sal	eax, 4
	add	eax, r12d
	mov	WORD PTR -22[rbp], ax
	movzx	eax, WORD PTR -24[rbp]
	add	eax, 16
	mov	WORD PTR -20[rbp], ax
	movzx	eax, WORD PTR -22[rbp]
	add	eax, 16
	mov	WORD PTR -18[rbp], ax
	movzx	eax, WORD PTR -18[rbp]
	movzx	ecx, ax
	movzx	eax, WORD PTR -22[rbp]
	movzx	edx, ax
	movzx	eax, WORD PTR -20[rbp]
	movzx	esi, ax
	movzx	eax, WORD PTR -24[rbp]
	movzx	eax, ax
	mov	r8d, 992
	mov	edi, eax
	call	draw_square
	nop
	add	rsp, 32
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	draw_box_bg, .-draw_box_bg
	.globl	draw_box_line
	.type	draw_box_line, @function
draw_box_line:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r12
	push	rbx
	sub	rsp, 32
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	ecx, esi
	mov	eax, edx
	mov	edx, edi
	mov	WORD PTR -36[rbp], dx
	mov	edx, ecx
	mov	WORD PTR -40[rbp], dx
	mov	WORD PTR -44[rbp], ax
	mov	esi, 2
	mov	edi, 240
	call	div
	mov	r12d, eax
	movzx	ebx, WORD PTR -36[rbp]
	mov	esi, 2
	mov	edi, 8
	call	div
	mov	edx, eax
	mov	eax, ebx
	sub	eax, edx
	sal	eax, 4
	add	eax, r12d
	mov	WORD PTR -22[rbp], ax
	mov	esi, 2
	mov	edi, 160
	call	div
	mov	r12d, eax
	movzx	ebx, WORD PTR -40[rbp]
	mov	esi, 2
	mov	edi, 8
	call	div
	mov	edx, eax
	mov	eax, ebx
	sub	eax, edx
	sal	eax, 4
	add	eax, r12d
	mov	WORD PTR -20[rbp], ax
	mov	WORD PTR -18[rbp], 0
	jmp	.L72
.L73:
	movzx	eax, WORD PTR -44[rbp]
	movzx	edx, ax
	movzx	eax, WORD PTR -20[rbp]
	movzx	ecx, ax
	movzx	esi, WORD PTR -22[rbp]
	movzx	eax, WORD PTR -18[rbp]
	add	eax, esi
	movzx	eax, ax
	mov	esi, ecx
	mov	edi, eax
	call	draw_point
	movzx	eax, WORD PTR -44[rbp]
	movzx	edx, ax
	movzx	eax, WORD PTR -20[rbp]
	add	eax, 16
	movzx	ecx, ax
	movzx	esi, WORD PTR -22[rbp]
	movzx	eax, WORD PTR -18[rbp]
	add	eax, esi
	movzx	eax, ax
	mov	esi, ecx
	mov	edi, eax
	call	draw_point
	movzx	eax, WORD PTR -44[rbp]
	movzx	edx, ax
	movzx	ecx, WORD PTR -20[rbp]
	movzx	eax, WORD PTR -18[rbp]
	add	eax, ecx
	movzx	ecx, ax
	movzx	eax, WORD PTR -22[rbp]
	movzx	eax, ax
	mov	esi, ecx
	mov	edi, eax
	call	draw_point
	movzx	eax, WORD PTR -44[rbp]
	movzx	edx, ax
	movzx	ecx, WORD PTR -20[rbp]
	movzx	eax, WORD PTR -18[rbp]
	add	eax, ecx
	movzx	ecx, ax
	movzx	eax, WORD PTR -22[rbp]
	add	eax, 16
	movzx	eax, ax
	mov	esi, ecx
	mov	edi, eax
	call	draw_point
	movzx	eax, WORD PTR -18[rbp]
	add	eax, 1
	mov	WORD PTR -18[rbp], ax
.L72:
	movzx	eax, WORD PTR -18[rbp]
	cmp	ax, 16
	jbe	.L73
	nop
	nop
	add	rsp, 32
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	draw_box_line, .-draw_box_line
	.globl	draw_box_circle
	.type	draw_box_circle, @function
draw_box_circle:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r12
	push	rbx
	sub	rsp, 32
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	ecx, esi
	mov	eax, edx
	mov	edx, edi
	mov	WORD PTR -36[rbp], dx
	mov	edx, ecx
	mov	WORD PTR -40[rbp], dx
	mov	WORD PTR -44[rbp], ax
	mov	esi, 2
	mov	edi, 240
	call	div
	mov	r12d, eax
	movzx	ebx, WORD PTR -36[rbp]
	mov	esi, 2
	mov	edi, 8
	call	div
	mov	edx, eax
	mov	eax, ebx
	sub	eax, edx
	sal	eax, 4
	lea	ebx, [r12+rax]
	mov	esi, 2
	mov	edi, 16
	call	div
	add	eax, ebx
	mov	WORD PTR -20[rbp], ax
	mov	esi, 2
	mov	edi, 160
	call	div
	mov	r12d, eax
	movzx	ebx, WORD PTR -40[rbp]
	mov	esi, 2
	mov	edi, 8
	call	div
	mov	edx, eax
	mov	eax, ebx
	sub	eax, edx
	sal	eax, 4
	lea	ebx, [r12+rax]
	mov	esi, 2
	mov	edi, 16
	call	div
	add	eax, ebx
	mov	WORD PTR -18[rbp], ax
	movzx	eax, WORD PTR -44[rbp]
	movzx	ebx, ax
	mov	esi, 2
	mov	edi, 16
	call	div
	movzx	edx, ax
	movzx	eax, WORD PTR -18[rbp]
	movzx	esi, ax
	movzx	eax, WORD PTR -20[rbp]
	movzx	eax, ax
	mov	ecx, ebx
	mov	edi, eax
	call	draw_circle
	nop
	add	rsp, 32
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	draw_box_circle, .-draw_box_circle
	.globl	draw_circle
	.type	draw_circle, @function
draw_circle:
.LFB15:
	.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	eax, ecx
	mov	ecx, edi
	mov	WORD PTR -20[rbp], cx
	mov	ecx, esi
	mov	WORD PTR -24[rbp], cx
	mov	WORD PTR -28[rbp], dx
	mov	WORD PTR -32[rbp], ax
	movzx	eax, WORD PTR -20[rbp]
	movzx	edx, WORD PTR -28[rbp]
	sub	eax, edx
	mov	WORD PTR -12[rbp], ax
	movzx	edx, WORD PTR -20[rbp]
	movzx	eax, WORD PTR -28[rbp]
	add	eax, edx
	mov	WORD PTR -10[rbp], ax
	movzx	eax, WORD PTR -24[rbp]
	movzx	edx, WORD PTR -28[rbp]
	sub	eax, edx
	mov	WORD PTR -8[rbp], ax
	movzx	edx, WORD PTR -24[rbp]
	movzx	eax, WORD PTR -28[rbp]
	add	eax, edx
	mov	WORD PTR -6[rbp], ax
	movzx	eax, WORD PTR -8[rbp]
	mov	WORD PTR -2[rbp], ax
	jmp	.L76
.L80:
	movzx	eax, WORD PTR -12[rbp]
	mov	WORD PTR -4[rbp], ax
	jmp	.L77
.L79:
	movzx	eax, WORD PTR -28[rbp]
	movzx	edx, ax
	movzx	eax, WORD PTR -28[rbp]
	movzx	eax, ax
	imul	eax, edx
	movzx	edx, WORD PTR -20[rbp]
	movzx	edx, dx
	movzx	ecx, WORD PTR -4[rbp]
	movzx	ecx, cx
	mov	esi, edx
	sub	esi, ecx
	movzx	edx, WORD PTR -20[rbp]
	movzx	edx, dx
	movzx	ecx, WORD PTR -4[rbp]
	movzx	ecx, cx
	sub	edx, ecx
	mov	edi, esi
	imul	edi, edx
	movzx	edx, WORD PTR -24[rbp]
	movzx	edx, dx
	movzx	ecx, WORD PTR -2[rbp]
	movzx	ecx, cx
	mov	esi, edx
	sub	esi, ecx
	movzx	edx, WORD PTR -24[rbp]
	movzx	edx, dx
	movzx	ecx, WORD PTR -2[rbp]
	movzx	ecx, cx
	sub	edx, ecx
	imul	edx, esi
	add	edx, edi
	cmp	eax, edx
	jle	.L78
	movzx	eax, WORD PTR -32[rbp]
	movzx	edx, ax
	movzx	eax, WORD PTR -2[rbp]
	movzx	ecx, ax
	movzx	eax, WORD PTR -4[rbp]
	movzx	eax, ax
	mov	esi, ecx
	mov	edi, eax
	call	draw_point
.L78:
	movzx	eax, WORD PTR -4[rbp]
	add	eax, 1
	mov	WORD PTR -4[rbp], ax
.L77:
	movzx	edx, WORD PTR -4[rbp]
	movzx	eax, WORD PTR -10[rbp]
	cmp	dx, ax
	jb	.L79
	movzx	eax, WORD PTR -2[rbp]
	add	eax, 1
	mov	WORD PTR -2[rbp], ax
.L76:
	movzx	edx, WORD PTR -2[rbp]
	movzx	eax, WORD PTR -6[rbp]
	cmp	dx, ax
	jb	.L80
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	draw_circle, .-draw_circle
	.globl	draw_square
	.type	draw_square, @function
draw_square:
.LFB16:
	.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	eax, ecx
	mov	ecx, r8d
	mov	WORD PTR -20[rbp], di
	mov	WORD PTR -24[rbp], si
	mov	WORD PTR -28[rbp], dx
	mov	WORD PTR -32[rbp], ax
	mov	eax, ecx
	mov	WORD PTR -36[rbp], ax
	movzx	edx, WORD PTR -24[rbp]
	movzx	eax, WORD PTR -20[rbp]
	cmp	dx, ax
	jnb	.L82
	movzx	eax, WORD PTR -24[rbp]
	mov	WORD PTR -8[rbp], ax
	movzx	eax, WORD PTR -20[rbp]
	mov	WORD PTR -24[rbp], ax
	movzx	eax, WORD PTR -8[rbp]
	mov	WORD PTR -20[rbp], ax
.L82:
	movzx	edx, WORD PTR -32[rbp]
	movzx	eax, WORD PTR -28[rbp]
	cmp	dx, ax
	jnb	.L83
	movzx	eax, WORD PTR -32[rbp]
	mov	WORD PTR -6[rbp], ax
	movzx	eax, WORD PTR -28[rbp]
	mov	WORD PTR -32[rbp], ax
	movzx	eax, WORD PTR -6[rbp]
	mov	WORD PTR -28[rbp], ax
.L83:
	movzx	eax, WORD PTR -28[rbp]
	mov	WORD PTR -2[rbp], ax
	jmp	.L84
.L87:
	movzx	eax, WORD PTR -20[rbp]
	mov	WORD PTR -4[rbp], ax
	jmp	.L85
.L86:
	movzx	eax, WORD PTR -36[rbp]
	movzx	edx, ax
	movzx	eax, WORD PTR -2[rbp]
	movzx	ecx, ax
	movzx	eax, WORD PTR -4[rbp]
	movzx	eax, ax
	mov	esi, ecx
	mov	edi, eax
	call	draw_point
	movzx	eax, WORD PTR -4[rbp]
	add	eax, 1
	mov	WORD PTR -4[rbp], ax
.L85:
	movzx	edx, WORD PTR -4[rbp]
	movzx	eax, WORD PTR -24[rbp]
	cmp	dx, ax
	jb	.L86
	movzx	eax, WORD PTR -2[rbp]
	add	eax, 1
	mov	WORD PTR -2[rbp], ax
.L84:
	movzx	edx, WORD PTR -2[rbp]
	movzx	eax, WORD PTR -32[rbp]
	cmp	dx, ax
	jb	.L87
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	draw_square, .-draw_square
	.globl	draw_window
	.type	draw_window, @function
draw_window:
.LFB17:
	.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	eax, edi
	mov	WORD PTR -20[rbp], ax
	mov	WORD PTR -2[rbp], 0
	jmp	.L89
.L92:
	mov	WORD PTR -4[rbp], 0
	jmp	.L90
.L91:
	movzx	eax, WORD PTR -20[rbp]
	movzx	edx, ax
	movzx	eax, WORD PTR -2[rbp]
	movzx	ecx, ax
	movzx	eax, WORD PTR -4[rbp]
	movzx	eax, ax
	mov	esi, ecx
	mov	edi, eax
	call	draw_point
	movzx	eax, WORD PTR -4[rbp]
	add	eax, 1
	mov	WORD PTR -4[rbp], ax
.L90:
	movzx	eax, WORD PTR -4[rbp]
	cmp	ax, 239
	jbe	.L91
	movzx	eax, WORD PTR -2[rbp]
	add	eax, 1
	mov	WORD PTR -2[rbp], ax
.L89:
	movzx	eax, WORD PTR -2[rbp]
	cmp	ax, 159
	jbe	.L92
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	draw_window, .-draw_window
	.globl	draw_point
	.type	draw_point, @function
draw_point:
.LFB18:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	ecx, esi
	mov	eax, edx
	mov	edx, edi
	mov	WORD PTR -20[rbp], dx
	mov	edx, ecx
	mov	WORD PTR -24[rbp], dx
	mov	WORD PTR -28[rbp], ax
	mov	QWORD PTR -8[rbp], 100663296
	movzx	eax, WORD PTR -20[rbp]
	movzx	edx, ax
	movzx	eax, WORD PTR -24[rbp]
	movzx	eax, ax
	imul	eax, eax, 240
	add	eax, edx
	cdqe
	add	rax, rax
	add	QWORD PTR -8[rbp], rax
	movzx	edx, WORD PTR -28[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	WORD PTR [rax], dx
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	draw_point, .-draw_point
	.globl	generate_delay
	.type	generate_delay, @function
generate_delay:
.LFB19:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	WORD PTR -2[rbp], 0
	jmp	.L95
.L96:
	movzx	eax, WORD PTR -2[rbp]
	add	eax, 1
	mov	WORD PTR -2[rbp], ax
.L95:
	movzx	eax, WORD PTR -2[rbp]
	cmp	ax, 4999
	jbe	.L96
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.size	generate_delay, .-generate_delay
	.globl	play_othello
	.type	play_othello, @function
play_othello:
.LFB20:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r12
	push	rbx
	sub	rsp, 240
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -232[rbp], 67109168
	mov	edi, 25368
	call	draw_window
	mov	eax, 0
	call	draw_board
	mov	WORD PTR -252[rbp], 0
	mov	WORD PTR -250[rbp], 0
	movzx	eax, WORD PTR -250[rbp]
	movzx	ecx, ax
	movzx	eax, WORD PTR -252[rbp]
	movzx	eax, ax
	mov	edx, 31
	mov	esi, ecx
	mov	edi, eax
	call	draw_box_line
	mov	WORD PTR -246[rbp], 0
	jmp	.L98
.L101:
	mov	WORD PTR -248[rbp], 0
	jmp	.L99
.L100:
	movzx	eax, WORD PTR -246[rbp]
	movzx	eax, ax
	movzx	edx, WORD PTR -248[rbp]
	movzx	edx, dx
	movsx	rdx, edx
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	WORD PTR -160[rbp+rax*2], 0
	movzx	eax, WORD PTR -248[rbp]
	add	eax, 1
	mov	WORD PTR -248[rbp], ax
.L99:
	movzx	eax, WORD PTR -248[rbp]
	cmp	ax, 7
	jbe	.L100
	movzx	eax, WORD PTR -246[rbp]
	add	eax, 1
	mov	WORD PTR -246[rbp], ax
.L98:
	movzx	eax, WORD PTR -246[rbp]
	cmp	ax, 7
	jbe	.L101
	mov	WORD PTR -106[rbp], 1
	mov	WORD PTR -88[rbp], 1
	mov	WORD PTR -104[rbp], -1
	mov	WORD PTR -90[rbp], -1
	mov	WORD PTR -244[rbp], 1
	movzx	eax, WORD PTR -244[rbp]
	neg	eax
	mov	WORD PTR -242[rbp], ax
.L125:
	mov	rax, QWORD PTR -232[rbp]
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 16
	test	eax, eax
	jne	.L102
	movzx	eax, WORD PTR -250[rbp]
	movzx	ecx, ax
	movzx	eax, WORD PTR -252[rbp]
	add	eax, 1
	movzx	edx, ax
	movzx	eax, WORD PTR -250[rbp]
	movzx	esi, ax
	movzx	eax, WORD PTR -252[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	move_player
	mov	WORD PTR -252[rbp], ax
	nop
.L103:
	mov	rax, QWORD PTR -232[rbp]
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 16
	cmp	eax, 16
	jne	.L103
	jmp	.L125
.L102:
	mov	rax, QWORD PTR -232[rbp]
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 32
	test	eax, eax
	jne	.L105
	movzx	eax, WORD PTR -250[rbp]
	movzx	ecx, ax
	movzx	eax, WORD PTR -252[rbp]
	sub	eax, 1
	movzx	edx, ax
	movzx	eax, WORD PTR -250[rbp]
	movzx	esi, ax
	movzx	eax, WORD PTR -252[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	move_player
	mov	WORD PTR -252[rbp], ax
	nop
.L106:
	mov	rax, QWORD PTR -232[rbp]
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 32
	cmp	eax, 32
	jne	.L106
	jmp	.L125
.L105:
	mov	rax, QWORD PTR -232[rbp]
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 64
	test	eax, eax
	jne	.L107
	movzx	eax, WORD PTR -250[rbp]
	sub	eax, 1
	movzx	ecx, ax
	movzx	eax, WORD PTR -252[rbp]
	movzx	edx, ax
	movzx	eax, WORD PTR -250[rbp]
	movzx	esi, ax
	movzx	eax, WORD PTR -252[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	move_player
	mov	WORD PTR -250[rbp], ax
	nop
.L108:
	mov	rax, QWORD PTR -232[rbp]
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 64
	cmp	eax, 64
	jne	.L108
	jmp	.L125
.L107:
	mov	rax, QWORD PTR -232[rbp]
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 128
	test	eax, eax
	jne	.L109
	movzx	eax, WORD PTR -250[rbp]
	add	eax, 1
	movzx	ecx, ax
	movzx	eax, WORD PTR -252[rbp]
	movzx	edx, ax
	movzx	eax, WORD PTR -250[rbp]
	movzx	esi, ax
	movzx	eax, WORD PTR -252[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	move_player
	mov	WORD PTR -250[rbp], ax
	nop
.L110:
	mov	rax, QWORD PTR -232[rbp]
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 128
	cmp	eax, 128
	jne	.L110
	jmp	.L125
.L109:
	mov	rax, QWORD PTR -232[rbp]
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 1
	test	eax, eax
	jne	.L111
	movzx	eax, WORD PTR -244[rbp]
	movzx	ecx, ax
	movzx	eax, WORD PTR -250[rbp]
	movzx	esi, ax
	movzx	eax, WORD PTR -252[rbp]
	movzx	eax, ax
	lea	rdx, -160[rbp]
	mov	edi, eax
	call	can_put_piece
	movzx	edx, WORD PTR -244[rbp]
	cmp	ax, dx
	jne	.L131
	movzx	eax, WORD PTR -244[rbp]
	movzx	edx, ax
	movzx	eax, WORD PTR -250[rbp]
	movzx	ecx, ax
	movzx	eax, WORD PTR -252[rbp]
	movzx	eax, ax
	movzx	esi, WORD PTR -250[rbp]
	movzx	ebx, si
	movzx	esi, WORD PTR -252[rbp]
	movzx	r12d, si
	mov	esi, ecx
	mov	edi, eax
	call	put_piece
	movsx	rcx, r12d
	movsx	rdx, ebx
	sal	rdx, 3
	add	rdx, rcx
	mov	WORD PTR -160[rbp+rdx*2], ax
	mov	WORD PTR -192[rbp], 0
	mov	WORD PTR -190[rbp], -1
	mov	WORD PTR -188[rbp], 1
	mov	WORD PTR -186[rbp], -1
	mov	WORD PTR -184[rbp], 1
	mov	WORD PTR -182[rbp], 0
	mov	WORD PTR -180[rbp], 1
	mov	WORD PTR -178[rbp], 1
	mov	WORD PTR -176[rbp], 0
	mov	WORD PTR -174[rbp], 1
	mov	WORD PTR -172[rbp], -1
	mov	WORD PTR -170[rbp], 1
	mov	WORD PTR -168[rbp], -1
	mov	WORD PTR -166[rbp], 0
	mov	WORD PTR -164[rbp], -1
	mov	WORD PTR -162[rbp], -1
	mov	rax, QWORD PTR -192[rbp]
	mov	rdx, QWORD PTR -184[rbp]
	mov	QWORD PTR -224[rbp], rax
	mov	QWORD PTR -216[rbp], rdx
	mov	rax, QWORD PTR -176[rbp]
	mov	rdx, QWORD PTR -168[rbp]
	mov	QWORD PTR -208[rbp], rax
	mov	QWORD PTR -200[rbp], rdx
	mov	WORD PTR -240[rbp], 0
	jmp	.L113
.L122:
	movzx	eax, WORD PTR -252[rbp]
	mov	WORD PTR -238[rbp], ax
	movzx	eax, WORD PTR -250[rbp]
	mov	WORD PTR -236[rbp], ax
	mov	WORD PTR -234[rbp], 0
.L121:
	movzx	eax, WORD PTR -240[rbp]
	movzx	eax, ax
	cdqe
	movzx	edx, WORD PTR -224[rbp+rax*4]
	movzx	eax, WORD PTR -238[rbp]
	add	eax, edx
	mov	WORD PTR -238[rbp], ax
	movzx	eax, WORD PTR -240[rbp]
	movzx	eax, ax
	cdqe
	movzx	edx, WORD PTR -222[rbp+rax*4]
	movzx	eax, WORD PTR -236[rbp]
	add	eax, edx
	mov	WORD PTR -236[rbp], ax
	movzx	eax, WORD PTR -238[rbp]
	movzx	eax, WORD PTR -238[rbp]
	cmp	ax, 7
	ja	.L114
	movzx	eax, WORD PTR -236[rbp]
	movzx	eax, WORD PTR -236[rbp]
	cmp	ax, 7
	ja	.L114
	movzx	eax, WORD PTR -236[rbp]
	movzx	eax, ax
	movzx	edx, WORD PTR -238[rbp]
	movzx	edx, dx
	movsx	rdx, edx
	cdqe
	sal	rax, 3
	add	rax, rdx
	movzx	eax, WORD PTR -160[rbp+rax*2]
	test	ax, ax
	je	.L128
	movzx	eax, WORD PTR -236[rbp]
	movzx	eax, ax
	movzx	edx, WORD PTR -238[rbp]
	movzx	edx, dx
	movsx	rdx, edx
	cdqe
	sal	rax, 3
	add	rax, rdx
	movzx	edx, WORD PTR -160[rbp+rax*2]
	movzx	eax, WORD PTR -242[rbp]
	cmp	dx, ax
	jne	.L116
	mov	WORD PTR -234[rbp], 1
	jmp	.L121
.L116:
	movzx	eax, WORD PTR -236[rbp]
	movzx	eax, ax
	movzx	edx, WORD PTR -238[rbp]
	movzx	edx, dx
	movsx	rdx, edx
	cdqe
	sal	rax, 3
	add	rax, rdx
	movzx	edx, WORD PTR -160[rbp+rax*2]
	movzx	eax, WORD PTR -244[rbp]
	cmp	dx, ax
	jne	.L121
	movzx	eax, WORD PTR -234[rbp]
	cmp	ax, 1
	jne	.L129
.L120:
	movzx	eax, WORD PTR -240[rbp]
	movzx	eax, ax
	cdqe
	movzx	edx, WORD PTR -224[rbp+rax*4]
	movzx	eax, WORD PTR -238[rbp]
	sub	eax, edx
	mov	WORD PTR -238[rbp], ax
	movzx	eax, WORD PTR -240[rbp]
	movzx	eax, ax
	cdqe
	movzx	edx, WORD PTR -222[rbp+rax*4]
	movzx	eax, WORD PTR -236[rbp]
	sub	eax, edx
	mov	WORD PTR -236[rbp], ax
	movzx	eax, WORD PTR -236[rbp]
	movzx	eax, ax
	movzx	edx, WORD PTR -238[rbp]
	movzx	edx, dx
	movsx	rdx, edx
	cdqe
	sal	rax, 3
	add	rax, rdx
	movzx	edx, WORD PTR -160[rbp+rax*2]
	movzx	eax, WORD PTR -244[rbp]
	cmp	dx, ax
	je	.L130
	movzx	eax, WORD PTR -244[rbp]
	movzx	edx, ax
	movzx	eax, WORD PTR -236[rbp]
	movzx	ecx, ax
	movzx	eax, WORD PTR -238[rbp]
	movzx	eax, ax
	movzx	esi, WORD PTR -236[rbp]
	movzx	ebx, si
	movzx	esi, WORD PTR -238[rbp]
	movzx	r12d, si
	mov	esi, ecx
	mov	edi, eax
	call	put_piece
	movsx	rcx, r12d
	movsx	rdx, ebx
	sal	rdx, 3
	add	rdx, rcx
	mov	WORD PTR -160[rbp+rdx*2], ax
	jmp	.L120
.L130:
	nop
	jmp	.L129
.L128:
	nop
	jmp	.L114
.L129:
	nop
.L114:
	movzx	eax, WORD PTR -240[rbp]
	add	eax, 1
	mov	WORD PTR -240[rbp], ax
.L113:
	movzx	eax, WORD PTR -240[rbp]
	cmp	ax, 7
	jbe	.L122
	lea	rax, -160[rbp]
	mov	rdi, rax
	call	is_gameset
	movzx	eax, WORD PTR -244[rbp]
	neg	eax
	mov	WORD PTR -244[rbp], ax
	movzx	eax, WORD PTR -242[rbp]
	neg	eax
	mov	WORD PTR -242[rbp], ax
	movzx	eax, WORD PTR -244[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	draw_side_arrow
	movzx	eax, WORD PTR -244[rbp]
	movzx	edx, ax
	lea	rax, -160[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	can_put_any_piece
	test	ax, ax
	jne	.L131
	movzx	eax, WORD PTR -244[rbp]
	neg	eax
	mov	WORD PTR -244[rbp], ax
	movzx	eax, WORD PTR -242[rbp]
	neg	eax
	mov	WORD PTR -242[rbp], ax
	movzx	eax, WORD PTR -244[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	draw_side_arrow
.L131:
	nop
.L123:
	mov	rax, QWORD PTR -232[rbp]
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 1
	cmp	eax, 1
	jne	.L123
	jmp	.L125
.L111:
	mov	rax, QWORD PTR -232[rbp]
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 4
	test	eax, eax
	jne	.L125
	movzx	eax, WORD PTR -244[rbp]
	neg	eax
	mov	WORD PTR -244[rbp], ax
	movzx	eax, WORD PTR -242[rbp]
	neg	eax
	mov	WORD PTR -242[rbp], ax
	movzx	eax, WORD PTR -244[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	draw_side_arrow
	nop
.L124:
	mov	rax, QWORD PTR -232[rbp]
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 4
	cmp	eax, 4
	jne	.L124
	jmp	.L125
	.cfi_endproc
.LFE20:
	.size	play_othello, .-play_othello
	.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	"360461.c"
	.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, #67108864
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, .L3
	strh	r2, [r3]	@ movhi
	bl	play_othello
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L4:
	.align	2
.L3:
	.word	3843
	.size	main, .-main
	.align	2
	.global	div
	.syntax unified
	.arm
	.fpu softvfp
	.type	div, %function
div:
	@ 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, r0
	mov	r2, r1
	strh	r3, [fp, #-14]	@ movhi
	mov	r3, r2	@ movhi
	strh	r3, [fp, #-16]	@ movhi
	mov	r3, #0
	strh	r3, [fp, #-6]	@ movhi
	b	.L6
.L7:
	ldrh	r3, [fp, #-16]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	ldrh	r2, [fp, #-14]	@ movhi
	lsl	r2, r2, #16
	lsr	r2, r2, #16
	sub	r3, r2, r3
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-14]	@ movhi
	ldrh	r3, [fp, #-6]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-6]	@ movhi
.L6:
	ldrh	r3, [fp, #-14]	@ movhi
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldrh	r3, [fp, #-16]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	cmp	r2, r3
	bcs	.L7
	ldrh	r3, [fp, #-6]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	div, .-div
	.align	2
	.global	move_player
	.syntax unified
	.arm
	.fpu softvfp
	.type	move_player, %function
move_player:
	@ 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	ip, r0
	mov	r0, r1
	mov	r1, r2
	mov	r2, r3
	mov	r3, ip	@ movhi
	strh	r3, [fp, #-6]	@ movhi
	mov	r3, r0	@ movhi
	strh	r3, [fp, #-8]	@ movhi
	mov	r3, r1	@ movhi
	strh	r3, [fp, #-10]	@ movhi
	mov	r3, r2	@ movhi
	strh	r3, [fp, #-12]	@ movhi
	ldrh	r3, [fp, #-10]	@ movhi
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldrh	r3, [fp, #-6]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	cmp	r2, r3
	beq	.L10
	ldrh	r3, [fp, #-10]	@ movhi
	ldrh	r3, [fp, #-10]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	cmp	r3, #7
	bhi	.L11
	ldrh	r3, [fp, #-6]	@ movhi
	lsl	r3, r3, #16
	lsr	r0, r3, #16
	ldrh	r3, [fp, #-8]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r2, #0
	mov	r1, r3
	bl	draw_box_line
	ldrh	r3, [fp, #-10]	@ movhi
	lsl	r3, r3, #16
	lsr	r0, r3, #16
	ldrh	r3, [fp, #-12]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r2, #31
	mov	r1, r3
	bl	draw_box_line
	ldrh	r3, [fp, #-10]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	b	.L9
.L11:
	ldrh	r3, [fp, #-6]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	b	.L9
.L10:
	ldrh	r3, [fp, #-12]	@ movhi
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldrh	r3, [fp, #-8]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	cmp	r2, r3
	beq	.L13
	ldrh	r3, [fp, #-12]	@ movhi
	ldrh	r3, [fp, #-12]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	cmp	r3, #7
	bhi	.L14
	ldrh	r3, [fp, #-6]	@ movhi
	lsl	r3, r3, #16
	lsr	r0, r3, #16
	ldrh	r3, [fp, #-8]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r2, #0
	mov	r1, r3
	bl	draw_box_line
	ldrh	r3, [fp, #-10]	@ movhi
	lsl	r3, r3, #16
	lsr	r0, r3, #16
	ldrh	r3, [fp, #-12]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r2, #31
	mov	r1, r3
	bl	draw_box_line
	ldrh	r3, [fp, #-12]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	b	.L9
.L14:
	ldrh	r3, [fp, #-8]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	b	.L9
.L13:
.L9:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	move_player, .-move_player
	.align	2
	.global	put_piece
	.syntax unified
	.arm
	.fpu softvfp
	.type	put_piece, %function
put_piece:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	mov	r3, r0
	strh	r3, [fp, #-14]	@ movhi
	mov	r3, r1	@ movhi
	strh	r3, [fp, #-16]	@ movhi
	mov	r3, r2	@ movhi
	strh	r3, [fp, #-18]	@ movhi
	ldrh	r3, [fp, #-18]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	cmp	r3, #1
	bne	.L16
	mov	r3, #0
	strh	r3, [fp, #-6]	@ movhi
	b	.L17
.L16:
	mvn	r3, #32768
	strh	r3, [fp, #-6]	@ movhi
.L17:
	ldrh	r3, [fp, #-14]	@ movhi
	lsl	r3, r3, #16
	lsr	r0, r3, #16
	ldrh	r3, [fp, #-16]	@ movhi
	lsl	r3, r3, #16
	lsr	r1, r3, #16
	ldrh	r3, [fp, #-6]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r2, r3
	bl	draw_box_circle
	ldrh	r3, [fp, #-18]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	put_piece, .-put_piece
	.section	.rodata
	.align	2
.LC0:
	.short	0
	.short	-1
	.short	1
	.short	-1
	.short	1
	.short	0
	.short	1
	.short	1
	.short	0
	.short	1
	.short	-1
	.short	1
	.short	-1
	.short	0
	.short	-1
	.short	-1
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	can_put_piece
	.syntax unified
	.arm
	.fpu softvfp
	.type	can_put_piece, %function
can_put_piece:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #64
	str	r2, [fp, #-60]
	mov	r2, r3
	mov	r3, r0	@ movhi
	strh	r3, [fp, #-54]	@ movhi
	mov	r3, r1	@ movhi
	strh	r3, [fp, #-56]	@ movhi
	mov	r3, r2	@ movhi
	strh	r3, [fp, #-62]	@ movhi
	ldr	r3, .L33
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldrh	r3, [fp, #-56]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	lsl	r3, r3, #4
	ldr	r2, [fp, #-60]
	add	r2, r2, r3
	ldrh	r3, [fp, #-54]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	cmp	r3, #0
	beq	.L20
	mov	r3, #0
	b	.L21
.L20:
	ldrh	r3, [fp, #-62]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	rsb	r3, r3, #0
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-50]	@ movhi
	ldr	r3, .L33+4
	sub	ip, fp, #40
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	mov	r3, #0
	strh	r3, [fp, #-48]	@ movhi
	b	.L22
.L29:
	ldrh	r3, [fp, #-54]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-46]	@ movhi
	ldrh	r3, [fp, #-56]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-44]	@ movhi
	mov	r3, #0
	strh	r3, [fp, #-42]	@ movhi
.L28:
	ldrh	r3, [fp, #-48]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	r3, r3, #36
	ldrh	r3, [r3]	@ movhi
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldrh	r3, [fp, #-46]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r2, r3
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-46]	@ movhi
	ldrh	r3, [fp, #-48]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	r3, r3, #34
	ldrh	r3, [r3]	@ movhi
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldrh	r3, [fp, #-44]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r2, r3
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-44]	@ movhi
	ldrh	r3, [fp, #-46]	@ movhi
	ldrh	r3, [fp, #-46]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	cmp	r3, #7
	bhi	.L23
	ldrh	r3, [fp, #-44]	@ movhi
	ldrh	r3, [fp, #-44]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	cmp	r3, #7
	bhi	.L23
	ldrh	r3, [fp, #-44]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	lsl	r3, r3, #4
	ldr	r2, [fp, #-60]
	add	r2, r2, r3
	ldrh	r3, [fp, #-46]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	cmp	r3, #0
	beq	.L31
	ldrh	r3, [fp, #-44]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	lsl	r3, r3, #4
	ldr	r2, [fp, #-60]
	add	r2, r2, r3
	ldrh	r3, [fp, #-46]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]	@ movhi
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldrh	r3, [fp, #-50]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	cmp	r2, r3
	bne	.L25
	mov	r3, #1
	strh	r3, [fp, #-42]	@ movhi
	b	.L28
.L25:
	ldrh	r3, [fp, #-44]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	lsl	r3, r3, #4
	ldr	r2, [fp, #-60]
	add	r2, r2, r3
	ldrh	r3, [fp, #-46]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]	@ movhi
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldrh	r3, [fp, #-62]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	cmp	r2, r3
	bne	.L28
	ldrh	r3, [fp, #-42]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	cmp	r3, #1
	bne	.L32
	ldrh	r3, [fp, #-62]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	b	.L21
.L31:
	nop
	b	.L23
.L32:
	nop
.L23:
	ldrh	r3, [fp, #-48]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-48]	@ movhi
.L22:
	ldrh	r3, [fp, #-48]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	cmp	r3, #7
	bls	.L29
	mov	r3, #0
.L21:
	ldr	r2, .L33
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L30
	bl	__stack_chk_fail
.L30:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L34:
	.align	2
.L33:
	.word	.LC1
	.word	.LC0
	.size	can_put_piece, .-can_put_piece
	.align	2
	.global	can_put_any_piece
	.syntax unified
	.arm
	.fpu softvfp
	.type	can_put_any_piece, %function
can_put_any_piece:
	@ 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, r1
	strh	r3, [fp, #-18]	@ movhi
	mov	r3, #0
	strh	r3, [fp, #-6]	@ movhi
	b	.L36
.L41:
	mov	r3, #0
	strh	r3, [fp, #-8]	@ movhi
	b	.L37
.L40:
	ldrh	r3, [fp, #-6]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	lsl	r3, r3, #4
	ldr	r2, [fp, #-16]
	add	r2, r2, r3
	ldrh	r3, [fp, #-8]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	cmp	r3, #0
	bne	.L38
	ldrh	r3, [fp, #-8]	@ movhi
	lsl	r3, r3, #16
	lsr	r0, r3, #16
	ldrh	r3, [fp, #-6]	@ movhi
	lsl	r3, r3, #16
	lsr	r1, r3, #16
	ldrh	r3, [fp, #-18]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	ldr	r2, [fp, #-16]
	bl	can_put_piece
	mov	r3, r0
	mov	r2, r3
	ldrh	r3, [fp, #-18]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	cmp	r2, r3
	bne	.L38
	ldrh	r3, [fp, #-18]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	b	.L39
.L38:
	ldrh	r3, [fp, #-8]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-8]	@ movhi
.L37:
	ldrh	r3, [fp, #-8]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	cmp	r3, #7
	bls	.L40
	ldrh	r3, [fp, #-6]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-6]	@ movhi
.L36:
	ldrh	r3, [fp, #-6]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	cmp	r3, #7
	bls	.L41
	mov	r3, #0
.L39:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	can_put_any_piece, .-can_put_any_piece
	.align	2
	.global	is_gameset
	.syntax unified
	.arm
	.fpu softvfp
	.type	is_gameset, %function
is_gameset:
	@ 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
	strh	r3, [fp, #-14]	@ movhi
	mov	r3, #0
	strh	r3, [fp, #-12]	@ movhi
	mov	r3, #0
	strh	r3, [fp, #-10]	@ movhi
	mov	r3, #0
	strh	r3, [fp, #-6]	@ movhi
	b	.L43
.L49:
	mov	r3, #0
	strh	r3, [fp, #-8]	@ movhi
	b	.L44
.L48:
	ldrh	r3, [fp, #-6]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	lsl	r3, r3, #4
	ldr	r2, [fp, #-24]
	add	r2, r2, r3
	ldrh	r3, [fp, #-8]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	cmp	r3, #0
	bne	.L45
	ldrh	r3, [fp, #-14]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-14]	@ movhi
	b	.L46
.L45:
	ldrh	r3, [fp, #-6]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	lsl	r3, r3, #4
	ldr	r2, [fp, #-24]
	add	r2, r2, r3
	ldrh	r3, [fp, #-8]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	cmp	r3, #1
	bne	.L47
	ldrh	r3, [fp, #-12]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-12]	@ movhi
	b	.L46
.L47:
	ldrh	r3, [fp, #-10]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-10]	@ movhi
.L46:
	ldrh	r3, [fp, #-8]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-8]	@ movhi
.L44:
	ldrh	r3, [fp, #-8]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	cmp	r3, #7
	bls	.L48
	ldrh	r3, [fp, #-6]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-6]	@ movhi
.L43:
	ldrh	r3, [fp, #-6]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	cmp	r3, #7
	bls	.L49
	ldrh	r3, [fp, #-12]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	cmp	r3, #0
	bne	.L50
	ldr	r0, .L58
	bl	draw_finish_window
	b	.L51
.L50:
	ldrh	r3, [fp, #-10]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	cmp	r3, #0
	bne	.L52
	mov	r0, #0
	bl	draw_finish_window
	b	.L51
.L52:
	ldrh	r3, [fp, #-14]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	cmp	r3, #0
	bne	.L57
	ldrh	r3, [fp, #-12]	@ movhi
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldrh	r3, [fp, #-10]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	cmp	r2, r3
	bne	.L54
	ldr	r0, .L58+4
	bl	draw_finish_window
	b	.L51
.L54:
	ldrh	r3, [fp, #-12]	@ movhi
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldrh	r3, [fp, #-10]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	cmp	r2, r3
	bls	.L55
	mov	r0, #0
	bl	draw_finish_window
	b	.L51
.L55:
	ldr	r0, .L58
	bl	draw_finish_window
.L51:
	b	.L51
.L57:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L59:
	.align	2
.L58:
	.word	32767
	.word	25368
	.size	is_gameset, .-is_gameset
	.align	2
	.global	draw_finish_window
	.syntax unified
	.arm
	.fpu softvfp
	.type	draw_finish_window, %function
draw_finish_window:
	@ 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, r0
	strh	r3, [fp, #-6]	@ movhi
	ldrh	r3, [fp, #-6]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	draw_window
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	draw_finish_window, .-draw_finish_window
	.align	2
	.global	draw_board
	.syntax unified
	.arm
	.fpu softvfp
	.type	draw_board, %function
draw_board:
	@ 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
	strh	r3, [fp, #-6]	@ movhi
	b	.L62
.L65:
	mov	r3, #0
	strh	r3, [fp, #-8]	@ movhi
	b	.L63
.L64:
	ldrh	r3, [fp, #-8]	@ movhi
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldrh	r3, [fp, #-6]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r1, r3
	mov	r0, r2
	bl	draw_box_bg
	ldrh	r3, [fp, #-8]	@ movhi
	lsl	r3, r3, #16
	lsr	r0, r3, #16
	ldrh	r3, [fp, #-6]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r2, #0
	mov	r1, r3
	bl	draw_box_line
	ldrh	r3, [fp, #-8]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-8]	@ movhi
.L63:
	ldrh	r3, [fp, #-8]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	cmp	r3, #7
	bls	.L64
	ldrh	r3, [fp, #-6]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-6]	@ movhi
.L62:
	ldrh	r3, [fp, #-6]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	cmp	r3, #7
	bls	.L65
	mov	r2, #0
	mov	r1, #3
	mov	r0, #3
	bl	draw_box_circle
	mov	r2, #0
	mov	r1, #4
	mov	r0, #4
	bl	draw_box_circle
	ldr	r2, .L66
	mov	r1, #4
	mov	r0, #3
	bl	draw_box_circle
	ldr	r2, .L66
	mov	r1, #3
	mov	r0, #4
	bl	draw_box_circle
	bl	draw_side_circle
	mov	r0, #1
	bl	draw_side_arrow
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L67:
	.align	2
.L66:
	.word	32767
	.size	draw_board, .-draw_board
	.align	2
	.global	draw_side_circle
	.syntax unified
	.arm
	.fpu softvfp
	.type	draw_side_circle, %function
draw_side_circle:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	mov	r3, #30
	strh	r3, [fp, #-14]	@ movhi
	mov	r3, #30
	strh	r3, [fp, #-12]	@ movhi
	mov	r3, #210
	strh	r3, [fp, #-10]	@ movhi
	mov	r3, #30
	strh	r3, [fp, #-8]	@ movhi
	mov	r3, #20
	strh	r3, [fp, #-6]	@ movhi
	ldrh	r3, [fp, #-14]	@ movhi
	lsl	r3, r3, #16
	lsr	r0, r3, #16
	ldrh	r3, [fp, #-12]	@ movhi
	lsl	r3, r3, #16
	lsr	r1, r3, #16
	ldrh	r3, [fp, #-6]	@ movhi
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	mov	r3, #0
	bl	draw_circle
	ldrh	r3, [fp, #-10]	@ movhi
	lsl	r3, r3, #16
	lsr	r0, r3, #16
	ldrh	r3, [fp, #-8]	@ movhi
	lsl	r3, r3, #16
	lsr	r1, r3, #16
	ldrh	r3, [fp, #-6]	@ movhi
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldr	r3, .L69
	bl	draw_circle
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L70:
	.align	2
.L69:
	.word	32767
	.size	draw_side_circle, .-draw_side_circle
	.align	2
	.global	draw_side_arrow
	.syntax unified
	.arm
	.fpu softvfp
	.type	draw_side_arrow, %function
draw_side_arrow:
	@ 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, r0
	strh	r3, [fp, #-6]	@ movhi
	ldrh	r3, [fp, #-6]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	cmp	r3, #1
	bne	.L72
	mov	r2, #31
	mov	r1, #60
	mov	r0, #30
	bl	draw_arrow
	ldr	r2, .L75
	mov	r1, #60
	mov	r0, #210
	bl	draw_arrow
	b	.L74
.L72:
	ldr	r2, .L75
	mov	r1, #60
	mov	r0, #30
	bl	draw_arrow
	mov	r2, #31
	mov	r1, #60
	mov	r0, #210
	bl	draw_arrow
.L74:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L76:
	.align	2
.L75:
	.word	25368
	.size	draw_side_arrow, .-draw_side_arrow
	.align	2
	.global	draw_arrow
	.syntax unified
	.arm
	.fpu softvfp
	.type	draw_arrow, %function
draw_arrow:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	mov	r3, r0
	strh	r3, [fp, #-14]	@ movhi
	mov	r3, r1	@ movhi
	strh	r3, [fp, #-16]	@ movhi
	mov	r3, r2	@ movhi
	strh	r3, [fp, #-18]	@ movhi
	mov	r3, #0
	strh	r3, [fp, #-6]	@ movhi
	b	.L78
.L79:
	ldrh	r3, [fp, #-14]	@ movhi
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldrh	r3, [fp, #-6]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	sub	r3, r2, r3
	lsl	r3, r3, #16
	lsr	r0, r3, #16
	ldrh	r3, [fp, #-16]	@ movhi
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldrh	r3, [fp, #-6]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r2, r3
	lsl	r3, r3, #16
	lsr	r1, r3, #16
	ldrh	r3, [fp, #-18]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r2, r3
	bl	draw_point
	ldrh	r3, [fp, #-14]	@ movhi
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldrh	r3, [fp, #-6]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r2, r3
	lsl	r3, r3, #16
	lsr	r0, r3, #16
	ldrh	r3, [fp, #-16]	@ movhi
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldrh	r3, [fp, #-6]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r2, r3
	lsl	r3, r3, #16
	lsr	r1, r3, #16
	ldrh	r3, [fp, #-18]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r2, r3
	bl	draw_point
	ldrh	r3, [fp, #-6]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-6]	@ movhi
.L78:
	ldrh	r3, [fp, #-6]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	cmp	r3, #14
	bls	.L79
	mov	r3, #0
	strh	r3, [fp, #-6]	@ movhi
	b	.L80
.L81:
	ldrh	r3, [fp, #-14]	@ movhi
	lsl	r3, r3, #16
	lsr	r0, r3, #16
	ldrh	r3, [fp, #-16]	@ movhi
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldrh	r3, [fp, #-6]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r2, r3
	lsl	r3, r3, #16
	lsr	r1, r3, #16
	ldrh	r3, [fp, #-18]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r2, r3
	bl	draw_point
	ldrh	r3, [fp, #-6]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-6]	@ movhi
.L80:
	ldrh	r3, [fp, #-6]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	cmp	r3, #29
	bls	.L81
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	draw_arrow, .-draw_arrow
	.align	2
	.global	draw_box_bg
	.syntax unified
	.arm
	.fpu softvfp
	.type	draw_box_bg, %function
draw_box_bg:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #24
	mov	r3, r0
	mov	r2, r1
	strh	r3, [fp, #-22]	@ movhi
	mov	r3, r2	@ movhi
	strh	r3, [fp, #-24]	@ movhi
	mov	r1, #2
	mov	r0, #240
	bl	div
	mov	r3, r0
	mov	r5, r3
	ldrh	r3, [fp, #-22]	@ movhi
	lsl	r3, r3, #16
	lsr	r4, r3, #16
	mov	r1, #2
	mov	r0, #8
	bl	div
	mov	r3, r0
	sub	r3, r4, r3
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	lsl	r3, r3, #4
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r5, r3
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-20]	@ movhi
	mov	r1, #2
	mov	r0, #160
	bl	div
	mov	r3, r0
	mov	r5, r3
	ldrh	r3, [fp, #-24]	@ movhi
	lsl	r3, r3, #16
	lsr	r4, r3, #16
	mov	r1, #2
	mov	r0, #8
	bl	div
	mov	r3, r0
	sub	r3, r4, r3
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	lsl	r3, r3, #4
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r5, r3
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-18]	@ movhi
	ldrh	r3, [fp, #-20]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r3, #16
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-16]	@ movhi
	ldrh	r3, [fp, #-18]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r3, #16
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-14]	@ movhi
	ldrh	r3, [fp, #-20]	@ movhi
	lsl	r3, r3, #16
	lsr	r0, r3, #16
	ldrh	r3, [fp, #-16]	@ movhi
	lsl	r3, r3, #16
	lsr	r1, r3, #16
	ldrh	r3, [fp, #-18]	@ movhi
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldrh	r3, [fp, #-14]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	ip, #992
	str	ip, [sp]
	bl	draw_square
	nop
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
	.size	draw_box_bg, .-draw_box_bg
	.align	2
	.global	draw_box_line
	.syntax unified
	.arm
	.fpu softvfp
	.type	draw_box_line, %function
draw_box_line:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #16
	mov	r3, r0
	strh	r3, [fp, #-22]	@ movhi
	mov	r3, r1	@ movhi
	strh	r3, [fp, #-24]	@ movhi
	mov	r3, r2	@ movhi
	strh	r3, [fp, #-26]	@ movhi
	mov	r1, #2
	mov	r0, #240
	bl	div
	mov	r3, r0
	mov	r5, r3
	ldrh	r3, [fp, #-22]	@ movhi
	lsl	r3, r3, #16
	lsr	r4, r3, #16
	mov	r1, #2
	mov	r0, #8
	bl	div
	mov	r3, r0
	sub	r3, r4, r3
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	lsl	r3, r3, #4
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r5, r3
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-18]	@ movhi
	mov	r1, #2
	mov	r0, #160
	bl	div
	mov	r3, r0
	mov	r5, r3
	ldrh	r3, [fp, #-24]	@ movhi
	lsl	r3, r3, #16
	lsr	r4, r3, #16
	mov	r1, #2
	mov	r0, #8
	bl	div
	mov	r3, r0
	sub	r3, r4, r3
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	lsl	r3, r3, #4
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r5, r3
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-16]	@ movhi
	mov	r3, #0
	strh	r3, [fp, #-14]	@ movhi
	b	.L84
.L85:
	ldrh	r3, [fp, #-18]	@ movhi
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldrh	r3, [fp, #-14]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r2, r3
	lsl	r3, r3, #16
	lsr	r0, r3, #16
	ldrh	r3, [fp, #-16]	@ movhi
	lsl	r3, r3, #16
	lsr	r1, r3, #16
	ldrh	r3, [fp, #-26]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r2, r3
	bl	draw_point
	ldrh	r3, [fp, #-18]	@ movhi
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldrh	r3, [fp, #-14]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r2, r3
	lsl	r3, r3, #16
	lsr	r0, r3, #16
	ldrh	r3, [fp, #-16]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r3, #16
	lsl	r3, r3, #16
	lsr	r1, r3, #16
	ldrh	r3, [fp, #-26]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r2, r3
	bl	draw_point
	ldrh	r3, [fp, #-18]	@ movhi
	lsl	r3, r3, #16
	lsr	r0, r3, #16
	ldrh	r3, [fp, #-16]	@ movhi
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldrh	r3, [fp, #-14]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r2, r3
	lsl	r3, r3, #16
	lsr	r1, r3, #16
	ldrh	r3, [fp, #-26]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r2, r3
	bl	draw_point
	ldrh	r3, [fp, #-18]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r3, #16
	lsl	r3, r3, #16
	lsr	r0, r3, #16
	ldrh	r3, [fp, #-16]	@ movhi
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldrh	r3, [fp, #-14]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r2, r3
	lsl	r3, r3, #16
	lsr	r1, r3, #16
	ldrh	r3, [fp, #-26]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r2, r3
	bl	draw_point
	ldrh	r3, [fp, #-14]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-14]	@ movhi
.L84:
	ldrh	r3, [fp, #-14]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	cmp	r3, #16
	bls	.L85
	nop
	nop
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
	.size	draw_box_line, .-draw_box_line
	.align	2
	.global	draw_box_circle
	.syntax unified
	.arm
	.fpu softvfp
	.type	draw_box_circle, %function
draw_box_circle:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #16
	mov	r3, r0
	strh	r3, [fp, #-22]	@ movhi
	mov	r3, r1	@ movhi
	strh	r3, [fp, #-24]	@ movhi
	mov	r3, r2	@ movhi
	strh	r3, [fp, #-26]	@ movhi
	mov	r1, #2
	mov	r0, #240
	bl	div
	mov	r3, r0
	mov	r5, r3
	ldrh	r3, [fp, #-22]	@ movhi
	lsl	r3, r3, #16
	lsr	r4, r3, #16
	mov	r1, #2
	mov	r0, #8
	bl	div
	mov	r3, r0
	sub	r3, r4, r3
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	lsl	r3, r3, #4
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r5, r3
	lsl	r3, r3, #16
	lsr	r4, r3, #16
	mov	r1, #2
	mov	r0, #16
	bl	div
	mov	r3, r0
	add	r3, r4, r3
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-16]	@ movhi
	mov	r1, #2
	mov	r0, #160
	bl	div
	mov	r3, r0
	mov	r5, r3
	ldrh	r3, [fp, #-24]	@ movhi
	lsl	r3, r3, #16
	lsr	r4, r3, #16
	mov	r1, #2
	mov	r0, #8
	bl	div
	mov	r3, r0
	sub	r3, r4, r3
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	lsl	r3, r3, #4
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r5, r3
	lsl	r3, r3, #16
	lsr	r4, r3, #16
	mov	r1, #2
	mov	r0, #16
	bl	div
	mov	r3, r0
	add	r3, r4, r3
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-14]	@ movhi
	ldrh	r3, [fp, #-16]	@ movhi
	lsl	r3, r3, #16
	lsr	r4, r3, #16
	ldrh	r3, [fp, #-14]	@ movhi
	lsl	r3, r3, #16
	lsr	r5, r3, #16
	mov	r1, #2
	mov	r0, #16
	bl	div
	mov	r3, r0
	mov	r2, r3
	ldrh	r3, [fp, #-26]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r1, r5
	mov	r0, r4
	bl	draw_circle
	nop
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
	.size	draw_box_circle, .-draw_box_circle
	.align	2
	.global	draw_circle
	.syntax unified
	.arm
	.fpu softvfp
	.type	draw_circle, %function
draw_circle:
	@ 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	ip, r0
	mov	r0, r1
	mov	r1, r2
	mov	r2, r3
	mov	r3, ip	@ movhi
	strh	r3, [fp, #-22]	@ movhi
	mov	r3, r0	@ movhi
	strh	r3, [fp, #-24]	@ movhi
	mov	r3, r1	@ movhi
	strh	r3, [fp, #-26]	@ movhi
	mov	r3, r2	@ movhi
	strh	r3, [fp, #-28]	@ movhi
	ldrh	r3, [fp, #-22]	@ movhi
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldrh	r3, [fp, #-26]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	sub	r3, r2, r3
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-16]	@ movhi
	ldrh	r3, [fp, #-22]	@ movhi
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldrh	r3, [fp, #-26]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r2, r3
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-14]	@ movhi
	ldrh	r3, [fp, #-24]	@ movhi
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldrh	r3, [fp, #-26]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	sub	r3, r2, r3
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-12]	@ movhi
	ldrh	r3, [fp, #-24]	@ movhi
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldrh	r3, [fp, #-26]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r2, r3
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-10]	@ movhi
	ldrh	r3, [fp, #-12]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-6]	@ movhi
	b	.L88
.L92:
	ldrh	r3, [fp, #-16]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-8]	@ movhi
	b	.L89
.L91:
	ldrh	r3, [fp, #-26]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r2, r3
	ldrh	r3, [fp, #-26]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mul	r2, r3, r2
	ldrh	r3, [fp, #-22]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r1, r3
	ldrh	r3, [fp, #-8]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	sub	r3, r1, r3
	ldrh	r1, [fp, #-22]	@ movhi
	lsl	r1, r1, #16
	lsr	r1, r1, #16
	mov	r0, r1
	ldrh	r1, [fp, #-8]	@ movhi
	lsl	r1, r1, #16
	lsr	r1, r1, #16
	sub	r1, r0, r1
	mul	r1, r3, r1
	ldrh	r3, [fp, #-24]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	ldrh	r3, [fp, #-6]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	sub	r3, r0, r3
	ldrh	r0, [fp, #-24]	@ movhi
	lsl	r0, r0, #16
	lsr	r0, r0, #16
	mov	ip, r0
	ldrh	r0, [fp, #-6]	@ movhi
	lsl	r0, r0, #16
	lsr	r0, r0, #16
	sub	r0, ip, r0
	mul	r3, r0, r3
	add	r3, r1, r3
	cmp	r2, r3
	ble	.L90
	ldrh	r3, [fp, #-8]	@ movhi
	lsl	r3, r3, #16
	lsr	r0, r3, #16
	ldrh	r3, [fp, #-6]	@ movhi
	lsl	r3, r3, #16
	lsr	r1, r3, #16
	ldrh	r3, [fp, #-28]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r2, r3
	bl	draw_point
.L90:
	ldrh	r3, [fp, #-8]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-8]	@ movhi
.L89:
	ldrh	r3, [fp, #-8]	@ movhi
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldrh	r3, [fp, #-14]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	cmp	r2, r3
	bcc	.L91
	ldrh	r3, [fp, #-6]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-6]	@ movhi
.L88:
	ldrh	r3, [fp, #-6]	@ movhi
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldrh	r3, [fp, #-10]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	cmp	r2, r3
	bcc	.L92
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	draw_circle, .-draw_circle
	.align	2
	.global	draw_square
	.syntax unified
	.arm
	.fpu softvfp
	.type	draw_square, %function
draw_square:
	@ args = 4, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	mov	ip, r0
	mov	r0, r1
	mov	r1, r2
	mov	r2, r3
	mov	r3, ip	@ movhi
	strh	r3, [fp, #-14]	@ movhi
	mov	r3, r0	@ movhi
	strh	r3, [fp, #-16]	@ movhi
	mov	r3, r1	@ movhi
	strh	r3, [fp, #-18]	@ movhi
	mov	r3, r2	@ movhi
	strh	r3, [fp, #-20]	@ movhi
	ldrh	r3, [fp, #-16]	@ movhi
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldrh	r3, [fp, #-14]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	cmp	r2, r3
	bcs	.L94
	ldrh	r3, [fp, #-16]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-12]	@ movhi
	ldrh	r3, [fp, #-14]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-16]	@ movhi
	ldrh	r3, [fp, #-12]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-14]	@ movhi
.L94:
	ldrh	r3, [fp, #-20]	@ movhi
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldrh	r3, [fp, #-18]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	cmp	r2, r3
	bcs	.L95
	ldrh	r3, [fp, #-20]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-10]	@ movhi
	ldrh	r3, [fp, #-18]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-20]	@ movhi
	ldrh	r3, [fp, #-10]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-18]	@ movhi
.L95:
	ldrh	r3, [fp, #-18]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-6]	@ movhi
	b	.L96
.L99:
	ldrh	r3, [fp, #-14]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-8]	@ movhi
	b	.L97
.L98:
	ldrh	r3, [fp, #-8]	@ movhi
	lsl	r3, r3, #16
	lsr	r0, r3, #16
	ldrh	r3, [fp, #-6]	@ movhi
	lsl	r3, r3, #16
	lsr	r1, r3, #16
	ldrh	r3, [fp, #4]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r2, r3
	bl	draw_point
	ldrh	r3, [fp, #-8]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-8]	@ movhi
.L97:
	ldrh	r3, [fp, #-8]	@ movhi
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldrh	r3, [fp, #-16]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	cmp	r2, r3
	bcc	.L98
	ldrh	r3, [fp, #-6]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-6]	@ movhi
.L96:
	ldrh	r3, [fp, #-6]	@ movhi
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldrh	r3, [fp, #-20]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	cmp	r2, r3
	bcc	.L99
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	draw_square, .-draw_square
	.align	2
	.global	draw_window
	.syntax unified
	.arm
	.fpu softvfp
	.type	draw_window, %function
draw_window:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	mov	r3, r0
	strh	r3, [fp, #-14]	@ movhi
	mov	r3, #0
	strh	r3, [fp, #-6]	@ movhi
	b	.L101
.L104:
	mov	r3, #0
	strh	r3, [fp, #-8]	@ movhi
	b	.L102
.L103:
	ldrh	r3, [fp, #-8]	@ movhi
	lsl	r3, r3, #16
	lsr	r0, r3, #16
	ldrh	r3, [fp, #-6]	@ movhi
	lsl	r3, r3, #16
	lsr	r1, r3, #16
	ldrh	r3, [fp, #-14]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r2, r3
	bl	draw_point
	ldrh	r3, [fp, #-8]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-8]	@ movhi
.L102:
	ldrh	r3, [fp, #-8]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	cmp	r3, #239
	bls	.L103
	ldrh	r3, [fp, #-6]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-6]	@ movhi
.L101:
	ldrh	r3, [fp, #-6]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	cmp	r3, #159
	bls	.L104
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	draw_window, .-draw_window
	.align	2
	.global	draw_point
	.syntax unified
	.arm
	.fpu softvfp
	.type	draw_point, %function
draw_point:
	@ 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, r0
	strh	r3, [fp, #-14]	@ movhi
	mov	r3, r1	@ movhi
	strh	r3, [fp, #-16]	@ movhi
	mov	r3, r2	@ movhi
	strh	r3, [fp, #-18]	@ movhi
	mov	r3, #100663296
	str	r3, [fp, #-8]
	ldrh	r3, [fp, #-14]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r1, r3
	ldrh	r3, [fp, #-16]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	lsl	r3, r3, #1
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldrh	r3, [fp, #-18]	@ movhi
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldr	r3, [fp, #-8]
	strh	r2, [r3]	@ movhi
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	draw_point, .-draw_point
	.align	2
	.global	generate_delay
	.syntax unified
	.arm
	.fpu softvfp
	.type	generate_delay, %function
generate_delay:
	@ 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
	strh	r3, [fp, #-6]	@ movhi
	b	.L107
.L108:
	ldrh	r3, [fp, #-6]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-6]	@ movhi
.L107:
	ldrh	r3, [fp, #-6]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	ldr	r2, .L109
	cmp	r3, r2
	bls	.L108
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L110:
	.align	2
.L109:
	.word	4999
	.size	generate_delay, .-generate_delay
	.section	.rodata
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	play_othello
	.syntax unified
	.arm
	.fpu softvfp
	.type	play_othello, %function
play_othello:
	@ args = 0, pretend = 0, frame = 192
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #192
	ldr	r3, .L146
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, .L146+4
	str	r3, [fp, #-180]
	ldr	r0, .L146+8
	bl	draw_window
	bl	draw_board
	mov	r3, #0
	strh	r3, [fp, #-200]	@ movhi
	mov	r3, #0
	strh	r3, [fp, #-198]	@ movhi
	ldrh	r3, [fp, #-200]	@ movhi
	lsl	r3, r3, #16
	lsr	r0, r3, #16
	ldrh	r3, [fp, #-198]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r2, #31
	mov	r1, r3
	bl	draw_box_line
	mov	r3, #0
	strh	r3, [fp, #-194]	@ movhi
	b	.L112
.L115:
	mov	r3, #0
	strh	r3, [fp, #-196]	@ movhi
	b	.L113
.L114:
	ldrh	r3, [fp, #-194]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r1, r3
	ldrh	r3, [fp, #-196]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r2, r3
	lsl	r3, r1, #3
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, fp, #12
	add	r3, r2, r3
	sub	r3, r3, #132
	mov	r2, #0
	strh	r2, [r3]	@ movhi
	ldrh	r3, [fp, #-196]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-196]	@ movhi
.L113:
	ldrh	r3, [fp, #-196]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	cmp	r3, #7
	bls	.L114
	ldrh	r3, [fp, #-194]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-194]	@ movhi
.L112:
	ldrh	r3, [fp, #-194]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	cmp	r3, #7
	bls	.L115
	mov	r3, #1
	strh	r3, [fp, #-90]	@ movhi
	mov	r3, #1
	strh	r3, [fp, #-72]	@ movhi
	mvn	r3, #0
	strh	r3, [fp, #-88]	@ movhi
	mvn	r3, #0
	strh	r3, [fp, #-74]	@ movhi
	mov	r3, #1
	strh	r3, [fp, #-192]	@ movhi
	ldrh	r3, [fp, #-192]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	rsb	r3, r3, #0
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-190]	@ movhi
.L139:
	ldr	r3, [fp, #-180]
	ldrh	r3, [r3]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	and	r3, r3, #16
	cmp	r3, #0
	bne	.L116
	ldrh	r3, [fp, #-200]	@ movhi
	lsl	r3, r3, #16
	lsr	r0, r3, #16
	ldrh	r3, [fp, #-198]	@ movhi
	lsl	r3, r3, #16
	lsr	r1, r3, #16
	ldrh	r3, [fp, #-200]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldrh	r3, [fp, #-198]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	bl	move_player
	mov	r3, r0
	strh	r3, [fp, #-200]	@ movhi
	nop
.L117:
	ldr	r3, [fp, #-180]
	ldrh	r3, [r3]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	and	r3, r3, #16
	cmp	r3, #16
	bne	.L117
	b	.L139
.L116:
	ldr	r3, [fp, #-180]
	ldrh	r3, [r3]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	and	r3, r3, #32
	cmp	r3, #0
	bne	.L119
	ldrh	r3, [fp, #-200]	@ movhi
	lsl	r3, r3, #16
	lsr	r0, r3, #16
	ldrh	r3, [fp, #-198]	@ movhi
	lsl	r3, r3, #16
	lsr	r1, r3, #16
	ldrh	r3, [fp, #-200]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	sub	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldrh	r3, [fp, #-198]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	bl	move_player
	mov	r3, r0
	strh	r3, [fp, #-200]	@ movhi
	nop
.L120:
	ldr	r3, [fp, #-180]
	ldrh	r3, [r3]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	and	r3, r3, #32
	cmp	r3, #32
	bne	.L120
	b	.L139
.L119:
	ldr	r3, [fp, #-180]
	ldrh	r3, [r3]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	and	r3, r3, #64
	cmp	r3, #0
	bne	.L121
	ldrh	r3, [fp, #-200]	@ movhi
	lsl	r3, r3, #16
	lsr	r0, r3, #16
	ldrh	r3, [fp, #-198]	@ movhi
	lsl	r3, r3, #16
	lsr	r1, r3, #16
	ldrh	r3, [fp, #-200]	@ movhi
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldrh	r3, [fp, #-198]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	sub	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	bl	move_player
	mov	r3, r0
	strh	r3, [fp, #-198]	@ movhi
	nop
.L122:
	ldr	r3, [fp, #-180]
	ldrh	r3, [r3]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	and	r3, r3, #64
	cmp	r3, #64
	bne	.L122
	b	.L139
.L121:
	ldr	r3, [fp, #-180]
	ldrh	r3, [r3]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	and	r3, r3, #128
	cmp	r3, #0
	bne	.L123
	ldrh	r3, [fp, #-200]	@ movhi
	lsl	r3, r3, #16
	lsr	r0, r3, #16
	ldrh	r3, [fp, #-198]	@ movhi
	lsl	r3, r3, #16
	lsr	r1, r3, #16
	ldrh	r3, [fp, #-200]	@ movhi
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldrh	r3, [fp, #-198]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	bl	move_player
	mov	r3, r0
	strh	r3, [fp, #-198]	@ movhi
	nop
.L124:
	ldr	r3, [fp, #-180]
	ldrh	r3, [r3]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	and	r3, r3, #128
	cmp	r3, #128
	bne	.L124
	b	.L139
.L123:
	ldr	r3, [fp, #-180]
	ldrh	r3, [r3]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	and	r3, r3, #1
	cmp	r3, #0
	bne	.L125
	ldrh	r3, [fp, #-200]	@ movhi
	lsl	r3, r3, #16
	lsr	r0, r3, #16
	ldrh	r3, [fp, #-198]	@ movhi
	lsl	r3, r3, #16
	lsr	r1, r3, #16
	ldrh	r3, [fp, #-192]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	sub	r2, fp, #144
	bl	can_put_piece
	mov	r3, r0
	mov	r2, r3
	ldrh	r3, [fp, #-192]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	cmp	r2, r3
	bne	.L145
	ldrh	r3, [fp, #-200]	@ movhi
	lsl	r3, r3, #16
	lsr	r0, r3, #16
	ldrh	r3, [fp, #-198]	@ movhi
	lsl	r3, r3, #16
	lsr	r1, r3, #16
	ldrh	r3, [fp, #-192]	@ movhi
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldrh	r3, [fp, #-198]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r5, r3
	ldrh	r3, [fp, #-200]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r4, r3
	bl	put_piece
	mov	r3, r0
	mov	r2, r3
	lsl	r3, r5, #3
	add	r3, r3, r4
	lsl	r3, r3, #1
	sub	r1, fp, #12
	add	r3, r1, r3
	sub	r3, r3, #132
	strh	r2, [r3]	@ movhi
	ldr	r3, .L146+12
	sub	ip, fp, #176
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	mov	r3, #0
	strh	r3, [fp, #-188]	@ movhi
	b	.L127
.L136:
	ldrh	r3, [fp, #-200]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-186]	@ movhi
	ldrh	r3, [fp, #-198]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-184]	@ movhi
	mov	r3, #0
	strh	r3, [fp, #-182]	@ movhi
.L135:
	ldrh	r3, [fp, #-188]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	sub	r3, r3, #164
	ldrh	r3, [r3]	@ movhi
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldrh	r3, [fp, #-186]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r2, r3
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-186]	@ movhi
	ldrh	r3, [fp, #-188]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	sub	r3, r3, #162
	ldrh	r3, [r3]	@ movhi
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldrh	r3, [fp, #-184]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r2, r3
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-184]	@ movhi
	ldrh	r3, [fp, #-186]	@ movhi
	ldrh	r3, [fp, #-186]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	cmp	r3, #7
	bhi	.L128
	ldrh	r3, [fp, #-184]	@ movhi
	ldrh	r3, [fp, #-184]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	cmp	r3, #7
	bhi	.L128
	ldrh	r3, [fp, #-184]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r1, r3
	ldrh	r3, [fp, #-186]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r2, r3
	lsl	r3, r1, #3
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, fp, #12
	add	r3, r2, r3
	sub	r3, r3, #132
	ldrh	r3, [r3]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	cmp	r3, #0
	beq	.L142
	ldrh	r3, [fp, #-184]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r1, r3
	ldrh	r3, [fp, #-186]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r2, r3
	lsl	r3, r1, #3
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, fp, #12
	add	r3, r2, r3
	sub	r3, r3, #132
	ldrh	r3, [r3]	@ movhi
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldrh	r3, [fp, #-190]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	cmp	r2, r3
	bne	.L130
	mov	r3, #1
	strh	r3, [fp, #-182]	@ movhi
	b	.L135
.L130:
	ldrh	r3, [fp, #-184]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r1, r3
	ldrh	r3, [fp, #-186]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r2, r3
	lsl	r3, r1, #3
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, fp, #12
	add	r3, r2, r3
	sub	r3, r3, #132
	ldrh	r3, [r3]	@ movhi
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldrh	r3, [fp, #-192]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	cmp	r2, r3
	bne	.L135
	ldrh	r3, [fp, #-182]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	cmp	r3, #1
	bne	.L143
.L134:
	ldrh	r3, [fp, #-188]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	sub	r3, r3, #164
	ldrh	r3, [r3]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	ldrh	r2, [fp, #-186]	@ movhi
	lsl	r2, r2, #16
	lsr	r2, r2, #16
	sub	r3, r2, r3
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-186]	@ movhi
	ldrh	r3, [fp, #-188]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	sub	r3, r3, #162
	ldrh	r3, [r3]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	ldrh	r2, [fp, #-184]	@ movhi
	lsl	r2, r2, #16
	lsr	r2, r2, #16
	sub	r3, r2, r3
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-184]	@ movhi
	ldrh	r3, [fp, #-184]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r1, r3
	ldrh	r3, [fp, #-186]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r2, r3
	lsl	r3, r1, #3
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, fp, #12
	add	r3, r2, r3
	sub	r3, r3, #132
	ldrh	r3, [r3]	@ movhi
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldrh	r3, [fp, #-192]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	cmp	r2, r3
	beq	.L144
	ldrh	r3, [fp, #-186]	@ movhi
	lsl	r3, r3, #16
	lsr	r0, r3, #16
	ldrh	r3, [fp, #-184]	@ movhi
	lsl	r3, r3, #16
	lsr	r1, r3, #16
	ldrh	r3, [fp, #-192]	@ movhi
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldrh	r3, [fp, #-184]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r5, r3
	ldrh	r3, [fp, #-186]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r4, r3
	bl	put_piece
	mov	r3, r0
	mov	r2, r3
	lsl	r3, r5, #3
	add	r3, r3, r4
	lsl	r3, r3, #1
	sub	r1, fp, #12
	add	r3, r1, r3
	sub	r3, r3, #132
	strh	r2, [r3]	@ movhi
	b	.L134
.L144:
	nop
	b	.L143
.L142:
	nop
	b	.L128
.L143:
	nop
.L128:
	ldrh	r3, [fp, #-188]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-188]	@ movhi
.L127:
	ldrh	r3, [fp, #-188]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	cmp	r3, #7
	bls	.L136
	sub	r3, fp, #144
	mov	r0, r3
	bl	is_gameset
	ldrh	r3, [fp, #-192]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	rsb	r3, r3, #0
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-192]	@ movhi
	ldrh	r3, [fp, #-190]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	rsb	r3, r3, #0
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-190]	@ movhi
	ldrh	r3, [fp, #-192]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	draw_side_arrow
	ldrh	r3, [fp, #-192]	@ movhi
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	sub	r3, fp, #144
	mov	r1, r2
	mov	r0, r3
	bl	can_put_any_piece
	mov	r3, r0
	cmp	r3, #0
	bne	.L145
	ldrh	r3, [fp, #-192]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	rsb	r3, r3, #0
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-192]	@ movhi
	ldrh	r3, [fp, #-190]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	rsb	r3, r3, #0
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-190]	@ movhi
	ldrh	r3, [fp, #-192]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	draw_side_arrow
.L145:
	nop
.L137:
	ldr	r3, [fp, #-180]
	ldrh	r3, [r3]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	and	r3, r3, #1
	cmp	r3, #1
	bne	.L137
	b	.L139
.L125:
	ldr	r3, [fp, #-180]
	ldrh	r3, [r3]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	and	r3, r3, #4
	cmp	r3, #0
	bne	.L139
	ldrh	r3, [fp, #-192]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	rsb	r3, r3, #0
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-192]	@ movhi
	ldrh	r3, [fp, #-190]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	rsb	r3, r3, #0
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-190]	@ movhi
	ldrh	r3, [fp, #-192]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	draw_side_arrow
	nop
.L138:
	ldr	r3, [fp, #-180]
	ldrh	r3, [r3]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	and	r3, r3, #4
	cmp	r3, #4
	bne	.L138
	b	.L139
.L147:
	.align	2
.L146:
	.word	.LC2
	.word	67109168
	.word	25368
	.word	.LC0
	.size	play_othello, .-play_othello
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
