package o;

import java.util.LinkedHashSet;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.wR, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C2807wR {
    public final G1 a;
    public final C3092zR b = new C3092zR();
    public final LinkedHashSet c;
    public final LinkedHashSet d;

    public C2807wR(G1 g1) {
        this.a = g1;
        new LinkedHashSet();
        this.c = new LinkedHashSet();
        this.d = new LinkedHashSet();
    }

    public final void a(AbstractC2997yR abstractC2997yR) {
        if (this.d.add(abstractC2997yR)) {
            this.b.a(this, abstractC2997yR, -1);
        }
    }

    public final void b(C2999yT c2999yT, int i) {
        if (i != 1 && i != 0) {
            throw new IllegalArgumentException(AbstractC0126Ew.j(i, "Unsupported priority value: ").toString());
        }
        if (this.d.add(c2999yT)) {
            this.b.a(this, c2999yT, i);
        }
    }

    public final void c(AbstractC2997yR abstractC2997yR, C2712vR c2712vR) {
        C3092zR c3092zR = this.b;
        if (c3092zR.g != 0) {
            return;
        }
        c3092zR.f = c3092zR.c(-1);
        c3092zR.g = -1;
        c3092zR.h = abstractC2997yR;
        if (c2712vR != null) {
            Ba0 ba0 = c3092zR.a;
            BR br = new BR(c2712vR);
            ba0.getClass();
            ba0.i(null, br);
        }
    }
}
