y.smali

.class public final Lcom/google/obf/y;
.super Ljava/lang/Object;
.source "IMASDK"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/google/obf/y$a;
    }
.end annotation


# instance fields
.field private final a:Lcom/google/obf/y$a;

.field private final b:Z

.field private final c:J

.field private final d:J

.field private e:J

.field private f:J

.field private g:J

.field private h:Z

.field private i:J

.field private j:J

.field private k:J


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

    const/high16 v0, -0x40800000    # -1.0f

    const/4 v1, 0x0

    .line 1
    invoke-direct {p0, v0, v1}, Lcom/google/obf/y;-><init>(FZ)V

    return-void
.end method

.method private constructor <init>(FZ)V
    .registers 5

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

    .line 6
    iput-boolean p2, p0, Lcom/google/obf/y;->b:Z

    if-eqz p2, :cond_21

    .line 8
    invoke-static {}, Lcom/google/obf/y$a;->a()Lcom/google/obf/y$a;

    move-result-object p2

    iput-object p2, p0, Lcom/google/obf/y;->a:Lcom/google/obf/y$a;

    const-wide v0, 0x41cdcd6500000000L    # 1.0E9

    float-to-double p1, p1

    div-double/2addr v0, p1

    double-to-long p1, v0

    .line 9
    iput-wide p1, p0, Lcom/google/obf/y;->c:J

    const-wide/16 v0, 0x50

    mul-long p1, p1, v0

    const-wide/16 v0, 0x64

    .line 10
    div-long/2addr p1, v0

    iput-wide p1, p0, Lcom/google/obf/y;->d:J

    goto :goto_2a

    :cond_21
    const/4 p1, 0x0

    .line 11
    iput-object p1, p0, Lcom/google/obf/y;->a:Lcom/google/obf/y$a;

    const-wide/16 p1, -0x1

    .line 12
    iput-wide p1, p0, Lcom/google/obf/y;->c:J

    .line 13
    iput-wide p1, p0, Lcom/google/obf/y;->d:J

    :goto_2a
    return-void
.end method

.method public constructor <init>(Landroid/content/Context;)V
    .registers 3

    .line 3
    invoke-static {p1}, Lcom/google/obf/y;->a(Landroid/content/Context;)F

    move-result p1

    const/4 v0, 0x1

    invoke-direct {p0, p1, v0}, Lcom/google/obf/y;-><init>(FZ)V

    return-void
.end method

.method private static a(Landroid/content/Context;)F
    .registers 2

    const-string v0, "window"

    .line 65
    invoke-virtual {p0, v0}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Landroid/view/WindowManager;

    .line 66
    invoke-interface {p0}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;

    move-result-object p0

    invoke-virtual {p0}, Landroid/view/Display;->getRefreshRate()F

    move-result p0

    return p0
.end method

.method private static a(JJJ)J
    .registers 11

    sub-long v0, p0, p2

    .line 55
    div-long/2addr v0, p4

    mul-long v0, v0, p4

    add-long/2addr p2, v0

    cmp-long v0, p0, p2

    if-gtz v0, :cond_d

    sub-long p4, p2, p4

    goto :goto_11

    :cond_d
    add-long/2addr p4, p2

    move-wide v3, p2

    move-wide p2, p4

    move-wide p4, v3

    :goto_11
    sub-long v0, p2, p0

    sub-long/2addr p0, p4

    cmp-long v2, v0, p0

    if-gez v2, :cond_19

    goto :goto_1a

    :cond_19
    move-wide p2, p4

    :goto_1a
    return-wide p2
.end method

.method private b(JJ)Z
    .registers 7

    .line 52
    iget-wide v0, p0, Lcom/google/obf/y;->j:J

    sub-long/2addr p1, v0

    .line 53
    iget-wide v0, p0, Lcom/google/obf/y;->i:J

    sub-long/2addr p3, v0

    sub-long/2addr p3, p1

    .line 54
    invoke-static {p3, p4}, Ljava/lang/Math;->abs(J)J

    move-result-wide p1

    const-wide/32 p3, 0x1312d00

    cmp-long v0, p1, p3

    if-lez v0, :cond_14

    const/4 p1, 0x1

    goto :goto_15

    :cond_14
    const/4 p1, 0x0

    :goto_15
    return p1
.end method


