g.smali

.class public Lcom/bytedance/tea/crash/e/a/g;
.super Ljava/lang/Object;
.source "CrashContextAssembly.java"


# static fields
.field private static volatile a:Lcom/bytedance/tea/crash/e/a/g;
    .annotation build Landroid/annotation/SuppressLint;
        value = {
            "StaticFieldLeak"
        }
    .end annotation
.end field


# instance fields
.field private b:Landroid/content/Context;

.field private c:Ljava/util/Map;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Map",
            "<",
            "Lcom/bytedance/tea/crash/c;",
            "Lcom/bytedance/tea/crash/e/a/d;",
            ">;"
        }
    .end annotation
.end field

.field private d:Lcom/bytedance/tea/crash/e/a/b;

.field private e:Lcom/bytedance/tea/crash/e/a/e;


# direct methods
.method private constructor <init>(Landroid/content/Context;)V
    .registers 4
    .param p1    # Landroid/content/Context;
        .annotation build Landroid/support/annotation/NonNull;
        .end annotation
    .end param

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

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

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

    iput-object v0, p0, Lcom/bytedance/tea/crash/e/a/g;->c:Ljava/util/Map;

    .line 34
    iput-object p1, p0, Lcom/bytedance/tea/crash/e/a/g;->b:Landroid/content/Context;

    .line 35
    new-instance v0, Lcom/bytedance/tea/crash/e/a/b;

    iget-object v1, p0, Lcom/bytedance/tea/crash/e/a/g;->b:Landroid/content/Context;

    invoke-direct {v0, v1}, Lcom/bytedance/tea/crash/e/a/b;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/bytedance/tea/crash/e/a/g;->d:Lcom/bytedance/tea/crash/e/a/b;

    .line 36
    new-instance v0, Lcom/bytedance/tea/crash/e/a/e;

    iget-object v1, p0, Lcom/bytedance/tea/crash/e/a/g;->b:Landroid/content/Context;

    invoke-direct {v0, v1}, Lcom/bytedance/tea/crash/e/a/e;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/bytedance/tea/crash/e/a/g;->e:Lcom/bytedance/tea/crash/e/a/e;

    .line 37
    return-void
.end method

