package z7;

import A6.n;
import B7.j;
import O6.r;

/* JADX INFO: loaded from: classes.dex */
public final class f extends P6.h implements r {

    /* JADX INFO: renamed from: r, reason: collision with root package name */
    public final /* synthetic */ int f19389r;

    /* JADX INFO: renamed from: s, reason: collision with root package name */
    public final /* synthetic */ int f19390s;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public f(int i, int i5) {
        super(4);
        this.f19389r = i;
        this.f19390s = i5;
    }

    @Override // O6.r
    public final Object g(Object obj, Object obj2, Object obj3, Object obj4) {
        c cVar = (c) obj;
        ((Number) obj3).intValue();
        ((Number) obj4).intValue();
        P6.g.e(cVar, "$this$null");
        P6.g.e((D7.a) obj2, "<anonymous parameter 0>");
        int i = cVar.i;
        int i5 = this.f19389r;
        int i8 = (i - i5) / 2;
        int i9 = this.f19390s;
        int i10 = (i - i9) / 2;
        for (B7.f[] fVarArr : cVar.f19384h) {
            int length = fVarArr.length;
            int i11 = 0;
            while (i11 < length) {
                B7.f fVar = fVarArr[i11];
                int i12 = fVar.f1057c;
                int i13 = cVar.f19377a;
                int i14 = (i12 * i13) + i13;
                int i15 = (fVar.f1056b * i13) + i13;
                int[] iArr = j.f1073a;
                c cVar2 = cVar;
                int i16 = i5;
                fVar.i = !(i8 + i5 < i14 || i8 > i14 + i13 || i10 + i9 < i15 || i10 > i15 + i13);
                i11++;
                i5 = i16;
                cVar = cVar2;
            }
        }
        return n.f457a;
    }
}
