package q6;

import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import java.util.ListIterator;
import kotlin.jvm.internal.t;

/* loaded from: classes.dex */
public class l extends g implements en.c {

    /* renamed from: x, reason: collision with root package name */
    private final List f33483x;

    /* renamed from: y, reason: collision with root package name */
    private final dn.l f33484y;

    /* renamed from: z, reason: collision with root package name */
    private final dn.l f33485z;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public l(List src, dn.l src2Dest, dn.l dest2Src) {
        super(src, src2Dest, dest2Src);
        t.g(src, "src");
        t.g(src2Dest, "src2Dest");
        t.g(dest2Src, "dest2Src");
        this.f33483x = src;
        this.f33484y = src2Dest;
        this.f33485z = dest2Src;
    }

    @Override // q6.a, java.util.Collection
    public boolean add(Object obj) {
        return this.f33483x.add(this.f33485z.invoke(obj));
    }

    @Override // java.util.List
    public boolean addAll(int i10, Collection elements) {
        t.g(elements, "elements");
        return this.f33483x.addAll(i10, b.a(elements, this.f33485z, this.f33484y));
    }

    @Override // q6.a, java.util.Collection
    public void clear() {
        this.f33483x.clear();
    }

    public Object g(int i10) {
        return this.f33484y.invoke(this.f33483x.remove(i10));
    }

    @Override // q6.d, java.lang.Iterable
    public Iterator iterator() {
        return b.d(this.f33483x.iterator(), this.f33484y);
    }

    @Override // java.util.List
    public ListIterator listIterator() {
        return b.e(this.f33483x.listIterator(), this.f33484y, this.f33485z);
    }

    @Override // java.util.List
    public final /* bridge */ Object remove(int i10) {
        return g(i10);
    }

    @Override // q6.a, java.util.Collection
    public boolean removeAll(Collection elements) {
        t.g(elements, "elements");
        return this.f33483x.removeAll(b.a(elements, this.f33485z, this.f33484y));
    }

    @Override // q6.a, java.util.Collection
    public boolean retainAll(Collection elements) {
        t.g(elements, "elements");
        return this.f33483x.retainAll(b.a(elements, this.f33485z, this.f33484y));
    }

    @Override // java.util.List
    public Object set(int i10, Object obj) {
        return this.f33484y.invoke(this.f33483x.set(i10, this.f33485z.invoke(obj)));
    }

    @Override // java.util.List
    public List subList(int i10, int i11) {
        return b.f(this.f33483x.subList(i10, i11), this.f33484y, this.f33485z);
    }

    @Override // java.util.List
    public void add(int i10, Object obj) {
        this.f33483x.add(i10, this.f33485z.invoke(obj));
    }

    @Override // q6.a, java.util.Collection
    public boolean addAll(Collection elements) {
        t.g(elements, "elements");
        return this.f33483x.addAll(b.a(elements, this.f33485z, this.f33484y));
    }

    @Override // java.util.List
    public ListIterator listIterator(int i10) {
        return b.e(this.f33483x.listIterator(i10), this.f33484y, this.f33485z);
    }

    @Override // q6.a, java.util.Collection
    public boolean remove(Object obj) {
        return this.f33483x.remove(this.f33485z.invoke(obj));
    }
}
