	.file	"752047.c"
	.intel_syntax noprefix
	.text
	.globl	result
	.bss
	.align 16
	.type	result, @object
	.size	result, 20
result:
	.zero	20
	.globl	res
	.align 8
	.type	res, @object
	.size	res, 8
res:
	.zero	8
	.globl	PIN
	.align 4
	.type	PIN, @object
	.size	PIN, 4
PIN:
	.zero	4
	.globl	rd
	.align 8
	.type	rd, @object
	.size	rd, 8
rd:
	.zero	8
	.section	.rodata
.LC0:
	.string	"sigaction"
	.text
	.globl	setSigChld
	.type	setSigChld, @function
setSigChld:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 160
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -160[rbp], 1
	mov	DWORD PTR -24[rbp], 2
	lea	rax, -160[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 17
	call	sigaction@PLT
	cmp	eax, -1
	jne	.L4
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	edi, 0
	call	exit@PLT
.L4:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L3
	call	__stack_chk_fail@PLT
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	setSigChld, .-setSigChld
	.section	.rodata
	.align 8
.LC1:
	.string	"[cli](%d) pthread_detach is done!\n"
.LC2:
	.string	"exit"
	.align 8
.LC3:
	.string	"[cli](%d) shutdown is called with SHUT_WR!\n"
	.align 8
.LC4:
	.string	"[cli](%d) child thread is going to exit!\n"
	.text
	.globl	echo_rep
	.type	echo_rep, @function
echo_rep:
.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, 160
	mov	QWORD PTR -152[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	call	pthread_self@PLT
	mov	rdi, rax
	call	pthread_detach@PLT
	mov	rax, QWORD PTR res[rip]
	test	rax, rax
	jne	.L6
	mov	edi, 186
	mov	eax, 0
	call	syscall@PLT
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L7
.L6:
	mov	edi, 186
	mov	eax, 0
	call	syscall@PLT
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 186
	mov	eax, 0
	call	syscall@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR res[rip]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR res[rip]
	mov	rdi, rax
	call	fflush@PLT
.L7:
	mov	rax, QWORD PTR -152[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -124[rbp], eax
.L15:
	lea	rax, -112[rbp]
	mov	edx, 101
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rdx, QWORD PTR rd[rip]
	lea	rax, -112[rbp]
	mov	esi, 100
	mov	rdi, rax
	call	fgets@PLT
	lea	rax, -112[rbp]
	mov	esi, 100
	mov	rdi, rax
	call	strnlen@PLT
	mov	DWORD PTR -120[rbp], eax
	lea	rax, -112[rbp]
	mov	edx, 4
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	je	.L8
	cmp	DWORD PTR -120[rbp], 0
	jne	.L9
.L8:
	mov	eax, DWORD PTR -124[rbp]
	mov	esi, 1
	mov	edi, eax
	call	shutdown@PLT
	mov	rax, QWORD PTR res[rip]
	test	rax, rax
	jne	.L10
	mov	edi, 186
	mov	eax, 0
	call	syscall@PLT
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L11
.L10:
	mov	edi, 186
	mov	eax, 0
	call	syscall@PLT
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 186
	mov	eax, 0
	call	syscall@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR res[rip]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR res[rip]
	mov	rdi, rax
	call	fflush@PLT
.L11:
	mov	rax, QWORD PTR rd[rip]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR res[rip]
	test	rax, rax
	jne	.L12
	mov	edi, 186
	mov	eax, 0
	call	syscall@PLT
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L13
.L12:
	mov	edi, 186
	mov	eax, 0
	call	syscall@PLT
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 186
	mov	eax, 0
	call	syscall@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR res[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR res[rip]
	mov	rdi, rax
	call	fflush@PLT
.L13:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L16
	jmp	.L17
.L9:
	mov	eax, DWORD PTR -120[rbp]
	sub	eax, 1
	cdqe
	mov	BYTE PTR -112[rbp+rax], 0
	mov	eax, DWORD PTR PIN[rip]
	mov	DWORD PTR -116[rbp], eax
	mov	eax, DWORD PTR -116[rbp]
	mov	edi, eax
	call	htonl@PLT
	mov	DWORD PTR -128[rbp], eax
	mov	eax, DWORD PTR -120[rbp]
	mov	edi, eax
	call	htonl@PLT
	mov	DWORD PTR -132[rbp], eax
	lea	rcx, -128[rbp]
	mov	eax, DWORD PTR -124[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	lea	rcx, -132[rbp]
	mov	eax, DWORD PTR -124[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	eax, DWORD PTR -120[rbp]
	movsx	rdx, eax
	lea	rcx, -112[rbp]
	mov	eax, DWORD PTR -124[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	jmp	.L15
.L17:
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	echo_rep, .-echo_rep
	.section	.rodata
.LC5:
	.string	"[cli](%d) connfd is closed!\n"
	.align 8
.LC6:
	.string	"[cli](%d) parent thread is going to exit!\n"
.LC7:
	.string	"[echo_rep](%d) %s\n"
	.text
	.globl	str_cli
	.type	str_cli, @function
str_cli:
.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, 160
	mov	DWORD PTR -148[rbp], edi
	mov	DWORD PTR -152[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR -148[rbp]
	mov	DWORD PTR -132[rbp], eax
	lea	rdx, -132[rbp]
	lea	rax, -120[rbp]
	mov	rcx, rdx
	lea	rdx, echo_rep[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
.L27:
	lea	rax, -112[rbp]
	mov	edx, 101
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rcx, -124[rbp]
	mov	eax, DWORD PTR -148[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	test	rax, rax
	jg	.L19
	mov	eax, DWORD PTR -148[rbp]
	mov	edi, eax
	call	close@PLT
	mov	rax, QWORD PTR res[rip]
	test	rax, rax
	jne	.L20
	mov	eax, DWORD PTR -152[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L21
.L20:
	mov	eax, DWORD PTR -152[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR res[rip]
	mov	edx, DWORD PTR -152[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR res[rip]
	mov	rdi, rax
	call	fflush@PLT
.L21:
	mov	rax, QWORD PTR res[rip]
	test	rax, rax
	jne	.L22
	mov	eax, DWORD PTR -152[rbp]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L18
.L22:
	mov	eax, DWORD PTR -152[rbp]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR res[rip]
	mov	edx, DWORD PTR -152[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR res[rip]
	mov	rdi, rax
	call	fflush@PLT
	jmp	.L18
.L19:
	lea	rcx, -128[rbp]
	mov	eax, DWORD PTR -148[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	eax, DWORD PTR -128[rbp]
	mov	edi, eax
	call	ntohl@PLT
	mov	edx, eax
	lea	rcx, -112[rbp]
	mov	eax, DWORD PTR -148[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	rax, QWORD PTR res[rip]
	test	rax, rax
	jne	.L25
	lea	rdx, -112[rbp]
	mov	eax, DWORD PTR -152[rbp]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L27
.L25:
	lea	rdx, -112[rbp]
	mov	eax, DWORD PTR -152[rbp]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR res[rip]
	lea	rcx, -112[rbp]
	mov	edx, DWORD PTR -152[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR res[rip]
	mov	rdi, rax
	call	fflush@PLT
	jmp	.L27
.L18:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L29
	call	__stack_chk_fail@PLT
.L29:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	str_cli, .-str_cli
	.section	.rodata
.LC8:
	.string	"input"
.LC9:
	.string	"stu_cli_res_%d.txt"
.LC10:
	.string	"w"
.LC11:
	.string	"[cli](%d) %s is created!\n"
.LC12:
	.string	"td%d.txt"
.LC13:
	.string	"r"
.LC14:
	.string	"connect"
	.align 8
.LC15:
	.string	"[cli](%d) server[%s:%s] is connected!\n"
.LC16:
	.string	"[cli](%d) %s is closed!\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 80
	mov	DWORD PTR -68[rbp], edi
	mov	QWORD PTR -80[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -68[rbp], 4
	je	.L31
	lea	rdi, .LC8[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L36
.L31:
	mov	edi, 186
	mov	eax, 0
	call	syscall@PLT
	mov	DWORD PTR -56[rbp], eax
	mov	rax, QWORD PTR -80[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR PIN[rip], eax
	mov	eax, DWORD PTR PIN[rip]
	mov	edx, eax
	lea	rsi, .LC9[rip]
	lea	rdi, result[rip]
	mov	eax, 0
	call	sprintf@PLT
	lea	rsi, .LC10[rip]
	lea	rdi, result[rip]
	call	fopen@PLT
	mov	QWORD PTR res[rip], rax
	mov	eax, DWORD PTR -56[rbp]
	lea	rdx, result[rip]
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edx, 20
	mov	esi, 0
	lea	rdi, result[rip]
	call	memset@PLT
	mov	eax, DWORD PTR PIN[rip]
	mov	edx, eax
	lea	rsi, .LC9[rip]
	lea	rdi, result[rip]
	mov	eax, 0
	call	sprintf@PLT
	lea	rsi, .LC10[rip]
	lea	rdi, result[rip]
	call	fopen@PLT
	mov	QWORD PTR res[rip], rax
	mov	eax, DWORD PTR -56[rbp]
	lea	rdx, result[rip]
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edx, DWORD PTR PIN[rip]
	lea	rax, -18[rbp]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -18[rbp]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR rd[rip], rax
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -52[rbp], eax
	mov	WORD PTR -48[rbp], 2
	mov	rax, QWORD PTR -80[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rdx, -48[rbp]
	add	rdx, 4
	mov	rsi, rax
	mov	edi, 2
	call	inet_pton@PLT
	mov	rax, QWORD PTR -80[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -46[rbp], ax
	call	setSigChld
	lea	rcx, -48[rbp]
	mov	eax, DWORD PTR -52[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	test	eax, eax
	jns	.L33
	lea	rdi, .LC14[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L36
.L33:
	mov	rax, QWORD PTR res[rip]
	test	rax, rax
	jne	.L34
	mov	rax, QWORD PTR -80[rbp]
	add	rax, 16
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -56[rbp]
	mov	esi, eax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L35
.L34:
	mov	rax, QWORD PTR -80[rbp]
	add	rax, 16
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -56[rbp]
	mov	esi, eax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -80[rbp]
	add	rax, 16
	mov	rsi, QWORD PTR [rax]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, 8
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR res[rip]
	mov	edx, DWORD PTR -56[rbp]
	mov	r8, rsi
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR res[rip]
	mov	rdi, rax
	call	fflush@PLT
.L35:
	mov	edx, DWORD PTR -56[rbp]
	mov	eax, DWORD PTR -52[rbp]
	mov	esi, edx
	mov	edi, eax
	call	str_cli
	mov	rax, QWORD PTR res[rip]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, DWORD PTR -56[rbp]
	lea	rdx, result[rip]
	mov	esi, eax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
.L36:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L37
	call	__stack_chk_fail@PLT
.L37:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.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	"752047.c"
	.text
	.comm	result,20,4
	.comm	res,4,4
	.comm	PIN,4,4
	.comm	rd,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"sigaction\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	setSigChld
	.syntax unified
	.arm
	.fpu softvfp
	.type	setSigChld, %function
setSigChld:
	@ args = 0, pretend = 0, frame = 144
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #144
	ldr	r3, .L5
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #1
	str	r3, [fp, #-148]
	mov	r3, #2
	str	r3, [fp, #-16]
	sub	r3, fp, #148
	mov	r2, #0
	mov	r1, r3
	mov	r0, #17
	bl	sigaction
	mov	r3, r0
	cmn	r3, #1
	bne	.L4
	ldr	r0, .L5+4
	bl	perror
	mov	r0, #0
	bl	exit
.L4:
	nop
	ldr	r3, .L5
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L3
	bl	__stack_chk_fail
.L3:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.word	.LC1
	.word	.LC0
	.size	setSigChld, .-setSigChld
	.section	.rodata
	.align	2
.LC2:
	.ascii	"[cli](%d) pthread_detach is done!\012\000"
	.align	2
.LC3:
	.ascii	"exit\000"
	.align	2
.LC4:
	.ascii	"[cli](%d) shutdown is called with SHUT_WR!\012\000"
	.align	2
.LC5:
	.ascii	"[cli](%d) child thread is going to exit!\012\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	echo_rep
	.syntax unified
	.arm
	.fpu softvfp
	.type	echo_rep, %function
echo_rep:
	@ args = 0, pretend = 0, frame = 136
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #140
	str	r0, [fp, #-144]
	ldr	r3, .L20
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	bl	pthread_self
	mov	r3, r0
	mov	r0, r3
	bl	pthread_detach
	ldr	r3, .L20+4
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L8
	mov	r0, #224
	bl	syscall
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L20+8
	bl	printf
	b	.L9
.L8:
	mov	r0, #224
	bl	syscall
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L20+8
	bl	printf
	ldr	r3, .L20+4
	ldr	r4, [r3]
	mov	r0, #224
	bl	syscall
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L20+8
	mov	r0, r4
	bl	fprintf
	ldr	r3, .L20+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
.L9:
	ldr	r3, [fp, #-144]
	ldr	r3, [r3]
	str	r3, [fp, #-132]
.L17:
	sub	r3, fp, #120
	mov	r2, #101
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, .L20+12
	ldr	r2, [r3]
	sub	r3, fp, #120
	mov	r1, #100
	mov	r0, r3
	bl	fgets
	sub	r3, fp, #120
	mov	r1, #100
	mov	r0, r3
	bl	strnlen
	mov	r3, r0
	str	r3, [fp, #-128]
	sub	r3, fp, #120
	mov	r2, #4
	ldr	r1, .L20+16
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L10
	ldr	r3, [fp, #-128]
	cmp	r3, #0
	bne	.L11
.L10:
	mov	r1, #1
	ldr	r0, [fp, #-132]
	bl	shutdown
	ldr	r3, .L20+4
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L12
	mov	r0, #224
	bl	syscall
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L20+20
	bl	printf
	b	.L13
.L12:
	mov	r0, #224
	bl	syscall
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L20+20
	bl	printf
	ldr	r3, .L20+4
	ldr	r4, [r3]
	mov	r0, #224
	bl	syscall
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L20+20
	mov	r0, r4
	bl	fprintf
	ldr	r3, .L20+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
.L13:
	ldr	r3, .L20+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	fclose
	ldr	r3, .L20+4
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L14
	mov	r0, #224
	bl	syscall
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L20+24
	bl	printf
	b	.L15
.L14:
	mov	r0, #224
	bl	syscall
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L20+24
	bl	printf
	ldr	r3, .L20+4
	ldr	r4, [r3]
	mov	r0, #224
	bl	syscall
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L20+24
	mov	r0, r4
	bl	fprintf
	ldr	r3, .L20+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
.L15:
	mov	r3, #0
	ldr	r2, .L20
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L18
	b	.L19
.L11:
	ldr	r3, [fp, #-128]
	sub	r3, r3, #1
	sub	r2, fp, #12
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #-108]
	ldr	r3, .L20+28
	ldr	r3, [r3]
	str	r3, [fp, #-124]
	ldr	r3, [fp, #-124]
	mov	r0, r3
	bl	htonl
	mov	r3, r0
	str	r3, [fp, #-136]
	ldr	r3, [fp, #-128]
	mov	r0, r3
	bl	htonl
	mov	r3, r0
	str	r3, [fp, #-140]
	sub	r3, fp, #136
	mov	r2, #4
	mov	r1, r3
	ldr	r0, [fp, #-132]
	bl	write
	sub	r3, fp, #140
	mov	r2, #4
	mov	r1, r3
	ldr	r0, [fp, #-132]
	bl	write
	ldr	r2, [fp, #-128]
	sub	r3, fp, #120
	mov	r1, r3
	ldr	r0, [fp, #-132]
	bl	write
	b	.L17
.L19:
	bl	__stack_chk_fail
.L18:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L21:
	.align	2
.L20:
	.word	.LC6
	.word	res
	.word	.LC2
	.word	rd
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	PIN
	.size	echo_rep, .-echo_rep
	.section	.rodata
	.align	2
.LC7:
	.ascii	"[cli](%d) connfd is closed!\012\000"
	.align	2
.LC8:
	.ascii	"[cli](%d) parent thread is going to exit!\012\000"
	.align	2
.LC9:
	.ascii	"[echo_rep](%d) %s\012\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	str_cli
	.syntax unified
	.arm
	.fpu softvfp
	.type	str_cli, %function
str_cli:
	@ args = 0, pretend = 0, frame = 136
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #136
	str	r0, [fp, #-136]
	str	r1, [fp, #-140]
	ldr	r3, .L34
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-136]
	str	r3, [fp, #-128]
	sub	r3, fp, #128
	sub	r0, fp, #124
	ldr	r2, .L34+4
	mov	r1, #0
	bl	pthread_create
.L31:
	sub	r3, fp, #112
	mov	r2, #101
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #116
	mov	r2, #4
	mov	r1, r3
	ldr	r0, [fp, #-136]
	bl	read
	mov	r3, r0
	cmp	r3, #0
	bgt	.L23
	ldr	r0, [fp, #-136]
	bl	close
	ldr	r3, .L34+8
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L24
	ldr	r1, [fp, #-140]
	ldr	r0, .L34+12
	bl	printf
	b	.L25
.L24:
	ldr	r1, [fp, #-140]
	ldr	r0, .L34+12
	bl	printf
	ldr	r3, .L34+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-140]
	ldr	r1, .L34+12
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L34+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
.L25:
	ldr	r3, .L34+8
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L26
	ldr	r1, [fp, #-140]
	ldr	r0, .L34+16
	bl	printf
	b	.L22
.L26:
	ldr	r1, [fp, #-140]
	ldr	r0, .L34+16
	bl	printf
	ldr	r3, .L34+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-140]
	ldr	r1, .L34+16
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L34+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	b	.L22
.L23:
	sub	r3, fp, #120
	mov	r2, #4
	mov	r1, r3
	ldr	r0, [fp, #-136]
	bl	read
	ldr	r3, [fp, #-120]
	mov	r0, r3
	bl	ntohl
	mov	r2, r0
	sub	r3, fp, #112
	mov	r1, r3
	ldr	r0, [fp, #-136]
	bl	read
	ldr	r3, .L34+8
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L29
	sub	r3, fp, #112
	mov	r2, r3
	ldr	r1, [fp, #-140]
	ldr	r0, .L34+20
	bl	printf
	b	.L31
.L29:
	sub	r3, fp, #112
	mov	r2, r3
	ldr	r1, [fp, #-140]
	ldr	r0, .L34+20
	bl	printf
	ldr	r3, .L34+8
	ldr	r0, [r3]
	sub	r3, fp, #112
	ldr	r2, [fp, #-140]
	ldr	r1, .L34+20
	bl	fprintf
	ldr	r3, .L34+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	b	.L31
.L22:
	ldr	r3, .L34
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L33
	bl	__stack_chk_fail
.L33:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L35:
	.align	2
.L34:
	.word	.LC10
	.word	echo_rep
	.word	res
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.size	str_cli, .-str_cli
	.section	.rodata
	.align	2
.LC11:
	.ascii	"input\000"
	.align	2
.LC12:
	.ascii	"stu_cli_res_%d.txt\000"
	.align	2
.LC13:
	.ascii	"w\000"
	.align	2
.LC14:
	.ascii	"[cli](%d) %s is created!\012\000"
	.align	2
.LC15:
	.ascii	"td%d.txt\000"
	.align	2
.LC16:
	.ascii	"r\000"
	.align	2
.LC17:
	.ascii	"connect\000"
	.align	2
.LC18:
	.ascii	"[cli](%d) server[%s:%s] is connected!\012\000"
	.align	2
.LC19:
	.ascii	"[cli](%d) %s is closed!\012\000"
	.align	2
.LC20:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	ldr	r3, .L44
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-48]
	cmp	r3, #4
	beq	.L37
	ldr	r0, .L44+4
	bl	perror
	mov	r3, #1
	b	.L42
.L37:
	mov	r0, #224
	bl	syscall
	str	r0, [fp, #-44]
	ldr	r3, [fp, #-52]
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	ldr	r2, .L44+8
	str	r3, [r2]
	ldr	r3, .L44+8
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L44+12
	ldr	r0, .L44+16
	bl	sprintf
	ldr	r1, .L44+20
	ldr	r0, .L44+16
	bl	fopen
	mov	r3, r0
	ldr	r2, .L44+24
	str	r3, [r2]
	ldr	r2, .L44+16
	ldr	r1, [fp, #-44]
	ldr	r0, .L44+28
	bl	printf
	mov	r2, #20
	mov	r1, #0
	ldr	r0, .L44+16
	bl	memset
	ldr	r3, .L44+8
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L44+12
	ldr	r0, .L44+16
	bl	sprintf
	ldr	r1, .L44+20
	ldr	r0, .L44+16
	bl	fopen
	mov	r3, r0
	ldr	r2, .L44+24
	str	r3, [r2]
	ldr	r2, .L44+16
	ldr	r1, [fp, #-44]
	ldr	r0, .L44+28
	bl	printf
	ldr	r3, .L44+8
	ldr	r2, [r3]
	sub	r3, fp, #20
	ldr	r1, .L44+32
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #20
	ldr	r1, .L44+36
	mov	r0, r3
	bl	fopen
	mov	r3, r0
	ldr	r2, .L44+40
	str	r3, [r2]
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-40]
	mov	r3, #2
	strh	r3, [fp, #-36]	@ movhi
	ldr	r3, [fp, #-52]
	add	r3, r3, #4
	ldr	r1, [r3]
	sub	r3, fp, #36
	add	r3, r3, #4
	mov	r2, r3
	mov	r0, #2
	bl	inet_pton
	ldr	r3, [fp, #-52]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-34]	@ movhi
	bl	setSigChld
	sub	r3, fp, #36
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-40]
	bl	connect
	mov	r3, r0
	cmp	r3, #0
	bge	.L39
	ldr	r0, .L44+44
	bl	perror
	mov	r3, #1
	b	.L42
.L39:
	ldr	r3, .L44+24
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L40
	ldr	r3, [fp, #-52]
	add	r3, r3, #4
	ldr	r2, [r3]
	ldr	r3, [fp, #-52]
	add	r3, r3, #8
	ldr	r3, [r3]
	ldr	r1, [fp, #-44]
	ldr	r0, .L44+48
	bl	printf
	b	.L41
.L40:
	ldr	r3, [fp, #-52]
	add	r3, r3, #4
	ldr	r2, [r3]
	ldr	r3, [fp, #-52]
	add	r3, r3, #8
	ldr	r3, [r3]
	ldr	r1, [fp, #-44]
	ldr	r0, .L44+48
	bl	printf
	ldr	r3, .L44+24
	ldr	r0, [r3]
	ldr	r3, [fp, #-52]
	add	r3, r3, #4
	ldr	r2, [r3]
	ldr	r3, [fp, #-52]
	add	r3, r3, #8
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, [fp, #-44]
	ldr	r1, .L44+48
	bl	fprintf
	ldr	r3, .L44+24
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
.L41:
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-40]
	bl	str_cli
	ldr	r3, .L44+24
	ldr	r3, [r3]
	mov	r0, r3
	bl	fclose
	ldr	r2, .L44+16
	ldr	r1, [fp, #-44]
	ldr	r0, .L44+52
	bl	printf
	mov	r3, #0
.L42:
	ldr	r2, .L44
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L43
	bl	__stack_chk_fail
.L43:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L45:
	.align	2
.L44:
	.word	.LC20
	.word	.LC11
	.word	PIN
	.word	.LC12
	.word	result
	.word	.LC13
	.word	res
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	rd
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
