	.file	"1017968.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Enter exactly 4 arguments.\n"
	.align 8
.LC1:
	.string	"serverPort has to be an integer between 0 and 65535.\n"
	.align 8
.LC2:
	.string	"receivePort has to be an integer between 0 and 65535.\n"
.LC3:
	.string	"TCP socket creation failed.\n"
	.align 8
.LC4:
	.string	"TCP socket connection failed.\n"
	.align 8
.LC5:
	.string	"TCP socket connection was successful.\n"
.LC6:
	.string	"r"
.LC7:
	.string	"%c"
	.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, 304
	mov	DWORD PTR -292[rbp], edi
	mov	QWORD PTR -304[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -292[rbp], 5
	je	.L2
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 27
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	rax, QWORD PTR -304[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	strdup@PLT
	mov	QWORD PTR -256[rbp], rax
	mov	rax, QWORD PTR -304[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -268[rbp], eax
	cmp	DWORD PTR -268[rbp], 1999
	jle	.L3
	cmp	DWORD PTR -268[rbp], 65535
	jle	.L4
.L3:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 53
	mov	esi, 1
	lea	rdi, .LC1[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L4:
	mov	rax, QWORD PTR -304[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -264[rbp], eax
	cmp	DWORD PTR -264[rbp], 1999
	jle	.L5
	cmp	DWORD PTR -264[rbp], 65535
	jle	.L6
.L5:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 54
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L6:
	mov	rax, QWORD PTR -304[rbp]
	add	rax, 32
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	strdup@PLT
	mov	QWORD PTR -248[rbp], rax
	mov	edx, 0
	mov	esi, 1
	mov	edi, 1
	call	socket@PLT
	mov	DWORD PTR -260[rbp], eax
	cmp	DWORD PTR -260[rbp], -1
	jne	.L7
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 28
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L7:
	lea	rax, -224[rbp]
	mov	edx, 110
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -224[rbp], 1
	mov	rax, QWORD PTR -256[rbp]
	lea	rdx, -224[rbp]
	lea	rcx, 2[rdx]
	mov	edx, 107
	mov	rsi, rax
	mov	rdi, rcx
	call	strncpy@PLT
	lea	rcx, -224[rbp]
	mov	eax, DWORD PTR -260[rbp]
	mov	edx, 110
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	cmp	eax, -1
	jne	.L8
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 30
	mov	esi, 1
	lea	rdi, .LC4[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L8:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 38
	mov	esi, 1
	lea	rdi, .LC5[rip]
	call	fwrite@PLT
	mov	DWORD PTR -280[rbp], 0
	mov	QWORD PTR -112[rbp], 0
	mov	QWORD PTR -104[rbp], 0
	mov	QWORD PTR -96[rbp], 0
	mov	QWORD PTR -88[rbp], 0
	mov	QWORD PTR -80[rbp], 0
	mov	QWORD PTR -72[rbp], 0
	mov	QWORD PTR -64[rbp], 0
	mov	QWORD PTR -56[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	DWORD PTR -16[rbp], 0
	mov	DWORD PTR -276[rbp], 0
	mov	DWORD PTR -272[rbp], 1
	mov	rax, QWORD PTR -248[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -240[rbp], rax
	jmp	.L9
.L14:
	mov	DWORD PTR -276[rbp], 0
	jmp	.L10
.L12:
	add	DWORD PTR -276[rbp], 1
.L10:
	cmp	DWORD PTR -276[rbp], 99
	jg	.L11
	lea	rdx, -112[rbp]
	mov	eax, DWORD PTR -276[rbp]
	cdqe
	add	rdx, rax
	mov	rax, QWORD PTR -240[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	DWORD PTR -280[rbp], eax
	cmp	DWORD PTR -280[rbp], -1
	jne	.L12
.L11:
	lea	rax, -112[rbp]
	mov	rdi, rax
	call	strdup@PLT
	mov	QWORD PTR -232[rbp], rax
	mov	rax, QWORD PTR -232[rbp]
	mov	rdi, rax
	call	strlen@PLT
	lea	rdx, 1[rax]
	mov	rcx, QWORD PTR -232[rbp]
	mov	eax, DWORD PTR -260[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	lea	rax, -112[rbp]
	mov	edx, 100
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	ecx, DWORD PTR -272[rbp]
	movsx	rax, ecx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax, 2
	mov	esi, ecx
	sar	esi, 31
	sub	eax, esi
	mov	edx, eax
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	sub	ecx, eax
	mov	edx, ecx
	test	edx, edx
	jne	.L13
	mov	edi, 5
	call	sleep@PLT
.L13:
	add	DWORD PTR -272[rbp], 1
.L9:
	cmp	DWORD PTR -280[rbp], -1
	jne	.L14
	mov	rax, QWORD PTR -240[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, DWORD PTR -260[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edi, 0
	call	exit@PLT
	.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	"1017968.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Enter exactly 4 arguments.\012\000"
	.align	2
.LC1:
	.ascii	"serverPort has to be an integer between 0 and 65535"
	.ascii	".\012\000"
	.align	2
.LC2:
	.ascii	"receivePort has to be an integer between 0 and 6553"
	.ascii	"5.\012\000"
	.align	2
.LC3:
	.ascii	"TCP socket creation failed.\012\000"
	.align	2
.LC4:
	.ascii	"TCP socket connection failed.\012\000"
	.align	2
.LC5:
	.ascii	"TCP socket connection was successful.\012\000"
	.align	2
.LC6:
	.ascii	"r\000"
	.align	2
.LC7:
	.ascii	"%c\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 264
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #264
	str	r0, [fp, #-264]
	str	r1, [fp, #-268]
	ldr	r3, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-264]
	cmp	r3, #5
	beq	.L2
	ldr	r3, .L16+4
	ldr	r3, [r3]
	mov	r2, #27
	mov	r1, #1
	ldr	r0, .L16+8
	bl	fwrite
	mov	r0, #1
	bl	exit
.L2:
	ldr	r3, [fp, #-268]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	strdup
	mov	r3, r0
	str	r3, [fp, #-248]
	ldr	r3, [fp, #-268]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-244]
	ldr	r3, [fp, #-244]
	cmp	r3, #2000
	blt	.L3
	ldr	r3, [fp, #-244]
	cmp	r3, #65536
	blt	.L4
.L3:
	ldr	r3, .L16+4
	ldr	r3, [r3]
	mov	r2, #53
	mov	r1, #1
	ldr	r0, .L16+12
	bl	fwrite
	mov	r0, #1
	bl	exit
.L4:
	ldr	r3, [fp, #-268]
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-240]
	ldr	r3, [fp, #-240]
	cmp	r3, #2000
	blt	.L5
	ldr	r3, [fp, #-240]
	cmp	r3, #65536
	blt	.L6
.L5:
	ldr	r3, .L16+4
	ldr	r3, [r3]
	mov	r2, #54
	mov	r1, #1
	ldr	r0, .L16+16
	bl	fwrite
	mov	r0, #1
	bl	exit
.L6:
	ldr	r3, [fp, #-268]
	add	r3, r3, #16
	ldr	r3, [r3]
	mov	r0, r3
	bl	strdup
	mov	r3, r0
	str	r3, [fp, #-236]
	mov	r2, #0
	mov	r1, #1
	mov	r0, #1
	bl	socket
	str	r0, [fp, #-232]
	ldr	r3, [fp, #-232]
	cmn	r3, #1
	bne	.L7
	ldr	r3, .L16+4
	ldr	r3, [r3]
	mov	r2, #28
	mov	r1, #1
	ldr	r0, .L16+20
	bl	fwrite
	mov	r0, #1
	bl	exit
.L7:
	sub	r3, fp, #220
	mov	r2, #110
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #1
	strh	r3, [fp, #-220]	@ movhi
	sub	r3, fp, #220
	add	r3, r3, #2
	mov	r2, #107
	ldr	r1, [fp, #-248]
	mov	r0, r3
	bl	strncpy
	sub	r3, fp, #220
	mov	r2, #110
	mov	r1, r3
	ldr	r0, [fp, #-232]
	bl	connect
	mov	r3, r0
	cmn	r3, #1
	bne	.L8
	ldr	r3, .L16+4
	ldr	r3, [r3]
	mov	r2, #30
	mov	r1, #1
	ldr	r0, .L16+24
	bl	fwrite
	mov	r0, #1
	bl	exit
.L8:
	ldr	r3, .L16+4
	ldr	r3, [r3]
	mov	r2, #38
	mov	r1, #1
	ldr	r0, .L16+28
	bl	fwrite
	mov	r3, #0
	str	r3, [fp, #-260]
	mov	r3, #0
	str	r3, [fp, #-108]
	sub	r3, fp, #104
	mov	r2, #96
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-256]
	mov	r3, #1
	str	r3, [fp, #-252]
	ldr	r1, .L16+32
	ldr	r0, [fp, #-236]
	bl	fopen
	str	r0, [fp, #-228]
	b	.L9
.L14:
	mov	r3, #0
	str	r3, [fp, #-256]
	b	.L10
.L12:
	ldr	r3, [fp, #-256]
	add	r3, r3, #1
	str	r3, [fp, #-256]
.L10:
	ldr	r3, [fp, #-256]
	cmp	r3, #99
	bgt	.L11
	sub	r2, fp, #108
	ldr	r3, [fp, #-256]
	add	r3, r2, r3
	mov	r2, r3
	ldr	r1, .L16+36
	ldr	r0, [fp, #-228]
	bl	__isoc99_fscanf
	str	r0, [fp, #-260]
	ldr	r3, [fp, #-260]
	cmn	r3, #1
	bne	.L12
.L11:
	sub	r3, fp, #108
	mov	r0, r3
	bl	strdup
	mov	r3, r0
	str	r3, [fp, #-224]
	ldr	r0, [fp, #-224]
	bl	strlen
	mov	r3, r0
	add	r3, r3, #1
	mov	r2, r3
	ldr	r1, [fp, #-224]
	ldr	r0, [fp, #-232]
	bl	write
	sub	r3, fp, #108
	mov	r2, #100
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r1, [fp, #-252]
	ldr	r3, .L16+40
	smull	r2, r3, r1, r3
	asr	r2, r3, #2
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, r1, r3
	cmp	r2, #0
	bne	.L13
	mov	r0, #5
	bl	sleep
.L13:
	ldr	r3, [fp, #-252]
	add	r3, r3, #1
	str	r3, [fp, #-252]
.L9:
	ldr	r3, [fp, #-260]
	cmn	r3, #1
	bne	.L14
	ldr	r0, [fp, #-228]
	bl	fclose
	ldr	r0, [fp, #-232]
	bl	close
	mov	r0, #0
	bl	exit
.L17:
	.align	2
.L16:
	.word	.LC8
	.word	stderr
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	1717986919
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
