	.file	"968009.c"
	.intel_syntax noprefix
	.text
	.globl	win
	.bss
	.align 8
	.type	win, @object
	.size	win, 8
win:
	.zero	8
	.globl	game_result
	.data
	.align 4
	.type	game_result, @object
	.size	game_result, 4
game_result:
	.long	1
	.globl	log_path
	.section	.rodata
.LC0:
	.string	"log.txt"
	.section	.data.rel.local,"aw"
	.align 8
	.type	log_path, @object
	.size	log_path, 8
log_path:
	.quad	.LC0
	.section	.rodata
.LC1:
	.string	"usage: tcpclient <IPaddress>"
.LC2:
	.string	"connect failed "
.LC3:
	.string	"thread added.\n"
.LC4:
	.string	"ERROR writing to socket."
.LC5:
	.string	"have written to the server.\n"
	.align 8
.LC6:
	.string	"gonna to generate announcement\n"
.LC7:
	.string	"Game Over"
.LC8:
	.string	"Press any key to quit."
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.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	DWORD PTR -116[rbp], edi
	mov	QWORD PTR -128[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, 0
	call	init_log
	cmp	DWORD PTR -116[rbp], 2
	je	.L2
	mov	DWORD PTR -88[rbp], 1
	mov	DWORD PTR -84[rbp], 0
	lea	rax, .LC1[rip]
	mov	QWORD PTR -56[rbp], rax
	mov	rdx, QWORD PTR -56[rbp]
	mov	ecx, DWORD PTR -84[rbp]
	mov	eax, DWORD PTR -88[rbp]
	mov	esi, ecx
	mov	edi, eax
	mov	eax, 0
	call	error@PLT
	nop
.L2:
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -104[rbp], eax
	lea	rax, -32[rbp]
	mov	QWORD PTR [rax], 0
	mov	QWORD PTR 8[rax], 0
	mov	WORD PTR -32[rbp], 2
	mov	edi, 9999
	call	htons@PLT
	mov	WORD PTR -30[rbp], ax
	mov	rax, QWORD PTR -128[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rdx, -32[rbp]
	add	rdx, 4
	mov	rsi, rax
	mov	edi, 2
	call	inet_pton@PLT
	mov	eax, DWORD PTR -104[rbp]
	lea	rcx, -32[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	mov	DWORD PTR -96[rbp], eax
	cmp	DWORD PTR -96[rbp], 0
	jns	.L3
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -80[rbp], 1
	mov	DWORD PTR -76[rbp], eax
	lea	rax, .LC2[rip]
	mov	QWORD PTR -48[rbp], rax
	mov	rdx, QWORD PTR -48[rbp]
	mov	ecx, DWORD PTR -76[rbp]
	mov	eax, DWORD PTR -80[rbp]
	mov	esi, ecx
	mov	edi, eax
	mov	eax, 0
	call	error@PLT
	nop
.L3:
	call	initscr@PLT
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	wclear@PLT
	call	noecho@PLT
	call	cbreak@PLT
	call	start_color@PLT
	call	use_default_colors@PLT
	mov	edi, 0
	call	curs_set@PLT
	mov	ecx, 0
	mov	edx, 0
	mov	esi, 80
	mov	edi, 24
	call	newwin@PLT
	mov	QWORD PTR win[rip], rax
	mov	edx, 1
	mov	esi, 7
	mov	edi, 1
	call	init_pair@PLT
	mov	edx, 3
	mov	esi, 0
	mov	edi, 5
	call	init_pair@PLT
	mov	edx, 5
	mov	esi, 0
	mov	edi, 6
	call	init_pair@PLT
	mov	edx, 6
	mov	esi, 0
	mov	edi, 7
	call	init_pair@PLT
	mov	edx, 7
	mov	esi, 0
	mov	edi, 8
	call	init_pair@PLT
	lea	rax, -104[rbp]
	mov	rsi, rax
	lea	rdi, update_screen[rip]
	call	add_thread
	lea	rdi, .LC3[rip]
	call	add_log
	jmp	.L4
.L7:
	mov	DWORD PTR -100[rbp], 0
	mov	rax, QWORD PTR win[rip]
	mov	rdi, rax
	call	wgetch@PLT
	mov	DWORD PTR -100[rbp], eax
	mov	eax, DWORD PTR -100[rbp]
	cmp	eax, 119
	je	.L5
	mov	eax, DWORD PTR -100[rbp]
	cmp	eax, 115
	je	.L5
	mov	eax, DWORD PTR -100[rbp]
	cmp	eax, 97
	je	.L5
	mov	eax, DWORD PTR -100[rbp]
	cmp	eax, 100
	jne	.L4
.L5:
	mov	eax, DWORD PTR -104[rbp]
	lea	rcx, -100[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -92[rbp], eax
	cmp	DWORD PTR -92[rbp], 0
	jns	.L6
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -72[rbp], 1
	mov	DWORD PTR -68[rbp], eax
	lea	rax, .LC4[rip]
	mov	QWORD PTR -40[rbp], rax
	mov	rdx, QWORD PTR -40[rbp]
	mov	ecx, DWORD PTR -68[rbp]
	mov	eax, DWORD PTR -72[rbp]
	mov	esi, ecx
	mov	edi, eax
	mov	eax, 0
	call	error@PLT
	nop
.L6:
	lea	rdi, .LC5[rip]
	call	add_log
.L4:
	mov	eax, DWORD PTR game_result[rip]
	test	eax, eax
	jne	.L7
	lea	rdi, .LC6[rip]
	call	add_log
	mov	ecx, 22
	mov	edx, 8
	mov	esi, 35
	mov	edi, 7
	call	newwin@PLT
	mov	QWORD PTR -64[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	sub	rsp, 8
	push	0
	push	0
	push	0
	mov	r9d, 0
	mov	r8d, 0
	mov	ecx, 0
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	wborder@PLT
	add	rsp, 32
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, 7
	mov	esi, 2
	mov	rdi, rax
	call	wmove@PLT
	cmp	eax, -1
	je	.L9
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, -1
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	waddnstr@PLT
.L9:
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, 7
	mov	esi, 4
	mov	rdi, rax
	call	wmove@PLT
	cmp	eax, -1
	je	.L11
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, -1
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	call	waddnstr@PLT
.L11:
	mov	rax, QWORD PTR -64[rbp]
	mov	esi, 256
	mov	rdi, rax
	call	wbkgd@PLT
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, 22
	mov	esi, 8
	mov	rdi, rax
	call	mvwin@PLT
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	wnoutrefresh@PLT
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	wrefresh@PLT
	mov	edi, 2
	call	sleep@PLT
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	wgetch@PLT
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	delwin@PLT
	mov	rax, QWORD PTR win[rip]
	mov	rdi, rax
	call	wclear@PLT
	call	echo@PLT
	mov	edi, 1
	call	curs_set@PLT
	call	endwin@PLT
	mov	eax, DWORD PTR -104[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	main, .-main
	.section	.rodata
.LC9:
	.string	"pthread_attr_init"
.LC10:
	.string	"pthread_create"
	.text
	.globl	add_thread
	.type	add_thread, @function
add_thread:
.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, 96
	mov	QWORD PTR -88[rbp], rdi
	mov	QWORD PTR -96[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	pthread_attr_init@PLT
	test	eax, eax
	je	.L15
	lea	rdi, .LC9[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L18
.L15:
	lea	rax, -64[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	pthread_attr_setdetachstate@PLT
	mov	rcx, QWORD PTR -96[rbp]
	mov	rdx, QWORD PTR -88[rbp]
	lea	rsi, -64[rbp]
	lea	rax, -72[rbp]
	mov	rdi, rax
	call	pthread_create@PLT
	test	eax, eax
	je	.L17
	lea	rdi, .LC10[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L18
.L17:
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	pthread_attr_destroy@PLT
	mov	eax, 0
.L18:
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	add_thread, .-add_thread
	.section	.rodata
.LC11:
	.string	"have read from the server.\n"
.LC12:
	.string	" "
.LC13:
	.string	"o"
.LC14:
	.string	"thread <update_screen> over\n"
	.text
	.globl	update_screen
	.type	update_screen, @function
update_screen:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 3672
	.cfi_offset 3, -24
	mov	QWORD PTR -7768[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	rax, rsp
	mov	rbx, rax
	mov	rax, QWORD PTR -7768[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -7748[rbp], eax
	mov	DWORD PTR -7744[rbp], 7680
	mov	eax, DWORD PTR -7744[rbp]
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -7728[rbp], rdx
	movsx	rdx, eax
	mov	r10, rdx
	mov	r11d, 0
	movsx	rdx, eax
	mov	r8, rdx
	mov	r9d, 0
	cdqe
	mov	edx, 16
	sub	rdx, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L21:
	cmp	rsp, rdx
	je	.L22
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L21
.L22:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L23
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L23:
	mov	rax, rsp
	add	rax, 0
	mov	QWORD PTR -7720[rbp], rax
	jmp	.L24
.L35:
	mov	DWORD PTR -7752[rbp], 0
	mov	eax, DWORD PTR -7744[rbp]
	cdqe
	mov	rdx, QWORD PTR -7720[rbp]
	mov	rcx, rdx
	mov	rdx, rax
	mov	esi, 0
	mov	rdi, rcx
	call	memset@PLT
	jmp	.L25
.L28:
	mov	eax, DWORD PTR -7744[rbp]
	sub	eax, DWORD PTR -7752[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -7752[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -7720[rbp]
	add	rcx, rax
	mov	eax, DWORD PTR -7748[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -7732[rbp], eax
	cmp	DWORD PTR -7732[rbp], 0
	jle	.L38
	mov	eax, DWORD PTR -7732[rbp]
	add	DWORD PTR -7752[rbp], eax
.L25:
	mov	eax, DWORD PTR -7752[rbp]
	cmp	eax, DWORD PTR -7744[rbp]
	jl	.L28
	lea	rdi, .LC11[rip]
	call	add_log
	mov	eax, DWORD PTR -7744[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -7720[rbp]
	lea	rax, -7712[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	wclear@PLT
	mov	rax, QWORD PTR win[rip]
	sub	rsp, 8
	push	0
	push	0
	push	0
	mov	r9d, 0
	mov	r8d, 0
	mov	ecx, 0
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	wborder@PLT
	add	rsp, 32
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	wrefresh@PLT
	mov	rax, QWORD PTR win[rip]
	mov	rdi, rax
	call	wrefresh@PLT
	mov	DWORD PTR -7756[rbp], 1
	jmp	.L29
.L34:
	mov	DWORD PTR -7760[rbp], 1
	jmp	.L30
.L33:
	mov	eax, DWORD PTR -7760[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -7756[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 4
	add	rax, rcx
	mov	eax, DWORD PTR -7712[rbp+rax*4]
	mov	DWORD PTR -7740[rbp], eax
	mov	eax, DWORD PTR -7740[rbp]
	cdq
	mov	eax, edx
	xor	eax, DWORD PTR -7740[rbp]
	sub	eax, edx
	movsx	rdx, eax
	imul	rdx, rdx, -1840700269
	shr	rdx, 32
	add	edx, eax
	sar	edx, 2
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	mov	DWORD PTR -7736[rbp], edx
	mov	ecx, DWORD PTR -7736[rbp]
	mov	edx, ecx
	sal	edx, 3
	sub	edx, ecx
	sub	eax, edx
	mov	DWORD PTR -7736[rbp], eax
	mov	eax, DWORD PTR -7736[rbp]
	sal	eax, 8
	movzx	ecx, ax
	mov	rax, QWORD PTR stdscr[rip]
	mov	edx, 0
	mov	esi, ecx
	mov	rdi, rax
	call	wattr_on@PLT
	cmp	DWORD PTR -7740[rbp], 0
	jle	.L31
	cmp	DWORD PTR -7740[rbp], -100
	je	.L31
	mov	ecx, DWORD PTR -7760[rbp]
	mov	eax, DWORD PTR -7756[rbp]
	lea	rdx, .LC12[rip]
	mov	esi, ecx
	mov	edi, eax
	mov	eax, 0
	call	mvprintw@PLT
	mov	eax, DWORD PTR -7736[rbp]
	sal	eax, 8
	movzx	ecx, ax
	mov	rax, QWORD PTR stdscr[rip]
	mov	edx, 0
	mov	esi, ecx
	mov	rdi, rax
	call	wattr_off@PLT
	jmp	.L32
.L31:
	cmp	DWORD PTR -7740[rbp], -100
	jne	.L32
	mov	eax, DWORD PTR -7736[rbp]
	sal	eax, 8
	movzx	ecx, ax
	mov	rax, QWORD PTR stdscr[rip]
	mov	edx, 0
	mov	esi, ecx
	mov	rdi, rax
	call	wattr_off@PLT
	mov	ecx, DWORD PTR -7760[rbp]
	mov	eax, DWORD PTR -7756[rbp]
	lea	rdx, .LC13[rip]
	mov	esi, ecx
	mov	edi, eax
	mov	eax, 0
	call	mvprintw@PLT
.L32:
	add	DWORD PTR -7760[rbp], 1
.L30:
	cmp	DWORD PTR -7760[rbp], 78
	jle	.L33
	add	DWORD PTR -7756[rbp], 1
.L29:
	cmp	DWORD PTR -7756[rbp], 22
	jle	.L34
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	wrefresh@PLT
.L24:
	mov	eax, DWORD PTR game_result[rip]
	test	eax, eax
	jne	.L35
	jmp	.L27
.L38:
	nop
.L27:
	mov	DWORD PTR game_result[rip], 0
	lea	rdi, .LC14[rip]
	call	add_log
	mov	eax, 0
	mov	rsp, rbx
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L37
	call	__stack_chk_fail@PLT
.L37:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	update_screen, .-update_screen
	.section	.rodata
.LC15:
	.string	"a+"
.LC16:
	.string	"can't open log file"
	.text
	.globl	add_log
	.type	add_log, @function
add_log:
.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	rax, QWORD PTR log_path[rip]
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L40
	lea	rdi, .LC16[rip]
	call	puts@PLT
	jmp	.L39
.L40:
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rsi, rax
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	rdi, rax
	call	fwrite@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L39:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	add_log, .-add_log
	.section	.rodata
.LC17:
	.string	"%Y-%m-%d %H:%M:%S"
	.text
	.globl	init_log
	.type	init_log, @function
init_log:
.LFB12:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR log_path[rip]
	mov	rdi, rax
	call	remove@PLT
	mov	edi, 0
	call	time@PLT
	mov	QWORD PTR -40[rbp], rax
	lea	rax, -40[rbp]
	mov	rdi, rax
	call	localtime@PLT
	mov	rdx, rax
	lea	rax, -32[rbp]
	mov	rcx, rdx
	lea	rdx, .LC17[rip]
	mov	esi, 21
	mov	rdi, rax
	call	strftime@PLT
	mov	BYTE PTR -13[rbp], 10
	mov	BYTE PTR -12[rbp], 0
	lea	rax, -32[rbp]
	mov	rdi, rax
	call	add_log
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L43
	call	__stack_chk_fail@PLT
.L43:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	init_log, .-init_log
	.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	"968009.c"
	.text
	.comm	win,4,4
	.global	game_result
	.data
	.align	2
	.type	game_result, %object
	.size	game_result, 4
game_result:
	.word	1
	.global	log_path
	.section	.rodata
	.align	2
.LC0:
	.ascii	"log.txt\000"
	.data
	.align	2
	.type	log_path, %object
	.size	log_path, 4
log_path:
	.word	.LC0
	.section	.rodata
	.align	2
.LC1:
	.ascii	"usage: tcpclient <IPaddress>\000"
	.align	2
.LC2:
	.ascii	"connect failed \000"
	.align	2
.LC3:
	.ascii	"thread added.\012\000"
	.align	2
.LC4:
	.ascii	"ERROR writing to socket.\000"
	.align	2
.LC5:
	.ascii	"have written to the server.\012\000"
	.align	2
.LC6:
	.ascii	"gonna to generate announcement\012\000"
	.align	2
.LC7:
	.ascii	"Game Over\000"
	.align	2
.LC8:
	.ascii	"Press any key to quit.\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 88
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #112
	str	r0, [fp, #-88]
	str	r1, [fp, #-92]
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	bl	init_log
	ldr	r3, [fp, #-88]
	cmp	r3, #2
	beq	.L2
	mov	r3, #1
	str	r3, [fp, #-60]
	mov	r3, #0
	str	r3, [fp, #-56]
	ldr	r3, .L14+4
	str	r3, [fp, #-52]
	ldr	r2, [fp, #-52]
	ldr	r1, [fp, #-56]
	ldr	r0, [fp, #-60]
	bl	error
	nop
.L2:
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	mov	r3, r0
	str	r3, [fp, #-80]
	sub	r3, fp, #24
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2]
	str	r3, [r2, #4]
	str	r3, [r2, #8]
	str	r3, [r2, #12]
	mov	r3, #2
	strh	r3, [fp, #-24]	@ movhi
	ldr	r0, .L14+8
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-22]	@ movhi
	ldr	r3, [fp, #-92]
	add	r3, r3, #4
	ldr	r1, [r3]
	sub	r3, fp, #24
	add	r3, r3, #4
	mov	r2, r3
	mov	r0, #2
	bl	inet_pton
	ldr	r3, [fp, #-80]
	sub	r1, fp, #24
	mov	r2, #16
	mov	r0, r3
	bl	connect
	str	r0, [fp, #-72]
	ldr	r3, [fp, #-72]
	cmp	r3, #0
	bge	.L3
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, #1
	str	r2, [fp, #-48]
	str	r3, [fp, #-44]
	ldr	r3, .L14+12
	str	r3, [fp, #-40]
	ldr	r2, [fp, #-40]
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-48]
	bl	error
	nop
.L3:
	bl	initscr
	ldr	r3, .L14+16
	ldr	r3, [r3]
	mov	r0, r3
	bl	wclear
	bl	noecho
	bl	cbreak
	bl	start_color
	bl	use_default_colors
	mov	r0, #0
	bl	curs_set
	mov	r3, #0
	mov	r2, #0
	mov	r1, #80
	mov	r0, #24
	bl	newwin
	mov	r3, r0
	ldr	r2, .L14+20
	str	r3, [r2]
	mov	r2, #1
	mov	r1, #7
	mov	r0, #1
	bl	init_pair
	mov	r2, #3
	mov	r1, #0
	mov	r0, #5
	bl	init_pair
	mov	r2, #5
	mov	r1, #0
	mov	r0, #6
	bl	init_pair
	mov	r2, #6
	mov	r1, #0
	mov	r0, #7
	bl	init_pair
	mov	r2, #7
	mov	r1, #0
	mov	r0, #8
	bl	init_pair
	sub	r3, fp, #80
	mov	r1, r3
	ldr	r0, .L14+24
	bl	add_thread
	ldr	r0, .L14+28
	bl	add_log
	b	.L4
.L7:
	mov	r3, #0
	str	r3, [fp, #-76]
	ldr	r3, .L14+20
	ldr	r3, [r3]
	mov	r0, r3
	bl	wgetch
	mov	r3, r0
	str	r3, [fp, #-76]
	ldr	r3, [fp, #-76]
	cmp	r3, #119
	beq	.L5
	ldr	r3, [fp, #-76]
	cmp	r3, #115
	beq	.L5
	ldr	r3, [fp, #-76]
	cmp	r3, #97
	beq	.L5
	ldr	r3, [fp, #-76]
	cmp	r3, #100
	bne	.L4
.L5:
	ldr	r3, [fp, #-80]
	sub	r1, fp, #76
	mov	r2, #4
	mov	r0, r3
	bl	write
	str	r0, [fp, #-64]
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	bge	.L6
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, #1
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	ldr	r3, .L14+32
	str	r3, [fp, #-28]
	ldr	r2, [fp, #-28]
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-36]
	bl	error
	nop
.L6:
	ldr	r0, .L14+36
	bl	add_log
.L4:
	ldr	r3, .L14+40
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L7
	ldr	r0, .L14+44
	bl	add_log
	mov	r3, #22
	mov	r2, #8
	mov	r1, #35
	mov	r0, #7
	bl	newwin
	str	r0, [fp, #-68]
	mov	r3, #0
	str	r3, [sp, #16]
	mov	r3, #0
	str	r3, [sp, #12]
	mov	r3, #0
	str	r3, [sp, #8]
	mov	r3, #0
	str	r3, [sp, #4]
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-68]
	bl	wborder
	mov	r2, #7
	mov	r1, #2
	ldr	r0, [fp, #-68]
	bl	wmove
	mov	r3, r0
	cmn	r3, #1
	beq	.L9
	mvn	r2, #0
	ldr	r1, .L14+48
	ldr	r0, [fp, #-68]
	bl	waddnstr
.L9:
	mov	r2, #7
	mov	r1, #4
	ldr	r0, [fp, #-68]
	bl	wmove
	mov	r3, r0
	cmn	r3, #1
	beq	.L11
	mvn	r2, #0
	ldr	r1, .L14+52
	ldr	r0, [fp, #-68]
	bl	waddnstr
.L11:
	mov	r1, #256
	ldr	r0, [fp, #-68]
	bl	wbkgd
	mov	r2, #22
	mov	r1, #8
	ldr	r0, [fp, #-68]
	bl	mvwin
	ldr	r0, [fp, #-68]
	bl	wnoutrefresh
	ldr	r0, [fp, #-68]
	bl	wrefresh
	mov	r0, #2
	bl	sleep
	ldr	r0, [fp, #-68]
	bl	wgetch
	ldr	r0, [fp, #-68]
	bl	delwin
	ldr	r3, .L14+20
	ldr	r3, [r3]
	mov	r0, r3
	bl	wclear
	bl	echo
	mov	r0, #1
	bl	curs_set
	bl	endwin
	ldr	r3, [fp, #-80]
	mov	r0, r3
	bl	close
	mov	r3, #0
	ldr	r2, .L14
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC9
	.word	.LC1
	.word	9999
	.word	.LC2
	.word	stdscr
	.word	win
	.word	update_screen
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	game_result
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	main, .-main
	.section	.rodata
	.align	2
.LC10:
	.ascii	"pthread_attr_init\000"
	.align	2
.LC11:
	.ascii	"pthread_create\000"
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	add_thread
	.syntax unified
	.arm
	.fpu softvfp
	.type	add_thread, %function
add_thread:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	str	r0, [fp, #-56]
	str	r1, [fp, #-60]
	ldr	r3, .L22
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #44
	mov	r0, r3
	bl	pthread_attr_init
	mov	r3, r0
	cmp	r3, #0
	beq	.L17
	ldr	r0, .L22+4
	bl	perror
	mov	r3, #1
	b	.L20
.L17:
	sub	r3, fp, #44
	mov	r1, #1
	mov	r0, r3
	bl	pthread_attr_setdetachstate
	sub	r1, fp, #44
	sub	r0, fp, #48
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #-56]
	bl	pthread_create
	mov	r3, r0
	cmp	r3, #0
	beq	.L19
	ldr	r0, .L22+8
	bl	perror
	mov	r3, #1
	b	.L20
.L19:
	sub	r3, fp, #44
	mov	r0, r3
	bl	pthread_attr_destroy
	mov	r3, #0
.L20:
	ldr	r2, .L22
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L21
	bl	__stack_chk_fail
.L21:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	.LC12
	.word	.LC10
	.word	.LC11
	.size	add_thread, .-add_thread
	.section	.rodata
	.align	2
.LC13:
	.ascii	"have read from the server.\012\000"
	.align	2
.LC14:
	.ascii	" \000"
	.align	2
.LC15:
	.ascii	"o\000"
	.align	2
.LC16:
	.ascii	"thread <update_screen> over\012\000"
	.align	2
.LC17:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	update_screen
	.syntax unified
	.arm
	.fpu softvfp
	.type	update_screen, %function
update_screen:
	@ args = 0, pretend = 0, frame = 7736
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #7744
	sub	sp, sp, #16
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r0, [r3, #-3636]
	ldr	r3, .L40
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, sp
	mov	r5, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-3636]
	ldr	r3, [r3]
	str	r3, [r2, #-3616]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #7680
	str	r3, [r2, #-3612]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	ip, [r3, #-3612]
	sub	r3, ip, #1
	sub	r2, fp, #4096
	sub	r2, r2, #12
	str	r3, [r2, #-3608]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	mov	r3, ip
	sub	r2, fp, #4096
	sub	r2, r2, #12
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	add	r3, sp, #24
	add	r3, r3, #0
	str	r3, [r2, #-3604]
	b	.L25
.L36:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-3620]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-3612]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-3604]
	mov	r0, r2
	mov	r2, r3
	mov	r1, #0
	bl	memset
	b	.L26
.L29:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-3620]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-3604]
	add	r1, r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r2, #-3612]
	ldr	r3, [r3, #-3620]
	sub	r3, r2, r3
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-3616]
	bl	read
	str	r0, [r4, #-3592]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-3592]
	cmp	r3, #0
	ble	.L39
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r2, #-3620]
	ldr	r3, [r3, #-3592]
	add	r3, r2, r3
	str	r3, [r1, #-3620]
.L26:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r2, #-3620]
	ldr	r3, [r3, #-3612]
	cmp	r2, r3
	blt	.L29
	ldr	r0, .L40+4
	bl	add_log
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r3, #-3612]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #7680
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, [r1, #-3604]
	mov	r0, r3
	bl	memcpy
	ldr	r3, .L40+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	wclear
	ldr	r3, .L40+12
	ldr	r0, [r3]
	mov	r3, #0
	str	r3, [sp, #16]
	mov	r3, #0
	str	r3, [sp, #12]
	mov	r3, #0
	str	r3, [sp, #8]
	mov	r3, #0
	str	r3, [sp, #4]
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #0
	mov	r1, #0
	bl	wborder
	ldr	r3, .L40+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	wrefresh
	ldr	r3, .L40+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	wrefresh
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-3624]
	b	.L30
.L35:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-3628]
	b	.L31
.L34:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r0, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r3, #-3624]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #4
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-3628]
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r0, r3
	ldr	r3, [r3, #-3588]
	str	r3, [r1, #-3600]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-3600]
	eor	r2, r3, r3, asr #31
	sub	r2, r2, r3, asr #31
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r0, r3
	ldr	r3, .L40+16
	smull	r1, r3, r2, r3
	add	r3, r3, r2
	asr	r1, r3, #2
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #3
	sub	r3, r3, r1
	sub	r3, r2, r3
	str	r3, [r0, #-3596]
	ldr	r3, .L40+8
	ldr	r0, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-3596]
	lsl	r3, r3, #8
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r2, #0
	mov	r1, r3
	bl	wattr_on
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-3600]
	cmp	r3, #0
	ble	.L32
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-3600]
	cmn	r3, #100
	beq	.L32
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, .L40+20
	ldr	r1, [r1, #-3628]
	ldr	r0, [r3, #-3624]
	bl	mvprintw
	ldr	r3, .L40+8
	ldr	r0, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-3596]
	lsl	r3, r3, #8
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r2, #0
	mov	r1, r3
	bl	wattr_off
	b	.L33
.L32:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-3600]
	cmn	r3, #100
	bne	.L33
	ldr	r3, .L40+8
	ldr	r0, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-3596]
	lsl	r3, r3, #8
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r2, #0
	mov	r1, r3
	bl	wattr_off
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, .L40+24
	ldr	r1, [r1, #-3628]
	ldr	r0, [r3, #-3624]
	bl	mvprintw
.L33:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-3628]
	add	r3, r3, #1
	str	r3, [r2, #-3628]
.L31:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-3628]
	cmp	r3, #78
	ble	.L34
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-3624]
	add	r3, r3, #1
	str	r3, [r2, #-3624]
.L30:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-3624]
	cmp	r3, #22
	ble	.L35
	ldr	r3, .L40+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	wrefresh
.L25:
	ldr	r3, .L40+28
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L36
	b	.L28
.L39:
	nop
.L28:
	ldr	r3, .L40+28
	mov	r2, #0
	str	r2, [r3]
	ldr	r0, .L40+32
	bl	add_log
	mov	r3, #0
	mov	sp, r5
	ldr	r2, .L40
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L38
	bl	__stack_chk_fail
.L38:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L41:
	.align	2
.L40:
	.word	.LC17
	.word	.LC13
	.word	stdscr
	.word	win
	.word	-1840700269
	.word	.LC14
	.word	.LC15
	.word	game_result
	.word	.LC16
	.size	update_screen, .-update_screen
	.section	.rodata
	.align	2
.LC18:
	.ascii	"a+\000"
	.align	2
.LC19:
	.ascii	"can't open log file\000"
	.text
	.align	2
	.global	add_log
	.syntax unified
	.arm
	.fpu softvfp
	.type	add_log, %function
add_log:
	@ 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]
	ldr	r3, .L45
	ldr	r3, [r3]
	ldr	r1, .L45+4
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L43
	ldr	r0, .L45+8
	bl	puts
	b	.L42
.L43:
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [fp, #-8]
	bl	fseek
	ldr	r0, [fp, #-16]
	bl	strlen
	mov	r1, r0
	ldr	r3, [fp, #-8]
	mov	r2, #1
	ldr	r0, [fp, #-16]
	bl	fwrite
	ldr	r0, [fp, #-8]
	bl	fclose
.L42:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L46:
	.align	2
.L45:
	.word	log_path
	.word	.LC18
	.word	.LC19
	.size	add_log, .-add_log
	.section	.rodata
	.align	2
.LC20:
	.ascii	"%Y-%m-%d %H:%M:%S\000"
	.align	2
.LC21:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	init_log
	.syntax unified
	.arm
	.fpu softvfp
	.type	init_log, %function
init_log:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	ldr	r3, .L49
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L49+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	remove
	mov	r0, #0
	bl	time
	mov	r3, r0
	str	r3, [fp, #-36]
	sub	r3, fp, #36
	mov	r0, r3
	bl	localtime
	mov	r3, r0
	sub	r0, fp, #32
	ldr	r2, .L49+8
	mov	r1, #21
	bl	strftime
	mov	r3, #10
	strb	r3, [fp, #-13]
	mov	r3, #0
	strb	r3, [fp, #-12]
	sub	r3, fp, #32
	mov	r0, r3
	bl	add_log
	nop
	ldr	r3, .L49
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L48
	bl	__stack_chk_fail
.L48:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L50:
	.align	2
.L49:
	.word	.LC21
	.word	log_path
	.word	.LC20
	.size	init_log, .-init_log
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
