package com.google.android.gms.internal.ads;

import android.view.Surface;
import java.util.Objects;

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

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

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

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

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

    public /* synthetic */ o1(q1 q1Var, Surface surface, long j10) {
        this.f14793c = q1Var;
        this.f14794d = surface;
        this.f14792b = j10;
    }

    @Override // java.lang.Runnable
    public final void run() {
        long j10 = this.f14792b;
        int i10 = this.f14791a;
        Object obj = this.f14793c;
        Object obj2 = this.f14794d;
        switch (i10) {
            case 0:
                ((q1) obj).p(j10, obj2);
                break;
            case 1:
                gc gcVar = (gc) obj2;
                gcVar.f11695a.a(j10, (String) obj);
                gcVar.f11695a.b(gcVar.toString());
                break;
            default:
                lf1 lf1Var = (lf1) obj2;
                cf1 cf1Var = lf1Var.f13674o;
                if (cf1Var != null) {
                    cf1Var.zzi(j10, lf1.zzX((n7.m2) obj), lf1Var.f13676q, lf1Var.f13664e.f31012d, lf1Var.p(), lf1Var.i());
                }
                break;
        }
    }

    public o1(gc gcVar, String str, long j10) {
        this.f14793c = str;
        this.f14792b = j10;
        Objects.requireNonNull(gcVar);
        this.f14794d = gcVar;
    }

    public o1(lf1 lf1Var, long j10, n7.m2 m2Var) {
        this.f14792b = j10;
        this.f14793c = m2Var;
        Objects.requireNonNull(lf1Var);
        this.f14794d = lf1Var;
    }
}
