what-the-bank/sources/com/google/android/gms/internal/measurement/zzmm.java

56 lines
1.8 KiB
Java

package com.google.android.gms.internal.measurement;
import com.google.common.base.Ascii;
import net.sf.scuba.smartcards.ISO7816;
/* loaded from: classes.dex */
final class zzmm {
/* 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) throws zzkh {
if (zze(b2) || (((b << 28) + (b2 + ISO7816.INS_MANAGE_CHANNEL)) >> 30) != 0 || zze(b3) || zze(b4)) {
throw zzkh.zzc();
}
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 zzb(byte b, byte b2, char[] cArr, int i) throws zzkh {
if (b < -62 || zze(b2)) {
throw zzkh.zzc();
}
cArr[i] = (char) (((b & Ascii.US) << 6) | (b2 & 63));
}
/* JADX INFO: Access modifiers changed from: package-private */
public static /* 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 zzc(byte b, byte b2, byte b3, char[] cArr, int i) throws zzkh {
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 zzkh.zzc();
}
}