package Q4;

import W.C0335b;
import a0.C0388b;
import android.app.Application;
import android.os.Build;
import android.os.Process;
import android.util.Log;
import com.google.firebase.sessions.FirebaseSessionsRegistrar;
import n4.u0;

/* JADX INFO: renamed from: Q4.q, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C0270q extends P6.h implements O6.l {

    /* JADX INFO: renamed from: s, reason: collision with root package name */
    public static final C0270q f5812s = new C0270q(1, 0);

    /* JADX INFO: renamed from: t, reason: collision with root package name */
    public static final C0270q f5813t = new C0270q(1, 1);

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

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public /* synthetic */ C0270q(int i, int i5) {
        super(i);
        this.f5814r = i5;
    }

    @Override // O6.l
    public final Object b(Object obj) {
        String strB;
        String strB2;
        switch (this.f5814r) {
            case u0.f15495q /* 0 */:
                C0335b c0335b = (C0335b) obj;
                P6.g.e(c0335b, "ex");
                StringBuilder sb = new StringBuilder("CorruptionException in settings DataStore in ");
                int i = Build.VERSION.SDK_INT;
                if (i > 33) {
                    strB = Process.myProcessName();
                    P6.g.d(strB, "myProcessName()");
                } else if ((i < 28 || (strB = Application.getProcessName()) == null) && (strB = T2.b.b()) == null) {
                    strB = "";
                }
                sb.append(strB);
                sb.append('.');
                Log.w(FirebaseSessionsRegistrar.TAG, sb.toString(), c0335b);
                break;
            default:
                C0335b c0335b2 = (C0335b) obj;
                P6.g.e(c0335b2, "ex");
                StringBuilder sb2 = new StringBuilder("CorruptionException in sessions DataStore in ");
                int i5 = Build.VERSION.SDK_INT;
                if (i5 > 33) {
                    strB2 = Process.myProcessName();
                    P6.g.d(strB2, "myProcessName()");
                } else if ((i5 < 28 || (strB2 = Application.getProcessName()) == null) && (strB2 = T2.b.b()) == null) {
                    strB2 = "";
                }
                sb2.append(strB2);
                sb2.append('.');
                Log.w(FirebaseSessionsRegistrar.TAG, sb2.toString(), c0335b2);
                break;
        }
        return new C0388b(true);
    }
}
