package S1;

import kotlin.jvm.internal.o;
import m3.AbstractC2467b;
import w4.C3137A;

/* JADX INFO: loaded from: classes.dex */
public final class c extends C4.j implements J4.e {

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

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

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final /* synthetic */ C4.j f6139c;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    /* JADX WARN: Multi-variable type inference failed */
    public c(J4.e eVar, A4.d dVar) {
        super(2, dVar);
        this.f6139c = (C4.j) eVar;
    }

    /* JADX WARN: Type inference failed for: r1v0, types: [C4.j, J4.e] */
    @Override // C4.a
    public final A4.d create(Object obj, A4.d dVar) {
        c cVar = new c(this.f6139c, dVar);
        cVar.f6138b = obj;
        return cVar;
    }

    @Override // J4.e
    public final Object invoke(Object obj, Object obj2) {
        return ((c) create((g) obj, (A4.d) obj2)).invokeSuspend(C3137A.f25453a);
    }

    /* JADX WARN: Type inference failed for: r1v1, types: [C4.j, J4.e] */
    @Override // C4.a
    public final Object invokeSuspend(Object obj) {
        B4.a aVar = B4.a.f492a;
        int i6 = this.f6137a;
        if (i6 == 0) {
            AbstractC2467b.l(obj);
            g gVar = (g) this.f6138b;
            this.f6137a = 1;
            obj = this.f6139c.invoke(gVar, this);
            if (obj == aVar) {
                return aVar;
            }
        } else {
            if (i6 != 1) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            AbstractC2467b.l(obj);
        }
        g gVar2 = (g) obj;
        o.f(gVar2, "null cannot be cast to non-null type androidx.datastore.preferences.core.MutablePreferences");
        ((b) gVar2).f6136b.f5866a.set(true);
        return gVar2;
    }
}
