package h.b.o;

import h.b.m.k;
import java.lang.annotation.Annotation;
import java.util.List;

/* JADX INFO: compiled from: ObjectSerializer.kt */
/* JADX INFO: loaded from: classes.dex */
@g.i
public final class w0<T> implements h.b.b<T> {
    public final T a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public List<? extends Annotation> f4455b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final g.g f4456c;

    /* JADX INFO: compiled from: ObjectSerializer.kt */
    @g.i
    public static final class a extends g.h0.c.m implements g.h0.b.a<h.b.m.e> {

        /* JADX INFO: renamed from: b, reason: collision with root package name */
        public final /* synthetic */ String f4457b;

        /* JADX INFO: renamed from: e, reason: collision with root package name */
        public final /* synthetic */ w0<T> f4458e;

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        public a(String str, w0<T> w0Var) {
            super(0);
            this.f4457b = str;
            this.f4458e = w0Var;
        }

        @Override // g.h0.b.a
        public h.b.m.e invoke() {
            return f.a.y.a.v(this.f4457b, k.d.a, new h.b.m.e[0], new v0(this.f4458e));
        }
    }

    public w0(String str, T t) {
        g.h0.c.l.f(str, "serialName");
        g.h0.c.l.f(t, "objectInstance");
        this.a = t;
        this.f4455b = g.c0.l.f4067b;
        this.f4456c = f.a.y.a.u0(g.h.PUBLICATION, new a(str, this));
    }

    @Override // h.b.b, h.b.j, h.b.a
    public h.b.m.e a() {
        return (h.b.m.e) this.f4456c.getValue();
    }

    @Override // h.b.a
    public T c(h.b.n.e eVar) {
        g.h0.c.l.f(eVar, "decoder");
        h.b.m.e eVarA = a();
        h.b.n.c cVarC = eVar.c(eVarA);
        int iX = cVarC.x(a());
        if (iX != -1) {
            throw new h.b.i(d.b.a.a.a.j("Unexpected index ", iX));
        }
        cVarC.a(eVarA);
        return this.a;
    }

    @Override // h.b.j
    public void d(h.b.n.f fVar, T t) {
        g.h0.c.l.f(fVar, "encoder");
        g.h0.c.l.f(t, "value");
        fVar.c(a()).a(a());
    }
}
