package kotlin.reflect.jvm.internal.impl.protobuf;

import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import kotlin.reflect.jvm.internal.impl.protobuf.i;

/* loaded from: classes3.dex */
public class g {

    /* renamed from: b, reason: collision with root package name */
    private static final g f26268b = new g(true);

    /* renamed from: a, reason: collision with root package name */
    private final Map f26269a;

    /* loaded from: classes3.dex */
    private static final class a {

        /* renamed from: a, reason: collision with root package name */
        private final Object f26270a;

        /* renamed from: b, reason: collision with root package name */
        private final int f26271b;

        a(Object obj, int i10) {
            this.f26270a = obj;
            this.f26271b = i10;
        }

        public boolean equals(Object obj) {
            if (!(obj instanceof a)) {
                return false;
            }
            a aVar = (a) obj;
            return this.f26270a == aVar.f26270a && this.f26271b == aVar.f26271b;
        }

        public int hashCode() {
            return (System.identityHashCode(this.f26270a) * 65535) + this.f26271b;
        }
    }

    g() {
        this.f26269a = new HashMap();
    }

    public static g c() {
        return f26268b;
    }

    public static g d() {
        return new g();
    }

    public final void a(i.f fVar) {
        this.f26269a.put(new a(fVar.b(), fVar.d()), fVar);
    }

    public i.f b(p pVar, int i10) {
        return (i.f) this.f26269a.get(new a(pVar, i10));
    }

    private g(boolean z10) {
        this.f26269a = Collections.emptyMap();
    }
}
