package jq;

import hq.j;
import java.util.List;

/* loaded from: classes3.dex */
public final class t0 implements fq.b {

    /* renamed from: a, reason: collision with root package name */
    private final Object f25278a;

    /* renamed from: b, reason: collision with root package name */
    private List f25279b;

    /* renamed from: c, reason: collision with root package name */
    private final rm.o f25280c;

    /* loaded from: classes3.dex */
    static final class a extends kotlin.jvm.internal.v implements dn.a {

        /* renamed from: p, reason: collision with root package name */
        final /* synthetic */ String f25281p;

        /* renamed from: q, reason: collision with root package name */
        final /* synthetic */ t0 f25282q;

        /* JADX INFO: Access modifiers changed from: package-private */
        /* renamed from: jq.t0$a$a, reason: collision with other inner class name */
        /* loaded from: classes3.dex */
        public static final class C0524a extends kotlin.jvm.internal.v implements dn.l {

            /* renamed from: p, reason: collision with root package name */
            final /* synthetic */ t0 f25283p;

            /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
            C0524a(t0 t0Var) {
                super(1);
                this.f25283p = t0Var;
            }

            public final void a(hq.a buildSerialDescriptor) {
                kotlin.jvm.internal.t.g(buildSerialDescriptor, "$this$buildSerialDescriptor");
                buildSerialDescriptor.h(this.f25283p.f25279b);
            }

            @Override // dn.l
            public /* bridge */ /* synthetic */ Object invoke(Object obj) {
                a((hq.a) obj);
                return rm.n0.f34904a;
            }
        }

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        a(String str, t0 t0Var) {
            super(0);
            this.f25281p = str;
            this.f25282q = t0Var;
        }

        @Override // dn.a
        /* renamed from: a, reason: merged with bridge method [inline-methods] */
        public final hq.e invoke() {
            return hq.h.b(this.f25281p, j.d.f22073a, new hq.e[0], new C0524a(this.f25282q));
        }
    }

    public t0(String serialName, Object objectInstance) {
        List k10;
        rm.o b10;
        kotlin.jvm.internal.t.g(serialName, "serialName");
        kotlin.jvm.internal.t.g(objectInstance, "objectInstance");
        this.f25278a = objectInstance;
        k10 = sm.u.k();
        this.f25279b = k10;
        b10 = rm.q.b(rm.s.PUBLICATION, new a(serialName, this));
        this.f25280c = b10;
    }

    @Override // fq.a
    public Object deserialize(iq.d decoder) {
        int F;
        kotlin.jvm.internal.t.g(decoder, "decoder");
        hq.e descriptor = getDescriptor();
        iq.b a10 = decoder.a(descriptor);
        if (a10.t() || (F = a10.F(getDescriptor())) == -1) {
            rm.n0 n0Var = rm.n0.f34904a;
            a10.w(descriptor);
            return this.f25278a;
        }
        throw new fq.d("Unexpected index " + F);
    }

    @Override // fq.b, fq.a
    public hq.e getDescriptor() {
        return (hq.e) this.f25280c.getValue();
    }
}
