	.file	"56072.c"
	.intel_syntax noprefix
	.text
	.globl	mSIZE
	.bss
	.align 4
	.type	mSIZE, @object
	.size	mSIZE, 4
mSIZE:
	.zero	4
	.globl	pSIZE
	.align 4
	.type	pSIZE, @object
	.size	pSIZE, 4
pSIZE:
	.zero	4
	.local	memery
	.comm	memery,40,32
	.local	page
	.comm	page,400,32
	.local	temp
	.comm	temp,4000,32
	.section	.rodata
.LC0:
	.string	"color 0A"
	.align 8
.LC1:
	.string	"Please press any key to initialize... "
.LC2:
	.string	"cls"
.LC3:
	.string	"color 0B"
	.align 8
.LC4:
	.string	"Please enter the number of physical blocks (M<=10): "
.LC5:
	.string	"%d"
.LC6:
	.string	"Input error, please re-enter."
	.align 8
.LC7:
	.string	"Please enter the number of page number reference strings (P<=100): "
	.align 8
.LC8:
	.string	"Please input page number reference string in sequence (continuous input, separated by spaces): "
.LC9:
	.string	"color 0E"
	.align 8
.LC10:
	.string	"The input page number reference string is: "
.LC11:
	.string	"%d\n"
.LC12:
	.string	"%d   "
	.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, 16
	lea	rdi, .LC0[rip]
	call	system@PLT
	lea	rdi, .LC1[rip]
	call	puts@PLT
	call	getchar@PLT
	lea	rdi, .LC2[rip]
	call	system@PLT
	lea	rdi, .LC3[rip]
	call	system@PLT
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rsi, mSIZE[rip]
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	jmp	.L2
.L3:
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rsi, mSIZE[rip]
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
.L2:
	mov	eax, DWORD PTR mSIZE[rip]
	cmp	eax, 10
	jg	.L3
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rsi, pSIZE[rip]
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	jmp	.L4
.L5:
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rsi, pSIZE[rip]
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
.L4:
	mov	eax, DWORD PTR pSIZE[rip]
	cmp	eax, 100
	jg	.L5
	lea	rdi, .LC8[rip]
	call	puts@PLT
	mov	DWORD PTR -8[rbp], 0
	jmp	.L6
.L7:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, page[rip]
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	DWORD PTR -8[rbp], 1
.L6:
	mov	eax, DWORD PTR pSIZE[rip]
	cmp	DWORD PTR -8[rbp], eax
	jl	.L7
	lea	rdi, .LC2[rip]
	call	system@PLT
	lea	rdi, .LC9[rip]
	call	system@PLT
	lea	rdi, .LC10[rip]
	call	puts@PLT
	mov	DWORD PTR -4[rbp], 0
	jmp	.L8
.L15:
	mov	edx, DWORD PTR -4[rbp]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	sal	eax, 2
	mov	DWORD PTR -8[rbp], eax
	jmp	.L9
.L14:
	mov	eax, DWORD PTR -8[rbp]
	lea	ecx, 1[rax]
	movsx	rax, ecx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax, 3
	mov	esi, ecx
	sar	esi, 31
	sub	eax, esi
	mov	edx, eax
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	sal	eax, 2
	sub	ecx, eax
	mov	edx, ecx
	test	edx, edx
	je	.L10
	mov	eax, DWORD PTR -8[rbp]
	lea	ecx, 1[rax]
	movsx	rax, ecx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax, 3
	mov	esi, ecx
	sar	esi, 31
	sub	eax, esi
	mov	edx, eax
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	sal	eax, 2
	sub	ecx, eax
	mov	edx, ecx
	test	edx, edx
	je	.L11
	mov	eax, DWORD PTR pSIZE[rip]
	sub	eax, 1
	cmp	DWORD PTR -8[rbp], eax
	jne	.L11
