.class Landroidx/recyclerview/widget/ChildHelper$Bucket; .super Ljava/lang/Object; .source "ChildHelper.java" # annotations .annotation system Ldalvik/annotation/EnclosingClass; value = Landroidx/recyclerview/widget/ChildHelper; .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x8 name = "Bucket" .end annotation # static fields .field static final BITS_PER_WORD:I = 0x40 .field static final LAST_BIT:J = -0x8000000000000000L # instance fields .field mData:J .field mNext:Landroidx/recyclerview/widget/ChildHelper$Bucket; # direct methods .method constructor ()V .locals 2 .line 459 invoke-direct {p0}, Ljava/lang/Object;->()V const-wide/16 v0, 0x0 iput-wide v0, p0, Landroidx/recyclerview/widget/ChildHelper$Bucket;->mData:J return-void .end method .method private ensureNext()V .locals 1 iget-object v0, p0, Landroidx/recyclerview/widget/ChildHelper$Bucket;->mNext:Landroidx/recyclerview/widget/ChildHelper$Bucket; if-nez v0, :cond_0 .line 480 new-instance v0, Landroidx/recyclerview/widget/ChildHelper$Bucket; invoke-direct {v0}, Landroidx/recyclerview/widget/ChildHelper$Bucket;->()V iput-object v0, p0, Landroidx/recyclerview/widget/ChildHelper$Bucket;->mNext:Landroidx/recyclerview/widget/ChildHelper$Bucket; :cond_0 return-void .end method # virtual methods .method clear(I)V .locals 4 const/16 v0, 0x40 if-lt p1, v0, :cond_0 iget-object p0, p0, Landroidx/recyclerview/widget/ChildHelper$Bucket;->mNext:Landroidx/recyclerview/widget/ChildHelper$Bucket; if-eqz p0, :cond_1 sub-int/2addr p1, v0 .line 487 invoke-virtual {p0, p1}, Landroidx/recyclerview/widget/ChildHelper$Bucket;->clear(I)V goto :goto_0 :cond_0 iget-wide v0, p0, Landroidx/recyclerview/widget/ChildHelper$Bucket;->mData:J const-wide/16 v2, 0x1 shl-long/2addr v2, p1 not-long v2, v2 and-long/2addr v0, v2 iput-wide v0, p0, Landroidx/recyclerview/widget/ChildHelper$Bucket;->mData:J :cond_1 :goto_0 return-void .end method .method countOnesBefore(I)I .locals 4 iget-object v0, p0, Landroidx/recyclerview/widget/ChildHelper$Bucket;->mNext:Landroidx/recyclerview/widget/ChildHelper$Bucket; const/16 v1, 0x40 const-wide/16 v2, 0x1 if-nez v0, :cond_1 if-lt p1, v1, :cond_0 iget-wide p0, p0, Landroidx/recyclerview/widget/ChildHelper$Bucket;->mData:J .line 559 invoke-static {p0, p1}, Ljava/lang/Long;->bitCount(J)I move-result p0 return p0 :cond_0 iget-wide v0, p0, Landroidx/recyclerview/widget/ChildHelper$Bucket;->mData:J shl-long p0, v2, p1 sub-long/2addr p0, v2 and-long/2addr p0, v0 .line 561 invoke-static {p0, p1}, Ljava/lang/Long;->bitCount(J)I move-result p0 return p0 :cond_1 if-ge p1, v1, :cond_2 iget-wide v0, p0, Landroidx/recyclerview/widget/ChildHelper$Bucket;->mData:J shl-long p0, v2, p1 sub-long/2addr p0, v2 and-long/2addr p0, v0 .line 564 invoke-static {p0, p1}, Ljava/lang/Long;->bitCount(J)I move-result p0 return p0 :cond_2 sub-int/2addr p1, v1 .line 566 invoke-virtual {v0, p1}, Landroidx/recyclerview/widget/ChildHelper$Bucket;->countOnesBefore(I)I move-result p1 iget-wide v0, p0, Landroidx/recyclerview/widget/ChildHelper$Bucket;->mData:J invoke-static {v0, v1}, Ljava/lang/Long;->bitCount(J)I move-result p0 add-int/2addr p1, p0 return p1 .end method .method get(I)Z .locals 4 const/16 v0, 0x40 if-lt p1, v0, :cond_0 .line 497 invoke-direct {p0}, Landroidx/recyclerview/widget/ChildHelper$Bucket;->ensureNext()V iget-object p0, p0, Landroidx/recyclerview/widget/ChildHelper$Bucket;->mNext:Landroidx/recyclerview/widget/ChildHelper$Bucket; sub-int/2addr p1, v0 .line 498 invoke-virtual {p0, p1}, Landroidx/recyclerview/widget/ChildHelper$Bucket;->get(I)Z move-result p0 return p0 :cond_0 iget-wide v0, p0, Landroidx/recyclerview/widget/ChildHelper$Bucket;->mData:J const-wide/16 v2, 0x1 shl-long p0, v2, p1 and-long/2addr p0, v0 const-wide/16 v0, 0x0 cmp-long p0, p0, v0 if-eqz p0, :cond_1 const/4 p0, 0x1 goto :goto_0 :cond_1 const/4 p0, 0x0 :goto_0 return p0 .end method .method insert(IZ)V .locals 9 const/16 v0, 0x40 if-lt p1, v0, :cond_0 .line 513 invoke-direct {p0}, Landroidx/recyclerview/widget/ChildHelper$Bucket;->ensureNext()V iget-object p0, p0, Landroidx/recyclerview/widget/ChildHelper$Bucket;->mNext:Landroidx/recyclerview/widget/ChildHelper$Bucket; sub-int/2addr p1, v0 .line 514 invoke-virtual {p0, p1, p2}, Landroidx/recyclerview/widget/ChildHelper$Bucket;->insert(IZ)V goto :goto_2 :cond_0 iget-wide v0, p0, Landroidx/recyclerview/widget/ChildHelper$Bucket;->mData:J const-wide/high16 v2, -0x8000000000000000L and-long/2addr v2, v0 const-wide/16 v4, 0x0 cmp-long v2, v2, v4 const/4 v3, 0x1 const/4 v4, 0x0 if-eqz v2, :cond_1 move v2, v3 goto :goto_0 :cond_1 move v2, v4 :goto_0 const-wide/16 v5, 0x1 shl-long v7, v5, p1 sub-long/2addr v7, v5 and-long v5, v0, v7 not-long v7, v7 and-long/2addr v0, v7 shl-long/2addr v0, v3 or-long/2addr v0, v5 iput-wide v0, p0, Landroidx/recyclerview/widget/ChildHelper$Bucket;->mData:J if-eqz p2, :cond_2 .line 522 invoke-virtual {p0, p1}, Landroidx/recyclerview/widget/ChildHelper$Bucket;->set(I)V goto :goto_1 .line 524 :cond_2 invoke-virtual {p0, p1}, Landroidx/recyclerview/widget/ChildHelper$Bucket;->clear(I)V :goto_1 if-nez v2, :cond_3 iget-object p1, p0, Landroidx/recyclerview/widget/ChildHelper$Bucket;->mNext:Landroidx/recyclerview/widget/ChildHelper$Bucket; if-eqz p1, :cond_4 .line 527 :cond_3 invoke-direct {p0}, Landroidx/recyclerview/widget/ChildHelper$Bucket;->ensureNext()V iget-object p0, p0, Landroidx/recyclerview/widget/ChildHelper$Bucket;->mNext:Landroidx/recyclerview/widget/ChildHelper$Bucket; .line 528 invoke-virtual {p0, v4, v2}, Landroidx/recyclerview/widget/ChildHelper$Bucket;->insert(IZ)V :cond_4 :goto_2 return-void .end method .method remove(I)Z .locals 10 const/16 v0, 0x40 if-lt p1, v0, :cond_0 .line 535 invoke-direct {p0}, Landroidx/recyclerview/widget/ChildHelper$Bucket;->ensureNext()V iget-object p0, p0, Landroidx/recyclerview/widget/ChildHelper$Bucket;->mNext:Landroidx/recyclerview/widget/ChildHelper$Bucket; sub-int/2addr p1, v0 .line 536 invoke-virtual {p0, p1}, Landroidx/recyclerview/widget/ChildHelper$Bucket;->remove(I)Z move-result p0 return p0 :cond_0 const-wide/16 v0, 0x1 shl-long v2, v0, p1 iget-wide v4, p0, Landroidx/recyclerview/widget/ChildHelper$Bucket;->mData:J and-long v6, v4, v2 const-wide/16 v8, 0x0 cmp-long p1, v6, v8 const/4 v6, 0x1 const/4 v7, 0x0 if-eqz p1, :cond_1 move p1, v6 goto :goto_0 :cond_1 move p1, v7 :goto_0 not-long v8, v2 and-long/2addr v4, v8 iput-wide v4, p0, Landroidx/recyclerview/widget/ChildHelper$Bucket;->mData:J sub-long/2addr v2, v0 and-long v0, v4, v2 not-long v2, v2 and-long/2addr v2, v4 .line 544 invoke-static {v2, v3, v6}, Ljava/lang/Long;->rotateRight(JI)J move-result-wide v2 or-long/2addr v0, v2 iput-wide v0, p0, Landroidx/recyclerview/widget/ChildHelper$Bucket;->mData:J iget-object v0, p0, Landroidx/recyclerview/widget/ChildHelper$Bucket;->mNext:Landroidx/recyclerview/widget/ChildHelper$Bucket; if-eqz v0, :cond_3 .line 547 invoke-virtual {v0, v7}, Landroidx/recyclerview/widget/ChildHelper$Bucket;->get(I)Z move-result v0 if-eqz v0, :cond_2 const/16 v0, 0x3f .line 548 invoke-virtual {p0, v0}, Landroidx/recyclerview/widget/ChildHelper$Bucket;->set(I)V :cond_2 iget-object p0, p0, Landroidx/recyclerview/widget/ChildHelper$Bucket;->mNext:Landroidx/recyclerview/widget/ChildHelper$Bucket; .line 550 invoke-virtual {p0, v7}, Landroidx/recyclerview/widget/ChildHelper$Bucket;->remove(I)Z :cond_3 return p1 .end method .method reset()V .locals 2 const-wide/16 v0, 0x0 iput-wide v0, p0, Landroidx/recyclerview/widget/ChildHelper$Bucket;->mData:J iget-object p0, p0, Landroidx/recyclerview/widget/ChildHelper$Bucket;->mNext:Landroidx/recyclerview/widget/ChildHelper$Bucket; if-eqz p0, :cond_0 .line 507 invoke-virtual {p0}, Landroidx/recyclerview/widget/ChildHelper$Bucket;->reset()V :cond_0 return-void .end method .method set(I)V .locals 4 const/16 v0, 0x40 if-lt p1, v0, :cond_0 .line 471 invoke-direct {p0}, Landroidx/recyclerview/widget/ChildHelper$Bucket;->ensureNext()V iget-object p0, p0, Landroidx/recyclerview/widget/ChildHelper$Bucket;->mNext:Landroidx/recyclerview/widget/ChildHelper$Bucket; sub-int/2addr p1, v0 .line 472 invoke-virtual {p0, p1}, Landroidx/recyclerview/widget/ChildHelper$Bucket;->set(I)V goto :goto_0 :cond_0 iget-wide v0, p0, Landroidx/recyclerview/widget/ChildHelper$Bucket;->mData:J const-wide/16 v2, 0x1 shl-long/2addr v2, p1 or-long/2addr v0, v2 iput-wide v0, p0, Landroidx/recyclerview/widget/ChildHelper$Bucket;->mData:J :goto_0 return-void .end method .method public toString()Ljava/lang/String; .locals 3 iget-object v0, p0, Landroidx/recyclerview/widget/ChildHelper$Bucket;->mNext:Landroidx/recyclerview/widget/ChildHelper$Bucket; if-nez v0, :cond_0 iget-wide v0, p0, Landroidx/recyclerview/widget/ChildHelper$Bucket;->mData:J .line 572 invoke-static {v0, v1}, Ljava/lang/Long;->toBinaryString(J)Ljava/lang/String; move-result-object p0 goto :goto_0 .line 573 :cond_0 new-instance v0, Ljava/lang/StringBuilder; invoke-direct {v0}, Ljava/lang/StringBuilder;->()V iget-object v1, p0, Landroidx/recyclerview/widget/ChildHelper$Bucket;->mNext:Landroidx/recyclerview/widget/ChildHelper$Bucket; invoke-virtual {v1}, Landroidx/recyclerview/widget/ChildHelper$Bucket;->toString()Ljava/lang/String; move-result-object v1 invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 const-string v1, "xx" invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 iget-wide v1, p0, Landroidx/recyclerview/widget/ChildHelper$Bucket;->mData:J invoke-static {v1, v2}, Ljava/lang/Long;->toBinaryString(J)Ljava/lang/String; move-result-object p0 invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object p0 invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object p0 :goto_0 return-object p0 .end method