t.smali

.class public final Lcom/bumptech/glide/load/model/t;
.super Ljava/lang/Object;
.source "SourceFile"

# interfaces
.implements Lcom/bumptech/glide/load/d;
.implements Lcom/google/android/exoplayer2/source/dash/f;
.implements Lcom/google/android/play/core/internal/w0;


# instance fields
.field public a:Ljava/lang/Object;


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

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

    const-string v0, "MODEL_ATTR_ID_MAP_DAO"

    .line 4
    invoke-static {v0}, Landroid/support/v4/media/c;->b(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    .line 5
    check-cast v0, Lcom/shopee/app/database/orm/dao/t;

    .line 6
    iput-object v0, p0, Lcom/bumptech/glide/load/model/t;->a:Ljava/lang/Object;

    return-void
.end method

.method public synthetic constructor <init>(Landroid/support/v4/media/a;)V
    .registers 2

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

    return-void
.end method

.method public synthetic constructor <init>(Ljava/lang/Object;)V
    .registers 2

    .line 2
    iput-object p1, p0, Lcom/bumptech/glide/load/model/t;->a:Ljava/lang/Object;

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

    return-void
.end method


# virtual methods
.method public final a(J)J
    .registers 3

    const-wide/16 p1, 0x0

    return-wide p1
.end method

.method public final b(JJ)J
    .registers 5

    return-wide p3
.end method

.method public final c(JJ)J
    .registers 5

    const-wide/16 p1, 0x0

    return-wide p1
.end method

.method public final d(JJ)J
    .registers 5

    const-wide p1, -0x7fffffffffffffffL    # -4.9E-324

    return-wide p1
.end method

.method public final e(JJ)J
    .registers 5

    const-wide/16 p1, 0x0

    return-wide p1
.end method

.method public final encode(Ljava/lang/Object;Ljava/io/File;Lcom/bumptech/glide/load/l;)Z
    .registers 7

    .line 1
    check-cast p1, Ljava/io/InputStream;

    .line 2
    iget-object p3, p0, Lcom/bumptech/glide/load/model/t;->a:Ljava/lang/Object;

    check-cast p3, Lcom/bumptech/glide/load/engine/bitmap_recycle/b;

    const-class v0, [B

    const/high16 v1, 0x10000

    invoke-interface {p3, v1, v0}, Lcom/bumptech/glide/load/engine/bitmap_recycle/b;->a(ILjava/lang/Class;)Ljava/lang/Object;

    move-result-object p3

    check-cast p3, [B

    const/4 v0, 0x0

    const/4 v1, 0x0

    .line 3
    :try_start_12
    new-instance v2, Ljava/io/FileOutputStream;

    invoke-direct {v2, p2}, Ljava/io/FileOutputStream;-><init>(Ljava/io/File;)V
    :try_end_17
    .catch Ljava/io/IOException; {:try_start_12 .. :try_end_17} :catch_3d
    .catchall {:try_start_12 .. :try_end_17} :catchall_2f

    .line 4
    :goto_17
    :try_start_17
    invoke-virtual {p1, p3}, Ljava/io/InputStream;->read([B)I

    move-result p2

    const/4 v1, -0x1

    if-eq p2, v1, :cond_22

    .line 5
    invoke-virtual {v2, p3, v0, p2}, Ljava/io/OutputStream;->write([BII)V

    goto :goto_17

    .line 6
    :cond_22
    invoke-virtual {v2}, Ljava/io/OutputStream;->close()V
    :try_end_25
    .catch Ljava/io/IOException; {:try_start_17 .. :try_end_25} :catch_2d
    .catchall {:try_start_17 .. :try_end_25} :catchall_2a

    const/4 v0, 0x1

    .line 7
    :try_start_26
    invoke-virtual {v2}, Ljava/io/OutputStream;->close()V
    :try_end_29
    .catch Ljava/io/IOException; {:try_start_26 .. :try_end_29} :catch_43

    goto :goto_43

    :catchall_2a
    move-exception p1

    move-object v1, v2

    goto :goto_30

    :catch_2d
    move-object v1, v2

    goto :goto_3e

    :catchall_2f
    move-exception p1

    :goto_30
    if-eqz v1, :cond_35

    :try_start_32
    invoke-virtual {v1}, Ljava/io/OutputStream;->close()V
    :try_end_35
    .catch Ljava/io/IOException; {:try_start_32 .. :try_end_35} :catch_35

    .line 8
    :catch_35
    :cond_35
    iget-object p2, p0, Lcom/bumptech/glide/load/model/t;->a:Ljava/lang/Object;

    check-cast p2, Lcom/bumptech/glide/load/engine/bitmap_recycle/b;

    invoke-interface {p2, p3}, Lcom/bumptech/glide/load/engine/bitmap_recycle/b;->put(Ljava/lang/Object;)V

    throw p1

    :catch_3d
    nop

    :goto_3e
    if-eqz v1, :cond_43

    .line 9
    :try_start_40
    invoke-virtual {v1}, Ljava/io/OutputStream;->close()V
    :try_end_43
    .catch Ljava/io/IOException; {:try_start_40 .. :try_end_43} :catch_43

    .line 10
    :catch_43
    :cond_43
    :goto_43
    iget-object p1, p0, Lcom/bumptech/glide/load/model/t;->a:Ljava/lang/Object;

    check-cast p1, Lcom/bumptech/glide/load/engine/bitmap_recycle/b;

    invoke-interface {p1, p3}, Lcom/bumptech/glide/load/engine/bitmap_recycle/b;->put(Ljava/lang/Object;)V

    return v0
.end method

.method public final f(J)J
    .registers 3

    const-wide/16 p1, 0x1

    return-wide p1
.end method

.method public final g()J
    .registers 3

    const-wide/16 v0, 0x0

    return-wide v0
.end method

.method public final h(J)Lcom/google/android/exoplayer2/source/dash/manifest/i;
    .registers 3

    iget-object p1, p0, Lcom/bumptech/glide/load/model/t;->a:Ljava/lang/Object;

    check-cast p1, Lcom/google/android/exoplayer2/source/dash/manifest/i;

    return-object p1
.end method

.method public final i()Z
    .registers 2

    const/4 v0, 0x1

    return v0
.end method

.method public final j(JJ)J
    .registers 5

    const-wide/16 p1, 0x1

    return-wide p1
.end method

.method public final k(I[B)Ljava/util/List;
    .registers 9

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

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

    const/4 v1, 0x0

    const/4 v2, 0x1

    const/4 v3, 0x0

    if-eq p1, v2, :cond_72

    const/16 v4, 0x12

    if-eq p1, v4, :cond_49

    const/16 v4, 0x425

    if-eq p1, v4, :cond_14

    goto/16 :goto_a3

    :cond_14
    if-eqz p2, :cond_46

    .line 2
    :try_start_16
    sget-object p1, Lcom/shopee/app/network/k;->a:Lcom/squareup/wire/Wire;

    array-length v4, p2

    const-class v5, Lcom/shopee/protocol/shop/chat/genericmsg/ChatImageWithTextInfo;

    invoke-virtual {p1, p2, v3, v4, v5}, Lcom/squareup/wire/Wire;->parseFrom([BIILjava/lang/Class;)Lcom/squareup/wire/Message;

    move-result-object p1

    check-cast p1, Lcom/shopee/protocol/shop/chat/genericmsg/ChatImageWithTextInfo;
    :try_end_21
    .catch Ljava/lang/Exception; {:try_start_16 .. :try_end_21} :catch_22

    move-object v1, p1

    :catch_22
    if-nez v1, :cond_25

    goto :goto_46

    .line 3
    :cond_25
    iget-object p1, v1, Lcom/shopee/protocol/shop/chat/genericmsg/ChatImageWithTextInfo;->image_url:Ljava/lang/String;

    .line 4
    iget-object p2, v1, Lcom/shopee/protocol/shop/chat/genericmsg/ChatImageWithTextInfo;->file_server_id:Ljava/lang/Integer;

    if-eqz p2, :cond_30

    invoke-virtual {p2}, Ljava/lang/Integer;->intValue()I

    move-result p2

    goto :goto_31

    :cond_30
    const/4 p2, 0x0

    :goto_31
    if-eqz p2, :cond_3d

    .line 5
    iget-object v1, v1, Lcom/shopee/protocol/shop/chat/genericmsg/ChatImageWithTextInfo;->thumb_url:Ljava/lang/String;

    .line 6
    new-instance v4, Lcom/shopee/app/util/file/uploaders/a;

    invoke-direct {v4, v1, p2, v2}, Lcom/shopee/app/util/file/uploaders/a;-><init>(Ljava/lang/String;IZ)V

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

    .line 7
    :cond_3d
    new-instance v1, Lcom/shopee/app/util/file/uploaders/a;

    invoke-direct {v1, p1, p2, v3}, Lcom/shopee/app/util/file/uploaders/a;-><init>(Ljava/lang/String;IZ)V

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

    goto :goto_a3

    .line 8
    :cond_46
    :goto_46
    sget-object p1, Lkotlin/collections/v;->a:Lkotlin/collections/v;

    return-object p1

    :cond_49
    if-eqz p2, :cond_6f

    .line 9
    :try_start_4b
    sget-object p1, Lcom/shopee/app/network/k;->a:Lcom/squareup/wire/Wire;

    array-length v4, p2

    const-class v5, Lcom/shopee/protocol/shop/ChatVideoInfo;

    invoke-virtual {p1, p2, v3, v4, v5}, Lcom/squareup/wire/Wire;->parseFrom([BIILjava/lang/Class;)Lcom/squareup/wire/Message;

    move-result-object p1

    check-cast p1, Lcom/shopee/protocol/shop/ChatVideoInfo;
    :try_end_56
    .catch Ljava/lang/Exception; {:try_start_4b .. :try_end_56} :catch_57

    move-object v1, p1

    :catch_57
    if-nez v1, :cond_5a

    goto :goto_6f

    .line 10
    :cond_5a
    iget-object p1, v1, Lcom/shopee/protocol/shop/ChatVideoInfo;->thumb_url:Ljava/lang/String;

    .line 11
    new-instance p2, Lcom/shopee/app/util/file/uploaders/a;

    .line 12
    invoke-direct {p2, p1, v3, v2}, Lcom/shopee/app/util/file/uploaders/a;-><init>(Ljava/lang/String;IZ)V

    .line 13
    invoke-virtual {v0, p2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 14
    iget-object p1, v1, Lcom/shopee/protocol/shop/ChatVideoInfo;->video_url:Ljava/lang/String;

    .line 15
    new-instance p2, Lcom/shopee/app/util/file/uploaders/c;

    invoke-direct {p2, p1}, Lcom/shopee/app/util/file/uploaders/c;-><init>(Ljava/lang/String;)V

    .line 16
    invoke-virtual {v0, p2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto :goto_a3

    .line 17
    :cond_6f
    :goto_6f
    sget-object p1, Lkotlin/collections/v;->a:Lkotlin/collections/v;

    return-object p1

    :cond_72
    if-eqz p2, :cond_a4

    .line 18
    :try_start_74
    sget-object p1, Lcom/shopee/app/network/k;->a:Lcom/squareup/wire/Wire;

    array-length v4, p2

    const-class v5, Lcom/shopee/protocol/shop/ChatImageInfo;

    invoke-virtual {p1, p2, v3, v4, v5}, Lcom/squareup/wire/Wire;->parseFrom([BIILjava/lang/Class;)Lcom/squareup/wire/Message;

    move-result-object p1

    check-cast p1, Lcom/shopee/protocol/shop/ChatImageInfo;
    :try_end_7f
    .catch Ljava/lang/Exception; {:try_start_74 .. :try_end_7f} :catch_80

    move-object v1, p1

    :catch_80
    if-nez v1, :cond_83

    goto :goto_a4

    .line 19
    :cond_83
    iget-object p1, v1, Lcom/shopee/protocol/shop/ChatImageInfo;->imageUrl:Ljava/lang/String;

    .line 20
    iget-object p2, v1, Lcom/shopee/protocol/shop/ChatImageInfo;->file_server_id:Ljava/lang/Integer;

    if-eqz p2, :cond_8e

    invoke-virtual {p2}, Ljava/lang/Integer;->intValue()I

    move-result p2

    goto :goto_8f

    :cond_8e
    const/4 p2, 0x0

    :goto_8f
    if-eqz p2, :cond_9b

    .line 21
    iget-object v1, v1, Lcom/shopee/protocol/shop/ChatImageInfo;->thumbUrl:Ljava/lang/String;

    .line 22
    new-instance v4, Lcom/shopee/app/util/file/uploaders/a;

    invoke-direct {v4, v1, p2, v2}, Lcom/shopee/app/util/file/uploaders/a;-><init>(Ljava/lang/String;IZ)V

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

    .line 23
    :cond_9b
    new-instance v1, Lcom/shopee/app/util/file/uploaders/a;

    invoke-direct {v1, p1, p2, v3}, Lcom/shopee/app/util/file/uploaders/a;-><init>(Ljava/lang/String;IZ)V

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

    :goto_a3
    return-object v0

    .line 24
    :cond_a4
    :goto_a4
    sget-object p1, Lkotlin/collections/v;->a:Lkotlin/collections/v;

    return-object p1
.end method

.method public final bridge synthetic zza()Ljava/lang/Object;
    .registers 3

    iget-object v0, p0, Lcom/bumptech/glide/load/model/t;->a:Ljava/lang/Object;

    check-cast v0, Lcom/google/android/play/core/internal/w0;

    check-cast v0, Lcom/google/android/play/core/assetpacks/x2;

    .line 1
    invoke-virtual {v0}, Lcom/google/android/play/core/assetpacks/x2;->a()Landroid/content/Context;

    move-result-object v0

    new-instance v1, Lcom/google/android/play/core/assetpacks/r0;

    .line 2
    invoke-direct {v1, v0}, Lcom/google/android/play/core/assetpacks/r0;-><init>(Landroid/content/Context;)V

    return-object v1
.end method