package io.flutter.plugins.sharedpreferences;

import android.content.Context;
import g7.z;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
import kotlin.Metadata;
import kotlin.coroutines.Continuation;
import kotlin.coroutines.EmptyCoroutineContext;
import kotlin.coroutines.intrinsics.CoroutineSingletons;
import kotlin.coroutines.jvm.internal.SpillingKt;
import kotlin.jvm.internal.Ref$ObjectRef;
import kotlin.jvm.internal.SourceDebugExtension;

/* JADX INFO: renamed from: io.flutter.plugins.sharedpreferences.s, reason: from Kotlin metadata */
/* JADX INFO: loaded from: classes.dex */
@Metadata(d1 = {"\u0000\u0084\u0001\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0010\t\n\u0000\n\u0002\u0010\u0006\n\u0002\b\u0002\n\u0002\u0010 \n\u0002\b\u0003\n\u0002\u0010$\n\u0002\u0010\u0000\n\u0002\b\b\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0010\"\n\u0002\u0018\u0002\n\u0002\b\u0004\u0018\u00002\u00020\u00012\u00020\u0002B\u0007¢\u0006\u0004\b\u0003\u0010\u0004B\u0011\b\u0017\u0012\u0006\u0010\u0005\u001a\u00020\u0006¢\u0006\u0004\b\u0003\u0010\u0007J\u0018\u0010\f\u001a\u00020\r2\u0006\u0010\u000e\u001a\u00020\u000f2\u0006\u0010\b\u001a\u00020\tH\u0002J\u0010\u0010\u0010\u001a\u00020\r2\u0006\u0010\u0011\u001a\u00020\u0012H\u0016J\u0010\u0010\u0013\u001a\u00020\r2\u0006\u0010\u0011\u001a\u00020\u0012H\u0016J \u0010\u0014\u001a\u00020\r2\u0006\u0010\u0015\u001a\u00020\u00162\u0006\u0010\u0017\u001a\u00020\u00182\u0006\u0010\u0019\u001a\u00020\u001aH\u0016J \u0010\u001b\u001a\u00020\r2\u0006\u0010\u0015\u001a\u00020\u00162\u0006\u0010\u0017\u001a\u00020\u00162\u0006\u0010\u0019\u001a\u00020\u001aH\u0016J\u001e\u0010\u001c\u001a\u00020\r2\u0006\u0010\u0015\u001a\u00020\u00162\u0006\u0010\u0017\u001a\u00020\u0016H\u0082@¢\u0006\u0002\u0010\u001dJ \u0010\u001e\u001a\u00020\r2\u0006\u0010\u0015\u001a\u00020\u00162\u0006\u0010\u0017\u001a\u00020\u001f2\u0006\u0010\u0019\u001a\u00020\u001aH\u0016J \u0010 \u001a\u00020\r2\u0006\u0010\u0015\u001a\u00020\u00162\u0006\u0010\u0017\u001a\u00020!2\u0006\u0010\u0019\u001a\u00020\u001aH\u0016J \u0010\"\u001a\u00020\r2\u0006\u0010\u0015\u001a\u00020\u00162\u0006\u0010\u0017\u001a\u00020\u00162\u0006\u0010\u0019\u001a\u00020\u001aH\u0016J&\u0010#\u001a\u00020\r2\u0006\u0010\u0015\u001a\u00020\u00162\f\u0010\u0017\u001a\b\u0012\u0004\u0012\u00020\u00160$2\u0006\u0010\u0019\u001a\u00020\u001aH\u0017J \u0010%\u001a\u00020\r2\u000e\u0010&\u001a\n\u0012\u0004\u0012\u00020\u0016\u0018\u00010$2\u0006\u0010\u0019\u001a\u00020\u001aH\u0016J,\u0010'\u001a\u000e\u0012\u0004\u0012\u00020\u0016\u0012\u0004\u0012\u00020)0(2\u000e\u0010&\u001a\n\u0012\u0004\u0012\u00020\u0016\u0018\u00010$2\u0006\u0010\u0019\u001a\u00020\u001aH\u0016J\u001f\u0010*\u001a\u0004\u0018\u00010\u001f2\u0006\u0010\u0015\u001a\u00020\u00162\u0006\u0010\u0019\u001a\u00020\u001aH\u0016¢\u0006\u0002\u0010+J\u001f\u0010,\u001a\u0004\u0018\u00010\u00182\u0006\u0010\u0015\u001a\u00020\u00162\u0006\u0010\u0019\u001a\u00020\u001aH\u0016¢\u0006\u0002\u0010-J\u001f\u0010.\u001a\u0004\u0018\u00010!2\u0006\u0010\u0015\u001a\u00020\u00162\u0006\u0010\u0019\u001a\u00020\u001aH\u0016¢\u0006\u0002\u0010/J\u001a\u00100\u001a\u0004\u0018\u00010\u00162\u0006\u0010\u0015\u001a\u00020\u00162\u0006\u0010\u0019\u001a\u00020\u001aH\u0016J\u001a\u00101\u001a\u0004\u0018\u0001022\u0006\u0010\u0015\u001a\u00020\u00162\u0006\u0010\u0019\u001a\u00020\u001aH\u0016J \u00103\u001a\n\u0012\u0004\u0012\u00020\u0016\u0018\u00010$2\u0006\u0010\u0015\u001a\u00020\u00162\u0006\u0010\u0019\u001a\u00020\u001aH\u0016J&\u00104\u001a\b\u0012\u0004\u0012\u00020\u00160$2\u000e\u0010&\u001a\n\u0012\u0004\u0012\u00020\u0016\u0018\u00010$2\u0006\u0010\u0019\u001a\u00020\u001aH\u0016J*\u00105\u001a\u000e\u0012\u0004\u0012\u00020\u0016\u0012\u0004\u0012\u00020)0(2\u000e\u0010&\u001a\n\u0012\u0004\u0012\u00020\u0016\u0018\u00010$H\u0082@¢\u0006\u0002\u00106J\u001a\u00107\u001a\u000e\u0012\b\u0012\u0006\u0012\u0002\b\u000309\u0018\u000108H\u0082@¢\u0006\u0002\u0010:J\u001c\u0010;\u001a\u0004\u0018\u00010)2\n\u0010\u0015\u001a\u0006\u0012\u0002\b\u000309H\u0082@¢\u0006\u0002\u0010<R\u000e\u0010\b\u001a\u00020\tX\u0082.¢\u0006\u0002\n\u0000R\u0010\u0010\n\u001a\u0004\u0018\u00010\u000bX\u0082\u000e¢\u0006\u0002\n\u0000R\u000e\u0010\u0005\u001a\u00020\u0006X\u0082\u000e¢\u0006\u0002\n\u0000¨\u0006="}, d2 = {"Lio/flutter/plugins/sharedpreferences/SharedPreferencesPlugin;", "Lio/flutter/embedding/engine/plugins/FlutterPlugin;", "Lio/flutter/plugins/sharedpreferences/SharedPreferencesAsyncApi;", "<init>", "()V", "listEncoder", "Lio/flutter/plugins/sharedpreferences/SharedPreferencesListEncoder;", "(Lio/flutter/plugins/sharedpreferences/SharedPreferencesListEncoder;)V", "context", "Landroid/content/Context;", "backend", "Lio/flutter/plugins/sharedpreferences/SharedPreferencesBackend;", "setUp", "", "messenger", "Lio/flutter/plugin/common/BinaryMessenger;", "onAttachedToEngine", "binding", "Lio/flutter/embedding/engine/plugins/FlutterPlugin$FlutterPluginBinding;", "onDetachedFromEngine", "setBool", "key", "", "value", "", "options", "Lio/flutter/plugins/sharedpreferences/SharedPreferencesPigeonOptions;", "setString", "dataStoreSetString", "(Ljava/lang/String;Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "setInt", "", "setDouble", "", "setEncodedStringList", "setDeprecatedStringList", "", "clear", "allowList", "getAll", "", "", "getInt", "(Ljava/lang/String;Lio/flutter/plugins/sharedpreferences/SharedPreferencesPigeonOptions;)Ljava/lang/Long;", "getBool", "(Ljava/lang/String;Lio/flutter/plugins/sharedpreferences/SharedPreferencesPigeonOptions;)Ljava/lang/Boolean;", "getDouble", "(Ljava/lang/String;Lio/flutter/plugins/sharedpreferences/SharedPreferencesPigeonOptions;)Ljava/lang/Double;", "getString", "getStringList", "Lio/flutter/plugins/sharedpreferences/StringListResult;", "getPlatformEncodedStringList", "getKeys", "getPrefs", "(Ljava/util/List;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "readAllKeys", "", "Landroidx/datastore/preferences/core/Preferences$Key;", "(Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "getValueByKey", "(Landroidx/datastore/preferences/core/Preferences$Key;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "shared_preferences_android_release"}, k = 1, mv = {2, 2, 0}, xi = 48)
@SourceDebugExtension({"SMAP\nSharedPreferencesPlugin.kt\nKotlin\n*S Kotlin\n*F\n+ 1 SharedPreferencesPlugin.kt\nio/flutter/plugins/sharedpreferences/SharedPreferencesPlugin\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n+ 3 Transform.kt\nkotlinx/coroutines/flow/FlowKt__TransformKt\n+ 4 Emitters.kt\nkotlinx/coroutines/flow/FlowKt__EmittersKt\n+ 5 SafeCollector.common.kt\nkotlinx/coroutines/flow/internal/SafeCollector_commonKt\n*L\n1#1,520:1\n800#2,11:521\n1855#2,2:532\n53#3:534\n55#3:538\n53#3:539\n55#3:543\n50#4:535\n55#4:537\n50#4:540\n55#4:542\n107#5:536\n107#5:541\n*S KotlinDebug\n*F\n+ 1 SharedPreferencesPlugin.kt\nio/flutter/plugins/sharedpreferences/SharedPreferencesPlugin\n*L\n237#1:521,11\n257#1:532,2\n270#1:534\n270#1:538\n275#1:539\n275#1:543\n270#1:535\n270#1:537\n275#1:540\n275#1:542\n270#1:536\n275#1:541\n*E\n"})
public final class SharedPreferencesPlugin implements ad.c, g {

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

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public h f28312b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final androidx.datastore.preferences.protobuf.h f28313c = new androidx.datastore.preferences.protobuf.h(1);

    public static final Object p(SharedPreferencesPlugin sharedPreferencesPlugin, String str, String str2, Continuation continuation) {
        sharedPreferencesPlugin.getClass();
        androidx.datastore.preferences.core.d dVarE = z.e(str);
        Context context = sharedPreferencesPlugin.f28311a;
        if (context != null) {
            Object objF = androidx.datastore.preferences.core.c.f(t.a(context), new SharedPreferencesPlugin$dataStoreSetString$2(dVarE, str2, null), continuation);
            return objF == CoroutineSingletons.f29226a ? objF : kd.e.f29109a;
        }
        nb.g.U("context");
        throw null;
    }

    @Override // io.flutter.plugins.sharedpreferences.g
    public final void a(String str, List list, j jVar) throws Throwable {
        hb.a.y0(EmptyCoroutineContext.f29221a, new SharedPreferencesPlugin$setDeprecatedStringList$1(this, str, defpackage.e.i("VGhpcyBpcyB0aGUgcHJlZml4IGZvciBhIGxpc3Qu", this.f28313c.b(list)), null));
    }

    @Override // io.flutter.plugins.sharedpreferences.g
    public final Map b(List list, j jVar) {
        return (Map) hb.a.y0(EmptyCoroutineContext.f29221a, new SharedPreferencesPlugin$getAll$1(this, list, null));
    }

    @Override // io.flutter.plugins.sharedpreferences.g
    public final List c(List list, j jVar) {
        return kotlin.collections.n.q1(((Map) hb.a.y0(EmptyCoroutineContext.f29221a, new SharedPreferencesPlugin$getKeys$prefs$1(this, list, null))).keySet());
    }

    /* JADX WARN: Multi-variable type inference failed */
    @Override // io.flutter.plugins.sharedpreferences.g
    public final Long d(String str, j jVar) throws Throwable {
        Ref$ObjectRef ref$ObjectRef = new Ref$ObjectRef();
        hb.a.y0(EmptyCoroutineContext.f29221a, new SharedPreferencesPlugin$getInt$1(str, this, ref$ObjectRef, null));
        return (Long) ref$ObjectRef.element;
    }

    @Override // io.flutter.plugins.sharedpreferences.g
    public final void e(String str, boolean z10, j jVar) throws Throwable {
        hb.a.y0(EmptyCoroutineContext.f29221a, new SharedPreferencesPlugin$setBool$1(str, this, z10, null));
    }

    @Override // io.flutter.plugins.sharedpreferences.g
    public final ArrayList f(String str, j jVar) throws Throwable {
        List list;
        String strK = k(str, jVar);
        ArrayList arrayList = null;
        if (strK != null && !kotlin.text.h.j0(strK, "VGhpcyBpcyB0aGUgcHJlZml4IGZvciBhIGxpc3Qu!", false) && kotlin.text.h.j0(strK, "VGhpcyBpcyB0aGUgcHJlZml4IGZvciBhIGxpc3Qu", false) && (list = (List) t.c(strK, this.f28313c)) != null) {
            arrayList = new ArrayList();
            for (Object obj : list) {
                if (obj instanceof String) {
                    arrayList.add(obj);
                }
            }
        }
        return arrayList;
    }

    /* JADX WARN: Multi-variable type inference failed */
    @Override // io.flutter.plugins.sharedpreferences.g
    public final Double g(String str, j jVar) throws Throwable {
        Ref$ObjectRef ref$ObjectRef = new Ref$ObjectRef();
        hb.a.y0(EmptyCoroutineContext.f29221a, new SharedPreferencesPlugin$getDouble$1(str, this, ref$ObjectRef, null));
        return (Double) ref$ObjectRef.element;
    }

    @Override // io.flutter.plugins.sharedpreferences.g
    public final v h(String str, j jVar) throws Throwable {
        String strK = k(str, jVar);
        if (strK == null) {
            return null;
        }
        if (kotlin.text.h.j0(strK, "VGhpcyBpcyB0aGUgcHJlZml4IGZvciBhIGxpc3Qu!", false)) {
            return new v(strK, StringListLookupResultType.f28276c);
        }
        return kotlin.text.h.j0(strK, "VGhpcyBpcyB0aGUgcHJlZml4IGZvciBhIGxpc3Qu", false) ? new v(null, StringListLookupResultType.f28275b) : new v(null, StringListLookupResultType.f28277d);
    }

    @Override // io.flutter.plugins.sharedpreferences.g
    public final void i(String str, String str2, j jVar) throws Throwable {
        hb.a.y0(EmptyCoroutineContext.f29221a, new SharedPreferencesPlugin$setString$1(this, str, str2, null));
    }

    /* JADX WARN: Multi-variable type inference failed */
    @Override // io.flutter.plugins.sharedpreferences.g
    public final Boolean j(String str, j jVar) throws Throwable {
        Ref$ObjectRef ref$ObjectRef = new Ref$ObjectRef();
        hb.a.y0(EmptyCoroutineContext.f29221a, new SharedPreferencesPlugin$getBool$1(str, this, ref$ObjectRef, null));
        return (Boolean) ref$ObjectRef.element;
    }

    /* JADX WARN: Multi-variable type inference failed */
    @Override // io.flutter.plugins.sharedpreferences.g
    public final String k(String str, j jVar) throws Throwable {
        Ref$ObjectRef ref$ObjectRef = new Ref$ObjectRef();
        hb.a.y0(EmptyCoroutineContext.f29221a, new SharedPreferencesPlugin$getString$1(str, this, ref$ObjectRef, null));
        return (String) ref$ObjectRef.element;
    }

    @Override // io.flutter.plugins.sharedpreferences.g
    public final void l(String str, long j10, j jVar) throws Throwable {
        hb.a.y0(EmptyCoroutineContext.f29221a, new SharedPreferencesPlugin$setInt$1(str, this, j10, null));
    }

    @Override // io.flutter.plugins.sharedpreferences.g
    public final void m(String str, double d10, j jVar) throws Throwable {
        hb.a.y0(EmptyCoroutineContext.f29221a, new SharedPreferencesPlugin$setDouble$1(str, this, d10, null));
    }

    @Override // io.flutter.plugins.sharedpreferences.g
    public final void n(String str, String str2, j jVar) throws Throwable {
        hb.a.y0(EmptyCoroutineContext.f29221a, new SharedPreferencesPlugin$setEncodedStringList$1(this, str, str2, null));
    }

    @Override // io.flutter.plugins.sharedpreferences.g
    public final void o(List list, j jVar) throws Throwable {
        hb.a.y0(EmptyCoroutineContext.f29221a, new SharedPreferencesPlugin$clear$1(this, list, null));
    }

    @Override // ad.c
    public final void onAttachedToEngine(ad.b bVar) {
        nb.g.i(bVar, "binding");
        ed.i iVar = bVar.f443b;
        nb.g.h(iVar, "getBinaryMessenger(...)");
        Context context = bVar.f442a;
        nb.g.h(context, "getApplicationContext(...)");
        this.f28311a = context;
        try {
            g.H.getClass();
            f.b(iVar, this, "data_store");
            androidx.datastore.preferences.protobuf.h hVar = this.f28313c;
            nb.g.i(hVar, "listEncoder");
            h hVar2 = new h();
            hVar2.f28288a = iVar;
            hVar2.f28289b = context;
            hVar2.f28290c = hVar;
            try {
                f.b(iVar, hVar2, "shared_preferences");
            } catch (Exception unused) {
            }
            this.f28312b = hVar2;
        } catch (Exception unused2) {
        }
        new a().onAttachedToEngine(bVar);
    }

    @Override // ad.c
    public final void onDetachedFromEngine(ad.b bVar) {
        nb.g.i(bVar, "binding");
        ed.i iVar = bVar.f443b;
        nb.g.h(iVar, "getBinaryMessenger(...)");
        g.H.getClass();
        f.b(iVar, null, "data_store");
        h hVar = this.f28312b;
        if (hVar != null) {
            f.b(hVar.f28288a, null, "shared_preferences");
        }
        this.f28312b = null;
    }

    /* JADX WARN: Removed duplicated region for block: B:31:0x00c1  */
    /* JADX WARN: Removed duplicated region for block: B:45:0x0133  */
    /* JADX WARN: Removed duplicated region for block: B:7:0x0017  */
    /* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:36:0x0108 -> B:37:0x010e). Please report as a decompilation issue!!! */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final Object s(List list, Continuation continuation) {
        SharedPreferencesPlugin$getPrefs$1 sharedPreferencesPlugin$getPrefs$1;
        Map linkedHashMap;
        List list2;
        Set set;
        Set set2;
        Map map;
        int i10;
        Set set3;
        List list3;
        Iterator it;
        SharedPreferencesPlugin sharedPreferencesPlugin;
        Iterable iterable;
        Object objC;
        if (continuation instanceof SharedPreferencesPlugin$getPrefs$1) {
            sharedPreferencesPlugin$getPrefs$1 = (SharedPreferencesPlugin$getPrefs$1) continuation;
            int i11 = sharedPreferencesPlugin$getPrefs$1.label;
            if ((i11 & Integer.MIN_VALUE) != 0) {
                sharedPreferencesPlugin$getPrefs$1.label = i11 - Integer.MIN_VALUE;
            } else {
                sharedPreferencesPlugin$getPrefs$1 = new SharedPreferencesPlugin$getPrefs$1(this, continuation);
            }
        }
        Object obj = sharedPreferencesPlugin$getPrefs$1.result;
        CoroutineSingletons coroutineSingletons = CoroutineSingletons.f29226a;
        int i12 = sharedPreferencesPlugin$getPrefs$1.label;
        int i13 = 0;
        if (i12 == 0) {
            kotlin.a.d(obj);
            Set setT1 = list != null ? kotlin.collections.n.t1(list) : null;
            linkedHashMap = new LinkedHashMap();
            sharedPreferencesPlugin$getPrefs$1.L$0 = SpillingKt.nullOutSpilledVariable(list);
            sharedPreferencesPlugin$getPrefs$1.L$1 = setT1;
            sharedPreferencesPlugin$getPrefs$1.L$2 = linkedHashMap;
            sharedPreferencesPlugin$getPrefs$1.label = 1;
            Context context = this.f28311a;
            if (context == null) {
                nb.g.U("context");
                throw null;
            }
            Object objG = kotlinx.coroutines.flow.h.g(new androidx.datastore.core.l(t.a(context).getData(), 1), sharedPreferencesPlugin$getPrefs$1);
            if (objG == coroutineSingletons) {
                return coroutineSingletons;
            }
            list2 = list;
            set = setT1;
            obj = objG;
        } else if (i12 == 1) {
            linkedHashMap = (Map) sharedPreferencesPlugin$getPrefs$1.L$2;
            set = (Set) sharedPreferencesPlugin$getPrefs$1.L$1;
            list2 = (List) sharedPreferencesPlugin$getPrefs$1.L$0;
            kotlin.a.d(obj);
        } else {
            if (i12 != 2) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            int i14 = sharedPreferencesPlugin$getPrefs$1.I$0;
            androidx.datastore.preferences.core.d dVar = (androidx.datastore.preferences.core.d) sharedPreferencesPlugin$getPrefs$1.L$7;
            it = (Iterator) sharedPreferencesPlugin$getPrefs$1.L$5;
            iterable = (Iterable) sharedPreferencesPlugin$getPrefs$1.L$4;
            set2 = (Set) sharedPreferencesPlugin$getPrefs$1.L$3;
            map = (Map) sharedPreferencesPlugin$getPrefs$1.L$2;
            set3 = (Set) sharedPreferencesPlugin$getPrefs$1.L$1;
            list3 = (List) sharedPreferencesPlugin$getPrefs$1.L$0;
            kotlin.a.d(obj);
            int i15 = i14;
            CoroutineSingletons coroutineSingletons2 = coroutineSingletons;
            SharedPreferencesPlugin$getPrefs$1 sharedPreferencesPlugin$getPrefs$12 = sharedPreferencesPlugin$getPrefs$1;
            SharedPreferencesPlugin sharedPreferencesPlugin2 = this;
            if (t.b(dVar.toString(), obj, set3) && (objC = t.c(obj, sharedPreferencesPlugin2.f28313c)) != null) {
                map.put(dVar.toString(), objC);
            }
            sharedPreferencesPlugin = sharedPreferencesPlugin2;
            sharedPreferencesPlugin$getPrefs$1 = sharedPreferencesPlugin$getPrefs$12;
            coroutineSingletons = coroutineSingletons2;
            i10 = i15;
            i13 = 0;
            if (it.hasNext()) {
                Object next = it.next();
                androidx.datastore.preferences.core.d dVar2 = (androidx.datastore.preferences.core.d) next;
                sharedPreferencesPlugin$getPrefs$1.L$0 = SpillingKt.nullOutSpilledVariable(list3);
                sharedPreferencesPlugin$getPrefs$1.L$1 = set3;
                sharedPreferencesPlugin$getPrefs$1.L$2 = map;
                sharedPreferencesPlugin$getPrefs$1.L$3 = SpillingKt.nullOutSpilledVariable(set2);
                sharedPreferencesPlugin$getPrefs$1.L$4 = SpillingKt.nullOutSpilledVariable(iterable);
                sharedPreferencesPlugin$getPrefs$1.L$5 = it;
                sharedPreferencesPlugin$getPrefs$1.L$6 = SpillingKt.nullOutSpilledVariable(next);
                sharedPreferencesPlugin$getPrefs$1.L$7 = dVar2;
                sharedPreferencesPlugin$getPrefs$1.I$0 = i10;
                sharedPreferencesPlugin$getPrefs$1.I$1 = i13;
                sharedPreferencesPlugin$getPrefs$1.label = 2;
                Context context2 = sharedPreferencesPlugin.f28311a;
                if (context2 == null) {
                    nb.g.U("context");
                    throw null;
                }
                Object objG2 = kotlinx.coroutines.flow.h.g(new l(t.a(context2).getData(), dVar2, 3), sharedPreferencesPlugin$getPrefs$1);
                if (objG2 == coroutineSingletons) {
                    return coroutineSingletons;
                }
                dVar = dVar2;
                i15 = i10;
                coroutineSingletons2 = coroutineSingletons;
                sharedPreferencesPlugin$getPrefs$12 = sharedPreferencesPlugin$getPrefs$1;
                sharedPreferencesPlugin2 = sharedPreferencesPlugin;
                obj = objG2;
                if (t.b(dVar.toString(), obj, set3)) {
                    map.put(dVar.toString(), objC);
                }
                sharedPreferencesPlugin = sharedPreferencesPlugin2;
                sharedPreferencesPlugin$getPrefs$1 = sharedPreferencesPlugin$getPrefs$12;
                coroutineSingletons = coroutineSingletons2;
                i10 = i15;
                i13 = 0;
                if (it.hasNext()) {
                    return map;
                }
            }
        }
        Set set4 = (Set) obj;
        if (set4 == null) {
            return linkedHashMap;
        }
        set2 = set4;
        map = linkedHashMap;
        i10 = 0;
        set3 = set;
        list3 = list2;
        it = set4.iterator();
        sharedPreferencesPlugin = this;
        iterable = set2;
        if (it.hasNext()) {
        }
    }
}
