package defpackage;

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

/* JADX INFO: renamed from: ᵳᵬʜ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes3.dex */
public final class C4601 extends AbstractC4516 implements InterfaceC1841 {

    /* JADX INFO: renamed from: ᵔᵖᵹᵫ, reason: contains not printable characters */
    public final /* synthetic */ C4861 f17510;

    /* JADX INFO: renamed from: ᵜᵪʾ, reason: contains not printable characters */
    public final /* synthetic */ int f17511;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public /* synthetic */ C4601(C4861 c4861, int i) {
        super(0);
        this.f17511 = i;
        this.f17510 = c4861;
    }

    @Override // defpackage.InterfaceC1841
    /* JADX INFO: renamed from: ᵲᵶᵳˈ */
    public final Object mo1021() throws IOException {
        switch (this.f17511) {
            case 0:
                return ((C1949) this.f17510.f18537.getValue()).f7748;
            default:
                C1708 c1708 = this.f17510.f18538;
                File canonicalFile = ((File) c1708.f6829.mo1021()).getCanonicalFile();
                synchronized (C1708.f6826) {
                    String absolutePath = canonicalFile.getAbsolutePath();
                    LinkedHashSet linkedHashSet = C1708.f6827;
                    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 C1949(canonicalFile, c1708.f6830, (InterfaceC0636) c1708.f6828.mo1706(canonicalFile), new C4603(0, canonicalFile));
        }
    }
}
