.class public final Lf6/n;
.super Ljava/lang/Object;
.source ""

# interfaces
.implements Ly7/f;


# static fields
.field public static final f:Ljava/nio/charset/Charset;

.field public static final g:Ly7/d;

.field public static final h:Ly7/d;

.field public static final i:Ly7/e;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ly7/e<",
            "Ljava/util/Map$Entry<",
            "Ljava/lang/Object;",
            "Ljava/lang/Object;",
            ">;>;"
        }
    .end annotation
.end field


# instance fields
.field public a:Ljava/io/OutputStream;

.field public final b:Ljava/util/Map;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Map<",
            "Ljava/lang/Class<",
            "*>;",
            "Ly7/e<",
            "*>;>;"
        }
    .end annotation
.end field

.field public final c:Ljava/util/Map;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Map<",
            "Ljava/lang/Class<",
            "*>;",
            "Ly7/g<",
            "*>;>;"
        }
    .end annotation
.end field

.field public final d:Ly7/e;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ly7/e<",
            "Ljava/lang/Object;",
            ">;"
        }
    .end annotation
.end field

.field public final e:Lf6/q;


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

    sget-object v0, Lf6/l;->r:Lf6/l;

    const-string v1, "UTF-8"

    invoke-static {v1}, Ljava/nio/charset/Charset;->forName(Ljava/lang/String;)Ljava/nio/charset/Charset;

    move-result-object v1

    sput-object v1, Lf6/n;->f:Ljava/nio/charset/Charset;

    const/4 v1, 0x1

    .line 1
    new-instance v2, Lf6/i;

    move-object v3, v0

    check-cast v3, Lf6/l;

    invoke-direct {v2, v1, v3}, Lf6/i;-><init>(ILf6/l;)V

    .line 2
    new-instance v1, Ljava/util/HashMap;

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

    invoke-interface {v2}, Ljava/lang/annotation/Annotation;->annotationType()Ljava/lang/Class;

    move-result-object v3

    invoke-interface {v1, v3, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 3
    new-instance v2, Ly7/d;

    new-instance v3, Ljava/util/HashMap;

    invoke-direct {v3, v1}, Ljava/util/HashMap;-><init>(Ljava/util/Map;)V

    invoke-static {v3}, Ljava/util/Collections;->unmodifiableMap(Ljava/util/Map;)Ljava/util/Map;

    move-result-object v1

    const-string v3, "key"

    const/4 v4, 0x0

    invoke-direct {v2, v3, v1, v4}, Ly7/d;-><init>(Ljava/lang/String;Ljava/util/Map;Ly7/d$a;)V

    .line 4
    sput-object v2, Lf6/n;->g:Ly7/d;

    const/4 v1, 0x2

    .line 5
    new-instance v2, Lf6/i;

    check-cast v0, Lf6/l;

    invoke-direct {v2, v1, v0}, Lf6/i;-><init>(ILf6/l;)V

    .line 6
    new-instance v0, Ljava/util/HashMap;

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

    invoke-interface {v2}, Ljava/lang/annotation/Annotation;->annotationType()Ljava/lang/Class;

    move-result-object v1

    invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 7
    new-instance v1, Ly7/d;

    new-instance v2, Ljava/util/HashMap;

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

    invoke-static {v2}, Ljava/util/Collections;->unmodifiableMap(Ljava/util/Map;)Ljava/util/Map;

    move-result-object v0

    const-string v2, "value"

    invoke-direct {v1, v2, v0, v4}, Ly7/d;-><init>(Ljava/lang/String;Ljava/util/Map;Ly7/d$a;)V

    .line 8
    sput-object v1, Lf6/n;->h:Ly7/d;

    sget-object v0, Lf6/m;->a:Lf6/m;

    sput-object v0, Lf6/n;->i:Ly7/e;

    return-void
.end method

.method public constructor <init>(Ljava/io/OutputStream;Ljava/util/Map;Ljava/util/Map;Ly7/e;)V
    .registers 6
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/io/OutputStream;",
            "Ljava/util/Map<",
            "Ljava/lang/Class<",
            "*>;",
            "Ly7/e<",
            "*>;>;",
            "Ljava/util/Map<",
            "Ljava/lang/Class<",
            "*>;",
            "Ly7/g<",
            "*>;>;",
            "Ly7/e<",
            "Ljava/lang/Object;",
            ">;)V"
        }
    .end annotation

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

    new-instance v0, Lf6/q;

    invoke-direct {v0, p0}, Lf6/q;-><init>(Lf6/n;)V

    iput-object v0, p0, Lf6/n;->e:Lf6/q;

    iput-object p1, p0, Lf6/n;->a:Ljava/io/OutputStream;

    iput-object p2, p0, Lf6/n;->b:Ljava/util/Map;

    iput-object p3, p0, Lf6/n;->c:Ljava/util/Map;

    iput-object p4, p0, Lf6/n;->d:Ly7/e;

    return-void
