package d3;

import android.content.Context;
import androidx.compose.runtime.MutableState;
import j$.time.format.DateTimeFormatter;
import java.util.List;
import m3.AbstractC2467b;
import w4.C3137A;

/* JADX INFO: loaded from: classes.dex */
public final class c2 extends C4.j implements J4.e {

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

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

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

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

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public final /* synthetic */ Context f15573e;

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

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public c2(String str, MutableState mutableState, Context context, MutableState mutableState2, A4.d dVar) {
        super(2, dVar);
        this.f15571c = str;
        this.f15572d = mutableState;
        this.f15573e = context;
        this.f15574f = mutableState2;
    }

    @Override // C4.a
    public final A4.d create(Object obj, A4.d dVar) {
        return new c2(this.f15571c, this.f15572d, this.f15573e, this.f15574f, dVar);
    }

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

    @Override // C4.a
    public final Object invokeSuspend(Object obj) {
        MutableState mutableState;
        B4.a aVar = B4.a.f492a;
        int i6 = this.f15570b;
        C3137A c3137a = C3137A.f25453a;
        if (i6 == 0) {
            AbstractC2467b.l(obj);
            String str = this.f15571c;
            if (str == null || S4.p.Q0(str)) {
                str = null;
            }
            MutableState mutableState2 = this.f15572d;
            if (str == null) {
                x4.y yVar = x4.y.f26065a;
                DateTimeFormatter dateTimeFormatter = v2.f16084a;
                mutableState2.setValue(yVar);
                return c3137a;
            }
            c5.e eVar = V4.N.f8259a;
            c5.d dVar = c5.d.f13466b;
            b2 b2Var = new b2(str, this.f15573e, this.f15574f, null);
            this.f15569a = mutableState2;
            this.f15570b = 1;
            obj = V4.E.H(dVar, b2Var, this);
            if (obj == aVar) {
                return aVar;
            }
            mutableState = mutableState2;
        } else {
            if (i6 != 1) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            mutableState = this.f15569a;
            AbstractC2467b.l(obj);
        }
        DateTimeFormatter dateTimeFormatter2 = v2.f16084a;
        mutableState.setValue((List) obj);
        return c3137a;
    }
}
