.class public abstract Lz5/pj1;
.super Ljava/lang/Object;
.source ""

# interfaces
.implements Lz5/bm1;


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "<MessageType:",
        "Lz5/pj1<",
        "TMessageType;TBuilderType;>;BuilderType:",
        "Lz5/oj1<",
        "TMessageType;TBuilderType;>;>",
        "Ljava/lang/Object;",
        "Lz5/bm1;"
    }
.end annotation


# instance fields
.field public zza:I


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

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

    const/4 v0, 0x0

    iput v0, p0, Lz5/pj1;->zza:I

    return-void
.end method

.method public static h(Ljava/lang/Iterable;Ljava/util/List;)V
    .registers 5
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "<T:",
            "Ljava/lang/Object;",
            ">(",
            "Ljava/lang/Iterable<",
            "TT;>;",
            "Ljava/util/List<",
            "-TT;>;)V"
        }
    .end annotation

    sget-object v0, Lz5/gl1;->a:Ljava/nio/charset/Charset;

    .line 1
    invoke-static {p0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;

    .line 2
    instance-of v0, p1, Ljava/util/ArrayList;

    if-eqz v0, :cond_18

    move-object v0, p1

    check-cast v0, Ljava/util/ArrayList;

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

    move-result v1

    invoke-interface {p0}, Ljava/util/Collection;->size()I

    move-result v2

    add-int/2addr v2, v1

    invoke-virtual {v0, v2}, Ljava/util/ArrayList;->ensureCapacity(I)V

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

    move-result v0

    invoke-interface {p0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;

    move-result-object p0

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

    move-result v1

    if-eqz v1, :cond_5b

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

    move-result-object v1

    if-nez v1, :cond_57

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

    move-result p0

    const/16 v1, 0x25

    const-string v2, "Element at index "

    invoke-static {v1, v2}, Landroidx/fragment/app/a;->a(ILjava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    sub-int/2addr p0, v0

    invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string p0, " is null."

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

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

    move-result-object p0

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

    move-result v1

    :goto_49
    add-int/lit8 v1, v1, -0x1

    if-lt v1, v0, :cond_51

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

    goto :goto_49

    :cond_51
    new-instance p1, Ljava/lang/NullPointerException;

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

    throw p1

    :cond_57
    invoke-interface {p1, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_20

    :cond_5b
    return-void
.end method


# virtual methods
.method public final a()Lz5/zj1;
    .registers 7

    :try_start_0
    move-object v0, p0

    check-cast v0, Lz5/xk1;

    invoke-virtual {v0}, Lz5/xk1;->b()I

    move-result v1

    sget-object v2, Lz5/zj1;->s:Lz5/zj1;

    new-array v2, v1, [B

    sget-object v3, Lz5/hk1;->t:Ljava/util/logging/Logger;

    .line 1
    new-instance v3, Lz5/fk1;

    const/4 v4, 0x0

    invoke-direct {v3, v2, v4, v1}, Lz5/fk1;-><init>([BII)V

    .line 2
    invoke-virtual {v0, v3}, Lz5/xk1;->s(Lz5/hk1;)V

    .line 3
    invoke-virtual {v3}, Lz5/fk1;->N()I

    move-result v0

    if-nez v0, :cond_22

    .line 4
    new-instance v0, Lz5/xj1;

    invoke-direct {v0, v2}, Lz5/xj1;-><init>([B)V

    return-object v0

    .line 5
    :cond_22
    new-instance v0, Ljava/lang/IllegalStateException;

    const-string v1, "Did not write as much data as expected."

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

    throw v0
    :try_end_2a
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_2a} :catch_2a

    :catch_2a
    move-exception v0

    .line 6
    new-instance v1, Ljava/lang/RuntimeException;

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

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/Class;->getName()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/String;->length()I

    move-result v3

    new-instance v4, Ljava/lang/StringBuilder;

    add-int/lit8 v3, v3, 0x48

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

    const-string v3, "Serializing "

    const-string v5, " to a ByteString threw an IOException (should never happen)."

    invoke-static {v4, v3, v2, v5}, Li/b;->a(Ljava/lang/StringBuilder;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

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

    throw v1
.end method

.method public e()I
    .registers 2

    const/4 v0, 0x0

    throw v0
.end method

.method public g(I)V
    .registers 2

    const/4 p1, 0x0

    throw p1
.end method

.method public final j()[B
    .registers 7

    :try_start_0
    move-object v0, p0

    check-cast v0, Lz5/xk1;

    invoke-virtual {v0}, Lz5/xk1;->b()I

    move-result v1

    new-array v2, v1, [B

    sget-object v3, Lz5/hk1;->t:Ljava/util/logging/Logger;

    .line 1
    new-instance v3, Lz5/fk1;

    const/4 v4, 0x0

    invoke-direct {v3, v2, v4, v1}, Lz5/fk1;-><init>([BII)V

    .line 2
    invoke-virtual {v0, v3}, Lz5/xk1;->s(Lz5/hk1;)V

    .line 3
    invoke-virtual {v3}, Lz5/fk1;->N()I

    move-result v0

    if-nez v0, :cond_1b

    return-object v2

    :cond_1b
    new-instance v0, Ljava/lang/IllegalStateException;

    const-string v1, "Did not write as much data as expected."

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

    throw v0
    :try_end_23
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_23} :catch_23

    :catch_23
    move-exception v0

    .line 4
    new-instance v1, Ljava/lang/RuntimeException;

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

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/Class;->getName()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/String;->length()I

    move-result v3

    new-instance v4, Ljava/lang/StringBuilder;

    add-int/lit8 v3, v3, 0x48

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

    const-string v3, "Serializing "

    const-string v5, " to a byte array threw an IOException (should never happen)."

    invoke-static {v4, v3, v2, v5}, Li/b;->a(Ljava/lang/StringBuilder;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

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

    throw v1
.end method
