.class public Le/h;
.super Ljava/lang/Object;
.source ""


# direct methods
.method public static final a(Lha/x;)Lha/g;
    .registers 2

    const-string v0, "$this$buffer"

    .line 1
    invoke-static {p0, v0}, Lx/e;->f(Ljava/lang/Object;Ljava/lang/String;)V

    new-instance v0, Lha/s;

    invoke-direct {v0, p0}, Lha/s;-><init>(Lha/x;)V

    return-object v0
.end method

.method public static final b(Lha/z;)Lha/h;
    .registers 2

    .line 1
    new-instance v0, Lha/t;

    invoke-direct {v0, p0}, Lha/t;-><init>(Lha/z;)V

    return-object v0
.end method

.method public static c(Lb9/f;Ljava/util/concurrent/CancellationException;ILjava/lang/Object;)V
    .registers 4

    const/4 p1, 0x0

    .line 1
    sget p2, Lq9/t0;->m:I

    sget-object p2, Lq9/t0$b;->r:Lq9/t0$b;

    invoke-interface {p0, p2}, Lb9/f;->get(Lb9/f$b;)Lb9/f$a;

    move-result-object p0

    check-cast p0, Lq9/t0;

    if-nez p0, :cond_e

    goto :goto_11

    :cond_e
    invoke-interface {p0, p1}, Lq9/t0;->P(Ljava/util/concurrent/CancellationException;)V

    :goto_11
    return-void
.end method

.method public static final d(Ljava/lang/Throwable;)Ljava/lang/Object;
    .registers 2

    const-string v0, "exception"

    invoke-static {p0, v0}, Lx/e;->f(Ljava/lang/Object;Ljava/lang/String;)V

    new-instance v0, Ly8/f$a;

    invoke-direct {v0, p0}, Ly8/f$a;-><init>(Ljava/lang/Throwable;)V

    return-object v0
.end method

.method public static final e(Ljava/lang/AssertionError;)Z
    .registers 4

    sget-object v0, Lha/p;->a:Ljava/util/logging/Logger;

    .line 1
    invoke-virtual {p0}, Ljava/lang/AssertionError;->getCause()Ljava/lang/Throwable;

    move-result-object v0

    const/4 v1, 0x0

    if-eqz v0, :cond_1b

    invoke-virtual {p0}, Ljava/lang/AssertionError;->getMessage()Ljava/lang/String;

    move-result-object p0

    if-eqz p0, :cond_17

    const/4 v0, 0x2

    const-string v2, "getsockname failed"

    invoke-static {p0, v2, v1, v0}, Lp9/l;->A(Ljava/lang/CharSequence;Ljava/lang/CharSequence;ZI)Z

    move-result p0

    goto :goto_18

    :cond_17
    move p0, v1

    :goto_18
    if-eqz p0, :cond_1b

    const/4 v1, 0x1

    :cond_1b
    return v1
.end method

.method public static final f(Ljava/net/Socket;)Lha/x;
    .registers 4

    sget-object v0, Lha/p;->a:Ljava/util/logging/Logger;

    .line 1
    new-instance v0, Lha/y;

    invoke-direct {v0, p0}, Lha/y;-><init>(Ljava/net/Socket;)V

    new-instance v1, Lha/r;

    invoke-virtual {p0}, Ljava/net/Socket;->getOutputStream()Ljava/io/OutputStream;

    move-result-object p0

    const-string v2, "getOutputStream()"

    invoke-static {p0, v2}, Lx/e;->e(Ljava/lang/Object;Ljava/lang/String;)V

    invoke-direct {v1, p0, v0}, Lha/r;-><init>(Ljava/io/OutputStream;Lha/a0;)V

    .line 2
    new-instance p0, Lha/c;

    invoke-direct {p0, v0, v1}, Lha/c;-><init>(Lha/b;Lha/x;)V

    return-object p0
.end method

