what-the-bank/sources/com/google/android/libraries/places/internal/zzaem.java

465 lines
15 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.google.android.libraries.places.internal;
import java.io.IOException;
import java.util.List;
/* loaded from: classes2.dex */
final class zzaem implements zzahz {
private final zzael zza;
private zzaem(zzael zzaelVar) {
zzafh.zzf(zzaelVar, "output");
this.zza = zzaelVar;
zzaelVar.zza = this;
}
public static zzaem zza(zzael zzaelVar) {
zzaem zzaemVar = zzaelVar.zza;
return zzaemVar != null ? zzaemVar : new zzaem(zzaelVar);
}
@Override // com.google.android.libraries.places.internal.zzahz
public final void zzB(int i, long j) throws IOException {
this.zza.zzr(i, (j + j) ^ (j >> 63));
}
@Override // com.google.android.libraries.places.internal.zzahz
public final void zzD(int i, String str) throws IOException {
this.zza.zzm(i, str);
}
@Override // com.google.android.libraries.places.internal.zzahz
public final void zzE(int i, List list) throws IOException {
int i2 = 0;
if (!(list instanceof zzafo)) {
while (i2 < list.size()) {
this.zza.zzm(i, (String) list.get(i2));
i2++;
}
return;
}
zzafo zzafoVar = (zzafo) list;
while (i2 < list.size()) {
Object zze = zzafoVar.zze(i2);
if (zze instanceof String) {
this.zza.zzm(i, (String) zze);
} else {
this.zza.zze(i, (zzaed) zze);
}
i2++;
}
}
@Override // com.google.android.libraries.places.internal.zzahz
public final void zzF(int i, int i2) throws IOException {
this.zza.zzp(i, i2);
}
@Override // com.google.android.libraries.places.internal.zzahz
public final void zzH(int i, long j) throws IOException {
this.zza.zzr(i, j);
}
@Override // com.google.android.libraries.places.internal.zzahz
public final void zzb(int i, boolean z) throws IOException {
this.zza.zzd(i, z);
}
@Override // com.google.android.libraries.places.internal.zzahz
public final void zzd(int i, zzaed zzaedVar) throws IOException {
this.zza.zze(i, zzaedVar);
}
@Override // com.google.android.libraries.places.internal.zzahz
public final void zze(int i, List list) throws IOException {
for (int i2 = 0; i2 < list.size(); i2++) {
this.zza.zze(i, (zzaed) list.get(i2));
}
}
@Override // com.google.android.libraries.places.internal.zzahz
public final void zzf(int i, double d) throws IOException {
this.zza.zzh(i, Double.doubleToRawLongBits(d));
}
@Override // com.google.android.libraries.places.internal.zzahz
public final void zzh(int i, int i2) throws IOException {
this.zza.zzj(i, i2);
}
@Override // com.google.android.libraries.places.internal.zzahz
public final void zzj(int i, int i2) throws IOException {
this.zza.zzf(i, i2);
}
@Override // com.google.android.libraries.places.internal.zzahz
public final void zzl(int i, long j) throws IOException {
this.zza.zzh(i, j);
}
@Override // com.google.android.libraries.places.internal.zzahz
public final void zzn(int i, float f) throws IOException {
this.zza.zzf(i, Float.floatToRawIntBits(f));
}
@Override // com.google.android.libraries.places.internal.zzahz
public final void zzp(int i, Object obj, zzagr zzagrVar) throws IOException {
zzael zzaelVar = this.zza;
zzaelVar.zzo(i, 3);
zzagrVar.zzf((zzagg) obj, zzaelVar.zza);
zzaelVar.zzo(i, 4);
}
@Override // com.google.android.libraries.places.internal.zzahz
public final void zzq(int i, int i2) throws IOException {
this.zza.zzj(i, i2);
}
@Override // com.google.android.libraries.places.internal.zzahz
public final void zzs(int i, long j) throws IOException {
this.zza.zzr(i, j);
}
@Override // com.google.android.libraries.places.internal.zzahz
public final void zzu(int i, Object obj, zzagr zzagrVar) throws IOException {
zzagg zzaggVar = (zzagg) obj;
zzaei zzaeiVar = (zzaei) this.zza;
zzaeiVar.zzq((i << 3) | 2);
zzaeiVar.zzq(((zzadq) zzaggVar).zzr(zzagrVar));
zzagrVar.zzf(zzaggVar, zzaeiVar.zza);
}
@Override // com.google.android.libraries.places.internal.zzahz
public final void zzv(int i, int i2) throws IOException {
this.zza.zzf(i, i2);
}
@Override // com.google.android.libraries.places.internal.zzahz
public final void zzx(int i, long j) throws IOException {
this.zza.zzh(i, j);
}
@Override // com.google.android.libraries.places.internal.zzahz
public final void zzz(int i, int i2) throws IOException {
this.zza.zzp(i, (i2 + i2) ^ (i2 >> 31));
}
@Override // com.google.android.libraries.places.internal.zzahz
public final void zzA(int i, List list, boolean z) throws IOException {
int i2 = 0;
if (!z) {
while (i2 < list.size()) {
zzael zzaelVar = this.zza;
int intValue = ((Integer) list.get(i2)).intValue();
zzaelVar.zzp(i, (intValue + intValue) ^ (intValue >> 31));
i2++;
}
return;
}
this.zza.zzo(i, 2);
int i3 = 0;
for (int i4 = 0; i4 < list.size(); i4++) {
int intValue2 = ((Integer) list.get(i4)).intValue();
i3 += zzael.zzA((intValue2 + intValue2) ^ (intValue2 >> 31));
}
this.zza.zzq(i3);
while (i2 < list.size()) {
zzael zzaelVar2 = this.zza;
int intValue3 = ((Integer) list.get(i2)).intValue();
zzaelVar2.zzq((intValue3 + intValue3) ^ (intValue3 >> 31));
i2++;
}
}
@Override // com.google.android.libraries.places.internal.zzahz
public final void zzC(int i, List list, boolean z) throws IOException {
int i2 = 0;
if (!z) {
while (i2 < list.size()) {
zzael zzaelVar = this.zza;
long longValue = ((Long) list.get(i2)).longValue();
zzaelVar.zzr(i, (longValue + longValue) ^ (longValue >> 63));
i2++;
}
return;
}
this.zza.zzo(i, 2);
int i3 = 0;
for (int i4 = 0; i4 < list.size(); i4++) {
long longValue2 = ((Long) list.get(i4)).longValue();
i3 += zzael.zzB((longValue2 + longValue2) ^ (longValue2 >> 63));
}
this.zza.zzq(i3);
while (i2 < list.size()) {
zzael zzaelVar2 = this.zza;
long longValue3 = ((Long) list.get(i2)).longValue();
zzaelVar2.zzs((longValue3 + longValue3) ^ (longValue3 >> 63));
i2++;
}
}
@Override // com.google.android.libraries.places.internal.zzahz
public final void zzG(int i, List list, boolean z) throws IOException {
int i2 = 0;
if (!z) {
while (i2 < list.size()) {
this.zza.zzp(i, ((Integer) list.get(i2)).intValue());
i2++;
}
return;
}
this.zza.zzo(i, 2);
int i3 = 0;
for (int i4 = 0; i4 < list.size(); i4++) {
i3 += zzael.zzA(((Integer) list.get(i4)).intValue());
}
this.zza.zzq(i3);
while (i2 < list.size()) {
this.zza.zzq(((Integer) list.get(i2)).intValue());
i2++;
}
}
@Override // com.google.android.libraries.places.internal.zzahz
public final void zzI(int i, List list, boolean z) throws IOException {
int i2 = 0;
if (!z) {
while (i2 < list.size()) {
this.zza.zzr(i, ((Long) list.get(i2)).longValue());
i2++;
}
return;
}
this.zza.zzo(i, 2);
int i3 = 0;
for (int i4 = 0; i4 < list.size(); i4++) {
i3 += zzael.zzB(((Long) list.get(i4)).longValue());
}
this.zza.zzq(i3);
while (i2 < list.size()) {
this.zza.zzs(((Long) list.get(i2)).longValue());
i2++;
}
}
@Override // com.google.android.libraries.places.internal.zzahz
public final void zzc(int i, List list, boolean z) throws IOException {
int i2 = 0;
if (!z) {
while (i2 < list.size()) {
this.zza.zzd(i, ((Boolean) list.get(i2)).booleanValue());
i2++;
}
return;
}
this.zza.zzo(i, 2);
int i3 = 0;
for (int i4 = 0; i4 < list.size(); i4++) {
i3++;
}
this.zza.zzq(i3);
while (i2 < list.size()) {
this.zza.zzb(((Boolean) list.get(i2)).booleanValue() ? (byte) 1 : (byte) 0);
i2++;
}
}
@Override // com.google.android.libraries.places.internal.zzahz
public final void zzi(int i, List list, boolean z) throws IOException {
int i2 = 0;
if (!z) {
while (i2 < list.size()) {
this.zza.zzj(i, ((Integer) list.get(i2)).intValue());
i2++;
}
return;
}
this.zza.zzo(i, 2);
int i3 = 0;
for (int i4 = 0; i4 < list.size(); i4++) {
i3 += zzael.zzv(((Integer) list.get(i4)).intValue());
}
this.zza.zzq(i3);
while (i2 < list.size()) {
this.zza.zzk(((Integer) list.get(i2)).intValue());
i2++;
}
}
@Override // com.google.android.libraries.places.internal.zzahz
public final void zzk(int i, List list, boolean z) throws IOException {
int i2 = 0;
if (!z) {
while (i2 < list.size()) {
this.zza.zzf(i, ((Integer) list.get(i2)).intValue());
i2++;
}
return;
}
this.zza.zzo(i, 2);
int i3 = 0;
for (int i4 = 0; i4 < list.size(); i4++) {
i3 += 4;
}
this.zza.zzq(i3);
while (i2 < list.size()) {
this.zza.zzg(((Integer) list.get(i2)).intValue());
i2++;
}
}
@Override // com.google.android.libraries.places.internal.zzahz
public final void zzm(int i, List list, boolean z) throws IOException {
int i2 = 0;
if (!z) {
while (i2 < list.size()) {
this.zza.zzh(i, ((Long) list.get(i2)).longValue());
i2++;
}
return;
}
this.zza.zzo(i, 2);
int i3 = 0;
for (int i4 = 0; i4 < list.size(); i4++) {
i3 += 8;
}
this.zza.zzq(i3);
while (i2 < list.size()) {
this.zza.zzi(((Long) list.get(i2)).longValue());
i2++;
}
}
@Override // com.google.android.libraries.places.internal.zzahz
public final void zzr(int i, List list, boolean z) throws IOException {
int i2 = 0;
if (!z) {
while (i2 < list.size()) {
this.zza.zzj(i, ((Integer) list.get(i2)).intValue());
i2++;
}
return;
}
this.zza.zzo(i, 2);
int i3 = 0;
for (int i4 = 0; i4 < list.size(); i4++) {
i3 += zzael.zzv(((Integer) list.get(i4)).intValue());
}
this.zza.zzq(i3);
while (i2 < list.size()) {
this.zza.zzk(((Integer) list.get(i2)).intValue());
i2++;
}
}
@Override // com.google.android.libraries.places.internal.zzahz
public final void zzt(int i, List list, boolean z) throws IOException {
int i2 = 0;
if (!z) {
while (i2 < list.size()) {
this.zza.zzr(i, ((Long) list.get(i2)).longValue());
i2++;
}
return;
}
this.zza.zzo(i, 2);
int i3 = 0;
for (int i4 = 0; i4 < list.size(); i4++) {
i3 += zzael.zzB(((Long) list.get(i4)).longValue());
}
this.zza.zzq(i3);
while (i2 < list.size()) {
this.zza.zzs(((Long) list.get(i2)).longValue());
i2++;
}
}
@Override // com.google.android.libraries.places.internal.zzahz
public final void zzw(int i, List list, boolean z) throws IOException {
int i2 = 0;
if (!z) {
while (i2 < list.size()) {
this.zza.zzf(i, ((Integer) list.get(i2)).intValue());
i2++;
}
return;
}
this.zza.zzo(i, 2);
int i3 = 0;
for (int i4 = 0; i4 < list.size(); i4++) {
i3 += 4;
}
this.zza.zzq(i3);
while (i2 < list.size()) {
this.zza.zzg(((Integer) list.get(i2)).intValue());
i2++;
}
}
@Override // com.google.android.libraries.places.internal.zzahz
public final void zzy(int i, List list, boolean z) throws IOException {
int i2 = 0;
if (!z) {
while (i2 < list.size()) {
this.zza.zzh(i, ((Long) list.get(i2)).longValue());
i2++;
}
return;
}
this.zza.zzo(i, 2);
int i3 = 0;
for (int i4 = 0; i4 < list.size(); i4++) {
i3 += 8;
}
this.zza.zzq(i3);
while (i2 < list.size()) {
this.zza.zzi(((Long) list.get(i2)).longValue());
i2++;
}
}
@Override // com.google.android.libraries.places.internal.zzahz
public final void zzg(int i, List list, boolean z) throws IOException {
int i2 = 0;
if (!z) {
while (i2 < list.size()) {
this.zza.zzh(i, Double.doubleToRawLongBits(((Double) list.get(i2)).doubleValue()));
i2++;
}
return;
}
this.zza.zzo(i, 2);
int i3 = 0;
for (int i4 = 0; i4 < list.size(); i4++) {
i3 += 8;
}
this.zza.zzq(i3);
while (i2 < list.size()) {
this.zza.zzi(Double.doubleToRawLongBits(((Double) list.get(i2)).doubleValue()));
i2++;
}
}
@Override // com.google.android.libraries.places.internal.zzahz
public final void zzo(int i, List list, boolean z) throws IOException {
int i2 = 0;
if (!z) {
while (i2 < list.size()) {
this.zza.zzf(i, Float.floatToRawIntBits(((Float) list.get(i2)).floatValue()));
i2++;
}
return;
}
this.zza.zzo(i, 2);
int i3 = 0;
for (int i4 = 0; i4 < list.size(); i4++) {
i3 += 4;
}
this.zza.zzq(i3);
while (i2 < list.size()) {
this.zza.zzg(Float.floatToRawIntBits(((Float) list.get(i2)).floatValue()));
i2++;
}
}
}