package androidx.room;

import android.os.Binder;
import android.os.IBinder;
import android.os.IInterface;
import android.os.Parcel;

/* JADX INFO: loaded from: classes.dex */
public abstract class n extends Binder implements o {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public static final /* synthetic */ int f4117a = 0;

    @Override // android.os.IInterface
    public final IBinder asBinder() {
        return this;
    }

    @Override // android.os.Binder
    public final boolean onTransact(int i10, Parcel parcel, Parcel parcel2, int i11) {
        String str = o.f4118q;
        if (i10 >= 1 && i10 <= 16777215) {
            parcel.enforceInterface(str);
        }
        if (i10 == 1598968902) {
            parcel2.writeString(str);
            return true;
        }
        l lVar = null;
        l lVar2 = null;
        if (i10 == 1) {
            IBinder strongBinder = parcel.readStrongBinder();
            if (strongBinder != null) {
                IInterface iInterfaceQueryLocalInterface = strongBinder.queryLocalInterface(l.f4112p);
                if (iInterfaceQueryLocalInterface == null || !(iInterfaceQueryLocalInterface instanceof l)) {
                    k kVar = new k();
                    kVar.f4111a = strongBinder;
                    lVar = kVar;
                } else {
                    lVar = (l) iInterfaceQueryLocalInterface;
                }
            }
            int iC0 = ((v) this).C0(lVar, parcel.readString());
            parcel2.writeNoException();
            parcel2.writeInt(iC0);
        } else if (i10 == 2) {
            IBinder strongBinder2 = parcel.readStrongBinder();
            if (strongBinder2 != null) {
                IInterface iInterfaceQueryLocalInterface2 = strongBinder2.queryLocalInterface(l.f4112p);
                if (iInterfaceQueryLocalInterface2 == null || !(iInterfaceQueryLocalInterface2 instanceof l)) {
                    k kVar2 = new k();
                    kVar2.f4111a = strongBinder2;
                    lVar2 = kVar2;
                } else {
                    lVar2 = (l) iInterfaceQueryLocalInterface2;
                }
            }
            ((v) this).J2(lVar2, parcel.readInt());
            parcel2.writeNoException();
        } else {
            if (i10 != 3) {
                return super.onTransact(i10, parcel, parcel2, i11);
            }
            ((v) this).z2(parcel.readInt(), parcel.createStringArray());
        }
        return true;
    }
}
