g.smali

.class public final Lcom/singbox/component/storage/a/g;
.super Ljava/lang/Object;
.source "SourceFile"

# interfaces
.implements Lcom/singbox/component/storage/cleaner/trim/b;


# direct methods
.method public constructor <init>()V
    .registers 1

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

    return-void
.end method


# virtual methods
.method public final a(Lcom/singbox/component/storage/cleaner/e/a;)Ljava/util/List;
    .registers 15
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/singbox/component/storage/cleaner/e/a;",
            ")",
            "Ljava/util/List<",
            "Lcom/singbox/component/storage/cleaner/b;",
            ">;"
        }
    .end annotation

    const/4 v0, 0x0

    if-nez p1, :cond_4

    return-object v0

    .line 1038
    :cond_4
    invoke-static {}, Lcom/singbox/component/storage/cleaner/b/b$a;->a()Lcom/singbox/component/storage/cleaner/b/b;

    move-result-object v1

    const-string v2, "BigoStorageFactory.getInstance()"

    .line 20
    invoke-static {v1, v2}, Lkotlin/f/b/o;->a(Ljava/lang/Object;Ljava/lang/String;)V

    invoke-virtual {v1}, Lcom/singbox/component/storage/cleaner/b/b;->b()Lcom/singbox/component/storage/cleaner/a/b;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v1

    const-string v3, "clazz"

    invoke-static {v1, v3}, Lkotlin/f/b/o;->b(Ljava/lang/Object;Ljava/lang/String;)V

    .line 1046
    const-class v3, Lcom/singbox/component/storage/cleaner/a/a;

    invoke-static {v3, v1}, Lkotlin/f/b/o;->a(Ljava/lang/Object;Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_74

    .line 23
    invoke-interface {p1}, Lcom/singbox/component/storage/cleaner/e/a;->a()J

    move-result-wide v3

    .line 2038
    invoke-static {}, Lcom/singbox/component/storage/cleaner/b/b$a;->a()Lcom/singbox/component/storage/cleaner/b/b;

    move-result-object v1

    .line 24
    invoke-static {v1, v2}, Lkotlin/f/b/o;->a(Ljava/lang/Object;Ljava/lang/String;)V

    invoke-virtual {v1}, Lcom/singbox/component/storage/cleaner/b/b;->c()Lcom/singbox/component/storage/cleaner/d/a;

    move-result-object v1

    const-string v2, "BigoStorageFactory.getInstance().storageParams"

    invoke-static {v1, v2}, Lkotlin/f/b/o;->a(Ljava/lang/Object;Ljava/lang/String;)V

    invoke-interface {v1}, Lcom/singbox/component/storage/cleaner/d/a;->a()J

    move-result-wide v1

    cmp-long v5, v3, v1

    if-gtz v5, :cond_41

    .line 26
    sget-object p1, Lcom/singbox/component/storage/cleaner/trim/b;->a:Ljava/util/List;

    return-object p1

    .line 28
    :cond_41
    invoke-interface {p1}, Lcom/singbox/component/storage/cleaner/e/a;->b()Ljava/util/List;

    move-result-object p1

    if-eqz p1, :cond_6f

    .line 31
    new-instance v0, Ljava/util/ArrayList;

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

    check-cast v0, Ljava/util/List;

    .line 32
    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result v5

    const-wide/16 v6, 0x0

    const/4 v8, 0x0

    :goto_55
    if-ge v8, v5, :cond_6f

    .line 35
    invoke-interface {p1, v8}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v9

    check-cast v9, Lcom/singbox/component/storage/cleaner/b;

    if-nez v9, :cond_60

    goto :goto_6c

    :cond_60
    sub-long v10, v3, v6

    cmp-long v12, v10, v1

    if-lez v12, :cond_69

    .line 37
    invoke-interface {v0, v9}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 2042
    :cond_69
    iget-wide v9, v9, Lcom/singbox/component/storage/cleaner/b;->d:J

    add-long/2addr v6, v9

    :goto_6c
    add-int/lit8 v8, v8, 0x1

    goto :goto_55

    :cond_6f
    if-nez v0, :cond_73

    .line 42
    sget-object v0, Lcom/singbox/component/storage/cleaner/trim/b;->a:Ljava/util/List;

    :cond_73
    return-object v0

    .line 21
    :cond_74
    new-instance p1, Lcom/singbox/component/storage/cleaner/trim/CompareTrimStrategyNotMatchException;

    const-string v0, "must use SingBoxStorageTrimStrategy"

    invoke-direct {p1, v0}, Lcom/singbox/component/storage/cleaner/trim/CompareTrimStrategyNotMatchException;-><init>(Ljava/lang/String;)V

    check-cast p1, Ljava/lang/Throwable;

    goto :goto_7f

    :goto_7e
    throw p1

    :goto_7f
    goto :goto_7e
.end method