package Q4;

import a0.C0388b;
import android.util.Log;
import c7.InterfaceC0597e;
import com.google.android.gms.internal.measurement.C1;

/* JADX INFO: loaded from: classes.dex */
public final class F extends G6.i implements O6.q {

    /* JADX INFO: renamed from: u, reason: collision with root package name */
    public int f5654u;

    /* JADX INFO: renamed from: v, reason: collision with root package name */
    public /* synthetic */ InterfaceC0597e f5655v;

    /* JADX INFO: renamed from: w, reason: collision with root package name */
    public /* synthetic */ Throwable f5656w;

    @Override // O6.q
    public final Object j(Object obj, Object obj2, Object obj3) {
        F f3 = new F(3, (E6.d) obj3);
        f3.f5655v = (InterfaceC0597e) obj;
        f3.f5656w = (Throwable) obj2;
        return f3.p(A6.n.f457a);
    }

    @Override // G6.a
    public final Object p(Object obj) throws Throwable {
        F6.a aVar = F6.a.f2580q;
        int i = this.f5654u;
        if (i == 0) {
            C1.N(obj);
            InterfaceC0597e interfaceC0597e = this.f5655v;
            Log.e("FirebaseSessionsRepo", "Error reading stored session data.", this.f5656w);
            C0388b c0388b = new C0388b(true);
            this.f5655v = null;
            this.f5654u = 1;
            if (interfaceC0597e.l(c0388b, this) == aVar) {
                return aVar;
            }
        } else {
            if (i != 1) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            C1.N(obj);
        }
        return A6.n.f457a;
    }
}
