package b5;

import A6.k;
import A6.n;
import F5.C0115b;
import O1.A;
import com.google.android.gms.internal.measurement.C1;
import java.util.List;
import n4.u0;

/* JADX INFO: renamed from: b5.d, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C0543d {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final A f9207a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final C0542c f9208b = new C0542c(this);

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final k f9209c;

    public C0543d(A a3) {
        this.f9209c = new k(new C0115b(8, a3));
        this.f9207a = a3;
    }

    /* JADX WARN: Removed duplicated region for block: B:7:0x0013  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public static Object a(C0543d c0543d, List list, G6.c cVar) throws Throwable {
        C0540a c0540a;
        if (cVar instanceof C0540a) {
            c0540a = (C0540a) cVar;
            int i = c0540a.f9203x;
            if ((i & Integer.MIN_VALUE) != 0) {
                c0540a.f9203x = i - Integer.MIN_VALUE;
            } else {
                c0540a = new C0540a(c0543d, cVar);
            }
        }
        Object obj = c0540a.f9201v;
        F6.a aVar = F6.a.f2580q;
        int i5 = c0540a.f9203x;
        n nVar = n.f457a;
        if (i5 == 0) {
            C1.N(obj);
            c0540a.f9199t = c0543d;
            c0540a.f9200u = list;
            c0540a.f9203x = 1;
            Object objV = u0.v(c0540a, c0543d.f9207a, new M5.b(7), false, true);
            if (objV != aVar) {
                objV = nVar;
            }
            if (objV != aVar) {
            }
        }
        if (i5 != 1) {
            if (i5 != 2) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            C1.N(obj);
            return nVar;
        }
        list = c0540a.f9200u;
        c0543d = c0540a.f9199t;
        C1.N(obj);
        c0540a.f9199t = null;
        c0540a.f9200u = null;
        c0540a.f9203x = 2;
        c0543d.getClass();
        Object objV2 = u0.v(c0540a, c0543d.f9207a, new a7.c(c0543d, 1, list), false, true);
        if (objV2 != aVar) {
            objV2 = nVar;
        }
        return objV2 == aVar ? aVar : nVar;
    }
}
