package o;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.sf0, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final /* synthetic */ class C2447sf0 implements ED {
    public static final C2447sf0 a;
    private static final L60 descriptor;

    static {
        C2447sf0 c2447sf0 = new C2447sf0();
        a = c2447sf0;
        BX bx = new BX("com.google.firebase.sessions.Time", c2447sf0, 3);
        bx.k("ms", false);
        bx.k("us", true);
        bx.k("seconds", true);
        descriptor = bx;
    }

    @Override // o.EJ
    public final Object a(Ua0 ua0) {
        L60 l60 = descriptor;
        Ua0 ua0B = ua0.b(l60);
        int i = 0;
        long jN = 0;
        long jN2 = 0;
        long jN3 = 0;
        boolean z = true;
        while (z) {
            int iJ = ua0B.j(l60);
            if (iJ == -1) {
                z = false;
            } else if (iJ == 0) {
                jN = ua0B.n(l60, 0);
                i |= 1;
            } else if (iJ == 1) {
                jN2 = ua0B.n(l60, 1);
                i |= 2;
            } else {
                if (iJ != 2) {
                    throw new C2324rJ(iJ);
                }
                jN3 = ua0B.n(l60, 2);
                i |= 4;
            }
        }
        ua0B.u(l60);
        return new C2732vf0(i, jN, jN2, jN3);
    }

    @Override // o.ED
    public final EJ[] b() {
        SM sm = SM.a;
        return new EJ[]{sm, sm, sm};
    }

    @Override // o.EJ
    public final void c(C0173Gr c0173Gr, Object obj) {
        C2732vf0 c2732vf0 = (C2732vf0) obj;
        L60 l60 = descriptor;
        C0173Gr c0173GrC = c0173Gr.c(l60);
        long j = c2732vf0.a;
        long j2 = c2732vf0.c;
        long j3 = c2732vf0.b;
        c0173GrC.e(l60, 0);
        c0173GrC.g(j);
        if (c0173GrC.p() || j3 != 1000 * j) {
            c0173GrC.e(l60, 1);
            c0173GrC.g(j3);
        }
        if (c0173GrC.p() || j2 != j / 1000) {
            c0173GrC.e(l60, 2);
            c0173GrC.g(j2);
        }
        c0173GrC.m();
    }

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