package com.google.android.gms.internal.measurement;

/* loaded from: classes3.dex */
final class zznv {
    public static /* bridge */ /* synthetic */ void zza(byte b4, byte b5, byte b6, byte b7, char[] cArr, int i) {
        if (!zze(b5)) {
            if ((((b5 + 112) + (b4 << 28)) >> 30) == 0 && !zze(b6) && !zze(b7)) {
                int i4 = ((b4 & 7) << 18) | ((b5 & 63) << 12) | ((b6 & 63) << 6) | (b7 & 63);
                cArr[i] = (char) ((i4 >>> 10) + 55232);
                cArr[i + 1] = (char) ((i4 & 1023) + 56320);
                return;
            }
        }
        throw zzll.zzc();
    }

    public static /* bridge */ /* synthetic */ void zzb(byte b4, byte b5, byte b6, char[] cArr, int i) {
        if (!zze(b5)) {
            if (b4 == -32) {
                if (b5 >= -96) {
                    b4 = -32;
                }
            }
            if (b4 == -19) {
                if (b5 < -96) {
                    b4 = -19;
                }
            }
            if (!zze(b6)) {
                cArr[i] = (char) (((b4 & 15) << 12) | ((b5 & 63) << 6) | (b6 & 63));
                return;
            }
        }
        throw zzll.zzc();
    }

    public static /* bridge */ /* synthetic */ void zzc(byte b4, byte b5, char[] cArr, int i) {
        if (b4 < -62 || zze(b5)) {
            throw zzll.zzc();
        }
        cArr[i] = (char) (((b4 & 31) << 6) | (b5 & 63));
    }

    public static /* bridge */ /* synthetic */ boolean zzd(byte b4) {
        return b4 >= 0;
    }

    private static boolean zze(byte b4) {
        return b4 > -65;
    }
}