.method public static final g(Ljava/net/Socket;)Lha/z;
    .registers 4

    sget-object v0, Lha/p;->a:Ljava/util/logging/Logger;

    .line 1
    new-instance v0, Lha/y;

    invoke-direct {v0, p0}, Lha/y;-><init>(Ljava/net/Socket;)V

    new-instance v1, Lha/o;

    invoke-virtual {p0}, Ljava/net/Socket;->getInputStream()Ljava/io/InputStream;

    move-result-object p0

    const-string v2, "getInputStream()"

    invoke-static {p0, v2}, Lx/e;->e(Ljava/lang/Object;Ljava/lang/String;)V

    invoke-direct {v1, p0, v0}, Lha/o;-><init>(Ljava/io/InputStream;Lha/a0;)V

    .line 2
    new-instance p0, Lha/d;

    invoke-direct {p0, v0, v1}, Lha/d;-><init>(Lha/b;Lha/z;)V

    return-object p0
.end method

.method public static final h(Ljava/lang/Object;)V
    .registers 2

    instance-of v0, p0, Ly8/f$a;

    if-nez v0, :cond_5

    return-void

    :cond_5
    check-cast p0, Ly8/f$a;

    iget-object p0, p0, Ly8/f$a;->r:Ljava/lang/Throwable;

    throw p0
.end method

