package o;

import java.util.Map;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public final /* synthetic */ class W60 implements ED {
    public static final W60 a;
    private static final L60 descriptor;

    static {
        W60 w60 = new W60();
        a = w60;
        BX bx = new BX("com.google.firebase.sessions.SessionData", w60, 3);
        bx.k("sessionDetails", false);
        bx.k("backgroundTime", true);
        bx.k("processDataMap", true);
        descriptor = bx;
    }

    @Override // o.EJ
    public final Object a(Ua0 ua0) {
        L60 l60 = descriptor;
        Ua0 ua0B = ua0.b(l60);
        EJ[] ejArr = Y60.d;
        C0882c70 c0882c70 = null;
        boolean z = true;
        int i = 0;
        C2732vf0 c2732vf0 = null;
        Map map = null;
        while (z) {
            int iJ = ua0B.j(l60);
            if (iJ == -1) {
                z = false;
            } else if (iJ == 0) {
                c0882c70 = (C0882c70) ua0B.q(l60, 0, C0691a70.a, c0882c70);
                i |= 1;
            } else if (iJ == 1) {
                c2732vf0 = (C2732vf0) ua0B.p(l60, 1, C2447sf0.a, c2732vf0);
                i |= 2;
            } else {
                if (iJ != 2) {
                    throw new C2324rJ(iJ);
                }
                map = (Map) ua0B.p(l60, 2, ejArr[2], map);
                i |= 4;
            }
        }
        ua0B.u(l60);
        return new Y60(i, c0882c70, c2732vf0, map);
    }

    @Override // o.ED
    public final EJ[] b() {
        return new EJ[]{C0691a70.a, AbstractC2461sm0.y(C2447sf0.a), AbstractC2461sm0.y(Y60.d[2])};
    }

    @Override // o.EJ
    public final void c(C0173Gr c0173Gr, Object obj) {
        Y60 y60 = (Y60) obj;
        L60 l60 = descriptor;
        C0173Gr c0173GrC = c0173Gr.c(l60);
        EJ[] ejArr = Y60.d;
        C0691a70 c0691a70 = C0691a70.a;
        C0882c70 c0882c70 = y60.a;
        Map map = y60.c;
        C2732vf0 c2732vf0 = y60.b;
        c0173GrC.j(l60, 0, c0691a70, c0882c70);
        if (c0173GrC.p() || c2732vf0 != null) {
            c0173GrC.i(l60, 1, C2447sf0.a, c2732vf0);
        }
        if (c0173GrC.p() || map != null) {
            c0173GrC.i(l60, 2, ejArr[2], map);
        }
        c0173GrC.m();
    }

    @Override // o.EJ
    public final L60 d() {
        return descriptor;
    }
}
