package cl;

/* loaded from: classes3.dex */
final class b extends g {

    /* renamed from: c, reason: collision with root package name */
    private final short f12009c;

    /* renamed from: d, reason: collision with root package name */
    private final short f12010d;

    /* JADX INFO: Access modifiers changed from: package-private */
    public b(g gVar, int i10, int i11) {
        super(gVar);
        this.f12009c = (short) i10;
        this.f12010d = (short) i11;
    }

    @Override // cl.g
    public void c(fl.a aVar, byte[] bArr) {
        int i10 = 0;
        while (true) {
            short s10 = this.f12010d;
            if (i10 >= s10) {
                return;
            }
            if (i10 == 0 || (i10 == 31 && s10 <= 62)) {
                aVar.c(31, 5);
                short s11 = this.f12010d;
                if (s11 > 62) {
                    aVar.c(s11 - 31, 16);
                } else if (i10 == 0) {
                    aVar.c(Math.min((int) s11, 31), 5);
                } else {
                    aVar.c(s11 - 31, 5);
                }
            }
            aVar.c(bArr[this.f12009c + i10], 8);
            i10++;
        }
    }

    public String toString() {
        StringBuilder sb2 = new StringBuilder("<");
        sb2.append((int) this.f12009c);
        sb2.append("::");
        sb2.append((this.f12009c + this.f12010d) - 1);
        sb2.append('>');
        return sb2.toString();
    }
}
