package com.google.android.gms.internal.gtm; import com.google.android.gms.common.api.Status; import com.google.android.gms.common.internal.Preconditions; import java.util.ArrayList; import java.util.concurrent.ExecutorService; /* JADX INFO: Access modifiers changed from: package-private */ /* loaded from: classes.dex */ public final class zzdu implements zzmp, Runnable { private final zzdq zzanc; private zzdu(zzdq zzdqVar) { this.zzanc = zzdqVar; } @Override // java.lang.Runnable public final void run() { int i; String str; zzdz zzdzVar; boolean z; zzmo zzmoVar; String str2; String str3; String str4; zzdz zzdzVar2; i = this.zzanc.state; Preconditions.checkState(i == 1); ArrayList arrayList = new ArrayList(); this.zzanc.zzanb = false; zzfd zzkr = zzfd.zzkr(); str = this.zzanc.zzaec; if (zzkr.zzbw(str)) { arrayList.add(0); } else { zzdq zzdqVar = this.zzanc; zzdzVar = zzdqVar.zzamy; zzdqVar.zzanb = zzdzVar.zzke(); z = this.zzanc.zzanb; if (!z) { arrayList.add(0); arrayList.add(1); } else { arrayList.add(1); arrayList.add(0); } arrayList.add(2); } zzmoVar = this.zzanc.zzamu; str2 = this.zzanc.zzaec; str3 = this.zzanc.zzams; str4 = this.zzanc.zzamr; zzdzVar2 = this.zzanc.zzamy; zzmoVar.zza(str2, str3, str4, arrayList, this, zzdzVar2); } @Override // com.google.android.gms.internal.gtm.zzmp public final void zza(zzmx zzmxVar) { ExecutorService executorService; ExecutorService executorService2; if (zzmxVar.getStatus() == Status.RESULT_SUCCESS) { executorService2 = this.zzanc.zzamv; executorService2.execute(new zzdx(this.zzanc, zzmxVar)); } else { executorService = this.zzanc.zzamv; executorService.execute(new zzdt(this.zzanc, null)); } } /* JADX INFO: Access modifiers changed from: package-private */ public /* synthetic */ zzdu(zzdq zzdqVar, zzdr zzdrVar) { this(zzdqVar); } }