package j$.time.format;

/* JADX INFO: loaded from: classes2.dex */
final class m extends n {
    @Override // j$.time.format.n
    protected final n e(String str, String str2, n nVar) {
        return new m(str, str2, nVar, 0);
    }

    @Override // j$.time.format.n
    protected final boolean c(char c6, char c7) {
        return w.c(c6, c7);
    }

    @Override // j$.time.format.n
    protected final boolean h(CharSequence charSequence, int i6, int i7) {
        int length = this.f19247a.length();
        if (length > i7 - i6) {
            return false;
        }
        int i8 = 0;
        while (true) {
            int i9 = length - 1;
            if (length <= 0) {
                return true;
            }
            int i10 = i8 + 1;
            int i11 = i6 + 1;
            if (!w.c(this.f19247a.charAt(i8), charSequence.charAt(i6))) {
                return false;
            }
            i6 = i11;
            length = i9;
            i8 = i10;
        }
    }
}
