.class final Landroidx/lifecycle/SavedStateHandleController;
.super Ljava/lang/Object;
.source ""

# interfaces
.implements Landroidx/lifecycle/l;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Landroidx/lifecycle/SavedStateHandleController$a;
    }
.end annotation


# instance fields
.field public final r:Ljava/lang/String;

.field public s:Z

.field public final t:Landroidx/lifecycle/z;


# direct methods
.method public constructor <init>(Ljava/lang/String;Landroidx/lifecycle/z;)V
    .registers 4

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

    const/4 v0, 0x0

    iput-boolean v0, p0, Landroidx/lifecycle/SavedStateHandleController;->s:Z

    iput-object p1, p0, Landroidx/lifecycle/SavedStateHandleController;->r:Ljava/lang/String;

    iput-object p2, p0, Landroidx/lifecycle/SavedStateHandleController;->t:Landroidx/lifecycle/z;

    return-void
.end method

.method public static i(Landroidx/savedstate/a;Landroidx/lifecycle/i;)V
    .registers 4

    move-object v0, p1

    check-cast v0, Landroidx/lifecycle/o;

    .line 1
    iget-object v0, v0, Landroidx/lifecycle/o;->b:Landroidx/lifecycle/i$c;

    .line 2
    sget-object v1, Landroidx/lifecycle/i$c;->s:Landroidx/lifecycle/i$c;

    if-eq v0, v1, :cond_20

    sget-object v1, Landroidx/lifecycle/i$c;->u:Landroidx/lifecycle/i$c;

    .line 3
    invoke-virtual {v0, v1}, Ljava/lang/Enum;->compareTo(Ljava/lang/Enum;)I

    move-result v0

    if-ltz v0, :cond_13

    const/4 v0, 0x1

    goto :goto_14

    :cond_13
    const/4 v0, 0x0

    :goto_14
    if-eqz v0, :cond_17

    goto :goto_20

    .line 4
    :cond_17
    new-instance v0, Landroidx/lifecycle/SavedStateHandleController$1;

    invoke-direct {v0, p1, p0}, Landroidx/lifecycle/SavedStateHandleController$1;-><init>(Landroidx/lifecycle/i;Landroidx/savedstate/a;)V

    invoke-virtual {p1, v0}, Landroidx/lifecycle/i;->a(Landroidx/lifecycle/m;)V

    goto :goto_25

    :cond_20
    :goto_20
    const-class p1, Landroidx/lifecycle/SavedStateHandleController$a;

    invoke-virtual {p0, p1}, Landroidx/savedstate/a;->c(Ljava/lang/Class;)V

    :goto_25
    return-void
.end method


# virtual methods
.method public g(Landroidx/lifecycle/n;Landroidx/lifecycle/i$b;)V
    .registers 4

    sget-object v0, Landroidx/lifecycle/i$b;->ON_DESTROY:Landroidx/lifecycle/i$b;

    if-ne p2, v0, :cond_17

    const/4 p2, 0x0

    iput-boolean p2, p0, Landroidx/lifecycle/SavedStateHandleController;->s:Z

    invoke-interface {p1}, Landroidx/lifecycle/n;->a()Landroidx/lifecycle/i;

    move-result-object p1

    check-cast p1, Landroidx/lifecycle/o;

    const-string p2, "removeObserver"

    .line 1
    invoke-virtual {p1, p2}, Landroidx/lifecycle/o;->d(Ljava/lang/String;)V

    iget-object p1, p1, Landroidx/lifecycle/o;->a:Lm/a;

    invoke-virtual {p1, p0}, Lm/a;->h(Ljava/lang/Object;)Ljava/lang/Object;

    :cond_17
    return-void
.end method

.method public h(Landroidx/savedstate/a;Landroidx/lifecycle/i;)V
    .registers 4

    iget-boolean v0, p0, Landroidx/lifecycle/SavedStateHandleController;->s:Z

    if-nez v0, :cond_14

    const/4 v0, 0x1

    iput-boolean v0, p0, Landroidx/lifecycle/SavedStateHandleController;->s:Z

    invoke-virtual {p2, p0}, Landroidx/lifecycle/i;->a(Landroidx/lifecycle/m;)V

    iget-object p2, p0, Landroidx/lifecycle/SavedStateHandleController;->r:Ljava/lang/String;

    iget-object v0, p0, Landroidx/lifecycle/SavedStateHandleController;->t:Landroidx/lifecycle/z;

    .line 1
    iget-object v0, v0, Landroidx/lifecycle/z;->d:Landroidx/savedstate/a$b;

    .line 2
    invoke-virtual {p1, p2, v0}, Landroidx/savedstate/a;->b(Ljava/lang/String;Landroidx/savedstate/a$b;)V

    return-void

    :cond_14
    new-instance p1, Ljava/lang/IllegalStateException;

    const-string p2, "Already attached to lifecycleOwner"

    invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V

    throw p1
.end method
