package com.google.crypto.tink.shaded.protobuf;

import com.google.android.gms.measurement.internal.u1;
import java.util.Iterator;
import java.util.Map;

/* JADX INFO: loaded from: classes2.dex */
public final class j0 {
    public static void a(Object obj) {
        u1.x(obj);
        throw null;
    }

    public static void b(Object obj, Object obj2) {
        MapFieldLite mapFieldLite = (MapFieldLite) obj;
        u1.x(obj2);
        if (mapFieldLite.isEmpty()) {
            return;
        }
        Iterator it = mapFieldLite.entrySet().iterator();
        if (it.hasNext()) {
            Map.Entry entry = (Map.Entry) it.next();
            entry.getKey();
            entry.getValue();
            throw null;
        }
    }

    public static boolean c(Object obj) {
        return !((MapFieldLite) obj).d();
    }

    public static MapFieldLite d(Object obj, Object obj2) {
        MapFieldLite mapFieldLiteG = (MapFieldLite) obj;
        MapFieldLite mapFieldLite = (MapFieldLite) obj2;
        if (!mapFieldLite.isEmpty()) {
            if (!mapFieldLiteG.d()) {
                mapFieldLiteG = mapFieldLiteG.g();
            }
            mapFieldLiteG.b();
            if (!mapFieldLite.isEmpty()) {
                mapFieldLiteG.putAll(mapFieldLite);
            }
        }
        return mapFieldLiteG;
    }

    public static MapFieldLite e() {
        return MapFieldLite.f23877a.g();
    }

    public static void f(Object obj) {
        ((MapFieldLite) obj).e();
    }
}
