	.file	"154847.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"\nEnter the Total Number of Blocks:\t"
.LC1:
	.string	"%d"
	.align 8
.LC2:
	.string	"Enter the Total Number of Files:\t"
	.align 8
.LC3:
	.string	"\nEnter the Size of the Blocks:"
.LC4:
	.string	"Block No.[%d]:\t"
.LC5:
	.string	"Enter the Size of the Files:"
.LC6:
	.string	"File No.[%d]:\t"
	.align 8
.LC7:
	.string	"\nFile Number\tFile Size\tBlock Number\tBlock Size\tFragment"
.LC8:
	.string	"\n%d\t\t%d\t\t%d\t\t%d\t\t%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 176
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -152[rbp], 0
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -168[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, -164[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	DWORD PTR -160[rbp], 0
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -160[rbp]
	add	eax, 1
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdx, -96[rbp]
	mov	eax, DWORD PTR -160[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 -160[rbp], 1
.L2:
	mov	eax, DWORD PTR -168[rbp]
	cmp	DWORD PTR -160[rbp], eax
	jl	.L3
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	DWORD PTR -160[rbp], 0
	jmp	.L4
.L5:
	mov	eax, DWORD PTR -160[rbp]
	add	eax, 1
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdx, -48[rbp]
	mov	eax, DWORD PTR -160[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 -160[rbp], 1
.L4:
	mov	eax, DWORD PTR -164[rbp]
	cmp	DWORD PTR -160[rbp], eax
	jl	.L5
	mov	DWORD PTR -160[rbp], 0
	jmp	.L6
.L10:
	mov	DWORD PTR -156[rbp], 0
	jmp	.L7
.L9:
	mov	eax, DWORD PTR -156[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, block_arr.1[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, 1
	je	.L8
	mov	eax, DWORD PTR -156[rbp]
	cdqe
	mov	edx, DWORD PTR -96[rbp+rax*4]
	mov	eax, DWORD PTR -160[rbp]
	cdqe
	mov	ecx, DWORD PTR -48[rbp+rax*4]
	mov	eax, edx
	sub	eax, ecx
	mov	DWORD PTR -148[rbp], eax
	cmp	DWORD PTR -148[rbp], 0
	js	.L8
	mov	eax, DWORD PTR -152[rbp]
	cmp	eax, DWORD PTR -148[rbp]
	jge	.L8
	mov	eax, DWORD PTR -160[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rdx, file_arr.0[rip]
	mov	eax, DWORD PTR -156[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	mov	eax, DWORD PTR -148[rbp]
	mov	DWORD PTR -152[rbp], eax
.L8:
	mov	eax, DWORD PTR -160[rbp]
	cdqe
	mov	edx, DWORD PTR -152[rbp]
	mov	DWORD PTR -144[rbp+rax*4], edx
	mov	eax, DWORD PTR -160[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, file_arr.0[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, block_arr.1[rip]
	mov	DWORD PTR [rdx+rax], 1
	mov	DWORD PTR -152[rbp], 0
	add	DWORD PTR -156[rbp], 1
.L7:
	mov	eax, DWORD PTR -168[rbp]
	cmp	DWORD PTR -156[rbp], eax
	jl	.L9
	add	DWORD PTR -160[rbp], 1
.L6:
	mov	eax, DWORD PTR -164[rbp]
	cmp	DWORD PTR -160[rbp], eax
	jl	.L10
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -160[rbp], 0
	jmp	.L11
.L12:
	mov	eax, DWORD PTR -160[rbp]
	cdqe
	mov	edi, DWORD PTR -144[rbp+rax*4]
	mov	eax, DWORD PTR -160[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, file_arr.0[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	mov	esi, DWORD PTR -96[rbp+rax*4]
	mov	eax, DWORD PTR -160[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, file_arr.0[rip]
	mov	ecx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -160[rbp]
	cdqe
	mov	edx, DWORD PTR -48[rbp+rax*4]
	mov	eax, DWORD PTR -160[rbp]
	mov	r9d, edi
	mov	r8d, esi
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -160[rbp], 1
.L11:
	mov	eax, DWORD PTR -164[rbp]
	cmp	DWORD PTR -160[rbp], eax
	jl	.L12
	mov	edi, 10
	call	putchar@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.local	block_arr.1
	.comm	block_arr.1,40,32
	.local	file_arr.0
	.comm	file_arr.0,40,32
	.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	"154847.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012Enter the Total Number of Blocks:\011\000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.align	2
.LC2:
	.ascii	"Enter the Total Number of Files:\011\000"
	.align	2
.LC3:
	.ascii	"\012Enter the Size of the Blocks:\000"
	.align	2
.LC4:
	.ascii	"Block No.[%d]:\011\000"
	.align	2
.LC5:
	.ascii	"Enter the Size of the Files:\000"
	.align	2
.LC6:
	.ascii	"File No.[%d]:\011\000"
	.align	2
.LC7:
	.ascii	"\012File Number\011File Size\011Block Number\011Blo"
	.ascii	"ck Size\011Fragment\000"
	.align	2
.LC8:
	.ascii	"\012%d\011\011%d\011\011%d\011\011%d\011\011%d\000"
	.align	2
.LC9:
	.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, #160
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-136]
	ldr	r0, .L15+4
	bl	printf
	sub	r3, fp, #152
	mov	r1, r3
	ldr	r0, .L15+8
	bl	__isoc99_scanf
	ldr	r0, .L15+12
	bl	printf
	sub	r3, fp, #148
	mov	r1, r3
	ldr	r0, .L15+8
	bl	__isoc99_scanf
	ldr	r0, .L15+16
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-144]
	b	.L2
.L3:
	ldr	r3, [fp, #-144]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L15+20
	bl	printf
	sub	r2, fp, #88
	ldr	r3, [fp, #-144]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L15+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-144]
	add	r3, r3, #1
	str	r3, [fp, #-144]
.L2:
	ldr	r3, [fp, #-152]
	ldr	r2, [fp, #-144]
	cmp	r2, r3
	blt	.L3
	ldr	r0, .L15+24
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-144]
	b	.L4
.L5:
	ldr	r3, [fp, #-144]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L15+28
	bl	printf
	sub	r2, fp, #48
	ldr	r3, [fp, #-144]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L15+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-144]
	add	r3, r3, #1
	str	r3, [fp, #-144]
.L4:
	ldr	r3, [fp, #-148]
	ldr	r2, [fp, #-144]
	cmp	r2, r3
	blt	.L5
	mov	r3, #0
	str	r3, [fp, #-144]
	b	.L6
.L10:
	mov	r3, #0
	str	r3, [fp, #-140]
	b	.L7
.L9:
	ldr	r2, .L15+32
	ldr	r3, [fp, #-140]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #1
	beq	.L8
	ldr	r3, [fp, #-140]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-84]
	ldr	r3, [fp, #-144]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r3, [r3, #-44]
	sub	r3, r2, r3
	str	r3, [fp, #-132]
	ldr	r3, [fp, #-132]
	cmp	r3, #0
	blt	.L8
	ldr	r2, [fp, #-136]
	ldr	r3, [fp, #-132]
	cmp	r2, r3
	bge	.L8
	ldr	r1, .L15+36
	ldr	r3, [fp, #-144]
	ldr	r2, [fp, #-140]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-132]
	str	r3, [fp, #-136]
.L8:
	ldr	r3, [fp, #-144]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [fp, #-136]
	str	r2, [r3, #-124]
	ldr	r2, .L15+36
	ldr	r3, [fp, #-144]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, .L15+32
	mov	r1, #1
	str	r1, [r2, r3, lsl #2]
	mov	r3, #0
	str	r3, [fp, #-136]
	ldr	r3, [fp, #-140]
	add	r3, r3, #1
	str	r3, [fp, #-140]
.L7:
	ldr	r3, [fp, #-152]
	ldr	r2, [fp, #-140]
	cmp	r2, r3
	blt	.L9
	ldr	r3, [fp, #-144]
	add	r3, r3, #1
	str	r3, [fp, #-144]
.L6:
	ldr	r3, [fp, #-148]
	ldr	r2, [fp, #-144]
	cmp	r2, r3
	blt	.L10
	ldr	r0, .L15+40
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-144]
	b	.L11
.L12:
	ldr	r3, [fp, #-144]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r1, [r3, #-44]
	ldr	r2, .L15+36
	ldr	r3, [fp, #-144]
	ldr	r0, [r2, r3, lsl #2]
	ldr	r2, .L15+36
	ldr	r3, [fp, #-144]
	ldr	r3, [r2, r3, lsl #2]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-84]
	ldr	r3, [fp, #-144]
	lsl	r3, r3, #2
	sub	ip, fp, #4
	add	r3, ip, r3
	ldr	r3, [r3, #-124]
	str	r3, [sp, #4]
	str	r2, [sp]
	mov	r3, r0
	mov	r2, r1
	ldr	r1, [fp, #-144]
	ldr	r0, .L15+44
	bl	printf
	ldr	r3, [fp, #-144]
	add	r3, r3, #1
	str	r3, [fp, #-144]
.L11:
	ldr	r3, [fp, #-148]
	ldr	r2, [fp, #-144]
	cmp	r2, r3
	blt	.L12
	mov	r0, #10
	bl	putchar
	mov	r3, #0
	ldr	r2, .L15
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L14
	bl	__stack_chk_fail
.L14:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC9
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	block_arr.4609
	.word	file_arr.4610
	.word	.LC7
	.word	.LC8
	.size	main, .-main
	.local	block_arr.4609
	.comm	block_arr.4609,40,4
	.local	file_arr.4610
	.comm	file_arr.4610,40,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
