package lq;

import kotlin.text.c0;

/* loaded from: classes3.dex */
public final class f extends iq.a {

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

    /* renamed from: b, reason: collision with root package name */
    private final mq.b f28507b;

    public f(a lexer, kq.a json) {
        kotlin.jvm.internal.t.g(lexer, "lexer");
        kotlin.jvm.internal.t.g(json, "json");
        this.f28506a = lexer;
        this.f28507b = json.c();
    }

    @Override // iq.a, iq.d
    public short C() {
        a aVar = this.f28506a;
        String s10 = aVar.s();
        try {
            return c0.k(s10);
        } catch (IllegalArgumentException unused) {
            a.y(aVar, "Failed to parse type 'UShort' for input '" + s10 + '\'', 0, null, 6, null);
            throw new rm.k();
        }
    }

    @Override // iq.b
    public int F(hq.e descriptor) {
        kotlin.jvm.internal.t.g(descriptor, "descriptor");
        throw new IllegalStateException("unsupported".toString());
    }

    @Override // iq.a, iq.d
    public int h() {
        a aVar = this.f28506a;
        String s10 = aVar.s();
        try {
            return c0.e(s10);
        } catch (IllegalArgumentException unused) {
            a.y(aVar, "Failed to parse type 'UInt' for input '" + s10 + '\'', 0, null, 6, null);
            throw new rm.k();
        }
    }

    @Override // iq.a, iq.d
    public long o() {
        a aVar = this.f28506a;
        String s10 = aVar.s();
        try {
            return c0.h(s10);
        } catch (IllegalArgumentException unused) {
            a.y(aVar, "Failed to parse type 'ULong' for input '" + s10 + '\'', 0, null, 6, null);
            throw new rm.k();
        }
    }

    @Override // iq.a, iq.d
    public byte y() {
        a aVar = this.f28506a;
        String s10 = aVar.s();
        try {
            return c0.b(s10);
        } catch (IllegalArgumentException unused) {
            a.y(aVar, "Failed to parse type 'UByte' for input '" + s10 + '\'', 0, null, 6, null);
            throw new rm.k();
        }
    }
}
