void cache_insert(PageCache *cache, uint64_t addr, uint8_t *pdata)
{
    CacheItem *it = NULL;
    g_assert(cache);
    g_assert(cache->page_cache);
    /* actual update of entry */
    it = cache_get_by_addr(cache, addr);
    if (!it->it_data) {
        cache->num_items++;
    }
    it->it_data = pdata;
    it->it_age = ++cache->max_item_age;
    it->it_addr = addr;
}
void cache_insert(PageCache *cache, uint64_t addr, uint8_t *pdata)
{
    CacheItem *it = NULL;
    g_assert(cache);
    g_assert(cache->page_cache);
    
    it = cache_get_by_addr(cache, addr);
    if (!it->it_data) {
        cache->num_items++;
    }
    it->it_data = pdata;
    it->it_age = ++cache->max_item_age;
    it->it_addr = addr;
}
void FUNC_0(PageCache *VAR_0, uint64_t VAR_1, uint8_t *VAR_2)
{
    CacheItem *it = NULL;
    g_assert(VAR_0);
    g_assert(VAR_0->page_cache);
    
    it = cache_get_by_addr(VAR_0, VAR_1);
    if (!it->it_data) {
        VAR_0->num_items++;
    }
    it->it_data = VAR_2;
    it->it_age = ++VAR_0->max_item_age;
    it->it_addr = VAR_1;
}
void FUNC_0(PageCache *VAR_0, uint64_t VAR_1, uint8_t *VAR_2)
{ CacheItem *it = NULL; g_assert(VAR_0); g_assert(VAR_0->page_cache); it = cache_get_by_addr(VAR_0, VAR_1); if (!it->it_data) { VAR_0->num_items++; } it->it_data = VAR_2; it->it_age = ++VAR_0->max_item_age; it->it_addr = VAR_1; }