package c1;

import java.util.LinkedList;
import java.util.List;
import java.util.SortedMap;
import java.util.TreeMap;

/* JADX INFO: renamed from: c1.b, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public class C0405b {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    private final SortedMap f3112a = new TreeMap();

    public synchronized void a(C0406c c0406c, Object obj) {
        try {
            List linkedList = (List) this.f3112a.get(c0406c);
            if (linkedList == null) {
                linkedList = new LinkedList();
                this.f3112a.put(c0406c, linkedList);
            }
            linkedList.add(obj);
        } catch (Throwable th) {
            throw th;
        }
    }

    /* JADX WARN: Removed duplicated region for block: B:11:0x0022  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public synchronized java.util.List b(c1.C0406c r2) {
        /*
            r1 = this;
            monitor-enter(r1)
            java.util.SortedMap r0 = r1.f3112a     // Catch: java.lang.Throwable -> L20
            boolean r0 = r0.isEmpty()     // Catch: java.lang.Throwable -> L20
            if (r0 != 0) goto L22
            java.util.SortedMap r0 = r1.f3112a     // Catch: java.lang.Throwable -> L20
            java.lang.Object r0 = r0.firstKey()     // Catch: java.lang.Throwable -> L20
            c1.c r0 = (c1.C0406c) r0     // Catch: java.lang.Throwable -> L20
            int r2 = r0.compareTo(r2)     // Catch: java.lang.Throwable -> L20
            if (r2 > 0) goto L22
            java.util.SortedMap r2 = r1.f3112a     // Catch: java.lang.Throwable -> L20
            java.lang.Object r2 = r2.remove(r0)     // Catch: java.lang.Throwable -> L20
            java.util.List r2 = (java.util.List) r2     // Catch: java.lang.Throwable -> L20
            goto L23
        L20:
            r2 = move-exception
            goto L25
        L22:
            r2 = 0
        L23:
            monitor-exit(r1)
            return r2
        L25:
            monitor-exit(r1)     // Catch: java.lang.Throwable -> L20
            throw r2
        */
        throw new UnsupportedOperationException("Method not decompiled: c1.C0405b.b(c1.c):java.util.List");
    }
}