.end method

.method public static g(Ly7/d;)I
    .registers 2

    const-class v0, Lf6/i;

    .line 1
    iget-object p0, p0, Ly7/d;->b:Ljava/util/Map;

    invoke-interface {p0, v0}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Ljava/lang/annotation/Annotation;

    .line 2
    check-cast p0, Lf6/i;

    if-eqz p0, :cond_11

    .line 3
    iget p0, p0, Lf6/i;->a:I

    return p0

    .line 4
    :cond_11
    new-instance p0, Ly7/c;

    const-string v0, "Field has no @Protobuf config"

    invoke-direct {p0, v0}, Ly7/c;-><init>(Ljava/lang/String;)V

    throw p0
.end method

.method public static h(Ly7/d;)Lf6/i;
    .registers 2

    const-class v0, Lf6/i;

    .line 1
    iget-object p0, p0, Ly7/d;->b:Ljava/util/Map;

    invoke-interface {p0, v0}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Ljava/lang/annotation/Annotation;

    .line 2
    check-cast p0, Lf6/i;

    if-eqz p0, :cond_f

    return-object p0

    :cond_f
    new-instance p0, Ly7/c;

    const-string v0, "Field has no @Protobuf config"

    invoke-direct {p0, v0}, Ly7/c;-><init>(Ljava/lang/String;)V

    throw p0
.end method

.method public static j(I)Ljava/nio/ByteBuffer;
    .registers 2

    invoke-static {p0}, Ljava/nio/ByteBuffer;->allocate(I)Ljava/nio/ByteBuffer;

    move-result-object p0

    sget-object v0, Ljava/nio/ByteOrder;->LITTLE_ENDIAN:Ljava/nio/ByteOrder;

    invoke-virtual {p0, v0}, Ljava/nio/ByteBuffer;->order(Ljava/nio/ByteOrder;)Ljava/nio/ByteBuffer;

    move-result-object p0

    return-object p0
.end method


# virtual methods
.method public final a(Ly7/d;Ljava/lang/Object;)Ly7/f;
    .registers 4

    const/4 v0, 0x1

    invoke-virtual {p0, p1, p2, v0}, Lf6/n;->b(Ly7/d;Ljava/lang/Object;Z)Ly7/f;

    return-object p0
.end method

