package h3;

import androidx.compose.runtime.MutableState;
import m3.AbstractC2467b;
import w4.C3137A;

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

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

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

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

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

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

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

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public W4(C2220x4 c2220x4, String str, int i6, MutableState mutableState, MutableState mutableState2, A4.d dVar) {
        super(2, dVar);
        this.f17558b = c2220x4;
        this.f17559c = str;
        this.f17560d = i6;
        this.f17561e = mutableState;
        this.f17562f = mutableState2;
    }

    @Override // C4.a
    public final A4.d create(Object obj, A4.d dVar) {
        return new W4(this.f17558b, this.f17559c, this.f17560d, this.f17561e, this.f17562f, dVar);
    }

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

    /* JADX WARN: Code restructure failed: missing block: B:28:0x0070, code lost:
    
        if (D.H.k(r12, 0, r11) == r0) goto L29;
     */
    /* JADX WARN: Removed duplicated region for block: B:27:0x0069 A[Catch: all -> 0x001e, TRY_LEAVE, TryCatch #0 {all -> 0x001e, blocks: (B:7:0x001a, B:13:0x0028, B:25:0x0059, B:27:0x0069, B:14:0x002c, B:22:0x004e, B:17:0x0033, B:19:0x0043), top: B:34:0x0012 }] */
    @Override // C4.a
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final Object invokeSuspend(Object obj) {
        D.H h5;
        B4.a aVar = B4.a.f492a;
        int i6 = this.f17557a;
        MutableState mutableState = this.f17562f;
        MutableState mutableState2 = this.f17561e;
        String sectionId = this.f17559c;
        C2220x4 c2220x4 = this.f17558b;
        try {
            if (i6 == 0) {
                AbstractC2467b.l(obj);
                c2220x4.getClass();
                kotlin.jvm.internal.o.h(sectionId, "sectionId");
                D.H h6 = (D.H) c2220x4.f18698a.get(sectionId);
                if (h6 != null) {
                    int i7 = this.f17560d;
                    this.f17557a = 1;
                    if (n5.u(i7, this, h6) == aVar) {
                    }
                    return aVar;
                }
            } else {
                if (i6 != 1) {
                    if (i6 != 2) {
                        if (i6 != 3) {
                            throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                        }
                        AbstractC2467b.l(obj);
                        float f6 = n5.f18281a;
                        mutableState2.setValue(Boolean.FALSE);
                        mutableState.setValue(null);
                        return C3137A.f25453a;
                    }
                    AbstractC2467b.l(obj);
                    c2220x4.getClass();
                    kotlin.jvm.internal.o.h(sectionId, "sectionId");
                    h5 = (D.H) c2220x4.f18698a.get(sectionId);
                    if (h5 != null) {
                        this.f17557a = 3;
                    }
                    float f62 = n5.f18281a;
                    mutableState2.setValue(Boolean.FALSE);
                    mutableState.setValue(null);
                    return C3137A.f25453a;
                }
                AbstractC2467b.l(obj);
            }
            this.f17557a = 2;
            if (V4.E.l(240L, this) != aVar) {
                c2220x4.getClass();
                kotlin.jvm.internal.o.h(sectionId, "sectionId");
                h5 = (D.H) c2220x4.f18698a.get(sectionId);
                if (h5 != null) {
                }
                float f622 = n5.f18281a;
                mutableState2.setValue(Boolean.FALSE);
                mutableState.setValue(null);
                return C3137A.f25453a;
            }
            return aVar;
        } catch (Throwable th) {
            float f7 = n5.f18281a;
            mutableState2.setValue(Boolean.FALSE);
            mutableState.setValue(null);
            throw th;
        }
    }
}
