	.file	"948702.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"\nPAGE\tFRAMES\tFAULTS"
.LC1:
	.string	"\n%c\t"
.LC2:
	.string	"%c "
.LC3:
	.string	"\tPage fault %d"
.LC4:
	.string	"\tNo page fault"
	.text
	.globl	FIFO
	.type	FIFO, @function
FIFO:
.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, 64
	mov	QWORD PTR -56[rbp], rdi
	mov	DWORD PTR -60[rbp], esi
	mov	DWORD PTR -64[rbp], edx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -40[rbp], 0
	mov	DWORD PTR -36[rbp], 0
	mov	DWORD PTR -32[rbp], 0
	mov	DWORD PTR -28[rbp], 0
	mov	DWORD PTR -24[rbp], 0
	mov	DWORD PTR -40[rbp], 0
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	mov	BYTE PTR -18[rbp+rax], -1
	add	DWORD PTR -40[rbp], 1
.L2:
	mov	eax, DWORD PTR -40[rbp]
	cmp	eax, DWORD PTR -64[rbp]
	jl	.L3
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -40[rbp], 0
	jmp	.L4
.L15:
	mov	eax, DWORD PTR -40[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -32[rbp], 0
	jmp	.L5
.L7:
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	movzx	edx, BYTE PTR -18[rbp+rax]
	mov	eax, DWORD PTR -40[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	cmp	dl, al
	jne	.L6
	mov	DWORD PTR -28[rbp], 1
.L6:
	add	DWORD PTR -32[rbp], 1
.L5:
	mov	eax, DWORD PTR -32[rbp]
	cmp	eax, DWORD PTR -64[rbp]
	jl	.L7
	cmp	DWORD PTR -28[rbp], 0
	jne	.L8
	mov	eax, DWORD PTR -40[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	mov	BYTE PTR -18[rbp+rax], dl
	add	DWORD PTR -36[rbp], 1
	mov	DWORD PTR -32[rbp], 0
	jmp	.L9
.L10:
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	movzx	eax, BYTE PTR -18[rbp+rax]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -32[rbp], 1
.L9:
	mov	eax, DWORD PTR -32[rbp]
	cmp	eax, DWORD PTR -64[rbp]
	jl	.L10
	mov	eax, DWORD PTR -24[rbp]
	add	eax, 1
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -24[rbp], 1
	jmp	.L11
.L8:
	mov	DWORD PTR -28[rbp], 0
	mov	DWORD PTR -32[rbp], 0
	jmp	.L12
.L13:
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	movzx	eax, BYTE PTR -18[rbp+rax]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -32[rbp], 1
.L12:
	mov	eax, DWORD PTR -32[rbp]
	cmp	eax, DWORD PTR -64[rbp]
	jl	.L13
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
.L11:
	mov	eax, DWORD PTR -36[rbp]
	cmp	eax, DWORD PTR -64[rbp]
	jne	.L14
	mov	DWORD PTR -36[rbp], 0
.L14:
	add	DWORD PTR -40[rbp], 1
.L4:
	mov	eax, DWORD PTR -40[rbp]
	cmp	eax, DWORD PTR -60[rbp]
	jl	.L15
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	FIFO, .-FIFO
	.globl	LRU
	.type	LRU, @function
LRU:
.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, 64
	mov	QWORD PTR -56[rbp], rdi
	mov	DWORD PTR -60[rbp], esi
	mov	DWORD PTR -64[rbp], edx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -48[rbp], 0
	mov	DWORD PTR -44[rbp], 0
	mov	DWORD PTR -40[rbp], 0
	mov	DWORD PTR -36[rbp], 0
	mov	DWORD PTR -32[rbp], 0
	mov	DWORD PTR -28[rbp], 0
	mov	DWORD PTR -24[rbp], 0
	mov	DWORD PTR -48[rbp], 0
	jmp	.L18
.L19:
	mov	eax, DWORD PTR -48[rbp]
	cdqe
	mov	BYTE PTR -18[rbp+rax], -1
	add	DWORD PTR -48[rbp], 1
.L18:
	mov	eax, DWORD PTR -48[rbp]
	cmp	eax, DWORD PTR -64[rbp]
	jl	.L19
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -48[rbp], 0
	jmp	.L20
.L37:
	mov	eax, DWORD PTR -48[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -40[rbp], 0
	jmp	.L21
.L24:
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	movzx	edx, BYTE PTR -18[rbp+rax]
	mov	eax, DWORD PTR -48[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	cmp	dl, al
	jne	.L22
	mov	DWORD PTR -32[rbp], 1
	jmp	.L23
.L22:
	add	DWORD PTR -40[rbp], 1
.L21:
	mov	eax, DWORD PTR -40[rbp]
	cmp	eax, DWORD PTR -64[rbp]
	jl	.L24
.L23:
	mov	eax, DWORD PTR -44[rbp]
	cmp	eax, DWORD PTR -64[rbp]
	je	.L25
	cmp	DWORD PTR -32[rbp], 0
	jne	.L25
	mov	eax, DWORD PTR -48[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	mov	BYTE PTR -18[rbp+rax], dl
	add	DWORD PTR -44[rbp], 1
	mov	eax, DWORD PTR -44[rbp]
	cmp	eax, DWORD PTR -64[rbp]
	je	.L27
	add	DWORD PTR -24[rbp], 1
	jmp	.L27
.L25:
	cmp	DWORD PTR -32[rbp], 0
	jne	.L28
	mov	DWORD PTR -40[rbp], 0
	jmp	.L29
.L30:
	mov	eax, DWORD PTR -40[rbp]
	add	eax, 1
	cdqe
	movzx	edx, BYTE PTR -18[rbp+rax]
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	mov	BYTE PTR -18[rbp+rax], dl
	add	DWORD PTR -40[rbp], 1
.L29:
	mov	eax, DWORD PTR -40[rbp]
	cmp	eax, DWORD PTR -24[rbp]
	jl	.L30
	mov	eax, DWORD PTR -48[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	mov	BYTE PTR -18[rbp+rax], dl
.L28:
	cmp	DWORD PTR -32[rbp], 1
	jne	.L27
	mov	eax, DWORD PTR -40[rbp]
	mov	DWORD PTR -36[rbp], eax
	jmp	.L31
.L32:
	mov	eax, DWORD PTR -36[rbp]
	add	eax, 1
	cdqe
	movzx	edx, BYTE PTR -18[rbp+rax]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	mov	BYTE PTR -18[rbp+rax], dl
	add	DWORD PTR -36[rbp], 1
.L31:
	mov	eax, DWORD PTR -36[rbp]
	cmp	eax, DWORD PTR -24[rbp]
	jl	.L32
	mov	eax, DWORD PTR -48[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	mov	BYTE PTR -18[rbp+rax], dl
.L27:
	mov	DWORD PTR -40[rbp], 0
	jmp	.L33
.L34:
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	movzx	eax, BYTE PTR -18[rbp+rax]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -40[rbp], 1
.L33:
	mov	eax, DWORD PTR -40[rbp]
	cmp	eax, DWORD PTR -64[rbp]
	jl	.L34
	cmp	DWORD PTR -32[rbp], 0
	jne	.L35
	mov	eax, DWORD PTR -28[rbp]
	add	eax, 1
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -28[rbp], 1
	jmp	.L36
.L35:
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
.L36:
	mov	DWORD PTR -32[rbp], 0
	add	DWORD PTR -48[rbp], 1
.L20:
	mov	eax, DWORD PTR -48[rbp]
	cmp	eax, DWORD PTR -60[rbp]
	jl	.L37
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L38
	call	__stack_chk_fail@PLT
.L38:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	LRU, .-LRU
	.section	.rodata
	.align 8
.LC5:
	.string	"Enter the no of empty frames: "
.LC6:
	.string	"%d"
	.align 8
.LC7:
	.string	"Enter the length of the string: "
.LC8:
	.string	"Enter the string: "
.LC9:
	.string	"%s"
.LC10:
	.string	"\n**** MENU ****"
.LC11:
	.string	"1: FIFO\n2: LRU"
.LC12:
	.string	"Enter your choice: "
	.align 8
.LC13:
	.string	"\n\nEnter 1 to continue, 0 to finish: "
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -60[rbp], 1
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -52[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -56[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
.L44:
	lea	rdi, .LC10[rip]
	call	puts@PLT
	lea	rdi, .LC11[rip]
	call	puts@PLT
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -64[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -64[rbp]
	cmp	eax, 1
	je	.L40
	cmp	eax, 2
	je	.L41
	jmp	.L47
.L40:
	mov	edx, DWORD PTR -52[rbp]
	mov	ecx, DWORD PTR -56[rbp]
	lea	rax, -48[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	FIFO
	jmp	.L43
.L41:
	mov	edx, DWORD PTR -52[rbp]
	mov	ecx, DWORD PTR -56[rbp]
	lea	rax, -48[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	LRU
	jmp	.L43
.L47:
	mov	edi, 0
	call	exit@PLT
.L43:
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -60[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -60[rbp]
	cmp	eax, 1
	je	.L44
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L46
	call	__stack_chk_fail@PLT
.L46:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	"948702.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012PAGE\011FRAMES\011FAULTS\000"
	.align	2
.LC1:
	.ascii	"\012%c\011\000"
	.align	2
.LC2:
	.ascii	"%c \000"
	.align	2
.LC3:
	.ascii	"\011Page fault %d\000"
	.align	2
.LC4:
	.ascii	"\011No page fault\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	FIFO
	.syntax unified
	.arm
	.fpu softvfp
	.type	FIFO, %function
FIFO:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	str	r2, [fp, #-56]
	ldr	r3, .L17
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L2
.L3:
	sub	r2, fp, #20
	ldr	r3, [fp, #-40]
	add	r3, r2, r3
	mvn	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L2:
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-56]
	cmp	r2, r3
	blt	.L3
	ldr	r0, .L17+4
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L4
.L15:
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L17+8
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L5
.L7:
	sub	r2, fp, #20
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-40]
	ldr	r1, [fp, #-48]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L6
	mov	r3, #1
	str	r3, [fp, #-28]
.L6:
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L5:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-56]
	cmp	r2, r3
	blt	.L7
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L8
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldrb	r1, [r3]	@ zero_extendqisi2
	sub	r2, fp, #20
	ldr	r3, [fp, #-36]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L9
.L10:
	sub	r2, fp, #20
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L17+12
	bl	printf
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L9:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-56]
	cmp	r2, r3
	blt	.L10
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L17+16
	bl	printf
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
	b	.L11
.L8:
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L12
.L13:
	sub	r2, fp, #20
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L17+12
	bl	printf
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L12:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-56]
	cmp	r2, r3
	blt	.L13
	ldr	r0, .L17+20
	bl	printf
.L11:
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-56]
	cmp	r2, r3
	bne	.L14
	mov	r3, #0
	str	r3, [fp, #-36]
.L14:
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L4:
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-52]
	cmp	r2, r3
	blt	.L15
	nop
	ldr	r3, .L17
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L16
	bl	__stack_chk_fail
.L16:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC5
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	FIFO, .-FIFO
	.section	.rodata
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	LRU
	.syntax unified
	.arm
	.fpu softvfp
	.type	LRU, %function
LRU:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #64
	str	r0, [fp, #-56]
	str	r1, [fp, #-60]
	str	r2, [fp, #-64]
	ldr	r3, .L41
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-48]
	mov	r3, #0
	str	r3, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L20
.L21:
	sub	r2, fp, #20
	ldr	r3, [fp, #-48]
	add	r3, r2, r3
	mvn	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L20:
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-64]
	cmp	r2, r3
	blt	.L21
	ldr	r0, .L41+4
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L22
.L39:
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-56]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L41+8
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L23
.L26:
	sub	r2, fp, #20
	ldr	r3, [fp, #-40]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-48]
	ldr	r1, [fp, #-56]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L24
	mov	r3, #1
	str	r3, [fp, #-32]
	b	.L25
.L24:
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L23:
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-64]
	cmp	r2, r3
	blt	.L26
.L25:
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-64]
	cmp	r2, r3
	beq	.L27
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L27
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-56]
	add	r3, r2, r3
	ldrb	r1, [r3]	@ zero_extendqisi2
	sub	r2, fp, #20
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-64]
	cmp	r2, r3
	beq	.L29
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
	b	.L29
.L27:
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L30
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L31
.L32:
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r1, [r3, #-16]	@ zero_extendqisi2
	sub	r2, fp, #20
	ldr	r3, [fp, #-40]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L31:
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	blt	.L32
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-56]
	add	r3, r2, r3
	ldrb	r1, [r3]	@ zero_extendqisi2
	sub	r2, fp, #20
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
.L30:
	ldr	r3, [fp, #-32]
	cmp	r3, #1
	bne	.L29
	ldr	r3, [fp, #-40]
	str	r3, [fp, #-36]
	b	.L33
.L34:
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r1, [r3, #-16]	@ zero_extendqisi2
	sub	r2, fp, #20
	ldr	r3, [fp, #-36]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L33:
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	blt	.L34
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-56]
	add	r3, r2, r3
	ldrb	r1, [r3]	@ zero_extendqisi2
	sub	r2, fp, #20
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
.L29:
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L35
.L36:
	sub	r2, fp, #20
	ldr	r3, [fp, #-40]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L41+12
	bl	printf
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L35:
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-64]
	cmp	r2, r3
	blt	.L36
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L37
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L41+16
	bl	printf
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
	b	.L38
.L37:
	ldr	r0, .L41+20
	bl	printf
.L38:
	mov	r3, #0
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L22:
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-60]
	cmp	r2, r3
	blt	.L39
	nop
	ldr	r3, .L41
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L40
	bl	__stack_chk_fail
.L40:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L42:
	.align	2
.L41:
	.word	.LC6
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	LRU, .-LRU
	.section	.rodata
	.align	2
.LC7:
	.ascii	"Enter the no of empty frames: \000"
	.align	2
.LC8:
	.ascii	"%d\000"
	.align	2
.LC9:
	.ascii	"Enter the length of the string: \000"
	.align	2
.LC10:
	.ascii	"Enter the string: \000"
	.align	2
.LC11:
	.ascii	"%s\000"
	.align	2
.LC12:
	.ascii	"\012**** MENU ****\000"
	.align	2
.LC13:
	.ascii	"1: FIFO\0122: LRU\000"
	.align	2
.LC14:
	.ascii	"Enter your choice: \000"
	.align	2
.LC15:
	.ascii	"\012\012Enter 1 to continue, 0 to finish: \000"
	.align	2
.LC16:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	ldr	r3, .L52
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #1
	str	r3, [fp, #-48]
	ldr	r0, .L52+4
	bl	printf
	sub	r3, fp, #40
	mov	r1, r3
	ldr	r0, .L52+8
	bl	__isoc99_scanf
	ldr	r0, .L52+12
	bl	printf
	sub	r3, fp, #44
	mov	r1, r3
	ldr	r0, .L52+8
	bl	__isoc99_scanf
	ldr	r0, .L52+16
	bl	printf
	sub	r3, fp, #36
	mov	r1, r3
	ldr	r0, .L52+20
	bl	__isoc99_scanf
.L48:
	ldr	r0, .L52+24
	bl	puts
	ldr	r0, .L52+28
	bl	puts
	ldr	r0, .L52+32
	bl	printf
	sub	r3, fp, #52
	mov	r1, r3
	ldr	r0, .L52+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-52]
	cmp	r3, #1
	beq	.L44
	cmp	r3, #2
	beq	.L45
	b	.L51
.L44:
	ldr	r1, [fp, #-44]
	ldr	r2, [fp, #-40]
	sub	r3, fp, #36
	mov	r0, r3
	bl	FIFO
	b	.L47
.L45:
	ldr	r1, [fp, #-44]
	ldr	r2, [fp, #-40]
	sub	r3, fp, #36
	mov	r0, r3
	bl	LRU
	b	.L47
.L51:
	mov	r0, #0
	bl	exit
.L47:
	ldr	r0, .L52+36
	bl	printf
	sub	r3, fp, #48
	mov	r1, r3
	ldr	r0, .L52+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-48]
	cmp	r3, #1
	beq	.L48
	mov	r3, #0
	ldr	r2, .L52
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L50
	bl	__stack_chk_fail
.L50:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L53:
	.align	2
.L52:
	.word	.LC16
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
