package Q4;

import W.InterfaceC0341h;
import Z6.InterfaceC0382w;
import a0.C0395i;
import android.util.Log;
import com.google.android.gms.internal.measurement.C1;
import java.io.IOException;

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

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

    /* JADX INFO: renamed from: v, reason: collision with root package name */
    public final /* synthetic */ K f5666v;

    /* JADX INFO: renamed from: w, reason: collision with root package name */
    public final /* synthetic */ String f5667w;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public J(K k8, String str, E6.d dVar) {
        super(2, dVar);
        this.f5666v = k8;
        this.f5667w = str;
    }

    @Override // O6.p
    public final Object k(Object obj, Object obj2) {
        return ((J) m((E6.d) obj2, (InterfaceC0382w) obj)).p(A6.n.f457a);
    }

    @Override // G6.a
    public final E6.d m(E6.d dVar, Object obj) {
        return new J(this.f5666v, this.f5667w, dVar);
    }

    @Override // G6.a
    public final Object p(Object obj) throws Throwable {
        F6.a aVar = F6.a.f2580q;
        int i = this.f5665u;
        try {
            if (i == 0) {
                C1.N(obj);
                InterfaceC0341h interfaceC0341h = this.f5666v.f5669b;
                I i5 = new I(this.f5667w, null);
                this.f5665u = 1;
                if (interfaceC0341h.b(new C0395i(i5, null), this) == aVar) {
                    return aVar;
                }
            } else {
                if (i != 1) {
                    throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                }
                C1.N(obj);
            }
        } catch (IOException e8) {
            Log.w("FirebaseSessionsRepo", "Failed to update session Id: " + e8);
        }
        return A6.n.f457a;
    }
}
