package b0;

import java.util.ArrayList;
import t3.C1542e;
import t3.C1543f;

/* JADX INFO: renamed from: b0.d, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C0527d {

    /* JADX INFO: renamed from: m, reason: collision with root package name */
    public static final C0525b f9140m = new C0525b();

    /* JADX INFO: renamed from: n, reason: collision with root package name */
    public static final C0525b f9141n = new C0525b();

    /* JADX INFO: renamed from: o, reason: collision with root package name */
    public static final C0525b f9142o = new C0525b();

    /* JADX INFO: renamed from: p, reason: collision with root package name */
    public static final C0525b f9143p = new C0525b();

    /* JADX INFO: renamed from: q, reason: collision with root package name */
    public static final C0525b f9144q = new C0525b();

    /* JADX INFO: renamed from: r, reason: collision with root package name */
    public static final C0525b f9145r = new C0525b();

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public float f9146a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public float f9147b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public boolean f9148c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final C1543f f9149d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public final C1542e f9150e;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public boolean f9151f;

    /* JADX INFO: renamed from: g, reason: collision with root package name */
    public long f9152g;

    /* JADX INFO: renamed from: h, reason: collision with root package name */
    public final float f9153h;
    public final ArrayList i;

    /* JADX INFO: renamed from: j, reason: collision with root package name */
    public final ArrayList f9154j;

    /* JADX INFO: renamed from: k, reason: collision with root package name */
    public C0528e f9155k;

    /* JADX INFO: renamed from: l, reason: collision with root package name */
    public float f9156l;

    public C0527d(C1543f c1543f) {
        C1542e c1542e = C1543f.f16974G;
        this.f9146a = 0.0f;
        this.f9147b = Float.MAX_VALUE;
        this.f9148c = false;
        this.f9151f = false;
        this.f9152g = 0L;
        this.i = new ArrayList();
        this.f9154j = new ArrayList();
        this.f9149d = c1543f;
        this.f9150e = c1542e;
        if (c1542e == f9142o || c1542e == f9143p || c1542e == f9144q) {
            this.f9153h = 0.1f;
        } else if (c1542e == f9145r || c1542e == f9140m || c1542e == f9141n) {
            this.f9153h = 0.00390625f;
        } else {
            this.f9153h = 1.0f;
        }
        this.f9155k = null;
        this.f9156l = Float.MAX_VALUE;
    }

    public final void a() {
        int i = 0;
        this.f9151f = false;
        ThreadLocal threadLocal = C0524a.f9132f;
        if (threadLocal.get() == null) {
            threadLocal.set(new C0524a());
        }
        C0524a c0524a = (C0524a) threadLocal.get();
        c0524a.f9133a.remove(this);
        ArrayList arrayList = c0524a.f9134b;
        int iIndexOf = arrayList.indexOf(this);
        if (iIndexOf >= 0) {
            arrayList.set(iIndexOf, null);
            c0524a.f9137e = true;
        }
        this.f9152g = 0L;
        this.f9148c = false;
        while (true) {
            ArrayList arrayList2 = this.i;
            if (i >= arrayList2.size()) {
                for (int size = arrayList2.size() - 1; size >= 0; size--) {
                    if (arrayList2.get(size) == null) {
                        arrayList2.remove(size);
                    }
                }
                return;
            }
            if (arrayList2.get(i) != null) {
                arrayList2.get(i).getClass();
                throw new ClassCastException();
            }
            i++;
        }
    }

    public final void b(float f3) {
        this.f9150e.getClass();
        C1543f c1543f = this.f9149d;
        c1543f.f16977E = f3 / 10000.0f;
        c1543f.invalidateSelf();
        int i = 0;
        while (true) {
            ArrayList arrayList = this.f9154j;
            if (i >= arrayList.size()) {
                for (int size = arrayList.size() - 1; size >= 0; size--) {
                    if (arrayList.get(size) == null) {
                        arrayList.remove(size);
                    }
                }
                return;
            }
            if (arrayList.get(i) != null) {
                arrayList.get(i).getClass();
                throw new ClassCastException();
            }
            i++;
        }
    }
}
