	.file	"718284.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Enter the no. of blocks:"
.LC1:
	.string	"%d"
.LC2:
	.string	"Enter the no. of processes:"
.LC3:
	.string	"Process %d Not Allocated\n"
.LC4:
	.string	"%d -> %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, 368
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -344[rbp], 99999
	mov	QWORD PTR -176[rbp], 0
	mov	QWORD PTR -168[rbp], 0
	mov	QWORD PTR -160[rbp], 0
	mov	QWORD PTR -152[rbp], 0
	mov	QWORD PTR -144[rbp], 0
	mov	QWORD PTR -136[rbp], 0
	mov	QWORD PTR -128[rbp], 0
	mov	QWORD PTR -120[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
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rax, -356[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC2[rip]
	call	puts@PLT
	lea	rax, -360[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -352[rbp], 1
	jmp	.L2
.L3:
	lea	rdx, -256[rbp]
	mov	eax, DWORD PTR -352[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	DWORD PTR -352[rbp], 1
.L2:
	mov	eax, DWORD PTR -356[rbp]
	cmp	DWORD PTR -352[rbp], eax
	jle	.L3
	mov	DWORD PTR -352[rbp], 1
	jmp	.L4
.L5:
	lea	rdx, -336[rbp]
	mov	eax, DWORD PTR -352[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	DWORD PTR -352[rbp], 1
.L4:
	mov	eax, DWORD PTR -360[rbp]
	cmp	DWORD PTR -352[rbp], eax
	jle	.L5
	mov	DWORD PTR -352[rbp], 1
	jmp	.L6
.L10:
	mov	DWORD PTR -348[rbp], 1
	jmp	.L7
.L9:
	mov	eax, DWORD PTR -348[rbp]
	cdqe
	mov	eax, DWORD PTR -176[rbp+rax*4]
	test	eax, eax
	jne	.L8
	mov	eax, DWORD PTR -348[rbp]
	cdqe
	mov	edx, DWORD PTR -256[rbp+rax*4]
	mov	eax, DWORD PTR -352[rbp]
	cdqe
	mov	ecx, DWORD PTR -336[rbp+rax*4]
	mov	eax, edx
	sub	eax, ecx
	mov	DWORD PTR -340[rbp], eax
	cmp	DWORD PTR -340[rbp], 0
	js	.L8
	mov	eax, DWORD PTR -344[rbp]
	cmp	eax, DWORD PTR -340[rbp]
	jl	.L8
	mov	eax, DWORD PTR -340[rbp]
	mov	DWORD PTR -344[rbp], eax
	mov	eax, DWORD PTR -352[rbp]
	cdqe
	mov	edx, DWORD PTR -348[rbp]
	mov	DWORD PTR -96[rbp+rax*4], edx
.L8:
	add	DWORD PTR -348[rbp], 1
.L7:
	mov	eax, DWORD PTR -356[rbp]
	cmp	DWORD PTR -348[rbp], eax
	jle	.L9
	mov	DWORD PTR -344[rbp], 99999
	mov	eax, DWORD PTR -352[rbp]
	cdqe
	mov	eax, DWORD PTR -96[rbp+rax*4]
	cdqe
	mov	DWORD PTR -176[rbp+rax*4], 1
	add	DWORD PTR -352[rbp], 1
.L6:
	mov	eax, DWORD PTR -360[rbp]
	cmp	DWORD PTR -352[rbp], eax
	jle	.L10
	mov	DWORD PTR -352[rbp], 1
	jmp	.L11
.L13:
	mov	eax, DWORD PTR -352[rbp]
	cdqe
	mov	eax, DWORD PTR -96[rbp+rax*4]
	test	eax, eax
	jne	.L12
	mov	eax, DWORD PTR -352[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
.L12:
	add	DWORD PTR -352[rbp], 1
.L11:
	mov	eax, DWORD PTR -360[rbp]
	cmp	DWORD PTR -352[rbp], eax
	jle	.L13
	mov	DWORD PTR -352[rbp], 1
	jmp	.L14
.L16:
	mov	eax, DWORD PTR -352[rbp]
	cdqe
	mov	eax, DWORD PTR -96[rbp+rax*4]
	test	eax, eax
	je	.L15
	mov	eax, DWORD PTR -352[rbp]
	cdqe
	mov	eax, DWORD PTR -96[rbp+rax*4]
	cdqe
	mov	edx, DWORD PTR -256[rbp+rax*4]
	mov	eax, DWORD PTR -352[rbp]
	cdqe
	mov	eax, DWORD PTR -336[rbp+rax*4]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
.L15:
	add	DWORD PTR -352[rbp], 1
.L14:
	mov	eax, DWORD PTR -360[rbp]
	cmp	DWORD PTR -352[rbp], eax
	jle	.L16
	mov	edi, 10
	call	putchar@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	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	"718284.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Enter the no. of blocks:\000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.align	2
.LC2:
	.ascii	"Enter the no. of processes:\000"
	.align	2
.LC3:
	.ascii	"Process %d Not Allocated\012\000"
	.align	2
.LC4:
	.ascii	"%d -> %d\012\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 352
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #352
	ldr	r3, .L19
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L19+4
	str	r3, [fp, #-336]
	sub	r3, fp, #168
	mov	r2, #80
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #88
	mov	r2, #80
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r0, .L19+8
	bl	puts
	sub	r3, fp, #348
	mov	r1, r3
	ldr	r0, .L19+12
	bl	__isoc99_scanf
	ldr	r0, .L19+16
	bl	puts
	sub	r3, fp, #352
	mov	r1, r3
	ldr	r0, .L19+12
	bl	__isoc99_scanf
	mov	r3, #1
	str	r3, [fp, #-344]
	b	.L2
.L3:
	sub	r2, fp, #248
	ldr	r3, [fp, #-344]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L19+12
	bl	__isoc99_scanf
	ldr	r3, [fp, #-344]
	add	r3, r3, #1
	str	r3, [fp, #-344]
.L2:
	ldr	r3, [fp, #-348]
	ldr	r2, [fp, #-344]
	cmp	r2, r3
	ble	.L3
	mov	r3, #1
	str	r3, [fp, #-344]
	b	.L4
.L5:
	sub	r2, fp, #328
	ldr	r3, [fp, #-344]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L19+12
	bl	__isoc99_scanf
	ldr	r3, [fp, #-344]
	add	r3, r3, #1
	str	r3, [fp, #-344]
.L4:
	ldr	r3, [fp, #-352]
	ldr	r2, [fp, #-344]
	cmp	r2, r3
	ble	.L5
	mov	r3, #1
	str	r3, [fp, #-344]
	b	.L6
.L10:
	mov	r3, #1
	str	r3, [fp, #-340]
	b	.L7
.L9:
	ldr	r3, [fp, #-340]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-164]
	cmp	r3, #0
	bne	.L8
	ldr	r3, [fp, #-340]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-244]
	ldr	r3, [fp, #-344]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r3, [r3, #-324]
	sub	r3, r2, r3
	str	r3, [fp, #-332]
	ldr	r3, [fp, #-332]
	cmp	r3, #0
	blt	.L8
	ldr	r2, [fp, #-336]
	ldr	r3, [fp, #-332]
	cmp	r2, r3
	blt	.L8
	ldr	r3, [fp, #-332]
	str	r3, [fp, #-336]
	ldr	r3, [fp, #-344]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [fp, #-340]
	str	r2, [r3, #-84]
.L8:
	ldr	r3, [fp, #-340]
	add	r3, r3, #1
	str	r3, [fp, #-340]
.L7:
	ldr	r3, [fp, #-348]
	ldr	r2, [fp, #-340]
	cmp	r2, r3
	ble	.L9
	ldr	r3, .L19+4
	str	r3, [fp, #-336]
	ldr	r3, [fp, #-344]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-84]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #1
	str	r2, [r3, #-164]
	ldr	r3, [fp, #-344]
	add	r3, r3, #1
	str	r3, [fp, #-344]
.L6:
	ldr	r3, [fp, #-352]
	ldr	r2, [fp, #-344]
	cmp	r2, r3
	ble	.L10
	mov	r3, #1
	str	r3, [fp, #-344]
	b	.L11
.L13:
	ldr	r3, [fp, #-344]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-84]
	cmp	r3, #0
	bne	.L12
	ldr	r1, [fp, #-344]
	ldr	r0, .L19+20
	bl	printf
.L12:
	ldr	r3, [fp, #-344]
	add	r3, r3, #1
	str	r3, [fp, #-344]
.L11:
	ldr	r3, [fp, #-352]
	ldr	r2, [fp, #-344]
	cmp	r2, r3
	ble	.L13
	mov	r3, #1
	str	r3, [fp, #-344]
	b	.L14
.L16:
	ldr	r3, [fp, #-344]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-84]
	cmp	r3, #0
	beq	.L15
	ldr	r3, [fp, #-344]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r1, [r3, #-324]
	ldr	r3, [fp, #-344]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-84]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-244]
	mov	r2, r3
	ldr	r0, .L19+24
	bl	printf
.L15:
	ldr	r3, [fp, #-344]
	add	r3, r3, #1
	str	r3, [fp, #-344]
.L14:
	ldr	r3, [fp, #-352]
	ldr	r2, [fp, #-344]
	cmp	r2, r3
	ble	.L16
	mov	r0, #10
	bl	putchar
	mov	r3, #0
	ldr	r2, .L19
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L18
	bl	__stack_chk_fail
.L18:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC5
	.word	99999
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
