package F7;

import java.lang.annotation.Annotation;
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;

/* JADX INFO: renamed from: F7.l, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C0128l extends AbstractC0122f {
    @Override // F7.AbstractC0122f
    public final InterfaceC0123g a(Type type, Annotation[] annotationArr) {
        if (b0.h(type) != A0.c.k()) {
            return null;
        }
        if (!(type instanceof ParameterizedType)) {
            throw new IllegalStateException("CompletableFuture return type must be parameterized as CompletableFuture<Foo> or CompletableFuture<? extends Foo>");
        }
        Type typeG = b0.g(0, (ParameterizedType) type);
        if (b0.h(typeG) != T.class) {
            return new C0126j(0, typeG);
        }
        if (!(typeG instanceof ParameterizedType)) {
            throw new IllegalStateException("Response must be parameterized as Response<Foo> or Response<? extends Foo>");
        }
        return new C0126j(1, b0.g(0, (ParameterizedType) typeG));
    }
}
