package h3;

import androidx.compose.runtime.MutableIntState;
import androidx.compose.runtime.MutableState;
import java.util.List;
import m3.AbstractC2467b;
import w4.C3137A;

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

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

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

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

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

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

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public final /* synthetic */ n0.x f17847f;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public C2098d1(List list, MutableState mutableState, MutableIntState mutableIntState, n0.x xVar, A4.d dVar) {
        super(2, dVar);
        this.f17844c = list;
        this.f17845d = mutableState;
        this.f17846e = mutableIntState;
        this.f17847f = xVar;
    }

    @Override // C4.a
    public final A4.d create(Object obj, A4.d dVar) {
        C2098d1 c2098d1 = new C2098d1(this.f17844c, this.f17845d, this.f17846e, this.f17847f, dVar);
        c2098d1.f17843b = obj;
        return c2098d1;
    }

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

    /* JADX WARN: Can't wrap try/catch for region: R(8:0|2|(1:(1:5)(2:6|7))(3:8|(2:11|(2:17|(1:19)))|26)|20|27|21|25|26) */
    /* JADX WARN: Code restructure failed: missing block: B:23:0x0061, code lost:
    
        r8 = move-exception;
     */
    /* JADX WARN: Code restructure failed: missing block: B:24:0x0062, code lost:
    
        m3.AbstractC2467b.d(r8);
     */
    /* JADX WARN: Multi-variable type inference failed */
    @Override // C4.a
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final Object invokeSuspend(Object obj) {
        B4.a aVar = B4.a.f492a;
        int i6 = this.f17842a;
        C3137A c3137a = C3137A.f25453a;
        MutableState mutableState = this.f17845d;
        if (i6 == 0) {
            AbstractC2467b.l(obj);
            V4.C c6 = (V4.C) this.f17843b;
            J.f fVar = AbstractC2211w1.f18642a;
            if (!((Boolean) mutableState.getValue()).booleanValue()) {
                List list = this.f17844c;
                if (!list.isEmpty() && list.indexOf(new Integer(this.f17846e.getIntValue())) >= 0) {
                    this.f17843b = c6;
                    this.f17842a = 1;
                    if (V4.E.l(48L, this) == aVar) {
                        return aVar;
                    }
                }
            }
            return c3137a;
        }
        if (i6 != 1) {
            throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
        }
        AbstractC2467b.l(obj);
        n0.x.a(this.f17847f);
        J.f fVar2 = AbstractC2211w1.f18642a;
        mutableState.setValue(Boolean.TRUE);
        return c3137a;
    }
}
