// File: /workspace/github_cpp_makefile_star2_O3/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, -0x38(%rbp)
movq %rsi, %r12
movq %rdi, %r14
leaq 0x60(%rdi), %rbx
movq %rbx, %rdi
callq 0x21b0
testl %eax, %eax
jne 0x29fa
leaq 0x18(%r14), %r13
movq %r13, %rdi
movq %r12, %rsi
callq 0x2b16
movq %rax, %r15
testq %rax, %rax
je 0x2918
movq 0x18(%r15), %r13
decq 0x10(%r14)
movq %r13, %rdi
callq 0x21e0
movq %r13, %rdi
callq 0x2130
movq (%r14), %r13
movl $0x18, %edi
callq 0x2170
movl (%r12), %ecx
movl %ecx, 0x10(%rax)
movq %rax, %rdi
movq %r13, %rsi
callq 0x2040
incq 0x10(%r14)
movq (%r14), %rax
movq %rax, 0x18(%r15)
xorl %edi, %edi
callq 0x2120
movq %rax, 0x20(%r15)
movq -0x38(%rbp), %rax
movl (%rax), %eax
movl %eax, 0x10(%r15)
movl 0x50(%r14), %r15d
jmp 0x29e0
movq %rbx, -0x30(%rbp)
movl 0x54(%r14), %eax
testl %eax, %eax
jle 0x297b
cmpl 0x50(%r14), %eax
jge 0x297b
leaq -0x58(%rbp), %r15
movq 0x8(%r14), %rbx
movl 0x10(%rbx), %eax
movl %eax, -0x58(%rbp)
decq 0x10(%r14)
movq %rbx, %rdi
callq 0x21e0
movq %rbx, %rdi
callq 0x2130
movq %r13, %rdi
movq %r15, %rsi
callq 0x2b16
testq %rax, %rax
je 0x297b
movq %r13, %rdi
movq %rax, %rsi
callq 0x2b78
movl 0x50(%r14), %eax
decl %eax
movl %eax, 0x50(%r14)
incl 0x58(%r14)
cmpl %eax, 0x54(%r14)
jl 0x292e
movq (%r14), %r15
movl $0x18, %edi
movq -0x30(%rbp), %rbx
callq 0x2170
movl (%r12), %ecx
movl %ecx, 0x10(%rax)
movq %rax, %rdi
movq %r15, %rsi
callq 0x2040
incq 0x10(%r14)
movq (%r14), %rbx
movq -0x38(%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 0x2c30
movl 0x50(%r14), %r15d
incl %r15d
movl %r15d, 0x50(%r14)
movq -0x30(%rbp), %rbx
movq %rbx, %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 0x2a09
movq %rbx, -0x30(%rbp)
jmp 0x2a09
movq %rax, %r14
movq -0x30(%rbp), %rdi
callq 0x20e0
movq %r14, %rdi
callq 0x2220
nop