.method private a(Lcom/bytedance/tea/crash/c;)Lcom/bytedance/tea/crash/e/a/d;
    .registers 6
    .annotation build Landroid/support/annotation/Nullable;
    .end annotation

    .prologue
    .line 60
    iget-object v0, p0, Lcom/bytedance/tea/crash/e/a/g;->c:Ljava/util/Map;

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

    move-result-object v0

    check-cast v0, Lcom/bytedance/tea/crash/e/a/d;

    .line 61
    if-eqz v0, :cond_b

    .line 78
    :cond_a
    :goto_a
    return-object v0

    .line 64
    :cond_b
    sget-object v1, Lcom/bytedance/tea/crash/e/a/h;->a:[I

    invoke-virtual {p1}, Lcom/bytedance/tea/crash/c;->ordinal()I

    move-result v2

    aget v1, v1, v2

    packed-switch v1, :pswitch_data_42

    .line 75
    :goto_16
    if-eqz v0, :cond_a

    .line 76
    iget-object v1, p0, Lcom/bytedance/tea/crash/e/a/g;->c:Ljava/util/Map;

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

    goto :goto_a

    .line 66
    :pswitch_1e
    new-instance v0, Lcom/bytedance/tea/crash/e/a/j;

    iget-object v1, p0, Lcom/bytedance/tea/crash/e/a/g;->b:Landroid/content/Context;

    iget-object v2, p0, Lcom/bytedance/tea/crash/e/a/g;->d:Lcom/bytedance/tea/crash/e/a/b;

    iget-object v3, p0, Lcom/bytedance/tea/crash/e/a/g;->e:Lcom/bytedance/tea/crash/e/a/e;

    invoke-direct {v0, v1, v2, v3}, Lcom/bytedance/tea/crash/e/a/j;-><init>(Landroid/content/Context;Lcom/bytedance/tea/crash/e/a/b;Lcom/bytedance/tea/crash/e/a/e;)V

    goto :goto_16

    .line 69
    :pswitch_2a
    new-instance v0, Lcom/bytedance/tea/crash/e/a/a;

    iget-object v1, p0, Lcom/bytedance/tea/crash/e/a/g;->b:Landroid/content/Context;

    iget-object v2, p0, Lcom/bytedance/tea/crash/e/a/g;->d:Lcom/bytedance/tea/crash/e/a/b;

    iget-object v3, p0, Lcom/bytedance/tea/crash/e/a/g;->e:Lcom/bytedance/tea/crash/e/a/e;

    invoke-direct {v0, v1, v2, v3}, Lcom/bytedance/tea/crash/e/a/a;-><init>(Landroid/content/Context;Lcom/bytedance/tea/crash/e/a/b;Lcom/bytedance/tea/crash/e/a/e;)V

    goto :goto_16

    .line 72
    :pswitch_36
    new-instance v0, Lcom/bytedance/tea/crash/e/a/i;

    iget-object v1, p0, Lcom/bytedance/tea/crash/e/a/g;->b:Landroid/content/Context;

    iget-object v2, p0, Lcom/bytedance/tea/crash/e/a/g;->d:Lcom/bytedance/tea/crash/e/a/b;

    iget-object v3, p0, Lcom/bytedance/tea/crash/e/a/g;->e:Lcom/bytedance/tea/crash/e/a/e;

    invoke-direct {v0, v1, v2, v3}, Lcom/bytedance/tea/crash/e/a/i;-><init>(Landroid/content/Context;Lcom/bytedance/tea/crash/e/a/b;Lcom/bytedance/tea/crash/e/a/e;)V

    goto :goto_16

    .line 64
    :pswitch_data_42
    .packed-switch 0x1
        :pswitch_1e
        :pswitch_2a
        :pswitch_36
    .end packed-switch
.end method

.method public static a()Lcom/bytedance/tea/crash/e/a/g;
    .registers 2

    .prologue
    .line 40
    sget-object v0, Lcom/bytedance/tea/crash/e/a/g;->a:Lcom/bytedance/tea/crash/e/a/g;

    if-nez v0, :cond_c

    .line 41
    new-instance v0, Ljava/lang/IllegalArgumentException;

    const-string v1, "CrashContextAssembly not init"

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

    throw v0

    .line 43
    :cond_c
    sget-object v0, Lcom/bytedance/tea/crash/e/a/g;->a:Lcom/bytedance/tea/crash/e/a/g;

    return-object v0
.end method

.method public static a(Landroid/content/Context;)V
    .registers 2

    .prologue
    .line 47
    sget-object v0, Lcom/bytedance/tea/crash/e/a/g;->a:Lcom/bytedance/tea/crash/e/a/g;

    if-nez v0, :cond_b

    .line 48
    new-instance v0, Lcom/bytedance/tea/crash/e/a/g;

    invoke-direct {v0, p0}, Lcom/bytedance/tea/crash/e/a/g;-><init>(Landroid/content/Context;)V

    sput-object v0, Lcom/bytedance/tea/crash/e/a/g;->a:Lcom/bytedance/tea/crash/e/a/g;

    .line 50
    :cond_b
    return-void
.end method


# virtual methods
.method public a(Lcom/bytedance/tea/crash/c;Lcom/bytedance/tea/crash/c/a;)Lcom/bytedance/tea/crash/c/a;
    .registers 4

    .prologue
    .line 89
    if-nez p1, :cond_3

    .line 96
    :cond_2
    :goto_2
    return-object p2

    .line 92
    :cond_3
    invoke-direct {p0, p1}, Lcom/bytedance/tea/crash/e/a/g;->a(Lcom/bytedance/tea/crash/c;)Lcom/bytedance/tea/crash/e/a/d;

    move-result-object v0

    .line 93
    if-eqz v0, :cond_2

    .line 94
    invoke-virtual {v0, p2}, Lcom/bytedance/tea/crash/e/a/d;->a(Lcom/bytedance/tea/crash/c/a;)Lcom/bytedance/tea/crash/c/a;

    move-result-object p2

    goto :goto_2
.end method