package F1;

import android.animation.ValueAnimator;
import android.view.View;
import k4.r0;
import m4.AbstractC2488a;
import m4.EnumC2550v;
import m4.H0;
import m4.d2;
import m4.e2;
import m4.f2;

/* JADX INFO: loaded from: classes.dex */
public final class O implements Runnable {

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

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

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

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final /* synthetic */ Object f1391d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public final /* synthetic */ Object f1392e;

    public /* synthetic */ O(Object obj, Object obj2, Object obj3, Object obj4, int i6) {
        this.f1388a = i6;
        this.f1392e = obj;
        this.f1389b = obj2;
        this.f1390c = obj3;
        this.f1391d = obj4;
    }

    /* JADX WARN: Finally extract failed */
    @Override // java.lang.Runnable
    public final void run() {
        switch (this.f1388a) {
            case 0:
                Q.i((View) this.f1389b, (V) this.f1390c, (T.p) this.f1391d);
                ((ValueAnimator) this.f1392e).start();
                return;
            case 1:
                ((AbstractC2488a) this.f1392e).b((r0) this.f1389b, (EnumC2550v) this.f1390c, (k4.g0) this.f1391d);
                return;
            case 2:
                ((m4.P) this.f1392e).f20715a.b((r0) this.f1389b, (EnumC2550v) this.f1390c, (k4.g0) this.f1391d);
                return;
            case 3:
                H0 h0 = (H0) this.f1392e;
                h0.f20636z = true;
                h0.f20631u.b((r0) this.f1389b, (EnumC2550v) this.f1390c, (k4.g0) this.f1391d);
                return;
            default:
                synchronized (((f2) this.f1392e)) {
                    try {
                        if (((d2) this.f1389b).f20984b == 0) {
                            try {
                                ((e2) this.f1390c).d(this.f1391d);
                                ((f2) this.f1392e).f21025a.remove((e2) this.f1390c);
                                if (((f2) this.f1392e).f21025a.isEmpty()) {
                                    ((f2) this.f1392e).f21027c.shutdown();
                                    ((f2) this.f1392e).f21027c = null;
                                }
                            } catch (Throwable th) {
                                ((f2) this.f1392e).f21025a.remove((e2) this.f1390c);
                                if (((f2) this.f1392e).f21025a.isEmpty()) {
                                    ((f2) this.f1392e).f21027c.shutdown();
                                    ((f2) this.f1392e).f21027c = null;
                                }
                                throw th;
                            }
                        }
                    } catch (Throwable th2) {
                        throw th2;
                    }
                }
                return;
        }
    }

    public O(View view, V v3, T.p pVar, ValueAnimator valueAnimator) {
        this.f1388a = 0;
        this.f1389b = view;
        this.f1390c = v3;
        this.f1391d = pVar;
        this.f1392e = valueAnimator;
    }
}