# virtual methods
.method public a(JJ)J
    .registers 15

    const-wide/16 v0, 0x3e8

    mul-long v0, v0, p1

    .line 25
    iget-boolean v2, p0, Lcom/google/obf/y;->h:Z

    if-eqz v2, :cond_42

    .line 26
    iget-wide v2, p0, Lcom/google/obf/y;->e:J

    cmp-long v4, p1, v2

    if-eqz v4, :cond_19

    .line 27
    iget-wide v2, p0, Lcom/google/obf/y;->k:J

    const-wide/16 v4, 0x1

    add-long/2addr v2, v4

    iput-wide v2, p0, Lcom/google/obf/y;->k:J

    .line 28
    iget-wide v2, p0, Lcom/google/obf/y;->g:J

    iput-wide v2, p0, Lcom/google/obf/y;->f:J

    .line 29
    :cond_19
    iget-wide v2, p0, Lcom/google/obf/y;->k:J

    const-wide/16 v4, 0x6

    const/4 v6, 0x0

    cmp-long v7, v2, v4

    if-ltz v7, :cond_3a

    .line 30
    iget-wide v4, p0, Lcom/google/obf/y;->j:J

    sub-long v4, v0, v4

    div-long/2addr v4, v2

    .line 31
    iget-wide v2, p0, Lcom/google/obf/y;->f:J

    add-long/2addr v2, v4

    .line 32
    invoke-direct {p0, v2, v3, p3, p4}, Lcom/google/obf/y;->b(JJ)Z

    move-result v4

    if-eqz v4, :cond_33

    .line 33
    iput-boolean v6, p0, Lcom/google/obf/y;->h:Z

    goto :goto_42

    .line 35
    :cond_33
    iget-wide v4, p0, Lcom/google/obf/y;->i:J

    add-long/2addr v4, v2

    iget-wide v6, p0, Lcom/google/obf/y;->j:J

    sub-long/2addr v4, v6

    goto :goto_44

    .line 37
    :cond_3a
    invoke-direct {p0, v0, v1, p3, p4}, Lcom/google/obf/y;->b(JJ)Z

    move-result v2

    if-eqz v2, :cond_42

    .line 38
    iput-boolean v6, p0, Lcom/google/obf/y;->h:Z

    :cond_42
    :goto_42
    move-wide v4, p3

    move-wide v2, v0

    .line 39
    :goto_44
    iget-boolean v6, p0, Lcom/google/obf/y;->h:Z

    const-wide/16 v7, 0x0

    if-nez v6, :cond_56

    .line 40
    iput-wide v0, p0, Lcom/google/obf/y;->j:J

    .line 41
    iput-wide p3, p0, Lcom/google/obf/y;->i:J

    .line 42
    iput-wide v7, p0, Lcom/google/obf/y;->k:J

    const/4 p3, 0x1

    .line 43
    iput-boolean p3, p0, Lcom/google/obf/y;->h:Z

    .line 44
    invoke-virtual {p0}, Lcom/google/obf/y;->c()V

    .line 45
    :cond_56
    iput-wide p1, p0, Lcom/google/obf/y;->e:J

    .line 46
    iput-wide v2, p0, Lcom/google/obf/y;->g:J

    .line 47
    iget-object p1, p0, Lcom/google/obf/y;->a:Lcom/google/obf/y$a;

    if-eqz p1, :cond_73

    iget-wide p1, p1, Lcom/google/obf/y$a;->a:J

    cmp-long p3, p1, v7

    if-nez p3, :cond_65

    goto :goto_73

    .line 49
    :cond_65
    iget-object p1, p0, Lcom/google/obf/y;->a:Lcom/google/obf/y$a;

    iget-wide v6, p1, Lcom/google/obf/y$a;->a:J

    iget-wide v8, p0, Lcom/google/obf/y;->c:J

    invoke-static/range {v4 .. v9}, Lcom/google/obf/y;->a(JJJ)J

    move-result-wide p1

    .line 50
    iget-wide p3, p0, Lcom/google/obf/y;->d:J

    sub-long/2addr p1, p3

    return-wide p1

    :cond_73
    :goto_73
    return-wide v4
.end method

.method public a()V
    .registers 2

    const/4 v0, 0x0

    .line 15
    iput-boolean v0, p0, Lcom/google/obf/y;->h:Z

    .line 16
    iget-boolean v0, p0, Lcom/google/obf/y;->b:Z

    if-eqz v0, :cond_c

    .line 17
    iget-object v0, p0, Lcom/google/obf/y;->a:Lcom/google/obf/y$a;

    invoke-virtual {v0}, Lcom/google/obf/y$a;->b()V

    :cond_c
    return-void
.end method

.method public b()V
    .registers 2

    .line 19
    iget-boolean v0, p0, Lcom/google/obf/y;->b:Z

    if-eqz v0, :cond_9

    .line 20
    iget-object v0, p0, Lcom/google/obf/y;->a:Lcom/google/obf/y$a;

    invoke-virtual {v0}, Lcom/google/obf/y$a;->c()V

    :cond_9
    return-void
.end method

.method protected c()V
    .registers 1

    return-void
.end method