package p041n0; import java.nio.ByteBuffer; /* renamed from: n0.c */ /* loaded from: classes.dex */ public class C1496c { /* renamed from: a */ public int f3326a; /* renamed from: b */ public ByteBuffer f3327b; /* renamed from: c */ public int f3328c; /* renamed from: d */ public int f3329d; /* renamed from: e */ public AbstractC1497d f3330e = AbstractC1497d.m1150a(); /* renamed from: a */ public int m1155a(int i) { return i + this.f3327b.getInt(i); } /* renamed from: b */ public int m1154b(int i) { if (i < this.f3329d) { return this.f3327b.getShort(this.f3328c + i); } return 0; } /* renamed from: c */ public void m1153c(int i, ByteBuffer byteBuffer) { short s; this.f3327b = byteBuffer; if (byteBuffer != null) { this.f3326a = i; int i2 = i - byteBuffer.getInt(i); this.f3328c = i2; s = this.f3327b.getShort(i2); } else { s = 0; this.f3326a = 0; this.f3328c = 0; } this.f3329d = s; } /* renamed from: d */ public int m1152d(int i) { int i2 = i + this.f3326a; return i2 + this.f3327b.getInt(i2) + 4; } /* renamed from: e */ public int m1151e(int i) { int i2 = i + this.f3326a; return this.f3327b.getInt(i2 + this.f3327b.getInt(i2)); } }