package d3;

import V2.P2;
import androidx.compose.runtime.MutableState;
import c3.AbstractC1239b;
import c3.C1238a;
import c3.C1240c;
import j$.time.format.DateTimeFormatter;
import m3.AbstractC2467b;
import okhttp3.OkHttpClient;
import w4.C3137A;

/* JADX INFO: renamed from: d3.u1, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C1929u1 extends C4.j implements J4.e {

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

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

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

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

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

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

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

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public C1929u1(String str, P2 p22, int i6, int i7, MutableState mutableState, A4.d dVar) {
        super(2, dVar);
        this.f16029c = str;
        this.f16030d = p22;
        this.f16031e = i6;
        this.f16032f = i7;
        this.f16033j = mutableState;
    }

    @Override // C4.a
    public final A4.d create(Object obj, A4.d dVar) {
        return new C1929u1(this.f16029c, this.f16030d, this.f16031e, this.f16032f, this.f16033j, dVar);
    }

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

    @Override // C4.a
    public final Object invokeSuspend(Object obj) {
        String string;
        P2 p22;
        int i6;
        int i7;
        MutableState mutableState;
        B4.a aVar = B4.a.f492a;
        int i8 = this.f16028b;
        C3137A c3137a = C3137A.f25453a;
        if (i8 == 0) {
            AbstractC2467b.l(obj);
            DateTimeFormatter dateTimeFormatter = v2.f16084a;
            MutableState mutableState2 = this.f16033j;
            mutableState2.setValue(null);
            String str = this.f16029c;
            if (str != null && (string = S4.p.o1(str).toString()) != null) {
                if (string.length() <= 0) {
                    string = null;
                }
                if (string != null && (p22 = this.f16030d) != null && p22.f7480c && (i6 = this.f16031e) > 0 && (i7 = this.f16032f) > 0) {
                    OkHttpClient okHttpClient = AbstractC1239b.f13425a;
                    this.f16027a = mutableState2;
                    this.f16028b = 1;
                    c5.e eVar = V4.N.f8259a;
                    Object objH = V4.E.H(c5.d.f13466b, new C1238a(i6, i7, null, string), this);
                    if (objH == aVar) {
                        return aVar;
                    }
                    mutableState = mutableState2;
                    obj = objH;
                }
            }
            return c3137a;
        }
        if (i8 != 1) {
            throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
        }
        mutableState = this.f16027a;
        AbstractC2467b.l(obj);
        DateTimeFormatter dateTimeFormatter2 = v2.f16084a;
        mutableState.setValue((C1240c) obj);
        return c3137a;
    }
}
