package b7;

import c7.l;
import java.util.concurrent.Callable;
import java.util.concurrent.ScheduledFuture;
import java.util.concurrent.TimeUnit;
import v6.v;

/* JADX INFO: loaded from: classes2.dex */
public final /* synthetic */ class g implements d7.a, ya.g {

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

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

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

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

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

    public /* synthetic */ g(h hVar, Iterable iterable, v vVar, long j10) {
        this.f4749a = 0;
        this.f4751c = hVar;
        this.f4752d = iterable;
        this.f4753e = vVar;
        this.f4750b = j10;
    }

    @Override // ya.g
    public final ScheduledFuture a(nb.c cVar) {
        int i10 = this.f4749a;
        long j10 = this.f4750b;
        Object obj = this.f4753e;
        Object obj2 = this.f4752d;
        Object obj3 = this.f4751c;
        switch (i10) {
            case 1:
                ya.f fVar = (ya.f) obj3;
                fVar.getClass();
                ya.d dVar = new ya.d(fVar, (Callable) obj2, cVar, 0);
                return fVar.f36924b.schedule(dVar, j10, (TimeUnit) obj);
            default:
                ya.f fVar2 = (ya.f) obj3;
                fVar2.getClass();
                ya.c cVar2 = new ya.c(fVar2, (Runnable) obj2, cVar, 2);
                return fVar2.f36924b.schedule(cVar2, j10, (TimeUnit) obj);
        }
    }

    @Override // d7.a
    public final Object execute() {
        h hVar = (h) this.f4751c;
        Iterable iterable = (Iterable) this.f4752d;
        v vVar = (v) this.f4753e;
        l lVar = (l) hVar.f4756c;
        lVar.getClass();
        if (iterable.iterator().hasNext()) {
            lVar.x(new androidx.media3.exoplayer.hls.b(lVar, "UPDATE events SET num_attempts = num_attempts + 1 WHERE _id in " + l.M(iterable), "SELECT COUNT(*), transport_name FROM events WHERE num_attempts >= 16 GROUP BY transport_name", 7));
        }
        lVar.x(new androidx.media3.exoplayer.upstream.experimental.a(2, ((e7.c) hVar.f4760g).a() + this.f4750b, vVar));
        return null;
    }

    public /* synthetic */ g(ya.f fVar, Object obj, long j10, TimeUnit timeUnit, int i10) {
        this.f4749a = i10;
        this.f4751c = fVar;
        this.f4752d = obj;
        this.f4750b = j10;
        this.f4753e = timeUnit;
    }
}
