package a.i.b.a.c.g;

import a.i.b.a.c.g.i.c;
import a.i.b.a.c.g.i.e;
import a.i.b.a.c.g.z.b;
import com.tencent.matrix.trace.core.AppMethodBeat;
import java.util.Iterator;
import java.util.Map.Entry;

public class i$c$a {
    private final Iterator<Entry<e, Object>> BzK;
    private Entry<e, Object> BzL;
    private final boolean BzM;
    final /* synthetic */ c BzN;

    private i$c$a(c cVar) {
        Iterator l_b;
        this.BzN = cVar;
        AppMethodBeat.i(121522);
        h b = c.b(this.BzN);
        if (b.BzE) {
            l_b = new l$b(b.BzC.entrySet().iterator());
        } else {
            l_b = b.BzC.entrySet().iterator();
        }
        this.BzK = l_b;
        if (this.BzK.hasNext()) {
            this.BzL = (Entry) this.BzK.next();
        }
        this.BzM = false;
        AppMethodBeat.o(121522);
    }

    public final void b(int i, f fVar) {
        AppMethodBeat.i(121523);
        while (this.BzL != null && ((e) this.BzL.getKey()).number < i) {
            e eVar = (e) this.BzL.getKey();
            if (this.BzM && eVar.BzP.BBj == b.BBu && !eVar.BzQ) {
                fVar.b(eVar.number, (q) this.BzL.getValue());
            } else {
                h.a(eVar, this.BzL.getValue(), fVar);
            }
            if (this.BzK.hasNext()) {
                this.BzL = (Entry) this.BzK.next();
            } else {
                this.BzL = null;
            }
        }
        AppMethodBeat.o(121523);
    }
}
