package p138.p176.p291.p295;

import java.util.Collections;
import java.util.HashSet;
import java.util.Set;
import p138.p176.p291.p318.InterfaceC5898;
import p138.p176.p291.p322.InterfaceC5963;

/* JADX INFO: renamed from: ދ.ހ.ށ.ރ.ޒ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public final class C5602 extends AbstractC5580 {

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public final Set<Class<?>> f16054;

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public final Set<Class<?>> f16055;

    /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
    public final Set<Class<?>> f16056;

    /* JADX INFO: renamed from: ށ, reason: contains not printable characters */
    public final Set<Class<?>> f16057;

    /* JADX INFO: renamed from: ނ, reason: contains not printable characters */
    public final Set<Class<?>> f16058;

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

    /* JADX INFO: renamed from: ދ.ހ.ށ.ރ.ޒ$֏, reason: contains not printable characters */
    public static class C5603 implements InterfaceC5898 {
        public C5603(Set<Class<?>> set, InterfaceC5898 interfaceC5898) {
        }
    }

    public C5602(C5583<?> c5583, InterfaceC5586 interfaceC5586) {
        HashSet hashSet = new HashSet();
        HashSet hashSet2 = new HashSet();
        HashSet hashSet3 = new HashSet();
        HashSet hashSet4 = new HashSet();
        for (C5598 c5598 : c5583.f16017) {
            if (c5598.f16045 == 0) {
                if (c5598.m8958()) {
                    hashSet3.add(c5598.f16043);
                } else {
                    hashSet.add(c5598.f16043);
                }
            } else if (c5598.m8958()) {
                hashSet4.add(c5598.f16043);
            } else {
                hashSet2.add(c5598.f16043);
            }
        }
        if (!c5583.f16021.isEmpty()) {
            hashSet.add(InterfaceC5898.class);
        }
        this.f16054 = Collections.unmodifiableSet(hashSet);
        this.f16055 = Collections.unmodifiableSet(hashSet2);
        this.f16056 = Collections.unmodifiableSet(hashSet3);
        this.f16057 = Collections.unmodifiableSet(hashSet4);
        this.f16058 = c5583.f16021;
        this.f16059 = interfaceC5586;
    }

    @Override // p138.p176.p291.p295.AbstractC5580, p138.p176.p291.p295.InterfaceC5586
    /* JADX INFO: renamed from: ֏ */
    public <T> T mo8943(Class<T> cls) {
        if (!this.f16054.contains(cls)) {
            throw new IllegalArgumentException(String.format("Attempting to request an undeclared dependency %s.", cls));
        }
        T t = (T) this.f16059.mo8943(cls);
        return !cls.equals(InterfaceC5898.class) ? t : (T) new C5603(this.f16058, (InterfaceC5898) t);
    }

    @Override // p138.p176.p291.p295.AbstractC5580, p138.p176.p291.p295.InterfaceC5586
    /* JADX INFO: renamed from: ؠ */
    public <T> Set<T> mo8944(Class<T> cls) {
        if (this.f16056.contains(cls)) {
            return this.f16059.mo8944(cls);
        }
        throw new IllegalArgumentException(String.format("Attempting to request an undeclared dependency Set<%s>.", cls));
    }

    @Override // p138.p176.p291.p295.InterfaceC5586
    /* JADX INFO: renamed from: ހ */
    public <T> InterfaceC5963<T> mo8952(Class<T> cls) {
        if (this.f16055.contains(cls)) {
            return this.f16059.mo8952(cls);
        }
        throw new IllegalArgumentException(String.format("Attempting to request an undeclared dependency Provider<%s>.", cls));
    }

    @Override // p138.p176.p291.p295.InterfaceC5586
    /* JADX INFO: renamed from: ށ */
    public <T> InterfaceC5963<Set<T>> mo8953(Class<T> cls) {
        if (this.f16057.contains(cls)) {
            return this.f16059.mo8953(cls);
        }
        throw new IllegalArgumentException(String.format("Attempting to request an undeclared dependency Provider<Set<%s>>.", cls));
    }
}
