package b2;

import C4.j;
import V4.E;
import Y4.a0;
import androidx.compose.runtime.ProduceStateScope;
import androidx.lifecycle.EnumC1108q;
import androidx.lifecycle.P;
import androidx.lifecycle.r;
import m3.AbstractC2467b;
import w4.C3137A;

/* JADX INFO: renamed from: b2.d, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C1192d extends j implements J4.e {

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

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

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final /* synthetic */ r f13242c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final /* synthetic */ EnumC1108q f13243d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public final /* synthetic */ A4.j f13244e;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public final /* synthetic */ a0 f13245f;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public C1192d(r rVar, EnumC1108q enumC1108q, A4.j jVar, a0 a0Var, A4.d dVar) {
        super(2, dVar);
        this.f13242c = rVar;
        this.f13243d = enumC1108q;
        this.f13244e = jVar;
        this.f13245f = a0Var;
    }

    @Override // C4.a
    public final A4.d create(Object obj, A4.d dVar) {
        C1192d c1192d = new C1192d(this.f13242c, this.f13243d, this.f13244e, this.f13245f, dVar);
        c1192d.f13241b = obj;
        return c1192d;
    }

    @Override // J4.e
    public final Object invoke(Object obj, Object obj2) {
        return ((C1192d) create((ProduceStateScope) obj, (A4.d) obj2)).invokeSuspend(C3137A.f25453a);
    }

    @Override // C4.a
    public final Object invokeSuspend(Object obj) {
        Object objK;
        B4.a aVar = B4.a.f492a;
        int i6 = this.f13240a;
        C3137A c3137a = C3137A.f25453a;
        if (i6 != 0) {
            if (i6 != 1) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            AbstractC2467b.l(obj);
            return c3137a;
        }
        AbstractC2467b.l(obj);
        C1191c c1191c = new C1191c(this.f13244e, this.f13245f, (ProduceStateScope) this.f13241b, null);
        this.f13240a = 1;
        EnumC1108q enumC1108q = EnumC1108q.f12181b;
        EnumC1108q enumC1108q2 = this.f13243d;
        if (enumC1108q2 == enumC1108q) {
            throw new IllegalArgumentException("repeatOnLifecycle cannot start work with the INITIALIZED lifecycle state.");
        }
        r rVar = this.f13242c;
        if (rVar.getCurrentState() == EnumC1108q.f12180a || (objK = E.k(new P(rVar, enumC1108q2, c1191c, null), this)) != aVar) {
            objK = c3137a;
        }
        return objK == aVar ? aVar : c3137a;
    }
}
