package w8;

import java.util.concurrent.CountDownLatch;

/* JADX INFO: loaded from: classes2.dex */
public final class l implements f, e, c {

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

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

    public l() {
        this.f34227a = 2;
        this.f34228b = new t();
    }

    @Override // w8.c
    public final void a() {
        int i10 = this.f34227a;
        Object obj = this.f34228b;
        switch (i10) {
            case 1:
                ((CountDownLatch) obj).countDown();
                break;
            default:
                ((i) obj).f34224a.l();
                break;
        }
    }

    @Override // w8.e
    public final void onFailure(Exception exc) {
        ((CountDownLatch) this.f34228b).countDown();
    }

    @Override // w8.f
    public final void onSuccess(Object obj) {
        int i10 = this.f34227a;
        Object obj2 = this.f34228b;
        switch (i10) {
            case 0:
                ((l) obj2).a();
                break;
            default:
                ((CountDownLatch) obj2).countDown();
                break;
        }
    }

    public l(i iVar) {
        this.f34227a = 3;
        this.f34228b = iVar;
    }

    public l(l lVar) {
        this.f34227a = 0;
        this.f34228b = lVar;
    }

    public /* synthetic */ l(int i10) {
        this.f34227a = 1;
        this.f34228b = new CountDownLatch(1);
    }
}
