	.file	"968797.c"
	.intel_syntax noprefix
	.text
	.data
	.align 4
	.type	dummy_socket_fd, @object
	.size	dummy_socket_fd, 4
dummy_socket_fd:
	.long	-1
	.local	address
	.comm	address,16,16
	.local	wfTimerID
	.comm	wfTimerID,8,8
	.text
	.type	timeval_diff, @function
timeval_diff:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rcx, QWORD PTR [rax]
	mov	rax, rdx
	sub	rax, rcx
	imul	rax, rax, 1000
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rcx, rdx
	sub	rcx, rax
	movabs	rdx, 2361183241434822607
	mov	rax, rcx
	imul	rdx
	mov	rax, rdx
	sar	rax, 7
	sar	rcx, 63
	mov	rdx, rcx
	sub	rax, rdx
	add	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	timeval_diff, .-timeval_diff
	.section	.rodata
	.align 8
.LC0:
	.string	"Usage: udp_receiver <port> <delay bound in ms>"
.LC1:
	.string	"Waiting for data form sender "
.LC2:
	.string	","
	.align 8
.LC3:
	.string	"%ld:%ld::SeqID=%d Delay(in ms)=%ld Total rx=%d, total arrived on time=%d  Delta=%d Avg_delay=%ld\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, 1184
	mov	DWORD PTR -1172[rbp], edi
	mov	QWORD PTR -1184[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -1156[rbp], 0
	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	QWORD PTR -1128[rbp], 0
	mov	QWORD PTR -1088[rbp], 0
	mov	QWORD PTR -1080[rbp], 0
	mov	QWORD PTR -1104[rbp], 0
	mov	QWORD PTR -1072[rbp], 0
	mov	QWORD PTR -1064[rbp], 0
	mov	DWORD PTR -1152[rbp], 0
	mov	DWORD PTR -1140[rbp], 0
	mov	DWORD PTR -1136[rbp], 0
	mov	DWORD PTR -1148[rbp], 0
	cmp	DWORD PTR -1172[rbp], 2
	jg	.L4
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
.L4:
	mov	rax, QWORD PTR -1184[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -1140[rbp], eax
	mov	rax, QWORD PTR -1184[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -1136[rbp], eax
	lea	rdi, .LC1[rip]
	call	puts@PLT
	lea	rax, -1056[rbp]
	mov	QWORD PTR [rax], 0
	mov	QWORD PTR 8[rax], 0
	mov	WORD PTR -1056[rbp], 2
	mov	edi, 0
	call	htonl@PLT
	mov	DWORD PTR -1052[rbp], eax
	mov	eax, DWORD PTR -1140[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -1054[rbp], ax
	mov	DWORD PTR -1160[rbp], 16
	mov	edx, 0
	mov	esi, 2
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -1132[rbp], eax
	lea	rcx, -1056[rbp]
	mov	eax, DWORD PTR -1132[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
.L12:
	lea	rcx, -1160[rbp]
	lea	rdx, -1056[rbp]
	lea	rsi, -1040[rbp]
	mov	eax, DWORD PTR -1132[rbp]
	mov	r9, rcx
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 1024
	mov	edi, eax
	call	recvfrom@PLT
	mov	DWORD PTR -1144[rbp], 0
	lea	rax, -1040[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	strtok@PLT
	mov	QWORD PTR -1120[rbp], rax
	cmp	QWORD PTR -1120[rbp], 0
	je	.L5
	mov	rax, QWORD PTR -1120[rbp]
	mov	rdi, rax
	call	atol@PLT
	mov	QWORD PTR -1088[rbp], rax
	lea	rsi, .LC2[rip]
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -1120[rbp], rax
.L5:
	cmp	QWORD PTR -1120[rbp], 0
	je	.L6
	mov	rax, QWORD PTR -1120[rbp]
	mov	rdi, rax
	call	atol@PLT
	mov	QWORD PTR -1080[rbp], rax
	lea	rsi, .LC2[rip]
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -1120[rbp], rax
.L6:
	cmp	QWORD PTR -1120[rbp], 0
	je	.L7
	mov	rax, QWORD PTR -1120[rbp]
	mov	rdi, rax
	call	atol@PLT
	mov	DWORD PTR -1144[rbp], eax
.L7:
	lea	rax, -1072[rbp]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	gettimeofday@PLT
	lea	rdx, -1072[rbp]
	lea	rax, -1088[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	timeval_diff
	mov	QWORD PTR -1104[rbp], rax
	cmp	DWORD PTR -1144[rbp], 0
	jne	.L8
	mov	rax, QWORD PTR -1104[rbp]
	mov	DWORD PTR -1148[rbp], eax
.L8:
	cmp	DWORD PTR -1144[rbp], 0
	je	.L9
	add	DWORD PTR -1156[rbp], 1
.L9:
	mov	eax, DWORD PTR -1148[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -1104[rbp]
	sub	rax, rdx
	mov	QWORD PTR -1096[rbp], rax
	cmp	DWORD PTR -1144[rbp], 0
	je	.L10
	mov	eax, DWORD PTR -1136[rbp]
	cdqe
	cmp	QWORD PTR -1096[rbp], rax
	jge	.L10
	add	DWORD PTR -1152[rbp], 1
.L10:
	mov	rax, QWORD PTR -1096[rbp]
	add	QWORD PTR -1128[rbp], rax
	mov	QWORD PTR -1112[rbp], 0
	cmp	DWORD PTR -1156[rbp], 0
	jle	.L11
	mov	eax, DWORD PTR -1156[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -1128[rbp]
	cqo
	idiv	rcx
	mov	QWORD PTR -1112[rbp], rax
.L11:
	mov	rdx, QWORD PTR -1064[rbp]
	mov	rax, QWORD PTR -1072[rbp]
	mov	r8d, DWORD PTR -1156[rbp]
	mov	rdi, QWORD PTR -1096[rbp]
	mov	ecx, DWORD PTR -1144[rbp]
	sub	rsp, 8
	push	QWORD PTR -1112[rbp]
	mov	esi, DWORD PTR -1148[rbp]
	push	rsi
	mov	esi, DWORD PTR -1152[rbp]
	push	rsi
	mov	r9d, r8d
	mov	r8, rdi
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	add	rsp, 32
	jmp	.L12
	.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	"968797.c"
	.text
	.data
	.align	2
	.type	dummy_socket_fd, %object
	.size	dummy_socket_fd, 4
dummy_socket_fd:
	.word	-1
	.local	address
	.comm	address,16,4
	.local	wfTimerID
	.comm	wfTimerID,4,4
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	timeval_diff, %function
timeval_diff:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-20]
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-20]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	sub	r3, r2, r3
	ldr	r2, .L3
	smull	r1, r2, r3, r2
	asr	r2, r2, #6
	asr	r3, r3, #31
	sub	r3, r2, r3
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L4:
	.align	2
.L3:
	.word	274877907
	.size	timeval_diff, .-timeval_diff
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Usage: udp_receiver <port> <delay bound in ms>\000"
	.align	2
.LC1:
	.ascii	"Waiting for data form sender \000"
	.align	2
.LC2:
	.ascii	",\000"
	.global	__aeabi_idiv
	.align	2
.LC3:
	.ascii	"%ld:%ld::SeqID=%d Delay(in ms)=%ld Total rx=%d, tot"
	.ascii	"al arrived on time=%d  Delta=%d Avg_delay=%ld\012\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1120
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1136
	sub	sp, sp, #8
	str	r0, [fp, #-1120]
	str	r1, [fp, #-1124]
	ldr	r3, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-1112]
	mov	r3, #0
	str	r3, [fp, #-1032]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	mov	r2, #1020
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-1108]
	sub	r3, fp, #1056
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	mov	r3, #0
	str	r3, [fp, #-1084]
	sub	r3, fp, #1040
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	mov	r3, #0
	str	r3, [fp, #-1104]
	mov	r3, #0
	str	r3, [fp, #-1080]
	mov	r3, #0
	str	r3, [fp, #-1076]
	mov	r3, #0
	str	r3, [fp, #-1100]
	ldr	r3, [fp, #-1120]
	cmp	r3, #2
	bgt	.L6
	ldr	r0, .L16+4
	bl	puts
	mov	r0, #0
	bl	exit
.L6:
	ldr	r3, [fp, #-1124]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-1080]
	ldr	r3, [fp, #-1124]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-1076]
	ldr	r0, .L16+8
	bl	puts
	sub	r3, fp, #1040
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2]
	str	r3, [r2, #4]
	str	r3, [r2, #8]
	str	r3, [r2, #12]
	sub	r3, fp, #4
	sub	r3, r3, #1040
	sub	r3, r3, #4
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	mov	r0, #0
	bl	htonl
	mov	r3, r0
	str	r3, [fp, #-1044]
	ldr	r3, [fp, #-1080]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #4
	sub	r3, r3, #1040
	sub	r3, r3, #4
	strh	r2, [r3, #2]	@ movhi
	mov	r3, #16
	str	r3, [fp, #-1116]
	mov	r2, #0
	mov	r1, #2
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-1072]
	sub	r3, fp, #1040
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-1072]
	bl	bind
.L14:
	sub	r1, fp, #1024
	sub	r1, r1, #4
	sub	r1, r1, #4
	sub	r3, fp, #1104
	sub	r3, r3, #4
	sub	r3, r3, #8
	str	r3, [sp, #4]
	sub	r3, fp, #1040
	sub	r3, r3, #4
	sub	r3, r3, #4
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #1024
	ldr	r0, [fp, #-1072]
	bl	recvfrom
	mov	r3, #0
	str	r3, [fp, #-1092]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r1, .L16+12
	mov	r0, r3
	bl	strtok
	str	r0, [fp, #-1096]
	ldr	r3, [fp, #-1096]
	cmp	r3, #0
	beq	.L7
	ldr	r0, [fp, #-1096]
	bl	atol
	mov	r3, r0
	str	r3, [fp, #-1064]
	ldr	r1, .L16+12
	mov	r0, #0
	bl	strtok
	str	r0, [fp, #-1096]
.L7:
	ldr	r3, [fp, #-1096]
	cmp	r3, #0
	beq	.L8
	ldr	r0, [fp, #-1096]
	bl	atol
	mov	r3, r0
	str	r3, [fp, #-1060]
	ldr	r1, .L16+12
	mov	r0, #0
	bl	strtok
	str	r0, [fp, #-1096]
.L8:
	ldr	r3, [fp, #-1096]
	cmp	r3, #0
	beq	.L9
	ldr	r0, [fp, #-1096]
	bl	atol
	str	r0, [fp, #-1092]
.L9:
	sub	r3, fp, #1040
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	sub	r2, fp, #1040
	sub	r2, r2, #4
	sub	r2, r2, #12
	sub	r3, fp, #1056
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	timeval_diff
	str	r0, [fp, #-1084]
	ldr	r3, [fp, #-1092]
	cmp	r3, #0
	bne	.L10
	ldr	r3, [fp, #-1084]
	str	r3, [fp, #-1100]
.L10:
	ldr	r3, [fp, #-1092]
	cmp	r3, #0
	beq	.L11
	ldr	r3, [fp, #-1112]
	add	r3, r3, #1
	str	r3, [fp, #-1112]
.L11:
	ldr	r2, [fp, #-1084]
	ldr	r3, [fp, #-1100]
	sub	r3, r2, r3
	str	r3, [fp, #-1068]
	ldr	r3, [fp, #-1092]
	cmp	r3, #0
	beq	.L12
	ldr	r2, [fp, #-1068]
	ldr	r3, [fp, #-1076]
	cmp	r2, r3
	bge	.L12
	ldr	r3, [fp, #-1104]
	add	r3, r3, #1
	str	r3, [fp, #-1104]
.L12:
	ldr	r2, [fp, #-1108]
	ldr	r3, [fp, #-1068]
	add	r3, r2, r3
	str	r3, [fp, #-1108]
	mov	r3, #0
	str	r3, [fp, #-1088]
	ldr	r3, [fp, #-1112]
	cmp	r3, #0
	ble	.L13
	ldr	r1, [fp, #-1112]
	ldr	r0, [fp, #-1108]
	bl	__aeabi_idiv
	mov	r3, r0
	str	r3, [fp, #-1088]
.L13:
	ldr	r1, [fp, #-1056]
	ldr	r2, [fp, #-1052]
	ldr	r3, [fp, #-1088]
	str	r3, [sp, #16]
	ldr	r3, [fp, #-1100]
	str	r3, [sp, #12]
	ldr	r3, [fp, #-1104]
	str	r3, [sp, #8]
	ldr	r3, [fp, #-1112]
	str	r3, [sp, #4]
	ldr	r3, [fp, #-1068]
	str	r3, [sp]
	ldr	r3, [fp, #-1092]
	ldr	r0, .L16+16
	bl	printf
	b	.L14
.L17:
	.align	2
.L16:
	.word	.LC4
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
