package N1;

import android.graphics.Rect;
import android.view.View;
import c0.C0567d;
import c0.InterfaceC0571h;

/* JADX INFO: loaded from: classes.dex */
public abstract class M {

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

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

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final Object f4480c;

    public M(int i, String str, String str2) {
        this.f4478a = i;
        this.f4479b = str;
        this.f4480c = str2;
    }

    public static M b(androidx.recyclerview.widget.a aVar, int i) {
        if (i == 0) {
            return new L(aVar, 0);
        }
        if (i == 1) {
            return new L(aVar, 1);
        }
        throw new IllegalArgumentException("invalid orientation");
    }

    public abstract void a(X1.a aVar);

    public abstract void c(X1.a aVar);

    public abstract int d(View view);

    public abstract int e(View view);

    public abstract int f(View view);

    public abstract int g(View view);

    public abstract int h();

    public abstract int i();

    public abstract int j();

    public abstract int k();

    public abstract int l();

    public abstract int m();

    public abstract int n();

    public int o() {
        if (Integer.MIN_VALUE == this.f4478a) {
            return 0;
        }
        return n() - this.f4478a;
    }

    public abstract int p(View view);

    public abstract int q(View view);

    public abstract void r(int i);

    public abstract void s(X1.a aVar);

    public abstract void t(X1.a aVar);

    public abstract void u(X1.a aVar);

    public abstract void v(X1.a aVar);

    public abstract L2.a w(X1.a aVar);

    public M(androidx.recyclerview.widget.a aVar) {
        this.f4478a = Integer.MIN_VALUE;
        this.f4480c = new Rect();
        this.f4479b = aVar;
    }

    public M(InterfaceC0571h interfaceC0571h) {
        this.f4478a = 0;
        this.f4480c = new C0567d();
        this.f4479b = interfaceC0571h;
    }
}
