package defpackage;

import java.util.Map;

/* renamed from: ᵜᵖ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final class C2829 extends AbstractC4852 {

    /* renamed from: ᵢˇᵭ, reason: contains not printable characters */
    public int f10890;

    /* renamed from: ᵧᵾˀˈ, reason: contains not printable characters */
    public final Object f10891;

    /* renamed from: ᵿʗᵝʽ, reason: contains not printable characters */
    public final /* synthetic */ C0106 f10892;

    public C2829(C0106 c0106, int i) {
        this.f10892 = c0106;
        Object obj = C0106.f1388;
        this.f10891 = c0106.m1191()[i];
        this.f10890 = i;
    }

    @Override // java.util.Map.Entry
    public final Object getKey() {
        return this.f10891;
    }

    @Override // java.util.Map.Entry
    public final Object getValue() {
        C0106 c0106 = this.f10892;
        Map mapM1189 = c0106.m1189();
        if (mapM1189 != null) {
            return mapM1189.get(this.f10891);
        }
        m6934();
        int i = this.f10890;
        if (i == -1) {
            return null;
        }
        return c0106.m1192()[i];
    }

    @Override // defpackage.AbstractC4852, java.util.Map.Entry
    public final Object setValue(Object obj) {
        C0106 c0106 = this.f10892;
        Map mapM1189 = c0106.m1189();
        Object obj2 = this.f10891;
        if (mapM1189 != null) {
            return mapM1189.put(obj2, obj);
        }
        m6934();
        int i = this.f10890;
        if (i == -1) {
            c0106.put(obj2, obj);
            return null;
        }
        Object obj3 = c0106.m1192()[i];
        c0106.m1192()[this.f10890] = obj;
        return obj3;
    }

    /* renamed from: ᵥᵯˎ, reason: contains not printable characters */
    public final void m6934() {
        int i = this.f10890;
        Object obj = this.f10891;
        C0106 c0106 = this.f10892;
        if (i != -1 && i < c0106.size()) {
            if (ˊˉʤﹳ.ˌᵜᵹᵩ(obj, c0106.m1191()[this.f10890])) {
                return;
            }
        }
        Object obj2 = C0106.f1388;
        this.f10890 = c0106.m1185(obj);
    }
}
