	.file	"76701371.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"\n enter bucket size : "
.LC1:
	.string	"%d"
.LC2:
	.string	"\n enter output rate : "
	.align 8
.LC3:
	.string	" \n enter number of packets coming at time %d second :  "
.LC4:
	.string	"Bucket overflow"
.LC5:
	.string	"packet discarded "
	.align 8
.LC6:
	.string	"\n enter 1 to continue or 0 to quit : "
	.align 8
.LC7:
	.string	"\nSecond\tRecieved\tSent\tDropped\tRemainder"
.LC8:
	.string	" %d"
.LC9:
	.string	"\t%d\t "
.LC10:
	.string	"\t%d"
.LC11:
	.string	"\t%d\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, 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -68[rbp], 0
	mov	DWORD PTR -64[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	QWORD PTR -16[rbp], 0
	mov	DWORD PTR -60[rbp], 0
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -76[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -80[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
.L3:
	mov	eax, DWORD PTR -60[rbp]
	add	eax, 1
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdx, -48[rbp]
	mov	eax, DWORD PTR -60[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -60[rbp]
	cdqe
	mov	edx, DWORD PTR -48[rbp+rax*4]
	mov	eax, DWORD PTR -76[rbp]
	cmp	edx, eax
	jle	.L2
	lea	rdi, .LC4[rip]
	call	puts@PLT
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
.L2:
	add	DWORD PTR -60[rbp], 1
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -72[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -72[rbp]
	test	eax, eax
	jne	.L3
	mov	eax, DWORD PTR -60[rbp]
	mov	DWORD PTR -56[rbp], eax
	lea	rdi, .LC7[rip]
	call	puts@PLT
	mov	DWORD PTR -60[rbp], 0
	jmp	.L4
.L8:
	mov	eax, DWORD PTR -60[rbp]
	add	eax, 1
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -60[rbp]
	cdqe
	mov	eax, DWORD PTR -48[rbp+rax*4]
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -60[rbp]
	cdqe
	mov	edx, DWORD PTR -48[rbp+rax*4]
	mov	eax, DWORD PTR -64[rbp]
	add	edx, eax
	mov	eax, DWORD PTR -80[rbp]
	cmp	edx, eax
	cmovle	eax, edx
	mov	esi, eax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -60[rbp]
	cdqe
	mov	edx, DWORD PTR -48[rbp+rax*4]
	mov	eax, DWORD PTR -64[rbp]
	add	eax, edx
	mov	edx, DWORD PTR -80[rbp]
	sub	eax, edx
	mov	DWORD PTR -52[rbp], eax
	cmp	DWORD PTR -52[rbp], 0
	jle	.L5
	mov	eax, DWORD PTR -76[rbp]
	cmp	DWORD PTR -52[rbp], eax
	jle	.L6
	mov	eax, DWORD PTR -76[rbp]
	mov	DWORD PTR -64[rbp], eax
	mov	edx, DWORD PTR -76[rbp]
	mov	eax, DWORD PTR -52[rbp]
	sub	eax, edx
	mov	DWORD PTR -68[rbp], eax
	jmp	.L7
.L6:
	mov	eax, DWORD PTR -52[rbp]
	mov	DWORD PTR -64[rbp], eax
	mov	DWORD PTR -68[rbp], 0
	jmp	.L7
.L5:
	mov	DWORD PTR -68[rbp], 0
	mov	DWORD PTR -64[rbp], 0
.L7:
	mov	edx, DWORD PTR -64[rbp]
	mov	eax, DWORD PTR -68[rbp]
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -60[rbp], 1
.L4:
	cmp	DWORD PTR -64[rbp], 0
	jne	.L8
	mov	eax, DWORD PTR -60[rbp]
	cmp	eax, DWORD PTR -56[rbp]
	jl	.L8
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	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	"76701371.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012 enter bucket size : \000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.align	2
.LC2:
	.ascii	"\012 enter output rate : \000"
	.align	2
.LC3:
	.ascii	" \012 enter number of packets coming at time %d sec"
	.ascii	"ond :  \000"
	.align	2
.LC4:
	.ascii	"Bucket overflow\000"
	.align	2
.LC5:
	.ascii	"packet discarded \000"
	.align	2
.LC6:
	.ascii	"\012 enter 1 to continue or 0 to quit : \000"
	.align	2
.LC7:
	.ascii	"\012Second\011Recieved\011Sent\011Dropped\011Remain"
	.ascii	"der\000"
	.align	2
.LC8:
	.ascii	" %d\000"
	.align	2
.LC9:
	.ascii	"\011%d\011 \000"
	.align	2
.LC10:
	.ascii	"\011%d\000"
	.align	2
.LC11:
	.ascii	"\011%d\011%d\012\000"
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 80
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #80
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-68]
	mov	r3, #0
	str	r3, [fp, #-64]
	sub	r3, fp, #48
	mov	r2, #40
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-60]
	ldr	r0, .L11+4
	bl	printf
	sub	r3, fp, #76
	mov	r1, r3
	ldr	r0, .L11+8
	bl	__isoc99_scanf
	ldr	r0, .L11+12
	bl	printf
	sub	r3, fp, #80
	mov	r1, r3
	ldr	r0, .L11+8
	bl	__isoc99_scanf
.L3:
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L11+16
	bl	printf
	sub	r2, fp, #48
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L11+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-44]
	ldr	r3, [fp, #-76]
	cmp	r2, r3
	ble	.L2
	ldr	r0, .L11+20
	bl	puts
	ldr	r0, .L11+24
	bl	puts
	mov	r0, #0
	bl	exit
.L2:
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
	ldr	r0, .L11+28
	bl	printf
	sub	r3, fp, #72
	mov	r1, r3
	ldr	r0, .L11+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-72]
	cmp	r3, #0
	bne	.L3
	ldr	r3, [fp, #-60]
	str	r3, [fp, #-56]
	ldr	r0, .L11+32
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-60]
	b	.L4
.L8:
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L11+36
	bl	printf
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-44]
	mov	r1, r3
	ldr	r0, .L11+40
	bl	printf
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-44]
	ldr	r3, [fp, #-64]
	add	r2, r2, r3
	ldr	r3, [fp, #-80]
	cmp	r2, r3
	movlt	r3, r2
	movge	r3, r3
	mov	r1, r3
	ldr	r0, .L11+44
	bl	printf
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-44]
	ldr	r3, [fp, #-64]
	add	r2, r2, r3
	ldr	r3, [fp, #-80]
	sub	r3, r2, r3
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	ble	.L5
	ldr	r3, [fp, #-76]
	ldr	r2, [fp, #-52]
	cmp	r2, r3
	ble	.L6
	ldr	r3, [fp, #-76]
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-76]
	ldr	r2, [fp, #-52]
	sub	r3, r2, r3
	str	r3, [fp, #-68]
	b	.L7
.L6:
	ldr	r3, [fp, #-52]
	str	r3, [fp, #-64]
	mov	r3, #0
	str	r3, [fp, #-68]
	b	.L7
.L5:
	mov	r3, #0
	str	r3, [fp, #-68]
	mov	r3, #0
	str	r3, [fp, #-64]
.L7:
	ldr	r2, [fp, #-64]
	ldr	r1, [fp, #-68]
	ldr	r0, .L11+48
	bl	printf
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L4:
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	bne	.L8
	ldr	r2, [fp, #-60]
	ldr	r3, [fp, #-56]
	cmp	r2, r3
	blt	.L8
	mov	r3, #0
	ldr	r2, .L11
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC12
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
