package com.google.android.gms.internal.ads;

/* JADX INFO: loaded from: classes2.dex */
public final class wg2 {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final long f18044a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final long f18045b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public long f18046c = -9223372036854775807L;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public long f18047d = -9223372036854775807L;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public long f18049f = -9223372036854775807L;

    /* JADX INFO: renamed from: g, reason: collision with root package name */
    public long f18050g = -9223372036854775807L;

    /* JADX INFO: renamed from: j, reason: collision with root package name */
    public float f18053j = 0.97f;

    /* JADX INFO: renamed from: i, reason: collision with root package name */
    public float f18052i = 1.03f;

    /* JADX INFO: renamed from: k, reason: collision with root package name */
    public float f18054k = 1.0f;

    /* JADX INFO: renamed from: l, reason: collision with root package name */
    public long f18055l = -9223372036854775807L;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public long f18048e = -9223372036854775807L;

    /* JADX INFO: renamed from: h, reason: collision with root package name */
    public long f18051h = -9223372036854775807L;

    /* JADX INFO: renamed from: m, reason: collision with root package name */
    public long f18056m = -9223372036854775807L;

    /* JADX INFO: renamed from: n, reason: collision with root package name */
    public long f18057n = -9223372036854775807L;

    public /* synthetic */ wg2(long j10, long j11) {
        this.f18044a = j10;
        this.f18045b = j11;
    }

    public final void a() {
        long j10 = this.f18051h;
        if (j10 == -9223372036854775807L) {
            return;
        }
        long j11 = j10 + this.f18045b;
        this.f18051h = j11;
        long j12 = this.f18050g;
        if (j12 != -9223372036854775807L && j11 > j12) {
            this.f18051h = j12;
        }
        this.f18055l = -9223372036854775807L;
    }

    public final long b() {
        return this.f18051h;
    }

    public final void c() {
        long j10;
        long j11 = this.f18046c;
        if (j11 != -9223372036854775807L) {
            j10 = this.f18047d;
            if (j10 == -9223372036854775807L) {
                long j12 = this.f18049f;
                if (j12 != -9223372036854775807L && j11 < j12) {
                    j11 = j12;
                }
                j10 = this.f18050g;
                if (j10 == -9223372036854775807L || j11 <= j10) {
                    j10 = j11;
                }
            }
        } else {
            j10 = -9223372036854775807L;
        }
        if (this.f18048e == j10) {
            return;
        }
        this.f18048e = j10;
        this.f18051h = j10;
        this.f18056m = -9223372036854775807L;
        this.f18057n = -9223372036854775807L;
        this.f18055l = -9223372036854775807L;
    }
}
