apkfuckery/com.discord/smali_classes2/f/g/h/a/c/a.smali
2020-09-16 23:45:23 +00:00

871 lines
15 KiB
Smali

.class public Lf/g/h/a/c/a;
.super Landroid/graphics/drawable/Drawable;
.source "AnimatedDrawable2.java"
# interfaces
.implements Landroid/graphics/drawable/Animatable;
.implements Lf/g/f/a/a;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lf/g/h/a/c/a$b;
}
.end annotation
# static fields
.field public static final u:Ljava/lang/Class;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Class<",
"*>;"
}
.end annotation
.end field
.field public static final v:Lf/g/h/a/c/b;
# instance fields
.field public d:Lf/g/h/a/a/a;
.field public e:Lf/g/h/a/e/a;
.field public volatile f:Z
.field public g:J
.field public h:J
.field public i:J
.field public j:I
.field public k:J
.field public l:J
.field public m:I
.field public n:J
.field public o:J
.field public p:I
.field public volatile q:Lf/g/h/a/c/b;
.field public volatile r:Lf/g/h/a/c/a$b;
.field public s:Lf/g/g/e/e;
.field public final t:Ljava/lang/Runnable;
# direct methods
.method public static constructor <clinit>()V
.locals 1
const-class v0, Lf/g/h/a/c/a;
sput-object v0, Lf/g/h/a/c/a;->u:Ljava/lang/Class;
new-instance v0, Lf/g/h/a/c/b;
invoke-direct {v0}, Lf/g/h/a/c/b;-><init>()V
sput-object v0, Lf/g/h/a/c/a;->v:Lf/g/h/a/c/b;
return-void
.end method
.method public constructor <init>()V
.locals 1
const/4 v0, 0x0
invoke-direct {p0, v0}, Lf/g/h/a/c/a;-><init>(Lf/g/h/a/a/a;)V
return-void
.end method
.method public constructor <init>(Lf/g/h/a/a/a;)V
.locals 2
invoke-direct {p0}, Landroid/graphics/drawable/Drawable;-><init>()V
const-wide/16 v0, 0x8
iput-wide v0, p0, Lf/g/h/a/c/a;->n:J
const-wide/16 v0, 0x0
iput-wide v0, p0, Lf/g/h/a/c/a;->o:J
sget-object v0, Lf/g/h/a/c/a;->v:Lf/g/h/a/c/b;
iput-object v0, p0, Lf/g/h/a/c/a;->q:Lf/g/h/a/c/b;
const/4 v0, 0x0
iput-object v0, p0, Lf/g/h/a/c/a;->r:Lf/g/h/a/c/a$b;
new-instance v1, Lf/g/h/a/c/a$a;
invoke-direct {v1, p0}, Lf/g/h/a/c/a$a;-><init>(Lf/g/h/a/c/a;)V
iput-object v1, p0, Lf/g/h/a/c/a;->t:Ljava/lang/Runnable;
iput-object p1, p0, Lf/g/h/a/c/a;->d:Lf/g/h/a/a/a;
if-nez p1, :cond_0
goto :goto_0
:cond_0
new-instance v0, Lf/g/h/a/e/a;
invoke-direct {v0, p1}, Lf/g/h/a/e/a;-><init>(Lf/g/h/a/a/d;)V
:goto_0
iput-object v0, p0, Lf/g/h/a/c/a;->e:Lf/g/h/a/e/a;
return-void
.end method
# virtual methods
.method public a()V
.locals 1
iget-object v0, p0, Lf/g/h/a/c/a;->d:Lf/g/h/a/a/a;
if-eqz v0, :cond_0
invoke-interface {v0}, Lf/g/h/a/a/a;->clear()V
:cond_0
return-void
.end method
.method public draw(Landroid/graphics/Canvas;)V
.locals 26
move-object/from16 v14, p0
iget-object v0, v14, Lf/g/h/a/c/a;->d:Lf/g/h/a/a/a;
if-eqz v0, :cond_15
iget-object v0, v14, Lf/g/h/a/c/a;->e:Lf/g/h/a/e/a;
if-nez v0, :cond_0
goto/16 :goto_c
:cond_0
invoke-static {}, Landroid/os/SystemClock;->uptimeMillis()J
move-result-wide v12
iget-boolean v0, v14, Lf/g/h/a/c/a;->f:Z
const-wide/16 v1, 0x0
if-eqz v0, :cond_1
iget-wide v3, v14, Lf/g/h/a/c/a;->g:J
sub-long v3, v12, v3
iget-wide v5, v14, Lf/g/h/a/c/a;->o:J
add-long/2addr v3, v5
goto :goto_0
:cond_1
iget-wide v3, v14, Lf/g/h/a/c/a;->h:J
invoke-static {v3, v4, v1, v2}, Ljava/lang/Math;->max(JJ)J
move-result-wide v3
:goto_0
move-wide v8, v3
iget-object v0, v14, Lf/g/h/a/c/a;->e:Lf/g/h/a/e/a;
invoke-virtual {v0}, Lf/g/h/a/e/a;->b()J
move-result-wide v3
const/4 v5, -0x1
const/4 v6, 0x1
const/4 v7, 0x0
cmp-long v10, v3, v1
if-nez v10, :cond_2
invoke-virtual {v0, v1, v2}, Lf/g/h/a/e/a;->a(J)I
move-result v0
goto :goto_2
:cond_2
iget-object v10, v0, Lf/g/h/a/e/a;->a:Lf/g/h/a/a/d;
invoke-interface {v10}, Lf/g/h/a/a/d;->b()I
move-result v10
if-nez v10, :cond_3
const/4 v10, 0x1
goto :goto_1
:cond_3
const/4 v10, 0x0
:goto_1
if-nez v10, :cond_4
div-long v10, v8, v3
iget-object v15, v0, Lf/g/h/a/e/a;->a:Lf/g/h/a/a/d;
invoke-interface {v15}, Lf/g/h/a/a/d;->b()I
move-result v15
int-to-long v1, v15
cmp-long v15, v10, v1
if-ltz v15, :cond_4
const/4 v0, -0x1
goto :goto_2
:cond_4
rem-long v1, v8, v3
invoke-virtual {v0, v1, v2}, Lf/g/h/a/e/a;->a(J)I
move-result v0
:goto_2
const/4 v1, 0x0
if-ne v0, v5, :cond_6
iget-object v0, v14, Lf/g/h/a/c/a;->d:Lf/g/h/a/a/a;
invoke-interface {v0}, Lf/g/h/a/a/d;->a()I
move-result v0
sub-int/2addr v0, v6
iget-object v2, v14, Lf/g/h/a/c/a;->q:Lf/g/h/a/c/b;
if-eqz v2, :cond_5
iput-boolean v7, v14, Lf/g/h/a/c/a;->f:Z
goto :goto_3
:cond_5
throw v1
:cond_6
if-nez v0, :cond_8
iget v2, v14, Lf/g/h/a/c/a;->j:I
if-eq v2, v5, :cond_8
iget-wide v2, v14, Lf/g/h/a/c/a;->i:J
cmp-long v4, v12, v2
if-ltz v4, :cond_8
iget-object v2, v14, Lf/g/h/a/c/a;->q:Lf/g/h/a/c/b;
if-eqz v2, :cond_7
goto :goto_3
:cond_7
throw v1
:cond_8
:goto_3
move v3, v0
iget-object v0, v14, Lf/g/h/a/c/a;->d:Lf/g/h/a/a/a;
move-object/from16 v2, p1
invoke-interface {v0, v14, v2, v3}, Lf/g/h/a/a/a;->j(Landroid/graphics/drawable/Drawable;Landroid/graphics/Canvas;I)Z
move-result v4
if-eqz v4, :cond_a
iget-object v0, v14, Lf/g/h/a/c/a;->q:Lf/g/h/a/c/b;
if-eqz v0, :cond_9
iput v3, v14, Lf/g/h/a/c/a;->j:I
goto :goto_4
:cond_9
throw v1
:cond_a
:goto_4
if-nez v4, :cond_b
iget v0, v14, Lf/g/h/a/c/a;->p:I
add-int/2addr v0, v6
iput v0, v14, Lf/g/h/a/c/a;->p:I
const/4 v0, 0x2
invoke-static {v0}, Lf/g/d/e/a;->g(I)Z
move-result v0
if-eqz v0, :cond_b
sget-object v0, Lf/g/h/a/c/a;->u:Ljava/lang/Class;
iget v2, v14, Lf/g/h/a/c/a;->p:I
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v2
const-string v5, "Dropped a frame. Count: %s"
invoke-static {v0, v5, v2}, Lf/g/d/e/a;->i(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/Object;)V
:cond_b
invoke-static {}, Landroid/os/SystemClock;->uptimeMillis()J
move-result-wide v18
iget-boolean v0, v14, Lf/g/h/a/c/a;->f:Z
if-eqz v0, :cond_13
iget-object v0, v14, Lf/g/h/a/c/a;->e:Lf/g/h/a/e/a;
iget-wide v1, v14, Lf/g/h/a/c/a;->g:J
sub-long v1, v18, v1
invoke-virtual {v0}, Lf/g/h/a/e/a;->b()J
move-result-wide v20
const-wide/16 v15, 0x0
cmp-long v17, v20, v15
if-nez v17, :cond_c
move-wide/from16 v16, v8
:goto_5
const-wide/16 v22, -0x1
goto :goto_8
:cond_c
iget-object v5, v0, Lf/g/h/a/e/a;->a:Lf/g/h/a/a/d;
invoke-interface {v5}, Lf/g/h/a/a/d;->b()I
move-result v5
if-nez v5, :cond_d
goto :goto_6
:cond_d
const/4 v6, 0x0
:goto_6
if-nez v6, :cond_e
invoke-virtual {v0}, Lf/g/h/a/e/a;->b()J
move-result-wide v5
div-long v5, v1, v5
iget-object v15, v0, Lf/g/h/a/e/a;->a:Lf/g/h/a/a/d;
invoke-interface {v15}, Lf/g/h/a/a/d;->b()I
move-result v15
move-wide/from16 v16, v8
int-to-long v7, v15
cmp-long v15, v5, v7
if-ltz v15, :cond_f
goto :goto_5
:cond_e
move-wide/from16 v16, v8
:cond_f
rem-long v5, v1, v20
iget-object v7, v0, Lf/g/h/a/e/a;->a:Lf/g/h/a/a/d;
invoke-interface {v7}, Lf/g/h/a/a/d;->a()I
move-result v7
const/4 v8, 0x0
const-wide/16 v22, 0x0
:goto_7
if-ge v8, v7, :cond_10
cmp-long v15, v22, v5
if-gtz v15, :cond_10
iget-object v15, v0, Lf/g/h/a/e/a;->a:Lf/g/h/a/a/d;
invoke-interface {v15, v8}, Lf/g/h/a/a/d;->e(I)I
move-result v15
int-to-long v9, v15
add-long v22, v22, v9
add-int/lit8 v8, v8, 0x1
goto :goto_7
:cond_10
sub-long v22, v22, v5
add-long v22, v22, v1
:goto_8
const-wide/16 v0, -0x1
cmp-long v2, v22, v0
if-eqz v2, :cond_11
iget-wide v0, v14, Lf/g/h/a/c/a;->n:J
add-long v0, v22, v0
iget-wide v5, v14, Lf/g/h/a/c/a;->g:J
add-long/2addr v5, v0
iput-wide v5, v14, Lf/g/h/a/c/a;->i:J
iget-object v2, v14, Lf/g/h/a/c/a;->t:Ljava/lang/Runnable;
invoke-virtual {v14, v2, v5, v6}, Landroid/graphics/drawable/Drawable;->scheduleSelf(Ljava/lang/Runnable;J)V
goto :goto_9
:cond_11
iget-object v2, v14, Lf/g/h/a/c/a;->q:Lf/g/h/a/c/b;
if-eqz v2, :cond_12
const/4 v2, 0x0
iput-boolean v2, v14, Lf/g/h/a/c/a;->f:Z
:goto_9
move-wide/from16 v20, v0
goto :goto_a
:cond_12
const/4 v0, 0x0
throw v0
:cond_13
move-wide/from16 v16, v8
const-wide/16 v0, -0x1
move-wide/from16 v20, v0
move-wide/from16 v22, v20
:goto_a
iget-object v0, v14, Lf/g/h/a/c/a;->r:Lf/g/h/a/c/a$b;
if-eqz v0, :cond_14
iget-object v2, v14, Lf/g/h/a/c/a;->e:Lf/g/h/a/e/a;
iget-boolean v5, v14, Lf/g/h/a/c/a;->f:Z
iget-wide v6, v14, Lf/g/h/a/c/a;->g:J
iget-wide v10, v14, Lf/g/h/a/c/a;->h:J
move-object/from16 v1, p0
move-wide/from16 v24, v16
move-wide/from16 v8, v24
move-wide/from16 v14, v18
move-wide/from16 v16, v22
move-wide/from16 v18, v20
invoke-interface/range {v0 .. v19}, Lf/g/h/a/c/a$b;->a(Lf/g/h/a/c/a;Lf/g/h/a/e/a;IZZJJJJJJJ)V
move-object/from16 v0, p0
move-wide/from16 v3, v24
goto :goto_b
:cond_14
move-object/from16 v0, p0
move-wide/from16 v3, v16
:goto_b
iput-wide v3, v0, Lf/g/h/a/c/a;->h:J
return-void
:cond_15
:goto_c
move-object v0, v14
return-void
.end method
.method public getIntrinsicHeight()I
.locals 1
iget-object v0, p0, Lf/g/h/a/c/a;->d:Lf/g/h/a/a/a;
if-nez v0, :cond_0
invoke-super {p0}, Landroid/graphics/drawable/Drawable;->getIntrinsicHeight()I
move-result v0
return v0
:cond_0
invoke-interface {v0}, Lf/g/h/a/a/a;->g()I
move-result v0
return v0
.end method
.method public getIntrinsicWidth()I
.locals 1
iget-object v0, p0, Lf/g/h/a/c/a;->d:Lf/g/h/a/a/a;
if-nez v0, :cond_0
invoke-super {p0}, Landroid/graphics/drawable/Drawable;->getIntrinsicWidth()I
move-result v0
return v0
:cond_0
invoke-interface {v0}, Lf/g/h/a/a/a;->i()I
move-result v0
return v0
.end method
.method public getOpacity()I
.locals 1
const/4 v0, -0x3
return v0
.end method
.method public isRunning()Z
.locals 1
iget-boolean v0, p0, Lf/g/h/a/c/a;->f:Z
return v0
.end method
.method public onBoundsChange(Landroid/graphics/Rect;)V
.locals 1
invoke-super {p0, p1}, Landroid/graphics/drawable/Drawable;->onBoundsChange(Landroid/graphics/Rect;)V
iget-object v0, p0, Lf/g/h/a/c/a;->d:Lf/g/h/a/a/a;
if-eqz v0, :cond_0
invoke-interface {v0, p1}, Lf/g/h/a/a/a;->h(Landroid/graphics/Rect;)V
:cond_0
return-void
.end method
.method public onLevelChange(I)Z
.locals 6
iget-boolean v0, p0, Lf/g/h/a/c/a;->f:Z
const/4 v1, 0x0
if-eqz v0, :cond_0
return v1
:cond_0
iget-wide v2, p0, Lf/g/h/a/c/a;->h:J
int-to-long v4, p1
cmp-long p1, v2, v4
if-eqz p1, :cond_1
iput-wide v4, p0, Lf/g/h/a/c/a;->h:J
invoke-virtual {p0}, Landroid/graphics/drawable/Drawable;->invalidateSelf()V
const/4 p1, 0x1
return p1
:cond_1
return v1
.end method
.method public setAlpha(I)V
.locals 1
iget-object v0, p0, Lf/g/h/a/c/a;->s:Lf/g/g/e/e;
if-nez v0, :cond_0
new-instance v0, Lf/g/g/e/e;
invoke-direct {v0}, Lf/g/g/e/e;-><init>()V
iput-object v0, p0, Lf/g/h/a/c/a;->s:Lf/g/g/e/e;
:cond_0
iget-object v0, p0, Lf/g/h/a/c/a;->s:Lf/g/g/e/e;
iput p1, v0, Lf/g/g/e/e;->a:I
iget-object v0, p0, Lf/g/h/a/c/a;->d:Lf/g/h/a/a/a;
if-eqz v0, :cond_1
invoke-interface {v0, p1}, Lf/g/h/a/a/a;->f(I)V
:cond_1
return-void
.end method
.method public setColorFilter(Landroid/graphics/ColorFilter;)V
.locals 2
iget-object v0, p0, Lf/g/h/a/c/a;->s:Lf/g/g/e/e;
if-nez v0, :cond_0
new-instance v0, Lf/g/g/e/e;
invoke-direct {v0}, Lf/g/g/e/e;-><init>()V
iput-object v0, p0, Lf/g/h/a/c/a;->s:Lf/g/g/e/e;
:cond_0
iget-object v0, p0, Lf/g/h/a/c/a;->s:Lf/g/g/e/e;
iput-object p1, v0, Lf/g/g/e/e;->c:Landroid/graphics/ColorFilter;
const/4 v1, 0x1
iput-boolean v1, v0, Lf/g/g/e/e;->b:Z
iget-object v0, p0, Lf/g/h/a/c/a;->d:Lf/g/h/a/a/a;
if-eqz v0, :cond_1
invoke-interface {v0, p1}, Lf/g/h/a/a/a;->d(Landroid/graphics/ColorFilter;)V
:cond_1
return-void
.end method
.method public start()V
.locals 4
iget-boolean v0, p0, Lf/g/h/a/c/a;->f:Z
if-nez v0, :cond_2
iget-object v0, p0, Lf/g/h/a/c/a;->d:Lf/g/h/a/a/a;
if-eqz v0, :cond_2
invoke-interface {v0}, Lf/g/h/a/a/d;->a()I
move-result v0
const/4 v1, 0x1
if-gt v0, v1, :cond_0
goto :goto_0
:cond_0
iput-boolean v1, p0, Lf/g/h/a/c/a;->f:Z
invoke-static {}, Landroid/os/SystemClock;->uptimeMillis()J
move-result-wide v0
iget-wide v2, p0, Lf/g/h/a/c/a;->k:J
sub-long v2, v0, v2
iput-wide v2, p0, Lf/g/h/a/c/a;->g:J
iput-wide v2, p0, Lf/g/h/a/c/a;->i:J
iget-wide v2, p0, Lf/g/h/a/c/a;->l:J
sub-long/2addr v0, v2
iput-wide v0, p0, Lf/g/h/a/c/a;->h:J
iget v0, p0, Lf/g/h/a/c/a;->m:I
iput v0, p0, Lf/g/h/a/c/a;->j:I
invoke-virtual {p0}, Landroid/graphics/drawable/Drawable;->invalidateSelf()V
iget-object v0, p0, Lf/g/h/a/c/a;->q:Lf/g/h/a/c/b;
if-eqz v0, :cond_1
return-void
:cond_1
const/4 v0, 0x0
throw v0
:cond_2
:goto_0
return-void
.end method
.method public stop()V
.locals 4
iget-boolean v0, p0, Lf/g/h/a/c/a;->f:Z
if-nez v0, :cond_0
return-void
:cond_0
invoke-static {}, Landroid/os/SystemClock;->uptimeMillis()J
move-result-wide v0
iget-wide v2, p0, Lf/g/h/a/c/a;->g:J
sub-long v2, v0, v2
iput-wide v2, p0, Lf/g/h/a/c/a;->k:J
iget-wide v2, p0, Lf/g/h/a/c/a;->h:J
sub-long/2addr v0, v2
iput-wide v0, p0, Lf/g/h/a/c/a;->l:J
iget v0, p0, Lf/g/h/a/c/a;->j:I
iput v0, p0, Lf/g/h/a/c/a;->m:I
const/4 v0, 0x0
iput-boolean v0, p0, Lf/g/h/a/c/a;->f:Z
const-wide/16 v0, 0x0
iput-wide v0, p0, Lf/g/h/a/c/a;->g:J
iput-wide v0, p0, Lf/g/h/a/c/a;->i:J
const-wide/16 v0, -0x1
iput-wide v0, p0, Lf/g/h/a/c/a;->h:J
const/4 v0, -0x1
iput v0, p0, Lf/g/h/a/c/a;->j:I
iget-object v0, p0, Lf/g/h/a/c/a;->t:Ljava/lang/Runnable;
invoke-virtual {p0, v0}, Landroid/graphics/drawable/Drawable;->unscheduleSelf(Ljava/lang/Runnable;)V
iget-object v0, p0, Lf/g/h/a/c/a;->q:Lf/g/h/a/c/b;
if-eqz v0, :cond_1
return-void
:cond_1
const/4 v0, 0x0
throw v0
.end method