	.file	"283802.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"\n Bucket size : %d"
.LC1:
	.string	"\n Output rate : %d"
	.align 8
.LC2:
	.string	"\n Number of packets coming at second %d : %d"
.LC3:
	.string	"\n\n Summary:"
	.align 8
.LC4:
	.string	"\n   Second \t   recieved \t       sent \t   dropped \t   remaining "
.LC5:
	.string	"\t%d\t"
.LC6:
	.string	"\t%d\t\t%d\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, 160
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -144[rbp], 10
	mov	DWORD PTR -156[rbp], 0
	mov	DWORD PTR -140[rbp], 100
	mov	DWORD PTR -152[rbp], 0
	lea	rdx, -128[rbp]
	mov	eax, 0
	mov	ecx, 15
	mov	rdi, rdx
	rep stosq
	mov	DWORD PTR -148[rbp], 0
	mov	eax, DWORD PTR -140[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -144[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 0
	mov	eax, 0
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
.L2:
	call	rand@PLT
	movsx	rdx, eax
	imul	rdx, rdx, 1374389535
	shr	rdx, 32
	sar	edx, 6
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	imul	ecx, edx, 200
	sub	eax, ecx
	mov	edx, eax
	mov	eax, DWORD PTR -148[rbp]
	cdqe
	mov	DWORD PTR -128[rbp+rax*4], edx
	mov	eax, DWORD PTR -148[rbp]
	cdqe
	mov	eax, DWORD PTR -128[rbp+rax*4]
	mov	edx, DWORD PTR -148[rbp]
	lea	ecx, 1[rdx]
	mov	edx, eax
	mov	esi, ecx
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -148[rbp], 1
	cmp	DWORD PTR -148[rbp], 4
	jle	.L2
	mov	eax, DWORD PTR -148[rbp]
	mov	DWORD PTR -136[rbp], eax
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	DWORD PTR -148[rbp], 0
	jmp	.L3
.L7:
	mov	eax, DWORD PTR -148[rbp]
	add	eax, 1
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -148[rbp]
	cdqe
	mov	eax, DWORD PTR -128[rbp+rax*4]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -148[rbp]
	cdqe
	mov	edx, DWORD PTR -128[rbp+rax*4]
	mov	eax, DWORD PTR -152[rbp]
	add	eax, edx
	cmp	DWORD PTR -144[rbp], eax
	cmovle	eax, DWORD PTR -144[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -148[rbp]
	cdqe
	mov	edx, DWORD PTR -128[rbp+rax*4]
	mov	eax, DWORD PTR -152[rbp]
	add	eax, edx
	sub	eax, DWORD PTR -144[rbp]
	mov	DWORD PTR -132[rbp], eax
	cmp	DWORD PTR -132[rbp], 0
	jle	.L4
	mov	eax, DWORD PTR -132[rbp]
	cmp	eax, DWORD PTR -140[rbp]
	jle	.L5
	mov	eax, DWORD PTR -140[rbp]
	mov	DWORD PTR -152[rbp], eax
	mov	eax, DWORD PTR -132[rbp]
	sub	eax, DWORD PTR -140[rbp]
	mov	DWORD PTR -156[rbp], eax
	jmp	.L6
.L5:
	mov	eax, DWORD PTR -132[rbp]
	mov	DWORD PTR -152[rbp], eax
	mov	DWORD PTR -156[rbp], 0
	jmp	.L6
.L4:
	mov	DWORD PTR -156[rbp], 0
	mov	DWORD PTR -152[rbp], 0
.L6:
	mov	edx, DWORD PTR -152[rbp]
	mov	eax, DWORD PTR -156[rbp]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -148[rbp], 1
.L3:
	cmp	DWORD PTR -152[rbp], 0
	jne	.L7
	mov	eax, DWORD PTR -148[rbp]
	cmp	eax, DWORD PTR -136[rbp]
	jl	.L7
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	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	"283802.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012 Bucket size : %d\000"
	.align	2
.LC1:
	.ascii	"\012 Output rate : %d\000"
	.align	2
.LC2:
	.ascii	"\012 Number of packets coming at second %d : %d\000"
	.align	2
.LC3:
	.ascii	"\012\012 Summary:\000"
	.align	2
.LC4:
	.ascii	"\012   Second \011   recieved \011       sent \011 "
	.ascii	"  dropped \011   remaining \000"
	.align	2
.LC5:
	.ascii	"\011%d\011\000"
	.align	2
.LC6:
	.ascii	"\011%d\011\011%d\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 = 152
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #152
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #10
	str	r3, [fp, #-144]
	mov	r3, #0
	str	r3, [fp, #-156]
	mov	r3, #100
	str	r3, [fp, #-140]
	mov	r3, #0
	str	r3, [fp, #-152]
	sub	r3, fp, #128
	mov	r2, #120
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-148]
	ldr	r1, [fp, #-140]
	ldr	r0, .L10+4
	bl	printf
	ldr	r1, [fp, #-144]
	ldr	r0, .L10+8
	bl	printf
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
.L2:
	bl	rand
	mov	r1, r0
	ldr	r3, .L10+12
	smull	r2, r3, r1, r3
	asr	r2, r3, #6
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	sub	r2, r1, r3
	ldr	r3, [fp, #-148]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-124]
	ldr	r3, [fp, #-148]
	add	r1, r3, #1
	ldr	r3, [fp, #-148]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-124]
	mov	r2, r3
	ldr	r0, .L10+16
	bl	printf
	ldr	r3, [fp, #-148]
	add	r3, r3, #1
	str	r3, [fp, #-148]
	ldr	r3, [fp, #-148]
	cmp	r3, #4
	ble	.L2
	ldr	r3, [fp, #-148]
	str	r3, [fp, #-136]
	ldr	r0, .L10+20
	bl	puts
	ldr	r0, .L10+24
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-148]
	b	.L3
.L7:
	ldr	r3, [fp, #-148]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L10+28
	bl	printf
	ldr	r3, [fp, #-148]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-124]
	mov	r1, r3
	ldr	r0, .L10+28
	bl	printf
	ldr	r3, [fp, #-148]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-124]
	ldr	r3, [fp, #-152]
	add	r2, r2, r3
	ldr	r3, [fp, #-144]
	cmp	r2, r3
	movlt	r3, r2
	movge	r3, r3
	mov	r1, r3
	ldr	r0, .L10+28
	bl	printf
	ldr	r3, [fp, #-148]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-124]
	ldr	r3, [fp, #-152]
	add	r2, r2, r3
	ldr	r3, [fp, #-144]
	sub	r3, r2, r3
	str	r3, [fp, #-132]
	ldr	r3, [fp, #-132]
	cmp	r3, #0
	ble	.L4
	ldr	r2, [fp, #-132]
	ldr	r3, [fp, #-140]
	cmp	r2, r3
	ble	.L5
	ldr	r3, [fp, #-140]
	str	r3, [fp, #-152]
	ldr	r2, [fp, #-132]
	ldr	r3, [fp, #-140]
	sub	r3, r2, r3
	str	r3, [fp, #-156]
	b	.L6
.L5:
	ldr	r3, [fp, #-132]
	str	r3, [fp, #-152]
	mov	r3, #0
	str	r3, [fp, #-156]
	b	.L6
.L4:
	mov	r3, #0
	str	r3, [fp, #-156]
	mov	r3, #0
	str	r3, [fp, #-152]
.L6:
	ldr	r2, [fp, #-152]
	ldr	r1, [fp, #-156]
	ldr	r0, .L10+32
	bl	printf
	ldr	r3, [fp, #-148]
	add	r3, r3, #1
	str	r3, [fp, #-148]
.L3:
	ldr	r3, [fp, #-152]
	cmp	r3, #0
	bne	.L7
	ldr	r2, [fp, #-148]
	ldr	r3, [fp, #-136]
	cmp	r2, r3
	blt	.L7
	mov	r3, #0
	ldr	r2, .L10
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L9
	bl	__stack_chk_fail
.L9:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC7
	.word	.LC0
	.word	.LC1
	.word	1374389535
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
