package p138.p176.p177.p242.p258.p263;

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

/* JADX INFO: Add missing generic type declarations: [V, K] */
/* JADX INFO: renamed from: ދ.ހ.֏.ހ.ރ.ނ.ɾ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public final class C4410<K, V> implements Iterator<Map.Entry<K, V>> {

    /* JADX INFO: renamed from: ރ, reason: contains not printable characters */
    public int f13700 = -1;

    /* JADX INFO: renamed from: ބ, reason: contains not printable characters */
    public boolean f13701;

    /* JADX INFO: renamed from: ޅ, reason: contains not printable characters */
    public Iterator<Map.Entry<K, V>> f13702;

    /* JADX INFO: renamed from: ކ, reason: contains not printable characters */
    public final /* synthetic */ C4701 f13703;

    public /* synthetic */ C4410(C4701 c4701, C4698 c4698) {
        this.f13703 = c4701;
    }

    @Override // java.util.Iterator
    public final boolean hasNext() {
        return this.f13700 + 1 < this.f13703.f14211.size() || (!this.f13703.f14212.isEmpty() && m7347().hasNext());
    }

    @Override // java.util.Iterator
    public final /* synthetic */ Object next() {
        this.f13701 = true;
        int i = this.f13700 + 1;
        this.f13700 = i;
        return i < this.f13703.f14211.size() ? this.f13703.f14211.get(this.f13700) : m7347().next();
    }

    @Override // java.util.Iterator
    public final void remove() {
        if (!this.f13701) {
            throw new IllegalStateException("remove() was called before next()");
        }
        this.f13701 = false;
        this.f13703.m7871();
        if (this.f13700 >= this.f13703.f14211.size()) {
            m7347().remove();
            return;
        }
        C4701 c4701 = this.f13703;
        int i = this.f13700;
        this.f13700 = i - 1;
        c4701.m7869(i);
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public final Iterator<Map.Entry<K, V>> m7347() {
        if (this.f13702 == null) {
            this.f13702 = this.f13703.f14212.entrySet().iterator();
        }
        return this.f13702;
    }
}
