package d3;

import V2.P2;
import V2.n3;
import androidx.compose.runtime.MutableState;
import androidx.compose.runtime.State;
import j$.time.format.DateTimeFormatter;
import m3.AbstractC2467b;
import w4.C3137A;

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

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

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

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

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

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public final /* synthetic */ X2.f f16013e;

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

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

    /* JADX INFO: renamed from: k, reason: collision with root package name */
    public final /* synthetic */ boolean f16016k;
    public final /* synthetic */ String l;

    /* JADX INFO: renamed from: m, reason: collision with root package name */
    public final /* synthetic */ State f16017m;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public C1926t1(P2 p22, MutableState mutableState, X2.f fVar, int i6, int i7, boolean z6, String str, State state, A4.d dVar) {
        super(2, dVar);
        this.f16011c = p22;
        this.f16012d = mutableState;
        this.f16013e = fVar;
        this.f16014f = i6;
        this.f16015j = i7;
        this.f16016k = z6;
        this.l = str;
        this.f16017m = state;
    }

    @Override // C4.a
    public final A4.d create(Object obj, A4.d dVar) {
        C1926t1 c1926t1 = new C1926t1(this.f16011c, this.f16012d, this.f16013e, this.f16014f, this.f16015j, this.f16016k, this.l, this.f16017m, dVar);
        c1926t1.f16010b = obj;
        return c1926t1;
    }

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

    /* JADX WARN: Multi-variable type inference failed */
    /* JADX WARN: Type inference failed for: r1v0, types: [int] */
    /* JADX WARN: Type inference failed for: r1v1 */
    /* JADX WARN: Type inference failed for: r1v10 */
    /* JADX WARN: Type inference failed for: r1v2, types: [androidx.compose.runtime.MutableState] */
    /* JADX WARN: Type inference failed for: r1v4 */
    /* JADX WARN: Type inference failed for: r1v7 */
    /* JADX WARN: Type inference failed for: r1v8 */
    /* JADX WARN: Type inference failed for: r1v9 */
    @Override // C4.a
    public final Object invokeSuspend(Object obj) {
        Object objD;
        ?? r12;
        int i6;
        String string;
        B4.a aVar = B4.a.f492a;
        ?? r13 = this.f16009a;
        C3137A c3137a = C3137A.f25453a;
        try {
            if (r13 == 0) {
                AbstractC2467b.l(obj);
                MutableState mutableState = this.f16012d;
                P2 p22 = this.f16011c;
                if (p22 == null || !p22.f7480c || (i6 = p22.f7478a) <= 0) {
                    DateTimeFormatter dateTimeFormatter = v2.f16084a;
                    mutableState.setValue(null);
                    return c3137a;
                }
                X2.f fVar = this.f16013e;
                int i7 = this.f16014f;
                int i8 = this.f16015j;
                boolean z6 = this.f16016k;
                State state = this.f16017m;
                String str = this.l;
                String str2 = (str == null || (string = S4.p.o1(str).toString()) == null || string.length() <= 0) ? null : string;
                DateTimeFormatter dateTimeFormatter2 = v2.f16084a;
                String str3 = ((n3) state.getValue()).f7971a.f7887b;
                if (S4.p.Q0(str3)) {
                    str3 = "en";
                }
                this.f16010b = mutableState;
                this.f16009a = 1;
                obj = v2.e0(fVar, i6, i7, i8, z6, str2, str3, this);
                r13 = mutableState;
                if (obj == aVar) {
                    return aVar;
                }
            } else {
                if (r13 != 1) {
                    throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                }
                MutableState mutableState2 = (MutableState) this.f16010b;
                AbstractC2467b.l(obj);
                r13 = mutableState2;
            }
            objD = (C1921s) obj;
            r12 = r13;
        } catch (Throwable th) {
            objD = AbstractC2467b.d(th);
            r12 = r13;
        }
        Object obj2 = objD instanceof w4.m ? null : objD;
        DateTimeFormatter dateTimeFormatter3 = v2.f16084a;
        r12.setValue((C1921s) obj2);
        return c3137a;
    }
}
