package androidx.datastore.core;

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

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

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

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final /* synthetic */ kotlinx.coroutines.flow.f f1929b;

    public /* synthetic */ l(kotlinx.coroutines.flow.f fVar, int i10) {
        this.f1928a = i10;
        this.f1929b = fVar;
    }

    @Override // kotlinx.coroutines.flow.f
    public final Object a(kotlinx.coroutines.flow.g gVar, Continuation continuation) {
        kd.e eVar = kd.e.f29109a;
        CoroutineSingletons coroutineSingletons = CoroutineSingletons.f29226a;
        int i10 = this.f1928a;
        kotlinx.coroutines.flow.f fVar = this.f1929b;
        switch (i10) {
            case 0:
                Object objA = fVar.a(new k(gVar), continuation);
                return objA == coroutineSingletons ? objA : eVar;
            default:
                Object objA2 = fVar.a(new io.flutter.plugins.sharedpreferences.r(gVar), continuation);
                return objA2 == coroutineSingletons ? objA2 : eVar;
        }
    }
}
