.class public final Loa0/j;
.super Ljava/lang/Object;
.source "SourceFile"

# interfaces
.implements Lpa0/a;
.implements Loa0/k;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Loa0/j$a;,
        Loa0/j$b;
    }
.end annotation


# static fields
.field public static final n:Loa0/j$a;

.field public static final o:I


# instance fields
.field private final a:Lcom/tumblr/rumblr/TumblrService;

.field private final b:Lpa0/e;

.field private final c:Lpa0/d;

.field private final d:Lpa0/e;

.field private final e:Loa0/m;

.field private final f:Loa0/y;

.field private final g:Lft/j0;

.field private final h:Lbi0/l0;

.field private final i:Leu/a;

.field private final j:Low/a;

.field private final k:Lch0/a;

.field private final l:Ljava/util/Map;

.field private m:Lva/b;


# direct methods
.method static constructor <clinit>()V
    .locals 2

    new-instance v0, Loa0/j$a;

    const/4 v1, 0x0

    invoke-direct {v0, v1}, Loa0/j$a;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V

    sput-object v0, Loa0/j;->n:Loa0/j$a;

    const/16 v0, 0x8

    sput v0, Loa0/j;->o:I

    return-void
.end method

.method public constructor <init>(Lcom/tumblr/rumblr/TumblrService;Lpa0/e;Lpa0/d;Lpa0/e;Loa0/m;Loa0/y;Lft/j0;Lbi0/l0;Leu/a;Low/a;Lch0/a;)V
    .locals 1

    const-string v0, "tumblrService"

    invoke-static {p1, v0}, Lqh0/s;->h(Ljava/lang/Object;Ljava/lang/String;)V

    const-string v0, "timelineMemoryCache"

    invoke-static {p2, v0}, Lqh0/s;->h(Ljava/lang/Object;Ljava/lang/String;)V

    const-string v0, "timelineDiskCache"

    invoke-static {p3, v0}, Lqh0/s;->h(Ljava/lang/Object;Ljava/lang/String;)V

    const-string v0, "prefetchTimelineMemoryCache"

    invoke-static {p4, v0}, Lqh0/s;->h(Ljava/lang/Object;Ljava/lang/String;)V

    const-string v0, "timelineCacheUtilsImpl"

    invoke-static {p5, v0}, Lqh0/s;->h(Ljava/lang/Object;Ljava/lang/String;)V

    const-string v0, "timelineResponseParser"

    invoke-static {p6, v0}, Lqh0/s;->h(Ljava/lang/Object;Ljava/lang/String;)V

    const-string v0, "userBlogCache"

    invoke-static {p7, v0}, Lqh0/s;->h(Ljava/lang/Object;Ljava/lang/String;)V

    const-string v0, "appScope"

    invoke-static {p8, v0}, Lqh0/s;->h(Ljava/lang/Object;Ljava/lang/String;)V

    const-string v0, "dispatcherProvider"

    invoke-static {p9, v0}, Lqh0/s;->h(Ljava/lang/Object;Ljava/lang/String;)V

    const-string v0, "buildConfiguration"

    invoke-static {p10, v0}, Lqh0/s;->h(Ljava/lang/Object;Ljava/lang/String;)V

    const-string v0, "deleteTimelineObjectFromMemoryCacheTask"

    invoke-static {p11, v0}, Lqh0/s;->h(Ljava/lang/Object;Ljava/lang/String;)V

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    iput-object p1, p0, Loa0/j;->a:Lcom/tumblr/rumblr/TumblrService;

    iput-object p2, p0, Loa0/j;->b:Lpa0/e;

    iput-object p3, p0, Loa0/j;->c:Lpa0/d;

    iput-object p4, p0, Loa0/j;->d:Lpa0/e;

    iput-object p5, p0, Loa0/j;->e:Loa0/m;

    iput-object p6, p0, Loa0/j;->f:Loa0/y;

    iput-object p7, p0, Loa0/j;->g:Lft/j0;

    iput-object p8, p0, Loa0/j;->h:Lbi0/l0;

    iput-object p9, p0, Loa0/j;->i:Leu/a;

    iput-object p10, p0, Loa0/j;->j:Low/a;

    iput-object p11, p0, Loa0/j;->k:Lch0/a;

    sget-object p1, Lva/b;->UNKNOWN:Lva/b;

    iput-object p1, p0, Loa0/j;->m:Lva/b;

    new-instance p1, Ljava/util/HashMap;

    invoke-direct {p1}, Ljava/util/HashMap;-><init>()V

    iput-object p1, p0, Loa0/j;->l:Ljava/util/Map;

    return-void
.end method

.method public static final synthetic H(Loa0/j;)Lbi0/l0;
    .locals 0

    iget-object p0, p0, Loa0/j;->h:Lbi0/l0;

    return-object p0
.end method

.method public static final synthetic I(Loa0/j;)Lpa0/e;
    .locals 0

    iget-object p0, p0, Loa0/j;->d:Lpa0/e;

    return-object p0
.end method

.method public static final synthetic J(Loa0/j;)Lpa0/d;
    .locals 0

    iget-object p0, p0, Loa0/j;->c:Lpa0/d;

    return-object p0
.end method

.method public static final synthetic K(Loa0/j;)Lpa0/e;
    .locals 0

    iget-object p0, p0, Loa0/j;->b:Lpa0/e;

    return-object p0
.end method

.method public static final synthetic L(Loa0/j;Loa0/u;Loa0/x;Lretrofit2/Response;Ljava/lang/Throwable;ZZ)V
    .locals 0

    invoke-direct/range {p0 .. p6}, Loa0/j;->S(Loa0/u;Loa0/x;Lretrofit2/Response;Ljava/lang/Throwable;ZZ)V

    return-void
.end method

.method public static final synthetic M(Loa0/j;Loa0/u;Loa0/x;Ljava/util/List;Lcom/tumblr/timeline/model/link/TimelinePaginationLink;Ljava/util/Map;Z)V
    .locals 0

    invoke-direct/range {p0 .. p6}, Loa0/j;->U(Loa0/u;Loa0/x;Ljava/util/List;Lcom/tumblr/timeline/model/link/TimelinePaginationLink;Ljava/util/Map;Z)V

    return-void
.end method

.method public static final synthetic N(Loa0/j;Lza0/s;Loa0/x;Loa0/u;Z)V
    .locals 0

    invoke-direct {p0, p1, p2, p3, p4}, Loa0/j;->V(Lza0/s;Loa0/x;Loa0/u;Z)V

    return-void
.end method

