	.file	"225187.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC1:
	.string	"not enough arguments"
.LC2:
	.string	"socket failed"
.LC3:
	.string	"gethostbyname failed"
.LC4:
	.string	"connect failed"
.LC5:
	.string	"send failed"
.LC6:
	.string	"Bytes,ip,rate,dt"
.LC9:
	.string	"%d,%s,%5.6f,%7.0f\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, 1152
	mov	DWORD PTR -1140[rbp], edi
	mov	QWORD PTR -1152[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	pxor	xmm0, xmm0
	movsd	QWORD PTR -1112[rbp], xmm0
	mov	DWORD PTR -1132[rbp], 0
	mov	DWORD PTR -1128[rbp], 1
	cmp	DWORD PTR -1140[rbp], 3
	je	.L2
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -1120[rbp], eax
	cmp	DWORD PTR -1120[rbp], 0
	jns	.L3
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	mov	rax, QWORD PTR -1152[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	gethostbyname@PLT
	mov	QWORD PTR -1104[rbp], rax
	cmp	QWORD PTR -1104[rbp], 0
	jne	.L4
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	eax, DWORD PTR -1120[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edi, 1
	call	exit@PLT
.L4:
	lea	rax, -1056[rbp]
	mov	edx, 16
	mov	esi, 48
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -1056[rbp], 2
	mov	rax, QWORD PTR -1104[rbp]
	mov	eax, DWORD PTR 20[rax]
	movsx	rdx, eax
	mov	rax, QWORD PTR -1104[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rax, QWORD PTR [rax]
	lea	rcx, -1056[rbp]
	add	rcx, 4
	mov	rsi, rax
	mov	rdi, rcx
	call	memcpy@PLT
	mov	edi, 5000
	call	htons@PLT
	mov	WORD PTR -1054[rbp], ax
	lea	rcx, -1056[rbp]
	mov	eax, DWORD PTR -1120[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	test	eax, eax
	jns	.L5
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	eax, DWORD PTR -1120[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edi, 1
	call	exit@PLT
.L5:
	mov	rax, QWORD PTR -1152[rbp]
	add	rax, 16
	mov	rdx, QWORD PTR [rax]
	lea	rax, -1040[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	lea	rsi, -1040[rbp]
	mov	eax, DWORD PTR -1120[rbp]
	mov	ecx, 0
	mov	edx, 1024
	mov	edi, eax
	call	send@PLT
	test	rax, rax
	jns	.L6
	lea	rdi, .LC5[rip]
	call	perror@PLT
	mov	eax, DWORD PTR -1120[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edi, 1
	call	exit@PLT
.L6:
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	DWORD PTR -1124[rbp], 0
.L11:
	cmp	DWORD PTR -1128[rbp], 0
	je	.L7
	lea	rax, -1088[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	mov	DWORD PTR -1128[rbp], 0
.L7:
	lea	rsi, -1040[rbp]
	mov	eax, DWORD PTR -1120[rbp]
	mov	ecx, 0
	mov	edx, 1024
	mov	edi, eax
	call	recv@PLT
	mov	DWORD PTR -1116[rbp], eax
	cmp	DWORD PTR -1116[rbp], 0
	jle	.L8
	mov	eax, DWORD PTR -1116[rbp]
	add	DWORD PTR -1132[rbp], eax
	lea	rax, -1072[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	mov	rax, QWORD PTR -1072[rbp]
	mov	rdx, QWORD PTR -1088[rbp]
	sub	rax, rdx
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, rax
	movsd	xmm0, QWORD PTR .LC7[rip]
	mulsd	xmm1, xmm0
	mov	rax, QWORD PTR -1064[rbp]
	mov	rdx, QWORD PTR -1080[rbp]
	sub	rax, rdx
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	addsd	xmm0, xmm1
	movsd	QWORD PTR -1112[rbp], xmm0
.L8:
	movsd	xmm0, QWORD PTR -1112[rbp]
	comisd	xmm0, QWORD PTR .LC7[rip]
	jb	.L9
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, DWORD PTR -1132[rbp]
	movsd	xmm0, QWORD PTR .LC8[rip]
	mulsd	xmm0, xmm1
	divsd	xmm0, QWORD PTR -1112[rbp]
	movsd	QWORD PTR -1096[rbp], xmm0
	lea	rax, -1040[rbp]
	lea	rdx, -1056[rbp]
	lea	rsi, 4[rdx]
	mov	ecx, 1024
	mov	rdx, rax
	mov	edi, 2
	call	inet_ntop@PLT
	mov	rcx, rax
	movsd	xmm0, QWORD PTR -1112[rbp]
	mov	rdx, QWORD PTR -1096[rbp]
	mov	eax, DWORD PTR -1132[rbp]
	movapd	xmm1, xmm0
	movq	xmm0, rdx
	mov	rdx, rcx
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 2
	call	printf@PLT
	add	DWORD PTR -1124[rbp], 1
	mov	DWORD PTR -1132[rbp], 0
	mov	DWORD PTR -1128[rbp], 1
.L9:
	jmp	.L11
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC7:
	.long	0
	.long	1093567616
	.align 8
.LC8:
	.long	0
	.long	1083129856
	.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	"225187.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"not enough arguments\000"
	.align	2
.LC1:
	.ascii	"socket failed\000"
	.align	2
.LC2:
	.ascii	"gethostbyname failed\000"
	.align	2
.LC3:
	.ascii	"connect failed\000"
	.align	2
.LC4:
	.ascii	"send failed\000"
	.align	2
.LC5:
	.ascii	"Bytes,ip,rate,dt\000"
	.global	__aeabi_i2d
	.global	__aeabi_dmul
	.global	__aeabi_dadd
	.global	__aeabi_dcmpge
	.global	__aeabi_ddiv
	.align	2
.LC6:
	.ascii	"%d,%s,%5.6f,%7.0f\012\000"
	.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 = 1112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #1120
	sub	sp, sp, #8
	str	r0, [fp, #-1120]
	str	r1, [fp, #-1124]
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-1092]
	str	r3, [fp, #-1088]
	mov	r3, #0
	str	r3, [fp, #-1116]
	mov	r3, #1
	str	r3, [fp, #-1112]
	ldr	r3, [fp, #-1120]
	cmp	r3, #3
	beq	.L2
	ldr	r0, .L14+4
	bl	perror
	mov	r0, #1
	bl	exit
.L2:
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-1104]
	ldr	r3, [fp, #-1104]
	cmp	r3, #0
	bge	.L3
	ldr	r0, .L14+8
	bl	perror
	mov	r0, #1
	bl	exit
.L3:
	ldr	r3, [fp, #-1124]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	gethostbyname
	str	r0, [fp, #-1100]
	ldr	r3, [fp, #-1100]
	cmp	r3, #0
	bne	.L4
	ldr	r0, .L14+12
	bl	perror
	ldr	r0, [fp, #-1104]
	bl	close
	mov	r0, #1
	bl	exit
.L4:
	sub	r3, fp, #1040
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #16
	mov	r1, #48
	mov	r0, r3
	bl	memset
	sub	r3, fp, #12
	sub	r3, r3, #1040
	sub	r3, r3, #4
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-1100]
	ldr	r3, [r3, #16]
	ldr	r1, [r3]
	ldr	r3, [fp, #-1100]
	ldr	r3, [r3, #12]
	mov	r2, r3
	sub	r3, fp, #1040
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, #4
	mov	r0, r3
	bl	memcpy
	ldr	r0, .L14+16
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #12
	sub	r3, r3, #1040
	sub	r3, r3, #4
	strh	r2, [r3, #2]	@ movhi
	sub	r3, fp, #1040
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-1104]
	bl	connect
	mov	r3, r0
	cmp	r3, #0
	bge	.L5
	ldr	r0, .L14+20
	bl	perror
	ldr	r0, [fp, #-1104]
	bl	close
	mov	r0, #1
	bl	exit
.L5:
	ldr	r3, [fp, #-1124]
	add	r3, r3, #8
	ldr	r2, [r3]
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	sub	r1, fp, #1024
	sub	r1, r1, #12
	sub	r1, r1, #4
	mov	r3, #0
	mov	r2, #1024
	ldr	r0, [fp, #-1104]
	bl	send
	mov	r3, r0
	cmp	r3, #0
	bge	.L6
	ldr	r0, .L14+24
	bl	perror
	ldr	r0, [fp, #-1104]
	bl	close
	mov	r0, #1
	bl	exit
.L6:
	ldr	r0, .L14+28
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-1108]
.L11:
	ldr	r3, [fp, #-1112]
	cmp	r3, #0
	beq	.L7
	sub	r3, fp, #1056
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	mov	r3, #0
	str	r3, [fp, #-1112]
.L7:
	sub	r1, fp, #1024
	sub	r1, r1, #12
	sub	r1, r1, #4
	mov	r3, #0
	mov	r2, #1024
	ldr	r0, [fp, #-1104]
	bl	recv
	str	r0, [fp, #-1096]
	ldr	r3, [fp, #-1096]
	cmp	r3, #0
	ble	.L8
	ldr	r2, [fp, #-1116]
	ldr	r3, [fp, #-1096]
	add	r3, r2, r3
	str	r3, [fp, #-1116]
	sub	r3, fp, #1040
	sub	r3, r3, #12
	sub	r3, r3, #12
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	ldr	r2, [fp, #-1064]
	ldr	r3, [fp, #-1072]
	sub	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L14+32
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r2, [fp, #-1060]
	ldr	r3, [fp, #-1068]
	sub	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-1092]
	str	r3, [fp, #-1088]
.L8:
	mov	r2, #0
	ldr	r3, .L14+32
	ldr	r0, [fp, #-1092]
	ldr	r1, [fp, #-1088]
	bl	__aeabi_dcmpge
	mov	r3, r0
	cmp	r3, #0
	beq	.L9
	ldr	r0, [fp, #-1116]
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L14+36
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r2, [fp, #-1092]
	ldr	r3, [fp, #-1088]
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-1084]
	str	r3, [fp, #-1080]
	sub	r2, fp, #1024
	sub	r2, r2, #12
	sub	r2, r2, #4
	sub	r3, fp, #1040
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r1, r3, #4
	mov	r3, #1024
	mov	r0, #2
	bl	inet_ntop
	mov	r1, r0
	ldr	r2, [fp, #-1092]
	ldr	r3, [fp, #-1088]
	str	r2, [sp, #8]
	str	r3, [sp, #12]
	ldr	r2, [fp, #-1084]
	ldr	r3, [fp, #-1080]
	stm	sp, {r2-r3}
	mov	r2, r1
	ldr	r1, [fp, #-1116]
	ldr	r0, .L14+40
	bl	printf
	ldr	r3, [fp, #-1108]
	add	r3, r3, #1
	str	r3, [fp, #-1108]
	mov	r3, #0
	str	r3, [fp, #-1116]
	mov	r3, #1
	str	r3, [fp, #-1112]
.L9:
	b	.L11
.L15:
	.align	2
.L14:
	.word	.LC7
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	5000
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	1093567616
	.word	1083129856
	.word	.LC6
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
