.class public Lr3/c;
.super Ljava/lang/Object;
.source ""

# interfaces
.implements Lq3/m;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lr3/c$a;
    }
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ljava/lang/Object;",
        "Lq3/m<",
        "Landroid/net/Uri;",
        "Ljava/io/InputStream;",
        ">;"
    }
.end annotation


# instance fields
.field public final a:Landroid/content/Context;


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .registers 2

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

    invoke-virtual {p1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;

    move-result-object p1

    iput-object p1, p0, Lr3/c;->a:Landroid/content/Context;

    return-void
.end method


# virtual methods
.method public a(Ljava/lang/Object;IILk3/e;)Lq3/m$a;
    .registers 7

    check-cast p1, Landroid/net/Uri;

    .line 1
    invoke-static {p2, p3}, Landroidx/appcompat/widget/p;->b(II)Z

    move-result p2

    if-eqz p2, :cond_3b

    .line 2
    sget-object p2, Lt3/y;->d:Lk3/d;

    invoke-virtual {p4, p2}, Lk3/e;->c(Lk3/d;)Ljava/lang/Object;

    move-result-object p2

    check-cast p2, Ljava/lang/Long;

    if-eqz p2, :cond_1e

    invoke-virtual {p2}, Ljava/lang/Long;->longValue()J

    move-result-wide p2

    const-wide/16 v0, -0x1

    cmp-long p2, p2, v0

    if-nez p2, :cond_1e

    const/4 p2, 0x1

    goto :goto_1f

    :cond_1e
    const/4 p2, 0x0

    :goto_1f
    if-eqz p2, :cond_3b

    .line 3
    new-instance p2, Lq3/m$a;

    new-instance p3, Lf4/b;

    invoke-direct {p3, p1}, Lf4/b;-><init>(Ljava/lang/Object;)V

    iget-object p4, p0, Lr3/c;->a:Landroid/content/Context;

    .line 4
    new-instance v0, Ll3/a$b;

    invoke-virtual {p4}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v1

    invoke-direct {v0, v1}, Ll3/a$b;-><init>(Landroid/content/ContentResolver;)V

    invoke-static {p4, p1, v0}, Ll3/a;->c(Landroid/content/Context;Landroid/net/Uri;Ll3/b;)Ll3/a;

    move-result-object p1

    .line 5
    invoke-direct {p2, p3, p1}, Lq3/m$a;-><init>(Lk3/c;Lcom/bumptech/glide/load/data/d;)V

    goto :goto_3c

    :cond_3b
    const/4 p2, 0x0

    :goto_3c
    return-object p2
.end method

.method public b(Ljava/lang/Object;)Z
    .registers 3

    check-cast p1, Landroid/net/Uri;

    .line 1
    invoke-static {p1}, Landroidx/appcompat/widget/p;->a(Landroid/net/Uri;)Z

    move-result v0

    if-eqz v0, :cond_16

    .line 2
    invoke-virtual {p1}, Landroid/net/Uri;->getPathSegments()Ljava/util/List;

    move-result-object p1

    const-string v0, "video"

    invoke-interface {p1, v0}, Ljava/util/List;->contains(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_16

    const/4 p1, 0x1

    goto :goto_17

    :cond_16
    const/4 p1, 0x0

    :goto_17
    return p1
.end method
