package o;

import java.util.Iterator;
import java.util.Map;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public final class HW extends AbstractC1442i0 {
    public final /* synthetic */ int l;
    public final BW m;

    public /* synthetic */ HW(BW bw, int i) {
        this.l = i;
        this.m = bw;
    }

    @Override // o.AbstractC2864x
    public final int a() {
        switch (this.l) {
            case 0:
                BW bw = this.m;
                bw.getClass();
                return bw.m;
            default:
                BW bw2 = this.m;
                bw2.getClass();
                return bw2.m;
        }
    }

    @Override // o.AbstractC2864x, java.util.Collection, java.util.List
    public final boolean contains(Object obj) {
        switch (this.l) {
            case 0:
                if (!(obj instanceof Map.Entry)) {
                    return false;
                }
                Map.Entry entry = (Map.Entry) obj;
                Object key = entry.getKey();
                BW bw = this.m;
                Object obj2 = bw.get(key);
                return obj2 != null ? obj2.equals(entry.getValue()) : entry.getValue() == null && bw.containsKey(entry.getKey());
            default:
                return this.m.containsKey(obj);
        }
    }

    @Override // java.util.Collection, java.lang.Iterable, java.util.Set
    public final Iterator iterator() {
        switch (this.l) {
            case 0:
                C0737ah0 c0737ah0 = this.m.l;
                AbstractC0833bh0[] abstractC0833bh0Arr = new AbstractC0833bh0[8];
                for (int i = 0; i < 8; i++) {
                    abstractC0833bh0Arr[i] = new C0928ch0(0);
                }
                return new IW(c0737ah0, abstractC0833bh0Arr);
            default:
                C0737ah0 c0737ah02 = this.m.l;
                AbstractC0833bh0[] abstractC0833bh0Arr2 = new AbstractC0833bh0[8];
                for (int i2 = 0; i2 < 8; i2++) {
                    abstractC0833bh0Arr2[i2] = new C0928ch0(1);
                }
                return new IW(c0737ah02, abstractC0833bh0Arr2);
        }
    }
}
