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

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

/* JADX INFO: loaded from: classes2.dex */
public final class ta extends j {

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

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

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

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public ta(i6 i6Var, boolean z10, boolean z11) {
        super("log");
        this.f20430e = i6Var;
        this.f20428c = z10;
        this.f20429d = z11;
    }

    @Override // com.google.android.gms.internal.measurement.j
    public final n a(u.e eVar, List list) {
        y5.F(1, list, "log");
        int size = list.size();
        zzs zzsVar = zzs.f20673c;
        t tVar = n.f20321v;
        i6 i6Var = this.f20430e;
        if (size == 1) {
            ((com.google.android.gms.measurement.internal.h) i6Var.f20236d).b(zzsVar, eVar.q((n) list.get(0)).zzf(), Collections.emptyList(), this.f20428c, this.f20429d);
            return tVar;
        }
        int iB = y5.B(eVar.q((n) list.get(0)).zze().doubleValue());
        if (iB == 2) {
            zzsVar = zzs.f20674d;
        } else if (iB == 3) {
            zzsVar = zzs.f20671a;
        } else if (iB == 5) {
            zzsVar = zzs.f20675e;
        } else if (iB == 6) {
            zzsVar = zzs.f20672b;
        }
        zzs zzsVar2 = zzsVar;
        String strZzf = eVar.q((n) list.get(1)).zzf();
        if (list.size() == 2) {
            ((com.google.android.gms.measurement.internal.h) i6Var.f20236d).b(zzsVar2, strZzf, Collections.emptyList(), this.f20428c, this.f20429d);
            return tVar;
        }
        ArrayList arrayList = new ArrayList();
        for (int i10 = 2; i10 < Math.min(list.size(), 5); i10++) {
            arrayList.add(eVar.q((n) list.get(i10)).zzf());
        }
        ((com.google.android.gms.measurement.internal.h) i6Var.f20236d).b(zzsVar2, strZzf, arrayList, this.f20428c, this.f20429d);
        return tVar;
    }
}
