package o; import java.util.Arrays; /* loaded from: classes2.dex */ public final class Thz { public final int a; public final byte[] b; public final int d; private final CharSequence e; public Thz(CharSequence charSequence, int i, int i2) { this.e = charSequence; this.a = i; this.d = i2; byte[] bArr = new byte[i * i2]; this.b = bArr; Arrays.fill(bArr, (byte) -1); } public final void a(int i, int i2, int i3, int i4) { if (i < 0) { int i5 = this.d; i += i5; i2 += 4 - ((i5 + 4) % 8); } if (i2 < 0) { int i6 = this.a; i2 += i6; i += 4 - ((i6 + 4) % 8); } this.b[(i * this.a) + i2] = (byte) ((this.e.charAt(i3) & (1 << (8 - i4))) == 0 ? 0 : 1); } public final void c(int i, int i2, int i3) { int i4 = i - 2; int i5 = i2 - 2; a(i4, i5, i3, 1); int i6 = i2 - 1; a(i4, i6, i3, 2); int i7 = i - 1; a(i7, i5, i3, 3); a(i7, i6, i3, 4); a(i7, i2, i3, 5); a(i, i5, i3, 6); a(i, i6, i3, 7); a(i, i2, i3, 8); } }