.L10:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, page[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L12
.L11:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, page[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	esi, eax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
.L12:
	add	DWORD PTR -8[rbp], 1
.L9:
	mov	eax, DWORD PTR pSIZE[rip]
	cmp	DWORD PTR -8[rbp], eax
	jge	.L13
	mov	eax, DWORD PTR -4[rbp]
	lea	edx, 1[rax]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	sal	eax, 2
	cmp	DWORD PTR -8[rbp], eax
	jl	.L14
.L13:
	add	DWORD PTR -4[rbp], 1
.L8:
	mov	eax, DWORD PTR pSIZE[rip]
	sub	eax, 1
	movsx	rdx, eax
	imul	rdx, rdx, 1717986919
	shr	rdx, 32
	sar	edx, 3
	sar	eax, 31
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	cmp	DWORD PTR -4[rbp], eax
	jle	.L15
	mov	eax, 0
	call	LRU
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC13:
	.string	" |%d|"
.LC14:
	.string	" | |"
.LC15:
	.string	"    "
	.align 8
.LC16:
	.string	"----------------------------------------"
.LC17:
	.string	"Page missing times: %d\t\t"
.LC18:
	.string	"Page missing rate: %d/%d\n"
.LC19:
	.string	"Replacement times: %d\t\t"
.LC20:
	.string	"Access hit rate: %d%%\n"
	.text
	.globl	print
	.type	print, @function
print:
.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, 48
	mov	DWORD PTR -36[rbp], edi
	mov	DWORD PTR -12[rbp], 0
	jmp	.L18
.L42:
	mov	edx, DWORD PTR -12[rbp]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	sal	eax, 2
	mov	DWORD PTR -20[rbp], eax
	jmp	.L19
.L24:
	mov	eax, DWORD PTR -20[rbp]
	lea	ecx, 1[rax]
	movsx	rax, ecx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax, 3
	mov	esi, ecx
	sar	esi, 31
	sub	eax, esi
	mov	edx, eax
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	sal	eax, 2
	sub	ecx, eax
	mov	edx, ecx
	test	edx, edx
	je	.L20
	mov	eax, DWORD PTR -20[rbp]
	lea	ecx, 1[rax]
	movsx	rax, ecx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax, 3
	mov	esi, ecx
	sar	esi, 31
	sub	eax, esi
	mov	edx, eax
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	sal	eax, 2
	sub	ecx, eax
	mov	edx, ecx
	test	edx, edx
	je	.L21
	mov	eax, DWORD PTR pSIZE[rip]
	sub	eax, 1
	cmp	DWORD PTR -20[rbp], eax
	jne	.L21
.L20:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, page[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L22
.L21:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, page[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	esi, eax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
.L22:
	add	DWORD PTR -20[rbp], 1
.L19:
	mov	eax, DWORD PTR pSIZE[rip]
	cmp	DWORD PTR -20[rbp], eax
	jge	.L23
	mov	eax, DWORD PTR -12[rbp]
	lea	edx, 1[rax]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	sal	eax, 2
	cmp	DWORD PTR -20[rbp], eax
	jl	.L24
.L23:
	mov	DWORD PTR -16[rbp], 0
	jmp	.L25
.L41:
	mov	edx, DWORD PTR -12[rbp]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	sal	eax, 2
	mov	DWORD PTR -20[rbp], eax
	jmp	.L26
.L30:
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, DWORD PTR -16[rbp]
	jl	.L27
	mov	eax, DWORD PTR -16[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	lea	rax, temp[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	esi, eax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L28
.L27:
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
.L28:
	add	DWORD PTR -20[rbp], 1
.L26:
	mov	edx, DWORD PTR -12[rbp]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	sal	eax, 2
	mov	edx, eax
	mov	eax, DWORD PTR mSIZE[rip]
	add	eax, edx
	cmp	DWORD PTR -20[rbp], eax
	jge	.L29
	mov	eax, DWORD PTR pSIZE[rip]
	cmp	DWORD PTR -20[rbp], eax
	jl	.L30
.L29:
	mov	edx, DWORD PTR -12[rbp]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	sal	eax, 2
	mov	edx, eax
	mov	eax, DWORD PTR mSIZE[rip]
	add	eax, edx
	mov	DWORD PTR -20[rbp], eax
	jmp	.L31
.L38:
	mov	DWORD PTR -4[rbp], 0
	mov	DWORD PTR -8[rbp], 0
	jmp	.L32
.L34:
	mov	eax, DWORD PTR -8[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	lea	rax, temp[rip]
	mov	ecx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -20[rbp]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR -8[rbp]
	movsx	rsi, eax
	movsx	rdx, edx
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	add	rax, rsi
	lea	rdx, 0[0+rax*4]
	lea	rax, temp[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	ecx, eax
	jne	.L33
	add	DWORD PTR -4[rbp], 1
.L33:
	add	DWORD PTR -8[rbp], 1
.L32:
	mov	eax, DWORD PTR mSIZE[rip]
	cmp	DWORD PTR -8[rbp], eax
	jl	.L34
	mov	eax, DWORD PTR mSIZE[rip]
	cmp	DWORD PTR -4[rbp], eax
	jne	.L35
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L36
.L35:
	mov	eax, DWORD PTR -16[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	lea	rax, temp[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	esi, eax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
.L36:
	add	DWORD PTR -20[rbp], 1
.L31:
	mov	eax, DWORD PTR pSIZE[rip]
	cmp	DWORD PTR -20[rbp], eax
	jge	.L37
	mov	eax, DWORD PTR -12[rbp]
	lea	edx, 1[rax]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	sal	eax, 2
	cmp	DWORD PTR -20[rbp], eax
	jl	.L38
.L37:
	mov	ecx, DWORD PTR -20[rbp]
	movsx	rax, ecx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax, 3
	mov	esi, ecx
	sar	esi, 31
	sub	eax, esi
	mov	edx, eax
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	sal	eax, 2
	sub	ecx, eax
	mov	edx, ecx
	test	edx, edx
	je	.L43
	mov	edi, 10
	call	putchar@PLT
	jmp	.L40
.L43:
	nop
.L40:
	add	DWORD PTR -16[rbp], 1
.L25:
	mov	eax, DWORD PTR mSIZE[rip]
	cmp	DWORD PTR -16[rbp], eax
	jl	.L41
	add	DWORD PTR -12[rbp], 1
.L18:
	mov	eax, DWORD PTR pSIZE[rip]
	sub	eax, 1
	movsx	rdx, eax
	imul	rdx, rdx, 1717986919
	shr	rdx, 32
	sar	edx, 3
	sar	eax, 31
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	cmp	DWORD PTR -12[rbp], eax
	jle	.L42
	lea	rdi, .LC16[rip]
	call	puts@PLT
	mov	eax, DWORD PTR mSIZE[rip]
	mov	edx, eax
	mov	eax, DWORD PTR -36[rbp]
	add	eax, edx
	mov	esi, eax
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR pSIZE[rip]
	mov	edx, DWORD PTR mSIZE[rip]
	mov	ecx, edx
	mov	edx, DWORD PTR -36[rbp]
	add	ecx, edx
	mov	edx, eax
	mov	esi, ecx
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, eax
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR pSIZE[rip]
	mov	ecx, eax
	mov	eax, DWORD PTR mSIZE[rip]
	mov	edx, eax
	mov	eax, DWORD PTR -36[rbp]
	add	edx, eax
	mov	eax, ecx
	sub	eax, edx
	imul	eax, eax, 100
	mov	edx, DWORD PTR pSIZE[rip]
	mov	edi, edx
	mov	edx, 0
	div	edi
	mov	esi, eax
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC16[rip]
	call	puts@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	print, .-print
	.globl	LRU
	.type	LRU, @function
LRU:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	add	rsp, -128
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	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 -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 -104[rbp], 0
	mov	DWORD PTR -100[rbp], 0
	mov	DWORD PTR -120[rbp], 0
	jmp	.L45
.L48:
	mov	eax, DWORD PTR -120[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, page[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -120[rbp]
	cdqe
	mov	DWORD PTR -96[rbp+rax*4], edx
	mov	eax, DWORD PTR -120[rbp]
	cdqe
	mov	edx, DWORD PTR -120[rbp]
	mov	DWORD PTR -48[rbp+rax*4], edx
	mov	DWORD PTR -116[rbp], 0
	jmp	.L46
.L47:
	mov	eax, DWORD PTR -116[rbp]
	cdqe
	mov	edx, DWORD PTR -96[rbp+rax*4]
	mov	eax, DWORD PTR -116[rbp]
	movsx	rsi, eax
	mov	eax, DWORD PTR -120[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 2
	add	rax, rcx
	add	rax, rax
	add	rax, rsi
	lea	rcx, 0[0+rax*4]
	lea	rax, temp[rip]
	mov	DWORD PTR [rcx+rax], edx
	add	DWORD PTR -116[rbp], 1
.L46:
	mov	eax, DWORD PTR mSIZE[rip]
	cmp	DWORD PTR -116[rbp], eax
	jl	.L47
	add	DWORD PTR -120[rbp], 1
.L45:
	mov	eax, DWORD PTR mSIZE[rip]
	cmp	DWORD PTR -120[rbp], eax
	jl	.L48
	mov	eax, DWORD PTR mSIZE[rip]
	mov	DWORD PTR -120[rbp], eax
	jmp	.L49
.L63:
	mov	DWORD PTR -116[rbp], 0
	mov	DWORD PTR -112[rbp], 0
	jmp	.L50
.L53:
	mov	eax, DWORD PTR -116[rbp]
	cdqe
	mov	edx, DWORD PTR -96[rbp+rax*4]
	mov	eax, DWORD PTR -120[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rax, page[rip]
	mov	eax, DWORD PTR [rcx+rax]
	cmp	edx, eax
	je	.L51
	add	DWORD PTR -112[rbp], 1
	jmp	.L52
.L51:
	mov	eax, DWORD PTR -116[rbp]
	cdqe
	mov	edx, DWORD PTR -120[rbp]
	mov	DWORD PTR -48[rbp+rax*4], edx
.L52:
	add	DWORD PTR -116[rbp], 1
.L50:
	mov	eax, DWORD PTR mSIZE[rip]
	cmp	DWORD PTR -116[rbp], eax
	jl	.L53
	mov	eax, DWORD PTR mSIZE[rip]
	cmp	DWORD PTR -112[rbp], eax
	jne	.L54
	add	DWORD PTR -100[rbp], 1
	mov	edx, DWORD PTR -48[rbp]
	mov	eax, DWORD PTR -44[rbp]
	cmp	edx, eax
	setge	al
	movzx	eax, al
	mov	DWORD PTR -104[rbp], eax
	mov	DWORD PTR -108[rbp], 2
	jmp	.L55
.L57:
	mov	eax, DWORD PTR -108[rbp]
	cdqe
	mov	edx, DWORD PTR -48[rbp+rax*4]
	mov	eax, DWORD PTR -104[rbp]
	cdqe
	mov	eax, DWORD PTR -48[rbp+rax*4]
	cmp	edx, eax
	jge	.L56
	mov	eax, DWORD PTR -108[rbp]
	mov	DWORD PTR -104[rbp], eax
.L56:
	add	DWORD PTR -108[rbp], 1
.L55:
	mov	eax, DWORD PTR mSIZE[rip]
	cmp	DWORD PTR -108[rbp], eax
	jl	.L57
	mov	eax, DWORD PTR -120[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, page[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -104[rbp]
	cdqe
	mov	DWORD PTR -96[rbp+rax*4], edx
	mov	eax, DWORD PTR -104[rbp]
	cdqe
	mov	edx, DWORD PTR -120[rbp]
	mov	DWORD PTR -48[rbp+rax*4], edx
	mov	DWORD PTR -116[rbp], 0
	jmp	.L58
.L59:
	mov	eax, DWORD PTR -116[rbp]
	cdqe
	mov	edx, DWORD PTR -96[rbp+rax*4]
	mov	eax, DWORD PTR -116[rbp]
	movsx	rsi, eax
	mov	eax, DWORD PTR -120[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 2
	add	rax, rcx
	add	rax, rax
	add	rax, rsi
	lea	rcx, 0[0+rax*4]
	lea	rax, temp[rip]
	mov	DWORD PTR [rcx+rax], edx
	add	DWORD PTR -116[rbp], 1
.L58:
	mov	eax, DWORD PTR mSIZE[rip]
	cmp	DWORD PTR -116[rbp], eax
	jl	.L59
	jmp	.L60
.L54:
	mov	DWORD PTR -116[rbp], 0
	jmp	.L61
.L62:
	mov	eax, DWORD PTR -116[rbp]
	cdqe
	mov	edx, DWORD PTR -96[rbp+rax*4]
	mov	eax, DWORD PTR -116[rbp]
	movsx	rsi, eax
	mov	eax, DWORD PTR -120[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 2
	add	rax, rcx
	add	rax, rax
	add	rax, rsi
	lea	rcx, 0[0+rax*4]
	lea	rax, temp[rip]
	mov	DWORD PTR [rcx+rax], edx
	add	DWORD PTR -116[rbp], 1
.L61:
	mov	eax, DWORD PTR mSIZE[rip]
	cmp	DWORD PTR -116[rbp], eax
	jl	.L62
.L60:
	add	DWORD PTR -120[rbp], 1
.L49:
	mov	eax, DWORD PTR pSIZE[rip]
	cmp	DWORD PTR -120[rbp], eax
	jl	.L63
	mov	eax, DWORD PTR -100[rbp]
	mov	edi, eax
	call	print
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L64
	call	__stack_chk_fail@PLT
.L64:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	LRU, .-LRU
	.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	"56072.c"
	.text
	.comm	mSIZE,4,4
	.comm	pSIZE,4,4
	.local	memery
	.comm	memery,40,4
	.local	page
	.comm	page,400,4
	.local	temp
	.comm	temp,4000,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"color 0A\000"
	.align	2
.LC1:
	.ascii	"Please press any key to initialize... \000"
	.align	2
.LC2:
	.ascii	"cls\000"
	.align	2
.LC3:
	.ascii	"color 0B\000"
	.align	2
.LC4:
	.ascii	"Please enter the number of physical blocks (M<=10):"
	.ascii	" \000"
	.align	2
.LC5:
	.ascii	"%d\000"
	.align	2
.LC6:
	.ascii	"Input error, please re-enter.\000"
	.align	2
.LC7:
	.ascii	"Please enter the number of page number reference st"
	.ascii	"rings (P<=100): \000"
	.align	2
.LC8:
	.ascii	"Please input page number reference string in sequen"
	.ascii	"ce (continuous input, separated by spaces): \000"
	.align	2
.LC9:
	.ascii	"color 0E\000"
	.align	2
.LC10:
	.ascii	"The input page number reference string is: \000"
	.align	2
.LC11:
	.ascii	"%d\012\000"
	.align	2
.LC12:
	.ascii	"%d   \000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r0, .L17
	bl	system
	ldr	r0, .L17+4
	bl	puts
	bl	getchar
	ldr	r0, .L17+8
	bl	system
	ldr	r0, .L17+12
	bl	system
	ldr	r0, .L17+16
	bl	printf
	ldr	r1, .L17+20
	ldr	r0, .L17+24
	bl	__isoc99_scanf
	b	.L2
.L3:
	ldr	r0, .L17+28
	bl	printf
	ldr	r1, .L17+20
	ldr	r0, .L17+24
	bl	__isoc99_scanf
.L2:
	ldr	r3, .L17+20
	ldr	r3, [r3]
	cmp	r3, #10
	bgt	.L3
	ldr	r0, .L17+32
	bl	printf
	ldr	r1, .L17+36
	ldr	r0, .L17+24
	bl	__isoc99_scanf
	b	.L4
.L5:
	ldr	r0, .L17+28
	bl	printf
	ldr	r1, .L17+36
	ldr	r0, .L17+24
	bl	__isoc99_scanf
.L4:
	ldr	r3, .L17+36
	ldr	r3, [r3]
	cmp	r3, #100
	bgt	.L5
	ldr	r0, .L17+40
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L6
.L7:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, .L17+44
	add	r3, r3, r2
	mov	r1, r3
	ldr	r0, .L17+24
	bl	__isoc99_scanf
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L6:
	ldr	r3, .L17+36
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L7
	ldr	r0, .L17+8
	bl	system
	ldr	r0, .L17+48
	bl	system
	ldr	r0, .L17+52
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L8
.L15:
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	str	r3, [fp, #-12]
	b	.L9
.L14:
	ldr	r3, [fp, #-12]
	add	r1, r3, #1
	ldr	r3, .L17+56
	smull	r2, r3, r1, r3
	asr	r2, r3, #3
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, r1, r3
	cmp	r2, #0
	beq	.L10
	ldr	r3, [fp, #-12]
	add	r1, r3, #1
	ldr	r3, .L17+56
	smull	r2, r3, r1, r3
	asr	r2, r3, #3
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, r1, r3
	cmp	r2, #0
	beq	.L11
	ldr	r3, .L17+36
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bne	.L11
.L10:
	ldr	r2, .L17+44
	ldr	r3, [fp, #-12]
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L17+60
	bl	printf
	b	.L12
.L11:
	ldr	r2, .L17+44
	ldr	r3, [fp, #-12]
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L17+64
	bl	printf
.L12:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L9:
	ldr	r3, .L17+36
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bge	.L13
	ldr	r3, [fp, #-8]
	add	r2, r3, #1
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-12]
	cmp	r3, r2
	blt	.L14
.L13:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L8:
	ldr	r3, .L17+36
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L17+56
	smull	r1, r2, r3, r2
	asr	r2, r2, #3
	asr	r3, r3, #31
	sub	r3, r2, r3
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	ble	.L15
	bl	LRU
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	mSIZE
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	pSIZE
	.word	.LC8
	.word	page
	.word	.LC9
	.word	.LC10
	.word	1717986919
	.word	.LC11
	.word	.LC12
	.size	main, .-main
	.section	.rodata
	.align	2
.LC13:
	.ascii	" |%d|\000"
	.align	2
.LC14:
	.ascii	" | |\000"
	.align	2
.LC15:
	.ascii	"    \000"
	.align	2
.LC16:
	.ascii	"----------------------------------------\000"
	.align	2
.LC17:
	.ascii	"Page missing times: %d\011\011\000"
	.align	2
.LC18:
	.ascii	"Page missing rate: %d/%d\012\000"
	.align	2
.LC19:
	.ascii	"Replacement times: %d\011\011\000"
	.global	__aeabi_uidiv
	.align	2
.LC20:
	.ascii	"Access hit rate: %d%%\012\000"
	.text
	.align	2
	.global	print
	.syntax unified
	.arm
	.fpu softvfp
	.type	print, %function
print:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L20
.L44:
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	str	r3, [fp, #-24]
	b	.L21
.L26:
	ldr	r3, [fp, #-24]
	add	r1, r3, #1
	ldr	r3, .L46
	smull	r2, r3, r1, r3
	asr	r2, r3, #3
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, r1, r3
	cmp	r2, #0
	beq	.L22
	ldr	r3, [fp, #-24]
	add	r1, r3, #1
	ldr	r3, .L46
	smull	r2, r3, r1, r3
	asr	r2, r3, #3
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, r1, r3
	cmp	r2, #0
	beq	.L23
	ldr	r3, .L46+4
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	bne	.L23
.L22:
	ldr	r2, .L46+8
	ldr	r3, [fp, #-24]
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L46+12
	bl	printf
	b	.L24
.L23:
	ldr	r2, .L46+8
	ldr	r3, [fp, #-24]
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L46+16
	bl	printf
.L24:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L21:
	ldr	r3, .L46+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	bge	.L25
	ldr	r3, [fp, #-16]
	add	r2, r3, #1
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-24]
	cmp	r3, r2
	blt	.L26
.L25:
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L27
.L43:
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	str	r3, [fp, #-24]
	b	.L28
.L32:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L29
	ldr	r1, .L46+20
	ldr	r2, [fp, #-24]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	ldr	r2, [fp, #-20]
	add	r3, r3, r2
	ldr	r3, [r1, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L46+24
	bl	printf
	b	.L30
.L29:
	ldr	r0, .L46+28
	bl	printf
.L30:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L28:
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, .L46+32
	ldr	r3, [r3]
	add	r3, r2, r3
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	bge	.L31
	ldr	r3, .L46+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	blt	.L32
.L31:
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, .L46+32
	ldr	r3, [r3]
	add	r3, r2, r3
	str	r3, [fp, #-24]
	b	.L33
.L40:
	mov	r3, #0
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L34
.L36:
	ldr	r1, .L46+20
	ldr	r2, [fp, #-24]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	ldr	r2, [fp, #-12]
	add	r3, r3, r2
	ldr	r1, [r1, r3, lsl #2]
	ldr	r3, [fp, #-24]
	sub	r2, r3, #1
	ldr	r0, .L46+20
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	ldr	r2, [fp, #-12]
	add	r3, r3, r2
	ldr	r3, [r0, r3, lsl #2]
	cmp	r1, r3
	bne	.L35
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L35:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L34:
	ldr	r3, .L46+32
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L36
	ldr	r3, .L46+32
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bne	.L37
	ldr	r0, .L46+36
	bl	printf
	b	.L38
.L37:
	ldr	r1, .L46+20
	ldr	r2, [fp, #-24]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	ldr	r2, [fp, #-20]
	add	r3, r3, r2
	ldr	r3, [r1, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L46+24
	bl	printf
.L38:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L33:
	ldr	r3, .L46+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	bge	.L39
	ldr	r3, [fp, #-16]
	add	r2, r3, #1
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-24]
	cmp	r3, r2
	blt	.L40
.L39:
	ldr	r1, [fp, #-24]
	ldr	r3, .L46
	smull	r2, r3, r1, r3
	asr	r2, r3, #3
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, r1, r3
	cmp	r2, #0
	beq	.L45
	mov	r0, #10
	bl	putchar
	b	.L42
.L45:
	nop
.L42:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L27:
	ldr	r3, .L46+32
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	blt	.L43
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L20:
	ldr	r3, .L46+4
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L46
	smull	r1, r2, r3, r2
	asr	r2, r2, #3
	asr	r3, r3, #31
	sub	r3, r2, r3
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	ble	.L44
	ldr	r0, .L46+40
	bl	puts
	ldr	r3, .L46+32
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L46+44
	bl	printf
	ldr	r3, .L46+32
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	ldr	r2, .L46+4
	ldr	r2, [r2]
	mov	r1, r3
	ldr	r0, .L46+48
	bl	printf
	ldr	r1, [fp, #-32]
	ldr	r0, .L46+52
	bl	printf
	ldr	r3, .L46+4
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r3, .L46+32
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r3, [fp, #-32]
	add	r3, r1, r3
	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, #2
	mov	r2, r3
	ldr	r3, .L46+4
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_uidiv
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L46+56
	bl	printf
	ldr	r0, .L46+40
	bl	puts
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L47:
	.align	2
.L46:
	.word	1717986919
	.word	pSIZE
	.word	page
	.word	.LC11
	.word	.LC12
	.word	temp
	.word	.LC13
	.word	.LC14
	.word	mSIZE
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.size	print, .-print
	.section	.rodata
	.align	2
.LC21:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	LRU
	.syntax unified
	.arm
	.fpu softvfp
	.type	LRU, %function
LRU:
	@ args = 0, pretend = 0, frame = 112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #112
	ldr	r3, .L69
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #88
	mov	r2, #40
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #48
	mov	r2, #40
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-96]
	mov	r3, #0
	str	r3, [fp, #-92]
	mov	r3, #0
	str	r3, [fp, #-112]
	b	.L49
.L52:
	ldr	r2, .L69+4
	ldr	r3, [fp, #-112]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-84]
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [fp, #-112]
	str	r2, [r3, #-44]
	mov	r3, #0
	str	r3, [fp, #-108]
	b	.L50
.L51:
	ldr	r3, [fp, #-108]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r1, [r3, #-84]
	ldr	r0, .L69+8
	ldr	r2, [fp, #-112]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	ldr	r2, [fp, #-108]
	add	r3, r3, r2
	str	r1, [r0, r3, lsl #2]
	ldr	r3, [fp, #-108]
	add	r3, r3, #1
	str	r3, [fp, #-108]
.L50:
	ldr	r3, .L69+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-108]
	cmp	r2, r3
	blt	.L51
	ldr	r3, [fp, #-112]
	add	r3, r3, #1
	str	r3, [fp, #-112]
.L49:
	ldr	r3, .L69+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-112]
	cmp	r2, r3
	blt	.L52
	ldr	r3, .L69+12
	ldr	r3, [r3]
	str	r3, [fp, #-112]
	b	.L53
.L67:
	mov	r3, #0
	str	r3, [fp, #-108]
	mov	r3, #0
	str	r3, [fp, #-104]
	b	.L54
.L57:
	ldr	r3, [fp, #-108]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-84]
	ldr	r1, .L69+4
	ldr	r3, [fp, #-112]
	ldr	r3, [r1, r3, lsl #2]
	cmp	r2, r3
	beq	.L55
	ldr	r3, [fp, #-104]
	add	r3, r3, #1
	str	r3, [fp, #-104]
	b	.L56
.L55:
	ldr	r3, [fp, #-108]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [fp, #-112]
	str	r2, [r3, #-44]
.L56:
	ldr	r3, [fp, #-108]
	add	r3, r3, #1
	str	r3, [fp, #-108]
.L54:
	ldr	r3, .L69+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-108]
	cmp	r2, r3
	blt	.L57
	ldr	r3, .L69+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-104]
	cmp	r2, r3
	bne	.L58
	ldr	r3, [fp, #-92]
	add	r3, r3, #1
	str	r3, [fp, #-92]
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-44]
	cmp	r2, r3
	movge	r3, #1
	movlt	r3, #0
	and	r3, r3, #255
	str	r3, [fp, #-96]
	mov	r3, #2
	str	r3, [fp, #-100]
	b	.L59
.L61:
	ldr	r3, [fp, #-100]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-44]
	ldr	r3, [fp, #-96]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r3, [r3, #-44]
	cmp	r2, r3
	bge	.L60
	ldr	r3, [fp, #-100]
	str	r3, [fp, #-96]
.L60:
	ldr	r3, [fp, #-100]
	add	r3, r3, #1
	str	r3, [fp, #-100]
.L59:
	ldr	r3, .L69+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-100]
	cmp	r2, r3
	blt	.L61
	ldr	r2, .L69+4
	ldr	r3, [fp, #-112]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, [fp, #-96]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-84]
	ldr	r3, [fp, #-96]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [fp, #-112]
	str	r2, [r3, #-44]
	mov	r3, #0
	str	r3, [fp, #-108]
	b	.L62
.L63:
	ldr	r3, [fp, #-108]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r1, [r3, #-84]
	ldr	r0, .L69+8
	ldr	r2, [fp, #-112]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	ldr	r2, [fp, #-108]
	add	r3, r3, r2
	str	r1, [r0, r3, lsl #2]
	ldr	r3, [fp, #-108]
	add	r3, r3, #1
	str	r3, [fp, #-108]
.L62:
	ldr	r3, .L69+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-108]
	cmp	r2, r3
	blt	.L63
	b	.L64
.L58:
	mov	r3, #0
	str	r3, [fp, #-108]
	b	.L65
.L66:
	ldr	r3, [fp, #-108]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r1, [r3, #-84]
	ldr	r0, .L69+8
	ldr	r2, [fp, #-112]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	ldr	r2, [fp, #-108]
	add	r3, r3, r2
	str	r1, [r0, r3, lsl #2]
	ldr	r3, [fp, #-108]
	add	r3, r3, #1
	str	r3, [fp, #-108]
.L65:
	ldr	r3, .L69+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-108]
	cmp	r2, r3
	blt	.L66
.L64:
	ldr	r3, [fp, #-112]
	add	r3, r3, #1
	str	r3, [fp, #-112]
.L53:
	ldr	r3, .L69+16
	ldr	r3, [r3]
	ldr	r2, [fp, #-112]
	cmp	r2, r3
	blt	.L67
	ldr	r3, [fp, #-92]
	mov	r0, r3
	bl	print
	nop
	ldr	r3, .L69
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L68
	bl	__stack_chk_fail
.L68:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L70:
	.align	2
.L69:
	.word	.LC21
	.word	page
	.word	temp
	.word	mSIZE
	.word	pSIZE
	.size	LRU, .-LRU
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
