	.file	"3263133.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"the other side has been closed."
	.text
	.globl	ReadThread
	.type	ReadThread, @function
ReadThread:
.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, 176
	mov	QWORD PTR -168[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 -168[rbp]
	mov	DWORD PTR -152[rbp], eax
	mov	DWORD PTR -148[rbp], 0
.L3:
	lea	rcx, -144[rbp]
	mov	eax, DWORD PTR -152[rbp]
	mov	edx, 128
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -148[rbp], eax
	cmp	DWORD PTR -148[rbp], 0
	jne	.L2
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -152[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edi, 0
	call	exit@PLT
.L2:
	mov	eax, DWORD PTR -148[rbp]
	movsx	rdx, eax
	lea	rax, -144[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	write@PLT
	jmp	.L3
	.cfi_endproc
.LFE6:
	.size	ReadThread, .-ReadThread
	.section	.rodata
.LC1:
	.string	"127.0.0.1"
	.text
	.globl	main
	.type	main, @function
main:
.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, 192
	mov	DWORD PTR -180[rbp], edi
	mov	QWORD PTR -192[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -172[rbp], eax
	lea	rax, -160[rbp]
	mov	QWORD PTR [rax], 0
	mov	QWORD PTR 8[rax], 0
	mov	WORD PTR -160[rbp], 2
	lea	rax, -160[rbp]
	add	rax, 4
	mov	rdx, rax
	lea	rsi, .LC1[rip]
	mov	edi, 2
	call	inet_pton@PLT
	mov	edi, 8001
	call	htons@PLT
	mov	WORD PTR -158[rbp], ax
	lea	rcx, -160[rbp]
	mov	eax, DWORD PTR -172[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	mov	eax, DWORD PTR -172[rbp]
	cdqe
	mov	rdx, rax
	lea	rax, -168[rbp]
	mov	rcx, rdx
	lea	rdx, ReadThread[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	jmp	.L6
.L7:
	lea	rax, -144[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rcx, -144[rbp]
	mov	eax, DWORD PTR -172[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
.L6:
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -144[rbp]
	mov	esi, 128
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L7
	mov	eax, DWORD PTR -172[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	"3263133.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"the other side has been closed.\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	ReadThread
	.syntax unified
	.arm
	.fpu softvfp
	.type	ReadThread, %function
ReadThread:
	@ args = 0, pretend = 0, frame = 152
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #152
	str	r0, [fp, #-152]
	ldr	r3, .L5
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	bl	pthread_self
	mov	r3, r0
	mov	r0, r3
	bl	pthread_detach
	ldr	r3, [fp, #-152]
	str	r3, [fp, #-144]
	mov	r3, #0
	str	r3, [fp, #-140]
.L3:
	sub	r3, fp, #136
	mov	r2, #128
	mov	r1, r3
	ldr	r0, [fp, #-144]
	bl	read
	str	r0, [fp, #-140]
	ldr	r3, [fp, #-140]
	cmp	r3, #0
	bne	.L2
	ldr	r0, .L5+4
	bl	puts
	ldr	r0, [fp, #-144]
	bl	close
	mov	r0, #0
	bl	exit
.L2:
	ldr	r2, [fp, #-140]
	sub	r3, fp, #136
	mov	r1, r3
	mov	r0, #1
	bl	write
	b	.L3
.L6:
	.align	2
.L5:
	.word	.LC1
	.word	.LC0
	.size	ReadThread, .-ReadThread
	.section	.rodata
	.align	2
.LC2:
	.ascii	"127.0.0.1\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 168
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #168
	str	r0, [fp, #-168]
	str	r1, [fp, #-172]
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-156]
	sub	r3, fp, #152
	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, #-152]	@ movhi
	sub	r3, fp, #152
	add	r3, r3, #4
	mov	r2, r3
	ldr	r1, .L12+4
	mov	r0, #2
	bl	inet_pton
	ldr	r0, .L12+8
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-150]	@ movhi
	sub	r3, fp, #152
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-156]
	bl	connect
	ldr	r3, [fp, #-156]
	sub	r0, fp, #160
	ldr	r2, .L12+12
	mov	r1, #0
	bl	pthread_create
	b	.L8
.L9:
	sub	r3, fp, #136
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #136
	mov	r1, r3
	ldr	r0, [fp, #-156]
	bl	write
.L8:
	ldr	r3, .L12+16
	ldr	r2, [r3]
	sub	r3, fp, #136
	mov	r1, #128
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L9
	ldr	r0, [fp, #-156]
	bl	close
	mov	r3, #0
	ldr	r2, .L12
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC3
	.word	.LC2
	.word	8001
	.word	ReadThread
	.word	stdin
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
