package o;

import android.content.Context;
import java.util.concurrent.LinkedBlockingDeque;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.To, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C0507To implements InterfaceC1909mv, InterfaceC2819wb0 {
    public Context l;

    public C0507To(Context context, int i) {
        switch (i) {
            case 2:
                this.l = context;
                break;
            default:
                this.l = context.getApplicationContext();
                break;
        }
    }

    @Override // o.InterfaceC1909mv
    public void a(AbstractC0249Jp abstractC0249Jp) {
        ThreadPoolExecutor threadPoolExecutor = new ThreadPoolExecutor(0, 1, 15L, TimeUnit.SECONDS, new LinkedBlockingDeque(), new ThreadFactoryC1126el("EmojiCompatInitializer"));
        threadPoolExecutor.allowCoreThreadTimeOut(true);
        threadPoolExecutor.execute(new RunnableC2970y5(this, abstractC0249Jp, threadPoolExecutor, 1));
    }

    public C0533Uo b() {
        Context context = this.l;
        if (context == null) {
            throw new IllegalStateException(Context.class.getCanonicalName() + " must be set");
        }
        C0533Uo c0533Uo = new C0533Uo();
        c0533Uo.l = C0044Bs.a(C2887xC.b);
        G0 g0 = new G0(4, context);
        c0533Uo.m = g0;
        c0533Uo.n = C0044Bs.a(new C1390hY(7, g0, new C0247Jn(3, g0)));
        G0 g02 = c0533Uo.m;
        c0533Uo.f361o = new C0489Sw(g02, 1);
        CZ czA = C0044Bs.a(new DH(c0533Uo.f361o, C0044Bs.a(new C0489Sw(g02, 0))));
        c0533Uo.p = czA;
        C2616uQ c2616uQ = new C2616uQ(12);
        G0 g03 = c0533Uo.m;
        C3126zm0 c3126zm0 = new C3126zm0(g03, czA, c2616uQ, 28);
        CZ cz = c0533Uo.l;
        CZ cz2 = c0533Uo.n;
        c0533Uo.q = C0044Bs.a(new C70(new Q1(cz, cz2, c3126zm0, czA, czA, 2), new C1533iy(g03, cz2, czA, c3126zm0, cz, czA, czA), new S60(cz, czA, c3126zm0, czA, 10), 3));
        return c0533Uo;
    }

    /* JADX WARN: Removed duplicated region for block: B:20:0x003a A[Catch: all -> 0x0026, TryCatch #3 {all -> 0x0026, all -> 0x006d, blocks: (B:6:0x000b, B:8:0x000f, B:10:0x001d, B:20:0x003a, B:72:0x0141, B:15:0x0029, B:17:0x0031, B:21:0x003f, B:23:0x0045, B:24:0x0049, B:71:0x013d, B:73:0x0144, B:74:0x0147, B:75:0x0148, B:25:0x004d, B:27:0x0051, B:28:0x005e, B:30:0x0064, B:35:0x0072, B:37:0x0078, B:38:0x007e, B:58:0x0121, B:59:0x0124, B:67:0x0134, B:66:0x0131, B:68:0x0135, B:69:0x013a, B:70:0x013b, B:31:0x006a, B:34:0x0070), top: B:85:0x000b }] */
    @Override // o.InterfaceC2819wb0
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public java.lang.Object get() {
        /*
            Method dump skipped, instructions count: 333
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: o.C0507To.get():java.lang.Object");
    }
}
