package defpackage;

import defpackage.kg7;
import kotlin.Metadata;
import kotlin.coroutines.Continuation;
import kotlin.coroutines.jvm.internal.DebugMetadata;
import kotlin.coroutines.jvm.internal.SuspendLambda;

/* JADX INFO: renamed from: pn8, reason: from Kotlin metadata and case insensitive filesystem */
/* JADX INFO: loaded from: classes2.dex */
@Metadata(d1 = {"\u0000\u0010\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0004\u001a\u00020\u0003\"\u0004\b\u0000\u0010\u00002\u0006\u0010\u0002\u001a\u00020\u0001H\u008a@¢\u0006\u0004\b\u0004\u0010\u0005"}, d2 = {"T", "Llf6;", "preferences", "Le6a;", "<anonymous>", "(Llf6;)V"}, k = 3, mv = {1, 8, 0})
@DebugMetadata(c = "com.google.firebase.sessions.settings.SettingsCache$updateConfigValue$2", f = "SettingsCache.kt", i = {}, l = {}, m = "invokeSuspend", n = {}, s = {})
final class C0663pn8 extends SuspendLambda implements gr3<lf6, Continuation<? super e6a>, Object> {
    public /* synthetic */ Object a;
    public final /* synthetic */ Object b;
    public final /* synthetic */ kg7.a c;
    public final /* synthetic */ ln8 d;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public C0663pn8(Object obj, kg7.a aVar, ln8 ln8Var, Continuation continuation) {
        super(2, continuation);
        this.b = obj;
        this.c = aVar;
        this.d = ln8Var;
    }

    @Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
    public final Continuation create(Object obj, Continuation continuation) {
        C0663pn8 c0663pn8 = new C0663pn8(this.b, this.c, this.d, continuation);
        c0663pn8.a = obj;
        return c0663pn8;
    }

    @Override // defpackage.gr3
    public final Object invoke(Object obj, Object obj2) {
        C0663pn8 c0663pn8 = (C0663pn8) create((lf6) obj, (Continuation) obj2);
        e6a e6aVar = e6a.a;
        c0663pn8.invokeSuspend(e6aVar);
        return e6aVar;
    }

    @Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
    public final Object invokeSuspend(Object obj) {
        ck1 ck1Var = ck1.a;
        s38.b(obj);
        lf6 lf6Var = (lf6) this.a;
        kg7.a aVar = this.c;
        Object obj2 = this.b;
        if (obj2 != null) {
            lf6Var.getClass();
            cr4.g(aVar, "key");
            lf6Var.d(aVar, obj2);
        } else {
            lf6Var.getClass();
            cr4.g(aVar, "key");
            lf6Var.c();
            lf6Var.a.remove(aVar);
        }
        ln8.a(this.d, lf6Var);
        return e6a.a;
    }
}
