package k;

import java.util.Iterator;

/* JADX INFO: renamed from: k.d, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C2368d extends AbstractC2369e implements Iterator {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public C2367c f19610a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public boolean f19611b = true;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final /* synthetic */ C2370f f19612c;

    public C2368d(C2370f c2370f) {
        this.f19612c = c2370f;
    }

    @Override // k.AbstractC2369e
    public final void a(C2367c c2367c) {
        C2367c c2367c2 = this.f19610a;
        if (c2367c == c2367c2) {
            C2367c c2367c3 = c2367c2.f19609d;
            this.f19610a = c2367c3;
            this.f19611b = c2367c3 == null;
        }
    }

    @Override // java.util.Iterator
    public final boolean hasNext() {
        if (this.f19611b) {
            return this.f19612c.f19613a != null;
        }
        C2367c c2367c = this.f19610a;
        return (c2367c == null || c2367c.f19608c == null) ? false : true;
    }

    @Override // java.util.Iterator
    public final Object next() {
        if (this.f19611b) {
            this.f19611b = false;
            this.f19610a = this.f19612c.f19613a;
        } else {
            C2367c c2367c = this.f19610a;
            this.f19610a = c2367c != null ? c2367c.f19608c : null;
        }
        return this.f19610a;
    }
}
