	.file	"125140800.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"Please provide server address and port"
	.align 8
.LC1:
	.string	"For example: client localhost 5000."
.LC2:
	.string	"Error getting address:%s\n"
.LC3:
	.string	"Cannot connect to server:%s\n"
.LC4:
	.string	"Enter message:"
	.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, 368
	mov	DWORD PTR -356[rbp], edi
	mov	QWORD PTR -368[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -356[rbp], 2
	jg	.L2
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L6
.L2:
	lea	rax, -320[rbp]
	mov	edx, 48
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR -312[rbp], 1
	mov	DWORD PTR -316[rbp], 2
	mov	rax, QWORD PTR -368[rbp]
	add	rax, 16
	mov	rsi, QWORD PTR [rax]
	mov	rax, QWORD PTR -368[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rcx, -328[rbp]
	lea	rdx, -320[rbp]
	mov	rdi, rax
	call	getaddrinfo@PLT
	mov	DWORD PTR -340[rbp], eax
	cmp	DWORD PTR -340[rbp], 0
	je	.L4
	mov	eax, DWORD PTR -340[rbp]
	mov	edi, eax
	call	gai_strerror@PLT
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 1
	jmp	.L6
.L4:
	mov	rax, QWORD PTR -328[rbp]
	mov	edx, DWORD PTR 12[rax]
	mov	rax, QWORD PTR -328[rbp]
	mov	ecx, DWORD PTR 8[rax]
	mov	rax, QWORD PTR -328[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	esi, ecx
	mov	edi, eax
	call	socket@PLT
	mov	DWORD PTR -336[rbp], eax
	mov	rax, QWORD PTR -328[rbp]
	mov	edx, DWORD PTR 16[rax]
	mov	rax, QWORD PTR -328[rbp]
	mov	rcx, QWORD PTR 24[rax]
	mov	eax, DWORD PTR -336[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	test	eax, eax
	je	.L5
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 1
	jmp	.L6
.L5:
	lea	rax, -272[rbp]
	mov	edx, 256
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -272[rbp]
	mov	esi, 256
	mov	rdi, rax
	call	fgets@PLT
	lea	rax, -272[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rcx, -272[rbp]
	mov	eax, DWORD PTR -336[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -332[rbp], eax
	cmp	DWORD PTR -332[rbp], 0
	jg	.L5
	mov	eax, 0
.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	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	"125140800.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Please provide server address and port\000"
	.align	2
.LC1:
	.ascii	"For example: client localhost 5000.\000"
	.align	2
.LC2:
	.ascii	"Error getting address:%s\012\000"
	.align	2
.LC3:
	.ascii	"Cannot connect to server:%s\012\000"
	.align	2
.LC4:
	.ascii	"Enter message:\000"
	.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 = 320
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #320
	str	r0, [fp, #-320]
	str	r1, [fp, #-324]
	ldr	r3, .L8
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-320]
	cmp	r3, #2
	bgt	.L2
	ldr	r0, .L8+4
	bl	puts
	ldr	r0, .L8+8
	bl	puts
	mov	r3, #1
	b	.L6
.L2:
	sub	r3, fp, #296
	mov	r2, #32
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #1
	str	r3, [fp, #-288]
	mov	r3, #2
	str	r3, [fp, #-292]
	ldr	r3, [fp, #-324]
	add	r3, r3, #4
	ldr	r0, [r3]
	ldr	r3, [fp, #-324]
	add	r3, r3, #8
	ldr	r1, [r3]
	sub	r3, fp, #312
	sub	r2, fp, #296
	bl	getaddrinfo
	str	r0, [fp, #-308]
	ldr	r3, [fp, #-308]
	cmp	r3, #0
	beq	.L4
	ldr	r0, [fp, #-308]
	bl	gai_strerror
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L8+12
	bl	printf
	mov	r3, #1
	b	.L6
.L4:
	ldr	r3, [fp, #-312]
	ldr	r0, [r3, #4]
	ldr	r3, [fp, #-312]
	ldr	r1, [r3, #8]
	ldr	r3, [fp, #-312]
	ldr	r3, [r3, #12]
	mov	r2, r3
	bl	socket
	str	r0, [fp, #-304]
	ldr	r3, [fp, #-312]
	ldr	r1, [r3, #20]
	ldr	r3, [fp, #-312]
	ldr	r3, [r3, #16]
	mov	r2, r3
	ldr	r0, [fp, #-304]
	bl	connect
	mov	r3, r0
	cmp	r3, #0
	beq	.L5
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L8+16
	bl	printf
	mov	r3, #1
	b	.L6
.L5:
	sub	r3, fp, #264
	mov	r2, #256
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r0, .L8+20
	bl	puts
	ldr	r3, .L8+24
	ldr	r2, [r3]
	sub	r3, fp, #264
	mov	r1, #256
	mov	r0, r3
	bl	fgets
	sub	r3, fp, #264
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #264
	mov	r1, r3
	ldr	r0, [fp, #-304]
	bl	write
	str	r0, [fp, #-300]
	ldr	r3, [fp, #-300]
	cmp	r3, #0
	bgt	.L5
	mov	r3, #0
.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	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	stdin
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