.method public static i(Lg6/d;Ls1/g;Lg6/h;Ljava/lang/Boolean;Ljava/lang/Boolean;)Lg6/d;
    .registers 12

    new-instance v0, Lg6/d;

    invoke-direct {v0}, Lg6/d;-><init>()V

    invoke-virtual {p0}, Lg6/d;->k()Ljava/util/Iterator;

    move-result-object v1

    :cond_9
    :goto_9
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_5c

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

    move-result-object v2

    check-cast v2, Ljava/lang/Integer;

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

    move-result v2

    invoke-virtual {p0, v2}, Lg6/d;->o(I)Z

    move-result v3

    if-eqz v3, :cond_9

    const/4 v3, 0x3

    new-array v3, v3, [Lg6/n;

    const/4 v4, 0x0

    invoke-virtual {p0, v2}, Lg6/d;->i(I)Lg6/n;

    move-result-object v5

    aput-object v5, v3, v4

    new-instance v4, Lg6/g;

    int-to-double v5, v2

    invoke-static {v5, v6}, Ljava/lang/Double;->valueOf(D)Ljava/lang/Double;

    move-result-object v5

    invoke-direct {v4, v5}, Lg6/g;-><init>(Ljava/lang/Double;)V

    const/4 v5, 0x1

    aput-object v4, v3, v5

    const/4 v4, 0x2

    aput-object p0, v3, v4

    invoke-static {v3}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;

    move-result-object v3

    invoke-virtual {p2, p1, v3}, Lg6/h;->b(Ls1/g;Ljava/util/List;)Lg6/n;

    move-result-object v3

    invoke-interface {v3}, Lg6/n;->zzg()Ljava/lang/Boolean;

    move-result-object v4

    invoke-virtual {v4, p3}, Ljava/lang/Boolean;->equals(Ljava/lang/Object;)Z

    move-result v4

    if-eqz v4, :cond_4c

    return-object v0

    :cond_4c
    if-eqz p4, :cond_58

    invoke-interface {v3}, Lg6/n;->zzg()Ljava/lang/Boolean;

    move-result-object v4

    invoke-virtual {v4, p4}, Ljava/lang/Boolean;->equals(Ljava/lang/Object;)Z

    move-result v4

    if-eqz v4, :cond_9

    :cond_58
    invoke-virtual {v0, v2, v3}, Lg6/d;->n(ILg6/n;)V

    goto :goto_9

    :cond_5c
    return-object v0
.end method

.method public static j(Lg6/d;Ls1/g;Ljava/util/List;Z)Lg6/n;
    .registers 13
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lg6/d;",
            "Ls1/g;",
            "Ljava/util/List<",
            "Lg6/n;",
            ">;Z)",
            "Lg6/n;"
        }
    .end annotation

    const-string v0, "reduce"

    const/4 v1, 0x1

    invoke-static {v0, v1, p2}, Le/d;->v(Ljava/lang/String;ILjava/util/List;)V

    const/4 v2, 0x2

    invoke-static {v0, v2, p2}, Le/d;->w(Ljava/lang/String;ILjava/util/List;)V

    const/4 v0, 0x0

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

    move-result-object v3

    check-cast v3, Lg6/n;

    invoke-virtual {p1, v3}, Ls1/g;->g(Lg6/n;)Lg6/n;

    move-result-object v3

    instance-of v4, v3, Lg6/h;

    if-eqz v4, :cond_9f

    invoke-interface {p2}, Ljava/util/List;->size()I

    move-result v4

    if-ne v4, v2, :cond_36

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

    move-result-object p2

    check-cast p2, Lg6/n;

    invoke-virtual {p1, p2}, Ls1/g;->g(Lg6/n;)Lg6/n;

    move-result-object p2

    instance-of v4, p2, Lg6/f;

    if-nez v4, :cond_2e

    goto :goto_3d

    :cond_2e
    new-instance p0, Ljava/lang/IllegalArgumentException;

    const-string p1, "Failed to parse initial value"

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

    throw p0

    :cond_36
    invoke-virtual {p0}, Lg6/d;->h()I

    move-result p2

    if-eqz p2, :cond_97

    const/4 p2, 0x0

    :goto_3d
    check-cast v3, Lg6/h;

    invoke-virtual {p0}, Lg6/d;->h()I

    move-result v4

    if-eqz p3, :cond_47

    move v5, v0

    goto :goto_49

    :cond_47
    add-int/lit8 v5, v4, -0x1

    :goto_49
    const/4 v6, -0x1

    if-eqz p3, :cond_4e

    add-int/2addr v4, v6

    goto :goto_4f

    :cond_4e
    move v4, v0

    :goto_4f
    if-eq v1, p3, :cond_52

    goto :goto_53

    :cond_52
    move v6, v1

    :goto_53
    if-nez p2, :cond_5a

    invoke-virtual {p0, v5}, Lg6/d;->i(I)Lg6/n;

    move-result-object p2

    goto :goto_94

    :cond_5a
    :goto_5a
    sub-int p3, v4, v5

    mul-int/2addr p3, v6

    if-ltz p3, :cond_96

    invoke-virtual {p0, v5}, Lg6/d;->o(I)Z

    move-result p3

    if-eqz p3, :cond_94

    const/4 p3, 0x4

    new-array p3, p3, [Lg6/n;

    aput-object p2, p3, v0

    invoke-virtual {p0, v5}, Lg6/d;->i(I)Lg6/n;

    move-result-object p2

    aput-object p2, p3, v1

    new-instance p2, Lg6/g;

    int-to-double v7, v5

    invoke-static {v7, v8}, Ljava/lang/Double;->valueOf(D)Ljava/lang/Double;

    move-result-object v7

    invoke-direct {p2, v7}, Lg6/g;-><init>(Ljava/lang/Double;)V

    aput-object p2, p3, v2

    const/4 p2, 0x3

    aput-object p0, p3, p2

    invoke-static {p3}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;

    move-result-object p2

    invoke-virtual {v3, p1, p2}, Lg6/h;->b(Ls1/g;Ljava/util/List;)Lg6/n;

    move-result-object p2

    instance-of p3, p2, Lg6/f;

    if-nez p3, :cond_8c

    goto :goto_94

    :cond_8c
    new-instance p0, Ljava/lang/IllegalStateException;

    const-string p1, "Reduce operation failed"

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

    throw p0

    :cond_94
    :goto_94
    add-int/2addr v5, v6

    goto :goto_5a

    :cond_96
    return-object p2

    :cond_97
    new-instance p0, Ljava/lang/IllegalStateException;

    const-string p1, "Empty array with no initial value error"

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

    throw p0

    :cond_9f
    new-instance p0, Ljava/lang/IllegalArgumentException;

    const-string p1, "Callback should be a method"

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

    throw p0
.end method
