package n5; import java.util.Arrays; /* loaded from: classes2.dex */ public final class i { /* renamed from: a, reason: collision with root package name */ private int f12107a; /* renamed from: b, reason: collision with root package name */ private final int[] f12108b = new int[10]; int a(int i10) { return this.f12108b[i10]; } i b(int i10, int i11) { if (i10 >= 0) { int[] iArr = this.f12108b; if (i10 < iArr.length) { this.f12107a = (1 << i10) | this.f12107a; iArr[i10] = i11; } } return this; } void c() { this.f12107a = 0; Arrays.fill(this.f12108b, 0); } void d(i iVar) { for (int i10 = 0; i10 < 10; i10++) { if (iVar.j(i10)) { b(i10, iVar.a(i10)); } } } int e() { if ((this.f12107a & 2) != 0) { return this.f12108b[1]; } return -1; } int f(int i10) { return (this.f12107a & 16) != 0 ? this.f12108b[4] : i10; } int g() { if ((this.f12107a & 128) != 0) { return this.f12108b[7]; } return 65535; } int h(int i10) { return (this.f12107a & 32) != 0 ? this.f12108b[5] : i10; } int i() { return Integer.bitCount(this.f12107a); } boolean j(int i10) { return ((1 << i10) & this.f12107a) != 0; } }