.class public abstract Ln2/h;
.super Lc3/d;
.source ""

# interfaces
.implements Ln2/a;


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "<E:",
        "Ljava/lang/Object;",
        ">",
        "Lc3/d;",
        "Ln2/a<",
        "TE;>;"
    }
.end annotation


# instance fields
.field public A:I

.field public v:Z

.field public w:Ljava/lang/ThreadLocal;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/lang/ThreadLocal<",
            "Ljava/lang/Boolean;",
            ">;"
        }
    .end annotation
.end field

.field public x:Ljava/lang/String;

.field public y:Lf/o;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lf/o;"
        }
    .end annotation
.end field

.field public z:I


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

    invoke-direct {p0}, Lc3/d;-><init>()V

    const/4 v0, 0x0

    iput-boolean v0, p0, Ln2/h;->v:Z

    new-instance v1, Ljava/lang/ThreadLocal;

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

    iput-object v1, p0, Ln2/h;->w:Ljava/lang/ThreadLocal;

    new-instance v1, Lf/o;

    const/4 v2, 0x4

    invoke-direct {v1, v2}, Lf/o;-><init>(I)V

    iput-object v1, p0, Ln2/h;->y:Lf/o;

    iput v0, p0, Ln2/h;->z:I

    iput v0, p0, Ln2/h;->A:I

    return-void
.end method


# virtual methods
.method public abstract A(Ljava/lang/Object;)V
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(TE;)V"
        }
    .end annotation
.end method

.method public a(Ljava/lang/String;)V
    .registers 2

    iput-object p1, p0, Ln2/h;->x:Ljava/lang/String;

    return-void
.end method

.method public c(Ljava/lang/Object;)V
    .registers 5
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(TE;)V"
        }
    .end annotation

    sget-object v0, Ljava/lang/Boolean;->TRUE:Ljava/lang/Boolean;

    iget-object v1, p0, Ln2/h;->w:Ljava/lang/ThreadLocal;

    invoke-virtual {v1}, Ljava/lang/ThreadLocal;->get()Ljava/lang/Object;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/Boolean;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_f

    return-void

    :cond_f
    const/4 v1, 0x3

    :try_start_10
    iget-object v2, p0, Ln2/h;->w:Ljava/lang/ThreadLocal;

    invoke-virtual {v2, v0}, Ljava/lang/ThreadLocal;->set(Ljava/lang/Object;)V

    iget-boolean v0, p0, Ln2/h;->v:Z

    if-nez v0, :cond_42

    iget p1, p0, Ln2/h;->z:I

    add-int/lit8 v0, p1, 0x1

    iput v0, p0, Ln2/h;->z:I

    if-ge p1, v1, :cond_4b

    new-instance p1, Ld3/g;

    new-instance v0, Ljava/lang/StringBuilder;

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

    const-string v2, "Attempted to append to non started appender ["

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

    iget-object v2, p0, Ln2/h;->x:Ljava/lang/String;

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

    const-string v2, "]."

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

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

    move-result-object v0

    invoke-direct {p1, v0, p0}, Ld3/g;-><init>(Ljava/lang/String;Ljava/lang/Object;)V

    invoke-virtual {p0, p1}, Lc3/d;->v(Ld3/d;)V

    goto :goto_4b

    .line 1
    :cond_42
    iget-object v0, p0, Ln2/h;->y:Lf/o;

    invoke-virtual {v0, p1}, Lf/o;->j(Ljava/lang/Object;)I

    move-result v0
    :try_end_48
    .catch Ljava/lang/Exception; {:try_start_10 .. :try_end_48} :catch_59
    .catchall {:try_start_10 .. :try_end_48} :catchall_57

    const/4 v2, 0x1

    if-ne v0, v2, :cond_53

    .line 2
    :cond_4b
    :goto_4b
    iget-object p1, p0, Ln2/h;->w:Ljava/lang/ThreadLocal;

    sget-object v0, Ljava/lang/Boolean;->FALSE:Ljava/lang/Boolean;

    invoke-virtual {p1, v0}, Ljava/lang/ThreadLocal;->set(Ljava/lang/Object;)V

    return-void

    .line 3
    :cond_53
    :try_start_53
    invoke-virtual {p0, p1}, Ln2/h;->A(Ljava/lang/Object;)V
    :try_end_56
    .catch Ljava/lang/Exception; {:try_start_53 .. :try_end_56} :catch_59
    .catchall {:try_start_53 .. :try_end_56} :catchall_57

    goto :goto_7d

    :catchall_57
    move-exception p1

    goto :goto_85

    :catch_59
    move-exception p1

    :try_start_5a
    iget v0, p0, Ln2/h;->A:I

    add-int/lit8 v2, v0, 0x1

    iput v2, p0, Ln2/h;->A:I

    if-ge v0, v1, :cond_7d

    new-instance v0, Ljava/lang/StringBuilder;

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

    const-string v1, "Appender ["

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

    iget-object v1, p0, Ln2/h;->x:Ljava/lang/String;

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

    const-string v1, "] failed to append."

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

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

    move-result-object v0

    invoke-virtual {p0, v0, p1}, Lc3/d;->g(Ljava/lang/String;Ljava/lang/Throwable;)V
    :try_end_7d
    .catchall {:try_start_5a .. :try_end_7d} :catchall_57

    :cond_7d
    :goto_7d
    iget-object p1, p0, Ln2/h;->w:Ljava/lang/ThreadLocal;

    sget-object v0, Ljava/lang/Boolean;->FALSE:Ljava/lang/Boolean;

    invoke-virtual {p1, v0}, Ljava/lang/ThreadLocal;->set(Ljava/lang/Object;)V

    return-void

    :goto_85
    iget-object v0, p0, Ln2/h;->w:Ljava/lang/ThreadLocal;

    sget-object v1, Ljava/lang/Boolean;->FALSE:Ljava/lang/Boolean;

    invoke-virtual {v0, v1}, Ljava/lang/ThreadLocal;->set(Ljava/lang/Object;)V

    throw p1
.end method

.method public getName()Ljava/lang/String;
    .registers 2

    iget-object v0, p0, Ln2/h;->x:Ljava/lang/String;

    return-object v0
.end method

.method public n()Z
    .registers 2

    iget-boolean v0, p0, Ln2/h;->v:Z

    return v0
.end method

.method public start()V
    .registers 2

    const/4 v0, 0x1

    iput-boolean v0, p0, Ln2/h;->v:Z

    return-void
.end method

.method public stop()V
    .registers 2

    const/4 v0, 0x0

    iput-boolean v0, p0, Ln2/h;->v:Z

    return-void
.end method

.method public toString()Ljava/lang/String;
    .registers 4

    new-instance v0, Ljava/lang/StringBuilder;

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

    invoke-virtual {p0}, 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

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

    const-string v1, "["

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

    iget-object v1, p0, Ln2/h;->x:Ljava/lang/String;

    const-string v2, "]"

    invoke-static {v0, v1, v2}, Landroidx/activity/b;->a(Ljava/lang/StringBuilder;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method
