package defpackage;

import java.util.Collections;
import java.util.Map;

/* JADX INFO: loaded from: classes.dex */
public class ju2 {
    public static volatile ju2 b;
    public static final ju2 c;
    public final Map a = Collections.EMPTY_MAP;

    public static final class a {
        public final Object a;
        public final int b;

        public a(int i, av5 av5Var) {
            this.a = av5Var;
            this.b = i;
        }

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

        public final int hashCode() {
            return (System.identityHashCode(this.a) * 65535) + this.b;
        }
    }

    static {
        try {
            Class.forName("androidx.datastore.preferences.protobuf.Extension");
        } catch (ClassNotFoundException unused) {
        }
        c = new ju2();
    }

    public static ju2 a() {
        ju2 ju2Var;
        ju2 ju2Var2 = b;
        if (ju2Var2 != null) {
            return ju2Var2;
        }
        synchronized (ju2.class) {
            try {
                ju2Var = b;
                if (ju2Var == null) {
                    Class cls = iu2.a;
                    if (cls != null) {
                        try {
                            ju2Var = (ju2) cls.getDeclaredMethod("getEmptyRegistry", null).invoke(null, null);
                        } catch (Exception unused) {
                            ju2Var = c;
                        }
                        b = ju2Var;
                    } else {
                        ju2Var = c;
                        b = ju2Var;
                    }
                }
            } catch (Throwable th) {
                throw th;
            }
        }
        return ju2Var;
    }
}
