apkfuckery/com.discord/smali/androidx/recyclerview/widget/ViewBoundsCheck$BoundFlags.smali

221 lines
4.5 KiB
Smali
Raw Normal View History

2019-02-04 20:08:30 +00:00
.class Landroidx/recyclerview/widget/ViewBoundsCheck$BoundFlags;
.super Ljava/lang/Object;
2019-02-04 20:29:01 +00:00
.source "ViewBoundsCheck.java"
2019-02-04 20:08:30 +00:00
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/recyclerview/widget/ViewBoundsCheck;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x8
name = "BoundFlags"
.end annotation
# instance fields
.field mBoundFlags:I
.field mChildEnd:I
.field mChildStart:I
.field mRvEnd:I
.field mRvStart:I
# direct methods
.method constructor <init>()V
.locals 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/4 v0, 0x0
iput v0, p0, Landroidx/recyclerview/widget/ViewBoundsCheck$BoundFlags;->mBoundFlags:I
return-void
.end method
# virtual methods
.method addFlags(I)V
.locals 1
iget v0, p0, Landroidx/recyclerview/widget/ViewBoundsCheck$BoundFlags;->mBoundFlags:I
or-int/2addr p1, v0
iput p1, p0, Landroidx/recyclerview/widget/ViewBoundsCheck$BoundFlags;->mBoundFlags:I
return-void
.end method
.method boundsMatch()Z
.locals 4
iget v0, p0, Landroidx/recyclerview/widget/ViewBoundsCheck$BoundFlags;->mBoundFlags:I
2019-02-04 20:29:01 +00:00
and-int/lit8 v1, v0, 0x7
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
const/4 v2, 0x0
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
if-eqz v1, :cond_0
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
iget v1, p0, Landroidx/recyclerview/widget/ViewBoundsCheck$BoundFlags;->mChildStart:I
2019-02-04 20:08:30 +00:00
iget v3, p0, Landroidx/recyclerview/widget/ViewBoundsCheck$BoundFlags;->mRvStart:I
2019-02-04 20:29:01 +00:00
invoke-virtual {p0, v1, v3}, Landroidx/recyclerview/widget/ViewBoundsCheck$BoundFlags;->compare(II)I
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
move-result v1
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
shl-int/2addr v1, v2
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
and-int/2addr v0, v1
2019-02-04 20:08:30 +00:00
if-nez v0, :cond_0
2019-02-04 20:29:01 +00:00
return v2
2019-02-04 20:08:30 +00:00
:cond_0
iget v0, p0, Landroidx/recyclerview/widget/ViewBoundsCheck$BoundFlags;->mBoundFlags:I
2019-02-04 20:29:01 +00:00
and-int/lit8 v1, v0, 0x70
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
if-eqz v1, :cond_1
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
iget v1, p0, Landroidx/recyclerview/widget/ViewBoundsCheck$BoundFlags;->mChildStart:I
2019-02-04 20:08:30 +00:00
iget v3, p0, Landroidx/recyclerview/widget/ViewBoundsCheck$BoundFlags;->mRvEnd:I
2019-02-04 20:29:01 +00:00
invoke-virtual {p0, v1, v3}, Landroidx/recyclerview/widget/ViewBoundsCheck$BoundFlags;->compare(II)I
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
move-result v1
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
shl-int/lit8 v1, v1, 0x4
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
and-int/2addr v0, v1
2019-02-04 20:08:30 +00:00
if-nez v0, :cond_1
2019-02-04 20:29:01 +00:00
return v2
2019-02-04 20:08:30 +00:00
:cond_1
iget v0, p0, Landroidx/recyclerview/widget/ViewBoundsCheck$BoundFlags;->mBoundFlags:I
2019-02-04 20:29:01 +00:00
and-int/lit16 v1, v0, 0x700
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
if-eqz v1, :cond_2
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
iget v1, p0, Landroidx/recyclerview/widget/ViewBoundsCheck$BoundFlags;->mChildEnd:I
2019-02-04 20:08:30 +00:00
iget v3, p0, Landroidx/recyclerview/widget/ViewBoundsCheck$BoundFlags;->mRvStart:I
2019-02-04 20:29:01 +00:00
invoke-virtual {p0, v1, v3}, Landroidx/recyclerview/widget/ViewBoundsCheck$BoundFlags;->compare(II)I
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
move-result v1
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
shl-int/lit8 v1, v1, 0x8
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
and-int/2addr v0, v1
2019-02-04 20:08:30 +00:00
if-nez v0, :cond_2
2019-02-04 20:29:01 +00:00
return v2
2019-02-04 20:08:30 +00:00
:cond_2
iget v0, p0, Landroidx/recyclerview/widget/ViewBoundsCheck$BoundFlags;->mBoundFlags:I
2019-02-04 20:29:01 +00:00
and-int/lit16 v1, v0, 0x7000
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
if-eqz v1, :cond_3
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
iget v1, p0, Landroidx/recyclerview/widget/ViewBoundsCheck$BoundFlags;->mChildEnd:I
2019-02-04 20:08:30 +00:00
iget v3, p0, Landroidx/recyclerview/widget/ViewBoundsCheck$BoundFlags;->mRvEnd:I
2019-02-04 20:29:01 +00:00
invoke-virtual {p0, v1, v3}, Landroidx/recyclerview/widget/ViewBoundsCheck$BoundFlags;->compare(II)I
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
move-result v1
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
shl-int/lit8 v1, v1, 0xc
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
and-int/2addr v0, v1
2019-02-04 20:08:30 +00:00
if-nez v0, :cond_3
2019-02-04 20:29:01 +00:00
return v2
2019-02-04 20:08:30 +00:00
:cond_3
const/4 v0, 0x1
return v0
.end method
.method compare(II)I
.locals 0
if-le p1, p2, :cond_0
const/4 p1, 0x1
return p1
:cond_0
if-ne p1, p2, :cond_1
const/4 p1, 0x2
return p1
:cond_1
const/4 p1, 0x4
return p1
.end method
.method resetFlags()V
.locals 1
const/4 v0, 0x0
iput v0, p0, Landroidx/recyclerview/widget/ViewBoundsCheck$BoundFlags;->mBoundFlags:I
return-void
.end method
.method setBounds(IIII)V
.locals 0
iput p1, p0, Landroidx/recyclerview/widget/ViewBoundsCheck$BoundFlags;->mRvStart:I
iput p2, p0, Landroidx/recyclerview/widget/ViewBoundsCheck$BoundFlags;->mRvEnd:I
iput p3, p0, Landroidx/recyclerview/widget/ViewBoundsCheck$BoundFlags;->mChildStart:I
iput p4, p0, Landroidx/recyclerview/widget/ViewBoundsCheck$BoundFlags;->mChildEnd:I
return-void
.end method
.method setFlags(II)V
.locals 2
iget v0, p0, Landroidx/recyclerview/widget/ViewBoundsCheck$BoundFlags;->mBoundFlags:I
xor-int/lit8 v1, p2, -0x1
and-int/2addr v0, v1
and-int/2addr p1, p2
or-int/2addr p1, v0
iput p1, p0, Landroidx/recyclerview/widget/ViewBoundsCheck$BoundFlags;->mBoundFlags:I
return-void
.end method