package a0;

import B6.t;
import d3.C;
import java.io.File;
import java.util.List;
import javax.net.ssl.SSLPeerUnverifiedException;
import n4.u0;
import x7.x;

/* JADX INFO: renamed from: a0.e, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C0391e extends P6.h implements O6.a {

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

    /* JADX INFO: renamed from: s, reason: collision with root package name */
    public final /* synthetic */ P6.h f7585s;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    /* JADX WARN: Multi-variable type inference failed */
    public C0391e(int i, O6.a aVar) {
        super(0);
        this.f7584r = i;
        switch (i) {
            case 1:
                this.f7585s = (P6.h) aVar;
                super(0);
                break;
            default:
                this.f7585s = (P6.h) aVar;
                break;
        }
    }

    /* JADX WARN: Type inference failed for: r0v0, types: [O6.a, P6.h] */
    @Override // O6.a
    public final Object a() {
        ?? r02 = this.f7585s;
        switch (this.f7584r) {
            case u0.f15495q /* 0 */:
                File file = (File) r02.a();
                P6.g.e(file, "<this>");
                String name = file.getName();
                P6.g.d(name, "getName(...)");
                if (X6.e.g0(name, '.', "").equals("preferences_pb")) {
                    String str = x.f18797r;
                    File absoluteFile = file.getAbsoluteFile();
                    P6.g.d(absoluteFile, "file.absoluteFile");
                    return C.m(absoluteFile);
                }
                throw new IllegalStateException(("File extension for file: " + file + " does not match required extension for Preferences file: preferences_pb").toString());
            default:
                try {
                    return (List) r02.a();
                } catch (SSLPeerUnverifiedException unused) {
                    return t.f1032q;
                }
        }
    }
}
