package p491;

import java.io.IOException;
import java.lang.annotation.Annotation;
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
import java.util.Objects;
import java.util.concurrent.Executor;
import javax.annotation.Nullable;
import p447.C6926;
import p491.InterfaceC7311;

/* JADX INFO: renamed from: ޓ.ކ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public final class C7322 extends InterfaceC7311.AbstractC7312 {

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    @Nullable
    public final Executor f21222;

    /* JADX INFO: renamed from: ޓ.ކ$֏, reason: contains not printable characters */
    public class C7323 implements InterfaceC7311<Object, InterfaceC7310<?>> {

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public final /* synthetic */ Type f21223;

        /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
        public final /* synthetic */ Executor f21224;

        public C7323(C7322 c7322, Type type, Executor executor) {
            this.f21223 = type;
            this.f21224 = executor;
        }

        @Override // p491.InterfaceC7311
        /* JADX INFO: renamed from: ֏ */
        public InterfaceC7310<?> mo10954(InterfaceC7310<Object> interfaceC7310) {
            Executor executor = this.f21224;
            return executor == null ? interfaceC7310 : new C7324(executor, interfaceC7310);
        }

        @Override // p491.InterfaceC7311
        /* JADX INFO: renamed from: ֏ */
        public Type mo10955() {
            return this.f21223;
        }
    }

    /* JADX INFO: renamed from: ޓ.ކ$ؠ, reason: contains not printable characters */
    public static final class C7324<T> implements InterfaceC7310<T> {

        /* JADX INFO: renamed from: ރ, reason: contains not printable characters */
        public final Executor f21225;

        /* JADX INFO: renamed from: ބ, reason: contains not printable characters */
        public final InterfaceC7310<T> f21226;

        /* JADX INFO: renamed from: ޓ.ކ$ؠ$֏, reason: contains not printable characters */
        public class C7325 implements InterfaceC7313<T> {

            /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
            public final /* synthetic */ InterfaceC7313 f21227;

            public C7325(InterfaceC7313 interfaceC7313) {
                this.f21227 = interfaceC7313;
            }

            @Override // p491.InterfaceC7313
            /* JADX INFO: renamed from: ֏ */
            public void mo10957(InterfaceC7310<T> interfaceC7310, final Throwable th) {
                Executor executor = C7324.this.f21225;
                final InterfaceC7313 interfaceC7313 = this.f21227;
                executor.execute(new Runnable() { // from class: ޓ.ؠ
                    @Override // java.lang.Runnable
                    public final void run() {
                        this.f21206.m10960(interfaceC7313, th);
                    }
                });
            }

            @Override // p491.InterfaceC7313
            /* JADX INFO: renamed from: ֏ */
            public void mo10958(InterfaceC7310<T> interfaceC7310, final C7366<T> c7366) {
                Executor executor = C7324.this.f21225;
                final InterfaceC7313 interfaceC7313 = this.f21227;
                executor.execute(new Runnable() { // from class: ޓ.֏
                    @Override // java.lang.Runnable
                    public final void run() {
                        this.f21203.m10961(interfaceC7313, c7366);
                    }
                });
            }

            /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
            public /* synthetic */ void m10960(InterfaceC7313 interfaceC7313, Throwable th) {
                interfaceC7313.mo10957(C7324.this, th);
            }

            /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
            public /* synthetic */ void m10961(InterfaceC7313 interfaceC7313, C7366 c7366) {
                if (C7324.this.f21226.mo10953()) {
                    interfaceC7313.mo10957(C7324.this, new IOException("Canceled"));
                } else {
                    interfaceC7313.mo10958(C7324.this, c7366);
                }
            }
        }

        public C7324(Executor executor, InterfaceC7310<T> interfaceC7310) {
            this.f21225 = executor;
            this.f21226 = interfaceC7310;
        }

        @Override // p491.InterfaceC7310
        public void cancel() {
            this.f21226.cancel();
        }

        public Object clone() {
            return new C7324(this.f21225, this.f21226.mo10959clone());
        }

        @Override // p491.InterfaceC7310
        /* JADX INFO: renamed from: clone, reason: collision with other method in class */
        public InterfaceC7310<T> mo10959clone() {
            return new C7324(this.f21225, this.f21226.mo10959clone());
        }

        @Override // p491.InterfaceC7310
        /* JADX INFO: renamed from: ֏ */
        public void mo10950(InterfaceC7313<T> interfaceC7313) {
            Objects.requireNonNull(interfaceC7313, "callback == null");
            this.f21226.mo10950(new C7325(interfaceC7313));
        }

        @Override // p491.InterfaceC7310
        /* JADX INFO: renamed from: ރ */
        public C7366<T> mo10951() {
            return this.f21226.mo10951();
        }

        @Override // p491.InterfaceC7310
        /* JADX INFO: renamed from: ބ */
        public C6926 mo10952() {
            return this.f21226.mo10952();
        }

        @Override // p491.InterfaceC7310
        /* JADX INFO: renamed from: ޅ */
        public boolean mo10953() {
            return this.f21226.mo10953();
        }
    }

    public C7322(@Nullable Executor executor) {
        this.f21222 = executor;
    }

    @Override // p491.InterfaceC7311.AbstractC7312
    @Nullable
    /* JADX INFO: renamed from: ֏ */
    public InterfaceC7311<?, ?> mo10956(Type type, Annotation[] annotationArr, C7367 c7367) {
        if (C7373.m10999(type) != InterfaceC7310.class) {
            return null;
        }
        if (type instanceof ParameterizedType) {
            return new C7323(this, C7373.m10991(0, (ParameterizedType) type), C7373.m10998(annotationArr, (Class<? extends Annotation>) InterfaceC7371.class) ? null : this.f21222);
        }
        throw new IllegalArgumentException("Call return type must be parameterized as Call<Foo> or Call<? extends Foo>");
    }
}