.method private final O(Loa0/x;Lpa0/b;Loa0/u;)Z
    .locals 1

    invoke-static {p2, p1}, Ldh0/v;->a(Ljava/lang/Object;Ljava/lang/Object;)Ldh0/p;

    move-result-object p1

    iget-object p2, p0, Loa0/j;->l:Ljava/util/Map;

    invoke-interface {p2, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p2

    check-cast p2, Ljava/util/List;

    invoke-direct {p0, p2}, Loa0/j;->R(Ljava/util/List;)Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-static {p2}, Lqh0/s;->e(Ljava/lang/Object;)V

    invoke-interface {p2, p3}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    const/4 p1, 0x1

    return p1

    :cond_0
    new-instance p2, Ljava/util/ArrayList;

    invoke-direct {p2}, Ljava/util/ArrayList;-><init>()V

    invoke-virtual {p2, p3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    iget-object p3, p0, Loa0/j;->l:Ljava/util/Map;

    invoke-interface {p3, p1, p2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    const/4 p1, 0x0

    return p1
.end method

.method private final P(Lza0/s;Loa0/x;Loa0/u;ZZ)V
    .locals 23

    move-object/from16 v7, p0

    move-object/from16 v3, p1

    move-object/from16 v8, p2

    move-object/from16 v1, p3

    invoke-interface/range {p3 .. p3}, Loa0/u;->K1()Lpa0/b;

    move-result-object v9

    invoke-static {v9}, Lqh0/s;->e(Ljava/lang/Object;)V

    invoke-direct {v7, v8, v9}, Loa0/j;->Q(Loa0/x;Lpa0/b;)Loa0/j$b;

    move-result-object v0

    instance-of v2, v1, Loa0/h;

    const-string v4, "TimelineCacheImpl"

    if-eqz v2, :cond_1

    sget-object v2, Loa0/j$b;->COOL_START_MEMORY:Loa0/j$b;

    if-eq v0, v2, :cond_0

    sget-object v2, Loa0/j$b;->COLD_START_DISK:Loa0/j$b;

    if-ne v0, v2, :cond_1

    :cond_0
    const-string v0, "No need to trigger early dashboard request as there is a valid prefetch to consume."

    invoke-static {v4, v0}, Ltz/a;->c(Ljava/lang/String;Ljava/lang/String;)V

    return-void

    :cond_1
    invoke-direct {v7, v8, v9, v1}, Loa0/j;->O(Loa0/x;Lpa0/b;Loa0/u;)Z

    move-result v2

    if-eqz v2, :cond_2

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "Already ongoing request for "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    const-string v1, ", and added listener to callback list."

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v4, v0}, Ltz/a;->c(Ljava/lang/String;Ljava/lang/String;)V

    return-void

    :cond_2
    sget-object v2, Loa0/j$b;->NEW_POSTS_INDICATOR:Loa0/j$b;

    const-string v5, " "

    const/4 v6, 0x0

    const-string v10, ""

    if-eq v0, v2, :cond_a

    sget-object v2, Loa0/j$b;->COOL_START_MEMORY:Loa0/j$b;

    if-ne v0, v2, :cond_3

    goto/16 :goto_4

    :cond_3
    sget-object v2, Loa0/j$b;->COLD_START_DISK:Loa0/j$b;

    if-ne v0, v2, :cond_8

    iget-object v0, v7, Loa0/j;->c:Lpa0/d;

    invoke-interface {v0, v9}, Lpa0/d;->d(Lpa0/b;)J

    move-result-wide v12

    sget-object v0, Ljava/util/concurrent/TimeUnit;->HOURS:Ljava/util/concurrent/TimeUnit;

    invoke-static {}, Lhw/c;->e()Lhw/b;

    move-result-object v2

    sget-object v14, Lhw/e;->DASHBOARD_BACKGROUND_PREFETCH_CONSUMPTION_MAX_AGE:Lhw/e;

    const/4 v15, 0x2

    const/4 v11, 0x0

    invoke-static {v2, v14, v6, v15, v11}, Lhw/b;->d(Lhw/b;Lhw/e;ZILjava/lang/Object;)Ljava/lang/String;

    move-result-object v2

    if-eqz v2, :cond_4

    invoke-static {v2}, Ljava/lang/Long;->parseLong(Ljava/lang/String;)J

    move-result-wide v14

    goto :goto_0

    :cond_4
    const-wide/16 v14, 0x0

    :goto_0
    invoke-virtual {v0, v14, v15}, Ljava/util/concurrent/TimeUnit;->toMillis(J)J

    move-result-wide v14

    cmp-long v0, v12, v14

    if-gez v0, :cond_6

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "Timeline: Disk cache was a prefetch from "

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, v12, v13}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    const-string v2, "ms ago. Consuming instead of retrieving from network."

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v4, v0}, Ltz/a;->c(Ljava/lang/String;Ljava/lang/String;)V

    sget-object v0, Lzo/e;->PREFETCH_CONSUMPTION:Lzo/e;

    sget-object v2, Lcom/tumblr/analytics/ScreenType;->DASHBOARD:Lcom/tumblr/analytics/ScreenType;

    sget-object v17, Lzo/d;->TYPE:Lzo/d;

    const-string v18, "disk"

    sget-object v19, Lzo/d;->PULT_UUID:Lzo/d;

    invoke-static {}, Lbp/c;->g()Lbp/c;

    move-result-object v11

    invoke-virtual {v11}, Lbp/c;->i()Ljava/lang/String;

    move-result-object v11

    if-nez v11, :cond_5

    move-object/from16 v20, v10

    goto :goto_1

    :cond_5
    move-object/from16 v20, v11

    :goto_1
    sget-object v21, Lzo/d;->PREFETCH_AGE:Lzo/d;

    invoke-static {v12, v13}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v22

    invoke-static/range {v17 .. v22}, Lcom/google/common/collect/ImmutableMap;->of(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableMap;

    move-result-object v10

    invoke-static {v0, v2, v10}, Lzo/n;->g(Lzo/e;Lcom/tumblr/analytics/ScreenType;Ljava/util/Map;)Lzo/m;

    move-result-object v0

    invoke-static {v0}, Lzo/r0;->h0(Lzo/m;)V

    const/16 v16, 0x1

    goto/16 :goto_7

    :cond_6
    sget-object v0, Lzo/e;->PREFETCH_CONSUMPTION_DISK_EXPIRED:Lzo/e;

    sget-object v2, Lcom/tumblr/analytics/ScreenType;->DASHBOARD:Lcom/tumblr/analytics/ScreenType;

    sget-object v11, Lzo/d;->PULT_UUID:Lzo/d;

    invoke-static {}, Lbp/c;->g()Lbp/c;

    move-result-object v14

    invoke-virtual {v14}, Lbp/c;->i()Ljava/lang/String;

    move-result-object v14

    if-nez v14, :cond_7

    goto :goto_2

    :cond_7
    move-object v10, v14

    :goto_2
    sget-object v14, Lzo/d;->PREFETCH_AGE:Lzo/d;

    invoke-static {v12, v13}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v12

    invoke-static {v11, v10, v14, v12}, Lcom/google/common/collect/ImmutableMap;->of(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableMap;

    move-result-object v10

    invoke-static {v0, v2, v10}, Lzo/n;->g(Lzo/e;Lcom/tumblr/analytics/ScreenType;Ljava/util/Map;)Lzo/m;

    move-result-object v0

    invoke-static {v0}, Lzo/r0;->h0(Lzo/m;)V

    move/from16 v16, v6

    const/4 v6, 0x1

    goto/16 :goto_7

    :cond_8
    sget-object v0, Lcom/tumblr/ui/fragment/GraywaterDashboardFragment;->X2:Lpa0/b;

    if-ne v9, v0, :cond_c

    sget-object v0, Loa0/x;->AUTO_REFRESH:Loa0/x;

    if-ne v8, v0, :cond_c

    sget-object v0, Lzo/e;->PREFETCH_CONSUMPTION_UNAVAILABLE:Lzo/e;

    sget-object v2, Lcom/tumblr/analytics/ScreenType;->DASHBOARD:Lcom/tumblr/analytics/ScreenType;

    sget-object v11, Lzo/d;->PULT_UUID:Lzo/d;

    invoke-static {}, Lbp/c;->g()Lbp/c;

    move-result-object v12

    invoke-virtual {v12}, Lbp/c;->i()Ljava/lang/String;

    move-result-object v12

    if-nez v12, :cond_9

    goto :goto_3

    :cond_9
    move-object v10, v12

    :goto_3
    invoke-static {v11, v10}, Lcom/google/common/collect/ImmutableMap;->of(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableMap;

    move-result-object v10

    invoke-static {v0, v2, v10}, Lzo/n;->g(Lzo/e;Lcom/tumblr/analytics/ScreenType;Ljava/util/Map;)Lzo/m;

    move-result-object v0

    invoke-static {v0}, Lzo/r0;->h0(Lzo/m;)V

    goto :goto_6

    :cond_a
    :goto_4
    invoke-virtual/range {p1 .. p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;

    move-result-object v0

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v11, "Timeline: Transferring "

    invoke-virtual {v2, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    const-string v0, " from prefetched cache to memory cache"

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v4, v0}, Ltz/a;->c(Ljava/lang/String;Ljava/lang/String;)V

    iget-object v0, v7, Loa0/j;->d:Lpa0/e;

    invoke-interface {v0, v9}, Lpa0/e;->m(Lpa0/b;)Lpa0/c;

    move-result-object v0

    if-eqz v0, :cond_c

    iget-object v2, v7, Loa0/j;->b:Lpa0/e;

    invoke-virtual {v0}, Lpa0/c;->b()Ljava/util/concurrent/CopyOnWriteArrayList;

    move-result-object v11

    invoke-virtual {v0}, Lpa0/c;->c()Lcom/tumblr/timeline/model/link/TimelinePaginationLink;

    move-result-object v12

    invoke-virtual {v0}, Lpa0/c;->a()Ljava/util/Map;

    move-result-object v0

    invoke-interface {v2, v9, v11, v12, v0}, Lpa0/e;->k(Lpa0/b;Ljava/util/concurrent/CopyOnWriteArrayList;Lcom/tumblr/timeline/model/link/TimelinePaginationLink;Ljava/util/Map;)V

    iget-object v0, v7, Loa0/j;->c:Lpa0/d;

    const/4 v2, 0x1

    invoke-interface {v0, v9, v2}, Lpa0/d;->f(Lpa0/b;Z)V

    sget-object v0, Lzo/e;->PREFETCH_CONSUMPTION:Lzo/e;

    sget-object v11, Lcom/tumblr/analytics/ScreenType;->DASHBOARD:Lcom/tumblr/analytics/ScreenType;

    sget-object v12, Lzo/d;->TYPE:Lzo/d;

    sget-object v13, Lzo/d;->PULT_UUID:Lzo/d;

    invoke-static {}, Lbp/c;->g()Lbp/c;

    move-result-object v14

    invoke-virtual {v14}, Lbp/c;->i()Ljava/lang/String;

    move-result-object v14

    if-nez v14, :cond_b

    goto :goto_5

    :cond_b
    move-object v10, v14

    :goto_5
    const-string v14, "memory"

    invoke-static {v12, v14, v13, v10}, Lcom/google/common/collect/ImmutableMap;->of(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableMap;

    move-result-object v10

    invoke-static {v0, v11, v10}, Lzo/n;->g(Lzo/e;Lcom/tumblr/analytics/ScreenType;Ljava/util/Map;)Lzo/m;

    move-result-object v0

    invoke-static {v0}, Lzo/r0;->h0(Lzo/m;)V

    move/from16 v16, v2

    goto :goto_7

    :cond_c
    :goto_6
    move/from16 v16, v6

    :goto_7
    sget-object v0, Loa0/x;->RESUME:Loa0/x;

    if-ne v8, v0, :cond_d

    sget-object v2, Lcom/tumblr/ui/fragment/GraywaterDashboardFragment;->X2:Lpa0/b;

    invoke-static {v9, v2}, Lqh0/s;->c(Ljava/lang/Object;Ljava/lang/Object;)Z

    move-result v10

    if-eqz v10, :cond_d

    iget-object v10, v7, Loa0/j;->l:Ljava/util/Map;

    invoke-static {v2, v0}, Ldh0/v;->a(Ljava/lang/Object;Ljava/lang/Object;)Ldh0/p;

    move-result-object v0

    invoke-interface {v10, v0}, Ljava/util/Map;->remove(Ljava/lang/Object;)Ljava/lang/Object;

    if-nez v6, :cond_d

    return-void

    :cond_d
    sget-object v0, Loa0/x;->FROM_CACHE:Loa0/x;

    const-string v2, "Timeline: Performing "

    if-eq v8, v0, :cond_e

    if-nez v16, :cond_e

    invoke-direct {v7, v8, v3}, Loa0/j;->W(Loa0/x;Lza0/s;)Z

    move-result v0

    if-nez v0, :cond_f

    :cond_e
    move/from16 v6, p5

    goto :goto_b

    :cond_f
    invoke-virtual/range {p1 .. p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;

    move-result-object v0

    new-instance v6, Ljava/lang/StringBuilder;

    invoke-direct {v6}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v6, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v6, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v6, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v6, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    const-string v0, " from network"

    invoke-virtual {v6, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v4, v0}, Ltz/a;->c(Ljava/lang/String;Ljava/lang/String;)V

    instance-of v0, v3, Lza0/i;

    if-nez v0, :cond_12

    instance-of v0, v3, Lza0/k;

    if-nez v0, :cond_12

    instance-of v0, v3, Lza0/l;

    if-eqz v0, :cond_10

    goto :goto_9

    :cond_10
    instance-of v0, v3, Lza0/t;

    if-eqz v0, :cond_11

    move-object v0, v3

    check-cast v0, Lza0/t;

    invoke-virtual {v0}, Lza0/t;->f()Z

    move-result v0

    if-eqz v0, :cond_11

    invoke-static {}, Lbp/c;->g()Lbp/c;

    move-result-object v0

    invoke-virtual {v0, v8}, Lbp/c;->S(Loa0/x;)V

    :cond_11
    :goto_8
    move/from16 v6, p5

    goto :goto_a

    :cond_12
    :goto_9
    invoke-static {}, Lbp/c;->g()Lbp/c;

    move-result-object v0

    invoke-virtual {v0, v8}, Lbp/c;->S(Loa0/x;)V

    goto :goto_8

    :goto_a
    invoke-direct {v7, v3, v8, v1, v6}, Loa0/j;->V(Lza0/s;Loa0/x;Loa0/u;Z)V

    goto :goto_c

    :goto_b
    invoke-virtual/range {p1 .. p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;

    move-result-object v0

    new-instance v10, Ljava/lang/StringBuilder;

    invoke-direct {v10}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v10, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v10, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v10, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v10, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    const-string v0, " from cache"

    invoke-virtual {v10, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v10}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v4, v0}, Ltz/a;->c(Ljava/lang/String;Ljava/lang/String;)V

    new-instance v10, Loa0/j$d;

    move-object v0, v10

    move-object/from16 v1, p3

    move/from16 v2, p4

    move-object/from16 v3, p1

    move-object/from16 v4, p2

    move-object/from16 v5, p0

    move/from16 v6, p5

    invoke-direct/range {v0 .. v6}, Loa0/j$d;-><init>(Loa0/u;ZLza0/s;Loa0/x;Loa0/j;Z)V

    invoke-virtual {v7, v9, v8, v10}, Loa0/j;->r(Lpa0/b;Loa0/x;Lpa0/a$a;)V

    :goto_c
    return-void
.end method

.method private final Q(Loa0/x;Lpa0/b;)Loa0/j$b;
    .locals 2

    sget-object v0, Lcom/tumblr/ui/fragment/GraywaterDashboardFragment;->X2:Lpa0/b;

    if-eq p2, v0, :cond_0

    sget-object p1, Loa0/j$b;->NONE:Loa0/j$b;

    goto :goto_0

    :cond_0
    sget-object v0, Loa0/x;->NEW_POSTS_INDICATOR_FETCH:Loa0/x;

    if-ne p1, v0, :cond_1

    sget-object v0, Lhw/e;->Companion:Lhw/e$b;

    sget-object v1, Lhw/e;->NEW_POSTS_INDICATOR_PREFETCH:Lhw/e;

    invoke-virtual {v0, v1}, Lhw/e$b;->e(Lhw/e;)Z

    move-result v0

    if-eqz v0, :cond_1

    iget-object v0, p0, Loa0/j;->d:Lpa0/e;

    invoke-interface {v0, p2}, Lpa0/e;->o(Lpa0/b;)Z

    move-result v0

    if-eqz v0, :cond_1

    sget-object p1, Loa0/j$b;->NEW_POSTS_INDICATOR:Loa0/j$b;

    goto :goto_0

    :cond_1
    sget-object v0, Loa0/x;->AUTO_REFRESH:Loa0/x;

    if-ne p1, v0, :cond_2

    iget-object v1, p0, Loa0/j;->b:Lpa0/e;

    invoke-interface {v1, p2}, Lpa0/e;->o(Lpa0/b;)Z

    move-result v1

    if-nez v1, :cond_2

    iget-object v1, p0, Loa0/j;->d:Lpa0/e;

    invoke-interface {v1, p2}, Lpa0/e;->o(Lpa0/b;)Z

    move-result v1

    if-eqz v1, :cond_2

    sget-object p1, Loa0/j$b;->COOL_START_MEMORY:Loa0/j$b;

    goto :goto_0

    :cond_2
    iget-object v1, p0, Loa0/j;->c:Lpa0/d;

    invoke-interface {v1, p2}, Lpa0/d;->c(Lpa0/b;)Ljava/lang/Boolean;

    move-result-object v1

    if-ne p1, v0, :cond_3

    iget-object p1, p0, Loa0/j;->b:Lpa0/e;

    invoke-interface {p1, p2}, Lpa0/e;->o(Lpa0/b;)Z

    move-result p1

    if-nez p1, :cond_3

    if-eqz v1, :cond_3

    invoke-virtual {v1}, Ljava/lang/Boolean;->booleanValue()Z

    move-result p1

    if-nez p1, :cond_3

    sget-object p1, Loa0/j$b;->COLD_START_DISK:Loa0/j$b;

    goto :goto_0

    :cond_3
    sget-object p1, Loa0/j$b;->NONE:Loa0/j$b;

    :goto_0
    return-object p1
.end method

.method private final R(Ljava/util/List;)Z
    .locals 1

    if-eqz p1, :cond_2

    invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object p1

    if-eqz p1, :cond_2

    :cond_0
    invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_1

    invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Loa0/u;

    invoke-interface {v0}, Loa0/u;->a()Z

    move-result v0

    if-eqz v0, :cond_0

    const/4 p1, 0x1

    return p1

    :cond_1
    sget-object p1, Ldh0/f0;->a:Ldh0/f0;

    :cond_2
    const/4 p1, 0x0

    return p1
.end method

.method private final S(Loa0/u;Loa0/x;Lretrofit2/Response;Ljava/lang/Throwable;ZZ)V
    .locals 9

    iget-object v0, p0, Loa0/j;->l:Ljava/util/Map;

    invoke-interface {p1}, Loa0/u;->K1()Lpa0/b;

    move-result-object v1

    invoke-static {v1, p2}, Ldh0/v;->a(Ljava/lang/Object;Ljava/lang/Object;)Ldh0/p;

    move-result-object v1

    invoke-interface {v0, v1}, Ljava/util/Map;->remove(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/List;

    if-eqz v0, :cond_2

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v0

    if-eqz v0, :cond_2

    const/4 v1, 0x0

    :cond_0
    :goto_0
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_1

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Loa0/u;

    invoke-interface {v2}, Loa0/u;->a()Z

    move-result v3

    if-eqz v3, :cond_0

    move-object v3, v2

    move-object v4, p2

    move-object v5, p3

    move-object v6, p4

    move v7, p5

    move v8, p6

    invoke-interface/range {v3 .. v8}, Loa0/u;->h0(Loa0/x;Lretrofit2/Response;Ljava/lang/Throwable;ZZ)V

    if-ne p1, v2, :cond_0

    const/4 v1, 0x1

    goto :goto_0

    :cond_1
    if-nez v1, :cond_3

    :cond_2
    invoke-interface/range {p1 .. p6}, Loa0/u;->h0(Loa0/x;Lretrofit2/Response;Ljava/lang/Throwable;ZZ)V

    :cond_3
    return-void
.end method

.method private final T(Loa0/u;Loa0/x;Lretrofit2/Call;)V
    .locals 1

    iget-object v0, p0, Loa0/j;->l:Ljava/util/Map;

    invoke-interface {p1}, Loa0/u;->K1()Lpa0/b;

    move-result-object p1

    invoke-static {p1, p2}, Ldh0/v;->a(Ljava/lang/Object;Ljava/lang/Object;)Ldh0/p;

    move-result-object p1

    invoke-interface {v0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Ljava/util/List;

    if-eqz p1, :cond_0

    invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object p1

    if-eqz p1, :cond_0

    :goto_0
    invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z

    move-result p2

    if-eqz p2, :cond_0

    invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object p2

    check-cast p2, Loa0/u;

    invoke-interface {p2, p3}, Loa0/u;->u2(Lretrofit2/Call;)V

    goto :goto_0

    :cond_0
    return-void
.end method

.method private final U(Loa0/u;Loa0/x;Ljava/util/List;Lcom/tumblr/timeline/model/link/TimelinePaginationLink;Ljava/util/Map;Z)V
    .locals 9

    iget-object v0, p0, Loa0/j;->l:Ljava/util/Map;

    invoke-interface {p1}, Loa0/u;->K1()Lpa0/b;

    move-result-object v1

    invoke-static {v1, p2}, Ldh0/v;->a(Ljava/lang/Object;Ljava/lang/Object;)Ldh0/p;

    move-result-object v1

    invoke-interface {v0, v1}, Ljava/util/Map;->remove(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/List;

    if-eqz v0, :cond_2

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v0

    if-eqz v0, :cond_2

    const/4 v1, 0x0

    :cond_0
    :goto_0
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_1

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Loa0/u;

    invoke-interface {v2}, Loa0/u;->a()Z

    move-result v3

    if-eqz v3, :cond_0

    move-object v3, v2

    move-object v4, p2

    move-object v5, p3

    move-object v6, p4

    move-object v7, p5

    move v8, p6

    invoke-interface/range {v3 .. v8}, Loa0/u;->O(Loa0/x;Ljava/util/List;Lcom/tumblr/timeline/model/link/TimelinePaginationLink;Ljava/util/Map;Z)V

    if-ne v2, p1, :cond_0

    const/4 v1, 0x1

    goto :goto_0

    :cond_1
    if-nez v1, :cond_3

    :cond_2
    invoke-interface/range {p1 .. p6}, Loa0/u;->O(Loa0/x;Ljava/util/List;Lcom/tumblr/timeline/model/link/TimelinePaginationLink;Ljava/util/Map;Z)V

    :cond_3
    return-void
.end method

.method private final V(Lza0/s;Loa0/x;Loa0/u;Z)V
    .locals 7

    iget-object v0, p0, Loa0/j;->a:Lcom/tumblr/rumblr/TumblrService;

    invoke-virtual {p1, v0}, Lza0/s;->d(Lcom/tumblr/rumblr/TumblrService;)Lretrofit2/Call;

    move-result-object v0

    iget-object v3, p0, Loa0/j;->g:Lft/j0;

    iget-object v5, p0, Loa0/j;->j:Low/a;

    move-object v1, p1

    move-object v2, p0

    move-object v4, p2

    move-object v6, p3

    invoke-virtual/range {v1 .. v6}, Lza0/s;->a(Lpa0/a;Lft/j0;Loa0/x;Low/a;Loa0/u;)Lretrofit2/Callback;

    move-result-object p1

    if-eqz p4, :cond_0

    invoke-direct {p0, p3, p2, v0}, Loa0/j;->T(Loa0/u;Loa0/x;Lretrofit2/Call;)V

    :try_start_0
    invoke-interface {v0}, Lretrofit2/Call;->execute()Lretrofit2/Response;

    move-result-object p2

    invoke-interface {p1, v0, p2}, Lretrofit2/Callback;->onResponse(Lretrofit2/Call;Lretrofit2/Response;)V
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception p2

    const-string p3, "TimelineCacheImpl"

    const-string p4, "Error executing call."

    invoke-static {p3, p4, p2}, Ltz/a;->f(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V

    invoke-interface {p1, v0, p2}, Lretrofit2/Callback;->onFailure(Lretrofit2/Call;Ljava/lang/Throwable;)V

    goto :goto_0

    :cond_0
    invoke-interface {v0, p1}, Lretrofit2/Call;->enqueue(Lretrofit2/Callback;)V

    invoke-direct {p0, p3, p2, v0}, Loa0/j;->T(Loa0/u;Loa0/x;Lretrofit2/Call;)V

    :goto_0
    return-void
.end method

.method private final W(Loa0/x;Lza0/s;)Z
    .locals 1

    invoke-virtual {p1}, Loa0/x;->h()Z

    move-result v0

    if-nez v0, :cond_1

    invoke-virtual {p2}, Lza0/s;->e()Z

    move-result p2

    if-nez p2, :cond_1

    sget-object p2, Loa0/x;->SYNC:Loa0/x;

    if-eq p1, p2, :cond_1

    sget-object p2, Loa0/x;->NEW_POSTS_INDICATOR_PREFETCH:Loa0/x;

    if-eq p1, p2, :cond_1

    sget-object p2, Loa0/x;->BACKGROUND_PREFETCH:Loa0/x;

    if-ne p1, p2, :cond_0

    goto :goto_0

    :cond_0
    const/4 p1, 0x0

    goto :goto_1

    :cond_1
    :goto_0
    const/4 p1, 0x1

    :goto_1
    return p1
.end method


# virtual methods
.method public A(Lqa0/j;Lretrofit2/Response;)V ## onTimelineRecieved
    .locals 8

    const-string v0, "timelineCallback"

    invoke-static {p1, v0}, Lqh0/s;->h(Ljava/lang/Object;Ljava/lang/String;)V

    const-string v0, "response"

    invoke-static {p2, v0}, Lqh0/s;->h(Ljava/lang/Object;Ljava/lang/String;)V

    invoke-virtual {p1}, Lqa0/b;->b()Loa0/x;

    move-result-object v3

    invoke-virtual {p2}, Lretrofit2/Response;->body()Ljava/lang/Object;

    move-result-object v0

    if-nez v0, :cond_1

    invoke-virtual {p1}, Lqa0/b;->a()Loa0/u;

    move-result-object v2

    if-eqz v2, :cond_0

    const/4 v5, 0x0

    const/4 v6, 0x1

    const/4 v7, 0x0

    move-object v1, p0

    move-object v4, p2

    invoke-direct/range {v1 .. v7}, Loa0/j;->S(Loa0/u;Loa0/x;Lretrofit2/Response;Ljava/lang/Throwable;ZZ)V

    :cond_0
    return-void

    :cond_1
    iget-object v0, p0, Loa0/j;->f:Loa0/y;

    new-instance v1, Loa0/j$e;

    invoke-direct {v1, p1, v3, p0}, Loa0/j$e;-><init>(Lqa0/j;Loa0/x;Loa0/j;)V

    invoke-virtual {v0, p2, p1, v1}, Loa0/y;->d(Lretrofit2/Response;Lqa0/j;Loa0/y$b;)V

    return-void
.end method

.method public B(Lpa0/b;)Lpa0/c;
    .locals 1

    const-string v0, "cacheKey"

    invoke-static {p1, v0}, Lqh0/s;->h(Ljava/lang/Object;Ljava/lang/String;)V

    iget-object v0, p0, Loa0/j;->b:Lpa0/e;

    invoke-interface {v0, p1}, Lpa0/e;->n(Lpa0/b;)Lpa0/c;

    move-result-object p1

    return-object p1
.end method

.method public C(Lpa0/b;)Z
    .locals 1

    const-string v0, "cacheKey"

    invoke-static {p1, v0}, Lqh0/s;->h(Ljava/lang/Object;Ljava/lang/String;)V

    iget-object v0, p0, Loa0/j;->d:Lpa0/e;

    invoke-interface {v0, p1}, Lpa0/e;->o(Lpa0/b;)Z

    move-result p1

    return p1
.end method

.method public D(Lqa0/o;Lretrofit2/Response;)V
    .locals 8

    const-string v0, "timelineCallback"

    invoke-static {p1, v0}, Lqh0/s;->h(Ljava/lang/Object;Ljava/lang/String;)V

    const-string v0, "response"

    invoke-static {p2, v0}, Lqh0/s;->h(Ljava/lang/Object;Ljava/lang/String;)V

    invoke-virtual {p1}, Lqa0/b;->b()Loa0/x;

    move-result-object v3

    invoke-static {}, Lbp/c;->g()Lbp/c;

    move-result-object v0

    invoke-virtual {v0, v3}, Lbp/c;->R(Loa0/x;)V

    invoke-virtual {p2}, Lretrofit2/Response;->body()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/tumblr/rumblr/response/ApiResponse;

    const/4 v1, 0x0

    if-eqz v0, :cond_0

    invoke-virtual {v0}, Lcom/tumblr/rumblr/response/ApiResponse;->getResponse()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/tumblr/rumblr/interfaces/Pageable;

    goto :goto_0

    :cond_0
    move-object v2, v1

    :goto_0
    if-eqz v0, :cond_1

    invoke-virtual {v0}, Lcom/tumblr/rumblr/response/ApiResponse;->getResponse()Ljava/lang/Object;

    move-result-object v0

    move-object v1, v0

    check-cast v1, Lcom/tumblr/rumblr/interfaces/Pageable;

    :cond_1
    if-eqz v1, :cond_3

    if-nez v2, :cond_2

    goto :goto_1

    :cond_2
    iget-object p2, p0, Loa0/j;->f:Loa0/y;

    new-instance v0, Loa0/j$f;

    invoke-direct {v0, p1, v2, v3, p0}, Loa0/j$f;-><init>(Lqa0/o;Lcom/tumblr/rumblr/interfaces/Pageable;Loa0/x;Loa0/j;)V

    invoke-virtual {p2, v2, p1, v0}, Loa0/y;->c(Lcom/tumblr/rumblr/interfaces/Pageable;Lqa0/o;Loa0/y$c;)V

    return-void

    :cond_3
    :goto_1
    invoke-virtual {p1}, Lqa0/b;->a()Loa0/u;

    move-result-object v2

    if-eqz v2, :cond_4

    const/4 v5, 0x0

    const/4 v6, 0x1

    const/4 v7, 0x0

    move-object v1, p0

    move-object v4, p2

    invoke-direct/range {v1 .. v7}, Loa0/j;->S(Loa0/u;Loa0/x;Lretrofit2/Response;Ljava/lang/Throwable;ZZ)V

    :cond_4
    return-void
.end method

.method public E(Lza0/s;Loa0/x;Loa0/u;Z)V
    .locals 7

    const-string v0, "query"

    invoke-static {p1, v0}, Lqh0/s;->h(Ljava/lang/Object;Ljava/lang/String;)V

    const-string v0, "requestType"

    invoke-static {p2, v0}, Lqh0/s;->h(Ljava/lang/Object;Ljava/lang/String;)V

    const-string v0, "listener"

    invoke-static {p3, v0}, Lqh0/s;->h(Ljava/lang/Object;Ljava/lang/String;)V

    const/4 v6, 0x0

    move-object v1, p0

    move-object v2, p1

    move-object v3, p2

    move-object v4, p3

    move v5, p4

    invoke-direct/range {v1 .. v6}, Loa0/j;->P(Lza0/s;Loa0/x;Loa0/u;ZZ)V

    return-void
.end method

.method public F(Lpa0/a;Lpa0/b;Lua0/i0;)V
    .locals 1

    const-string v0, "timelineCache"

    invoke-static {p1, v0}, Lqh0/s;->h(Ljava/lang/Object;Ljava/lang/String;)V

    const-string v0, "cacheKey"

    invoke-static {p2, v0}, Lqh0/s;->h(Ljava/lang/Object;Ljava/lang/String;)V

    const-string v0, "timelineObject"

    invoke-static {p3, v0}, Lqh0/s;->h(Ljava/lang/Object;Ljava/lang/String;)V

    iget-object v0, p0, Loa0/j;->e:Loa0/m;

    invoke-virtual {v0, p1, p2, p3}, Loa0/m;->F(Lpa0/a;Lpa0/b;Lua0/i0;)V

    return-void
.end method

.method public G(ILjava/lang/Class;)Lua0/i0;
    .locals 5

    const-string v0, "clazz"

    invoke-static {p2, v0}, Lqh0/s;->h(Ljava/lang/Object;Ljava/lang/String;)V

    iget-object v0, p0, Loa0/j;->b:Lpa0/e;

    invoke-interface {v0}, Lpa0/e;->l()Ljava/util/Set;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :goto_0
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_2

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/util/Map$Entry;

    invoke-interface {v1}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lpa0/c;

    invoke-virtual {v1}, Lpa0/c;->b()Ljava/util/concurrent/CopyOnWriteArrayList;

    move-result-object v1

    monitor-enter v1

    :try_start_0
    invoke-virtual {v1}, Ljava/util/concurrent/CopyOnWriteArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v2

    const-string v3, "iterator(...)"

    invoke-static {v2, v3}, Lqh0/s;->g(Ljava/lang/Object;Ljava/lang/String;)V

    :cond_0
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v3

    if-eqz v3, :cond_1

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lua0/i0;

    invoke-virtual {v3}, Lua0/i0;->a()I

    move-result v4

    if-ne v4, p1, :cond_0

    invoke-static {v3, p2}, Lbu/c1;->c(Ljava/lang/Object;Ljava/lang/Class;)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Lua0/i0;
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    monitor-exit v1

    return-object p1

    :catchall_0
    move-exception p1

    goto :goto_1

    :cond_1
    :try_start_1
    sget-object v2, Ldh0/f0;->a:Ldh0/f0;
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    monitor-exit v1

    goto :goto_0

    :goto_1
    monitor-exit v1

    throw p1

    :cond_2
    const/4 p1, 0x0

    return-object p1
.end method

.method public a()V
    .locals 2

    iget-object v0, p0, Loa0/j;->b:Lpa0/e;

    invoke-interface {v0}, Lpa0/e;->a()V

    iget-object v0, p0, Loa0/j;->c:Lpa0/d;

    invoke-interface {v0}, Lpa0/d;->a()V

    const-string v0, "TimelineCacheImpl"

    const-string v1, "Cleared Timeline Cache."

    invoke-static {v0, v1}, Ltz/a;->c(Ljava/lang/String;Ljava/lang/String;)V

    return-void
.end method

.method public b(Ljava/lang/String;)V
    .locals 2

    const-string v0, "regex"

    invoke-static {p1, v0}, Lqh0/s;->h(Ljava/lang/Object;Ljava/lang/String;)V

    iget-object v0, p0, Loa0/j;->b:Lpa0/e;

    invoke-interface {v0, p1}, Lpa0/e;->b(Ljava/lang/String;)V

    iget-object v0, p0, Loa0/j;->c:Lpa0/d;

    invoke-interface {v0, p1}, Lpa0/d;->b(Ljava/lang/String;)V

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "Cleared keys that contains "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    const-string v0, "TimelineCacheImpl"

    invoke-static {v0, p1}, Ltz/a;->c(Ljava/lang/String;Ljava/lang/String;)V

    return-void
.end method

.method public c(Lua0/i0;)V
    .locals 1

    const-string v0, "timelineObject"

    invoke-static {p1, v0}, Lqh0/s;->h(Ljava/lang/Object;Ljava/lang/String;)V

    iget-object v0, p0, Loa0/j;->b:Lpa0/e;

    invoke-interface {v0, p1}, Lpa0/e;->c(Lua0/i0;)V

    return-void
.end method

.method public d(Lpa0/b;)V
    .locals 1

    const-string v0, "cacheKey"

    invoke-static {p1, v0}, Lqh0/s;->h(Ljava/lang/Object;Ljava/lang/String;)V

    iget-object v0, p0, Loa0/j;->b:Lpa0/e;

    invoke-interface {v0, p1}, Lpa0/e;->d(Lpa0/b;)V

    return-void
.end method

.method public e(Lpa0/b;ILua0/i0;)V
    .locals 1

    const-string v0, "key"

    invoke-static {p1, v0}, Lqh0/s;->h(Ljava/lang/Object;Ljava/lang/String;)V

    const-string v0, "timelineObject"

    invoke-static {p3, v0}, Lqh0/s;->h(Ljava/lang/Object;Ljava/lang/String;)V

    iget-object v0, p0, Loa0/j;->b:Lpa0/e;

    invoke-interface {v0, p1, p2, p3}, Lpa0/e;->e(Lpa0/b;ILua0/i0;)V

    return-void
.end method

.method public f(Lpa0/b;)V
    .locals 1

    const-string v0, "cacheKey"

    invoke-static {p1, v0}, Lqh0/s;->h(Ljava/lang/Object;Ljava/lang/String;)V

    iget-object v0, p0, Loa0/j;->b:Lpa0/e;

    invoke-interface {v0, p1}, Lpa0/e;->f(Lpa0/b;)V

    return-void
.end method

.method public g(Lua0/i0;)V
    .locals 1

    const-string v0, "timelineObject"

    invoke-static {p1, v0}, Lqh0/s;->h(Ljava/lang/Object;Ljava/lang/String;)V

    iget-object v0, p0, Loa0/j;->b:Lpa0/e;

    invoke-interface {v0, p1}, Lpa0/e;->g(Lua0/i0;)V

    return-void
.end method

.method public h(Ljava/util/List;)V
    .locals 1

    const-string v0, "timelineObjects"

    invoke-static {p1, v0}, Lqh0/s;->h(Ljava/lang/Object;Ljava/lang/String;)V

    iget-object v0, p0, Loa0/j;->b:Lpa0/e;

    invoke-interface {v0, p1}, Lpa0/e;->h(Ljava/util/List;)V

    return-void
.end method

.method public i(Ljava/lang/Object;Ljava/lang/Class;)Lra0/o;
    .locals 1

    const-string v0, "id"

    invoke-static {p1, v0}, Lqh0/s;->h(Ljava/lang/Object;Ljava/lang/String;)V

    const-string v0, "clazz"

    invoke-static {p2, v0}, Lqh0/s;->h(Ljava/lang/Object;Ljava/lang/String;)V

    iget-object v0, p0, Loa0/j;->b:Lpa0/e;

    invoke-interface {v0, p1, p2}, Lpa0/e;->i(Ljava/lang/Object;Ljava/lang/Class;)Lra0/o;

    move-result-object p1

    return-object p1
.end method

.method public j(Lpa0/a;Ljava/lang/String;Ljava/lang/String;)V
    .locals 1

    const-string v0, "timelineCache"

    invoke-static {p1, v0}, Lqh0/s;->h(Ljava/lang/Object;Ljava/lang/String;)V

    iget-object v0, p0, Loa0/j;->e:Loa0/m;

    invoke-virtual {v0, p1, p2, p3}, Loa0/m;->j(Lpa0/a;Ljava/lang/String;Ljava/lang/String;)V

    return-void
.end method

.method public k(Lpa0/a;Lpa0/b;Lua0/i0;)V
    .locals 1

    const-string v0, "timelineCache"

    invoke-static {p1, v0}, Lqh0/s;->h(Ljava/lang/Object;Ljava/lang/String;)V

    const-string v0, "timelineObject"

    invoke-static {p3, v0}, Lqh0/s;->h(Ljava/lang/Object;Ljava/lang/String;)V

    iget-object v0, p0, Loa0/j;->e:Loa0/m;

    invoke-virtual {v0, p1, p2, p3}, Loa0/m;->k(Lpa0/a;Lpa0/b;Lua0/i0;)V

    return-void
.end method

.method public l(Ldh0/p;)Ljava/util/List;
    .locals 1

    const-string v0, "pair"

    invoke-static {p1, v0}, Lqh0/s;->h(Ljava/lang/Object;Ljava/lang/String;)V

    iget-object v0, p0, Loa0/j;->l:Ljava/util/Map;

    invoke-interface {v0, p1}, Ljava/util/Map;->remove(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Ljava/util/List;

    return-object p1
.end method

.method public m(Lpa0/b;Ljava/util/Set;Ljava/util/Set;)V
    .locals 1

    iget-object v0, p0, Loa0/j;->e:Loa0/m;

    invoke-virtual {v0, p1, p2, p3}, Loa0/m;->m(Lpa0/b;Ljava/util/Set;Ljava/util/Set;)V

    return-void
.end method

.method public n(Ljava/lang/String;Lpa0/b;)V
    .locals 8

    const-string v0, "blogName"

    invoke-static {p1, v0}, Lqh0/s;->h(Ljava/lang/Object;Ljava/lang/String;)V

    new-instance v0, Loa0/b;

    iget-object v2, p0, Loa0/j;->b:Lpa0/e;

    iget-object v6, p0, Loa0/j;->h:Lbi0/l0;

    iget-object v7, p0, Loa0/j;->i:Leu/a;

    move-object v1, v0

    move-object v3, p0

    move-object v4, p1

    move-object v5, p2

    invoke-direct/range {v1 .. v7}, Loa0/b;-><init>(Lpa0/e;Lpa0/a;Ljava/lang/String;Lpa0/b;Lbi0/l0;Leu/a;)V

    invoke-virtual {v0}, Loa0/b;->h()Lbi0/v1;

    return-void
.end method

.method public o(Lpa0/a;Lpa0/b;Ljava/lang/String;Ljava/lang/Object;)V
    .locals 1

    const-string v0, "timelineCache"

    invoke-static {p1, v0}, Lqh0/s;->h(Ljava/lang/Object;Ljava/lang/String;)V

    const-string v0, "key"

    invoke-static {p2, v0}, Lqh0/s;->h(Ljava/lang/Object;Ljava/lang/String;)V

    const-string v0, "extraKey"

    invoke-static {p3, v0}, Lqh0/s;->h(Ljava/lang/Object;Ljava/lang/String;)V

    const-string v0, "value"

    invoke-static {p4, v0}, Lqh0/s;->h(Ljava/lang/Object;Ljava/lang/String;)V

    iget-object v0, p0, Loa0/j;->e:Loa0/m;

    invoke-virtual {v0, p1, p2, p3, p4}, Loa0/m;->o(Lpa0/a;Lpa0/b;Ljava/lang/String;Ljava/lang/Object;)V

    return-void
.end method

.method public p(Lva/b;)V
    .locals 1

    const-string v0, "connectionQuality"

    invoke-static {p1, v0}, Lqh0/s;->h(Ljava/lang/Object;Ljava/lang/String;)V

    iput-object p1, p0, Loa0/j;->m:Lva/b;

    return-void
.end method

.method public q(Lqa0/j;Lretrofit2/Response;Ljava/lang/Throwable;Z)V
    .locals 8

    const-string v0, "timelineCallback"

    invoke-static {p1, v0}, Lqh0/s;->h(Ljava/lang/Object;Ljava/lang/String;)V

    invoke-virtual {p1}, Lqa0/b;->a()Loa0/u;

    move-result-object v2

    if-eqz v2, :cond_0

    invoke-virtual {p1}, Lqa0/b;->b()Loa0/x;

    move-result-object v3

    const/4 v6, 0x1

    move-object v1, p0

    move-object v4, p2

    move-object v5, p3

    move v7, p4

    invoke-direct/range {v1 .. v7}, Loa0/j;->S(Loa0/u;Loa0/x;Lretrofit2/Response;Ljava/lang/Throwable;ZZ)V

    :cond_0
    return-void
.end method

.method public r(Lpa0/b;Loa0/x;Lpa0/a$a;)V
    .locals 2

    const-string v0, "key"

    invoke-static {p1, v0}, Lqh0/s;->h(Ljava/lang/Object;Ljava/lang/String;)V

    iget-object v0, p0, Loa0/j;->b:Lpa0/e;

    invoke-interface {v0, p1}, Lpa0/e;->o(Lpa0/b;)Z

    move-result v0

    if-eqz v0, :cond_0

    if-eqz p3, :cond_1

    iget-object p2, p0, Loa0/j;->b:Lpa0/e;

    invoke-interface {p2, p1}, Lpa0/e;->n(Lpa0/b;)Lpa0/c;

    move-result-object p1

    invoke-interface {p3, p1}, Lpa0/a$a;->a(Lpa0/c;)V

    goto :goto_0

    :cond_0
    invoke-static {}, Lbp/c;->g()Lbp/c;

    move-result-object v0

    invoke-virtual {v0, p2}, Lbp/c;->L(Loa0/x;)V

    iget-object v0, p0, Loa0/j;->c:Lpa0/d;

    new-instance v1, Loa0/j$c;

    invoke-direct {v1, p3, p2}, Loa0/j$c;-><init>(Lpa0/a$a;Loa0/x;)V

    invoke-interface {v0, p1, v1}, Lpa0/d;->g(Lpa0/b;Lpa0/d$a;)V

    :cond_1
    :goto_0
    return-void
.end method

.method public s(Ljava/lang/String;)V
    .locals 1

    iget-object v0, p0, Loa0/j;->e:Loa0/m;

    invoke-virtual {v0, p1}, Loa0/m;->s(Ljava/lang/String;)V

    return-void
.end method

.method public t(Lpa0/a;Lpa0/b;Lua0/i0;Lua0/i0;)V
    .locals 1

    const-string v0, "timelineCache"

    invoke-static {p1, v0}, Lqh0/s;->h(Ljava/lang/Object;Ljava/lang/String;)V

    const-string v0, "key"

    invoke-static {p2, v0}, Lqh0/s;->h(Ljava/lang/Object;Ljava/lang/String;)V

    const-string v0, "item"

    invoke-static {p3, v0}, Lqh0/s;->h(Ljava/lang/Object;Ljava/lang/String;)V

    const-string v0, "updatedItem"

    invoke-static {p4, v0}, Lqh0/s;->h(Ljava/lang/Object;Ljava/lang/String;)V

    iget-object v0, p0, Loa0/j;->e:Loa0/m;

    invoke-virtual {v0, p1, p2, p3, p4}, Loa0/m;->t(Lpa0/a;Lpa0/b;Lua0/i0;Lua0/i0;)V

    return-void
.end method

.method public u(Lpa0/b;Ljava/util/Set;)V
    .locals 1

    iget-object v0, p0, Loa0/j;->e:Loa0/m;

    invoke-virtual {v0, p1, p2}, Loa0/m;->u(Lpa0/b;Ljava/util/Set;)V

    return-void
.end method

.method public v(Ljava/lang/String;Ljava/lang/String;)Lpa0/b;
    .locals 1

    const-string v0, "blogName"

    invoke-static {p1, v0}, Lqh0/s;->h(Ljava/lang/Object;Ljava/lang/String;)V

    iget-object v0, p0, Loa0/j;->e:Loa0/m;

    invoke-virtual {v0, p1, p2}, Loa0/m;->v(Ljava/lang/String;Ljava/lang/String;)Lpa0/b;

    move-result-object p1

    return-object p1
.end method

.method public w(Lqa0/o;Lretrofit2/Response;Ljava/lang/Throwable;Z)V
    .locals 8

    const-string v0, "timelineCallback"

    invoke-static {p1, v0}, Lqh0/s;->h(Ljava/lang/Object;Ljava/lang/String;)V

    invoke-virtual {p1}, Lqa0/b;->a()Loa0/u;

    move-result-object v2

    if-eqz v2, :cond_0

    invoke-virtual {p1}, Lqa0/b;->b()Loa0/x;

    move-result-object v3

    const/4 v6, 0x1

    move-object v1, p0

    move-object v4, p2

    move-object v5, p3

    move v7, p4

    invoke-direct/range {v1 .. v7}, Loa0/j;->S(Loa0/u;Loa0/x;Lretrofit2/Response;Ljava/lang/Throwable;ZZ)V

    :cond_0
    return-void
.end method

.method public x(Ljava/lang/String;)V
    .locals 1

    if-eqz p1, :cond_1

    invoke-interface {p1}, Ljava/lang/CharSequence;->length()I

    move-result v0

    if-nez v0, :cond_0

    goto :goto_0

    :cond_0
    iget-object v0, p0, Loa0/j;->k:Lch0/a;

    invoke-interface {v0}, Lch0/a;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Loa0/e;

    invoke-virtual {v0, p1}, Loa0/e;->f(Ljava/lang/String;)Lbi0/v1;

    :cond_1
    :goto_0
    return-void
.end method

.method public y(Lpa0/a;Lpa0/b;Lua0/i0;Ljava/util/List;)V
    .locals 1

    const-string v0, "timelineCache"

    invoke-static {p1, v0}, Lqh0/s;->h(Ljava/lang/Object;Ljava/lang/String;)V

    const-string v0, "key"

    invoke-static {p2, v0}, Lqh0/s;->h(Ljava/lang/Object;Ljava/lang/String;)V

    const-string v0, "after"

    invoke-static {p3, v0}, Lqh0/s;->h(Ljava/lang/Object;Ljava/lang/String;)V

    const-string v0, "timelineObjects"

    invoke-static {p4, v0}, Lqh0/s;->h(Ljava/lang/Object;Ljava/lang/String;)V

    iget-object v0, p0, Loa0/j;->e:Loa0/m;

    invoke-virtual {v0, p1, p2, p3, p4}, Loa0/m;->y(Lpa0/a;Lpa0/b;Lua0/i0;Ljava/util/List;)V

    return-void
.end method

.method public z(Lua0/i0;)V
    .locals 7

    if-eqz p1, :cond_1

    invoke-virtual {p1}, Lua0/i0;->a()I

    move-result v0

    if-gez v0, :cond_0

    goto :goto_0

    :cond_0
    new-instance v0, Loa0/g;

    iget-object v2, p0, Loa0/j;->b:Lpa0/e;

    iget-object v5, p0, Loa0/j;->h:Lbi0/l0;

    iget-object v6, p0, Loa0/j;->i:Leu/a;

    move-object v1, v0

    move-object v3, p0

    move-object v4, p1

    invoke-direct/range {v1 .. v6}, Loa0/g;-><init>(Lpa0/e;Lpa0/a;Lua0/i0;Lbi0/l0;Leu/a;)V

    invoke-virtual {v0}, Loa0/g;->g()Lbi0/v1;

    :cond_1
    :goto_0
    return-void
.end method
