package no;

import java.io.InputStream;
import kotlin.jvm.internal.t;
import kotlin.reflect.jvm.internal.impl.protobuf.g;
import mo.m;
import rm.c0;
import rm.v;

/* loaded from: classes3.dex */
public abstract class c {
    public static final v a(InputStream inputStream) {
        m mVar;
        t.g(inputStream, "<this>");
        try {
            a a10 = a.f30351g.a(inputStream);
            if (a10.h()) {
                g d10 = g.d();
                b.a(d10);
                mVar = m.R(inputStream, d10);
            } else {
                mVar = null;
            }
            v a11 = c0.a(mVar, a10);
            bn.c.a(inputStream, null);
            return a11;
        } finally {
        }
    }
}
