// File: /workspace/github_cpp_makefile_star2_O1/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 0xa64c
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 0x197be
callq 0x6400
testb %bl, %bl
je 0x1984e
leaq 0xa8(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%r13), %rsi
movq 0x8(%r13), %rdx
addq %rsi, %rdx
leaq 0x98(%rsp), %rdi
callq 0xa64c
leaq 0x88(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%r12), %rsi
movq 0x8(%r12), %rdx
addq %rsi, %rdx
leaq 0x78(%rsp), %rdi
callq 0xa64c
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 0x18c32
movl %eax, %ebx
movq 0x78(%rsp), %rdi
cmpq %r13, %rdi
je 0x19844
callq 0x6400
movq 0x98(%rsp), %rdi
jmp 0x198c5
leaq 0x68(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%r13), %rsi
movq 0x8(%r13), %rdx
addq %rsi, %rdx
leaq 0x58(%rsp), %rdi
callq 0xa64c
leaq 0x48(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%r12), %rsi
movq 0x8(%r12), %rdx
addq %rsi, %rdx
leaq 0x38(%rsp), %rdi
callq 0xa64c
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 0x18c32
movl %eax, %ebx
movq 0x38(%rsp), %rdi
cmpq %r13, %rdi
je 0x198c0
callq 0x6400
movq 0x58(%rsp), %rdi
cmpq %r14, %rdi
leaq 0x28(%rsp), %r14
je 0x198d4
callq 0x6400
movq 0x18(%rsp), %rdi
cmpq %r14, %rdi
je 0x198e3
callq 0x6400
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 0x19922
callq 0x6400
jmp 0x19922
movq %rax, %rbx
movq 0x78(%rsp), %rdi
cmpq %r13, %rdi
je 0x1992c
callq 0x6400
jmp 0x1992c
movq %rax, %rbx
movq 0x58(%rsp), %rdi
jmp 0x19941
movq %rax, %rbx
movq 0x98(%rsp), %rdi
jmp 0x19941
movq %rax, %rbx
movq 0xb8(%rsp), %rdi
cmpq %r14, %rdi
je 0x19950
callq 0x6400
jmp 0x19950
movq %rax, %rbx
movq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %rax
cmpq %rax, %rdi
je 0x19964
callq 0x6400
movq %rbx, %rdi
callq 0x6680