	.file	"627656.c"
	.intel_syntax noprefix
	.text
	.globl	send_buffer
	.bss
	.align 32
	.type	send_buffer, @object
	.size	send_buffer, 10241
send_buffer:
	.zero	10241
	.globl	recv_buffer
	.align 32
	.type	recv_buffer, @object
	.size	recv_buffer, 10241
recv_buffer:
	.zero	10241
	.section	.rodata
.LC0:
	.string	"Command length too long: %d\n"
.LC1:
	.string	"--port"
	.align 8
.LC2:
	.string	"Port number (--port) was not found or is incorrect: %d\n"
	.align 8
.LC3:
	.string	"Could not open socket! Error code: %d (%s)\n"
	.align 8
.LC4:
	.string	"Could not set socket's send buffer size! Error code: %d (%s)\n"
	.align 8
.LC5:
	.string	"Could not set socket's receive buffer size! Error code: %d (%s)\n"
	.align 8
.LC6:
	.string	"Could not connect socket! Error code: %d (%s)\n"
	.align 8
.LC7:
	.string	"Could not write to the socket! Error code: %d (%s)\n"
	.align 8
.LC8:
	.string	"Wrote %d bytes instead of %d, exiting\n"
	.align 8
.LC9:
	.string	"Could not read from the socket! Error code: %d (%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, 112
	mov	DWORD PTR -100[rbp], edi
	mov	QWORD PTR -112[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -88[rbp], -1
	mov	DWORD PTR -84[rbp], -1
	lea	rax, send_buffer[rip]
	mov	QWORD PTR -40[rbp], rax
	mov	DWORD PTR -96[rbp], 10240
	mov	DWORD PTR -92[rbp], 1
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -92[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -112[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	strlen@PLT
	mov	edx, eax
	mov	eax, DWORD PTR -88[rbp]
	add	eax, edx
	add	eax, 1
	mov	DWORD PTR -88[rbp], eax
	add	DWORD PTR -92[rbp], 1
.L2:
	mov	eax, DWORD PTR -92[rbp]
	cmp	eax, DWORD PTR -100[rbp]
	jl	.L3
	cmp	DWORD PTR -88[rbp], 10240
	jle	.L4
	mov	eax, DWORD PTR -88[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 1
	jmp	.L19
.L4:
	mov	DWORD PTR -92[rbp], 1
	jmp	.L6
.L9:
	mov	eax, DWORD PTR -92[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -112[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	call	strcmp@PLT
	test	eax, eax
	jne	.L7
	mov	eax, DWORD PTR -92[rbp]
	add	eax, 1
	cmp	DWORD PTR -100[rbp], eax
	jle	.L7
	mov	eax, DWORD PTR -92[rbp]
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -112[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -84[rbp], eax
.L7:
	mov	eax, DWORD PTR -92[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -112[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -44[rbp], eax
	mov	eax, DWORD PTR -44[rbp]
	add	eax, 1
	movsx	rdx, eax
	mov	eax, DWORD PTR -92[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -112[rbp]
	add	rax, rcx
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	eax, DWORD PTR -92[rbp]
	add	eax, 1
	cmp	DWORD PTR -100[rbp], eax
	jle	.L8
	mov	eax, DWORD PTR -44[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 32
.L8:
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	add	rax, 1
	add	QWORD PTR -40[rbp], rax
	add	DWORD PTR -92[rbp], 1
.L6:
	mov	eax, DWORD PTR -92[rbp]
	cmp	eax, DWORD PTR -100[rbp]
	jl	.L9
	cmp	DWORD PTR -84[rbp], 0
	jg	.L10
	mov	eax, DWORD PTR -84[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 1
	jmp	.L19
.L10:
	mov	edx, 0
	mov	esi, 2
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -80[rbp], eax
	cmp	DWORD PTR -80[rbp], 0
	jns	.L11
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -48[rbp], eax
	mov	eax, DWORD PTR -48[rbp]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	eax, DWORD PTR -48[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 1
	jmp	.L19
.L11:
	lea	rdx, -96[rbp]
	mov	eax, DWORD PTR -80[rbp]
	mov	r8d, 4
	mov	rcx, rdx
	mov	edx, 7
	mov	esi, 1
	mov	edi, eax
	call	setsockopt@PLT
	cmp	eax, -1
	jne	.L12
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -52[rbp], eax
	mov	eax, DWORD PTR -52[rbp]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	eax, DWORD PTR -52[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 1
	jmp	.L19
.L12:
	lea	rdx, -96[rbp]
	mov	eax, DWORD PTR -80[rbp]
	mov	r8d, 4
	mov	rcx, rdx
	mov	edx, 8
	mov	esi, 1
	mov	edi, eax
	call	setsockopt@PLT
	cmp	eax, -1
	jne	.L13
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -56[rbp], eax
	mov	eax, DWORD PTR -56[rbp]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	eax, DWORD PTR -56[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 1
	jmp	.L19
.L13:
	mov	WORD PTR -32[rbp], 2
	mov	eax, DWORD PTR -84[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -30[rbp], ax
	mov	DWORD PTR -28[rbp], 0
	lea	rcx, -32[rbp]
	mov	eax, DWORD PTR -80[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	test	eax, eax
	je	.L14
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -60[rbp], eax
	mov	eax, DWORD PTR -60[rbp]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	eax, DWORD PTR -60[rbp]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -80[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 1
	jmp	.L19
.L14:
	mov	eax, DWORD PTR -88[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -80[rbp]
	lea	rsi, send_buffer[rip]
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -76[rbp], eax
	mov	eax, DWORD PTR -76[rbp]
	cmp	eax, DWORD PTR -88[rbp]
	je	.L15
	cmp	DWORD PTR -76[rbp], 0
	jns	.L16
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -64[rbp], eax
	mov	eax, DWORD PTR -64[rbp]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	eax, DWORD PTR -64[rbp]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L17
.L16:
	mov	edx, DWORD PTR -88[rbp]
	mov	eax, DWORD PTR -76[rbp]
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
.L17:
	mov	eax, DWORD PTR -80[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 1
	jmp	.L19
.L15:
	mov	eax, DWORD PTR -80[rbp]
	mov	edx, 10240
	lea	rsi, recv_buffer[rip]
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -72[rbp], eax
	cmp	DWORD PTR -72[rbp], 0
	jns	.L18
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -68[rbp], eax
	mov	eax, DWORD PTR -68[rbp]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	eax, DWORD PTR -68[rbp]
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -80[rbp]
	mov	edi, eax
	call	close@PLT
.L18:
	mov	eax, DWORD PTR -72[rbp]
	cdqe
	lea	rdx, recv_buffer[rip]
	mov	BYTE PTR [rax+rdx], 0
	lea	rdi, recv_buffer[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -80[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
.L19:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	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	"627656.c"
	.text
	.comm	send_buffer,10241,4
	.comm	recv_buffer,10241,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Command length too long: %d\012\000"
	.align	2
.LC1:
	.ascii	"--port\000"
	.align	2
.LC2:
	.ascii	"Port number (--port) was not found or is incorrect:"
	.ascii	" %d\012\000"
	.align	2
.LC3:
	.ascii	"Could not open socket! Error code: %d (%s)\012\000"
	.align	2
.LC4:
	.ascii	"Could not set socket's send buffer size! Error code"
	.ascii	": %d (%s)\012\000"
	.align	2
.LC5:
	.ascii	"Could not set socket's receive buffer size! Error c"
	.ascii	"ode: %d (%s)\012\000"
	.align	2
.LC6:
	.ascii	"Could not connect socket! Error code: %d (%s)\012\000"
	.align	2
.LC7:
	.ascii	"Could not write to the socket! Error code: %d (%s)\012"
	.ascii	"\000"
	.align	2
.LC8:
	.ascii	"Wrote %d bytes instead of %d, exiting\012\000"
	.align	2
.LC9:
	.ascii	"Could not read from the socket! Error code: %d (%s)"
	.ascii	"\012\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 88
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #96
	str	r0, [fp, #-88]
	str	r1, [fp, #-92]
	ldr	r3, .L21
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mvn	r3, #0
	str	r3, [fp, #-76]
	mvn	r3, #0
	str	r3, [fp, #-72]
	ldr	r3, .L21+4
	str	r3, [fp, #-68]
	mov	r3, #10240
	str	r3, [fp, #-84]
	mov	r3, #1
	str	r3, [fp, #-80]
	b	.L2
.L3:
	ldr	r3, [fp, #-80]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-92]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-76]
	add	r3, r2, r3
	add	r3, r3, #1
	str	r3, [fp, #-76]
	ldr	r3, [fp, #-80]
	add	r3, r3, #1
	str	r3, [fp, #-80]
.L2:
	ldr	r2, [fp, #-80]
	ldr	r3, [fp, #-88]
	cmp	r2, r3
	blt	.L3
	ldr	r3, [fp, #-76]
	cmp	r3, #10240
	ble	.L4
	ldr	r1, [fp, #-76]
	ldr	r0, .L21+8
	bl	printf
	mov	r3, #1
	b	.L19
.L4:
	mov	r3, #1
	str	r3, [fp, #-80]
	b	.L6
.L9:
	ldr	r3, [fp, #-80]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-92]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L21+12
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L7
	ldr	r3, [fp, #-80]
	add	r3, r3, #1
	ldr	r2, [fp, #-88]
	cmp	r2, r3
	ble	.L7
	ldr	r3, [fp, #-80]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-92]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-72]
.L7:
	ldr	r3, [fp, #-80]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-92]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-80]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-92]
	add	r3, r2, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	mov	r2, r3
	ldr	r0, [fp, #-68]
	bl	memcpy
	ldr	r3, [fp, #-80]
	add	r3, r3, #1
	ldr	r2, [fp, #-88]
	cmp	r2, r3
	ble	.L8
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-68]
	add	r3, r2, r3
	mov	r2, #32
	strb	r2, [r3]
.L8:
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	ldr	r2, [fp, #-68]
	add	r3, r2, r3
	str	r3, [fp, #-68]
	ldr	r3, [fp, #-80]
	add	r3, r3, #1
	str	r3, [fp, #-80]
.L6:
	ldr	r2, [fp, #-80]
	ldr	r3, [fp, #-88]
	cmp	r2, r3
	blt	.L9
	ldr	r3, [fp, #-72]
	cmp	r3, #0
	bgt	.L10
	ldr	r1, [fp, #-72]
	ldr	r0, .L21+16
	bl	printf
	mov	r3, #1
	b	.L19
.L10:
	mov	r2, #0
	mov	r1, #2
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-64]
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	bge	.L11
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	ldr	r0, [fp, #-32]
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, [fp, #-32]
	ldr	r0, .L21+20
	bl	printf
	mov	r3, #1
	b	.L19
.L11:
	sub	r3, fp, #84
	mov	r2, #4
	str	r2, [sp]
	mov	r2, #7
	mov	r1, #1
	ldr	r0, [fp, #-64]
	bl	setsockopt
	mov	r3, r0
	cmn	r3, #1
	bne	.L12
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	str	r3, [fp, #-36]
	ldr	r0, [fp, #-36]
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, [fp, #-36]
	ldr	r0, .L21+24
	bl	printf
	mov	r3, #1
	b	.L19
.L12:
	sub	r3, fp, #84
	mov	r2, #4
	str	r2, [sp]
	mov	r2, #8
	mov	r1, #1
	ldr	r0, [fp, #-64]
	bl	setsockopt
	mov	r3, r0
	cmn	r3, #1
	bne	.L13
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	ldr	r0, [fp, #-40]
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, [fp, #-40]
	ldr	r0, .L21+28
	bl	printf
	mov	r3, #1
	b	.L19
.L13:
	mov	r3, #2
	strh	r3, [fp, #-24]	@ movhi
	ldr	r3, [fp, #-72]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-22]	@ movhi
	mov	r3, #0
	str	r3, [fp, #-20]
	sub	r3, fp, #24
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-64]
	bl	connect
	mov	r3, r0
	cmp	r3, #0
	beq	.L14
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	str	r3, [fp, #-44]
	ldr	r0, [fp, #-44]
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, [fp, #-44]
	ldr	r0, .L21+32
	bl	printf
	ldr	r0, [fp, #-64]
	bl	close
	mov	r3, #1
	b	.L19
.L14:
	ldr	r3, [fp, #-76]
	mov	r2, r3
	ldr	r1, .L21+4
	ldr	r0, [fp, #-64]
	bl	write
	str	r0, [fp, #-60]
	ldr	r2, [fp, #-60]
	ldr	r3, [fp, #-76]
	cmp	r2, r3
	beq	.L15
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	bge	.L16
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	str	r3, [fp, #-48]
	ldr	r0, [fp, #-48]
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, [fp, #-48]
	ldr	r0, .L21+36
	bl	printf
	b	.L17
.L16:
	ldr	r2, [fp, #-76]
	ldr	r1, [fp, #-60]
	ldr	r0, .L21+40
	bl	printf
.L17:
	ldr	r0, [fp, #-64]
	bl	close
	mov	r3, #1
	b	.L19
.L15:
	mov	r2, #10240
	ldr	r1, .L21+44
	ldr	r0, [fp, #-64]
	bl	read
	str	r0, [fp, #-56]
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	bge	.L18
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	str	r3, [fp, #-52]
	ldr	r0, [fp, #-52]
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, [fp, #-52]
	ldr	r0, .L21+48
	bl	printf
	ldr	r0, [fp, #-64]
	bl	close
.L18:
	ldr	r2, .L21+44
	ldr	r3, [fp, #-56]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r0, .L21+44
	bl	puts
	ldr	r0, [fp, #-64]
	bl	close
	mov	r3, #0
.L19:
	ldr	r2, .L21
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L20
	bl	__stack_chk_fail
.L20:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L22:
	.align	2
.L21:
	.word	.LC10
	.word	send_buffer
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	recv_buffer
	.word	.LC9
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
