.class public final Lz5/c60;
.super Ljava/lang/Object;
.source ""


# annotations
.annotation build Landroid/annotation/TargetApi;
    value = 0xe
.end annotation


# instance fields
.field public final synthetic a:I

.field public b:J

.field public c:J

.field public d:Z


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

    iput p1, p0, Lz5/c60;->a:I

    const/4 v0, 0x1

    if-eq p1, v0, :cond_23

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

    sget-object p1, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;

    sget-object v1, Lz5/so;->v:Lz5/no;

    .line 2
    sget-object v2, Lz5/xk;->d:Lz5/xk;

    iget-object v2, v2, Lz5/xk;->c:Lcom/google/android/gms/internal/ads/g0;

    .line 3
    invoke-virtual {v2, v1}, Lcom/google/android/gms/internal/ads/g0;->a(Lz5/no;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/Long;

    invoke-virtual {v1}, Ljava/lang/Long;->longValue()J

    move-result-wide v1

    invoke-virtual {p1, v1, v2}, Ljava/util/concurrent/TimeUnit;->toNanos(J)J

    move-result-wide v1

    iput-wide v1, p0, Lz5/c60;->b:J

    iput-boolean v0, p0, Lz5/c60;->d:Z

    return-void

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

    return-void
.end method


# virtual methods
.method public final a()V
    .registers 3

    iget v0, p0, Lz5/c60;->a:I

    packed-switch v0, :pswitch_data_14

    goto :goto_a

    :pswitch_6
    const/4 v0, 0x1

    .line 1
    iput-boolean v0, p0, Lz5/c60;->d:Z

    return-void

    :goto_a
    const-wide/16 v0, 0x0

    .line 2
    iput-wide v0, p0, Lz5/c60;->b:J

    iput-wide v0, p0, Lz5/c60;->c:J

    const/4 v0, 0x0

    iput-boolean v0, p0, Lz5/c60;->d:Z

    return-void

    :pswitch_data_14
    .packed-switch 0x0
        :pswitch_6
    .end packed-switch
.end method

.method public b(Landroid/graphics/SurfaceTexture;Lcom/google/android/gms/internal/ads/a2;)V
    .registers 9

    if-nez p2, :cond_3

    return-void

    :cond_3
    invoke-virtual {p1}, Landroid/graphics/SurfaceTexture;->getTimestamp()J

    move-result-wide v0

    iget-boolean p1, p0, Lz5/c60;->d:Z

    if-nez p1, :cond_1b

    iget-wide v2, p0, Lz5/c60;->c:J

    sub-long v2, v0, v2

    invoke-static {v2, v3}, Ljava/lang/Math;->abs(J)J

    move-result-wide v2

    iget-wide v4, p0, Lz5/c60;->b:J

    cmp-long p1, v2, v4

    if-ltz p1, :cond_1a

    goto :goto_1b

    :cond_1a
    return-void

    :cond_1b
    :goto_1b
    const/4 p1, 0x0

    iput-boolean p1, p0, Lz5/c60;->d:Z

    iput-wide v0, p0, Lz5/c60;->c:J

    sget-object p1, Lcom/google/android/gms/ads/internal/util/zzs;->zza:Lz5/i91;

    new-instance v0, Ll5/x;

    invoke-direct {v0, p2}, Ll5/x;-><init>(Lcom/google/android/gms/internal/ads/a2;)V

    invoke-virtual {p1, v0}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    return-void
.end method

.method public c(J)J
    .registers 9

    iget-wide v0, p0, Lz5/c60;->b:J

    iget-wide v2, p0, Lz5/c60;->c:J

    const-wide/16 v4, -0x211

    add-long/2addr v2, v4

    const-wide/32 v4, 0xf4240

    mul-long/2addr v2, v4

    div-long/2addr v2, p1

    const-wide/16 p1, 0x0

    invoke-static {p1, p2, v2, v3}, Ljava/lang/Math;->max(JJ)J

    move-result-wide p1

    add-long/2addr p1, v0

    return-wide p1
.end method
