package o; import org.jmrtd.cbeff.ISO781611; /* renamed from: o.awV, reason: case insensitive filesystem */ /* loaded from: classes2.dex */ public final class C3381awV implements InterfaceC16012kTv { @Override // o.InterfaceC16012kTv public final void c(C8198dDy c8198dDy) { char charAt; String str = c8198dDy.a; int i = c8198dDy.j; int length = str.length(); int i2 = i; while (i2 < length && (charAt = str.charAt(i2)) >= '0' && charAt <= '9') { i2++; } if (i2 - i >= 2) { char charAt2 = c8198dDy.a.charAt(c8198dDy.j); char charAt3 = c8198dDy.a.charAt(c8198dDy.j + 1); if (charAt2 < '0' || charAt2 > '9' || charAt3 < '0' || charAt3 > '9') { StringBuilder sb = new StringBuilder("not digits: "); sb.append(charAt2); sb.append(charAt3); throw new IllegalArgumentException(sb.toString()); } c8198dDy.c.append((char) (((charAt2 - '0') * 10) + (charAt3 - '0') + ISO781611.BIOMETRIC_SUBTYPE_TAG)); c8198dDy.j += 2; return; } char charAt4 = c8198dDy.a.charAt(c8198dDy.j); int a = GpJ.a(c8198dDy.a, c8198dDy.j, 0); if (a == 0) { if (charAt4 >= 128 && charAt4 <= 255) { c8198dDy.c.append((char) 235); c8198dDy.c.append((char) (charAt4 - 127)); c8198dDy.j++; return; } else { c8198dDy.c.append((char) (charAt4 + 1)); c8198dDy.j++; return; } } if (a == 1) { c8198dDy.c.append((char) 230); c8198dDy.d = 1; return; } if (a == 2) { c8198dDy.c.append((char) 239); c8198dDy.d = 2; return; } if (a == 3) { c8198dDy.c.append((char) 238); c8198dDy.d = 3; } else if (a == 4) { c8198dDy.c.append((char) 240); c8198dDy.d = 4; } else { if (a != 5) { throw new IllegalStateException("Illegal mode: ".concat(String.valueOf(a))); } c8198dDy.c.append((char) 231); c8198dDy.d = 5; } } }