package O1;

import java.util.LinkedHashSet;

/* JADX INFO: renamed from: O1.n, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C0574n extends kotlin.jvm.internal.p implements J4.a {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final /* synthetic */ int f5439a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final /* synthetic */ O f5440b;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public /* synthetic */ C0574n(O o6, int i6) {
        super(0);
        this.f5439a = i6;
        this.f5440b = o6;
    }

    @Override // J4.a
    public final Object invoke() {
        switch (this.f5439a) {
            case 0:
                return ((Q1.i) this.f5440b.f5362i.getValue()).f5899c;
            default:
                Q1.f fVar = this.f5440b.f5354a;
                String strT = ((p5.G) fVar.f5883d.getValue()).f23048a.t();
                synchronized (Q1.f.f5879f) {
                    LinkedHashSet linkedHashSet = Q1.f.f5878e;
                    if (linkedHashSet.contains(strT)) {
                        throw new IllegalStateException(("There are multiple DataStores active for the same file: " + strT + ". 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(strT);
                }
                return new Q1.i(fVar.f5880a, (p5.G) fVar.f5883d.getValue(), (Y) fVar.f5881b.invoke((p5.G) fVar.f5883d.getValue(), fVar.f5880a), new Q1.e(fVar, 1));
        }
    }
}
