package defpackage;

import android.os.SystemClock;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Map;

/* JADX INFO: renamed from: ˆˈˀ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes3.dex */
public abstract class AbstractC0824 implements InterfaceC1070 {

    /* JADX INFO: renamed from: ˌᴵ, reason: contains not printable characters */
    public final boolean f3693;

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

    /* JADX INFO: renamed from: ᵜᵪʾ, reason: contains not printable characters */
    public final ArrayList f3695 = new ArrayList(1);

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

    public AbstractC0824(boolean z) {
        this.f3693 = z;
    }

    @Override // defpackage.InterfaceC1070
    /* JADX INFO: renamed from: ˉᵲ */
    public Map mo1306() {
        return Collections.EMPTY_MAP;
    }

    /* JADX INFO: renamed from: ːˏᵟᵯ, reason: contains not printable characters */
    public final void m2945() {
        C0084 c0084 = this.f3696;
        String str = AbstractC0956.f4222;
        for (int i = 0; i < this.f3694; i++) {
            C4216 c4216 = (C4216) this.f3695.get(i);
            boolean z = this.f3693;
            synchronized (c4216) {
                try {
                    C2598 c2598 = C4216.f16043;
                    if (z && (c0084.f1288 & 8) != 8) {
                        ᵻᵪ.ˌᴵ(c4216.f16055 > 0);
                        c4216.f16057.getClass();
                        long jElapsedRealtime = SystemClock.elapsedRealtime();
                        int i2 = (int) (jElapsedRealtime - c4216.f16046);
                        c4216.f16053 += (long) i2;
                        long j = c4216.f16056;
                        long j2 = c4216.f16058;
                        c4216.f16056 = j + j2;
                        if (i2 > 0) {
                            c4216.f16059.m5186((int) Math.sqrt(j2), (j2 * 8000.0f) / i2);
                            if (c4216.f16053 >= 2000 || c4216.f16056 >= 524288) {
                                c4216.f16052 = (long) c4216.f16059.m5183();
                            }
                            c4216.m9158(c4216.f16058, i2, c4216.f16052);
                            c4216.f16046 = jElapsedRealtime;
                            c4216.f16058 = 0L;
                        }
                        c4216.f16055--;
                    }
                } catch (Throwable th) {
                    throw th;
                }
            }
        }
        this.f3696 = null;
    }

    /* JADX INFO: renamed from: ᵲᵶᵳˈ, reason: contains not printable characters */
    public final void m2946(int i) {
        C0084 c0084 = this.f3696;
        String str = AbstractC0956.f4222;
        for (int i2 = 0; i2 < this.f3694; i2++) {
            C4216 c4216 = (C4216) this.f3695.get(i2);
            boolean z = this.f3693;
            synchronized (c4216) {
                C2598 c2598 = C4216.f16043;
                if (z && (c0084.f1288 & 8) != 8) {
                    c4216.f16058 += (long) i;
                }
            }
        }
    }

    @Override // defpackage.InterfaceC1070
    /* JADX INFO: renamed from: ᵶˇᵱ */
    public final void mo1309(C4216 c4216) {
        c4216.getClass();
        ArrayList arrayList = this.f3695;
        if (arrayList.contains(c4216)) {
            return;
        }
        arrayList.add(c4216);
        this.f3694++;
    }

    /* JADX INFO: renamed from: ᵶᵥᵝ, reason: contains not printable characters */
    public final void m2947(C0084 c0084) {
        this.f3696 = c0084;
        for (int i = 0; i < this.f3694; i++) {
            C4216 c4216 = (C4216) this.f3695.get(i);
            boolean z = this.f3693;
            synchronized (c4216) {
                try {
                    C2598 c2598 = C4216.f16043;
                    if (z && (c0084.f1288 & 8) != 8) {
                        if (c4216.f16055 == 0) {
                            c4216.f16057.getClass();
                            c4216.f16046 = SystemClock.elapsedRealtime();
                        }
                        c4216.f16055++;
                    }
                } catch (Throwable th) {
                    throw th;
                }
            }
        }
    }

    /* JADX INFO: renamed from: ᵻˈᵦʼ, reason: contains not printable characters */
    public final void m2948() {
        for (int i = 0; i < this.f3694; i++) {
            ((C4216) this.f3695.get(i)).getClass();
        }
    }
}
