package k2;

/* JADX INFO: renamed from: k2.a, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C2375a {

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

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

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

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

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

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

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

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

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

    /* JADX INFO: renamed from: j, reason: collision with root package name */
    public final /* synthetic */ C2376b f19750j;

    public C2375a(C2376b c2376b, int i6, int i7) {
        this.f19750j = c2376b;
        this.f19741a = i6;
        this.f19742b = i7;
        a();
    }

    public final void a() {
        C2376b c2376b = this.f19750j;
        int[] iArr = c2376b.f19752a;
        int[] iArr2 = c2376b.f19753b;
        int i6 = Integer.MAX_VALUE;
        int i7 = Integer.MIN_VALUE;
        int i8 = Integer.MIN_VALUE;
        int i9 = Integer.MIN_VALUE;
        int i10 = 0;
        int i11 = Integer.MAX_VALUE;
        int i12 = Integer.MAX_VALUE;
        for (int i13 = this.f19741a; i13 <= this.f19742b; i13++) {
            int i14 = iArr[i13];
            i10 += iArr2[i14];
            int i15 = (i14 >> 10) & 31;
            int i16 = (i14 >> 5) & 31;
            int i17 = i14 & 31;
            if (i15 > i7) {
                i7 = i15;
            }
            if (i15 < i6) {
                i6 = i15;
            }
            if (i16 > i8) {
                i8 = i16;
            }
            if (i16 < i11) {
                i11 = i16;
            }
            if (i17 > i9) {
                i9 = i17;
            }
            if (i17 < i12) {
                i12 = i17;
            }
        }
        this.f19744d = i6;
        this.f19745e = i7;
        this.f19746f = i11;
        this.f19747g = i8;
        this.f19748h = i12;
        this.f19749i = i9;
        this.f19743c = i10;
    }

    public final int b() {
        return ((this.f19749i - this.f19748h) + 1) * ((this.f19747g - this.f19746f) + 1) * ((this.f19745e - this.f19744d) + 1);
    }
}
