package defpackage;

import java.nio.ByteBuffer;

/* renamed from: ᵣʿʽᵭ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final class C3335 {

    /* renamed from: ᵻᵢﹳᵰ, reason: contains not printable characters */
    public static final ThreadLocal f12443 = new ThreadLocal();

    /* renamed from: ˏᵙ, reason: contains not printable characters */
    public volatile int f12444 = 0;

    /* renamed from: ᵥᵯˎ, reason: contains not printable characters */
    public final int f12445;

    /* renamed from: ᵴᵳ, reason: contains not printable characters */
    public final ᵮᵥٴ f12446;

    public C3335(ᵮᵥٴ r2, int i) {
        this.f12446 = r2;
        this.f12445 = i;
    }

    public final String toString() {
        int i;
        StringBuilder sb = new StringBuilder();
        sb.append(super.toString());
        sb.append(", id:");
        C0592 c0592M7728 = m7728();
        int iM9853 = c0592M7728.m9853(4);
        sb.append(Integer.toHexString(iM9853 != 0 ? ((ByteBuffer) c0592M7728.f17274).getInt(iM9853 + c0592M7728.f17273) : 0));
        sb.append(", codepoints:");
        C0592 c0592M77282 = m7728();
        int iM98532 = c0592M77282.m9853(16);
        if (iM98532 != 0) {
            int i2 = iM98532 + c0592M77282.f17273;
            i = ((ByteBuffer) c0592M77282.f17274).getInt(((ByteBuffer) c0592M77282.f17274).getInt(i2) + i2);
        } else {
            i = 0;
        }
        for (int i3 = 0; i3 < i; i3++) {
            sb.append(Integer.toHexString(m7727(i3)));
            sb.append(" ");
        }
        return sb.toString();
    }

    /* renamed from: ᵥᵯˎ, reason: contains not printable characters */
    public final int m7727(int i) {
        C0592 c0592M7728 = m7728();
        int iM9853 = c0592M7728.m9853(16);
        if (iM9853 == 0) {
            return 0;
        }
        ByteBuffer byteBuffer = (ByteBuffer) c0592M7728.f17274;
        int i2 = iM9853 + c0592M7728.f17273;
        return byteBuffer.getInt((i * 4) + byteBuffer.getInt(i2) + i2 + 4);
    }

    /* renamed from: ᵴᵳ, reason: contains not printable characters */
    public final C0592 m7728() {
        ThreadLocal threadLocal = f12443;
        C0592 c0592 = (C0592) threadLocal.get();
        if (c0592 == null) {
            c0592 = new C0592();
            threadLocal.set(c0592);
        }
        C3490 c3490 = (C3490) this.f12446.ᵢˇᵭ;
        int iM9853 = c3490.m9853(6);
        if (iM9853 != 0) {
            int i = iM9853 + c3490.f17273;
            int i2 = (this.f12445 * 4) + ((ByteBuffer) c3490.f17274).getInt(i) + i + 4;
            int i3 = ((ByteBuffer) c3490.f17274).getInt(i2) + i2;
            ByteBuffer byteBuffer = (ByteBuffer) c3490.f17274;
            c0592.f17274 = byteBuffer;
            if (byteBuffer != null) {
                c0592.f17273 = i3;
                int i4 = i3 - byteBuffer.getInt(i3);
                c0592.f17272 = i4;
                c0592.f17275 = ((ByteBuffer) c0592.f17274).getShort(i4);
                return c0592;
            }
            c0592.f17273 = 0;
            c0592.f17272 = 0;
            c0592.f17275 = 0;
        }
        return c0592;
    }
}
