package o;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.eM, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C1090eM {
    public final InterfaceC1481iT a;
    public boolean b;
    public int c = -1;
    public final /* synthetic */ AbstractC1186fM d;

    public C1090eM(AbstractC1186fM abstractC1186fM, InterfaceC1481iT interfaceC1481iT) {
        this.d = abstractC1186fM;
        this.a = interfaceC1481iT;
    }

    public final void a(boolean z) {
        if (z == this.b) {
            return;
        }
        this.b = z;
        int i = z ? 1 : -1;
        AbstractC1186fM abstractC1186fM = this.d;
        int i2 = abstractC1186fM.c;
        abstractC1186fM.c = i + i2;
        if (!abstractC1186fM.d) {
            abstractC1186fM.d = true;
            while (true) {
                try {
                    int i3 = abstractC1186fM.c;
                    if (i2 == i3) {
                        break;
                    } else {
                        i2 = i3;
                    }
                } finally {
                    abstractC1186fM.d = false;
                }
            }
        }
        if (this.b) {
            abstractC1186fM.c(this);
        }
    }
}
