package defpackage;

import android.os.Bundle;

/* JADX INFO: renamed from: ˏᵨᵷʼ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes3.dex */
public final class C1889 implements InterfaceC2025 {

    /* JADX INFO: renamed from: ˌᴵ, reason: contains not printable characters */
    public long f7485;

    /* JADX INFO: renamed from: ᵔᵖᵹᵫ, reason: contains not printable characters */
    public Object f7486;

    /* JADX INFO: renamed from: ᵜᵪʾ, reason: contains not printable characters */
    public long f7487;

    /* JADX INFO: renamed from: ᵨᵼⁱ, reason: contains not printable characters */
    public Object f7488;

    public C1889(long j, int i) {
        ᵻᵪ.ˌᴵ(((C1196) this.f7486) == null);
        this.f7485 = j;
        this.f7487 = j + ((long) i);
    }

    public C1889(String str, byte[] bArr, long j, long j2) {
        this.f7486 = str;
        this.f7488 = bArr;
        this.f7485 = j;
        this.f7487 = j2;
    }

    @Override // defpackage.InterfaceC2025
    /* JADX INFO: renamed from: ʽˈˋ, reason: contains not printable characters */
    public long mo5130(InterfaceC5206 interfaceC5206) {
        long j = this.f7487;
        if (j < 0) {
            return -1L;
        }
        long j2 = -(j + 2);
        this.f7487 = -1L;
        return j2;
    }

    @Override // defpackage.InterfaceC2025
    /* JADX INFO: renamed from: ᵝᵶ, reason: contains not printable characters */
    public void mo5131(long j) {
        long[] jArr = (long[]) ((ˊˊᵞᵽ) this.f7488).ᵜᵪʾ;
        this.f7487 = jArr[AbstractC0956.m3271(jArr, j, true)];
    }

    /* JADX INFO: renamed from: ᵲᵶᵳˈ, reason: contains not printable characters */
    public boolean m5132(long j, boolean z, boolean z2) {
        C1584 c1584 = (C1584) this.f7488;
        c1584.m6166();
        c1584.m5699();
        C1103 c1103 = (C1103) ((ᵜᵪʾ) c1584).ˌᴵ;
        boolean zM3568 = c1103.m3568();
        C3485 c3485 = c1103.f4729;
        if (zM3568) {
            C3740 c3740 = c1103.f4727;
            C1103.m3567(c3740);
            C2594 c2594 = c3740.f14207;
            c1103.f4701.getClass();
            c2594.m6316(System.currentTimeMillis());
        }
        long j2 = j - this.f7485;
        if (!z && j2 < 1000) {
            C1103.m3564(c3485);
            c3485.f13414.m4474(Long.valueOf(j2), "Screen exposed for less than 1000 ms. Event not sent. time");
            return false;
        }
        if (!z2) {
            j2 = j - this.f7487;
            this.f7487 = j;
        }
        C1103.m3564(c3485);
        c3485.f13414.m4474(Long.valueOf(j2), "Recording user engagement, ms");
        Bundle bundle = new Bundle();
        bundle.putLong("_et", j2);
        boolean z3 = !c1103.f4726.m8307();
        C1533 c1533 = c1103.f4723;
        C1103.m3565(c1533);
        C3335.m7622(c1533.m4340(z3), bundle, true);
        if (!z2) {
            C4799 c4799 = c1103.f4709;
            C1103.m3565(c4799);
            c4799.m10013("auto", "_e", bundle);
        }
        this.f7485 = j;
        C3164 c3164 = (C3164) this.f7486;
        c3164.m9540();
        c3164.m9539(((Long) AbstractC3818.f14517.m1988(null)).longValue());
        return true;
    }

    @Override // defpackage.InterfaceC2025
    /* JADX INFO: renamed from: ᵻʽᵯ, reason: contains not printable characters */
    public InterfaceC5517 mo5133() {
        ᵻᵪ.ˌᴵ(this.f7485 != -1);
        return new C3782((C0063) this.f7486, this.f7485, 1);
    }
}
