package defpackage;

import java.io.File;
import java.io.IOException;
import java.util.LinkedHashSet;

/* renamed from: ˁˇᵛ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final class C0660 extends AbstractC3447 implements InterfaceC4622 {

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

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

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public /* synthetic */ C0660(C5293 c5293, int i) {
        super(0);
        this.f3277 = i;
        this.f3278 = c5293;
    }

    @Override // defpackage.InterfaceC4622
    /* renamed from: ᵥᵯˎ */
    public final Object mo1401() throws IOException {
        switch (this.f3277) {
            case 0:
                return ((C5203) this.f3278.f19804.getValue()).f19411;
            default:
                C4383 c4383 = this.f3278.f19802;
                File canonicalFile = ((File) c4383.f16420.mo1401()).getCanonicalFile();
                synchronized (C4383.f16418) {
                    String absolutePath = canonicalFile.getAbsolutePath();
                    LinkedHashSet linkedHashSet = C4383.f16419;
                    if (linkedHashSet.contains(absolutePath)) {
                        throw new IllegalStateException(("There are multiple DataStores active for the same file: " + absolutePath + ". You should either maintain your DataStore as a singleton or confirm that there is no two DataStore's active on the same file (by confirming that the scope is cancelled).").toString());
                    }
                    linkedHashSet.add(absolutePath);
                }
                return new C5203(canonicalFile, c4383.f16421, (InterfaceC0168) c4383.f16422.mo1588(canonicalFile), new C1654(0, canonicalFile));
        }
    }
}
