package androidx.datastore.core;

import kotlin.coroutines.Continuation;
import kotlin.coroutines.intrinsics.CoroutineSingletons;

/* JADX INFO: loaded from: classes.dex */
public final class m implements kotlinx.coroutines.flow.g {

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

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

    public /* synthetic */ m(Object obj, int i10) {
        this.f1930a = i10;
        this.f1931b = obj;
    }

    @Override // kotlinx.coroutines.flow.g
    public final Object c(Object obj, Continuation continuation) {
        Object objE;
        kd.e eVar = kd.e.f29109a;
        int i10 = this.f1930a;
        Object obj2 = this.f1931b;
        switch (i10) {
            case 0:
                n nVar = (n) obj2;
                return ((nVar.f1939h.a() instanceof t) || (objE = n.e(nVar, true, continuation)) != CoroutineSingletons.f29226a) ? eVar : objE;
            default:
                ((p0.a) obj2).accept(obj);
                return eVar;
        }
    }
}
