package com.google.common.collect;

import java.util.Iterator;

/* JADX INFO: loaded from: classes2.dex */
public final class m1 extends b {

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final Iterator f23693c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final Iterator f23694d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public final /* synthetic */ n1 f23695e;

    public m1(n1 n1Var) {
        this.f23695e = n1Var;
        this.f23693c = n1Var.f23703c.iterator();
        this.f23694d = n1Var.f23704d.iterator();
    }

    @Override // com.google.common.collect.b
    public final Object a() {
        Object next;
        Iterator it = this.f23693c;
        if (it.hasNext()) {
            return it.next();
        }
        do {
            Iterator it2 = this.f23694d;
            if (!it2.hasNext()) {
                this.f23642a = AbstractIterator$State.f23565c;
                return null;
            }
            next = it2.next();
        } while (this.f23695e.f23703c.contains(next));
        return next;
    }
}
