package ඓ.ῲ.K.Ԕ;

import java.util.ArrayList;
import java.util.List;
import ඓ.ῲ.K.ᕣ.AbstractC1120;

/* renamed from: ඓ.ῲ.K.Ԕ.㴹  reason: contains not printable characters */
/* compiled from: ResourceEncoderRegistry */
public class C0818 {

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

    /* renamed from: ඓ.ῲ.K.Ԕ.㴹$K  reason: contains not printable characters */
    /* compiled from: ResourceEncoderRegistry */
    public static final class C0819<T> {

        /* renamed from: ῲ  reason: contains not printable characters */
        public final AbstractC1120<T> f4041;

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

        public C0819(Class<T> cls, AbstractC1120<T> r2) {
            this.f4042 = cls;
            this.f4041 = r2;
        }
    }

    /* renamed from: K  reason: contains not printable characters */
    public synchronized <Z> void m2414(Class<Z> cls, AbstractC1120<Z> r4) {
        this.f4040.add(new C0819<>(cls, r4));
    }

    /* JADX DEBUG: Type inference failed for r5v3. Raw type applied. Possible types: ඓ.ῲ.K.ᕣ.㴹<T>, ඓ.ῲ.K.ᕣ.㴹<Z> */
    /* renamed from: K  reason: contains not printable characters */
    public synchronized <Z> AbstractC1120<Z> m2413(Class<Z> cls) {
        int size = this.f4040.size();
        for (int i = 0; i < size; i++) {
            C0819<?> k = this.f4040.get(i);
            if (k.f4042.isAssignableFrom(cls)) {
                return (AbstractC1120<T>) k.f4041;
            }
        }
        return null;
    }
}
