package F3;

import java.util.Map;

/* JADX INFO: renamed from: F3.x, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes3.dex */
public final class C0223x extends AbstractC0215o {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final Object f1624a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public int f1625b;

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

    public C0223x(C0225z c0225z, int i6) {
        this.f1626c = c0225z;
        Object obj = C0225z.f1633m;
        this.f1624a = c0225z.j()[i6];
        this.f1625b = i6;
    }

    public final void a() {
        int i6 = this.f1625b;
        Object obj = this.f1624a;
        C0225z c0225z = this.f1626c;
        if (i6 != -1 && i6 < c0225z.size()) {
            if (android.support.v4.media.session.b.n(obj, c0225z.j()[this.f1625b])) {
                return;
            }
        }
        Object obj2 = C0225z.f1633m;
        this.f1625b = c0225z.d(obj);
    }

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

    @Override // java.util.Map.Entry
    public final Object getValue() {
        C0225z c0225z = this.f1626c;
        Map mapB = c0225z.b();
        if (mapB != null) {
            return mapB.get(this.f1624a);
        }
        a();
        int i6 = this.f1625b;
        if (i6 == -1) {
            return null;
        }
        return c0225z.k()[i6];
    }

    @Override // java.util.Map.Entry
    public final Object setValue(Object obj) {
        C0225z c0225z = this.f1626c;
        Map mapB = c0225z.b();
        Object obj2 = this.f1624a;
        if (mapB != null) {
            return mapB.put(obj2, obj);
        }
        a();
        int i6 = this.f1625b;
        if (i6 == -1) {
            c0225z.put(obj2, obj);
            return null;
        }
        Object obj3 = c0225z.k()[i6];
        c0225z.k()[this.f1625b] = obj;
        return obj3;
    }
}
