package com.google.crypto.tink.shaded.protobuf;

import java.nio.charset.Charset;

/* JADX INFO: loaded from: classes.dex */
public final class K {

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public static final C0752s f10441b = new C0752s(1);

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final Object f10442a;

    public K(C0745k c0745k) {
        AbstractC0759z.a(c0745k, "output");
        this.f10442a = c0745k;
        c0745k.f10516h = this;
    }

    public void a(int i, AbstractC0742h abstractC0742h) throws F0.t {
        C0745k c0745k = (C0745k) this.f10442a;
        c0745k.f0(i, 2);
        c0745k.g0(abstractC0742h.size());
        C0741g c0741g = (C0741g) abstractC0742h;
        c0745k.Z(c0741g.f10494t, c0741g.h(), c0741g.size());
    }

    public void b(int i, Object obj, b0 b0Var) throws F0.t {
        C0745k c0745k = (C0745k) this.f10442a;
        c0745k.f0(i, 3);
        b0Var.h((AbstractC0735a) obj, c0745k.f10516h);
        c0745k.f0(i, 4);
    }

    public void c(int i, Object obj, b0 b0Var) throws F0.t {
        AbstractC0735a abstractC0735a = (AbstractC0735a) obj;
        C0745k c0745k = (C0745k) this.f10442a;
        c0745k.f0(i, 2);
        c0745k.g0(abstractC0735a.a(b0Var));
        b0Var.h(abstractC0735a, c0745k.f10516h);
    }

    public K() {
        O o8;
        try {
            o8 = (O) Class.forName("com.google.crypto.tink.shaded.protobuf.DescriptorMessageInfoFactory").getDeclaredMethod("getInstance", null).invoke(null, null);
        } catch (Exception unused) {
            o8 = f10441b;
        }
        O[] oArr = {C0752s.f10540b, o8};
        J j8 = new J();
        j8.f10440a = oArr;
        Charset charset = AbstractC0759z.f10544a;
        this.f10442a = j8;
    }
}
