.class public final Lq8/c;
.super Ln8/w;
.source ""


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ln8/w<",
        "Ljava/util/Date;",
        ">;"
    }
.end annotation


# static fields
.field public static final b:Ln8/x;


# instance fields
.field public final a:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Ljava/text/DateFormat;",
            ">;"
        }
    .end annotation
.end field


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

    new-instance v0, Lq8/c$a;

    invoke-direct {v0}, Lq8/c$a;-><init>()V

    sput-object v0, Lq8/c;->b:Ln8/x;

    return-void
.end method

.method public constructor <init>()V
    .registers 5

    invoke-direct {p0}, Ln8/w;-><init>()V

    new-instance v0, Ljava/util/ArrayList;

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

    iput-object v0, p0, Lq8/c;->a:Ljava/util/List;

    sget-object v1, Ljava/util/Locale;->US:Ljava/util/Locale;

    const/4 v2, 0x2

    invoke-static {v2, v2, v1}, Ljava/text/DateFormat;->getDateTimeInstance(IILjava/util/Locale;)Ljava/text/DateFormat;

    move-result-object v3

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

    invoke-static {}, Ljava/util/Locale;->getDefault()Ljava/util/Locale;

    move-result-object v3

    invoke-virtual {v3, v1}, Ljava/util/Locale;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-nez v3, :cond_25

    invoke-static {v2, v2}, Ljava/text/DateFormat;->getDateTimeInstance(II)Ljava/text/DateFormat;

    move-result-object v2

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

    .line 1
    :cond_25
    sget v2, Lp8/p;->a:I

    const/16 v3, 0x9

    if-lt v2, v3, :cond_2d

    const/4 v2, 0x1

    goto :goto_2e

    :cond_2d
    const/4 v2, 0x0

    :goto_2e
    if-eqz v2, :cond_50

    .line 2
    new-instance v2, Ljava/lang/StringBuilder;

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

    const-string v3, "MMM d, yyyy"

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

    const-string v3, " "

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

    const-string v3, "h:mm:ss a"

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

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

    move-result-object v2

    new-instance v3, Ljava/text/SimpleDateFormat;

    invoke-direct {v3, v2, v1}, Ljava/text/SimpleDateFormat;-><init>(Ljava/lang/String;Ljava/util/Locale;)V

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

    :cond_50
    return-void
.end method


# virtual methods
.method public a(Lu8/a;)Ljava/lang/Object;
    .registers 4

    .line 1
    invoke-virtual {p1}, Lu8/a;->e0()Lu8/b;

    move-result-object v0

    sget-object v1, Lu8/b;->z:Lu8/b;

    if-ne v0, v1, :cond_d

    invoke-virtual {p1}, Lu8/a;->a0()V

    const/4 p1, 0x0

    goto :goto_34

    :cond_d
    invoke-virtual {p1}, Lu8/a;->c0()Ljava/lang/String;

    move-result-object p1

    .line 2
    monitor-enter p0

    :try_start_12
    iget-object v0, p0, Lq8/c;->a:Ljava/util/List;

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

    move-result-object v0

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

    move-result v1

    if-eqz v1, :cond_29

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

    move-result-object v1

    check-cast v1, Ljava/text/DateFormat;
    :try_end_24
    .catchall {:try_start_12 .. :try_end_24} :catchall_3c

    :try_start_24
    invoke-virtual {v1, p1}, Ljava/text/DateFormat;->parse(Ljava/lang/String;)Ljava/util/Date;

    move-result-object p1
    :try_end_28
    .catch Ljava/text/ParseException; {:try_start_24 .. :try_end_28} :catch_18
    .catchall {:try_start_24 .. :try_end_28} :catchall_3c

    goto :goto_33

    :cond_29
    :try_start_29
    new-instance v0, Ljava/text/ParsePosition;

    const/4 v1, 0x0

    invoke-direct {v0, v1}, Ljava/text/ParsePosition;-><init>(I)V

    invoke-static {p1, v0}, Lr8/a;->b(Ljava/lang/String;Ljava/text/ParsePosition;)Ljava/util/Date;

    move-result-object p1
    :try_end_33
    .catch Ljava/text/ParseException; {:try_start_29 .. :try_end_33} :catch_35
    .catchall {:try_start_29 .. :try_end_33} :catchall_3c

    :goto_33
    monitor-exit p0

    :goto_34
    return-object p1

    :catch_35
    move-exception v0

    :try_start_36
    new-instance v1, Ln8/u;

    invoke-direct {v1, p1, v0}, Ln8/u;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V

    throw v1
    :try_end_3c
    .catchall {:try_start_36 .. :try_end_3c} :catchall_3c

    :catchall_3c
    move-exception p1

    monitor-exit p0

    throw p1
.end method

.method public b(Lu8/c;Ljava/lang/Object;)V
    .registers 5

    check-cast p2, Ljava/util/Date;

    .line 1
    monitor-enter p0

    if-nez p2, :cond_a

    :try_start_5
    invoke-virtual {p1}, Lu8/c;->I()Lu8/c;
    :try_end_8
    .catchall {:try_start_5 .. :try_end_8} :catchall_1c

    :goto_8
    monitor-exit p0

    goto :goto_1b

    :cond_a
    :try_start_a
    iget-object v0, p0, Lq8/c;->a:Ljava/util/List;

    const/4 v1, 0x0

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/text/DateFormat;

    invoke-virtual {v0, p2}, Ljava/text/DateFormat;->format(Ljava/util/Date;)Ljava/lang/String;

    move-result-object p2

    invoke-virtual {p1, p2}, Lu8/c;->Z(Ljava/lang/String;)Lu8/c;
    :try_end_1a
    .catchall {:try_start_a .. :try_end_1a} :catchall_1c

    goto :goto_8

    :goto_1b
    return-void

    :catchall_1c
    move-exception p1

    monitor-exit p0

    throw p1
.end method
