package ඓ.ῲ.K.ᕣ.ᕣ.㿎;

import java.util.ArrayList;
import java.util.List;

/* renamed from: ඓ.ῲ.K.ᕣ.ᕣ.㿎.㴹  reason: contains not printable characters */
/* compiled from: TranscoderRegistry */
public class C0931 {

    /* renamed from: K  reason: contains not printable characters */
    public final List<C0932<?, ?>> f4224 = new ArrayList();

    /* renamed from: ඓ.ῲ.K.ᕣ.ᕣ.㿎.㴹$K  reason: contains not printable characters */
    /* compiled from: TranscoderRegistry */
    public static final class C0932<Z, R> {

        /* renamed from: ʬ  reason: contains not printable characters */
        public final AbstractC0927<Z, R> f4225;

        /* renamed from: ῲ  reason: contains not printable characters */
        public final Class<R> f4226;

        /* renamed from: K  reason: contains not printable characters */
        public final Class<Z> f4227;

        public C0932(Class<Z> cls, Class<R> cls2, AbstractC0927<Z, R> r3) {
            this.f4227 = cls;
            this.f4226 = cls2;
            this.f4225 = r3;
        }

        /* renamed from: K  reason: contains not printable characters */
        public boolean m2648(Class<?> cls, Class<?> cls2) {
            return this.f4227.isAssignableFrom(cls) && cls2.isAssignableFrom(this.f4226);
        }
    }

    /* renamed from: ῲ  reason: contains not printable characters */
    public synchronized <Z, R> List<Class<R>> m2645(Class<Z> cls, Class<R> cls2) {
        ArrayList arrayList = new ArrayList();
        if (cls2.isAssignableFrom(cls)) {
            arrayList.add(cls2);
            return arrayList;
        }
        for (C0932<?, ?> k : this.f4224) {
            if (k.m2648(cls, cls2)) {
                arrayList.add(cls2);
            }
        }
        return arrayList;
    }

    /* renamed from: K  reason: contains not printable characters */
    public synchronized <Z, R> void m2647(Class<Z> cls, Class<R> cls2, AbstractC0927<Z, R> r5) {
        this.f4224.add(new C0932<>(cls, cls2, r5));
    }

    /* renamed from: K  reason: contains not printable characters */
    public synchronized <Z, R> AbstractC0927<Z, R> m2646(Class<Z> cls, Class<R> cls2) {
        if (cls2.isAssignableFrom(cls)) {
            return C0929.f4221;
        }
        for (C0932<?, ?> k : this.f4224) {
            if (k.m2648(cls, cls2)) {
                return k.f4225;
            }
        }
        throw new IllegalArgumentException("No transcoder registered to transcode from " + cls + " to " + cls2);
    }
}
