package defpackage;

import com.google.android.gms.internal.measurement.zzaeh;
import com.google.android.gms.internal.measurement.zzafy;
import java.io.IOException;
import java.io.InputStream;

/* renamed from: ˋᵯᵚ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final class C1532 implements InterfaceC2916 {

    /* renamed from: ᵥᵯˎ, reason: contains not printable characters */
    public final AbstractC4985 f6137;

    static {
        C1037 c1037 = C1037.f4510;
        int i = AbstractC5422.f20320;
    }

    public C1532(AbstractC4985 abstractC4985) {
        this.f6137 = abstractC4985;
    }

    /* renamed from: ᵥᵯˎ, reason: contains not printable characters */
    public final AbstractC4985 m4461(InputStream inputStream, C1037 c1037) throws zzaeh {
        AbstractC3415 abstractC3415M7775 = AbstractC3415.m7775(inputStream, 4096);
        int i = AbstractC4985.zzd;
        AbstractC4985 abstractC4985M10435 = this.f6137.m10435();
        try {
            InterfaceC1461 interfaceC1461M11073 = C5430.f20370.m11073(abstractC4985M10435.getClass());
            C1326 c1326 = (C1326) abstractC3415M7775.f12709;
            if (c1326 == null) {
                c1326 = new C1326(abstractC3415M7775);
            }
            interfaceC1461M11073.mo3033(abstractC4985M10435, c1326, c1037);
            interfaceC1461M11073.mo3035(abstractC4985M10435);
            abstractC3415M7775.mo5585(0);
            if (AbstractC4985.m10428(abstractC4985M10435, true)) {
                return abstractC4985M10435;
            }
            throw new zzafy().m809();
        } catch (zzaeh e) {
            if (e.f1025) {
                throw new zzaeh(e.getMessage(), e);
            }
            throw e;
        } catch (zzafy e2) {
            throw e2.m809();
        } catch (IOException e3) {
            if (e3.getCause() instanceof zzaeh) {
                throw ((zzaeh) e3.getCause());
            }
            throw new zzaeh(e3.getMessage(), e3);
        } catch (RuntimeException e4) {
            if (e4.getCause() instanceof zzaeh) {
                throw ((zzaeh) e4.getCause());
            }
            throw e4;
        }
    }
}
