.class public final Lcom/google/android/gms/internal/ads/y4;
.super Ljava/lang/Object;
.source ""


# instance fields
.field public final a:Lu5/c;

.field public final b:Ljava/lang/Object;

.field public volatile c:J

.field public volatile d:I
    .annotation build Ljavax/annotation/concurrent/GuardedBy;
        value = "lock"
    .end annotation
.end field


# direct methods
.method public constructor <init>(Lu5/c;)V
    .registers 4

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

    new-instance v0, Ljava/lang/Object;

    invoke-direct {v0}, Ljava/lang/Object;-><init>()V

    iput-object v0, p0, Lcom/google/android/gms/internal/ads/y4;->b:Ljava/lang/Object;

    const/4 v0, 0x1

    iput v0, p0, Lcom/google/android/gms/internal/ads/y4;->d:I

    const-wide/16 v0, 0x0

    iput-wide v0, p0, Lcom/google/android/gms/internal/ads/y4;->c:J

    iput-object p1, p0, Lcom/google/android/gms/internal/ads/y4;->a:Lu5/c;

    return-void
.end method


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

    iget-object v0, p0, Lcom/google/android/gms/internal/ads/y4;->a:Lu5/c;

    invoke-interface {v0}, Lu5/c;->b()J

    move-result-wide v0

    iget-object v2, p0, Lcom/google/android/gms/internal/ads/y4;->b:Ljava/lang/Object;

    monitor-enter v2

    :try_start_9
    iget v3, p0, Lcom/google/android/gms/internal/ads/y4;->d:I

    const/4 v4, 0x3

    if-ne v3, v4, :cond_2b

    iget-wide v3, p0, Lcom/google/android/gms/internal/ads/y4;->c:J

    sget-object v5, Lz5/so;->I3:Lz5/no;

    .line 1
    sget-object v6, Lz5/xk;->d:Lz5/xk;

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

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

    move-result-object v5

    check-cast v5, Ljava/lang/Long;

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

    move-result-wide v5

    add-long/2addr v3, v5

    cmp-long v0, v3, v0

    if-gtz v0, :cond_2b

    const/4 v0, 0x1

    iput v0, p0, Lcom/google/android/gms/internal/ads/y4;->d:I

    goto :goto_2b

    :catchall_29
    move-exception v0

    goto :goto_2d

    :cond_2b
    :goto_2b
    monitor-exit v2

    return-void

    :goto_2d
    monitor-exit v2
    :try_end_2e
    .catchall {:try_start_9 .. :try_end_2e} :catchall_29

    throw v0
.end method

.method public final b(II)V
    .registers 7

    invoke-virtual {p0}, Lcom/google/android/gms/internal/ads/y4;->a()V

    iget-object v0, p0, Lcom/google/android/gms/internal/ads/y4;->a:Lu5/c;

    invoke-interface {v0}, Lu5/c;->b()J

    move-result-wide v0

    iget-object v2, p0, Lcom/google/android/gms/internal/ads/y4;->b:Ljava/lang/Object;

    monitor-enter v2

    :try_start_c
    iget v3, p0, Lcom/google/android/gms/internal/ads/y4;->d:I

    if-eq v3, p1, :cond_12

    monitor-exit v2

    return-void

    :cond_12
    iput p2, p0, Lcom/google/android/gms/internal/ads/y4;->d:I

    iget p1, p0, Lcom/google/android/gms/internal/ads/y4;->d:I

    const/4 p2, 0x3

    if-ne p1, p2, :cond_1b

    iput-wide v0, p0, Lcom/google/android/gms/internal/ads/y4;->c:J

    :cond_1b
    monitor-exit v2

    return-void

    :catchall_1d
    move-exception p1

    monitor-exit v2
    :try_end_1f
    .catchall {:try_start_c .. :try_end_1f} :catchall_1d

    throw p1
.end method
