	.file	"376630.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"usage: ./client <ipaddress>"
	.align 8
.LC1:
	.string	"create socket error: %s(errno: %d)\n"
.LC2:
	.string	"inet_pton error for %s\n"
.LC3:
	.string	"connect error: %s(errno: %d)\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
	push	rbx
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 4072
	.cfi_offset 3, -24
	mov	DWORD PTR -8164[rbp], edi
	mov	QWORD PTR -8176[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -8164[rbp], 2
	je	.L2
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
.L2:
	mov	DWORD PTR -8152[rbp], 0
	jmp	.L3
.L7:
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -8148[rbp], eax
	cmp	DWORD PTR -8148[rbp], 0
	jns	.L4
	call	__errno_location@PLT
	mov	ebx, DWORD PTR [rax]
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	edx, ebx
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 0
	call	exit@PLT
.L4:
	mov	eax, DWORD PTR -8152[rbp]
	cdqe
	mov	edx, DWORD PTR -8148[rbp]
	mov	DWORD PTR -8128[rbp+rax*4], edx
	lea	rax, -8144[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -8144[rbp], 2
	mov	edi, 6633
	call	htons@PLT
	mov	WORD PTR -8142[rbp], ax
	mov	rax, QWORD PTR -8176[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rdx, -8144[rbp]
	add	rdx, 4
	mov	rsi, rax
	mov	edi, 2
	mov	eax, 0
	call	inet_pton@PLT
	test	eax, eax
	jg	.L5
	mov	rax, QWORD PTR -8176[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 0
	call	exit@PLT
.L5:
	lea	rcx, -8144[rbp]
	mov	eax, DWORD PTR -8148[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	test	eax, eax
	jns	.L6
	call	__errno_location@PLT
	mov	ebx, DWORD PTR [rax]
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	edx, ebx
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 0
	call	exit@PLT
.L6:
	movabs	rax, 8243311830880773480
	movabs	rdx, 7165072115075411311
	mov	QWORD PTR -4128[rbp], rax
	mov	QWORD PTR -4120[rbp], rdx
	mov	QWORD PTR -4112[rbp], 7628139
	mov	QWORD PTR -4104[rbp], 0
	mov	QWORD PTR -4096[rbp], 0
	mov	QWORD PTR -4088[rbp], 0
	mov	QWORD PTR -4080[rbp], 0
	mov	QWORD PTR -4072[rbp], 0
	mov	QWORD PTR -4064[rbp], 0
	mov	QWORD PTR -4056[rbp], 0
	mov	QWORD PTR -4048[rbp], 0
	mov	QWORD PTR -4040[rbp], 0
	mov	QWORD PTR -4032[rbp], 0
	mov	QWORD PTR -4024[rbp], 0
	mov	QWORD PTR -4016[rbp], 0
	mov	QWORD PTR -4008[rbp], 0
	mov	QWORD PTR -4000[rbp], 0
	mov	QWORD PTR -3992[rbp], 0
	mov	QWORD PTR -3984[rbp], 0
	mov	QWORD PTR -3976[rbp], 0
	mov	QWORD PTR -3968[rbp], 0
	mov	QWORD PTR -3960[rbp], 0
	mov	QWORD PTR -3952[rbp], 0
	mov	QWORD PTR -3944[rbp], 0
	mov	QWORD PTR -3936[rbp], 0
	mov	QWORD PTR -3928[rbp], 0
	mov	QWORD PTR -3920[rbp], 0
	mov	QWORD PTR -3912[rbp], 0
	mov	QWORD PTR -3904[rbp], 0
	mov	QWORD PTR -3896[rbp], 0
	mov	QWORD PTR -3888[rbp], 0
	mov	QWORD PTR -3880[rbp], 0
	lea	rsi, -4128[rbp]
	mov	eax, DWORD PTR -8148[rbp]
	mov	ecx, 2048
	mov	edx, 256
	mov	edi, eax
	call	send@PLT
	mov	edi, 100
	mov	eax, 0
	call	usleep@PLT
	add	DWORD PTR -8152[rbp], 1
.L3:
	cmp	DWORD PTR -8152[rbp], 9
	jle	.L7
	mov	DWORD PTR -8152[rbp], 0
	jmp	.L8
.L9:
	mov	eax, DWORD PTR -8152[rbp]
	cdqe
	mov	eax, DWORD PTR -8128[rbp+rax*4]
	mov	edi, eax
	mov	eax, 0
	call	close@PLT
	mov	edi, 100
	mov	eax, 0
	call	usleep@PLT
	add	DWORD PTR -8152[rbp], 1
.L8:
	cmp	DWORD PTR -8152[rbp], 9
	jle	.L9
	mov	eax, 0
	mov	rcx, QWORD PTR -24[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	mov	rbx, QWORD PTR -8[rbp]
	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	"376630.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"usage: ./client <ipaddress>\000"
	.align	2
.LC1:
	.ascii	"create socket error: %s(errno: %d)\012\000"
	.align	2
.LC2:
	.ascii	"inet_pton error for %s\012\000"
	.align	2
.LC3:
	.ascii	"connect error: %s(errno: %d)\012\000"
	.align	2
.LC4:
	.ascii	"hello from a socket\000"
	.space	236
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8136
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #8128
	sub	sp, sp, #12
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r0, [r3, #-4036]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r1, [r3, #-4040]
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-4036]
	cmp	r3, #2
	beq	.L2
	ldr	r0, .L12+4
	bl	puts
	mov	r0, #0
	bl	exit
.L2:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-4028]
	b	.L3
.L7:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [r4, #-4024]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-4024]
	cmp	r3, #0
	bge	.L4
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r4, r0
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L12+8
	bl	printf
	mov	r0, #0
	bl	exit
.L4:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-4028]
	lsl	r3, r3, #2
	add	r3, r2, r3
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-4024]
	str	r2, [r3, #-4004]
	sub	r3, fp, #8064
	sub	r3, r3, #12
	sub	r3, r3, #52
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4016
	sub	r3, r3, #4
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	ldr	r0, .L12+12
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4016
	sub	r3, r3, #4
	strh	r2, [r3, #2]	@ movhi
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-4040]
	add	r3, r3, #4
	ldr	r1, [r3]
	sub	r3, fp, #8064
	sub	r3, r3, #12
	sub	r3, r3, #52
	add	r3, r3, #4
	mov	r2, r3
	mov	r0, #2
	bl	inet_pton
	mov	r3, r0
	cmp	r3, #0
	bgt	.L5
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-4040]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L12+16
	bl	printf
	mov	r0, #0
	bl	exit
.L5:
	sub	r3, fp, #8064
	sub	r3, r3, #12
	sub	r3, r3, #52
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [r0, #-4024]
	bl	connect
	mov	r3, r0
	cmp	r3, #0
	bge	.L6
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r4, r0
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L12+20
	bl	printf
	mov	r0, #0
	bl	exit
.L6:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	ldr	r3, .L12+24
	sub	ip, r4, #4
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldr	r3, [lr]
	str	r3, [ip]
	add	r3, r4, #16
	mov	r2, #236
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r1, fp, #4096
	sub	r1, r1, #12
	sub	r1, r1, #4
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r0, r3
	mov	r3, #2048
	mov	r2, #256
	ldr	r0, [r0, #-4024]
	bl	send
	mov	r0, #100
	bl	usleep
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-4028]
	add	r3, r3, #1
	str	r3, [r2, #-4028]
.L3:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-4028]
	cmp	r3, #9
	ble	.L7
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-4028]
	b	.L8
.L9:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-4028]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #-4004]
	mov	r0, r3
	bl	close
	mov	r0, #100
	bl	usleep
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-4028]
	add	r3, r3, #1
	str	r3, [r2, #-4028]
.L8:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-4028]
	cmp	r3, #9
	ble	.L9
	mov	r3, #0
	ldr	r2, .L12
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC5
	.word	.LC0
	.word	.LC1
	.word	6633
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
