package c1;

import b1.e;
import java.util.Collection;
import java.util.Iterator;
import java.util.ListIterator;
import kotlin.jvm.internal.v;

/* loaded from: classes.dex */
public abstract class b extends sm.c implements b1.e {

    /* loaded from: classes.dex */
    static final class a extends v implements dn.l {

        /* renamed from: p, reason: collision with root package name */
        final /* synthetic */ Collection f7344p;

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        a(Collection collection) {
            super(1);
            this.f7344p = collection;
        }

        @Override // dn.l
        /* renamed from: a, reason: merged with bridge method [inline-methods] */
        public final Boolean invoke(Object obj) {
            return Boolean.valueOf(this.f7344p.contains(obj));
        }
    }

    @Override // java.util.Collection, java.util.List, b1.e
    public b1.e addAll(Collection collection) {
        e.a builder = builder();
        builder.addAll(collection);
        return builder.build();
    }

    @Override // sm.a, java.util.Collection, java.util.List
    public boolean contains(Object obj) {
        return indexOf(obj) != -1;
    }

    @Override // sm.a, java.util.Collection, java.util.List
    public boolean containsAll(Collection collection) {
        Collection collection2 = collection;
        if ((collection2 instanceof Collection) && collection2.isEmpty()) {
            return true;
        }
        Iterator it = collection2.iterator();
        while (it.hasNext()) {
            if (!contains(it.next())) {
                return false;
            }
        }
        return true;
    }

    @Override // sm.c, java.util.Collection, java.lang.Iterable, java.util.List
    public Iterator iterator() {
        return listIterator();
    }

    @Override // sm.c, java.util.List
    public ListIterator listIterator() {
        return listIterator(0);
    }

    @Override // java.util.Collection, java.util.List, b1.e
    public b1.e remove(Object obj) {
        int indexOf = indexOf(obj);
        return indexOf != -1 ? N(indexOf) : this;
    }

    @Override // java.util.Collection, java.util.List, b1.e
    public b1.e removeAll(Collection collection) {
        return w0(new a(collection));
    }

    @Override // sm.c, java.util.List, b1.c
    public b1.c subList(int i10, int i11) {
        return super.subList(i10, i11);
    }
}
