package l3;

import i3.C0636d;
import java.lang.reflect.GenericArrayType;
import java.lang.reflect.Type;
import java.sql.Time;
import java.sql.Timestamp;
import java.util.Date;
import p3.C0952a;

/* JADX INFO: renamed from: l3.a, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C0829a implements i3.l {

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

    public /* synthetic */ C0829a(int i) {
        this.f8904k = i;
    }

    @Override // i3.l
    public final i3.k create(C0636d c0636d, C0952a c0952a) {
        switch (this.f8904k) {
            case 0:
                Type type = c0952a.f9530b;
                boolean z5 = type instanceof GenericArrayType;
                if (!z5 && (!(type instanceof Class) || !((Class) type).isArray())) {
                    return null;
                }
                Type genericComponentType = z5 ? ((GenericArrayType) type).getGenericComponentType() : ((Class) type).getComponentType();
                return new C0830b(c0636d, c0636d.c(new C0952a(genericComponentType)), k3.d.g(genericComponentType));
            case 1:
                if (c0952a.f9529a == Date.class) {
                    return new d();
                }
                return null;
            case 2:
                if (c0952a.f9529a == Object.class) {
                    return new m(c0636d);
                }
                return null;
            case 3:
                Class superclass = c0952a.f9529a;
                if (!Enum.class.isAssignableFrom(superclass) || superclass == Enum.class) {
                    return null;
                }
                if (!superclass.isEnum()) {
                    superclass = superclass.getSuperclass();
                }
                return new com.dexterous.flutterlocalnotifications.m(superclass);
            case 4:
                if (c0952a.f9529a == java.sql.Date.class) {
                    return new o3.a(0);
                }
                return null;
            case 5:
                if (c0952a.f9529a == Time.class) {
                    return new o3.a(1);
                }
                return null;
            default:
                if (c0952a.f9529a != Timestamp.class) {
                    return null;
                }
                c0636d.getClass();
                return new o3.a(c0636d.c(new C0952a(Date.class)));
        }
    }
}