.method public final b(Ly7/d;Ljava/lang/Object;Z)Ly7/f;
    .registers 8

    if-nez p2, :cond_3

    return-object p0

    :cond_3
    instance-of v0, p2, Ljava/lang/CharSequence;

    if-eqz v0, :cond_31

    check-cast p2, Ljava/lang/CharSequence;

    if-eqz p3, :cond_12

    invoke-interface {p2}, Ljava/lang/CharSequence;->length()I

    move-result p3

    if-nez p3, :cond_12

    return-object p0

    :cond_12
    invoke-static {p1}, Lf6/n;->g(Ly7/d;)I

    move-result p1

    shl-int/lit8 p1, p1, 0x3

    or-int/lit8 p1, p1, 0x2

    invoke-virtual {p0, p1}, Lf6/n;->k(I)V

    invoke-interface {p2}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object p1

    sget-object p2, Lf6/n;->f:Ljava/nio/charset/Charset;

    invoke-virtual {p1, p2}, Ljava/lang/String;->getBytes(Ljava/nio/charset/Charset;)[B

    move-result-object p1

    array-length p2, p1

    invoke-virtual {p0, p2}, Lf6/n;->k(I)V

    iget-object p2, p0, Lf6/n;->a:Ljava/io/OutputStream;

    invoke-virtual {p2, p1}, Ljava/io/OutputStream;->write([B)V

    return-object p0

    :cond_31
    instance-of v0, p2, Ljava/util/Collection;

    const/4 v1, 0x0

    if-eqz v0, :cond_4b

    check-cast p2, Ljava/util/Collection;

    invoke-interface {p2}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;

    move-result-object p2

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

    move-result p3

    if-eqz p3, :cond_4a

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

    move-result-object p3

    invoke-virtual {p0, p1, p3, v1}, Lf6/n;->b(Ly7/d;Ljava/lang/Object;Z)Ly7/f;

    goto :goto_3c

    :cond_4a
    return-object p0

    :cond_4b
    instance-of v0, p2, Ljava/util/Map;

    if-eqz v0, :cond_6c

    check-cast p2, Ljava/util/Map;

    invoke-interface {p2}, Ljava/util/Map;->entrySet()Ljava/util/Set;

    move-result-object p2

    invoke-interface {p2}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object p2

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

    move-result p3

    if-eqz p3, :cond_6b

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

    move-result-object p3

    check-cast p3, Ljava/util/Map$Entry;

    sget-object v0, Lf6/n;->i:Ly7/e;

    invoke-virtual {p0, v0, p1, p3, v1}, Lf6/n;->i(Ly7/e;Ly7/d;Ljava/lang/Object;Z)Lf6/n;

    goto :goto_59

    :cond_6b
    return-object p0

    :cond_6c
    instance-of v0, p2, Ljava/lang/Double;

    const/4 v2, 0x1

    if-eqz v0, :cond_9e

    check-cast p2, Ljava/lang/Double;

    invoke-virtual {p2}, Ljava/lang/Double;->doubleValue()D

    move-result-wide v0

    if-eqz p3, :cond_80

    const-wide/16 p2, 0x0

    cmpl-double p2, v0, p2

    if-nez p2, :cond_80

    goto :goto_9d

    .line 1
    :cond_80
    invoke-static {p1}, Lf6/n;->g(Ly7/d;)I

    move-result p1

    shl-int/lit8 p1, p1, 0x3

    or-int/2addr p1, v2

    invoke-virtual {p0, p1}, Lf6/n;->k(I)V

    iget-object p1, p0, Lf6/n;->a:Ljava/io/OutputStream;

    const/16 p2, 0x8

    invoke-static {p2}, Lf6/n;->j(I)Ljava/nio/ByteBuffer;

    move-result-object p2

    invoke-virtual {p2, v0, v1}, Ljava/nio/ByteBuffer;->putDouble(D)Ljava/nio/ByteBuffer;

    move-result-object p2

    invoke-virtual {p2}, Ljava/nio/ByteBuffer;->array()[B

    move-result-object p2

    invoke-virtual {p1, p2}, Ljava/io/OutputStream;->write([B)V

    :goto_9d
    return-object p0

    .line 2
    :cond_9e
    instance-of v0, p2, Ljava/lang/Float;

    if-eqz v0, :cond_ce

    check-cast p2, Ljava/lang/Float;

    invoke-virtual {p2}, Ljava/lang/Float;->floatValue()F

    move-result p2

    if-eqz p3, :cond_b0

    const/4 p3, 0x0

    cmpl-float p3, p2, p3

    if-nez p3, :cond_b0

    goto :goto_cd

    .line 3
    :cond_b0
    invoke-static {p1}, Lf6/n;->g(Ly7/d;)I

    move-result p1

    shl-int/lit8 p1, p1, 0x3

    or-int/lit8 p1, p1, 0x5

    invoke-virtual {p0, p1}, Lf6/n;->k(I)V

    iget-object p1, p0, Lf6/n;->a:Ljava/io/OutputStream;

    const/4 p3, 0x4

    invoke-static {p3}, Lf6/n;->j(I)Ljava/nio/ByteBuffer;

    move-result-object p3

    invoke-virtual {p3, p2}, Ljava/nio/ByteBuffer;->putFloat(F)Ljava/nio/ByteBuffer;

    move-result-object p2

    invoke-virtual {p2}, Ljava/nio/ByteBuffer;->array()[B

    move-result-object p2

    invoke-virtual {p1, p2}, Ljava/io/OutputStream;->write([B)V

    :goto_cd
    return-object p0

    .line 4
    :cond_ce
    instance-of v0, p2, Ljava/lang/Number;

    if-eqz v0, :cond_dc

    check-cast p2, Ljava/lang/Number;

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

    move-result-wide v0

    invoke-virtual {p0, p1, v0, v1, p3}, Lf6/n;->f(Ly7/d;JZ)Lf6/n;

    return-object p0

    :cond_dc
    instance-of v0, p2, Ljava/lang/Boolean;

    if-eqz v0, :cond_ea

    check-cast p2, Ljava/lang/Boolean;

    invoke-virtual {p2}, Ljava/lang/Boolean;->booleanValue()Z

    move-result p2

    invoke-virtual {p0, p1, p2, p3}, Lf6/n;->c(Ly7/d;IZ)Lf6/n;

    return-object p0

    :cond_ea
    instance-of v0, p2, [B

    if-eqz v0, :cond_10b

    check-cast p2, [B

    if-eqz p3, :cond_f6

    array-length p3, p2

    if-nez p3, :cond_f6

    return-object p0

    :cond_f6
    invoke-static {p1}, Lf6/n;->g(Ly7/d;)I

    move-result p1

    shl-int/lit8 p1, p1, 0x3

    or-int/lit8 p1, p1, 0x2

    invoke-virtual {p0, p1}, Lf6/n;->k(I)V

    array-length p1, p2

    invoke-virtual {p0, p1}, Lf6/n;->k(I)V

    iget-object p1, p0, Lf6/n;->a:Ljava/io/OutputStream;

    invoke-virtual {p1, p2}, Ljava/io/OutputStream;->write([B)V

    return-object p0

    :cond_10b
    iget-object v0, p0, Lf6/n;->b:Ljava/util/Map;

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

    move-result-object v3

    invoke-interface {v0, v3}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ly7/e;

    if-eqz v0, :cond_11d

    invoke-virtual {p0, v0, p1, p2, p3}, Lf6/n;->i(Ly7/e;Ly7/d;Ljava/lang/Object;Z)Lf6/n;

    return-object p0

    :cond_11d
    iget-object v0, p0, Lf6/n;->c:Ljava/util/Map;

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

    move-result-object v3

    invoke-interface {v0, v3}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ly7/g;

    if-eqz v0, :cond_137

    .line 5
    iget-object v2, p0, Lf6/n;->e:Lf6/q;

    .line 6
    iput-boolean v1, v2, Lf6/q;->a:Z

    iput-object p1, v2, Lf6/q;->c:Ly7/d;

    iput-boolean p3, v2, Lf6/q;->b:Z

    .line 7
    invoke-interface {v0, p2, v2}, Ly7/b;->a(Ljava/lang/Object;Ljava/lang/Object;)V

    return-object p0

    .line 8
    :cond_137
    instance-of v0, p2, Lf6/k;

    if-eqz v0, :cond_145

    check-cast p2, Lf6/k;

    invoke-interface {p2}, Lf6/k;->b()I

    move-result p2

    invoke-virtual {p0, p1, p2, v2}, Lf6/n;->c(Ly7/d;IZ)Lf6/n;

    return-object p0

    :cond_145
    instance-of v0, p2, Ljava/lang/Enum;

    if-eqz v0, :cond_153

    check-cast p2, Ljava/lang/Enum;

    invoke-virtual {p2}, Ljava/lang/Enum;->ordinal()I

    move-result p2

    invoke-virtual {p0, p1, p2, v2}, Lf6/n;->c(Ly7/d;IZ)Lf6/n;

    return-object p0

    :cond_153
    iget-object v0, p0, Lf6/n;->d:Ly7/e;

    invoke-virtual {p0, v0, p1, p2, p3}, Lf6/n;->i(Ly7/e;Ly7/d;Ljava/lang/Object;Z)Lf6/n;

    return-object p0
.end method

.method public final c(Ly7/d;IZ)Lf6/n;
    .registers 5

    if-eqz p3, :cond_6

    if-eqz p2, :cond_5

    goto :goto_6

    :cond_5
    return-object p0

    :cond_6
    :goto_6
    invoke-static {p1}, Lf6/n;->h(Ly7/d;)Lf6/i;

    move-result-object p1

    .line 1
    iget-object p3, p1, Lf6/i;->b:Lf6/l;

    .line 2
    invoke-virtual {p3}, Ljava/lang/Enum;->ordinal()I

    move-result p3

    if-eqz p3, :cond_45

    const/4 v0, 0x1

    if-eq p3, v0, :cond_35

    const/4 v0, 0x2

    if-eq p3, v0, :cond_19

    goto :goto_4f

    .line 3
    :cond_19
    iget p1, p1, Lf6/i;->a:I

    shl-int/lit8 p1, p1, 0x3

    or-int/lit8 p1, p1, 0x5

    .line 4
    invoke-virtual {p0, p1}, Lf6/n;->k(I)V

    iget-object p1, p0, Lf6/n;->a:Ljava/io/OutputStream;

    const/4 p3, 0x4

    invoke-static {p3}, Lf6/n;->j(I)Ljava/nio/ByteBuffer;

    move-result-object p3

    invoke-virtual {p3, p2}, Ljava/nio/ByteBuffer;->putInt(I)Ljava/nio/ByteBuffer;

    move-result-object p2

    invoke-virtual {p2}, Ljava/nio/ByteBuffer;->array()[B

    move-result-object p2

    invoke-virtual {p1, p2}, Ljava/io/OutputStream;->write([B)V

    goto :goto_4f

    .line 5
    :cond_35
    iget p1, p1, Lf6/i;->a:I

    shl-int/lit8 p1, p1, 0x3

    .line 6
    invoke-virtual {p0, p1}, Lf6/n;->k(I)V

    add-int p1, p2, p2

    shr-int/lit8 p2, p2, 0x1f

    xor-int/2addr p1, p2

    invoke-virtual {p0, p1}, Lf6/n;->k(I)V

    goto :goto_4f

    .line 7
    :cond_45
    iget p1, p1, Lf6/i;->a:I

    shl-int/lit8 p1, p1, 0x3

    .line 8
    invoke-virtual {p0, p1}, Lf6/n;->k(I)V

    invoke-virtual {p0, p2}, Lf6/n;->k(I)V

    :goto_4f
    return-object p0
.end method

.method public final synthetic d(Ly7/d;J)Ly7/f;
    .registers 5

    const/4 v0, 0x1

    invoke-virtual {p0, p1, p2, p3, v0}, Lf6/n;->f(Ly7/d;JZ)Lf6/n;

    return-object p0
.end method

.method public final synthetic e(Ly7/d;I)Ly7/f;
    .registers 4

    const/4 v0, 0x1

    invoke-virtual {p0, p1, p2, v0}, Lf6/n;->c(Ly7/d;IZ)Lf6/n;

    return-object p0
.end method

.method public final f(Ly7/d;JZ)Lf6/n;
    .registers 7

    if-eqz p4, :cond_a

    const-wide/16 v0, 0x0

    cmp-long p4, p2, v0

    if-eqz p4, :cond_9

    goto :goto_a

    :cond_9
    return-object p0

    :cond_a
    :goto_a
    invoke-static {p1}, Lf6/n;->h(Ly7/d;)Lf6/i;

    move-result-object p1

    .line 1
    iget-object p4, p1, Lf6/i;->b:Lf6/l;

    .line 2
    invoke-virtual {p4}, Ljava/lang/Enum;->ordinal()I

    move-result p4

    if-eqz p4, :cond_4b

    const/4 v0, 0x1

    if-eq p4, v0, :cond_39

    const/4 v1, 0x2

    if-eq p4, v1, :cond_1d

    goto :goto_55

    .line 3
    :cond_1d
    iget p1, p1, Lf6/i;->a:I

    shl-int/lit8 p1, p1, 0x3

    or-int/2addr p1, v0

    .line 4
    invoke-virtual {p0, p1}, Lf6/n;->k(I)V

    iget-object p1, p0, Lf6/n;->a:Ljava/io/OutputStream;

    const/16 p4, 0x8

    invoke-static {p4}, Lf6/n;->j(I)Ljava/nio/ByteBuffer;

    move-result-object p4

    invoke-virtual {p4, p2, p3}, Ljava/nio/ByteBuffer;->putLong(J)Ljava/nio/ByteBuffer;

    move-result-object p2

    invoke-virtual {p2}, Ljava/nio/ByteBuffer;->array()[B

    move-result-object p2

    invoke-virtual {p1, p2}, Ljava/io/OutputStream;->write([B)V

    goto :goto_55

    .line 5
    :cond_39
    iget p1, p1, Lf6/i;->a:I

    shl-int/lit8 p1, p1, 0x3

    .line 6
    invoke-virtual {p0, p1}, Lf6/n;->k(I)V

    add-long v0, p2, p2

    const/16 p1, 0x3f

    shr-long p1, p2, p1

    xor-long/2addr p1, v0

    invoke-virtual {p0, p1, p2}, Lf6/n;->l(J)V

    goto :goto_55

    .line 7
    :cond_4b
    iget p1, p1, Lf6/i;->a:I

    shl-int/lit8 p1, p1, 0x3

    .line 8
    invoke-virtual {p0, p1}, Lf6/n;->k(I)V

    invoke-virtual {p0, p2, p3}, Lf6/n;->l(J)V

    :goto_55
    return-object p0
.end method

.method public final i(Ly7/e;Ly7/d;Ljava/lang/Object;Z)Lf6/n;
    .registers 10
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "<T:",
            "Ljava/lang/Object;",
            ">(",
            "Ly7/e<",
            "TT;>;",
            "Ly7/d;",
            "TT;Z)",
            "Lf6/n;"
        }
    .end annotation

    .line 1
    new-instance v0, Lf6/j;

    invoke-direct {v0}, Lf6/j;-><init>()V

    :try_start_5
    iget-object v1, p0, Lf6/n;->a:Ljava/io/OutputStream;

    iput-object v0, p0, Lf6/n;->a:Ljava/io/OutputStream;
    :try_end_9
    .catchall {:try_start_5 .. :try_end_9} :catchall_32

    :try_start_9
    invoke-interface {p1, p3, p0}, Ly7/b;->a(Ljava/lang/Object;Ljava/lang/Object;)V
    :try_end_c
    .catchall {:try_start_9 .. :try_end_c} :catchall_2e

    :try_start_c
    iput-object v1, p0, Lf6/n;->a:Ljava/io/OutputStream;

    .line 2
    iget-wide v1, v0, Lf6/j;->r:J
    :try_end_10
    .catchall {:try_start_c .. :try_end_10} :catchall_32

    .line 3
    invoke-virtual {v0}, Ljava/io/OutputStream;->close()V

    if-eqz p4, :cond_1c

    const-wide/16 v3, 0x0

    cmp-long p4, v1, v3

    if-nez p4, :cond_1c

    return-object p0

    .line 4
    :cond_1c
    invoke-static {p2}, Lf6/n;->g(Ly7/d;)I

    move-result p2

    shl-int/lit8 p2, p2, 0x3

    or-int/lit8 p2, p2, 0x2

    invoke-virtual {p0, p2}, Lf6/n;->k(I)V

    invoke-virtual {p0, v1, v2}, Lf6/n;->l(J)V

    invoke-interface {p1, p3, p0}, Ly7/b;->a(Ljava/lang/Object;Ljava/lang/Object;)V

    return-object p0

    :catchall_2e
    move-exception p1

    .line 5
    :try_start_2f
    iput-object v1, p0, Lf6/n;->a:Ljava/io/OutputStream;

    throw p1
    :try_end_32
    .catchall {:try_start_2f .. :try_end_32} :catchall_32

    :catchall_32
    move-exception p1

    :try_start_33
    invoke-virtual {v0}, Ljava/io/OutputStream;->close()V
    :try_end_36
    .catchall {:try_start_33 .. :try_end_36} :catchall_36

    :catchall_36
    throw p1
.end method

.method public final k(I)V
    .registers 6

    :goto_0
    and-int/lit8 v0, p1, -0x80

    int-to-long v0, v0

    const-wide/16 v2, 0x0

    cmp-long v0, v0, v2

    if-eqz v0, :cond_15

    iget-object v0, p0, Lf6/n;->a:Ljava/io/OutputStream;

    and-int/lit8 v1, p1, 0x7f

    or-int/lit16 v1, v1, 0x80

    invoke-virtual {v0, v1}, Ljava/io/OutputStream;->write(I)V

    ushr-int/lit8 p1, p1, 0x7

    goto :goto_0

    :cond_15
    iget-object v0, p0, Lf6/n;->a:Ljava/io/OutputStream;

    and-int/lit8 p1, p1, 0x7f

    invoke-virtual {v0, p1}, Ljava/io/OutputStream;->write(I)V

    return-void
.end method

.method public final l(J)V
    .registers 7

    :goto_0
    const-wide/16 v0, -0x80

    and-long/2addr v0, p1

    const-wide/16 v2, 0x0

    cmp-long v0, v0, v2

    if-eqz v0, :cond_16

    iget-object v0, p0, Lf6/n;->a:Ljava/io/OutputStream;

    long-to-int v1, p1

    and-int/lit8 v1, v1, 0x7f

    or-int/lit16 v1, v1, 0x80

    invoke-virtual {v0, v1}, Ljava/io/OutputStream;->write(I)V

    const/4 v0, 0x7

    ushr-long/2addr p1, v0

    goto :goto_0

    :cond_16
    iget-object v0, p0, Lf6/n;->a:Ljava/io/OutputStream;

    long-to-int p1, p1

    and-int/lit8 p1, p1, 0x7f

    invoke-virtual {v0, p1}, Ljava/io/OutputStream;->write(I)V

    return-void
.end method
