package p138.p176.p177.p242.p265.p266;

import p000.p001.p002.p003.p004.C0567;

/* JADX INFO: renamed from: ދ.ހ.֏.ހ.ބ.֏.ၹ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public final class RunnableC5025 implements Runnable {

    /* JADX INFO: renamed from: ރ, reason: contains not printable characters */
    public final /* synthetic */ String f15159;

    /* JADX INFO: renamed from: ބ, reason: contains not printable characters */
    public final /* synthetic */ long f15160;

    /* JADX INFO: renamed from: ޅ, reason: contains not printable characters */
    public final /* synthetic */ C4923 f15161;

    public RunnableC5025(C4923 c4923, String str, long j) {
        this.f15161 = c4923;
        this.f15159 = str;
        this.f15160 = j;
    }

    @Override // java.lang.Runnable
    public final void run() {
        C4923 c4923 = this.f15161;
        String str = this.f15159;
        long j = this.f15160;
        c4923.mo8055();
        c4923.mo8008();
        C0567.m1926(str);
        Integer num = c4923.f14931.get(str);
        if (num == null) {
            c4923.mo8165().f14444.m8035("Call to endAdUnitExposure for unknown ad unit id", str);
            return;
        }
        C4754 c4754M7989 = c4923.m8061().m7989(false);
        int iIntValue = num.intValue() - 1;
        if (iIntValue != 0) {
            c4923.f14931.put(str, Integer.valueOf(iIntValue));
            return;
        }
        c4923.f14931.remove(str);
        Long l = c4923.f14930.get(str);
        if (l == null) {
            c4923.mo8165().f14444.m8034("First ad unit exposure time was never set");
        } else {
            long jLongValue = j - l.longValue();
            c4923.f14930.remove(str);
            c4923.m8477(str, jLongValue, c4754M7989);
        }
        if (c4923.f14931.isEmpty()) {
            long j2 = c4923.f14932;
            if (j2 == 0) {
                c4923.mo8165().f14444.m8034("First ad exposure time was never set");
            } else {
                c4923.m8475(j - j2, c4754M7989);
                c4923.f14932 = 0L;
            }
        }
    }
}
