package G;

import java.util.List;
import n.AbstractC2588o;
import n.C2566A;
import n.C2567B;

/* JADX INFO: renamed from: G.m, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C0238m {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final C2566A f1772a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final C2566A f1773b;

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

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public int f1775d;

    public C0238m(C0235j c0235j, F.Q q6, F f6) {
        C2566A c2566a = AbstractC2588o.f21461a;
        this.f1772a = new C2566A();
        new C2567B();
        this.f1773b = new C2566A();
        this.f1774c = Integer.MAX_VALUE;
        this.f1775d = Integer.MIN_VALUE;
    }

    public final boolean a() {
        return (this.f1774c == Integer.MAX_VALUE || this.f1775d == Integer.MIN_VALUE) ? false : true;
    }

    public final void b() {
        this.f1774c = Integer.MAX_VALUE;
        this.f1775d = Integer.MIN_VALUE;
        this.f1773b.c();
        C2566A c2566a = this.f1772a;
        long[] jArr = c2566a.f21456a;
        int length = jArr.length - 2;
        if (length < 0) {
            return;
        }
        int i6 = 0;
        while (true) {
            long j4 = jArr[i6];
            if ((((~j4) << 7) & j4 & (-9187201950435737472L)) != -9187201950435737472L) {
                int i7 = 8 - ((~(i6 - length)) >>> 31);
                for (int i8 = 0; i8 < i7; i8++) {
                    if ((255 & j4) < 128) {
                        int i9 = (i6 << 3) + i8;
                        int i10 = c2566a.f21457b[i9];
                        List list = (List) c2566a.f21458c[i9];
                        int size = list.size();
                        for (int i11 = 0; i11 < size; i11++) {
                            ((F.P) list.get(i11)).cancel();
                        }
                        c2566a.h(i9);
                    }
                    j4 >>= 8;
                }
                if (i7 != 8) {
                    return;
                }
            }
            if (i6 == length) {
                return;
            } else {
                i6++;
            }
        }
    }
}
