package com.martsnew.data.model.response;

import B6.v;
import P6.g;
import d5.AbstractC0844a;
import e0.C0853a;
import java.util.List;
import o6.AbstractC1380C;
import o6.AbstractC1391k;
import o6.AbstractC1394n;
import o6.AbstractC1397q;
import o6.x;

/* JADX INFO: loaded from: classes.dex */
public final class ListPlayerResponseJsonAdapter extends AbstractC1391k {

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

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final AbstractC1391k f10840b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final AbstractC1391k f10841c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final AbstractC1391k f10842d;

    public ListPlayerResponseJsonAdapter(x xVar) {
        g.e(xVar, "moshi");
        this.f10839a = C0853a.B("allowed", "percent_show", "force", "players");
        v vVar = v.f1034q;
        this.f10840b = xVar.b(Boolean.class, vVar, "allowed");
        this.f10841c = xVar.b(Integer.class, vVar, "percentShow");
        this.f10842d = xVar.b(AbstractC1380C.f(PlayerResponse.class), vVar, "players");
    }

    @Override // o6.AbstractC1391k
    public final Object b(AbstractC1394n abstractC1394n) {
        g.e(abstractC1394n, "reader");
        abstractC1394n.b();
        Boolean bool = null;
        Integer num = null;
        Integer num2 = null;
        List list = null;
        while (abstractC1394n.n()) {
            int iQ = abstractC1394n.Q(this.f10839a);
            if (iQ == -1) {
                abstractC1394n.V();
                abstractC1394n.f0();
            } else if (iQ != 0) {
                AbstractC1391k abstractC1391k = this.f10841c;
                if (iQ == 1) {
                    num = (Integer) abstractC1391k.b(abstractC1394n);
                } else if (iQ == 2) {
                    num2 = (Integer) abstractC1391k.b(abstractC1394n);
                } else if (iQ == 3) {
                    list = (List) this.f10842d.b(abstractC1394n);
                }
            } else {
                bool = (Boolean) this.f10840b.b(abstractC1394n);
            }
        }
        abstractC1394n.j();
        return new ListPlayerResponse(bool, num, num2, list);
    }

    @Override // o6.AbstractC1391k
    public final void e(AbstractC1397q abstractC1397q, Object obj) {
        ListPlayerResponse listPlayerResponse = (ListPlayerResponse) obj;
        g.e(abstractC1397q, "writer");
        if (listPlayerResponse == null) {
            throw new NullPointerException("value_ was null! Wrap in .nullSafe() to write nullable values.");
        }
        abstractC1397q.b();
        abstractC1397q.m("allowed");
        this.f10840b.e(abstractC1397q, listPlayerResponse.f10835a);
        abstractC1397q.m("percent_show");
        AbstractC1391k abstractC1391k = this.f10841c;
        abstractC1391k.e(abstractC1397q, listPlayerResponse.f10836b);
        abstractC1397q.m("force");
        abstractC1391k.e(abstractC1397q, listPlayerResponse.f10837c);
        abstractC1397q.m("players");
        this.f10842d.e(abstractC1397q, listPlayerResponse.f10838d);
        abstractC1397q.g();
    }

    public final String toString() {
        return AbstractC0844a.h(40, "GeneratedJsonAdapter(ListPlayerResponse)");
    }
}
