	.file	"524781.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"\n Socket creation error "
.LC1:
	.string	"192.168.86.202"
	.align 8
.LC2:
	.string	"\nInvalid address/ Address not supported "
.LC3:
	.string	"\nConnection Failed "
	.text
	.globl	make_socket
	.type	make_socket, @function
make_socket:
.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, 64
	mov	eax, edi
	mov	WORD PTR -52[rbp], ax
	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 -36[rbp], eax
	cmp	DWORD PTR -36[rbp], 0
	jns	.L2
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L6
.L2:
	lea	rax, -32[rbp]
	mov	edx, 16
	mov	esi, 48
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -32[rbp], 2
	movzx	eax, WORD PTR -52[rbp]
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -30[rbp], ax
	lea	rax, -32[rbp]
	add	rax, 4
	mov	rdx, rax
	lea	rsi, .LC1[rip]
	mov	edi, 2
	call	inet_pton@PLT
	test	eax, eax
	jg	.L4
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L6
.L4:
	lea	rcx, -32[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	test	eax, eax
	jns	.L5
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L6
.L5:
	mov	eax, DWORD PTR -36[rbp]
.L6:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	make_socket, .-make_socket
	.section	.rodata
.LC4:
	.string	"Hello world !\nIt works !\n"
	.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, 1168
	mov	DWORD PTR -1156[rbp], edi
	mov	QWORD PTR -1168[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -1120[rbp], 6579570
	mov	WORD PTR -1112[rbp], 0
	movabs	rax, 474147549799
	mov	QWORD PTR -1110[rbp], rax
	mov	WORD PTR -1102[rbp], 0
	mov	QWORD PTR -1100[rbp], 1702194274
	mov	WORD PTR -1092[rbp], 0
	movabs	rax, 131320444118393
	mov	QWORD PTR -1090[rbp], rax
	mov	WORD PTR -1082[rbp], 0
	mov	QWORD PTR -1080[rbp], 1851881827
	mov	WORD PTR -1072[rbp], 0
	movabs	rax, 111516417422704
	mov	QWORD PTR -1070[rbp], rax
	mov	WORD PTR -1062[rbp], 0
	movabs	rax, 435744761975
	mov	QWORD PTR -1060[rbp], rax
	mov	WORD PTR -1052[rbp], 0
	movabs	rax, 461228829794
	mov	QWORD PTR -1050[rbp], rax
	mov	WORD PTR -1042[rbp], 0
	lea	rax, .LC4[rip]
	mov	QWORD PTR -1128[rbp], rax
	mov	QWORD PTR -1040[rbp], 0
	mov	QWORD PTR -1032[rbp], 0
	lea	rdx, -1024[rbp]
	mov	eax, 0
	mov	ecx, 126
	mov	rdi, rdx
	rep stosq
	mov	edi, 8888
	call	make_socket
	mov	DWORD PTR -1136[rbp], eax
	mov	DWORD PTR -1144[rbp], 0
	jmp	.L9
.L12:
	mov	DWORD PTR -1140[rbp], 0
	jmp	.L10
.L11:
	lea	rcx, -1120[rbp]
	mov	eax, DWORD PTR -1140[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	add	rax, rcx
	mov	rdi, rax
	call	strlen@PLT
	mov	rdi, rax
	lea	rcx, -1120[rbp]
	mov	eax, DWORD PTR -1140[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	lea	rsi, [rcx+rax]
	mov	eax, DWORD PTR -1136[rbp]
	mov	ecx, 0
	mov	rdx, rdi
	mov	edi, eax
	call	send@PLT
	lea	rcx, -1040[rbp]
	mov	eax, DWORD PTR -1136[rbp]
	mov	edx, 1024
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -1132[rbp], eax
	mov	eax, DWORD PTR -1132[rbp]
	cdqe
	mov	BYTE PTR -1040[rbp+rax], 0
	lea	rax, -1040[rbp]
	mov	rdi, rax
	call	puts@PLT
	mov	edi, 1
	call	sleep@PLT
	add	DWORD PTR -1140[rbp], 1
.L10:
	cmp	DWORD PTR -1140[rbp], 7
	jle	.L11
	add	DWORD PTR -1144[rbp], 1
.L9:
	cmp	DWORD PTR -1144[rbp], 4
	jle	.L12
	mov	rax, QWORD PTR -1128[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rsi, QWORD PTR -1128[rbp]
	mov	eax, DWORD PTR -1136[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	send@PLT
	lea	rcx, -1040[rbp]
	mov	eax, DWORD PTR -1136[rbp]
	mov	edx, 1024
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -1132[rbp], eax
	mov	eax, DWORD PTR -1132[rbp]
	cdqe
	mov	BYTE PTR -1040[rbp+rax], 0
	lea	rax, -1040[rbp]
	mov	rdi, rax
	call	puts@PLT
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	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	"524781.c"
	.text
	.section	.rodata
	.align	2
.LC1:
	.ascii	"\012 Socket creation error \000"
	.align	2
.LC2:
	.ascii	"192.168.86.202\000"
	.align	2
.LC3:
	.ascii	"\012Invalid address/ Address not supported \000"
	.align	2
.LC4:
	.ascii	"\012Connection Failed \000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	make_socket
	.syntax unified
	.arm
	.fpu softvfp
	.type	make_socket, %function
make_socket:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	mov	r3, r0
	strh	r3, [fp, #-30]	@ movhi
	ldr	r3, .L8
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bge	.L2
	ldr	r0, .L8+4
	bl	puts
	mvn	r3, #0
	b	.L6
.L2:
	sub	r3, fp, #24
	mov	r2, #16
	mov	r1, #48
	mov	r0, r3
	bl	memset
	mov	r3, #2
	strh	r3, [fp, #-24]	@ movhi
	ldrh	r3, [fp, #-30]
	mov	r0, r3
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-22]	@ movhi
	sub	r3, fp, #24
	add	r3, r3, #4
	mov	r2, r3
	ldr	r1, .L8+8
	mov	r0, #2
	bl	inet_pton
	mov	r3, r0
	cmp	r3, #0
	bgt	.L4
	ldr	r0, .L8+12
	bl	puts
	mvn	r3, #0
	b	.L6
.L4:
	sub	r3, fp, #24
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-28]
	bl	connect
	mov	r3, r0
	cmp	r3, #0
	bge	.L5
	ldr	r0, .L8+16
	bl	puts
	mvn	r3, #0
	b	.L6
.L5:
	ldr	r3, [fp, #-28]
.L6:
	ldr	r2, .L8
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L7
	bl	__stack_chk_fail
.L7:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC5
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	make_socket, .-make_socket
	.section	.rodata
	.align	2
.LC6:
	.ascii	"Hello world !\012It works !\012\000"
	.align	2
.LC0:
	.ascii	"red\000"
	.space	6
	.ascii	"green\000"
	.space	4
	.ascii	"blue\000"
	.space	5
	.ascii	"yellow\000"
	.space	3
	.ascii	"cyan\000"
	.space	5
	.ascii	"purple\000"
	.space	3
	.ascii	"white\000"
	.space	4
	.ascii	"black\000"
	.space	4
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1136
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #1136
	sub	sp, sp, #4
	str	r0, [fp, #-1144]
	str	r1, [fp, #-1148]
	ldr	r3, .L17
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r2, .L17+4
	sub	r3, fp, #1104
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r2
	mov	r2, #80
	mov	r0, r3
	bl	memcpy
	ldr	r3, .L17+8
	str	r3, [fp, #-1132]
	mov	r3, #0
	str	r3, [fp, #-1040]
	sub	r3, fp, #1024
	sub	r3, r3, #12
	mov	r2, #1020
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r0, .L17+12
	bl	make_socket
	str	r0, [fp, #-1128]
	mov	r3, #0
	str	r3, [fp, #-1140]
	b	.L11
.L14:
	mov	r3, #0
	str	r3, [fp, #-1136]
	b	.L12
.L13:
	sub	r2, fp, #1104
	sub	r2, r2, #12
	sub	r2, r2, #4
	ldr	r1, [fp, #-1136]
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #1
	add	r4, r2, r3
	sub	r2, fp, #1104
	sub	r2, r2, #12
	sub	r2, r2, #4
	ldr	r1, [fp, #-1136]
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #1
	add	r3, r2, r3
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	mov	r3, #0
	mov	r1, r4
	ldr	r0, [fp, #-1128]
	bl	send
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #1024
	mov	r1, r3
	ldr	r0, [fp, #-1128]
	bl	read
	str	r0, [fp, #-1124]
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, [fp, #-1124]
	add	r3, r3, r2
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	puts
	mov	r0, #1
	bl	sleep
	ldr	r3, [fp, #-1136]
	add	r3, r3, #1
	str	r3, [fp, #-1136]
.L12:
	ldr	r3, [fp, #-1136]
	cmp	r3, #7
	ble	.L13
	ldr	r3, [fp, #-1140]
	add	r3, r3, #1
	str	r3, [fp, #-1140]
.L11:
	ldr	r3, [fp, #-1140]
	cmp	r3, #4
	ble	.L14
	ldr	r0, [fp, #-1132]
	bl	strlen
	mov	r2, r0
	mov	r3, #0
	ldr	r1, [fp, #-1132]
	ldr	r0, [fp, #-1128]
	bl	send
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #1024
	mov	r1, r3
	ldr	r0, [fp, #-1128]
	bl	read
	str	r0, [fp, #-1124]
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, [fp, #-1124]
	add	r3, r3, r2
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	puts
	mov	r3, #0
	ldr	r2, .L17
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L16
	bl	__stack_chk_fail
.L16:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC7
	.word	.LC0
	.word	.LC6
	.word	8888
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
