	.file	"66214.c"
	.intel_syntax noprefix
	.text
	.globl	create_window
	.type	create_window, @function
create_window:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	QWORD PTR -16[rbp], 0
	call	initscr@PLT
	mov	rax, QWORD PTR stdscr[rip]
	mov	esi, -1
	mov	rdi, rax
	call	wtimeout@PLT
	call	cbreak@PLT
	call	noecho@PLT
	mov	rax, QWORD PTR stdscr[rip]
	mov	esi, 1
	mov	rdi, rax
	call	keypad@PLT
	mov	edi, 0
	call	curs_set@PLT
	mov	DWORD PTR -24[rbp], 14
	mov	DWORD PTR -20[rbp], 14
	mov	rax, QWORD PTR stdscr[rip]
	test	rax, rax
	je	.L2
	mov	rax, QWORD PTR stdscr[rip]
	movzx	eax, WORD PTR 4[rax]
	cwde
	add	eax, 1
	jmp	.L3
.L2:
	mov	eax, -1
.L3:
	mov	DWORD PTR -28[rbp], eax
	mov	rax, QWORD PTR stdscr[rip]
	test	rax, rax
	je	.L4
	mov	rax, QWORD PTR stdscr[rip]
	movzx	eax, WORD PTR 6[rax]
	cwde
	add	eax, 1
	jmp	.L5
.L4:
	mov	eax, -1
