.class public Lk2/j;
.super Ljava/lang/Object;
.source ""

# interfaces
.implements Lk2/d;


# static fields
.field public static final j:Ljava/lang/reflect/Method;

.field public static final k:[Lk2/j;


# instance fields
.field public a:Ljava/lang/Throwable;

.field public b:Ljava/lang/String;

.field public c:Ljava/lang/String;

.field public d:[Lk2/i;

.field public e:I

.field public f:Lk2/j;

.field public g:[Lk2/j;

.field public transient h:Lk2/h;

.field public i:Z


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

    const/4 v0, 0x0

    :try_start_1
    const-class v1, Ljava/lang/Throwable;

    const-string v2, "getSuppressed"

    new-array v3, v0, [Ljava/lang/Class;

    invoke-virtual {v1, v2, v3}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;

    move-result-object v1
    :try_end_b
    .catch Ljava/lang/NoSuchMethodException; {:try_start_1 .. :try_end_b} :catch_c

    goto :goto_d

    :catch_c
    const/4 v1, 0x0

    :goto_d
    sput-object v1, Lk2/j;->j:Ljava/lang/reflect/Method;

    new-array v0, v0, [Lk2/j;

    sput-object v0, Lk2/j;->k:[Lk2/j;

    return-void
.end method

.method public constructor <init>(Ljava/lang/Throwable;)V
    .registers 9

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

    sget-object v0, Lk2/j;->k:[Lk2/j;

    iput-object v0, p0, Lk2/j;->g:[Lk2/j;

    const/4 v0, 0x0

    iput-boolean v0, p0, Lk2/j;->i:Z

    iput-object p1, p0, Lk2/j;->a:Ljava/lang/Throwable;

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

    move-result-object v1

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

    move-result-object v1

    iput-object v1, p0, Lk2/j;->b:Ljava/lang/String;

    invoke-virtual {p1}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lk2/j;->c:Ljava/lang/String;

    invoke-virtual {p1}, Ljava/lang/Throwable;->getStackTrace()[Ljava/lang/StackTraceElement;

    move-result-object v1

    if-nez v1, :cond_25

    new-array v1, v0, [Lk2/i;

    goto :goto_38

    .line 1
    :cond_25
    array-length v2, v1

    new-array v3, v2, [Lk2/i;

    move v4, v0

    :goto_29
    if-ge v4, v2, :cond_37

    new-instance v5, Lk2/i;

    aget-object v6, v1, v4

    invoke-direct {v5, v6}, Lk2/i;-><init>(Ljava/lang/StackTraceElement;)V

    aput-object v5, v3, v4

    add-int/lit8 v4, v4, 0x1

    goto :goto_29

    :cond_37
    move-object v1, v3

    .line 2
    :goto_38
    iput-object v1, p0, Lk2/j;->d:[Lk2/i;

    invoke-virtual {p1}, Ljava/lang/Throwable;->getCause()Ljava/lang/Throwable;

    move-result-object v1

    if-eqz v1, :cond_53

    new-instance v2, Lk2/j;

    invoke-direct {v2, v1}, Lk2/j;-><init>(Ljava/lang/Throwable;)V

    iput-object v2, p0, Lk2/j;->f:Lk2/j;

    invoke-virtual {v1}, Ljava/lang/Throwable;->getStackTrace()[Ljava/lang/StackTraceElement;

    move-result-object v1

    iget-object v3, p0, Lk2/j;->d:[Lk2/i;

    invoke-static {v1, v3}, Lp/f;->f([Ljava/lang/StackTraceElement;[Lk2/i;)I

    move-result v1

    iput v1, v2, Lk2/j;->e:I

    :cond_53
    sget-object v1, Lk2/j;->j:Ljava/lang/reflect/Method;

    if-eqz v1, :cond_8e

    :try_start_57
    new-array v2, v0, [Ljava/lang/Object;

    invoke-virtual {v1, p1, v2}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p1

    instance-of v1, p1, [Ljava/lang/Throwable;

    if-eqz v1, :cond_8e

    check-cast p1, [Ljava/lang/Throwable;

    array-length v1, p1

    if-lez v1, :cond_8e

    array-length v1, p1

    new-array v1, v1, [Lk2/j;

    iput-object v1, p0, Lk2/j;->g:[Lk2/j;

    :goto_6b
    array-length v1, p1

    if-ge v0, v1, :cond_8e

    iget-object v1, p0, Lk2/j;->g:[Lk2/j;

    new-instance v2, Lk2/j;

    aget-object v3, p1, v0

    invoke-direct {v2, v3}, Lk2/j;-><init>(Ljava/lang/Throwable;)V

    aput-object v2, v1, v0

    iget-object v1, p0, Lk2/j;->g:[Lk2/j;

    aget-object v1, v1, v0

    aget-object v2, p1, v0

    invoke-virtual {v2}, Ljava/lang/Throwable;->getStackTrace()[Ljava/lang/StackTraceElement;

    move-result-object v2

    iget-object v3, p0, Lk2/j;->d:[Lk2/i;

    invoke-static {v2, v3}, Lp/f;->f([Ljava/lang/StackTraceElement;[Lk2/i;)I

    move-result v2

    iput v2, v1, Lk2/j;->e:I
    :try_end_8b
    .catch Ljava/lang/IllegalAccessException; {:try_start_57 .. :try_end_8b} :catch_8e
    .catch Ljava/lang/reflect/InvocationTargetException; {:try_start_57 .. :try_end_8b} :catch_8e

    add-int/lit8 v0, v0, 0x1

    goto :goto_6b

    :catch_8e
    :cond_8e
    return-void
.end method
