package C3;

import java.util.Map;

/* JADX INFO: renamed from: C3.t, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C0057t extends AbstractC0051m {

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

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

    /* JADX INFO: renamed from: s, reason: collision with root package name */
    public final /* synthetic */ C0058u f1303s;

    public C0057t(C0058u c0058u, int i) {
        this.f1303s = c0058u;
        Object obj = C0058u.f1304z;
        this.f1301q = c0058u.i()[i];
        this.f1302r = i;
    }

    public final void a() {
        int i = this.f1302r;
        Object obj = this.f1301q;
        C0058u c0058u = this.f1303s;
        if (i != -1 && i < c0058u.size()) {
            if (s7.l.h(obj, c0058u.i()[this.f1302r])) {
                return;
            }
        }
        Object obj2 = C0058u.f1304z;
        this.f1302r = c0058u.d(obj);
    }

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

    @Override // java.util.Map.Entry
    public final Object getValue() {
        C0058u c0058u = this.f1303s;
        Map mapB = c0058u.b();
        if (mapB != null) {
            return mapB.get(this.f1301q);
        }
        a();
        int i = this.f1302r;
        if (i == -1) {
            return null;
        }
        return c0058u.j()[i];
    }

    @Override // java.util.Map.Entry
    public final Object setValue(Object obj) {
        C0058u c0058u = this.f1303s;
        Map mapB = c0058u.b();
        Object obj2 = this.f1301q;
        if (mapB != null) {
            return mapB.put(obj2, obj);
        }
        a();
        int i = this.f1302r;
        if (i == -1) {
            c0058u.put(obj2, obj);
            return null;
        }
        Object obj3 = c0058u.j()[i];
        c0058u.j()[this.f1302r] = obj;
        return obj3;
    }
}
