package ya;

/* JADX INFO: loaded from: classes2.dex */
public final /* synthetic */ class c implements Runnable {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final /* synthetic */ int f36912a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final /* synthetic */ f f36913b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final /* synthetic */ Runnable f36914c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final /* synthetic */ nb.c f36915d;

    public /* synthetic */ c(f fVar, Runnable runnable, nb.c cVar, int i10) {
        this.f36912a = i10;
        this.f36913b = fVar;
        this.f36914c = runnable;
        this.f36915d = cVar;
    }

    @Override // java.lang.Runnable
    public final void run() {
        int i10 = this.f36912a;
        final nb.c cVar = this.f36915d;
        final Runnable runnable = this.f36914c;
        f fVar = this.f36913b;
        switch (i10) {
            case 0:
                fVar.getClass();
                final int i11 = 0;
                fVar.f36923a.execute(new Runnable() { // from class: ya.e
                    @Override // java.lang.Runnable
                    public final void run() throws Exception {
                        int i12 = i11;
                        nb.c cVar2 = cVar;
                        Runnable runnable2 = runnable;
                        switch (i12) {
                            case 0:
                                try {
                                    runnable2.run();
                                    return;
                                } catch (Exception e10) {
                                    h hVar = (h) cVar2.f31183b;
                                    int i13 = h.f36925f;
                                    hVar.h(e10);
                                    throw e10;
                                }
                            case 1:
                                try {
                                    runnable2.run();
                                    h hVar2 = (h) cVar2.f31183b;
                                    int i14 = h.f36925f;
                                    hVar2.set(null);
                                    return;
                                } catch (Exception e11) {
                                    h hVar3 = (h) cVar2.f31183b;
                                    int i15 = h.f36925f;
                                    hVar3.h(e11);
                                    return;
                                }
                            default:
                                try {
                                    runnable2.run();
                                    return;
                                } catch (Exception e12) {
                                    h hVar4 = (h) cVar2.f31183b;
                                    int i16 = h.f36925f;
                                    hVar4.h(e12);
                                    return;
                                }
                        }
                    }
                });
                break;
            case 1:
                fVar.getClass();
                final int i12 = 2;
                fVar.f36923a.execute(new Runnable() { // from class: ya.e
                    @Override // java.lang.Runnable
                    public final void run() throws Exception {
                        int i122 = i12;
                        nb.c cVar2 = cVar;
                        Runnable runnable2 = runnable;
                        switch (i122) {
                            case 0:
                                try {
                                    runnable2.run();
                                    return;
                                } catch (Exception e10) {
                                    h hVar = (h) cVar2.f31183b;
                                    int i13 = h.f36925f;
                                    hVar.h(e10);
                                    throw e10;
                                }
                            case 1:
                                try {
                                    runnable2.run();
                                    h hVar2 = (h) cVar2.f31183b;
                                    int i14 = h.f36925f;
                                    hVar2.set(null);
                                    return;
                                } catch (Exception e11) {
                                    h hVar3 = (h) cVar2.f31183b;
                                    int i15 = h.f36925f;
                                    hVar3.h(e11);
                                    return;
                                }
                            default:
                                try {
                                    runnable2.run();
                                    return;
                                } catch (Exception e12) {
                                    h hVar4 = (h) cVar2.f31183b;
                                    int i16 = h.f36925f;
                                    hVar4.h(e12);
                                    return;
                                }
                        }
                    }
                });
                break;
            default:
                fVar.getClass();
                final int i13 = 1;
                fVar.f36923a.execute(new Runnable() { // from class: ya.e
                    @Override // java.lang.Runnable
                    public final void run() throws Exception {
                        int i122 = i13;
                        nb.c cVar2 = cVar;
                        Runnable runnable2 = runnable;
                        switch (i122) {
                            case 0:
                                try {
                                    runnable2.run();
                                    return;
                                } catch (Exception e10) {
                                    h hVar = (h) cVar2.f31183b;
                                    int i132 = h.f36925f;
                                    hVar.h(e10);
                                    throw e10;
                                }
                            case 1:
                                try {
                                    runnable2.run();
                                    h hVar2 = (h) cVar2.f31183b;
                                    int i14 = h.f36925f;
                                    hVar2.set(null);
                                    return;
                                } catch (Exception e11) {
                                    h hVar3 = (h) cVar2.f31183b;
                                    int i15 = h.f36925f;
                                    hVar3.h(e11);
                                    return;
                                }
                            default:
                                try {
                                    runnable2.run();
                                    return;
                                } catch (Exception e12) {
                                    h hVar4 = (h) cVar2.f31183b;
                                    int i16 = h.f36925f;
                                    hVar4.h(e12);
                                    return;
                                }
                        }
                    }
                });
                break;
        }
    }
}
