package com.google.android.gms.internal.ads;

import androidx.annotation.Nullable;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Set;

/* JADX INFO: loaded from: classes2.dex */
public final class f12 extends rb implements Map {

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final Map f10988b;

    public f12(Map map) {
        super(2);
        this.f10988b = map;
    }

    @Override // java.util.Map
    /* JADX INFO: renamed from: A, reason: merged with bridge method [inline-methods] */
    public final void putAll(Map map) {
        this.f10988b.putAll(map);
    }

    public final boolean B(Object obj) {
        Iterator it = ((xs1) entrySet()).iterator();
        ns1 ns1Var = new ns1(it);
        if (obj == null) {
            while (it.hasNext()) {
                if (ns1Var.next() == null) {
                }
            }
            return false;
        }
        while (it.hasNext()) {
            if (obj.equals(ns1Var.next())) {
            }
        }
        return false;
        return true;
    }

    @Override // java.util.Map
    public final boolean containsKey(@Nullable Object obj) {
        return obj != null && this.f10988b.containsKey(obj);
    }

    @Override // java.util.Map
    public final boolean containsValue(@Nullable Object obj) {
        return B(obj);
    }

    @Override // java.util.Map
    public final Set entrySet() {
        return ih1.U(this.f10988b.entrySet(), wz1.f18273a);
    }

    @Override // java.util.Map
    public final boolean equals(@Nullable Object obj) {
        return obj != null && ih1.i0(obj, this);
    }

    @Override // java.util.Map
    @Nullable
    public final /* synthetic */ Object get(@Nullable Object obj) {
        if (obj == null) {
            return null;
        }
        return (List) this.f10988b.get(obj);
    }

    @Override // java.util.Map
    public final int hashCode() {
        return ih1.n0(entrySet());
    }

    @Override // java.util.Map
    public final boolean isEmpty() {
        Map map = this.f10988b;
        if (map.isEmpty()) {
            return true;
        }
        return map.size() == 1 && map.containsKey(null);
    }

    @Override // com.google.android.gms.internal.ads.rb
    public final Map j() {
        return this.f10988b;
    }

    @Override // java.util.Map
    public final Set keySet() {
        return ih1.U(this.f10988b.keySet(), o02.f14790a);
    }

    @Override // java.util.Map
    public final Object put(Object obj, Object obj2) {
        return this.f10988b.put(obj, obj2);
    }

    @Override // java.util.Map
    public final Object remove(Object obj) {
        return this.f10988b.remove(obj);
    }

    @Override // java.util.Map
    public final int size() {
        Map map = this.f10988b;
        return map.size() - (map.containsKey(null) ? 1 : 0);
    }

    @Override // java.util.Map
    public final Collection values() {
        return this.f10988b.values();
    }

    @Override // java.util.Map
    /* JADX INFO: renamed from: z, reason: merged with bridge method [inline-methods] */
    public final void clear() {
        this.f10988b.clear();
    }

    @Override // com.google.android.gms.internal.ads.rb
    public final /* synthetic */ Object zzb() {
        return this.f10988b;
    }
}
