// File: /workspace/github_cpp_makefile_star2_O3/yangwanyuan[P]HLKVDS/./src/include/SLRUMap.h
// Function: dslab::SLRUMap<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>::Put(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, bool)
bool SLRUMap<K,D>::Put(K key , D data, K& ukey, D& udata, bool same){
	D ldata;
	if( Get(key, ldata) ){//key exists, it should be now in protect segment, the segments should have been renewed
		return protect.Put(key, data, ukey, udata, same);//always false, no kv poped
	}else{// key does not exist
		return probation.Put(key, data, ukey, udata, same);//poped out or not is determined by probation segment
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xd8, %rsp
movl %r9d, %ebp
movq %r8, 0x10(%rsp)
movq %rcx, 0x8(%rsp)
movq %rdx, %r12
movq %rsi, %r13
movq %rdi, %r15
leaq 0x28(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0xc8(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%rsi), %rsi
movq 0x8(%r13), %rdx
addq %rsi, %rdx
leaq 0xb8(%rsp), %rdi
callq 0xa7cc
movq (%r15), %rax
leaq 0xb8(%rsp), %rsi
leaq 0x18(%rsp), %rdx
movq %r15, %rdi
callq *0x18(%rax)
movl %eax, %ebx
movq 0xb8(%rsp), %rdi
cmpq %r14, %rdi
je 0x197f6
callq 0x63f0
testb %bl, %bl
je 0x19886
leaq 0xa8(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%r13), %rsi
movq 0x8(%r13), %rdx
addq %rsi, %rdx
leaq 0x98(%rsp), %rdi
callq 0xa7cc
leaq 0x88(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%r12), %rsi
movq 0x8(%r12), %rdx
addq %rsi, %rdx
leaq 0x78(%rsp), %rdi
callq 0xa7cc
addq $0x8, %r15
movzbl %bpl, %r9d
leaq 0x98(%rsp), %rsi
leaq 0x78(%rsp), %rdx
movq %r15, %rdi
movq 0x8(%rsp), %rcx
movq 0x10(%rsp), %r8
callq 0x18c94
movl %eax, %ebx
movq 0x78(%rsp), %rdi
cmpq %r13, %rdi
je 0x1987c
callq 0x63f0
movq 0x98(%rsp), %rdi
jmp 0x198fd
leaq 0x68(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%r13), %rsi
movq 0x8(%r13), %rdx
addq %rsi, %rdx
leaq 0x58(%rsp), %rdi
callq 0xa7cc
leaq 0x48(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%r12), %rsi
movq 0x8(%r12), %rdx
addq %rsi, %rdx
leaq 0x38(%rsp), %rdi
callq 0xa7cc
addq $0x78, %r15
movzbl %bpl, %r9d
leaq 0x58(%rsp), %rsi
leaq 0x38(%rsp), %rdx
movq %r15, %rdi
movq 0x8(%rsp), %rcx
movq 0x10(%rsp), %r8
callq 0x18c94
movl %eax, %ebx
movq 0x38(%rsp), %rdi
cmpq %r13, %rdi
je 0x198f8
callq 0x63f0
movq 0x58(%rsp), %rdi
cmpq %r14, %rdi
leaq 0x28(%rsp), %r14
je 0x1990c
callq 0x63f0
movq 0x18(%rsp), %rdi
cmpq %r14, %rdi
je 0x1991b
callq 0x63f0
movl %ebx, %eax
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x38(%rsp), %rdi
cmpq %r13, %rdi
je 0x1995a
callq 0x63f0
jmp 0x1995a
movq %rax, %rbx
movq 0x78(%rsp), %rdi
cmpq %r13, %rdi
je 0x19964
callq 0x63f0
jmp 0x19964
movq %rax, %rbx
movq 0x58(%rsp), %rdi
jmp 0x19979
movq %rax, %rbx
movq 0x98(%rsp), %rdi
jmp 0x19979
movq %rax, %rbx
movq 0xb8(%rsp), %rdi
cmpq %r14, %rdi
je 0x19988
callq 0x63f0
jmp 0x19988
movq %rax, %rbx
movq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %rax
cmpq %rax, %rdi
je 0x1999c
callq 0x63f0
movq %rbx, %rdi
callq 0x6670