private static final int method1823(byte abyte0[][], byte abyte1[][], int ai[], int ai1[], int ai2[], int i, int j) {
        int k = ai[i];
        int l = k + ai2[i];
        int i1 = ai[j];
        int j1 = i1 + ai2[j];
        int k1 = k;
        if (i1 > k) {
            k1 = i1;
        }
        int l1 = l;
        if (j1 < l) {
            l1 = j1;
        }
        int i2 = ai1[i];
        if (ai1[j] < i2) {
            i2 = ai1[j];
        }
        byte abyte2[] = abyte1[i];
        byte abyte3[] = abyte0[j];
        int j2 = k1 - k;
        int k2 = k1 - i1;
        for (int l2 = k1; l2 < l1; l2++) {
            int i3 = abyte2[j2++] + abyte3[k2++];
            if (i3 < i2) {
                i2 = i3;
            }
        }

        return -i2;
    }