package o;

import java.util.Collections;
import java.util.LinkedHashMap;
import java.util.Map;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.Wy, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C0595Wy {
    public static final C0595Wy a = new C0595Wy();
    public static final Map b = Collections.synchronizedMap(new LinkedHashMap());

    public static C0543Uy a(EnumC1741l70 enumC1741l70) {
        Object obj = b.get(enumC1741l70);
        if (obj != null) {
            return (C0543Uy) obj;
        }
        throw new IllegalStateException("Cannot get dependency " + enumC1741l70 + ". Dependencies should be added at class load time.");
    }

    /* JADX WARN: Removed duplicated region for block: B:17:0x005d  */
    /* JADX WARN: Removed duplicated region for block: B:24:0x0097  */
    /* JADX WARN: Removed duplicated region for block: B:25:0x009f A[Catch: all -> 0x00b8, TRY_ENTER, TryCatch #0 {all -> 0x00b8, blocks: (B:22:0x008f, B:25:0x009f, B:26:0x00b7), top: B:31:0x008f }] */
    /* JADX WARN: Removed duplicated region for block: B:30:0x00bd A[RETURN] */
    /* JADX WARN: Removed duplicated region for block: B:7:0x0013  */
    /* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:20:0x008d -> B:21:0x008e). Please report as a decompilation issue!!! */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public final java.lang.Object b(o.AbstractC0298Lm r10) {
        /*
            r9 = this;
            boolean r0 = r10 instanceof o.C0569Vy
            if (r0 == 0) goto L13
            r0 = r10
            o.Vy r0 = (o.C0569Vy) r0
            int r1 = r0.w
            r2 = -2147483648(0xffffffff80000000, float:-0.0)
            r3 = r1 & r2
            if (r3 == 0) goto L13
            int r1 = r1 - r2
            r0.w = r1
            goto L18
        L13:
            o.Vy r0 = new o.Vy
            r0.<init>(r9, r10)
        L18:
            java.lang.Object r10 = r0.u
            int r1 = r0.w
            r2 = 1
            if (r1 == 0) goto L39
            if (r1 != r2) goto L31
            java.lang.Object r1 = r0.t
            java.util.Map r3 = r0.s
            o.sR r4 = r0.r
            o.l70 r5 = r0.q
            java.util.Iterator r6 = r0.p
            java.util.Map r7 = r0.f389o
            o.IJ.H(r10)
            goto L8e
        L31:
            java.lang.IllegalStateException r10 = new java.lang.IllegalStateException
            java.lang.String r0 = "call to 'resume' before 'invoke' with coroutine"
            r10.<init>(r0)
            throw r10
        L39:
            o.IJ.H(r10)
            java.util.LinkedHashMap r10 = new java.util.LinkedHashMap
            java.util.Map r1 = o.C0595Wy.b
            int r3 = r1.size()
            int r3 = o.GN.Z(r3)
            r10.<init>(r3)
            java.util.Set r1 = r1.entrySet()
            java.lang.Iterable r1 = (java.lang.Iterable) r1
            java.util.Iterator r1 = r1.iterator()
            r3 = r10
            r6 = r1
        L57:
            boolean r10 = r6.hasNext()
            if (r10 == 0) goto Lbd
            java.lang.Object r10 = r6.next()
            java.util.Map$Entry r10 = (java.util.Map.Entry) r10
            java.lang.Object r1 = r10.getKey()
            java.lang.Object r4 = r10.getKey()
            r5 = r4
            o.l70 r5 = (o.EnumC1741l70) r5
            java.lang.Object r10 = r10.getValue()
            o.Uy r10 = (o.C0543Uy) r10
            o.sR r4 = r10.a
            r0.f389o = r3
            r0.p = r6
            r0.q = r5
            r0.r = r4
            r0.s = r3
            r0.t = r1
            r0.w = r2
            java.lang.Object r10 = r4.d(r0)
            o.Dn r7 = o.EnumC0091Dn.l
            if (r10 != r7) goto L8d
            return r7
        L8d:
            r7 = r3
        L8e:
            r10 = 0
            o.Uy r8 = a(r5)     // Catch: java.lang.Throwable -> Lb8
            o.In r8 = r8.b     // Catch: java.lang.Throwable -> Lb8
            if (r8 == 0) goto L9f
            r4.f(r10)
            r3.put(r1, r8)
            r3 = r7
            goto L57
        L9f:
            java.lang.IllegalStateException r0 = new java.lang.IllegalStateException     // Catch: java.lang.Throwable -> Lb8
            java.lang.StringBuilder r1 = new java.lang.StringBuilder     // Catch: java.lang.Throwable -> Lb8
            java.lang.String r2 = "Subscriber "
            r1.<init>(r2)     // Catch: java.lang.Throwable -> Lb8
            r1.append(r5)     // Catch: java.lang.Throwable -> Lb8
            java.lang.String r2 = " has not been registered."
            r1.append(r2)     // Catch: java.lang.Throwable -> Lb8
            java.lang.String r1 = r1.toString()     // Catch: java.lang.Throwable -> Lb8
            r0.<init>(r1)     // Catch: java.lang.Throwable -> Lb8
            throw r0     // Catch: java.lang.Throwable -> Lb8
        Lb8:
            r0 = move-exception
            r4.f(r10)
            throw r0
        Lbd:
            return r3
        */
        throw new UnsupportedOperationException("Method not decompiled: o.C0595Wy.b(o.Lm):java.lang.Object");
    }
}
