package a0;

import A6.n;
import O6.p;
import com.google.android.gms.internal.measurement.C1;

/* JADX INFO: renamed from: a0.c, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C0389c extends G6.i implements p {

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

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

    /* JADX INFO: renamed from: w, reason: collision with root package name */
    public final /* synthetic */ G6.i f7582w;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    /* JADX WARN: Multi-variable type inference failed */
    public C0389c(p pVar, E6.d dVar) {
        super(2, dVar);
        this.f7582w = (G6.i) pVar;
    }

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

    /* JADX WARN: Type inference failed for: r1v0, types: [G6.i, O6.p] */
    @Override // G6.a
    public final E6.d m(E6.d dVar, Object obj) {
        C0389c c0389c = new C0389c(this.f7582w, dVar);
        c0389c.f7581v = obj;
        return c0389c;
    }

    /* JADX WARN: Type inference failed for: r1v1, types: [G6.i, O6.p] */
    @Override // G6.a
    public final Object p(Object obj) throws Throwable {
        F6.a aVar = F6.a.f2580q;
        int i = this.f7580u;
        if (i == 0) {
            C1.N(obj);
            C0388b c0388b = (C0388b) this.f7581v;
            this.f7580u = 1;
            obj = this.f7582w.k(c0388b, this);
            if (obj == aVar) {
                return aVar;
            }
        } else {
            if (i != 1) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            C1.N(obj);
        }
        C0388b c0388b2 = (C0388b) obj;
        P6.g.c(c0388b2, "null cannot be cast to non-null type androidx.datastore.preferences.core.MutablePreferences");
        c0388b2.f7579b.f7253a.set(true);
        return c0388b2;
    }
}
