	.file	"83662.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"hello from tcpclient!"
.LC1:
	.string	"Usage: %s <ip>\n"
.LC2:
	.string	"socket create error!\n"
.LC3:
	.string	"change error!\n"
.LC4:
	.string	"connect error!"
.LC5:
	.string	"connected!"
.LC6:
	.string	"Input data to send:"
.LC7:
	.string	"strlen(buf):%d\n"
.LC8:
	.string	"len:%d\n"
.LC9:
	.string	"send error!\n"
.LC10:
	.string	"recv error!\n"
	.align 8
.LC11:
	.string	"the reccived data from server is %s\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 272
	mov	DWORD PTR -260[rbp], edi
	mov	QWORD PTR -272[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC0[rip]
	call	puts@PLT
	cmp	DWORD PTR -260[rbp], 1
	jg	.L2
	mov	rax, QWORD PTR -272[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -248[rbp], eax
	cmp	DWORD PTR -248[rbp], 0
	jns	.L3
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	lea	rax, -240[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -240[rbp], 2
	mov	edi, 8888
	call	htons@PLT
	mov	WORD PTR -238[rbp], ax
	mov	rax, QWORD PTR -272[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rdx, -240[rbp]
	add	rdx, 4
	mov	rsi, rdx
	mov	rdi, rax
	call	inet_aton@PLT
	test	eax, eax
	jne	.L4
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L4:
	lea	rcx, -240[rbp]
	mov	eax, DWORD PTR -248[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	test	eax, eax
	jns	.L5
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L5:
	lea	rdi, .LC5[rip]
	call	puts@PLT
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -224[rbp]
	mov	esi, 100
	mov	rdi, rax
	call	fgets@PLT
	lea	rax, -224[rbp]
	mov	rdi, rax
	call	puts@PLT
	lea	rax, -224[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -224[rbp]
	mov	rdi, rax
	call	strlen@PLT
	lea	rdx, -1[rax]
	lea	rsi, -224[rbp]
	mov	eax, DWORD PTR -248[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	send@PLT
	mov	DWORD PTR -244[rbp], eax
	mov	eax, DWORD PTR -244[rbp]
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	DWORD PTR -244[rbp], 0
	jns	.L6
	lea	rdi, .LC9[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L6:
	mov	edi, 1
	mov	eax, 0
	call	sleep@PLT
	lea	rsi, -112[rbp]
	mov	eax, DWORD PTR -248[rbp]
	mov	ecx, 0
	mov	edx, 100
	mov	edi, eax
	call	recv@PLT
	mov	DWORD PTR -244[rbp], eax
	mov	eax, DWORD PTR -244[rbp]
	cdqe
	mov	BYTE PTR -112[rbp+rax], 0
	cmp	DWORD PTR -244[rbp], 0
	jns	.L7
	lea	rdi, .LC10[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L7:
	lea	rax, -112[rbp]
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -248[rbp]
	mov	edi, eax
	mov	eax, 0
	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
.LFE6:
	.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	"83662.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"hello from tcpclient!\000"
	.align	2
.LC1:
	.ascii	"Usage: %s <ip>\012\000"
	.align	2
.LC2:
	.ascii	"socket create error!\012\000"
	.align	2
.LC3:
	.ascii	"change error!\012\000"
	.align	2
.LC4:
	.ascii	"connect error!\000"
	.align	2
.LC5:
	.ascii	"connected!\000"
	.align	2
.LC6:
	.ascii	"Input data to send:\000"
	.align	2
.LC7:
	.ascii	"strlen(buf):%d\012\000"
	.align	2
.LC8:
	.ascii	"len:%d\012\000"
	.align	2
.LC9:
	.ascii	"send error!\012\000"
	.align	2
.LC10:
	.ascii	"recv error!\012\000"
	.align	2
.LC11:
	.ascii	"the reccived data from server is %s\012\000"
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 240
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #240
	str	r0, [fp, #-240]
	str	r1, [fp, #-244]
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L10+4
	bl	puts
	ldr	r3, [fp, #-240]
	cmp	r3, #1
	bgt	.L2
	ldr	r3, [fp, #-244]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L10+8
	bl	printf
	mov	r0, #1
	bl	exit
.L2:
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-232]
	ldr	r3, [fp, #-232]
	cmp	r3, #0
	bge	.L3
	ldr	r0, .L10+12
	bl	perror
	mov	r0, #1
	bl	exit
.L3:
	sub	r3, fp, #224
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #2
	strh	r3, [fp, #-224]	@ movhi
	ldr	r0, .L10+16
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-222]	@ movhi
	ldr	r3, [fp, #-244]
	add	r3, r3, #4
	ldr	r2, [r3]
	sub	r3, fp, #224
	add	r3, r3, #4
	mov	r1, r3
	mov	r0, r2
	bl	inet_aton
	mov	r3, r0
	cmp	r3, #0
	bne	.L4
	ldr	r0, .L10+20
	bl	perror
	mov	r0, #1
	bl	exit
.L4:
	sub	r3, fp, #224
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-232]
	bl	connect
	mov	r3, r0
	cmp	r3, #0
	bge	.L5
	ldr	r0, .L10+24
	bl	puts
	mov	r0, #1
	bl	exit
.L5:
	ldr	r0, .L10+28
	bl	puts
	ldr	r0, .L10+32
	bl	puts
	ldr	r3, .L10+36
	ldr	r2, [r3]
	sub	r3, fp, #208
	mov	r1, #100
	mov	r0, r3
	bl	fgets
	sub	r3, fp, #208
	mov	r0, r3
	bl	puts
	sub	r3, fp, #208
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L10+40
	bl	printf
	sub	r3, fp, #208
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	sub	r2, r3, #1
	sub	r1, fp, #208
	mov	r3, #0
	ldr	r0, [fp, #-232]
	bl	send
	str	r0, [fp, #-228]
	ldr	r1, [fp, #-228]
	ldr	r0, .L10+44
	bl	printf
	ldr	r3, [fp, #-228]
	cmp	r3, #0
	bge	.L6
	ldr	r0, .L10+48
	bl	perror
	mov	r0, #1
	bl	exit
.L6:
	mov	r0, #1
	bl	sleep
	sub	r1, fp, #108
	mov	r3, #0
	mov	r2, #100
	ldr	r0, [fp, #-232]
	bl	recv
	str	r0, [fp, #-228]
	sub	r2, fp, #108
	ldr	r3, [fp, #-228]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-228]
	cmp	r3, #0
	bge	.L7
	ldr	r0, .L10+52
	bl	perror
	mov	r0, #1
	bl	exit
.L7:
	sub	r3, fp, #108
	mov	r1, r3
	ldr	r0, .L10+56
	bl	printf
	ldr	r0, [fp, #-232]
	bl	close
	mov	r3, #0
	ldr	r2, .L10
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L9
	bl	__stack_chk_fail
.L9:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC12
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	8888
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	stdin
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
