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

import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.TimeUnit;

/* JADX INFO: loaded from: classes2.dex */
public final class w11 implements n61 {

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

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

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

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

    public w11(n61 n61Var, long j10, ScheduledExecutorService scheduledExecutorService) {
        this.f17847c = n61Var;
        this.f17846b = j10;
        this.f17848d = scheduledExecutorService;
    }

    @Override // com.google.android.gms.internal.ads.n61
    public final com.google.common.util.concurrent.w zza() {
        int i10 = this.f17845a;
        Object obj = this.f17848d;
        Object obj2 = this.f17847c;
        switch (i10) {
            case 0:
                ((i8.d) ((i8.c) obj2)).getClass();
                return ih1.k(new x11((ib1) obj, System.currentTimeMillis(), this.f17846b));
            default:
                com.google.common.util.concurrent.w wVarZza = ((n61) obj2).zza();
                TimeUnit timeUnit = TimeUnit.MILLISECONDS;
                if (((Boolean) n7.y.f31093e.f31096c.b(ao.M2)).booleanValue()) {
                    timeUnit = TimeUnit.MICROSECONDS;
                }
                long j10 = this.f17846b;
                if (j10 > 0) {
                    wVarZza = ih1.Z0(wVarZza, j10, timeUnit, (ScheduledExecutorService) obj);
                }
                return ih1.W0(wVarZza, Throwable.class, new wt(this, 8), b30.f9365g);
        }
    }

    @Override // com.google.android.gms.internal.ads.n61
    public final int zzb() {
        switch (this.f17845a) {
            case 0:
                return 4;
            default:
                return ((n61) this.f17847c).zzb();
        }
    }

    public w11(i8.c cVar, ib1 ib1Var, long j10) {
        this.f17847c = cVar;
        this.f17848d = ib1Var;
        this.f17846b = j10;
    }
}
