package o;

import android.app.Application;
import android.content.Context;
import android.content.pm.PackageManager;
import android.content.res.Resources;
import android.graphics.Rect;
import android.graphics.Typeface;
import android.os.Bundle;
import android.os.IBinder;
import android.os.Parcel;
import android.os.RemoteException;
import android.view.View;
import androidx.work.Worker;
import com.google.android.gms.common.ConnectionResult;
import com.google.android.gms.common.api.CommonStatusCodes;
import com.google.android.gms.common.internal.Preconditions;
import com.google.android.material.behavior.SwipeDismissBehavior;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.Objects;
import java.util.UUID;
import java.util.WeakHashMap;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.Executor;
import java.util.concurrent.ScheduledExecutorService;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.cD, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class RunnableC0890cD implements Runnable {
    public final /* synthetic */ int l;
    public Object m;
    public final Object n;

    public /* synthetic */ RunnableC0890cD(int i, Object obj, Object obj2) {
        this.l = i;
        this.m = obj;
        this.n = obj2;
    }

    private final void a() {
        Dm0 dm0;
        XY xy = ((C1493ic0) this.n).l.p;
        String str = (String) this.m;
        synchronized (xy.k) {
            try {
                Lm0 lm0C = xy.c(str);
                dm0 = lm0C != null ? lm0C.n : null;
            } finally {
            }
        }
        if (dm0 == null || !dm0.b()) {
            return;
        }
        synchronized (((C1493ic0) this.n).n) {
            ((C1493ic0) this.n).q.put(C2887xC.o(dm0), dm0);
            C1493ic0 c1493ic0 = (C1493ic0) this.n;
            ((C1493ic0) this.n).r.put(C2887xC.o(dm0), AbstractC1702km0.a(c1493ic0.s, dm0, (C0768ax) c1493ic0.m.b, c1493ic0));
        }
    }

    private final void b() {
        Tu0 tu0 = (Tu0) this.m;
        IBinder iBinder = (IBinder) this.n;
        synchronized (tu0) {
            if (iBinder == null) {
                tu0.a("Null service connection");
                return;
            }
            try {
                tu0.c = new C3031ym0(iBinder);
                tu0.a = 2;
                ((ScheduledExecutorService) tu0.f.c).execute(new RunnableC1045ds0(tu0, 0));
            } catch (RemoteException e) {
                tu0.a(e.getMessage());
            }
        }
    }

    private final void c() {
        synchronized (((Yq0) this.n).n) {
            ((HT) ((Yq0) this.n).f431o).onComplete((Pc0) this.m);
        }
    }

    /* JADX WARN: Can't wrap try/catch for region: R(20:20|(1:22)(26:25|320|26|27|(1:30)(22:32|(1:34)|312|35|(7:37|(1:39)(1:41)|310|42|316|43|44)|24|48|(2:50|(2:52|(2:54|(2:56|(2:58|(2:60|(1:62)(1:63))(1:64))(1:65))(1:66))(1:67))(1:68))(1:69)|70|324|71|(1:73)(1:74)|75|(1:77)|81|(1:83)(7:85|(0)(1:88)|(3:326|90|(1:92)(1:93))|(2:99|(1:101)(4:102|(3:105|(1:332)(1:333)|103)|331|108))(1:108)|(1:110)(1:111)|112|(30:114|(1:116)(1:117)|118|(1:120)|121|(1:123)(1:124)|125|(2:127|(4:132|(1:134)(2:135|(1:137)(1:138))|139|(1:141))(1:(5:131|132|(0)(0)|139|(0))(1:142)))(0)|143|(19:148|(1:150)|(1:164)(1:165)|166|(1:168)|169|(2:174|(2:180|(2:187|(2:188|(1:328)(2:190|(2:329|192)(1:330))))(0))(1:179))(1:173)|193|(3:197|(1:199)|200)|201|(1:203)|204|(1:208)|209|(3:211|(7:213|(1:215)(1:216)|217|(1:219)|220|(1:239)(7:224|(1:226)|227|318|228|(1:230)(5:231|232|314|233|(2:235|(0)))|238)|240)(1:242)|241)(10:243|(2:245|(2:258|259)(3:248|(5:250|(1:252)(1:253)|254|(1:256)|257)(0)|259))(1:260)|261|(1:263)|264|322|265|266|270|(5:272|(1:274)(1:275)|(1:279)|(1:281)|282))|283|(3:285|(1:287)(1:288)|(5:290|(1:292)|293|(1:295)|296))|297|298)(1:147)|151|(1:162)|161|(0)(0)|166|(0)|169|(3:171|174|(3:177|180|(4:183|185|187|(3:188|(0)(0)|330))(0))(0))(0)|193|(4:195|197|(0)|200)(0)|201|(0)|204|(2:206|208)|209|(0)(0)|283|(0)|297|298)(2:299|300))|84|(0)|(0)(0)|(0)(0)|112|(0)(0))|31|312|35|(0)(0)|24|48|(0)(0)|70|324|71|(0)(0)|75|(0)|81|(0)(0)|84|(0)|(0)(0)|(0)(0)|112|(0)(0))|23|24|48|(0)(0)|70|324|71|(0)(0)|75|(0)|81|(0)(0)|84|(0)|(0)(0)|(0)(0)|112|(0)(0)) */
    /* JADX WARN: Can't wrap try/catch for region: R(25:25|(2:320|26)|27|(1:30)(22:32|(1:34)|312|35|(7:37|(1:39)(1:41)|310|42|316|43|44)|24|48|(2:50|(2:52|(2:54|(2:56|(2:58|(2:60|(1:62)(1:63))(1:64))(1:65))(1:66))(1:67))(1:68))(1:69)|70|324|71|(1:73)(1:74)|75|(1:77)|81|(1:83)(7:85|(0)(1:88)|(3:326|90|(1:92)(1:93))|(2:99|(1:101)(4:102|(3:105|(1:332)(1:333)|103)|331|108))(1:108)|(1:110)(1:111)|112|(30:114|(1:116)(1:117)|118|(1:120)|121|(1:123)(1:124)|125|(2:127|(4:132|(1:134)(2:135|(1:137)(1:138))|139|(1:141))(1:(5:131|132|(0)(0)|139|(0))(1:142)))(0)|143|(19:148|(1:150)|(1:164)(1:165)|166|(1:168)|169|(2:174|(2:180|(2:187|(2:188|(1:328)(2:190|(2:329|192)(1:330))))(0))(1:179))(1:173)|193|(3:197|(1:199)|200)|201|(1:203)|204|(1:208)|209|(3:211|(7:213|(1:215)(1:216)|217|(1:219)|220|(1:239)(7:224|(1:226)|227|318|228|(1:230)(5:231|232|314|233|(2:235|(0)))|238)|240)(1:242)|241)(10:243|(2:245|(2:258|259)(3:248|(5:250|(1:252)(1:253)|254|(1:256)|257)(0)|259))(1:260)|261|(1:263)|264|322|265|266|270|(5:272|(1:274)(1:275)|(1:279)|(1:281)|282))|283|(3:285|(1:287)(1:288)|(5:290|(1:292)|293|(1:295)|296))|297|298)(1:147)|151|(1:162)|161|(0)(0)|166|(0)|169|(3:171|174|(3:177|180|(4:183|185|187|(3:188|(0)(0)|330))(0))(0))(0)|193|(4:195|197|(0)|200)(0)|201|(0)|204|(2:206|208)|209|(0)(0)|283|(0)|297|298)(2:299|300))|84|(0)|(0)(0)|(0)(0)|112|(0)(0))|31|312|35|(0)(0)|24|48|(0)(0)|70|324|71|(0)(0)|75|(0)|81|(0)(0)|84|(0)|(0)(0)|(0)(0)|112|(0)(0)) */
    /* JADX WARN: Code restructure failed: missing block: B:46:0x0198, code lost:
    
        r5 = "Unknown";
     */
    /* JADX WARN: Code restructure failed: missing block: B:79:0x025b, code lost:
    
        r0 = move-exception;
     */
    /* JADX WARN: Code restructure failed: missing block: B:80:0x025c, code lost:
    
        o.Kr0.l(r13);
        r13.f.d("Fetching Google App Id failed with exception. appId", o.Nq0.A(r14), r0);
     */
    /* JADX WARN: Removed duplicated region for block: B:108:0x02f2  */
    /* JADX WARN: Removed duplicated region for block: B:110:0x02f6  */
    /* JADX WARN: Removed duplicated region for block: B:111:0x02fd  */
    /* JADX WARN: Removed duplicated region for block: B:114:0x031a  */
    /* JADX WARN: Removed duplicated region for block: B:130:0x03e0  */
    /* JADX WARN: Removed duplicated region for block: B:134:0x0408  */
    /* JADX WARN: Removed duplicated region for block: B:135:0x040c  */
    /* JADX WARN: Removed duplicated region for block: B:141:0x0426  */
    /* JADX WARN: Removed duplicated region for block: B:164:0x04ca  */
    /* JADX WARN: Removed duplicated region for block: B:165:0x04d2  */
    /* JADX WARN: Removed duplicated region for block: B:168:0x04fb  */
    /* JADX WARN: Removed duplicated region for block: B:174:0x052a  */
    /* JADX WARN: Removed duplicated region for block: B:180:0x054e  */
    /* JADX WARN: Removed duplicated region for block: B:190:0x0580  */
    /* JADX WARN: Removed duplicated region for block: B:197:0x059d  */
    /* JADX WARN: Removed duplicated region for block: B:199:0x05bb  */
    /* JADX WARN: Removed duplicated region for block: B:203:0x05e8  */
    /* JADX WARN: Removed duplicated region for block: B:211:0x061b  */
    /* JADX WARN: Removed duplicated region for block: B:243:0x06a4  */
    /* JADX WARN: Removed duplicated region for block: B:258:0x074d  */
    /* JADX WARN: Removed duplicated region for block: B:285:0x0813  */
    /* JADX WARN: Removed duplicated region for block: B:299:0x087b  */
    /* JADX WARN: Removed duplicated region for block: B:326:0x029d A[EXC_TOP_SPLITTER, SYNTHETIC] */
    /* JADX WARN: Removed duplicated region for block: B:328:0x058f A[EDGE_INSN: B:328:0x058f->B:193:0x058f BREAK  A[LOOP:0: B:188:0x057a->B:330:?], SYNTHETIC] */
    /* JADX WARN: Removed duplicated region for block: B:37:0x017b A[Catch: NameNotFoundException -> 0x0198, TryCatch #1 {NameNotFoundException -> 0x0198, blocks: (B:35:0x0170, B:37:0x017b, B:39:0x0187), top: B:312:0x0170 }] */
    /* JADX WARN: Removed duplicated region for block: B:50:0x01c4  */
    /* JADX WARN: Removed duplicated region for block: B:69:0x022e  */
    /* JADX WARN: Removed duplicated region for block: B:73:0x0246  */
    /* JADX WARN: Removed duplicated region for block: B:74:0x0247  */
    /* JADX WARN: Removed duplicated region for block: B:77:0x024c A[Catch: IllegalStateException -> 0x025b, TRY_LEAVE, TryCatch #7 {IllegalStateException -> 0x025b, blocks: (B:71:0x023a, B:75:0x0248, B:77:0x024c), top: B:324:0x023a }] */
    /* JADX WARN: Removed duplicated region for block: B:83:0x027e  */
    /* JADX WARN: Removed duplicated region for block: B:85:0x028c  */
    /* JADX WARN: Removed duplicated region for block: B:99:0x02c3  */
    /* JADX WARN: Type inference failed for: r0v48, types: [o.Vs0] */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    private final void d() throws android.content.res.Resources.NotFoundException, android.content.pm.PackageManager.NameNotFoundException, java.lang.ClassNotFoundException {
        /*
            Method dump skipped, instructions count: 2200
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: o.RunnableC0890cD.d():void");
    }

    /* JADX WARN: Code restructure failed: missing block: B:19:0x0043, code lost:
    
        if (r1 == false) goto L51;
     */
    /* JADX WARN: Code restructure failed: missing block: B:24:0x004c, code lost:
    
        r1 = r1 | java.lang.Thread.interrupted();
        r2 = null;
     */
    /* JADX WARN: Code restructure failed: missing block: B:25:0x004e, code lost:
    
        ((java.lang.Runnable) r10.m).run();
     */
    /* JADX WARN: Code restructure failed: missing block: B:30:0x005a, code lost:
    
        r0 = move-exception;
     */
    /* JADX WARN: Code restructure failed: missing block: B:32:0x005c, code lost:
    
        r3 = move-exception;
     */
    /* JADX WARN: Code restructure failed: missing block: B:33:0x005d, code lost:
    
        o.K60.q.log(java.util.logging.Level.SEVERE, "Exception while executing runnable " + ((java.lang.Runnable) r10.m), (java.lang.Throwable) r3);
     */
    /* JADX WARN: Code restructure failed: missing block: B:35:0x007a, code lost:
    
        r10.m = null;
     */
    /* JADX WARN: Code restructure failed: missing block: B:36:0x007c, code lost:
    
        throw r0;
     */
    /* JADX WARN: Code restructure failed: missing block: B:51:?, code lost:
    
        return;
     */
    /* JADX WARN: Removed duplicated region for block: B:47:0x003c A[SYNTHETIC] */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public void e() {
        /*
            r10 = this;
            r0 = 0
            r1 = r0
        L2:
            java.lang.Object r2 = r10.n     // Catch: java.lang.Throwable -> L58
            o.K60 r2 = (o.K60) r2     // Catch: java.lang.Throwable -> L58
            java.util.ArrayDeque r2 = r2.m     // Catch: java.lang.Throwable -> L58
            monitor-enter(r2)     // Catch: java.lang.Throwable -> L58
            r3 = 1
            if (r0 != 0) goto L2c
            java.lang.Object r0 = r10.n     // Catch: java.lang.Throwable -> L20
            o.K60 r0 = (o.K60) r0     // Catch: java.lang.Throwable -> L20
            int r4 = r0.n     // Catch: java.lang.Throwable -> L20
            r5 = 4
            if (r4 != r5) goto L22
            monitor-exit(r2)     // Catch: java.lang.Throwable -> L20
            if (r1 == 0) goto L46
        L18:
            java.lang.Thread r0 = java.lang.Thread.currentThread()
            r0.interrupt()
            goto L46
        L20:
            r0 = move-exception
            goto L7d
        L22:
            long r6 = r0.f189o     // Catch: java.lang.Throwable -> L20
            r8 = 1
            long r6 = r6 + r8
            r0.f189o = r6     // Catch: java.lang.Throwable -> L20
            r0.n = r5     // Catch: java.lang.Throwable -> L20
            r0 = r3
        L2c:
            java.lang.Object r4 = r10.n     // Catch: java.lang.Throwable -> L20
            o.K60 r4 = (o.K60) r4     // Catch: java.lang.Throwable -> L20
            java.util.ArrayDeque r4 = r4.m     // Catch: java.lang.Throwable -> L20
            java.lang.Object r4 = r4.poll()     // Catch: java.lang.Throwable -> L20
            java.lang.Runnable r4 = (java.lang.Runnable) r4     // Catch: java.lang.Throwable -> L20
            r10.m = r4     // Catch: java.lang.Throwable -> L20
            if (r4 != 0) goto L47
            java.lang.Object r0 = r10.n     // Catch: java.lang.Throwable -> L20
            o.K60 r0 = (o.K60) r0     // Catch: java.lang.Throwable -> L20
            r0.n = r3     // Catch: java.lang.Throwable -> L20
            monitor-exit(r2)     // Catch: java.lang.Throwable -> L20
            if (r1 == 0) goto L46
            goto L18
        L46:
            return
        L47:
            monitor-exit(r2)     // Catch: java.lang.Throwable -> L20
            boolean r2 = java.lang.Thread.interrupted()     // Catch: java.lang.Throwable -> L58
            r1 = r1 | r2
            r2 = 0
            java.lang.Object r3 = r10.m     // Catch: java.lang.Throwable -> L5a java.lang.RuntimeException -> L5c
            java.lang.Runnable r3 = (java.lang.Runnable) r3     // Catch: java.lang.Throwable -> L5a java.lang.RuntimeException -> L5c
            r3.run()     // Catch: java.lang.Throwable -> L5a java.lang.RuntimeException -> L5c
        L55:
            r10.m = r2     // Catch: java.lang.Throwable -> L58
            goto L2
        L58:
            r0 = move-exception
            goto L7f
        L5a:
            r0 = move-exception
            goto L7a
        L5c:
            r3 = move-exception
            java.util.logging.Logger r4 = o.K60.q     // Catch: java.lang.Throwable -> L5a
            java.util.logging.Level r5 = java.util.logging.Level.SEVERE     // Catch: java.lang.Throwable -> L5a
            java.lang.StringBuilder r6 = new java.lang.StringBuilder     // Catch: java.lang.Throwable -> L5a
            r6.<init>()     // Catch: java.lang.Throwable -> L5a
            java.lang.String r7 = "Exception while executing runnable "
            r6.append(r7)     // Catch: java.lang.Throwable -> L5a
            java.lang.Object r7 = r10.m     // Catch: java.lang.Throwable -> L5a
            java.lang.Runnable r7 = (java.lang.Runnable) r7     // Catch: java.lang.Throwable -> L5a
            r6.append(r7)     // Catch: java.lang.Throwable -> L5a
            java.lang.String r6 = r6.toString()     // Catch: java.lang.Throwable -> L5a
            r4.log(r5, r6, r3)     // Catch: java.lang.Throwable -> L5a
            goto L55
        L7a:
            r10.m = r2     // Catch: java.lang.Throwable -> L58
            throw r0     // Catch: java.lang.Throwable -> L58
        L7d:
            monitor-exit(r2)     // Catch: java.lang.Throwable -> L20
            throw r0     // Catch: java.lang.Throwable -> L58
        L7f:
            if (r1 == 0) goto L88
            java.lang.Thread r1 = java.lang.Thread.currentThread()
            r1.interrupt()
        L88:
            throw r0
        */
        throw new UnsupportedOperationException("Method not decompiled: o.RunnableC0890cD.e():void");
    }

    @Override // java.lang.Runnable
    public final void run() throws IllegalAccessException, Resources.NotFoundException, PackageManager.NameNotFoundException, ClassNotFoundException, IllegalArgumentException, InvocationTargetException {
        AO ao;
        switch (this.l) {
            case 0:
                Gm0 gm0 = (Gm0) this.n;
                try {
                    YT.x((YL) this.m);
                    Xs0 xs0 = (Xs0) gm0.n;
                    xs0.r();
                    gm0.o();
                    xs0.i = false;
                    xs0.j = 1;
                    Nq0 nq0 = ((Kr0) xs0.a).f;
                    Kr0.l(nq0);
                    nq0.m.c(((C2762vu0) gm0.m).l, "Successfully registered trigger URI");
                    xs0.R();
                    return;
                } catch (Error e) {
                    e = e;
                    gm0.l(e);
                    return;
                } catch (RuntimeException e2) {
                    e = e2;
                    gm0.l(e);
                    return;
                } catch (ExecutionException e3) {
                    gm0.l(e3.getCause());
                    return;
                }
            case 1:
                C1156f1 c1156f1 = (C1156f1) this.m;
                C1444i1 c1444i1 = (C1444i1) this.n;
                CO co = c1444i1.n;
                if (co != null && (ao = co.e) != null) {
                    ao.s(co);
                }
                View view = (View) c1444i1.s;
                if (view != null && view.getWindowToken() != null) {
                    if (c1156f1.b()) {
                        c1444i1.D = c1156f1;
                    } else if (c1156f1.e != null) {
                        c1156f1.d(0, 0, false, false);
                        c1444i1.D = c1156f1;
                    }
                }
                c1444i1.F = null;
                return;
            case 2:
                ((C2297r1) this.m).l = this.n;
                return;
            case 3:
                ((Application) this.m).unregisterActivityLifecycleCallbacks((C2297r1) this.n);
                return;
            case 4:
                Object obj = this.n;
                Object obj2 = this.m;
                try {
                    Method method = AbstractC2392s1.d;
                    if (method != null) {
                        method.invoke(obj2, obj, Boolean.FALSE, "AppCompat recreation");
                    } else {
                        AbstractC2392s1.e.invoke(obj2, obj, Boolean.FALSE);
                    }
                    return;
                } catch (RuntimeException e4) {
                    if (e4.getClass() == RuntimeException.class && e4.getMessage() != null && e4.getMessage().startsWith("Unable to stop")) {
                        throw e4;
                    }
                    return;
                } catch (Throwable unused) {
                    return;
                }
            case 5:
                WT wt = (WT) this.m;
                Typeface typeface = (Typeface) this.n;
                AbstractC0249Jp abstractC0249Jp = (AbstractC0249Jp) wt.m;
                if (abstractC0249Jp != null) {
                    abstractC0249Jp.V(typeface);
                    return;
                }
                return;
            case 6:
                AbstractC2792wC.g((View) this.m, (Rect) this.n);
                return;
            case 7:
                ((C0042Bq) this.m).a();
                if (androidx.fragment.app.s.F(2)) {
                    Objects.toString((androidx.fragment.app.x) this.n);
                    return;
                }
                return;
            case 8:
                C0669Zu c0669ZuE = C0669Zu.e();
                int i = C0509Tq.e;
                Dm0 dm0 = (Dm0) this.m;
                c0669ZuE.getClass();
                ((C0509Tq) this.n).a.d(dm0);
                return;
            case ConnectionResult.SERVICE_INVALID /* 9 */:
                ((C2448sg) this.m).D((BE) this.n);
                return;
            case 10:
                C1377hL c1377hL = (C1377hL) this.n;
                AbstractC2842wn abstractC2842wn = c1377hL.n;
                while (true) {
                    try {
                        ((Runnable) this.m).run();
                    } catch (Throwable th) {
                        AbstractC1155f00.t(th, C0281Kv.l);
                    }
                    Runnable runnableX = c1377hL.X();
                    if (runnableX == null) {
                        return;
                    }
                    this.m = runnableX;
                    i++;
                    if (i >= 16 && abstractC2842wn.V(c1377hL)) {
                        abstractC2842wn.T(c1377hL, this);
                        return;
                    }
                }
                break;
            case ConnectionResult.LICENSE_CHECK_FAILED /* 11 */:
                ((CA) this.m).accept(this.n);
                return;
            case 12:
                ((C2448sg) this.n).D((C0768ax) this.m);
                return;
            case 13:
                try {
                    e();
                    return;
                } catch (Error e5) {
                    synchronized (((K60) this.n).m) {
                        ((K60) this.n).n = 1;
                        throw e5;
                    }
                }
            case 14:
                try {
                    ((Runnable) this.n).run();
                    synchronized (((E7) this.m).f98o) {
                        ((E7) this.m).a();
                    }
                    return;
                } catch (Throwable th2) {
                    synchronized (((E7) this.m).f98o) {
                        ((E7) this.m).a();
                        throw th2;
                    }
                }
            case 15:
                androidx.fragment.app.f fVar = (androidx.fragment.app.f) this.n;
                ArrayList arrayList = fVar.b;
                androidx.fragment.app.x xVar = (androidx.fragment.app.x) this.m;
                arrayList.remove(xVar);
                fVar.c.remove(xVar);
                return;
            case 16:
                Sj0 sj0 = ((SwipeDismissBehavior) this.n).a;
                if (sj0 == null || !sj0.f()) {
                    return;
                }
                View view2 = (View) this.m;
                WeakHashMap weakHashMap = Oj0.a;
                view2.postOnAnimation(this);
                return;
            case 17:
                a();
                return;
            case ConnectionResult.SERVICE_UPDATING /* 18 */:
                if (((RunnableC2082om0) this.n).l.l instanceof E) {
                    return;
                }
                try {
                    UA ua = (UA) ((C2595u70) this.m).get();
                    if (ua == null) {
                        throw new IllegalStateException("Worker was marked important (" + ((RunnableC2082om0) this.n).n.c + ") but did not provide ForegroundInfo");
                    }
                    C0669Zu c0669ZuE2 = C0669Zu.e();
                    int i2 = RunnableC2082om0.r;
                    String str = ((RunnableC2082om0) this.n).n.c;
                    c0669ZuE2.getClass();
                    RunnableC2082om0 runnableC2082om0 = (RunnableC2082om0) this.n;
                    C2595u70 c2595u70 = runnableC2082om0.l;
                    C2272qm0 c2272qm0 = runnableC2082om0.p;
                    Context context = runnableC2082om0.m;
                    UUID uuid = runnableC2082om0.f666o.m.a;
                    c2272qm0.getClass();
                    C2595u70 c2595u702 = new C2595u70();
                    c2272qm0.a.c(new RunnableC2177pm0(c2272qm0, c2595u702, uuid, ua, context, 0));
                    c2595u70.k(c2595u702);
                    return;
                } catch (Throwable th3) {
                    ((RunnableC2082om0) this.n).l.j(th3);
                    return;
                }
            case 19:
                try {
                    ((Worker) this.n).getClass();
                    throw new IllegalStateException("Expedited WorkRequests require a Worker to provide an implementation for \n `getForegroundInfo()`");
                } catch (Throwable th4) {
                    ((C2595u70) this.m).j(th4);
                    return;
                }
            case 20:
                if (((Lm0) this.n).A.l instanceof E) {
                    return;
                }
                try {
                    ((YL) this.m).get();
                    C0669Zu c0669ZuE3 = C0669Zu.e();
                    int i3 = Lm0.C;
                    String str2 = ((Lm0) this.n).n.c;
                    c0669ZuE3.getClass();
                    Lm0 lm0 = (Lm0) this.n;
                    lm0.A.k(lm0.f214o.d());
                    return;
                } catch (Throwable th5) {
                    ((Lm0) this.n).A.j(th5);
                    return;
                }
            case CommonStatusCodes.RECONNECTION_TIMED_OUT_DURING_UPDATE /* 21 */:
                InterfaceC1619js0 interfaceC1619js0 = (InterfaceC1619js0) this.m;
                interfaceC1619js0.f();
                if (C2616uQ.x()) {
                    interfaceC1619js0.c().B(this);
                    return;
                }
                AbstractC3035yo0 abstractC3035yo0 = (AbstractC3035yo0) this.n;
                i = abstractC3035yo0.c != 0 ? 1 : 0;
                abstractC3035yo0.c = 0L;
                if (i != 0) {
                    abstractC3035yo0.a();
                    return;
                }
                return;
            case 22:
                if (((Hw0) ((Pc0) this.m)).d) {
                    ((C2847wp0) this.n).f780o.n();
                    return;
                }
                try {
                    ((C2847wp0) this.n).f780o.m(((C2847wp0) this.n).n.then((Pc0) this.m));
                    return;
                } catch (G30 e6) {
                    if (e6.getCause() instanceof Exception) {
                        ((C2847wp0) this.n).f780o.l((Exception) e6.getCause());
                        return;
                    } else {
                        ((C2847wp0) this.n).f780o.l(e6);
                        return;
                    }
                } catch (Exception e7) {
                    ((C2847wp0) this.n).f780o.l(e7);
                    return;
                }
            case ConnectionResult.API_DISABLED /* 23 */:
                C2847wp0 c2847wp0 = (C2847wp0) this.n;
                Hw0 hw0 = c2847wp0.f780o;
                try {
                    Pc0 pc0 = (Pc0) c2847wp0.n.then((Pc0) this.m);
                    if (pc0 == null) {
                        c2847wp0.d(new NullPointerException("Continuation returned null"));
                        return;
                    }
                    ExecutorC0614Xr executorC0614Xr = Rc0.b;
                    pc0.c(executorC0614Xr, c2847wp0);
                    pc0.b(executorC0614Xr, c2847wp0);
                    Hw0 hw02 = (Hw0) pc0;
                    hw02.b.e(new Yq0((Executor) executorC0614Xr, (GT) c2847wp0));
                    hw02.q();
                    return;
                } catch (G30 e8) {
                    if (e8.getCause() instanceof Exception) {
                        hw0.l((Exception) e8.getCause());
                        return;
                    } else {
                        hw0.l(e8);
                        return;
                    }
                } catch (Exception e9) {
                    hw0.l(e9);
                    return;
                }
            case ConnectionResult.API_DISABLED_FOR_CONNECTION /* 24 */:
                ServiceConnectionC1807lr0 serviceConnectionC1807lr0 = (ServiceConnectionC1807lr0) this.n;
                Kr0 kr0 = serviceConnectionC1807lr0.b.a;
                Fr0 fr0 = kr0.g;
                Kr0.l(fr0);
                fr0.r();
                Bundle bundle = new Bundle();
                bundle.putString("package_name", serviceConnectionC1807lr0.a);
                try {
                    Vo0 vo0 = (Vo0) ((Xo0) this.m);
                    Parcel parcelC = vo0.C();
                    Uo0.b(parcelC, bundle);
                    Parcel parcelB = vo0.B(1, parcelC);
                    Bundle bundle2 = (Bundle) Uo0.a(parcelB, Bundle.CREATOR);
                    parcelB.recycle();
                    if (bundle2 == null) {
                        Nq0 nq02 = kr0.f;
                        Kr0.l(nq02);
                        nq02.f.b("Install Referrer Service returned a null response");
                    }
                } catch (Exception e10) {
                    Nq0 nq03 = kr0.f;
                    Kr0.l(nq03);
                    nq03.f.c(e10.getMessage(), "Exception occurred while retrieving the Install Referrer");
                }
                Fr0 fr02 = kr0.g;
                Kr0.l(fr02);
                fr02.r();
                throw new IllegalStateException("Unexpected call on client side");
            case 25:
                c();
                return;
            case 26:
                b();
                return;
            case 27:
                d();
                return;
            case 28:
                C1051dv0 c1051dv0 = ((BinderC1237fs0) this.n).d;
                c1051dv0.B();
                Xn0 xn0 = (Xn0) this.m;
                if (xn0.n.b() == null) {
                    c1051dv0.getClass();
                    C1531iw0 c1531iw0Q = c1051dv0.Q((String) Preconditions.checkNotNull(xn0.l));
                    if (c1531iw0Q != null) {
                        c1051dv0.Z(xn0, c1531iw0Q);
                        return;
                    }
                    return;
                }
                c1051dv0.getClass();
                C1531iw0 c1531iw0Q2 = c1051dv0.Q((String) Preconditions.checkNotNull(xn0.l));
                if (c1531iw0Q2 != null) {
                    c1051dv0.Y(xn0, c1531iw0Q2);
                    return;
                }
                return;
            default:
                synchronized (((Yq0) this.n).n) {
                    ((LT) ((Yq0) this.n).f431o).d((Exception) Preconditions.checkNotNull(((Pc0) this.m).e()));
                }
                return;
        }
    }

    public String toString() {
        switch (this.l) {
            case 0:
                C3126zm0 c3126zm0 = new C3126zm0(RunnableC0890cD.class.getSimpleName());
                Gm0 gm0 = (Gm0) this.n;
                Gm0 gm02 = new Gm0(7, false);
                ((Gm0) c3126zm0.f831o).n = gm02;
                c3126zm0.f831o = gm02;
                gm02.m = gm0;
                return c3126zm0.toString();
            case 13:
                Runnable runnable = (Runnable) this.m;
                if (runnable != null) {
                    return "SequentialExecutorWorker{running=" + runnable + "}";
                }
                StringBuilder sb = new StringBuilder("SequentialExecutorWorker{state=");
                int i = ((K60) this.n).n;
                sb.append(i != 1 ? i != 2 ? i != 3 ? i != 4 ? "null" : "RUNNING" : "QUEUED" : "QUEUING" : "IDLE");
                sb.append("}");
                return sb.toString();
            default:
                return super.toString();
        }
    }

    public /* synthetic */ RunnableC0890cD(int i, Object obj, Object obj2, boolean z) {
        this.l = i;
        this.n = obj;
        this.m = obj2;
    }

    public RunnableC0890cD(ServiceConnectionC1807lr0 serviceConnectionC1807lr0, Xo0 xo0, ServiceConnectionC1807lr0 serviceConnectionC1807lr02) {
        this.l = 24;
        this.m = xo0;
        this.n = serviceConnectionC1807lr0;
    }

    public RunnableC0890cD(K60 k60) {
        this.l = 13;
        this.n = k60;
    }

    public RunnableC0890cD(SwipeDismissBehavior swipeDismissBehavior, View view, boolean z) {
        this.l = 16;
        this.n = swipeDismissBehavior;
        this.m = view;
    }

    public RunnableC0890cD(AbstractC2792wC abstractC2792wC, View view, Rect rect) {
        this.l = 6;
        this.m = view;
        this.n = rect;
    }
}
