.class public Landroidx/recyclerview/widget/d0;
.super Ljava/lang/Object;
.source ""


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Landroidx/recyclerview/widget/d0$a;,
        Landroidx/recyclerview/widget/d0$b;
    }
.end annotation


# instance fields
.field public final a:Lr/h;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lr/h<",
            "Landroidx/recyclerview/widget/RecyclerView$a0;",
            "Landroidx/recyclerview/widget/d0$a;",
            ">;"
        }
    .end annotation
.end field

.field public final b:Lr/e;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lr/e<",
            "Landroidx/recyclerview/widget/RecyclerView$a0;",
            ">;"
        }
    .end annotation
.end field


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

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

    new-instance v0, Lr/h;

    invoke-direct {v0}, Lr/h;-><init>()V

    iput-object v0, p0, Landroidx/recyclerview/widget/d0;->a:Lr/h;

    new-instance v0, Lr/e;

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

    iput-object v0, p0, Landroidx/recyclerview/widget/d0;->b:Lr/e;

    return-void
.end method


# virtual methods
.method public a(Landroidx/recyclerview/widget/RecyclerView$a0;)V
    .registers 4

    iget-object v0, p0, Landroidx/recyclerview/widget/d0;->a:Lr/h;

    const/4 v1, 0x0

    .line 1
    invoke-virtual {v0, p1, v1}, Lr/h;->getOrDefault(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    .line 2
    check-cast v0, Landroidx/recyclerview/widget/d0$a;

    if-nez v0, :cond_14

    invoke-static {}, Landroidx/recyclerview/widget/d0$a;->a()Landroidx/recyclerview/widget/d0$a;

    move-result-object v0

    iget-object v1, p0, Landroidx/recyclerview/widget/d0;->a:Lr/h;

    invoke-virtual {v1, p1, v0}, Lr/h;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    :cond_14
    iget p1, v0, Landroidx/recyclerview/widget/d0$a;->a:I

    or-int/lit8 p1, p1, 0x1

    iput p1, v0, Landroidx/recyclerview/widget/d0$a;->a:I

    return-void
.end method

.method public b(Landroidx/recyclerview/widget/RecyclerView$a0;Landroidx/recyclerview/widget/RecyclerView$j$c;)V
    .registers 5

    iget-object v0, p0, Landroidx/recyclerview/widget/d0;->a:Lr/h;

    const/4 v1, 0x0

    .line 1
    invoke-virtual {v0, p1, v1}, Lr/h;->getOrDefault(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    .line 2
    check-cast v0, Landroidx/recyclerview/widget/d0$a;

    if-nez v0, :cond_14

    invoke-static {}, Landroidx/recyclerview/widget/d0$a;->a()Landroidx/recyclerview/widget/d0$a;

    move-result-object v0

    iget-object v1, p0, Landroidx/recyclerview/widget/d0;->a:Lr/h;

    invoke-virtual {v1, p1, v0}, Lr/h;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    :cond_14
    iput-object p2, v0, Landroidx/recyclerview/widget/d0$a;->c:Landroidx/recyclerview/widget/RecyclerView$j$c;

    iget p1, v0, Landroidx/recyclerview/widget/d0$a;->a:I

    or-int/lit8 p1, p1, 0x8

    iput p1, v0, Landroidx/recyclerview/widget/d0$a;->a:I

    return-void
.end method

.method public c(Landroidx/recyclerview/widget/RecyclerView$a0;Landroidx/recyclerview/widget/RecyclerView$j$c;)V
    .registers 5

    iget-object v0, p0, Landroidx/recyclerview/widget/d0;->a:Lr/h;

    const/4 v1, 0x0

    .line 1
    invoke-virtual {v0, p1, v1}, Lr/h;->getOrDefault(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    .line 2
    check-cast v0, Landroidx/recyclerview/widget/d0$a;

    if-nez v0, :cond_14

    invoke-static {}, Landroidx/recyclerview/widget/d0$a;->a()Landroidx/recyclerview/widget/d0$a;

    move-result-object v0

    iget-object v1, p0, Landroidx/recyclerview/widget/d0;->a:Lr/h;

    invoke-virtual {v1, p1, v0}, Lr/h;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    :cond_14
    iput-object p2, v0, Landroidx/recyclerview/widget/d0$a;->b:Landroidx/recyclerview/widget/RecyclerView$j$c;

    iget p1, v0, Landroidx/recyclerview/widget/d0$a;->a:I

    or-int/lit8 p1, p1, 0x4

    iput p1, v0, Landroidx/recyclerview/widget/d0$a;->a:I

    return-void
.end method

.method public d(Landroidx/recyclerview/widget/RecyclerView$a0;)Z
    .registers 4

    iget-object v0, p0, Landroidx/recyclerview/widget/d0;->a:Lr/h;

    const/4 v1, 0x0

    .line 1
    invoke-virtual {v0, p1, v1}, Lr/h;->getOrDefault(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p1

    .line 2
    check-cast p1, Landroidx/recyclerview/widget/d0$a;

    const/4 v0, 0x1

    if-eqz p1, :cond_12

    iget p1, p1, Landroidx/recyclerview/widget/d0$a;->a:I

    and-int/2addr p1, v0

    if-eqz p1, :cond_12

    goto :goto_13

    :cond_12
    const/4 v0, 0x0

    :goto_13
    return v0
.end method

.method public final e(Landroidx/recyclerview/widget/RecyclerView$a0;I)Landroidx/recyclerview/widget/RecyclerView$j$c;
    .registers 7

    iget-object v0, p0, Landroidx/recyclerview/widget/d0;->a:Lr/h;

    invoke-virtual {v0, p1}, Lr/h;->e(Ljava/lang/Object;)I

    move-result p1

    const/4 v0, 0x0

    if-gez p1, :cond_a

    return-object v0

    :cond_a
    iget-object v1, p0, Landroidx/recyclerview/widget/d0;->a:Lr/h;

    invoke-virtual {v1, p1}, Lr/h;->l(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Landroidx/recyclerview/widget/d0$a;

    if-eqz v1, :cond_3f

    iget v2, v1, Landroidx/recyclerview/widget/d0$a;->a:I

    and-int v3, v2, p2

    if-eqz v3, :cond_3f

    not-int v0, p2

    and-int/2addr v0, v2

    iput v0, v1, Landroidx/recyclerview/widget/d0$a;->a:I

    const/4 v2, 0x4

    if-ne p2, v2, :cond_24

    iget-object p2, v1, Landroidx/recyclerview/widget/d0$a;->b:Landroidx/recyclerview/widget/RecyclerView$j$c;

    goto :goto_2a

    :cond_24
    const/16 v2, 0x8

    if-ne p2, v2, :cond_37

    iget-object p2, v1, Landroidx/recyclerview/widget/d0$a;->c:Landroidx/recyclerview/widget/RecyclerView$j$c;

    :goto_2a
    and-int/lit8 v0, v0, 0xc

    if-nez v0, :cond_36

    iget-object v0, p0, Landroidx/recyclerview/widget/d0;->a:Lr/h;

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

    invoke-static {v1}, Landroidx/recyclerview/widget/d0$a;->b(Landroidx/recyclerview/widget/d0$a;)V

    :cond_36
    return-object p2

    :cond_37
    new-instance p1, Ljava/lang/IllegalArgumentException;

    const-string p2, "Must provide flag PRE or POST"

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

    throw p1

    :cond_3f
    return-object v0
.end method

.method public f(Landroidx/recyclerview/widget/RecyclerView$a0;)V
    .registers 4

    iget-object v0, p0, Landroidx/recyclerview/widget/d0;->a:Lr/h;

    const/4 v1, 0x0

    .line 1
    invoke-virtual {v0, p1, v1}, Lr/h;->getOrDefault(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p1

    .line 2
    check-cast p1, Landroidx/recyclerview/widget/d0$a;

    if-nez p1, :cond_c

    return-void

    :cond_c
    iget v0, p1, Landroidx/recyclerview/widget/d0$a;->a:I

    and-int/lit8 v0, v0, -0x2

    iput v0, p1, Landroidx/recyclerview/widget/d0$a;->a:I

    return-void
.end method

.method public g(Landroidx/recyclerview/widget/RecyclerView$a0;)V
    .registers 8

    iget-object v0, p0, Landroidx/recyclerview/widget/d0;->b:Lr/e;

    invoke-virtual {v0}, Lr/e;->i()I

    move-result v0

    const/4 v1, 0x1

    sub-int/2addr v0, v1

    :goto_8
    if-ltz v0, :cond_24

    iget-object v2, p0, Landroidx/recyclerview/widget/d0;->b:Lr/e;

    invoke-virtual {v2, v0}, Lr/e;->j(I)Ljava/lang/Object;

    move-result-object v2

    if-ne p1, v2, :cond_21

    iget-object v2, p0, Landroidx/recyclerview/widget/d0;->b:Lr/e;

    .line 1
    iget-object v3, v2, Lr/e;->t:[Ljava/lang/Object;

    aget-object v4, v3, v0

    sget-object v5, Lr/e;->v:Ljava/lang/Object;

    if-eq v4, v5, :cond_24

    aput-object v5, v3, v0

    iput-boolean v1, v2, Lr/e;->r:Z

    goto :goto_24

    :cond_21
    add-int/lit8 v0, v0, -0x1

    goto :goto_8

    .line 2
    :cond_24
    :goto_24
    iget-object v0, p0, Landroidx/recyclerview/widget/d0;->a:Lr/h;

    invoke-virtual {v0, p1}, Lr/h;->remove(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Landroidx/recyclerview/widget/d0$a;

    if-eqz p1, :cond_31

    invoke-static {p1}, Landroidx/recyclerview/widget/d0$a;->b(Landroidx/recyclerview/widget/d0$a;)V

    :cond_31
    return-void
.end method
