package M2;

import O1.C0564d;
import O1.C0583x;
import V2.AbstractC0696m3;
import V2.C0639b1;
import V2.C0659f1;
import V2.C0686k3;
import V2.C0691l3;
import V2.J2;
import V2.M3;
import V2.O2;
import V2.n3;
import V2.q3;
import V2.u3;
import V2.x3;
import Y4.InterfaceC0844j;
import b0.C1179a;
import h3.C2;
import h3.C2150m;
import h3.C2200u2;
import java.util.ArrayList;
import java.util.List;
import m3.AbstractC2467b;
import w4.C3137A;

/* JADX INFO: loaded from: classes.dex */
public final class F1 implements InterfaceC0844j {

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

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

    public /* synthetic */ F1(InterfaceC0844j interfaceC0844j, int i6) {
        this.f4264a = i6;
        this.f4265b = interfaceC0844j;
    }

    /* JADX WARN: Removed duplicated region for block: B:111:0x01ac  */
    /* JADX WARN: Removed duplicated region for block: B:28:0x0067  */
    /* JADX WARN: Removed duplicated region for block: B:368:0x063a  */
    /* JADX WARN: Removed duplicated region for block: B:385:0x0684  */
    /* JADX WARN: Removed duplicated region for block: B:402:0x06ce  */
    /* JADX WARN: Removed duplicated region for block: B:434:0x0738  */
    /* JADX WARN: Removed duplicated region for block: B:49:0x00be  */
    /* JADX WARN: Removed duplicated region for block: B:68:0x0107  */
    /* JADX WARN: Removed duplicated region for block: B:91:0x0166  */
    /* JADX WARN: Removed duplicated region for block: B:9:0x001e  */
    /* JADX WARN: Type inference failed for: r1v39, types: [java.lang.Iterable, java.lang.Object] */
    @Override // Y4.InterfaceC0844j
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final Object emit(Object obj, A4.d dVar) throws Throwable {
        E1 e12;
        C0583x c0583x;
        V2.M1 m12;
        V2.R1 r12;
        q3 q3Var;
        x3 x3Var;
        C1179a c1179a;
        C2150m c2150m;
        C2200u2 c2200u2;
        C2 c22;
        switch (this.f4264a) {
            case 0:
                if (dVar instanceof E1) {
                    e12 = (E1) dVar;
                    int i6 = e12.f4256b;
                    if ((i6 & Integer.MIN_VALUE) != 0) {
                        e12.f4256b = i6 - Integer.MIN_VALUE;
                    } else {
                        e12 = new E1(this, dVar);
                    }
                }
                Object obj2 = e12.f4255a;
                B4.a aVar = B4.a.f492a;
                int i7 = e12.f4256b;
                if (i7 == 0) {
                    AbstractC2467b.l(obj2);
                    if (((Boolean) obj).booleanValue()) {
                        e12.f4256b = 1;
                        if (this.f4265b.emit(obj, e12) == aVar) {
                            return aVar;
                        }
                    }
                } else {
                    if (i7 != 1) {
                        throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                    }
                    AbstractC2467b.l(obj2);
                }
                return C3137A.f25453a;
            case 1:
                if (dVar instanceof C0583x) {
                    c0583x = (C0583x) dVar;
                    int i8 = c0583x.f5462b;
                    if ((i8 & Integer.MIN_VALUE) != 0) {
                        c0583x.f5462b = i8 - Integer.MIN_VALUE;
                    } else {
                        c0583x = new C0583x(this, dVar);
                    }
                }
                Object obj3 = c0583x.f5461a;
                B4.a aVar2 = B4.a.f492a;
                int i9 = c0583x.f5462b;
                if (i9 == 0) {
                    AbstractC2467b.l(obj3);
                    O1.Z z6 = (O1.Z) obj;
                    if (z6 instanceof O1.S) {
                        throw ((O1.S) z6).f5370b;
                    }
                    if (!(z6 instanceof C0564d)) {
                        if (z6 instanceof O1.P ? true : z6 instanceof O1.b0) {
                            throw new IllegalStateException("This is a bug in DataStore. Please file a bug at: https://issuetracker.google.com/issues/new?component=907884&template=1466542");
                        }
                        throw new E3.v();
                    }
                    Object obj4 = ((C0564d) z6).f5397b;
                    c0583x.f5462b = 1;
                    if (this.f4265b.emit(obj4, c0583x) == aVar2) {
                        return aVar2;
                    }
                } else {
                    if (i9 != 1) {
                        throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                    }
                    AbstractC2467b.l(obj3);
                }
                return C3137A.f25453a;
            case 2:
                if (dVar instanceof V2.M1) {
                    m12 = (V2.M1) dVar;
                    int i10 = m12.f7434b;
                    if ((i10 & Integer.MIN_VALUE) != 0) {
                        m12.f7434b = i10 - Integer.MIN_VALUE;
                    } else {
                        m12 = new V2.M1(this, dVar);
                    }
                }
                Object obj5 = m12.f7433a;
                B4.a aVar3 = B4.a.f492a;
                int i11 = m12.f7434b;
                if (i11 == 0) {
                    AbstractC2467b.l(obj5);
                    Boolean boolValueOf = Boolean.valueOf(((n3) obj).f7972b.f7759c);
                    m12.f7434b = 1;
                    if (this.f4265b.emit(boolValueOf, m12) == aVar3) {
                        return aVar3;
                    }
                } else {
                    if (i11 != 1) {
                        throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                    }
                    AbstractC2467b.l(obj5);
                }
                return C3137A.f25453a;
            case 3:
                if (dVar instanceof V2.R1) {
                    r12 = (V2.R1) dVar;
                    int i12 = r12.f7511b;
                    if ((i12 & Integer.MIN_VALUE) != 0) {
                        r12.f7511b = i12 - Integer.MIN_VALUE;
                    } else {
                        r12 = new V2.R1(this, dVar);
                    }
                }
                Object obj6 = r12.f7510a;
                B4.a aVar4 = B4.a.f492a;
                int i13 = r12.f7511b;
                if (i13 == 0) {
                    AbstractC2467b.l(obj6);
                    Boolean boolValueOf2 = Boolean.valueOf(((n3) obj).f7972b.f7757a);
                    r12.f7511b = 1;
                    if (this.f4265b.emit(boolValueOf2, r12) == aVar4) {
                        return aVar4;
                    }
                } else {
                    if (i13 != 1) {
                        throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                    }
                    AbstractC2467b.l(obj6);
                }
                return C3137A.f25453a;
            case 4:
                if (dVar instanceof q3) {
                    q3Var = (q3) dVar;
                    int i14 = q3Var.f8024b;
                    if ((i14 & Integer.MIN_VALUE) != 0) {
                        q3Var.f8024b = i14 - Integer.MIN_VALUE;
                    } else {
                        q3Var = new q3(this, dVar);
                    }
                }
                Object obj7 = q3Var.f8023a;
                B4.a aVar5 = B4.a.f492a;
                int i15 = q3Var.f8024b;
                if (i15 == 0) {
                    AbstractC2467b.l(obj7);
                    S1.g gVar = (S1.g) obj;
                    n3 n3VarA = u3.a();
                    String language = (String) gVar.b(AbstractC0696m3.f7930a);
                    C0691l3 c0691l3 = n3VarA.f7971a;
                    if (language == null) {
                        language = c0691l3.f7886a;
                    }
                    String preferredLanguage = (String) gVar.b(AbstractC0696m3.f7932b);
                    if (preferredLanguage == null) {
                        preferredLanguage = c0691l3.f7887b;
                    }
                    String region = (String) gVar.b(AbstractC0696m3.f7934c);
                    if (region == null) {
                        region = c0691l3.f7888c;
                    }
                    c0691l3.getClass();
                    kotlin.jvm.internal.o.h(language, "language");
                    kotlin.jvm.internal.o.h(preferredLanguage, "preferredLanguage");
                    kotlin.jvm.internal.o.h(region, "region");
                    C0691l3 c0691l32 = new C0691l3(language, preferredLanguage, region);
                    Boolean bool = (Boolean) gVar.b(AbstractC0696m3.f7936d);
                    C0659f1 c0659f1 = n3VarA.f7972b;
                    boolean zBooleanValue = bool != null ? bool.booleanValue() : c0659f1.f7757a;
                    Boolean bool2 = (Boolean) gVar.b(AbstractC0696m3.f7938e);
                    boolean zBooleanValue2 = bool2 != null ? bool2.booleanValue() : c0659f1.f7758b;
                    Boolean bool3 = (Boolean) gVar.b(AbstractC0696m3.f7939f);
                    boolean zBooleanValue3 = bool3 != null ? bool3.booleanValue() : c0659f1.f7759c;
                    Boolean bool4 = (Boolean) gVar.b(AbstractC0696m3.f7940g);
                    boolean zBooleanValue4 = bool4 != null ? bool4.booleanValue() : c0659f1.f7760d;
                    c0659f1.getClass();
                    C0659f1 c0659f12 = new C0659f1(zBooleanValue, zBooleanValue2, zBooleanValue3, zBooleanValue4);
                    Boolean bool5 = (Boolean) gVar.b(AbstractC0696m3.f7941h);
                    O2 o22 = n3VarA.f7973c;
                    boolean zBooleanValue5 = bool5 != null ? bool5.booleanValue() : o22.f7466a;
                    o22.getClass();
                    O2 o23 = new O2(zBooleanValue5);
                    Integer num = (Integer) gVar.b(AbstractC0696m3.f7942i);
                    J2 j22 = n3VarA.f7974d;
                    long jIntValue = num != null ? ((long) num.intValue()) * 1073741824 : j22.f7378a;
                    Boolean bool6 = (Boolean) gVar.b(AbstractC0696m3.f7943j);
                    boolean zBooleanValue6 = bool6 != null ? bool6.booleanValue() : j22.f7379b;
                    Boolean bool7 = (Boolean) gVar.b(AbstractC0696m3.f7944k);
                    boolean zBooleanValue7 = bool7 != null ? bool7.booleanValue() : j22.f7380c;
                    Boolean bool8 = (Boolean) gVar.b(AbstractC0696m3.l);
                    boolean zBooleanValue8 = bool8 != null ? bool8.booleanValue() : j22.f7381d;
                    Boolean bool9 = (Boolean) gVar.b(AbstractC0696m3.f7945m);
                    boolean zBooleanValue9 = bool9 != null ? bool9.booleanValue() : j22.f7382e;
                    Boolean bool10 = (Boolean) gVar.b(AbstractC0696m3.f7946n);
                    boolean zBooleanValue10 = bool10 != null ? bool10.booleanValue() : j22.f7383f;
                    Boolean bool11 = (Boolean) gVar.b(AbstractC0696m3.f7947o);
                    boolean zBooleanValue11 = bool11 != null ? bool11.booleanValue() : j22.f7384g;
                    Boolean bool12 = (Boolean) gVar.b(AbstractC0696m3.f7948p);
                    boolean zBooleanValue12 = bool12 != null ? bool12.booleanValue() : j22.f7385h;
                    Boolean bool13 = (Boolean) gVar.b(AbstractC0696m3.f7949q);
                    boolean zBooleanValue13 = bool13 != null ? bool13.booleanValue() : j22.f7386i;
                    Boolean bool14 = (Boolean) gVar.b(AbstractC0696m3.f7950r);
                    boolean zBooleanValue14 = bool14 != null ? bool14.booleanValue() : j22.f7387j;
                    Boolean bool15 = (Boolean) gVar.b(AbstractC0696m3.f7951s);
                    boolean zBooleanValue15 = bool15 != null ? bool15.booleanValue() : j22.f7388k;
                    Boolean bool16 = (Boolean) gVar.b(AbstractC0696m3.f7952t);
                    boolean zBooleanValue16 = bool16 != null ? bool16.booleanValue() : j22.l;
                    Boolean bool17 = (Boolean) gVar.b(AbstractC0696m3.f7953u);
                    boolean zBooleanValue17 = bool17 != null ? bool17.booleanValue() : j22.f7389m;
                    Boolean bool18 = (Boolean) gVar.b(AbstractC0696m3.f7954v);
                    boolean zBooleanValue18 = bool18 != null ? bool18.booleanValue() : j22.f7390n;
                    Boolean bool19 = (Boolean) gVar.b(AbstractC0696m3.f7955w);
                    boolean zBooleanValue19 = bool19 != null ? bool19.booleanValue() : j22.f7391o;
                    Boolean bool20 = (Boolean) gVar.b(AbstractC0696m3.f7956x);
                    boolean zBooleanValue20 = bool20 != null ? bool20.booleanValue() : j22.f7392p;
                    Boolean bool21 = (Boolean) gVar.b(AbstractC0696m3.f7957y);
                    boolean zBooleanValue21 = bool21 != null ? bool21.booleanValue() : j22.f7393q;
                    Boolean bool22 = (Boolean) gVar.b(AbstractC0696m3.f7958z);
                    boolean zBooleanValue22 = bool22 != null ? bool22.booleanValue() : j22.f7394r;
                    Boolean bool23 = (Boolean) gVar.b(AbstractC0696m3.f7906A);
                    boolean zBooleanValue23 = bool23 != null ? bool23.booleanValue() : j22.f7395s;
                    j22.getClass();
                    J2 j23 = new J2(jIntValue, zBooleanValue6, zBooleanValue7, zBooleanValue8, zBooleanValue9, zBooleanValue10, zBooleanValue11, zBooleanValue12, zBooleanValue13, zBooleanValue14, zBooleanValue15, zBooleanValue16, zBooleanValue17, zBooleanValue18, zBooleanValue19, zBooleanValue20, zBooleanValue21, zBooleanValue22, zBooleanValue23);
                    Boolean bool24 = (Boolean) gVar.b(AbstractC0696m3.f7907B);
                    V2.O0 o02 = n3VarA.f7975e;
                    boolean zBooleanValue24 = bool24 != null ? bool24.booleanValue() : o02.f7460a;
                    Boolean bool25 = (Boolean) gVar.b(AbstractC0696m3.f7908C);
                    boolean zBooleanValue25 = bool25 != null ? bool25.booleanValue() : o02.f7461b;
                    Boolean bool26 = (Boolean) gVar.b(AbstractC0696m3.f7909D);
                    boolean zBooleanValue26 = bool26 != null ? bool26.booleanValue() : o02.f7462c;
                    Boolean bool27 = (Boolean) gVar.b(AbstractC0696m3.f7910E);
                    boolean zBooleanValue27 = bool27 != null ? bool27.booleanValue() : o02.f7463d;
                    o02.getClass();
                    V2.O0 o03 = new V2.O0(zBooleanValue24, zBooleanValue25, zBooleanValue26, zBooleanValue27);
                    Boolean bool28 = (Boolean) gVar.b(AbstractC0696m3.f7911F);
                    C0639b1 c0639b1 = n3VarA.f7976f;
                    boolean zBooleanValue28 = bool28 != null ? bool28.booleanValue() : c0639b1.f7699a;
                    Boolean bool29 = (Boolean) gVar.b(AbstractC0696m3.f7912G);
                    boolean zBooleanValue29 = bool29 != null ? bool29.booleanValue() : c0639b1.f7700b;
                    Boolean bool30 = (Boolean) gVar.b(AbstractC0696m3.f7913H);
                    boolean zBooleanValue30 = bool30 != null ? bool30.booleanValue() : c0639b1.f7701c;
                    Boolean bool31 = (Boolean) gVar.b(AbstractC0696m3.f7914I);
                    boolean zBooleanValue31 = bool31 != null ? bool31.booleanValue() : c0639b1.f7702d;
                    Boolean bool32 = (Boolean) gVar.b(AbstractC0696m3.f7915J);
                    boolean zBooleanValue32 = bool32 != null ? bool32.booleanValue() : c0639b1.f7703e;
                    if (((Boolean) gVar.b(AbstractC0696m3.f7916K)) == null) {
                        c0639b1.getClass();
                    }
                    c0639b1.getClass();
                    C0639b1 c0639b12 = new C0639b1(zBooleanValue28, zBooleanValue29, zBooleanValue30, zBooleanValue31, zBooleanValue32, false);
                    Boolean bool33 = (Boolean) gVar.b(AbstractC0696m3.f7917L);
                    M3 m32 = n3VarA.f7977g;
                    boolean zBooleanValue33 = bool33 != null ? bool33.booleanValue() : m32.f7436a;
                    Boolean bool34 = (Boolean) gVar.b(AbstractC0696m3.f7918M);
                    boolean zBooleanValue34 = bool34 != null ? bool34.booleanValue() : m32.f7437b;
                    Boolean bool35 = (Boolean) gVar.b(AbstractC0696m3.f7919N);
                    boolean zBooleanValue35 = bool35 != null ? bool35.booleanValue() : m32.f7438c;
                    Boolean bool36 = (Boolean) gVar.b(AbstractC0696m3.f7920O);
                    boolean zBooleanValue36 = bool36 != null ? bool36.booleanValue() : m32.f7439d;
                    Boolean bool37 = (Boolean) gVar.b(AbstractC0696m3.f7921P);
                    boolean zBooleanValue37 = bool37 != null ? bool37.booleanValue() : m32.f7440e;
                    Boolean bool38 = (Boolean) gVar.b(AbstractC0696m3.f7922Q);
                    boolean zBooleanValue38 = bool38 != null ? bool38.booleanValue() : m32.f7441f;
                    Boolean bool39 = (Boolean) gVar.b(AbstractC0696m3.f7923R);
                    boolean zBooleanValue39 = bool39 != null ? bool39.booleanValue() : m32.f7442g;
                    Boolean bool40 = (Boolean) gVar.b(AbstractC0696m3.f7924S);
                    boolean zBooleanValue40 = bool40 != null ? bool40.booleanValue() : m32.f7443h;
                    String str = (String) gVar.b(AbstractC0696m3.f7925T);
                    if (str == null) {
                        str = m32.f7444i;
                    }
                    String str2 = str;
                    String str3 = (String) gVar.b(AbstractC0696m3.f7926U);
                    if (str3 == null) {
                        str3 = m32.f7445j;
                    }
                    String str4 = str3;
                    Integer num2 = (Integer) gVar.b(AbstractC0696m3.f7927V);
                    int iIntValue = num2 != null ? num2.intValue() : m32.f7446k;
                    String str5 = (String) gVar.b(AbstractC0696m3.f7928W);
                    if (str5 == null) {
                        str5 = m32.l;
                    }
                    String str6 = str5;
                    String str7 = (String) gVar.b(AbstractC0696m3.X);
                    if (str7 == null) {
                        str7 = m32.f7447m;
                    }
                    String str8 = str7;
                    String str9 = (String) gVar.b(AbstractC0696m3.Y);
                    if (str9 == null) {
                        str9 = m32.f7448n;
                    }
                    String str10 = str9;
                    String str11 = (String) gVar.b(AbstractC0696m3.f7929Z);
                    if (str11 == null) {
                        str11 = m32.f7449o;
                    }
                    m32.getClass();
                    M3 m3A = M3.a(zBooleanValue33, zBooleanValue34, zBooleanValue35, zBooleanValue36, zBooleanValue37, zBooleanValue38, zBooleanValue39, zBooleanValue40, str2, str4, iIntValue, str6, str8, str10, str11);
                    Boolean bool41 = (Boolean) gVar.b(AbstractC0696m3.f7931a0);
                    C0686k3 c0686k3 = n3VarA.f7978h;
                    boolean zBooleanValue41 = bool41 != null ? bool41.booleanValue() : c0686k3.f7862a;
                    c0686k3.getClass();
                    C0686k3 c0686k32 = new C0686k3(zBooleanValue41);
                    Integer num3 = (Integer) gVar.b(AbstractC0696m3.f7933b0);
                    n3 n3Var = new n3(c0691l32, c0659f12, o23, j23, o03, c0639b12, m3A, c0686k32, L4.a.v(num3 != null ? num3.intValue() : n3VarA.f7979i, 0, 14));
                    q3Var.f8024b = 1;
                    if (this.f4265b.emit(n3Var, q3Var) == aVar5) {
                        return aVar5;
                    }
                } else {
                    if (i15 != 1) {
                        throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                    }
                    AbstractC2467b.l(obj7);
                }
                return C3137A.f25453a;
            case 5:
                if (dVar instanceof x3) {
                    x3Var = (x3) dVar;
                    int i16 = x3Var.f8167b;
                    if ((i16 & Integer.MIN_VALUE) != 0) {
                        x3Var.f8167b = i16 - Integer.MIN_VALUE;
                    } else {
                        x3Var = new x3(this, dVar);
                    }
                }
                Object obj8 = x3Var.f8166a;
                B4.a aVar6 = B4.a.f492a;
                int i17 = x3Var.f8167b;
                if (i17 == 0) {
                    AbstractC2467b.l(obj8);
                    String str12 = (String) obj;
                    if (str12 == null) {
                        str12 = "main";
                    }
                    x3Var.f8167b = 1;
                    if (this.f4265b.emit(str12, x3Var) == aVar6) {
                        return aVar6;
                    }
                } else {
                    if (i17 != 1) {
                        throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                    }
                    AbstractC2467b.l(obj8);
                }
                return C3137A.f25453a;
            case 6:
                if (dVar instanceof C1179a) {
                    c1179a = (C1179a) dVar;
                    int i18 = c1179a.f13210b;
                    if ((i18 & Integer.MIN_VALUE) != 0) {
                        c1179a.f13210b = i18 - Integer.MIN_VALUE;
                    } else {
                        c1179a = new C1179a(this, dVar);
                    }
                }
                Object obj9 = c1179a.f13209a;
                B4.a aVar7 = B4.a.f492a;
                int i19 = c1179a.f13210b;
                if (i19 == 0) {
                    AbstractC2467b.l(obj9);
                    ?? r13 = ((B2.l) obj).f483a;
                    ArrayList arrayList = new ArrayList();
                    for (Object obj10 : r13) {
                        if (obj10 instanceof B2.c) {
                            arrayList.add(obj10);
                        }
                    }
                    c1179a.f13210b = 1;
                    if (this.f4265b.emit(arrayList, c1179a) == aVar7) {
                        return aVar7;
                    }
                } else {
                    if (i19 != 1) {
                        throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                    }
                    AbstractC2467b.l(obj9);
                }
                return C3137A.f25453a;
            case 7:
                if (dVar instanceof C2150m) {
                    c2150m = (C2150m) dVar;
                    int i20 = c2150m.f18157b;
                    if ((i20 & Integer.MIN_VALUE) != 0) {
                        c2150m.f18157b = i20 - Integer.MIN_VALUE;
                    } else {
                        c2150m = new C2150m(this, dVar);
                    }
                }
                Object obj11 = c2150m.f18156a;
                B4.a aVar8 = B4.a.f492a;
                int i21 = c2150m.f18157b;
                if (i21 == 0) {
                    AbstractC2467b.l(obj11);
                    if (((Boolean) obj).booleanValue()) {
                        c2150m.f18157b = 1;
                        if (this.f4265b.emit(obj, c2150m) == aVar8) {
                            return aVar8;
                        }
                    }
                } else {
                    if (i21 != 1) {
                        throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                    }
                    AbstractC2467b.l(obj11);
                }
                return C3137A.f25453a;
            case 8:
                if (dVar instanceof C2200u2) {
                    c2200u2 = (C2200u2) dVar;
                    int i22 = c2200u2.f18587b;
                    if ((i22 & Integer.MIN_VALUE) != 0) {
                        c2200u2.f18587b = i22 - Integer.MIN_VALUE;
                    } else {
                        c2200u2 = new C2200u2(this, dVar);
                    }
                }
                Object obj12 = c2200u2.f18586a;
                B4.a aVar9 = B4.a.f492a;
                int i23 = c2200u2.f18587b;
                if (i23 == 0) {
                    AbstractC2467b.l(obj12);
                    w4.k kVar = (w4.k) obj;
                    List list = (List) kVar.f25469a;
                    if (!((Boolean) kVar.f25470b).booleanValue() || !list.isEmpty()) {
                        c2200u2.f18587b = 1;
                        if (this.f4265b.emit(obj, c2200u2) == aVar9) {
                            return aVar9;
                        }
                    }
                } else {
                    if (i23 != 1) {
                        throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                    }
                    AbstractC2467b.l(obj12);
                }
                return C3137A.f25453a;
            default:
                if (dVar instanceof C2) {
                    c22 = (C2) dVar;
                    int i24 = c22.f16732b;
                    if ((i24 & Integer.MIN_VALUE) != 0) {
                        c22.f16732b = i24 - Integer.MIN_VALUE;
                    } else {
                        c22 = new C2(this, dVar);
                    }
                }
                Object obj13 = c22.f16731a;
                B4.a aVar10 = B4.a.f492a;
                int i25 = c22.f16732b;
                if (i25 == 0) {
                    AbstractC2467b.l(obj13);
                    if (((Boolean) obj).booleanValue()) {
                        c22.f16732b = 1;
                        if (this.f4265b.emit(obj, c22) == aVar10) {
                            return aVar10;
                        }
                    }
                } else {
                    if (i25 != 1) {
                        throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                    }
                    AbstractC2467b.l(obj13);
                }
                return C3137A.f25453a;
        }
    }
}
