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

import java.util.Iterator;
import java.util.List;
import java.util.concurrent.Executor;

/* JADX INFO: loaded from: classes2.dex */
public final class sc0 implements zu1 {

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

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

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

    public sc0(uc0 uc0Var, zu1 zu1Var, int i10) {
        this.f16398a = i10;
        if (i10 != 1) {
            this.f16399b = zu1Var;
            this.f16400c = uc0Var;
        } else {
            this.f16399b = zu1Var;
            this.f16400c = uc0Var;
        }
    }

    @Override // com.google.android.gms.internal.ads.zu1
    public final void zza(Throwable th) {
        int i10 = 4;
        int i11 = this.f16398a;
        zu1 zu1Var = this.f16399b;
        uc0 uc0Var = this.f16400c;
        switch (i11) {
            case 0:
                zu1Var.zza(th);
                uc0Var.getClass();
                b30.f9364f.execute(new z80(uc0Var, i10));
                break;
            default:
                uc0Var.getClass();
                b30.f9364f.execute(new z80(uc0Var, i10));
                zu1Var.zza(th);
                break;
        }
    }

    @Override // com.google.android.gms.internal.ads.zu1
    /* JADX INFO: renamed from: zzb */
    public final /* synthetic */ void mo3zzb(Object obj) {
        int i10 = this.f16398a;
        zu1 zu1Var = this.f16399b;
        uc0 uc0Var = this.f16400c;
        switch (i10) {
            case 0:
                List list = ((rc0) obj).f16101a;
                Executor executor = uc0Var.f17204a;
                if (list == null || list.isEmpty()) {
                    executor.execute(new z80(zu1Var, 5));
                } else {
                    com.google.common.util.concurrent.w wVarK = ih1.k(null);
                    Iterator it = list.iterator();
                    while (it.hasNext()) {
                        wVarK = ih1.e1(ih1.W0(wVarK, Throwable.class, new wt(zu1Var, 3), executor), new tc0(uc0Var, zu1Var, (com.google.common.util.concurrent.w) it.next(), 0), executor);
                    }
                    ih1.z1(wVarK, new sc0(uc0Var, zu1Var, 1), executor);
                }
                break;
            default:
                uc0Var.getClass();
                b30.f9364f.execute(new z80(uc0Var, 4));
                zu1Var.mo3zzb((mc0) obj);
                break;
        }
    }
}
