package W;

import d4.C0550i;
import java.io.File;
import q4.InterfaceC0958a;
import r4.AbstractC0983h;

/* JADX INFO: loaded from: classes.dex */
public final /* synthetic */ class T implements InterfaceC0958a {

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

    /* JADX INFO: renamed from: l, reason: collision with root package name */
    public final /* synthetic */ Object f3084l;

    public /* synthetic */ T(int i, Object obj) {
        this.f3083k = i;
        this.f3084l = obj;
    }

    @Override // q4.InterfaceC0958a
    public final Object invoke() {
        e5.h hVar;
        switch (this.f3083k) {
            case 0:
                File file = (File) this.f3084l;
                synchronized (U.f3086d) {
                    U.f3085c.remove(file.getAbsolutePath());
                }
                return C0550i.f6143a;
            case 1:
                File file2 = (File) ((A4.f) this.f3084l).invoke();
                String name = file2.getName();
                AbstractC0983h.d("getName(...)", name);
                if (A4.i.a0(name, "").equals("preferences_pb")) {
                    File absoluteFile = file2.getAbsoluteFile();
                    AbstractC0983h.d("getAbsoluteFile(...)", absoluteFile);
                    return absoluteFile;
                }
                throw new IllegalStateException(("File extension for file: " + file2 + " does not match required extension for Preferences file: preferences_pb").toString());
            default:
                e5.n nVar = (e5.n) this.f3084l;
                if (nVar.f6307n && (hVar = nVar.f6299e) != null) {
                    hVar.a();
                }
                return C0550i.f6143a;
        }
    }
}
