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

import java.util.ArrayList;
import java.util.HashMap;

/* JADX INFO: loaded from: classes2.dex */
public final class m7 extends m {

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final xyz.stream.utils.t f20316b;

    public m7(xyz.stream.utils.t tVar) {
        this.f20316b = tVar;
    }

    /* JADX WARN: Can't fix incorrect switch cases order, some code will duplicate */
    /* JADX WARN: Failed to restore switch over string. Please report as a decompilation issue */
    /* JADX WARN: Removed duplicated region for block: B:4:0x001f  */
    @Override // com.google.android.gms.internal.measurement.m, com.google.android.gms.internal.measurement.n
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final n g(String str, u.e eVar, ArrayList arrayList) {
        byte b10;
        m7 m7Var;
        switch (str.hashCode()) {
            case 21624207:
                if (str.equals("getEventName")) {
                    b10 = 0;
                    m7Var = this;
                }
                m7Var = this;
                b10 = -1;
                break;
            case 45521504:
                if (str.equals("getTimestamp")) {
                    m7Var = this;
                    b10 = 1;
                } else {
                    m7Var = this;
                    b10 = -1;
                }
                break;
            case 146575578:
                if (str.equals("getParamValue")) {
                    m7Var = this;
                    b10 = 2;
                    break;
                }
                break;
            case 700587132:
                if (str.equals("getParams")) {
                    m7Var = this;
                    b10 = 3;
                    break;
                }
                break;
            case 920706790:
                if (str.equals("setParamValue")) {
                    m7Var = this;
                    b10 = 4;
                    break;
                }
                break;
            case 1570616835:
                if (str.equals("setEventName")) {
                    b10 = 5;
                    m7Var = this;
                }
                m7Var = this;
                b10 = -1;
                break;
        }
        xyz.stream.utils.t tVar = m7Var.f20316b;
        if (b10 == 0) {
            y5.p(0, arrayList, "getEventName");
            return new p(((c) tVar.f36174d).f20135a);
        }
        if (b10 == 1) {
            y5.p(0, arrayList, "getTimestamp");
            return new g(Double.valueOf(((c) tVar.f36174d).f20136b));
        }
        if (b10 == 2) {
            y5.p(1, arrayList, "getParamValue");
            String strZzf = eVar.q((n) arrayList.get(0)).zzf();
            HashMap map = ((c) tVar.f36174d).f20137c;
            return y5.j(map.containsKey(strZzf) ? map.get(strZzf) : null);
        }
        if (b10 == 3) {
            y5.p(0, arrayList, "getParams");
            HashMap map2 = ((c) tVar.f36174d).f20137c;
            m mVar = new m();
            for (String str2 : map2.keySet()) {
                mVar.c(str2, y5.j(map2.get(str2)));
            }
            return mVar;
        }
        if (b10 != 4) {
            if (b10 != 5) {
                return super.g(str, eVar, arrayList);
            }
            y5.p(1, arrayList, "setEventName");
            n nVarQ = eVar.q((n) arrayList.get(0));
            if (n.f20321v.equals(nVarQ) || n.f20322w.equals(nVarQ)) {
                throw new IllegalArgumentException("Illegal event name");
            }
            ((c) tVar.f36174d).f20135a = nVarQ.zzf();
            return new p(nVarQ.zzf());
        }
        y5.p(2, arrayList, "setParamValue");
        String strZzf2 = eVar.q((n) arrayList.get(0)).zzf();
        n nVarQ2 = eVar.q((n) arrayList.get(1));
        c cVar = (c) tVar.f36174d;
        Object objM = y5.m(nVarQ2);
        HashMap map3 = cVar.f20137c;
        if (objM == null) {
            map3.remove(strZzf2);
        } else {
            map3.put(strZzf2, c.a(map3.get(strZzf2), objM, strZzf2));
        }
        return nVarQ2;
    }
}
