package g6;

import com.google.android.gms.measurement.internal.m1;
import com.google.android.gms.measurement.internal.s;
import com.google.android.gms.measurement.internal.w2;
import io.flutter.embedding.engine.FlutterJNI;

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

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

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final long f26258b;

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

    public /* synthetic */ l(Object obj, long j10, int i10) {
        this.f26257a = i10;
        this.f26259c = obj;
        this.f26258b = j10;
    }

    @Override // java.lang.Runnable
    public final void run() {
        int i10 = this.f26257a;
        long j10 = this.f26258b;
        Object obj = this.f26259c;
        switch (i10) {
            case 0:
                o oVar = (o) obj;
                if (oVar.irt != null) {
                    oVar.irt.obtainMessage(106, Long.valueOf(j10)).sendToTarget();
                }
                break;
            case 1:
                ((s) obj).H(j10);
                break;
            case 2:
                w2 w2Var = (w2) obj;
                ((m1) w2Var.f31277a).h().D(j10);
                w2Var.f21961e = null;
                break;
            default:
                FlutterJNI flutterJNI = (FlutterJNI) obj;
                if (flutterJNI.isAttached()) {
                    flutterJNI.unregisterTexture(j10);
                    break;
                }
                break;
        }
    }

    public l(long j10, FlutterJNI flutterJNI) {
        this.f26257a = 3;
        this.f26258b = j10;
        this.f26259c = flutterJNI;
    }
}
