56 lines
1.8 KiB
Java
56 lines
1.8 KiB
Java
|
package com.google.android.gms.internal.p002firebaseauthapi;
|
||
|
|
||
|
import com.google.common.base.Ascii;
|
||
|
import net.sf.scuba.smartcards.ISO7816;
|
||
|
|
||
|
/* loaded from: classes2.dex */
|
||
|
final class zzafy {
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public static /* synthetic */ void zza(byte b, byte b2, byte b3, byte b4, char[] cArr, int i) {
|
||
|
if (zze(b2) || (((b << 28) + (b2 + ISO7816.INS_MANAGE_CHANNEL)) >> 30) != 0 || zze(b3) || zze(b4)) {
|
||
|
throw zzadn.zzd();
|
||
|
}
|
||
|
int i2 = ((b & 7) << 18) | ((b2 & 63) << 12) | ((b3 & 63) << 6) | (b4 & 63);
|
||
|
cArr[i] = (char) ((i2 >>> 10) + 55232);
|
||
|
cArr[i + 1] = (char) ((i2 & 1023) + 56320);
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public static /* synthetic */ void zzc(byte b, byte b2, char[] cArr, int i) {
|
||
|
if (b < -62 || zze(b2)) {
|
||
|
throw zzadn.zzd();
|
||
|
}
|
||
|
cArr[i] = (char) (((b & Ascii.US) << 6) | (b2 & 63));
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public static /* bridge */ /* synthetic */ boolean zzd(byte b) {
|
||
|
return b >= 0;
|
||
|
}
|
||
|
|
||
|
private static boolean zze(byte b) {
|
||
|
return b > -65;
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public static /* synthetic */ void zzb(byte b, byte b2, byte b3, char[] cArr, int i) {
|
||
|
if (!zze(b2)) {
|
||
|
if (b == -32) {
|
||
|
if (b2 >= -96) {
|
||
|
b = -32;
|
||
|
}
|
||
|
}
|
||
|
if (b == -19) {
|
||
|
if (b2 < -96) {
|
||
|
b = -19;
|
||
|
}
|
||
|
}
|
||
|
if (!zze(b3)) {
|
||
|
cArr[i] = (char) (((b & 15) << 12) | ((b2 & 63) << 6) | (b3 & 63));
|
||
|
return;
|
||
|
}
|
||
|
}
|
||
|
throw zzadn.zzd();
|
||
|
}
|
||
|
}
|