.L5:
	mov	DWORD PTR -32[rbp], eax
	mov	eax, DWORD PTR -32[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	ecx, eax
	mov	eax, DWORD PTR -24[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	neg	eax
	add	eax, ecx
	mov	DWORD PTR -16[rbp], eax
	mov	eax, DWORD PTR -28[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	lea	edx, 4[rax]
	mov	eax, DWORD PTR -20[rbp]
	mov	ecx, eax
	shr	ecx, 31
	add	eax, ecx
	sar	eax
	neg	eax
	add	eax, edx
	mov	DWORD PTR -12[rbp], eax
	mov	rcx, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR [rcx], rax
	mov	QWORD PTR 8[rcx], rdx
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR 16[rcx], rax
	mov	rax, QWORD PTR -40[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	create_window, .-create_window
	.globl	delete_window
	.type	delete_window, @function
delete_window:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	call	endwin@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	delete_window, .-delete_window
	.globl	get_cell_state_at_safe
	.type	get_cell_state_at_safe, @function
get_cell_state_at_safe:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	DWORD PTR -16[rbp], edx
	cmp	DWORD PTR -12[rbp], 0
	js	.L9
	cmp	DWORD PTR -12[rbp], 6
	jg	.L9
	cmp	DWORD PTR -16[rbp], 0
	js	.L9
	cmp	DWORD PTR -16[rbp], 5
	jle	.L10
.L9:
	mov	eax, -1
	jmp	.L11
.L10:
	mov	edx, DWORD PTR -16[rbp]
	mov	eax, edx
	sal	eax, 3
	sub	eax, edx
	mov	ecx, eax
	mov	eax, DWORD PTR -12[rbp]
	add	eax, ecx
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
.L11:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	get_cell_state_at_safe, .-get_cell_state_at_safe
	.globl	get_cell_state_at
	.type	get_cell_state_at, @function
get_cell_state_at:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	DWORD PTR -16[rbp], edx
	mov	edx, DWORD PTR -16[rbp]
	mov	eax, edx
	sal	eax, 3
	sub	eax, edx
	mov	ecx, eax
	mov	eax, DWORD PTR -12[rbp]
	add	eax, ecx
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	get_cell_state_at, .-get_cell_state_at
	.globl	set_cell_state_at
	.type	set_cell_state_at, @function
set_cell_state_at:
.LFB4:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	DWORD PTR -16[rbp], edx
	mov	DWORD PTR -20[rbp], ecx
	mov	edx, DWORD PTR -16[rbp]
	mov	eax, edx
	sal	eax, 3
	sub	eax, edx
	mov	ecx, eax
	mov	eax, DWORD PTR -12[rbp]
	add	eax, ecx
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -8[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR [rdx], eax
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	set_cell_state_at, .-set_cell_state_at
	.globl	get_valid_drop_pos_y
	.type	get_valid_drop_pos_y, @function
get_valid_drop_pos_y:
.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	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -8[rbp], 5
	jmp	.L16
.L19:
	mov	edx, DWORD PTR -8[rbp]
	mov	ecx, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	get_cell_state_at
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	je	.L21
	sub	DWORD PTR -8[rbp], 1
.L16:
	cmp	DWORD PTR -8[rbp], 0
	jns	.L19
	jmp	.L18
.L21:
	nop
.L18:
	mov	eax, DWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	get_valid_drop_pos_y, .-get_valid_drop_pos_y
	.globl	get_winner_from_turn
	.type	get_winner_from_turn, @function
get_winner_from_turn:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	cmp	DWORD PTR -4[rbp], 0
	je	.L23
	cmp	DWORD PTR -4[rbp], 1
	je	.L24
	jmp	.L27
.L23:
	mov	eax, 1
	jmp	.L22
.L24:
	mov	eax, 2
	jmp	.L22
.L27:
.L22:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	get_winner_from_turn, .-get_winner_from_turn
	.globl	check_winner_horizontal
	.type	check_winner_horizontal, @function
check_winner_horizontal:
.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, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -44[rbp], esi
	mov	DWORD PTR -48[rbp], edx
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR -48[rbp]
	mov	ecx, DWORD PTR -44[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	get_cell_state_at
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -44[rbp]
	mov	DWORD PTR -16[rbp], eax
	jmp	.L29
.L30:
	sub	DWORD PTR -16[rbp], 1
.L29:
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR -48[rbp]
	mov	ecx, DWORD PTR -16[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	get_cell_state_at_safe
	mov	edx, DWORD PTR -4[rbp]
	cmp	eax, edx
	je	.L30
	add	DWORD PTR -16[rbp], 1
	mov	DWORD PTR -12[rbp], 0
	jmp	.L31
.L32:
	add	DWORD PTR -12[rbp], 1
.L31:
	mov	eax, DWORD PTR -16[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -16[rbp], edx
	mov	rcx, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR -48[rbp]
	mov	esi, eax
	mov	rdi, rcx
	call	get_cell_state_at_safe
	mov	edx, DWORD PTR -4[rbp]
	cmp	eax, edx
	je	.L32
	cmp	DWORD PTR -12[rbp], 4
	sete	al
	mov	BYTE PTR -17[rbp], al
	cmp	BYTE PTR -17[rbp], 0
	je	.L33
	mov	DWORD PTR -8[rbp], 0
	jmp	.L34
.L35:
	mov	eax, DWORD PTR -16[rbp]
	sub	eax, DWORD PTR -8[rbp]
	lea	ecx, -2[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR -8[rbp]
	movsx	rdx, edx
	add	rdx, 44
	mov	DWORD PTR 8[rax+rdx*4], ecx
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR -8[rbp]
	movsx	rdx, edx
	lea	rcx, 48[rdx]
	mov	edx, DWORD PTR -48[rbp]
	mov	DWORD PTR 8[rax+rcx*4], edx
	add	DWORD PTR -8[rbp], 1
.L34:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, 3
	jbe	.L35
.L33:
	movzx	eax, BYTE PTR -17[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	check_winner_horizontal, .-check_winner_horizontal
	.globl	check_winner_vertical
	.type	check_winner_vertical, @function
check_winner_vertical:
.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, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -44[rbp], esi
	mov	DWORD PTR -48[rbp], edx
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR -48[rbp]
	mov	ecx, DWORD PTR -44[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	get_cell_state_at
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -48[rbp]
	mov	DWORD PTR -16[rbp], eax
	jmp	.L38
.L39:
	add	DWORD PTR -16[rbp], 1
.L38:
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR -16[rbp]
	mov	ecx, DWORD PTR -44[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	get_cell_state_at_safe
	mov	edx, DWORD PTR -4[rbp]
	cmp	eax, edx
	je	.L39
	sub	DWORD PTR -16[rbp], 1
	mov	DWORD PTR -12[rbp], 0
	jmp	.L40
.L41:
	add	DWORD PTR -12[rbp], 1
.L40:
	mov	eax, DWORD PTR -16[rbp]
	lea	edx, -1[rax]
	mov	DWORD PTR -16[rbp], edx
	mov	rcx, QWORD PTR -40[rbp]
	mov	esi, DWORD PTR -44[rbp]
	mov	edx, eax
	mov	rdi, rcx
	call	get_cell_state_at_safe
	mov	edx, DWORD PTR -4[rbp]
	cmp	eax, edx
	je	.L41
	cmp	DWORD PTR -12[rbp], 4
	sete	al
	mov	BYTE PTR -17[rbp], al
	cmp	BYTE PTR -17[rbp], 0
	je	.L42
	mov	DWORD PTR -8[rbp], 0
	jmp	.L43
.L44:
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR -8[rbp]
	movsx	rdx, edx
	lea	rcx, 44[rdx]
	mov	edx, DWORD PTR -44[rbp]
	mov	DWORD PTR 8[rax+rcx*4], edx
	mov	edx, DWORD PTR -16[rbp]
	mov	eax, DWORD PTR -8[rbp]
	add	eax, edx
	lea	ecx, 2[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR -8[rbp]
	movsx	rdx, edx
	add	rdx, 48
	mov	DWORD PTR 8[rax+rdx*4], ecx
	add	DWORD PTR -8[rbp], 1
.L43:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, 3
	jbe	.L44
.L42:
	movzx	eax, BYTE PTR -17[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	check_winner_vertical, .-check_winner_vertical
	.globl	check_winner_diag1
	.type	check_winner_diag1, @function
check_winner_diag1:
.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, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -44[rbp], esi
	mov	DWORD PTR -48[rbp], edx
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR -48[rbp]
	mov	ecx, DWORD PTR -44[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	get_cell_state_at
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -44[rbp]
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -48[rbp]
	mov	DWORD PTR -16[rbp], eax
	jmp	.L47
.L48:
	sub	DWORD PTR -20[rbp], 1
	add	DWORD PTR -16[rbp], 1
.L47:
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR -16[rbp]
	mov	ecx, DWORD PTR -20[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	get_cell_state_at_safe
	mov	edx, DWORD PTR -4[rbp]
	cmp	eax, edx
	je	.L48
	add	DWORD PTR -20[rbp], 1
	sub	DWORD PTR -16[rbp], 1
	mov	DWORD PTR -12[rbp], 0
	jmp	.L49
.L50:
	add	DWORD PTR -12[rbp], 1
.L49:
	mov	edx, DWORD PTR -16[rbp]
	lea	eax, -1[rdx]
	mov	DWORD PTR -16[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	lea	ecx, 1[rax]
	mov	DWORD PTR -20[rbp], ecx
	mov	rcx, QWORD PTR -40[rbp]
	mov	esi, eax
	mov	rdi, rcx
	call	get_cell_state_at_safe
	mov	edx, DWORD PTR -4[rbp]
	cmp	eax, edx
	je	.L50
	cmp	DWORD PTR -12[rbp], 4
	sete	al
	mov	BYTE PTR -21[rbp], al
	cmp	BYTE PTR -21[rbp], 0
	je	.L51
	mov	DWORD PTR -8[rbp], 0
	jmp	.L52
.L53:
	mov	eax, DWORD PTR -20[rbp]
	sub	eax, DWORD PTR -8[rbp]
	lea	ecx, -2[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR -8[rbp]
	movsx	rdx, edx
	add	rdx, 44
	mov	DWORD PTR 8[rax+rdx*4], ecx
	mov	edx, DWORD PTR -16[rbp]
	mov	eax, DWORD PTR -8[rbp]
	add	eax, edx
	lea	ecx, 2[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR -8[rbp]
	movsx	rdx, edx
	add	rdx, 48
	mov	DWORD PTR 8[rax+rdx*4], ecx
	add	DWORD PTR -8[rbp], 1
.L52:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, 3
	jbe	.L53
.L51:
	movzx	eax, BYTE PTR -21[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	check_winner_diag1, .-check_winner_diag1
	.globl	check_winner_diag2
	.type	check_winner_diag2, @function
check_winner_diag2:
.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, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -44[rbp], esi
	mov	DWORD PTR -48[rbp], edx
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR -48[rbp]
	mov	ecx, DWORD PTR -44[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	get_cell_state_at
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -44[rbp]
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -48[rbp]
	mov	DWORD PTR -16[rbp], eax
	jmp	.L56
.L57:
	add	DWORD PTR -20[rbp], 1
	add	DWORD PTR -16[rbp], 1
.L56:
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR -16[rbp]
	mov	ecx, DWORD PTR -20[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	get_cell_state_at_safe
	mov	edx, DWORD PTR -4[rbp]
	cmp	eax, edx
	je	.L57
	sub	DWORD PTR -20[rbp], 1
	sub	DWORD PTR -16[rbp], 1
	mov	DWORD PTR -12[rbp], 0
	jmp	.L58
.L59:
	add	DWORD PTR -12[rbp], 1
.L58:
	mov	edx, DWORD PTR -16[rbp]
	lea	eax, -1[rdx]
	mov	DWORD PTR -16[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	lea	ecx, -1[rax]
	mov	DWORD PTR -20[rbp], ecx
	mov	rcx, QWORD PTR -40[rbp]
	mov	esi, eax
	mov	rdi, rcx
	call	get_cell_state_at_safe
	mov	edx, DWORD PTR -4[rbp]
	cmp	eax, edx
	je	.L59
	cmp	DWORD PTR -12[rbp], 4
	sete	al
	mov	BYTE PTR -21[rbp], al
	cmp	BYTE PTR -21[rbp], 0
	je	.L60
	mov	DWORD PTR -8[rbp], 0
	jmp	.L61
.L62:
	mov	edx, DWORD PTR -20[rbp]
	mov	eax, DWORD PTR -8[rbp]
	add	eax, edx
	lea	ecx, 2[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR -8[rbp]
	movsx	rdx, edx
	add	rdx, 44
	mov	DWORD PTR 8[rax+rdx*4], ecx
	mov	edx, DWORD PTR -16[rbp]
	mov	eax, DWORD PTR -8[rbp]
	add	eax, edx
	lea	ecx, 2[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR -8[rbp]
	movsx	rdx, edx
	add	rdx, 48
	mov	DWORD PTR 8[rax+rdx*4], ecx
	add	DWORD PTR -8[rbp], 1
.L61:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, 3
	jbe	.L62
.L60:
	movzx	eax, BYTE PTR -21[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	check_winner_diag2, .-check_winner_diag2
	.globl	check_winner
	.type	check_winner, @function
check_winner:
.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	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	mov	edx, DWORD PTR -32[rbp]
	mov	ecx, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	check_winner_horizontal
	test	al, al
	jne	.L65
	mov	edx, DWORD PTR -32[rbp]
	mov	ecx, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	check_winner_vertical
	test	al, al
	jne	.L65
	mov	edx, DWORD PTR -32[rbp]
	mov	ecx, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	check_winner_diag1
	test	al, al
	jne	.L65
	mov	edx, DWORD PTR -32[rbp]
	mov	ecx, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	check_winner_diag2
	test	al, al
	je	.L66
.L65:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 172[rax]
	mov	edi, eax
	call	get_winner_from_turn
	mov	rdx, QWORD PTR -24[rbp]
	mov	DWORD PTR 176[rdx], eax
	jmp	.L74
.L66:
	mov	BYTE PTR -9[rbp], 1
	mov	DWORD PTR -8[rbp], 0
	jmp	.L68
.L73:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L69
.L72:
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -4[rbp]
	mov	ecx, DWORD PTR -8[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	get_cell_state_at
	test	eax, eax
	jne	.L70
	mov	BYTE PTR -9[rbp], 0
	jmp	.L71
.L70:
	add	DWORD PTR -4[rbp], 1
.L69:
	cmp	DWORD PTR -4[rbp], 5
	jle	.L72
.L71:
	add	DWORD PTR -8[rbp], 1
.L68:
	cmp	DWORD PTR -8[rbp], 6
	jle	.L73
	cmp	BYTE PTR -9[rbp], 0
	je	.L74
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 176[rax], 3
.L74:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	check_winner, .-check_winner
	.globl	get_cell_state_from_turn
	.type	get_cell_state_from_turn, @function
get_cell_state_from_turn:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	cmp	DWORD PTR -4[rbp], 0
	je	.L76
	cmp	DWORD PTR -4[rbp], 1
	je	.L77
	jmp	.L80
.L76:
	mov	eax, 1
	jmp	.L75
.L77:
	mov	eax, 2
	jmp	.L75
.L80:
.L75:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	get_cell_state_from_turn, .-get_cell_state_from_turn
	.globl	get_next_turn
	.type	get_next_turn, @function
get_next_turn:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	cmp	DWORD PTR -4[rbp], 0
	je	.L82
	cmp	DWORD PTR -4[rbp], 1
	je	.L83
	jmp	.L86
.L82:
	mov	eax, 1
	jmp	.L81
.L83:
	mov	eax, 0
	jmp	.L81
.L86:
.L81:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	get_next_turn, .-get_next_turn
	.globl	animate_winner
	.type	animate_winner, @function
animate_winner:
.LFB14:
	.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], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR 216[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR 224[rax], 1
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 172[rax]
	mov	edi, eax
	call	get_cell_state_from_turn
	mov	rdx, QWORD PTR -8[rbp]
	mov	DWORD PTR 220[rdx], eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 232
	mov	rsi, rax
	mov	edi, 4
	call	clock_gettime@PLT
	mov	rax, QWORD PTR stdscr[rip]
	mov	esi, 250
	mov	rdi, rax
	call	wtimeout@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	animate_winner, .-animate_winner
	.globl	is_drop_pos_valid
	.type	is_drop_pos_valid, @function
is_drop_pos_valid:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -12[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	get_valid_drop_pos_y
	cmp	eax, -1
	setne	al
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	is_drop_pos_valid, .-is_drop_pos_valid
	.globl	drop
	.type	drop, @function
drop:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR 168[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	get_valid_drop_pos_y
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], -1
	je	.L94
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 172[rax]
	mov	edi, eax
	call	get_cell_state_from_turn
	mov	ecx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, DWORD PTR 168[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -4[rbp]
	mov	rdi, rax
	call	set_cell_state_at
	mov	rax, QWORD PTR -24[rbp]
	mov	ecx, DWORD PTR 168[rax]
	mov	edx, DWORD PTR -4[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	check_winner
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 176[rax]
	test	eax, eax
	jne	.L93
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 172[rax]
	mov	edi, eax
	call	get_next_turn
	mov	rdx, QWORD PTR -24[rbp]
	mov	DWORD PTR 172[rdx], eax
.L93:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 176[rax]
	test	eax, eax
	je	.L90
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 176[rax]
	cmp	eax, 3
	je	.L90
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	animate_winner
	jmp	.L90
.L94:
	nop
.L90:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	drop, .-drop
	.globl	reset
	.type	reset, @function
reset:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 172[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 176[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 168[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR 224[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 184
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 200
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, 168
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rax, QWORD PTR stdscr[rip]
	mov	esi, -1
	mov	rdi, rax
	call	wtimeout@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	reset, .-reset
	.globl	input
	.type	input, @function
input:
.LFB18:
	.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	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 176[rax]
	test	eax, eax
	setne	al
	mov	BYTE PTR -9[rbp], al
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	wgetch@PLT
	mov	DWORD PTR -8[rbp], eax
	cmp	DWORD PTR -8[rbp], 261
	je	.L97
	cmp	DWORD PTR -8[rbp], 261
	jg	.L112
	cmp	DWORD PTR -8[rbp], 260
	je	.L99
	cmp	DWORD PTR -8[rbp], 260
	jg	.L112
	cmp	DWORD PTR -8[rbp], 258
	je	.L100
	cmp	DWORD PTR -8[rbp], 258
	jg	.L112
	cmp	DWORD PTR -8[rbp], 115
	jg	.L112
	cmp	DWORD PTR -8[rbp], 97
	jge	.L101
	cmp	DWORD PTR -8[rbp], 32
	je	.L100
	cmp	DWORD PTR -8[rbp], 32
	jl	.L112
	mov	eax, DWORD PTR -8[rbp]
	sub	eax, 49
	cmp	eax, 6
	ja	.L112
	jmp	.L111
.L101:
	mov	eax, DWORD PTR -8[rbp]
	sub	eax, 97
	cmp	eax, 18
	ja	.L112
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L103[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L103[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L103:
	.long	.L99-.L103
	.long	.L112-.L103
	.long	.L112-.L103
	.long	.L97-.L103
	.long	.L112-.L103
	.long	.L112-.L103
	.long	.L112-.L103
	.long	.L112-.L103
	.long	.L112-.L103
	.long	.L112-.L103
	.long	.L112-.L103
	.long	.L112-.L103
	.long	.L112-.L103
	.long	.L112-.L103
	.long	.L112-.L103
	.long	.L112-.L103
	.long	.L105-.L103
	.long	.L104-.L103
	.long	.L100-.L103
	.text
.L105:
	mov	rax, QWORD PTR -24[rbp]
	mov	BYTE PTR 180[rax], 1
	jmp	.L98
.L99:
	movzx	eax, BYTE PTR -9[rbp]
	xor	eax, 1
	test	al, al
	je	.L113
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 168[rax]
	test	eax, eax
	jle	.L113
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 168[rax]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 168[rax], edx
	jmp	.L113
.L97:
	movzx	eax, BYTE PTR -9[rbp]
	xor	eax, 1
	test	al, al
	je	.L114
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 168[rax]
	cmp	eax, 5
	jg	.L114
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 168[rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 168[rax], edx
	jmp	.L114
.L100:
	movzx	eax, BYTE PTR -9[rbp]
	xor	eax, 1
	test	al, al
	je	.L115
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	drop
	jmp	.L115
.L111:
	mov	eax, DWORD PTR -8[rbp]
	sub	eax, 49
	mov	DWORD PTR -4[rbp], eax
	movzx	eax, BYTE PTR -9[rbp]
	xor	eax, 1
	test	al, al
	je	.L116
	mov	edx, DWORD PTR -4[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	is_drop_pos_valid
	test	al, al
	je	.L116
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -4[rbp]
	mov	DWORD PTR 168[rax], edx
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	drop
	jmp	.L116
.L104:
	cmp	BYTE PTR -9[rbp], 0
	je	.L117
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	reset
	jmp	.L117
.L113:
	nop
	jmp	.L112
.L114:
	nop
	jmp	.L112
.L115:
	nop
	jmp	.L112
.L116:
	nop
	jmp	.L112
.L117:
	nop
.L98:
.L112:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	input, .-input
	.globl	draw_line
	.type	draw_line, @function
draw_line:
.LFB19:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 496
	mov	DWORD PTR -484[rbp], edi
	mov	DWORD PTR -488[rbp], esi
	mov	QWORD PTR -496[rbp], rdx
	mov	QWORD PTR -152[rbp], rcx
	mov	QWORD PTR -144[rbp], r8
	mov	QWORD PTR -136[rbp], r9
	test	al, al
	je	.L119
	movaps	XMMWORD PTR -128[rbp], xmm0
	movaps	XMMWORD PTR -112[rbp], xmm1
	movaps	XMMWORD PTR -96[rbp], xmm2
	movaps	XMMWORD PTR -80[rbp], xmm3
	movaps	XMMWORD PTR -64[rbp], xmm4
	movaps	XMMWORD PTR -48[rbp], xmm5
	movaps	XMMWORD PTR -32[rbp], xmm6
	movaps	XMMWORD PTR -16[rbp], xmm7
.L119:
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -184[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -472[rbp], 24
	mov	DWORD PTR -468[rbp], 48
	lea	rax, 16[rbp]
	mov	QWORD PTR -464[rbp], rax
	lea	rax, -176[rbp]
	mov	QWORD PTR -456[rbp], rax
	mov	BYTE PTR -193[rbp], 0
	lea	rcx, -472[rbp]
	mov	rdx, QWORD PTR -496[rbp]
	lea	rax, -448[rbp]
	mov	esi, 255
	mov	rdi, rax
	call	vsnprintf@PLT
	mov	rax, QWORD PTR stdscr[rip]
	mov	edx, DWORD PTR -488[rbp]
	mov	ecx, DWORD PTR -484[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	wmove@PLT
	mov	rax, QWORD PTR stdscr[rip]
	lea	rcx, -448[rbp]
	mov	edx, -1
	mov	rsi, rcx
	mov	rdi, rax
	call	waddnstr@PLT
	nop
	mov	rax, QWORD PTR -184[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L120
	call	__stack_chk_fail@PLT
.L120:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.size	draw_line, .-draw_line
	.section	.rodata
.LC0:
	.string	"Connect 4"
.LC1:
	.string	"x"
.LC2:
	.string	"Player 1: %s"
.LC3:
	.string	"o"
.LC4:
	.string	"Player 2: %s"
	.text
	.globl	draw_title
	.type	draw_title, @function
draw_title:
.LFB20:
	.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], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	rax, QWORD PTR -8[rbp]
	mov	ecx, DWORD PTR 16[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 20[rax]
	sub	eax, DWORD PTR -12[rbp]
	lea	rdx, .LC0[rip]
	mov	esi, ecx
	mov	edi, eax
	mov	eax, 0
	call	draw_line
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 16[rax]
	mov	rdx, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR 20[rdx]
	mov	ecx, DWORD PTR -12[rbp]
	sub	ecx, 2
	mov	edi, edx
	sub	edi, ecx
	lea	rcx, .LC1[rip]
	lea	rdx, .LC2[rip]
	mov	esi, eax
	mov	eax, 0
	call	draw_line
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 16[rax]
	mov	rdx, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR 20[rdx]
	mov	ecx, DWORD PTR -12[rbp]
	sub	ecx, 3
	sub	edx, ecx
	mov	edi, edx
	lea	rcx, .LC3[rip]
	lea	rdx, .LC4[rip]
	mov	esi, eax
	mov	eax, 0
	call	draw_line
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE20:
	.size	draw_title, .-draw_title
	.section	.rodata
.LC5:
	.string	"Winner: %s"
.LC6:
	.string	"DRAW"
	.text
	.globl	draw_winner
	.type	draw_winner, @function
draw_winner:
.LFB21:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -44[rbp], esi
	mov	DWORD PTR -48[rbp], edx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -48[rbp], 3
	je	.L123
	cmp	DWORD PTR -48[rbp], 3
	ja	.L124
	cmp	DWORD PTR -48[rbp], 2
	je	.L125
	cmp	DWORD PTR -48[rbp], 2
	ja	.L124
	cmp	DWORD PTR -48[rbp], 0
	je	.L128
	cmp	DWORD PTR -48[rbp], 1
	jne	.L124
	lea	rax, -32[rbp]
	lea	rcx, .LC1[rip]
	lea	rdx, .LC5[rip]
	mov	esi, 16
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	jmp	.L124
.L125:
	lea	rax, -32[rbp]
	lea	rcx, .LC3[rip]
	lea	rdx, .LC5[rip]
	mov	esi, 16
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	jmp	.L124
.L123:
	lea	rax, -32[rbp]
	lea	rdx, .LC6[rip]
	mov	esi, 16
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	jmp	.L124
.L128:
	nop
.L124:
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR 16[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 20[rax]
	sub	eax, DWORD PTR -44[rbp]
	mov	ecx, eax
	mov	rax, QWORD PTR stdscr[rip]
	mov	esi, ecx
	mov	rdi, rax
	call	wmove@PLT
	mov	rax, QWORD PTR stdscr[rip]
	lea	rcx, -32[rbp]
	mov	edx, -1
	mov	rsi, rcx
	mov	rdi, rax
	call	waddnstr@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L127
	call	__stack_chk_fail@PLT
.L127:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE21:
	.size	draw_winner, .-draw_winner
	.section	.rodata
.LC7:
	.string	"Turn: %s"
	.text
	.globl	draw_turn
	.type	draw_turn, @function
draw_turn:
.LFB22:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -44[rbp], esi
	mov	DWORD PTR -48[rbp], edx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -48[rbp], 0
	jne	.L130
	lea	rax, .LC1[rip]
	jmp	.L131
.L130:
	lea	rax, .LC3[rip]
.L131:
	lea	rdi, -32[rbp]
	mov	rcx, rax
	lea	rdx, .LC7[rip]
	mov	esi, 16
	mov	eax, 0
	call	snprintf@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR 16[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 20[rax]
	sub	eax, DWORD PTR -44[rbp]
	mov	ecx, eax
	mov	rax, QWORD PTR stdscr[rip]
	mov	esi, ecx
	mov	rdi, rax
	call	wmove@PLT
	mov	rax, QWORD PTR stdscr[rip]
	lea	rcx, -32[rbp]
	mov	edx, -1
	mov	rsi, rcx
	mov	rdi, rax
	call	waddnstr@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L132
	call	__stack_chk_fail@PLT
.L132:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE22:
	.size	draw_turn, .-draw_turn
	.globl	get_player_ch
	.type	get_player_ch, @function
get_player_ch:
.LFB23:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	cmp	DWORD PTR -4[rbp], 0
	je	.L134
	cmp	DWORD PTR -4[rbp], 1
	je	.L135
	jmp	.L138
.L134:
	lea	rax, .LC1[rip]
	jmp	.L133
.L135:
	lea	rax, .LC3[rip]
	jmp	.L133
.L138:
.L133:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE23:
	.size	get_player_ch, .-get_player_ch
	.globl	is_pos_winner_pos
	.type	is_pos_winner_pos, @function
is_pos_winner_pos:
.LFB24:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	mov	DWORD PTR -4[rbp], 0
	jmp	.L140
.L143:
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -4[rbp]
	movsx	rdx, edx
	add	rdx, 44
	mov	eax, DWORD PTR 8[rax+rdx*4]
	cmp	DWORD PTR -28[rbp], eax
	jne	.L141
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -4[rbp]
	movsx	rdx, edx
	add	rdx, 48
	mov	eax, DWORD PTR 8[rax+rdx*4]
	cmp	DWORD PTR -32[rbp], eax
	jne	.L141
	mov	eax, 1
	jmp	.L142
.L141:
	add	DWORD PTR -4[rbp], 1
.L140:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, 3
	jbe	.L143
	mov	eax, 0
.L142:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE24:
	.size	is_pos_winner_pos, .-is_pos_winner_pos
	.globl	draw_drop_pos_hints
	.type	draw_drop_pos_hints, @function
draw_drop_pos_hints:
.LFB25:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -44[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -23[rbp]
	mov	edx, 14
	mov	esi, 32
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR -28[rbp], 0
	jmp	.L145
.L146:
	mov	eax, DWORD PTR -28[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	add	eax, 49
	mov	edx, eax
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	mov	BYTE PTR -23[rbp+rax], dl
	add	DWORD PTR -28[rbp], 2
.L145:
	cmp	DWORD PTR -28[rbp], 13
	jle	.L146
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR 16[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 20[rax]
	sub	eax, DWORD PTR -44[rbp]
	mov	ecx, eax
	mov	rax, QWORD PTR stdscr[rip]
	mov	esi, ecx
	mov	rdi, rax
	call	wmove@PLT
	mov	BYTE PTR -9[rbp], 0
	mov	rax, QWORD PTR stdscr[rip]
	lea	rcx, -23[rbp]
	mov	edx, -1
	mov	rsi, rcx
	mov	rdi, rax
	call	waddnstr@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L147
	call	__stack_chk_fail@PLT
.L147:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE25:
	.size	draw_drop_pos_hints, .-draw_drop_pos_hints
	.section	.rodata
.LC8:
	.string	". "
.LC9:
	.string	"%s "
	.text
	.globl	draw
	.type	draw, @function
draw:
.LFB26:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	QWORD PTR -72[rbp], rdi
	mov	QWORD PTR -80[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -80[rbp]
	movzx	eax, BYTE PTR 224[rax]
	test	al, al
	je	.L149
	lea	rax, -32[rbp]
	mov	rsi, rax
	mov	edi, 4
	call	clock_gettime@PLT
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -80[rbp]
	mov	rcx, QWORD PTR 232[rax]
	mov	rax, rdx
	sub	rax, rcx
	imul	rsi, rax, 1000000
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR 240[rax]
	mov	rcx, rdx
	sub	rcx, rax
	movabs	rdx, 4835703278458516699
	mov	rax, rcx
	imul	rdx
	mov	rax, rdx
	sar	rax, 18
	sar	rcx, 63
	mov	rdx, rcx
	sub	rax, rdx
	add	rax, rsi
	mov	QWORD PTR -40[rbp], rax
	cmp	QWORD PTR -40[rbp], 500
	jbe	.L150
	mov	rax, QWORD PTR -80[rbp]
	add	rax, 232
	mov	rsi, rax
	mov	edi, 4
	call	clock_gettime@PLT
	mov	rax, QWORD PTR -80[rbp]
	movzx	eax, BYTE PTR 216[rax]
	movzx	eax, al
	test	eax, eax
	setne	al
	xor	eax, 1
	movzx	eax, al
	and	eax, 1
	mov	rdx, QWORD PTR -80[rbp]
	mov	BYTE PTR 216[rdx], al
.L150:
	mov	rax, QWORD PTR -80[rbp]
	movzx	eax, BYTE PTR 216[rax]
	test	al, al
	je	.L151
	mov	DWORD PTR -64[rbp], 0
	jmp	.L152
.L153:
	mov	rax, QWORD PTR -80[rbp]
	mov	edx, DWORD PTR -64[rbp]
	movsx	rdx, edx
	add	rdx, 48
	mov	edx, DWORD PTR 8[rax+rdx*4]
	mov	rax, QWORD PTR -80[rbp]
	mov	ecx, DWORD PTR -64[rbp]
	movsx	rcx, ecx
	add	rcx, 44
	mov	esi, DWORD PTR 8[rax+rcx*4]
	mov	rax, QWORD PTR -80[rbp]
	mov	ecx, 0
	mov	rdi, rax
	call	set_cell_state_at
	add	DWORD PTR -64[rbp], 1
.L152:
	mov	eax, DWORD PTR -64[rbp]
	cmp	eax, 3
	jbe	.L153
	jmp	.L149
.L151:
	mov	DWORD PTR -60[rbp], 0
	jmp	.L155
.L156:
	mov	rax, QWORD PTR -80[rbp]
	mov	ecx, DWORD PTR 220[rax]
	mov	rax, QWORD PTR -80[rbp]
	mov	edx, DWORD PTR -60[rbp]
	movsx	rdx, edx
	add	rdx, 48
	mov	edx, DWORD PTR 8[rax+rdx*4]
	mov	rax, QWORD PTR -80[rbp]
	mov	esi, DWORD PTR -60[rbp]
	movsx	rsi, esi
	add	rsi, 44
	mov	esi, DWORD PTR 8[rax+rsi*4]
	mov	rax, QWORD PTR -80[rbp]
	mov	rdi, rax
	call	set_cell_state_at
	add	DWORD PTR -60[rbp], 1
.L155:
	mov	eax, DWORD PTR -60[rbp]
	cmp	eax, 3
	jbe	.L156
.L149:
	mov	rax, QWORD PTR -72[rbp]
	mov	esi, 9
	mov	rdi, rax
	call	draw_title
	mov	rax, QWORD PTR -80[rbp]
	mov	eax, DWORD PTR 176[rax]
	test	eax, eax
	jne	.L157
	mov	rax, QWORD PTR -80[rbp]
	mov	edx, DWORD PTR 172[rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	esi, 4
	mov	rdi, rax
	call	draw_turn
	jmp	.L158
.L157:
	mov	rax, QWORD PTR -80[rbp]
	mov	edx, DWORD PTR 176[rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	esi, 4
	mov	rdi, rax
	call	draw_winner
.L158:
	mov	rax, QWORD PTR -72[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	draw_drop_pos_hints
	mov	rax, QWORD PTR -72[rbp]
	mov	edx, DWORD PTR 16[rax]
	mov	rax, QWORD PTR -80[rbp]
	mov	eax, DWORD PTR 168[rax]
	add	eax, eax
	add	edx, eax
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 20[rax]
	lea	ecx, -2[rax]
	mov	rax, QWORD PTR stdscr[rip]
	mov	esi, ecx
	mov	rdi, rax
	call	wmove@PLT
	mov	rax, QWORD PTR -80[rbp]
	mov	eax, DWORD PTR 172[rax]
	mov	edi, eax
	call	get_player_ch
	mov	rcx, rax
	mov	rax, QWORD PTR stdscr[rip]
	mov	edx, -1
	mov	rsi, rcx
	mov	rdi, rax
	call	waddnstr@PLT
	mov	DWORD PTR -56[rbp], 0
	jmp	.L159
.L166:
	mov	rax, QWORD PTR -72[rbp]
	mov	edx, DWORD PTR 16[rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	ecx, DWORD PTR 20[rax]
	mov	eax, DWORD PTR -56[rbp]
	add	ecx, eax
	mov	rax, QWORD PTR stdscr[rip]
	mov	esi, ecx
	mov	rdi, rax
	call	wmove@PLT
	mov	DWORD PTR -52[rbp], 0
	jmp	.L160
.L165:
	mov	rax, QWORD PTR -80[rbp]
	mov	edx, DWORD PTR -56[rbp]
	mov	ecx, DWORD PTR -52[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	get_cell_state_at
	mov	DWORD PTR -44[rbp], eax
	cmp	DWORD PTR -44[rbp], 2
	je	.L161
	cmp	DWORD PTR -44[rbp], 2
	ja	.L162
	cmp	DWORD PTR -44[rbp], 0
	je	.L163
	cmp	DWORD PTR -44[rbp], 1
	je	.L164
	jmp	.L162
.L163:
	mov	rax, QWORD PTR stdscr[rip]
	mov	edx, -1
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	call	waddnstr@PLT
	jmp	.L162
.L164:
	mov	WORD PTR -11[rbp], 0
	mov	BYTE PTR -9[rbp], 0
	lea	rax, -11[rbp]
	lea	rcx, .LC1[rip]
	lea	rdx, .LC9[rip]
	mov	esi, 3
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	mov	rax, QWORD PTR stdscr[rip]
	lea	rcx, -11[rbp]
	mov	edx, -1
	mov	rsi, rcx
	mov	rdi, rax
	call	waddnstr@PLT
	jmp	.L162
.L161:
	mov	WORD PTR -11[rbp], 0
	mov	BYTE PTR -9[rbp], 0
	lea	rax, -11[rbp]
	lea	rcx, .LC3[rip]
	lea	rdx, .LC9[rip]
	mov	esi, 3
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	mov	rax, QWORD PTR stdscr[rip]
	lea	rcx, -11[rbp]
	mov	edx, -1
	mov	rsi, rcx
	mov	rdi, rax
	call	waddnstr@PLT
	nop
.L162:
	add	DWORD PTR -52[rbp], 1
.L160:
	cmp	DWORD PTR -52[rbp], 6
	jle	.L165
	add	DWORD PTR -56[rbp], 1
.L159:
	cmp	DWORD PTR -56[rbp], 5
	jle	.L166
	mov	rax, QWORD PTR -72[rbp]
	mov	edx, DWORD PTR 16[rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 20[rax]
	lea	ecx, 6[rax]
	mov	rax, QWORD PTR stdscr[rip]
	mov	esi, ecx
	mov	rdi, rax
	call	wmove@PLT
	mov	DWORD PTR -48[rbp], 0
	jmp	.L167
.L168:
	mov	rax, QWORD PTR stdscr[rip]
	mov	esi, 61
	mov	rdi, rax
	call	waddch@PLT
	add	DWORD PTR -48[rbp], 1
.L167:
	cmp	DWORD PTR -48[rbp], 12
	jle	.L168
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L169
	call	__stack_chk_fail@PLT
.L169:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE26:
	.size	draw, .-draw
	.globl	main
	.type	main, @function
main:
.LFB27:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 304
	mov	DWORD PTR -292[rbp], edi
	mov	QWORD PTR -304[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -288[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	create_window
	lea	rdx, -256[rbp]
	mov	eax, 0
	mov	ecx, 31
	mov	rdi, rdx
	rep stosq
	lea	rax, -256[rbp]
	mov	rdi, rax
	call	reset
.L173:
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	werase@PLT
	lea	rdx, -256[rbp]
	lea	rax, -288[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	draw
	lea	rax, -256[rbp]
	mov	rdi, rax
	call	input
	movzx	eax, BYTE PTR -76[rbp]
	test	al, al
	jne	.L177
	jmp	.L173
.L177:
	nop
	lea	rax, -288[rbp]
	mov	rdi, rax
	call	delete_window
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L175
	call	__stack_chk_fail@PLT
.L175:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE27:
	.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	"66214.c"
	.text
	.align	2
	.global	create_window
	.syntax unified
	.arm
	.fpu softvfp
	.type	create_window, %function
create_window:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	sub	r3, fp, #28
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	str	r2, [r3, #8]
	str	r2, [r3, #12]
	str	r2, [r3, #16]
	str	r2, [r3, #20]
	bl	initscr
	ldr	r3, .L7
	ldr	r3, [r3]
	mvn	r1, #0
	mov	r0, r3
	bl	wtimeout
	bl	cbreak
	bl	noecho
	ldr	r3, .L7
	ldr	r3, [r3]
	mov	r1, #1
	mov	r0, r3
	bl	keypad
	mov	r0, #0
	bl	curs_set
	mov	r3, #14
	str	r3, [fp, #-20]
	mov	r3, #14
	str	r3, [fp, #-16]
	ldr	r3, .L7
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L2
	ldr	r3, .L7
	ldr	r3, [r3]
	ldrsh	r3, [r3, #4]
	add	r3, r3, #1
	b	.L3
.L2:
	mvn	r3, #0
.L3:
	str	r3, [fp, #-24]
	ldr	r3, .L7
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L4
	ldr	r3, .L7
	ldr	r3, [r3]
	ldrsh	r3, [r3, #6]
	add	r3, r3, #1
	b	.L5
.L4:
	mvn	r3, #0
.L5:
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r1, r3
	ldr	r3, [fp, #-20]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	rsb	r3, r3, #0
	add	r3, r1, r3
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-24]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	add	r2, r3, #4
	ldr	r3, [fp, #-16]
	lsr	r1, r3, #31
	add	r3, r1, r3
	asr	r3, r3, #1
	rsb	r3, r3, #0
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-32]
	mov	lr, r3
	sub	ip, fp, #28
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	lr!, {r0, r1, r2, r3}
	ldm	ip, {r0, r1}
	stm	lr, {r0, r1}
	ldr	r0, [fp, #-32]
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	stdscr
	.size	create_window, .-create_window
	.align	2
	.global	delete_window
	.syntax unified
	.arm
	.fpu softvfp
	.type	delete_window, %function
delete_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
	str	r0, [fp, #-8]
	bl	endwin
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	delete_window, .-delete_window
	.align	2
	.global	get_cell_state_at_safe
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_cell_state_at_safe, %function
get_cell_state_at_safe:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	blt	.L11
	ldr	r3, [fp, #-12]
	cmp	r3, #6
	bgt	.L11
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	blt	.L11
	ldr	r3, [fp, #-16]
	cmp	r3, #5
	ble	.L12
.L11:
	mvn	r3, #0
	b	.L13
.L12:
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r2, r3, r2
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	ldr	r3, [r3]
.L13:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	get_cell_state_at_safe, .-get_cell_state_at_safe
	.align	2
	.global	get_cell_state_at
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_cell_state_at, %function
get_cell_state_at:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r2, r3, r2
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	get_cell_state_at, .-get_cell_state_at
	.align	2
	.global	set_cell_state_at
	.syntax unified
	.arm
	.fpu softvfp
	.type	set_cell_state_at, %function
set_cell_state_at:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	str	r3, [fp, #-20]
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r2, r3, r2
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	ldr	r2, [fp, #-20]
	str	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	set_cell_state_at, .-set_cell_state_at
	.align	2
	.global	get_valid_drop_pos_y
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_valid_drop_pos_y, %function
get_valid_drop_pos_y:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #5
	str	r3, [fp, #-12]
	b	.L18
.L21:
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	get_cell_state_at
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L23
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	str	r3, [fp, #-12]
.L18:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bge	.L21
	b	.L20
.L23:
	nop
.L20:
	ldr	r3, [fp, #-12]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	get_valid_drop_pos_y, .-get_valid_drop_pos_y
	.align	2
	.global	get_winner_from_turn
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_winner_from_turn, %function
get_winner_from_turn:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L25
	ldr	r3, [fp, #-8]
	cmp	r3, #1
	beq	.L26
	b	.L29
.L25:
	mov	r3, #1
	b	.L24
.L26:
	mov	r3, #2
	b	.L24
.L29:
.L24:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	get_winner_from_turn, .-get_winner_from_turn
	.align	2
	.global	check_winner_horizontal
	.syntax unified
	.arm
	.fpu softvfp
	.type	check_winner_horizontal, %function
check_winner_horizontal:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-40]
	ldr	r1, [fp, #-36]
	mov	r0, r3
	bl	get_cell_state_at
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-36]
	str	r3, [fp, #-20]
	b	.L31
.L32:
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	str	r3, [fp, #-20]
.L31:
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-40]
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	get_cell_state_at_safe
	mov	r2, r0
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	beq	.L32
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L33
.L34:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L33:
	ldr	r0, [fp, #-32]
	ldr	r3, [fp, #-20]
	add	r2, r3, #1
	str	r2, [fp, #-20]
	ldr	r2, [fp, #-40]
	mov	r1, r3
	bl	get_cell_state_at_safe
	mov	r2, r0
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	beq	.L34
	ldr	r3, [fp, #-16]
	cmp	r3, #4
	moveq	r3, #1
	movne	r3, #0
	strb	r3, [fp, #-21]
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L35
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L36
.L37:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-12]
	sub	r3, r2, r3
	sub	r1, r3, #2
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-12]
	add	r2, r2, #46
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-12]
	add	r2, r2, #50
	ldr	r1, [fp, #-40]
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L36:
	ldr	r3, [fp, #-12]
	cmp	r3, #3
	bls	.L37
.L35:
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	check_winner_horizontal, .-check_winner_horizontal
	.align	2
	.global	check_winner_vertical
	.syntax unified
	.arm
	.fpu softvfp
	.type	check_winner_vertical, %function
check_winner_vertical:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-40]
	ldr	r1, [fp, #-36]
	mov	r0, r3
	bl	get_cell_state_at
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-40]
	str	r3, [fp, #-20]
	b	.L40
.L41:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L40:
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-36]
	mov	r0, r3
	bl	get_cell_state_at_safe
	mov	r2, r0
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	beq	.L41
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L42
.L43:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L42:
	ldr	r0, [fp, #-32]
	ldr	r3, [fp, #-20]
	sub	r2, r3, #1
	str	r2, [fp, #-20]
	mov	r2, r3
	ldr	r1, [fp, #-36]
	bl	get_cell_state_at_safe
	mov	r2, r0
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	beq	.L43
	ldr	r3, [fp, #-16]
	cmp	r3, #4
	moveq	r3, #1
	movne	r3, #0
	strb	r3, [fp, #-21]
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L44
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L45
.L46:
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-12]
	add	r2, r2, #46
	ldr	r1, [fp, #-36]
	str	r1, [r3, r2, lsl #2]
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	add	r1, r3, #2
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-12]
	add	r2, r2, #50
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L45:
	ldr	r3, [fp, #-12]
	cmp	r3, #3
	bls	.L46
.L44:
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	check_winner_vertical, .-check_winner_vertical
	.align	2
	.global	check_winner_diag1
	.syntax unified
	.arm
	.fpu softvfp
	.type	check_winner_diag1, %function
check_winner_diag1:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-40]
	ldr	r1, [fp, #-36]
	mov	r0, r3
	bl	get_cell_state_at
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-36]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-40]
	str	r3, [fp, #-20]
	b	.L49
.L50:
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L49:
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-24]
	mov	r0, r3
	bl	get_cell_state_at_safe
	mov	r2, r0
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	beq	.L50
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L51
.L52:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L51:
	ldr	r0, [fp, #-32]
	ldr	r3, [fp, #-24]
	add	r2, r3, #1
	str	r2, [fp, #-24]
	ldr	r2, [fp, #-20]
	sub	r1, r2, #1
	str	r1, [fp, #-20]
	mov	r1, r3
	bl	get_cell_state_at_safe
	mov	r2, r0
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	beq	.L52
	ldr	r3, [fp, #-16]
	cmp	r3, #4
	moveq	r3, #1
	movne	r3, #0
	strb	r3, [fp, #-25]
	ldrb	r3, [fp, #-25]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L53
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L54
.L55:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-12]
	sub	r3, r2, r3
	sub	r1, r3, #2
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-12]
	add	r2, r2, #46
	str	r1, [r3, r2, lsl #2]
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	add	r1, r3, #2
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-12]
	add	r2, r2, #50
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L54:
	ldr	r3, [fp, #-12]
	cmp	r3, #3
	bls	.L55
.L53:
	ldrb	r3, [fp, #-25]	@ zero_extendqisi2
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	check_winner_diag1, .-check_winner_diag1
	.align	2
	.global	check_winner_diag2
	.syntax unified
	.arm
	.fpu softvfp
	.type	check_winner_diag2, %function
check_winner_diag2:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-40]
	ldr	r1, [fp, #-36]
	mov	r0, r3
	bl	get_cell_state_at
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-36]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-40]
	str	r3, [fp, #-20]
	b	.L58
.L59:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L58:
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-24]
	mov	r0, r3
	bl	get_cell_state_at_safe
	mov	r2, r0
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	beq	.L59
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L60
.L61:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L60:
	ldr	r0, [fp, #-32]
	ldr	r3, [fp, #-24]
	sub	r2, r3, #1
	str	r2, [fp, #-24]
	ldr	r2, [fp, #-20]
	sub	r1, r2, #1
	str	r1, [fp, #-20]
	mov	r1, r3
	bl	get_cell_state_at_safe
	mov	r2, r0
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	beq	.L61
	ldr	r3, [fp, #-16]
	cmp	r3, #4
	moveq	r3, #1
	movne	r3, #0
	strb	r3, [fp, #-25]
	ldrb	r3, [fp, #-25]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L62
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L63
.L64:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	add	r1, r3, #2
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-12]
	add	r2, r2, #46
	str	r1, [r3, r2, lsl #2]
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	add	r1, r3, #2
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-12]
	add	r2, r2, #50
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L63:
	ldr	r3, [fp, #-12]
	cmp	r3, #3
	bls	.L64
.L62:
	ldrb	r3, [fp, #-25]	@ zero_extendqisi2
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	check_winner_diag2, .-check_winner_diag2
	.align	2
	.global	check_winner
	.syntax unified
	.arm
	.fpu softvfp
	.type	check_winner, %function
check_winner:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	ldr	r2, [fp, #-32]
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-24]
	bl	check_winner_horizontal
	mov	r3, r0
	cmp	r3, #0
	bne	.L67
	ldr	r2, [fp, #-32]
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-24]
	bl	check_winner_vertical
	mov	r3, r0
	cmp	r3, #0
	bne	.L67
	ldr	r2, [fp, #-32]
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-24]
	bl	check_winner_diag1
	mov	r3, r0
	cmp	r3, #0
	bne	.L67
	ldr	r2, [fp, #-32]
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-24]
	bl	check_winner_diag2
	mov	r3, r0
	cmp	r3, #0
	beq	.L68
.L67:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #172]
	mov	r0, r3
	bl	get_winner_from_turn
	mov	r2, r0
	ldr	r3, [fp, #-24]
	str	r2, [r3, #176]
	b	.L76
.L68:
	mov	r3, #1
	strb	r3, [fp, #-13]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L70
.L75:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L71
.L74:
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-8]
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	get_cell_state_at
	mov	r3, r0
	cmp	r3, #0
	bne	.L72
	mov	r3, #0
	strb	r3, [fp, #-13]
	b	.L73
.L72:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L71:
	ldr	r3, [fp, #-8]
	cmp	r3, #5
	ble	.L74
.L73:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L70:
	ldr	r3, [fp, #-12]
	cmp	r3, #6
	ble	.L75
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L76
	ldr	r3, [fp, #-24]
	mov	r2, #3
	str	r2, [r3, #176]
.L76:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	check_winner, .-check_winner
	.align	2
	.global	get_cell_state_from_turn
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_cell_state_from_turn, %function
get_cell_state_from_turn:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L78
	ldr	r3, [fp, #-8]
	cmp	r3, #1
	beq	.L79
	b	.L82
.L78:
	mov	r3, #1
	b	.L77
.L79:
	mov	r3, #2
	b	.L77
.L82:
.L77:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	get_cell_state_from_turn, .-get_cell_state_from_turn
	.align	2
	.global	get_next_turn
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_next_turn, %function
get_next_turn:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L84
	ldr	r3, [fp, #-8]
	cmp	r3, #1
	beq	.L85
	b	.L88
.L84:
	mov	r3, #1
	b	.L83
.L85:
	mov	r3, #0
	b	.L83
.L88:
.L83:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	get_next_turn, .-get_next_turn
	.align	2
	.global	animate_winner
	.syntax unified
	.arm
	.fpu softvfp
	.type	animate_winner, %function
animate_winner:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	strb	r2, [r3, #216]
	ldr	r3, [fp, #-8]
	mov	r2, #1
	strb	r2, [r3, #224]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #172]
	mov	r0, r3
	bl	get_cell_state_from_turn
	mov	r2, r0
	ldr	r3, [fp, #-8]
	str	r2, [r3, #220]
	ldr	r3, [fp, #-8]
	add	r3, r3, #228
	mov	r1, r3
	mov	r0, #4
	bl	clock_gettime
	ldr	r3, .L90
	ldr	r3, [r3]
	mov	r1, #250
	mov	r0, r3
	bl	wtimeout
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L91:
	.align	2
.L90:
	.word	stdscr
	.size	animate_winner, .-animate_winner
	.align	2
	.global	is_drop_pos_valid
	.syntax unified
	.arm
	.fpu softvfp
	.type	is_drop_pos_valid, %function
is_drop_pos_valid:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	get_valid_drop_pos_y
	mov	r3, r0
	cmn	r3, #1
	movne	r3, #1
	moveq	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	is_drop_pos_valid, .-is_drop_pos_valid
	.align	2
	.global	drop
	.syntax unified
	.arm
	.fpu softvfp
	.type	drop, %function
drop:
	@ 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
	str	r0, [fp, #-24]
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #168]
	mov	r1, r3
	mov	r0, r2
	bl	get_valid_drop_pos_y
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmn	r3, #1
	beq	.L98
	ldr	r4, [fp, #-24]
	ldr	r3, [fp, #-24]
	ldr	r5, [r3, #168]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #172]
	mov	r0, r3
	bl	get_cell_state_from_turn
	mov	r3, r0
	ldr	r2, [fp, #-16]
	mov	r1, r5
	mov	r0, r4
	bl	set_cell_state_at
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #168]
	ldr	r2, [fp, #-16]
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	check_winner
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #176]
	cmp	r3, #0
	bne	.L97
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #172]
	mov	r0, r3
	bl	get_next_turn
	mov	r2, r0
	ldr	r3, [fp, #-24]
	str	r2, [r3, #172]
.L97:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #176]
	cmp	r3, #0
	beq	.L94
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #176]
	cmp	r3, #3
	beq	.L94
	ldr	r0, [fp, #-24]
	bl	animate_winner
	b	.L94
.L98:
	nop
.L94:
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
	.size	drop, .-drop
	.align	2
	.global	reset
	.syntax unified
	.arm
	.fpu softvfp
	.type	reset, %function
reset:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #172]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #176]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #168]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	strb	r2, [r3, #224]
	ldr	r3, [fp, #-8]
	add	r3, r3, #184
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, [fp, #-8]
	add	r3, r3, #200
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, [fp, #-8]
	mov	r2, #168
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, .L100
	ldr	r3, [r3]
	mvn	r1, #0
	mov	r0, r3
	bl	wtimeout
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L101:
	.align	2
.L100:
	.word	stdscr
	.size	reset, .-reset
	.align	2
	.global	input
	.syntax unified
	.arm
	.fpu softvfp
	.type	input, %function
input:
	@ 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]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #176]
	cmp	r3, #0
	movne	r3, #1
	moveq	r3, #0
	strb	r3, [fp, #-13]
	ldr	r3, .L124
	ldr	r3, [r3]
	mov	r0, r3
	bl	wgetch
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	ldr	r2, .L124+4
	cmp	r3, r2
	beq	.L103
	ldr	r3, [fp, #-12]
	ldr	r2, .L124+4
	cmp	r3, r2
	bgt	.L118
	ldr	r3, [fp, #-12]
	cmp	r3, #260
	beq	.L105
	ldr	r3, [fp, #-12]
	cmp	r3, #260
	bgt	.L118
	ldr	r3, [fp, #-12]
	ldr	r2, .L124+8
	cmp	r3, r2
	beq	.L106
	ldr	r3, [fp, #-12]
	ldr	r2, .L124+8
	cmp	r3, r2
	bgt	.L118
	ldr	r3, [fp, #-12]
	cmp	r3, #115
	bgt	.L118
	ldr	r3, [fp, #-12]
	cmp	r3, #97
	bge	.L107
	ldr	r3, [fp, #-12]
	cmp	r3, #32
	beq	.L106
	ldr	r3, [fp, #-12]
	cmp	r3, #32
	blt	.L118
	ldr	r3, [fp, #-12]
	sub	r3, r3, #49
	cmp	r3, #6
	bhi	.L118
	b	.L117
.L107:
	ldr	r3, [fp, #-12]
	sub	r3, r3, #97
	cmp	r3, #18
	ldrls	pc, [pc, r3, asl #2]
	b	.L118
.L109:
	.word	.L105
	.word	.L118
	.word	.L118
	.word	.L103
	.word	.L118
	.word	.L118
	.word	.L118
	.word	.L118
	.word	.L118
	.word	.L118
	.word	.L118
	.word	.L118
	.word	.L118
	.word	.L118
	.word	.L118
	.word	.L118
	.word	.L111
	.word	.L110
	.word	.L106
.L111:
	ldr	r3, [fp, #-24]
	mov	r2, #1
	strb	r2, [r3, #180]
	b	.L104
.L105:
	ldrb	r3, [fp, #-13]
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L119
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #168]
	cmp	r3, #0
	ble	.L119
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #168]
	sub	r2, r3, #1
	ldr	r3, [fp, #-24]
	str	r2, [r3, #168]
	b	.L119
.L103:
	ldrb	r3, [fp, #-13]
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L120
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #168]
	cmp	r3, #5
	bgt	.L120
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #168]
	add	r2, r3, #1
	ldr	r3, [fp, #-24]
	str	r2, [r3, #168]
	b	.L120
.L106:
	ldrb	r3, [fp, #-13]
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L121
	ldr	r0, [fp, #-24]
	bl	drop
	b	.L121
.L117:
	ldr	r3, [fp, #-12]
	sub	r3, r3, #49
	str	r3, [fp, #-8]
	ldrb	r3, [fp, #-13]
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L122
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-24]
	bl	is_drop_pos_valid
	mov	r3, r0
	cmp	r3, #0
	beq	.L122
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #168]
	ldr	r0, [fp, #-24]
	bl	drop
	b	.L122
.L110:
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L123
	ldr	r0, [fp, #-24]
	bl	reset
	b	.L123
.L119:
	nop
	b	.L118
.L120:
	nop
	b	.L118
.L121:
	nop
	b	.L118
.L122:
	nop
	b	.L118
.L123:
	nop
.L104:
.L118:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L125:
	.align	2
.L124:
	.word	stdscr
	.word	261
	.word	258
	.size	input, .-input
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	draw_line
	.syntax unified
	.arm
	.fpu softvfp
	.type	draw_line, %function
draw_line:
	@ args = 4, pretend = 8, frame = 280
	@ frame_needed = 1, uses_anonymous_args = 1
	push	{r2, r3}
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #280
	str	r0, [fp, #-272]
	str	r1, [fp, #-276]
	ldr	r3, [fp, #4]
	str	r3, [fp, #-280]
	ldr	r3, .L128
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	add	r3, fp, #8
	str	r3, [fp, #-268]
	mov	r3, #0
	strb	r3, [fp, #-9]
	sub	r0, fp, #264
	ldr	r3, [fp, #-268]
	ldr	r2, [fp, #-280]
	mov	r1, #255
	bl	vsnprintf
	ldr	r3, .L128+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-276]
	ldr	r1, [fp, #-272]
	mov	r0, r3
	bl	wmove
	ldr	r3, .L128+4
	ldr	r3, [r3]
	sub	r1, fp, #264
	mvn	r2, #0
	mov	r0, r3
	bl	waddnstr
	nop
	ldr	r3, .L128
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L127
	bl	__stack_chk_fail
.L127:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, lr}
	add	sp, sp, #8
	bx	lr
.L129:
	.align	2
.L128:
	.word	.LC0
	.word	stdscr
	.size	draw_line, .-draw_line
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Connect 4\000"
	.align	2
.LC2:
	.ascii	"x\000"
	.align	2
.LC3:
	.ascii	"Player 1: %s\000"
	.align	2
.LC4:
	.ascii	"o\000"
	.align	2
.LC5:
	.ascii	"Player 2: %s\000"
	.text
	.align	2
	.global	draw_title
	.syntax unified
	.arm
	.fpu softvfp
	.type	draw_title, %function
draw_title:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #20]
	ldr	r3, [fp, #-12]
	sub	r0, r2, r3
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #16]
	ldr	r2, .L131
	mov	r1, r3
	bl	draw_line
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #20]
	ldr	r3, [fp, #-12]
	sub	r3, r3, #2
	sub	r0, r2, r3
	ldr	r3, [fp, #-8]
	ldr	r1, [r3, #16]
	ldr	r3, .L131+4
	ldr	r2, .L131+8
	bl	draw_line
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #20]
	ldr	r3, [fp, #-12]
	sub	r3, r3, #3
	sub	r0, r2, r3
	ldr	r3, [fp, #-8]
	ldr	r1, [r3, #16]
	ldr	r3, .L131+12
	ldr	r2, .L131+16
	bl	draw_line
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L132:
	.align	2
.L131:
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	draw_title, .-draw_title
	.section	.rodata
	.align	2
.LC6:
	.ascii	"Winner: %s\000"
	.align	2
.LC7:
	.ascii	"DRAW\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	draw_winner
	.syntax unified
	.arm
	.fpu softvfp
	.type	draw_winner, %function
draw_winner:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	ldr	r3, .L141
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-40]
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L134
.L136:
	.word	.L134
	.word	.L138
	.word	.L137
	.word	.L135
.L138:
	sub	r0, fp, #24
	ldr	r3, .L141+4
	ldr	r2, .L141+8
	mov	r1, #16
	bl	snprintf
	b	.L134
.L137:
	sub	r0, fp, #24
	ldr	r3, .L141+12
	ldr	r2, .L141+8
	mov	r1, #16
	bl	snprintf
	b	.L134
.L135:
	sub	r3, fp, #24
	ldr	r2, .L141+16
	mov	r1, #16
	mov	r0, r3
	bl	snprintf
	nop
.L134:
	ldr	r3, .L141+20
	ldr	r0, [r3]
	ldr	r3, [fp, #-32]
	ldr	r2, [r3, #20]
	ldr	r3, [fp, #-36]
	sub	r1, r2, r3
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #16]
	mov	r2, r3
	bl	wmove
	ldr	r3, .L141+20
	ldr	r3, [r3]
	sub	r1, fp, #24
	mvn	r2, #0
	mov	r0, r3
	bl	waddnstr
	nop
	ldr	r3, .L141
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L140
	bl	__stack_chk_fail
.L140:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L142:
	.align	2
.L141:
	.word	.LC8
	.word	.LC2
	.word	.LC6
	.word	.LC4
	.word	.LC7
	.word	stdscr
	.size	draw_winner, .-draw_winner
	.section	.rodata
	.align	2
.LC9:
	.ascii	"Turn: %s\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	draw_turn
	.syntax unified
	.arm
	.fpu softvfp
	.type	draw_turn, %function
draw_turn:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	ldr	r3, .L147
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	bne	.L144
	ldr	r3, .L147+4
	b	.L145
.L144:
	ldr	r3, .L147+8
.L145:
	sub	r0, fp, #24
	ldr	r2, .L147+12
	mov	r1, #16
	bl	snprintf
	ldr	r3, .L147+16
	ldr	r0, [r3]
	ldr	r3, [fp, #-32]
	ldr	r2, [r3, #20]
	ldr	r3, [fp, #-36]
	sub	r1, r2, r3
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #16]
	mov	r2, r3
	bl	wmove
	ldr	r3, .L147+16
	ldr	r3, [r3]
	sub	r1, fp, #24
	mvn	r2, #0
	mov	r0, r3
	bl	waddnstr
	nop
	ldr	r3, .L147
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L146
	bl	__stack_chk_fail
.L146:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L148:
	.align	2
.L147:
	.word	.LC10
	.word	.LC2
	.word	.LC4
	.word	.LC9
	.word	stdscr
	.size	draw_turn, .-draw_turn
	.align	2
	.global	get_player_ch
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_player_ch, %function
get_player_ch:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L150
	ldr	r3, [fp, #-8]
	cmp	r3, #1
	beq	.L151
	b	.L154
.L150:
	ldr	r3, .L155
	b	.L149
.L151:
	ldr	r3, .L155+4
	b	.L149
.L154:
.L149:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L156:
	.align	2
.L155:
	.word	.LC2
	.word	.LC4
	.size	get_player_ch, .-get_player_ch
	.align	2
	.global	is_pos_winner_pos
	.syntax unified
	.arm
	.fpu softvfp
	.type	is_pos_winner_pos, %function
is_pos_winner_pos:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L158
.L161:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	add	r2, r2, #46
	ldr	r3, [r3, r2, lsl #2]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	bne	.L159
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	add	r2, r2, #50
	ldr	r3, [r3, r2, lsl #2]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	bne	.L159
	mov	r3, #1
	b	.L160
.L159:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L158:
	ldr	r3, [fp, #-8]
	cmp	r3, #3
	bls	.L161
	mov	r3, #0
.L160:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	is_pos_winner_pos, .-is_pos_winner_pos
	.section	.rodata
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	draw_drop_pos_hints
	.syntax unified
	.arm
	.fpu softvfp
	.type	draw_drop_pos_hints, %function
draw_drop_pos_hints:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, .L166
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #24
	mov	r2, #14
	mov	r1, #32
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L163
.L164:
	ldr	r3, [fp, #-28]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	and	r3, r3, #255
	add	r3, r3, #49
	and	r1, r3, #255
	sub	r2, fp, #24
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-28]
	add	r3, r3, #2
	str	r3, [fp, #-28]
.L163:
	ldr	r3, [fp, #-28]
	cmp	r3, #13
	ble	.L164
	ldr	r3, .L166+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-32]
	ldr	r2, [r3, #20]
	ldr	r3, [fp, #-36]
	sub	r1, r2, r3
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #16]
	mov	r2, r3
	bl	wmove
	mov	r3, #0
	strb	r3, [fp, #-10]
	ldr	r3, .L166+4
	ldr	r3, [r3]
	sub	r1, fp, #24
	mvn	r2, #0
	mov	r0, r3
	bl	waddnstr
	nop
	ldr	r3, .L166
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L165
	bl	__stack_chk_fail
.L165:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L167:
	.align	2
.L166:
	.word	.LC11
	.word	stdscr
	.size	draw_drop_pos_hints, .-draw_drop_pos_hints
	.section	.rodata
	.align	2
.LC12:
	.ascii	". \000"
	.align	2
.LC14:
	.ascii	"%s \000"
	.align	2
.LC13:
	.ascii	"\000"
	.space	2
	.align	2
.LC15:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	draw
	.syntax unified
	.arm
	.fpu softvfp
	.type	draw, %function
draw:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #60
	str	r0, [fp, #-64]
	str	r1, [fp, #-68]
	ldr	r3, .L190
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #-68]
	ldrb	r3, [r3, #224]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L169
	sub	r3, fp, #28
	mov	r1, r3
	mov	r0, #4
	bl	clock_gettime
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-68]
	ldr	r3, [r3, #228]
	sub	r1, r2, r3
	mov	r2, r1
	lsl	r2, r2, #5
	sub	r2, r2, r1
	lsl	r3, r2, #6
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r1
	lsl	r3, r3, #6
	mov	r1, r3
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-68]
	ldr	r3, [r3, #232]
	sub	r3, r2, r3
	ldr	r2, .L190+4
	smull	r0, r2, r3, r2
	asr	r2, r2, #18
	asr	r3, r3, #31
	sub	r3, r2, r3
	add	r3, r1, r3
	mov	r2, r3
	asr	r3, r2, #31
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	cmp	r3, #0
	cmpeq	r2, #500
	bls	.L170
	ldr	r3, [fp, #-68]
	add	r3, r3, #228
	mov	r1, r3
	mov	r0, #4
	bl	clock_gettime
	ldr	r3, [fp, #-68]
	ldrb	r3, [r3, #216]	@ zero_extendqisi2
	cmp	r3, #0
	movne	r3, #1
	moveq	r3, #0
	and	r3, r3, #255
	eor	r3, r3, #1
	and	r3, r3, #255
	and	r3, r3, #1
	and	r2, r3, #255
	ldr	r3, [fp, #-68]
	strb	r2, [r3, #216]
.L170:
	ldr	r3, [fp, #-68]
	ldrb	r3, [r3, #216]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L171
	mov	r3, #0
	str	r3, [fp, #-60]
	b	.L172
.L173:
	ldr	r0, [fp, #-68]
	ldr	r3, [fp, #-68]
	ldr	r2, [fp, #-60]
	add	r2, r2, #46
	ldr	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-68]
	ldr	r2, [fp, #-60]
	add	r2, r2, #50
	ldr	r2, [r3, r2, lsl #2]
	mov	r3, #0
	bl	set_cell_state_at
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L172:
	ldr	r3, [fp, #-60]
	cmp	r3, #3
	bls	.L173
	b	.L169
.L171:
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L175
.L176:
	ldr	r0, [fp, #-68]
	ldr	r3, [fp, #-68]
	ldr	r2, [fp, #-56]
	add	r2, r2, #46
	ldr	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-68]
	ldr	r2, [fp, #-56]
	add	r2, r2, #50
	ldr	r2, [r3, r2, lsl #2]
	ldr	r3, [fp, #-68]
	ldr	r3, [r3, #220]
	bl	set_cell_state_at
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L175:
	ldr	r3, [fp, #-56]
	cmp	r3, #3
	bls	.L176
.L169:
	mov	r1, #9
	ldr	r0, [fp, #-64]
	bl	draw_title
	ldr	r3, [fp, #-68]
	ldr	r3, [r3, #176]
	cmp	r3, #0
	bne	.L177
	ldr	r3, [fp, #-68]
	ldr	r3, [r3, #172]
	mov	r2, r3
	mov	r1, #4
	ldr	r0, [fp, #-64]
	bl	draw_turn
	b	.L178
.L177:
	ldr	r3, [fp, #-68]
	ldr	r3, [r3, #176]
	mov	r2, r3
	mov	r1, #4
	ldr	r0, [fp, #-64]
	bl	draw_winner
.L178:
	mov	r1, #1
	ldr	r0, [fp, #-64]
	bl	draw_drop_pos_hints
	ldr	r3, .L190+8
	ldr	r0, [r3]
	ldr	r3, [fp, #-64]
	ldr	r3, [r3, #20]
	sub	r1, r3, #2
	ldr	r3, [fp, #-64]
	ldr	r2, [r3, #16]
	ldr	r3, [fp, #-68]
	ldr	r3, [r3, #168]
	lsl	r3, r3, #1
	add	r3, r2, r3
	mov	r2, r3
	bl	wmove
	ldr	r3, .L190+8
	ldr	r4, [r3]
	ldr	r3, [fp, #-68]
	ldr	r3, [r3, #172]
	mov	r0, r3
	bl	get_player_ch
	mov	r3, r0
	mvn	r2, #0
	mov	r1, r3
	mov	r0, r4
	bl	waddnstr
	mov	r3, #0
	str	r3, [fp, #-52]
	b	.L179
.L186:
	ldr	r3, .L190+8
	ldr	r0, [r3]
	ldr	r3, [fp, #-64]
	ldr	r2, [r3, #20]
	ldr	r3, [fp, #-52]
	add	r1, r2, r3
	ldr	r3, [fp, #-64]
	ldr	r3, [r3, #16]
	mov	r2, r3
	bl	wmove
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L180
.L185:
	ldr	r3, [fp, #-68]
	ldr	r2, [fp, #-52]
	ldr	r1, [fp, #-48]
	mov	r0, r3
	bl	get_cell_state_at
	str	r0, [fp, #-40]
	ldr	r3, [fp, #-40]
	cmp	r3, #2
	beq	.L181
	ldr	r3, [fp, #-40]
	cmp	r3, #2
	bhi	.L182
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	beq	.L183
	ldr	r3, [fp, #-40]
	cmp	r3, #1
	beq	.L184
	b	.L182
.L183:
	ldr	r3, .L190+8
	ldr	r3, [r3]
	mvn	r2, #0
	ldr	r1, .L190+12
	mov	r0, r3
	bl	waddnstr
	b	.L182
.L184:
	ldr	r3, .L190+16
	ldrb	r3, [r3]
	strb	r3, [fp, #-20]
	sub	r3, fp, #19
	mov	r1, #0
	mov	r2, r1
	strb	r2, [r3]
	mov	r2, r1
	strb	r2, [r3, #1]
	sub	r0, fp, #20
	ldr	r3, .L190+20
	ldr	r2, .L190+24
	mov	r1, #3
	bl	snprintf
	ldr	r3, .L190+8
	ldr	r3, [r3]
	sub	r1, fp, #20
	mvn	r2, #0
	mov	r0, r3
	bl	waddnstr
	b	.L182
.L181:
	ldr	r3, .L190+16
	ldrb	r3, [r3]
	strb	r3, [fp, #-20]
	sub	r3, fp, #19
	mov	r1, #0
	mov	r2, r1
	strb	r2, [r3]
	mov	r2, r1
	strb	r2, [r3, #1]
	sub	r0, fp, #20
	ldr	r3, .L190+28
	ldr	r2, .L190+24
	mov	r1, #3
	bl	snprintf
	ldr	r3, .L190+8
	ldr	r3, [r3]
	sub	r1, fp, #20
	mvn	r2, #0
	mov	r0, r3
	bl	waddnstr
	nop
.L182:
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L180:
	ldr	r3, [fp, #-48]
	cmp	r3, #6
	ble	.L185
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L179:
	ldr	r3, [fp, #-52]
	cmp	r3, #5
	ble	.L186
	ldr	r3, .L190+8
	ldr	r0, [r3]
	ldr	r3, [fp, #-64]
	ldr	r3, [r3, #20]
	add	r1, r3, #6
	ldr	r3, [fp, #-64]
	ldr	r3, [r3, #16]
	mov	r2, r3
	bl	wmove
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L187
.L188:
	ldr	r3, .L190+8
	ldr	r3, [r3]
	mov	r1, #61
	mov	r0, r3
	bl	waddch
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L187:
	ldr	r3, [fp, #-44]
	cmp	r3, #12
	ble	.L188
	nop
	ldr	r3, .L190
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L189
	bl	__stack_chk_fail
.L189:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L191:
	.align	2
.L190:
	.word	.LC15
	.word	1125899907
	.word	stdscr
	.word	.LC12
	.word	.LC13
	.word	.LC2
	.word	.LC14
	.word	.LC4
	.size	draw, .-draw
	.section	.rodata
	.align	2
.LC16:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 272
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #272
	str	r0, [fp, #-272]
	str	r1, [fp, #-276]
	ldr	r3, .L200
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #268
	mov	r0, r3
	bl	create_window
	sub	r3, fp, #244
	mov	r2, #236
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #244
	mov	r0, r3
	bl	reset
.L195:
	ldr	r3, .L200+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	werase
	sub	r2, fp, #244
	sub	r3, fp, #268
	mov	r1, r2
	mov	r0, r3
	bl	draw
	sub	r3, fp, #244
	mov	r0, r3
	bl	input
	ldrb	r3, [fp, #-64]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L199
	b	.L195
.L199:
	nop
	sub	r3, fp, #268
	mov	r0, r3
	bl	delete_window
	mov	r3, #0
	ldr	r2, .L200
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L197
	bl	__stack_chk_fail
.L197:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L201:
	.align	2
.L200:
	.word	.LC16
	.word	stdscr
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
