package h.b.p.a0;

import jxl.SheetSettings;
import okhttp3.internal.http2.Settings;

/* JADX INFO: compiled from: StreamingJsonDecoder.kt */
/* JADX INFO: loaded from: classes.dex */
@g.i
public final class i extends h.b.n.a {
    public final a a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final h.b.q.c f4519b;

    public i(a aVar, h.b.p.a aVar2) {
        g.h0.c.l.f(aVar, "lexer");
        g.h0.c.l.f(aVar2, "json");
        this.a = aVar;
        this.f4519b = aVar2.f4486c;
    }

    @Override // h.b.n.a, h.b.n.e
    public byte D() {
        g.q qVar;
        a aVar = this.a;
        String strM = aVar.m();
        try {
            g.h0.c.l.f(strM, "<this>");
            g.h0.c.l.f(strM, "<this>");
            g.h0.c.l.f(strM, "<this>");
            g.s sVarP = g.m0.f.P(strM, 10);
            if (sVarP != null) {
                int i2 = sVarP.f4192e;
                qVar = Integer.compareUnsigned(i2, SheetSettings.DEFAULT_DEFAULT_ROW_HEIGHT) > 0 ? null : new g.q((byte) i2);
            }
            if (qVar != null) {
                return qVar.f4187e;
            }
            g.m0.f.s(strM);
            throw null;
        } catch (IllegalArgumentException unused) {
            a.q(aVar, "Failed to parse type 'UByte' for input '" + strM + '\'', 0, null, 6, null);
            throw null;
        }
    }

    @Override // h.b.n.a, h.b.n.e
    public short E() {
        g.x xVar;
        a aVar = this.a;
        String strM = aVar.m();
        try {
            g.h0.c.l.f(strM, "<this>");
            g.h0.c.l.f(strM, "<this>");
            g.h0.c.l.f(strM, "<this>");
            g.s sVarP = g.m0.f.P(strM, 10);
            if (sVarP != null) {
                int i2 = sVarP.f4192e;
                xVar = Integer.compareUnsigned(i2, Settings.DEFAULT_INITIAL_WINDOW_SIZE) > 0 ? null : new g.x((short) i2);
            }
            if (xVar != null) {
                return xVar.f4202e;
            }
            g.m0.f.s(strM);
            throw null;
        } catch (IllegalArgumentException unused) {
            a.q(aVar, "Failed to parse type 'UShort' for input '" + strM + '\'', 0, null, 6, null);
            throw null;
        }
    }

    @Override // h.b.n.c
    public h.b.q.c b() {
        return this.f4519b;
    }

    @Override // h.b.n.a, h.b.n.e
    public int j() {
        a aVar = this.a;
        String strM = aVar.m();
        try {
            g.h0.c.l.f(strM, "<this>");
            g.h0.c.l.f(strM, "<this>");
            g.s sVarP = g.m0.f.P(strM, 10);
            if (sVarP != null) {
                return sVarP.f4192e;
            }
            g.m0.f.s(strM);
            throw null;
        } catch (IllegalArgumentException unused) {
            a.q(aVar, "Failed to parse type 'UInt' for input '" + strM + '\'', 0, null, 6, null);
            throw null;
        }
    }

    @Override // h.b.n.a, h.b.n.e
    public long r() {
        a aVar = this.a;
        String strM = aVar.m();
        try {
            g.h0.c.l.f(strM, "<this>");
            g.u uVarQ = g.m0.f.Q(strM);
            if (uVarQ != null) {
                return uVarQ.f4197e;
            }
            g.m0.f.s(strM);
            throw null;
        } catch (IllegalArgumentException unused) {
            a.q(aVar, "Failed to parse type 'ULong' for input '" + strM + '\'', 0, null, 6, null);
            throw null;
        }
    }

    @Override // h.b.n.c
    public int x(h.b.m.e eVar) {
        g.h0.c.l.f(eVar, "descriptor");
        throw new IllegalStateException("unsupported".toString());
    }
}
