// File: /workspace/github_cpp_makefile_star2_O1/zheng-ji[P]lruCache/./lrucache.h
// Function: LRUCache<int, int>::UpdateCache(int const&, int const&)
int UpdateCache(const T & t, const Value & value) 
        {
            std::lock_guard<std::mutex> lck(mt);
            HashMapIter mapIter = m_LRUCache.find(t);
            if (mapIter != m_LRUCache.end()) 
            {
                m_List.erase(mapIter->second.listiter);
                m_List.push_front(t);
                mapIter->second.listiter = m_List.begin();
                mapIter->second.updatetime = time(NULL);
                mapIter->second.value = value;
                return m_iCacheSize;
            }
            if (m_iCacheLimit > 0) 
            {
                while (m_iCacheLimit < m_iCacheSize) 
                {
                    T t = m_List.back();
                    m_List.pop_back();
                    HashMapIter mapIter = m_LRUCache.find(t);
                    if (mapIter == m_LRUCache.end())
                        break;
                    m_LRUCache.erase(mapIter);
                    m_iCacheSize--;
                    m_iEraseCnt++;
                }
            }
            m_List.push_front(t);
            CacheItem mapItem(value, m_List.begin());
            m_LRUCache.insert(std::make_pair(t, mapItem));
            m_iCacheSize++;
            return m_iCacheSize;
        }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdx, -0x30(%rbp)
movq %rsi, %r12
movq %rdi, %r14
addq $0x60, %rdi
movq %rdi, -0x38(%rbp)
callq 0x21b0
testl %eax, %eax
jne 0x2a94
leaq 0x18(%r14), %r13
movslq (%r12), %rcx
movq %rcx, %rax
xorl %edx, %edx
divq 0x20(%r14)
movq %r13, %rdi
movq %rdx, %rsi
movq %r12, %rdx
callq 0x2bbc
testq %rax, %rax
je 0x28f9
movq (%rax), %rbx
jmp 0x28fb
xorl %ebx, %ebx
testq %rbx, %rbx
je 0x295f
movq 0x18(%rbx), %r15
decq 0x10(%r14)
movq %r15, %rdi
callq 0x21e0
movq %r15, %rdi
callq 0x2130
movq (%r14), %r15
movl $0x18, %edi
callq 0x2170
movl (%r12), %ecx
movl %ecx, 0x10(%rax)
movq %rax, %rdi
movq %r15, %rsi
callq 0x2040
incq 0x10(%r14)
movq (%r14), %rax
movq %rax, 0x18(%rbx)
xorl %edi, %edi
callq 0x2120
movq %rax, 0x20(%rbx)
movq -0x30(%rbp), %rax
movl (%rax), %eax
movl %eax, 0x10(%rbx)
movl 0x50(%r14), %r15d
jmp 0x2a79
cmpl $0x0, 0x54(%r14)
jle 0x2a1c
movl 0x54(%r14), %eax
cmpl 0x50(%r14), %eax
jge 0x2a1c
movq 0x8(%r14), %rbx
movslq 0x10(%rbx), %r15
decq 0x10(%r14)
movq %rbx, %rdi
callq 0x21e0
movq %rbx, %rdi
callq 0x2130
movq 0x18(%r14), %rsi
movq 0x20(%r14), %rdi
movq %r15, %rax
xorl %edx, %edx
divq %rdi
movq %rdx, %rcx
movq (%rsi,%rdx,8), %rdx
movl $0x0, %eax
testq %rdx, %rdx
je 0x29ee
movq (%rdx), %r8
movq %rdx, %rax
cmpl 0x8(%r8), %r15d
je 0x29ee
movq %r8, %r9
movq (%r8), %r8
testq %r8, %r8
je 0x29ec
movslq 0x8(%r8), %rsi
movq %rsi, %rax
xorl %edx, %edx
divq %rdi
movl $0x0, %eax
cmpq %rcx, %rdx
jne 0x29ee
movq %r9, %rax
cmpl %esi, %r15d
jne 0x29c1
jmp 0x29ee
xorl %eax, %eax
testq %rax, %rax
je 0x29f8
movq (%rax), %r15
jmp 0x29fb
xorl %r15d, %r15d
testq %r15, %r15
je 0x2a1c
movq %r13, %rdi
movq %r15, %rsi
callq 0x2c08
decl 0x50(%r14)
incl 0x58(%r14)
testq %r15, %r15
jne 0x296a
movq (%r14), %r15
movl $0x18, %edi
callq 0x2170
movl (%r12), %ecx
movl %ecx, 0x10(%rax)
movq %rax, %rdi
movq %r15, %rsi
callq 0x2040
incq 0x10(%r14)
movq (%r14), %rbx
movq -0x30(%rbp), %rax
movl (%rax), %r15d
xorl %edi, %edi
callq 0x2120
movl (%r12), %ecx
leaq -0x58(%rbp), %rsi
movl %ecx, (%rsi)
movl %r15d, 0x8(%rsi)
movq %rbx, 0x10(%rsi)
movq %rax, 0x18(%rsi)
movq %r13, %rdi
callq 0x2cca
movl 0x50(%r14), %r15d
incl %r15d
movl %r15d, 0x50(%r14)
movq -0x38(%rbp), %rdi
callq 0x20e0
movl %r15d, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl %eax, %edi
callq 0x20c0
jmp 0x2a9f
jmp 0x2a9f
movq %rax, %r14
movq -0x38(%rbp), %rdi
callq 0x20e0
movq %r14, %rdi
callq 0x2220
nop