package o;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.rA, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C2315rA implements InterfaceC2221qA {
    public final ME a;
    public final C2209q4 b;
    public final Gm0 c;
    public final C2695vA d;
    public final WT e;

    public C2315rA(ME me, C2209q4 c2209q4) {
        Gm0 gm0 = AbstractC2410sA.a;
        Gm0 gm02 = AbstractC2410sA.a;
        C2695vA c2695vA = new C2695vA();
        C2600uA c2600uA = C2695vA.a;
        BE be = AbstractC1808ls.a;
        c2600uA.getClass();
        C80.e(AbstractC2798wI.t(c2600uA, be).M(C0281Kv.l).M(new C2724vb0(null)));
        WT wt = new WT(2);
        this.a = me;
        this.b = c2209q4;
        this.c = gm0;
        this.d = c2695vA;
        this.e = wt;
        new S1(8, this);
    }

    /* JADX WARN: Removed duplicated region for block: B:28:0x0058  */
    /* JADX WARN: Removed duplicated region for block: B:42:0x0079 A[Catch: Exception -> 0x0081, TRY_ENTER, TryCatch #2 {Exception -> 0x0081, blocks: (B:15:0x0027, B:17:0x003a, B:20:0x003f, B:22:0x0043, B:25:0x0050, B:42:0x0079, B:43:0x0080, B:24:0x004c), top: B:53:0x0027 }] */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public final o.C2926xh0 a(o.C2831wh0 r7) {
        /*
            r6 = this;
            o.Gm0 r0 = r6.c
            java.lang.Object r1 = r0.m
            o.BP r1 = (o.BP) r1
            monitor-enter(r1)
            java.lang.Object r2 = r0.n     // Catch: java.lang.Throwable -> L24
            o.gN r2 = (o.C1283gN) r2     // Catch: java.lang.Throwable -> L24
            java.lang.Object r2 = r2.h(r7)     // Catch: java.lang.Throwable -> L24
            o.xh0 r2 = (o.C2926xh0) r2     // Catch: java.lang.Throwable -> L24
            if (r2 == 0) goto L26
            boolean r3 = r2.m     // Catch: java.lang.Throwable -> L24
            if (r3 == 0) goto L19
            monitor-exit(r1)
            return r2
        L19:
            java.lang.Object r2 = r0.n     // Catch: java.lang.Throwable -> L24
            o.gN r2 = (o.C1283gN) r2     // Catch: java.lang.Throwable -> L24
            java.lang.Object r2 = r2.m(r7)     // Catch: java.lang.Throwable -> L24
            o.xh0 r2 = (o.C2926xh0) r2     // Catch: java.lang.Throwable -> L24
            goto L26
        L24:
            r7 = move-exception
            goto L8a
        L26:
            monitor-exit(r1)
            o.vA r1 = r6.d     // Catch: java.lang.Exception -> L81
            r1.getClass()     // Catch: java.lang.Exception -> L81
            o.hc0 r1 = r7.a     // Catch: java.lang.Exception -> L81
            o.WT r2 = r6.e     // Catch: java.lang.Exception -> L81
            java.lang.Object r2 = r2.m     // Catch: java.lang.Exception -> L81
            o.zX r2 = (o.InterfaceC3098zX) r2     // Catch: java.lang.Exception -> L81
            int r3 = r7.c     // Catch: java.lang.Exception -> L81
            o.OA r4 = r7.b     // Catch: java.lang.Exception -> L81
            if (r1 == 0) goto L4c
            boolean r5 = r1 instanceof o.C0612Xp     // Catch: java.lang.Exception -> L81
            if (r5 == 0) goto L3f
            goto L4c
        L3f:
            boolean r5 = r1 instanceof o.HD     // Catch: java.lang.Exception -> L81
            if (r5 == 0) goto L4a
            o.HD r1 = (o.HD) r1     // Catch: java.lang.Exception -> L81
            android.graphics.Typeface r1 = r2.j(r1, r4, r3)     // Catch: java.lang.Exception -> L81
            goto L50
        L4a:
            r1 = 0
            goto L56
        L4c:
            android.graphics.Typeface r1 = r2.g(r4, r3)     // Catch: java.lang.Exception -> L81
        L50:
            o.xh0 r2 = new o.xh0     // Catch: java.lang.Exception -> L81
            r2.<init>(r1)     // Catch: java.lang.Exception -> L81
            r1 = r2
        L56:
            if (r1 == 0) goto L79
            java.lang.Object r2 = r0.m
            o.BP r2 = (o.BP) r2
            monitor-enter(r2)
            java.lang.Object r3 = r0.n     // Catch: java.lang.Throwable -> L73
            o.gN r3 = (o.C1283gN) r3     // Catch: java.lang.Throwable -> L73
            java.lang.Object r3 = r3.h(r7)     // Catch: java.lang.Throwable -> L73
            if (r3 != 0) goto L75
            boolean r3 = r1.m     // Catch: java.lang.Throwable -> L73
            if (r3 == 0) goto L75
            java.lang.Object r0 = r0.n     // Catch: java.lang.Throwable -> L73
            o.gN r0 = (o.C1283gN) r0     // Catch: java.lang.Throwable -> L73
            r0.l(r7, r1)     // Catch: java.lang.Throwable -> L73
            goto L75
        L73:
            r7 = move-exception
            goto L77
        L75:
            monitor-exit(r2)
            return r1
        L77:
            monitor-exit(r2)
            throw r7
        L79:
            java.lang.IllegalStateException r7 = new java.lang.IllegalStateException     // Catch: java.lang.Exception -> L81
            java.lang.String r0 = "Could not load font"
            r7.<init>(r0)     // Catch: java.lang.Exception -> L81
            throw r7     // Catch: java.lang.Exception -> L81
        L81:
            r7 = move-exception
            java.lang.IllegalStateException r0 = new java.lang.IllegalStateException
            java.lang.String r1 = "Could not load font"
            r0.<init>(r1, r7)
            throw r0
        L8a:
            monitor-exit(r1)
            throw r7
        */
        throw new UnsupportedOperationException("Method not decompiled: o.C2315rA.a(o.wh0):o.xh0");
    }

    public final C2926xh0 b(AbstractC1397hc0 abstractC1397hc0, OA oa, int i, int i2) {
        C2209q4 c2209q4 = this.b;
        c2209q4.getClass();
        int i3 = c2209q4.l;
        OA oa2 = (i3 == 0 || i3 == Integer.MAX_VALUE) ? oa : new OA(AbstractC0940cn0.k(oa.l + i3, 1, 1000));
        this.a.getClass();
        return a(new C2831wh0(abstractC1397hc0, oa2, i, i2, null));
    }
}
