.class public final Lca/e;
.super Ljava/lang/Object;
.source ""


# static fields
.field public static final a:Lha/i;

.field public static final b:[Ljava/lang/String;

.field public static final c:[Ljava/lang/String;

.field public static final d:[Ljava/lang/String;

.field public static final e:Lca/e;


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

    new-instance v0, Lca/e;

    invoke-direct {v0}, Lca/e;-><init>()V

    sput-object v0, Lca/e;->e:Lca/e;

    sget-object v0, Lha/i;->v:Lha/i$a;

    const-string v1, "PRI * HTTP/2.0\r\n\r\nSM\r\n\r\n"

    invoke-virtual {v0, v1}, Lha/i$a;->b(Ljava/lang/String;)Lha/i;

    move-result-object v0

    sput-object v0, Lca/e;->a:Lha/i;

    const-string v1, "DATA"

    const-string v2, "HEADERS"

    const-string v3, "PRIORITY"

    const-string v4, "RST_STREAM"

    const-string v5, "SETTINGS"

    const-string v6, "PUSH_PROMISE"

    const-string v7, "PING"

    const-string v8, "GOAWAY"

    const-string v9, "WINDOW_UPDATE"

    const-string v10, "CONTINUATION"

    filled-new-array/range {v1 .. v10}, [Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lca/e;->b:[Ljava/lang/String;

    const/16 v0, 0x40

    new-array v0, v0, [Ljava/lang/String;

    sput-object v0, Lca/e;->c:[Ljava/lang/String;

    const/16 v0, 0x100

    new-array v1, v0, [Ljava/lang/String;

    const/4 v2, 0x0

    move v3, v2

    :goto_37
    const/16 v4, 0x20

    const/4 v5, 0x1

    if-ge v3, v0, :cond_64

    new-array v5, v5, [Ljava/lang/Object;

    invoke-static {v3}, Ljava/lang/Integer;->toBinaryString(I)Ljava/lang/String;

    move-result-object v6

    const-string v7, "Integer.toBinaryString(it)"

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

    aput-object v6, v5, v2

    const-string v6, "%8s"

    invoke-static {v6, v5}, Lw9/c;->i(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v5

    const/16 v6, 0x30

    const-string v7, "$this$replace"

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

    invoke-virtual {v5, v4, v6}, Ljava/lang/String;->replace(CC)Ljava/lang/String;

    move-result-object v4

    const-string v5, "(this as java.lang.Strin\u2026replace(oldChar, newChar)"

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

    .line 2
    aput-object v4, v1, v3

    add-int/lit8 v3, v3, 0x1

    goto :goto_37

    :cond_64
    sput-object v1, Lca/e;->d:[Ljava/lang/String;

    sget-object v0, Lca/e;->c:[Ljava/lang/String;

    const-string v1, ""

    aput-object v1, v0, v2

    const-string v1, "END_STREAM"

    aput-object v1, v0, v5

    new-array v1, v5, [I

    aput v5, v1, v2

    const-string v3, "PADDED"

    const/16 v6, 0x8

    aput-object v3, v0, v6

    move v0, v2

    :goto_7b
    const-string v3, "|PADDED"

    if-ge v0, v5, :cond_90

    aget v7, v1, v0

    sget-object v8, Lca/e;->c:[Ljava/lang/String;

    or-int/lit8 v9, v7, 0x8

    aget-object v7, v8, v7

    invoke-static {v7, v3}, Lx/e;->k(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v3

    aput-object v3, v8, v9

    add-int/lit8 v0, v0, 0x1

    goto :goto_7b

    :cond_90
    sget-object v0, Lca/e;->c:[Ljava/lang/String;

    const/4 v7, 0x4

    const-string v8, "END_HEADERS"

    aput-object v8, v0, v7

    const-string v7, "PRIORITY"

    aput-object v7, v0, v4

    const/16 v4, 0x24

    const-string v7, "END_HEADERS|PRIORITY"

    aput-object v7, v0, v4

    const/4 v0, 0x3

    new-array v4, v0, [I

    fill-array-data v4, :array_100

    move v7, v2

    :goto_a8
    if-ge v7, v0, :cond_eb

    aget v8, v4, v7

    move v9, v2

    :goto_ad
    if-ge v9, v5, :cond_e8

    aget v10, v1, v9

    sget-object v11, Lca/e;->c:[Ljava/lang/String;

    or-int v12, v10, v8

    new-instance v13, Ljava/lang/StringBuilder;

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

    aget-object v14, v11, v10

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

    const-string v14, "|"

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

    aget-object v15, v11, v8

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

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

    move-result-object v13

    aput-object v13, v11, v12

    or-int/2addr v12, v6

    new-instance v13, Ljava/lang/StringBuilder;

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

    aget-object v10, v11, v10

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

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

    aget-object v10, v11, v8

    invoke-static {v13, v10, v3}, Landroidx/activity/b;->a(Ljava/lang/StringBuilder;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v10

    aput-object v10, v11, v12

    add-int/lit8 v9, v9, 0x1

    goto :goto_ad

    :cond_e8
    add-int/lit8 v7, v7, 0x1

    goto :goto_a8

    :cond_eb
    sget-object v0, Lca/e;->c:[Ljava/lang/String;

    array-length v0, v0

    :goto_ee
    if-ge v2, v0, :cond_ff

    sget-object v1, Lca/e;->c:[Ljava/lang/String;

    aget-object v3, v1, v2

    if-nez v3, :cond_fc

    sget-object v3, Lca/e;->d:[Ljava/lang/String;

    aget-object v3, v3, v2

    aput-object v3, v1, v2

    :cond_fc
    add-int/lit8 v2, v2, 0x1

    goto :goto_ee

    :cond_ff
    return-void

    :array_100
    .array-data 4
        0x4
        0x20
        0x24
    .end array-data
.end method

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

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

    return-void
.end method


# virtual methods
.method public final a(I)Ljava/lang/String;
    .registers 4

    sget-object v0, Lca/e;->b:[Ljava/lang/String;

    array-length v1, v0

    if-ge p1, v1, :cond_8

    aget-object p1, v0, p1

    goto :goto_18

    :cond_8
    const/4 v0, 0x1

    new-array v0, v0, [Ljava/lang/Object;

    const/4 v1, 0x0

    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object p1

    aput-object p1, v0, v1

    const-string p1, "0x%02x"

    invoke-static {p1, v0}, Lw9/c;->i(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object p1

    :goto_18
    return-object p1
.end method

.method public final b(ZIIII)Ljava/lang/String;
    .registers 15

    invoke-virtual {p0, p4}, Lca/e;->a(I)Ljava/lang/String;

    move-result-object v0

    const/4 v1, 0x0

    const/4 v2, 0x5

    const/4 v3, 0x1

    const/4 v4, 0x3

    const/4 v5, 0x2

    const/4 v6, 0x4

    if-nez p5, :cond_f

    const-string p4, ""

    goto :goto_58

    :cond_f
    if-eq p4, v5, :cond_54

    if-eq p4, v4, :cond_54

    if-eq p4, v6, :cond_4a

    const/4 v7, 0x6

    if-eq p4, v7, :cond_4a

    const/4 v7, 0x7

    if-eq p4, v7, :cond_54

    const/16 v7, 0x8

    if-eq p4, v7, :cond_54

    .line 1
    sget-object v7, Lca/e;->c:[Ljava/lang/String;

    array-length v8, v7

    if-ge p5, v8, :cond_2a

    aget-object v7, v7, p5

    invoke-static {v7}, Lx/e;->d(Ljava/lang/Object;)V

    goto :goto_2e

    :cond_2a
    sget-object v7, Lca/e;->d:[Ljava/lang/String;

    aget-object v7, v7, p5

    :goto_2e
    if-ne p4, v2, :cond_39

    and-int/lit8 v8, p5, 0x4

    if-eqz v8, :cond_39

    const-string p4, "HEADERS"

    const-string p5, "PUSH_PROMISE"

    goto :goto_43

    :cond_39
    if-nez p4, :cond_48

    and-int/lit8 p4, p5, 0x20

    if-eqz p4, :cond_48

    const-string p4, "PRIORITY"

    const-string p5, "COMPRESSED"

    :goto_43
    invoke-static {v7, p4, p5, v1, v6}, Lp9/h;->u(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ZI)Ljava/lang/String;

    move-result-object p4

    goto :goto_58

    :cond_48
    move-object p4, v7

    goto :goto_58

    :cond_4a
    if-ne p5, v3, :cond_4f

    const-string p4, "ACK"

    goto :goto_58

    :cond_4f
    sget-object p4, Lca/e;->d:[Ljava/lang/String;

    aget-object p4, p4, p5

    goto :goto_58

    :cond_54
    sget-object p4, Lca/e;->d:[Ljava/lang/String;

    aget-object p4, p4, p5

    :goto_58
    if-eqz p1, :cond_5d

    const-string p1, "<<"

    goto :goto_5f

    :cond_5d
    const-string p1, ">>"

    :goto_5f
    new-array p5, v2, [Ljava/lang/Object;

    aput-object p1, p5, v1

    .line 2
    invoke-static {p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object p1

    aput-object p1, p5, v3

    invoke-static {p3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object p1

    aput-object p1, p5, v5

    aput-object v0, p5, v4

    aput-object p4, p5, v6

    const-string p1, "%s 0x%08x %5d %-13s %s"

    invoke-static {p1, p5}, Lw9/c;->i(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object p1

    return-object p1
.end method
