package q;

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

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

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public X4.b f23328a;

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

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

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final /* synthetic */ X4.i f23331d;

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

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

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

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public C2775g(X4.i iVar, C2769d c2769d, State state, State state2, A4.d dVar) {
        super(2, dVar);
        this.f23331d = iVar;
        this.f23332e = c2769d;
        this.f23333f = state;
        this.f23334j = state2;
    }

    @Override // C4.a
    public final A4.d create(Object obj, A4.d dVar) {
        C2775g c2775g = new C2775g(this.f23331d, this.f23332e, this.f23333f, this.f23334j, dVar);
        c2775g.f23330c = obj;
        return c2775g;
    }

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

    /* JADX WARN: Removed duplicated region for block: B:11:0x0035 A[RETURN] */
    /* JADX WARN: Removed duplicated region for block: B:14:0x003e  */
    /* JADX WARN: Removed duplicated region for block: B:19:0x0061  */
    /* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0033 -> B:12:0x0036). Please report as a decompilation issue!!! */
    @Override // C4.a
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final Object invokeSuspend(Object obj) throws Throwable {
        X4.b it;
        V4.C c6;
        B4.a aVar = B4.a.f492a;
        int i6 = this.f23329b;
        X4.i iVar = this.f23331d;
        if (i6 == 0) {
            AbstractC2467b.l(obj);
            V4.C c7 = (V4.C) this.f23330c;
            it = iVar.iterator();
            c6 = c7;
            this.f23330c = c6;
            this.f23328a = it;
            this.f23329b = 1;
            obj = it.b(this);
            if (obj == aVar) {
            }
            if (((Boolean) obj).booleanValue()) {
            }
        } else {
            if (i6 != 1) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            it = this.f23328a;
            c6 = (V4.C) this.f23330c;
            AbstractC2467b.l(obj);
            if (((Boolean) obj).booleanValue()) {
                Object objC = it.c();
                Object objA = X4.l.a(iVar.c());
                V4.E.y(c6, null, null, new C2773f(objA == null ? objC : objA, this.f23332e, this.f23333f, this.f23334j, null), 3);
                this.f23330c = c6;
                this.f23328a = it;
                this.f23329b = 1;
                obj = it.b(this);
                if (obj == aVar) {
                    return aVar;
                }
                if (((Boolean) obj).booleanValue()) {
                    return C3137A.f25453a;
                }
            }
        }
    }
}
