apkfuckery/com.discord/smali_classes2/f/g/h/a/c/a.smali
2020-07-23 01:06:17 +00:00

835 lines
14 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 r:Ljava/lang/Class;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Class<",
"*>;"
}
.end annotation
.end field
.field public static final s: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 volatile n:Lf/g/h/a/c/b;
.field public volatile o:Lf/g/h/a/c/a$b;
.field public p:Lf/g/g/e/e;
.field public final q: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;->r: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;->s: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;->k:J
const-wide/16 v0, 0x0
iput-wide v0, p0, Lf/g/h/a/c/a;->l:J
sget-object v0, Lf/g/h/a/c/a;->s:Lf/g/h/a/c/b;
iput-object v0, p0, Lf/g/h/a/c/a;->n:Lf/g/h/a/c/b;
const/4 v0, 0x0
iput-object v0, p0, Lf/g/h/a/c/a;->o: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;->q: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_13
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;->l: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;
iget-object v3, v0, Lf/g/h/a/e/a;->a:Lf/g/h/a/a/d;
invoke-interface {v3}, Lf/g/h/a/a/d;->b()I
move-result v3
const/4 v4, 0x1
if-nez v3, :cond_2
const/4 v3, 0x1
goto :goto_1
:cond_2
const/4 v3, 0x0
:goto_1
if-nez v3, :cond_3
invoke-virtual {v0}, Lf/g/h/a/e/a;->a()J
move-result-wide v10
div-long v10, v8, v10
iget-object v3, v0, Lf/g/h/a/e/a;->a:Lf/g/h/a/a/d;
invoke-interface {v3}, Lf/g/h/a/a/d;->b()I
move-result v3
int-to-long v1, v3
cmp-long v3, v10, v1
if-ltz v3, :cond_3
const/4 v3, -0x1
const/4 v5, -0x1
goto :goto_3
:cond_3
invoke-virtual {v0}, Lf/g/h/a/e/a;->a()J
move-result-wide v1
rem-long v1, v8, v1
const/4 v3, 0x0
const-wide/16 v10, 0x0
:goto_2
iget-object v7, v0, Lf/g/h/a/e/a;->a:Lf/g/h/a/a/d;
invoke-interface {v7, v3}, Lf/g/h/a/a/d;->e(I)I
move-result v7
int-to-long v5, v7
add-long/2addr v10, v5
add-int/2addr v3, v4
cmp-long v5, v1, v10
if-gez v5, :cond_12
const/4 v5, -0x1
add-int/2addr v3, v5
:goto_3
const/4 v0, 0x0
if-ne v3, v5, :cond_5
iget-object v1, v14, Lf/g/h/a/c/a;->d:Lf/g/h/a/a/a;
invoke-interface {v1}, Lf/g/h/a/a/d;->a()I
move-result v1
sub-int/2addr v1, v4
iget-object v2, v14, Lf/g/h/a/c/a;->n:Lf/g/h/a/c/b;
if-eqz v2, :cond_4
const/4 v6, 0x0
iput-boolean v6, v14, Lf/g/h/a/c/a;->f:Z
move v3, v1
goto :goto_4
:cond_4
throw v0
:cond_5
const/4 v6, 0x0
if-nez v3, :cond_7
iget v1, v14, Lf/g/h/a/c/a;->j:I
if-eq v1, v5, :cond_7
iget-wide v1, v14, Lf/g/h/a/c/a;->i:J
cmp-long v5, v12, v1
if-ltz v5, :cond_7
iget-object v1, v14, Lf/g/h/a/c/a;->n:Lf/g/h/a/c/b;
if-eqz v1, :cond_6
goto :goto_4
:cond_6
throw v0
:cond_7
:goto_4
iget-object v1, v14, Lf/g/h/a/c/a;->d:Lf/g/h/a/a/a;
move-object/from16 v7, p1
invoke-interface {v1, v14, v7, v3}, Lf/g/h/a/a/a;->j(Landroid/graphics/drawable/Drawable;Landroid/graphics/Canvas;I)Z
move-result v17
if-eqz v17, :cond_9
iget-object v1, v14, Lf/g/h/a/c/a;->n:Lf/g/h/a/c/b;
if-eqz v1, :cond_8
iput v3, v14, Lf/g/h/a/c/a;->j:I
goto :goto_5
:cond_8
throw v0
:cond_9
:goto_5
if-nez v17, :cond_a
iget v0, v14, Lf/g/h/a/c/a;->m:I
add-int/2addr v0, v4
iput v0, v14, Lf/g/h/a/c/a;->m:I
const/4 v0, 0x2
invoke-static {v0}, Lf/g/d/e/a;->g(I)Z
move-result v0
if-eqz v0, :cond_a
sget-object v0, Lf/g/h/a/c/a;->r:Ljava/lang/Class;
iget v1, v14, Lf/g/h/a/c/a;->m:I
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v1
const-string v2, "Dropped a frame. Count: %s"
invoke-static {v0, v2, v1}, Lf/g/d/e/a;->i(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/Object;)V
:cond_a
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_10
iget-object v0, v14, Lf/g/h/a/c/a;->e:Lf/g/h/a/e/a;
iget-wide v10, v14, Lf/g/h/a/c/a;->g:J
sub-long v10, v18, v10
invoke-virtual {v0}, Lf/g/h/a/e/a;->a()J
move-result-wide v20
const-wide/16 v15, 0x0
cmp-long v5, v20, v15
if-nez v5, :cond_b
goto :goto_7
:cond_b
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_c
goto :goto_6
:cond_c
const/4 v4, 0x0
:goto_6
if-nez v4, :cond_d
invoke-virtual {v0}, Lf/g/h/a/e/a;->a()J
move-result-wide v4
div-long v4, v10, v4
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;->b()I
move-result v7
int-to-long v6, v7
cmp-long v23, v4, v6
if-ltz v23, :cond_d
:goto_7
const-wide/16 v0, -0x1
const-wide/16 v15, -0x1
goto :goto_9
:cond_d
rem-long v4, v10, v20
iget-object v6, v0, Lf/g/h/a/e/a;->a:Lf/g/h/a/a/d;
invoke-interface {v6}, Lf/g/h/a/a/d;->a()I
move-result v6
const/4 v7, 0x0
:goto_8
if-ge v7, v6, :cond_e
cmp-long v20, v15, v4
if-gtz v20, :cond_e
iget-object v1, v0, Lf/g/h/a/e/a;->a:Lf/g/h/a/a/d;
invoke-interface {v1, v7}, Lf/g/h/a/a/d;->e(I)I
move-result v1
int-to-long v1, v1
add-long/2addr v15, v1
add-int/lit8 v7, v7, 0x1
goto :goto_8
:cond_e
sub-long/2addr v15, v4
add-long/2addr v15, v10
const-wide/16 v0, -0x1
:goto_9
cmp-long v2, v15, v0
if-eqz v2, :cond_f
iget-wide v0, v14, Lf/g/h/a/c/a;->k:J
add-long v1, v15, v0
iget-wide v4, v14, Lf/g/h/a/c/a;->g:J
add-long/2addr v4, v1
iput-wide v4, v14, Lf/g/h/a/c/a;->i:J
iget-object v0, v14, Lf/g/h/a/c/a;->q:Ljava/lang/Runnable;
invoke-virtual {v14, v0, v4, v5}, Landroid/graphics/drawable/Drawable;->scheduleSelf(Ljava/lang/Runnable;J)V
goto :goto_a
:cond_f
move-wide v1, v0
:goto_a
move-wide/from16 v22, v1
move-wide/from16 v20, v15
goto :goto_b
:cond_10
const-wide/16 v0, -0x1
move-wide/from16 v20, v0
move-wide/from16 v22, v20
:goto_b
iget-object v0, v14, Lf/g/h/a/c/a;->o:Lf/g/h/a/c/a$b;
if-eqz v0, :cond_11
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/from16 v4, v17
move-wide/from16 v24, v8
move-wide/from16 v14, v18
move-wide/from16 v16, v20
move-wide/from16 v18, v22
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
:cond_11
move-object/from16 v6, p0
iput-wide v8, v6, Lf/g/h/a/c/a;->h:J
return-void
:cond_12
move-object/from16 v7, p1
const-wide/16 v15, 0x0
goto/16 :goto_2
:cond_13
:goto_c
move-object v6, 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;->p: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;->p:Lf/g/g/e/e;
:cond_0
iget-object v0, p0, Lf/g/h/a/c/a;->p: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;->p: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;->p:Lf/g/g/e/e;
:cond_0
iget-object v0, p0, Lf/g/h/a/c/a;->p: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 2
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
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
invoke-virtual {p0}, Landroid/graphics/drawable/Drawable;->invalidateSelf()V
iget-object v0, p0, Lf/g/h/a/c/a;->n: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 2
iget-boolean v0, p0, Lf/g/h/a/c/a;->f:Z
if-nez v0, :cond_0
return-void
:cond_0
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;->q: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;->n:Lf/g/h/a/c/b;
if-eqz v0, :cond_1
return-void
:cond_1
const/4 v0, 0x0
throw v0
.end method