package com.google.android.gms.internal.gtm; import com.google.android.gms.common.util.Clock; import java.util.List; /* loaded from: classes.dex */ final class zzdx implements Runnable { private final zzdq zzanc; private final zzmx zzane; /* JADX INFO: Access modifiers changed from: package-private */ public zzdx(zzdq zzdqVar, zzmx zzmxVar) { this.zzanc = zzdqVar; this.zzane = zzmxVar; } @Override // java.lang.Runnable public final void run() { zzff zzffVar; zzfk zzfkVar; String str; List list; zzff zzffVar2; String str2; zzdz zzdzVar; Clock clock; boolean z; Clock clock2; zzdz zzdzVar2; List list2; zzff zzffVar3; zznm zzlq = this.zzane.zzll().zzlq(); zznu zzlm = this.zzane.zzlm(); zzffVar = this.zzanc.zzamz; boolean z2 = zzffVar == null; zzdq zzdqVar = this.zzanc; zzfkVar = zzdqVar.zzamt; zzdqVar.zzamz = zzfkVar.zza(zzlq, zzlm); this.zzanc.state = 2; str = this.zzanc.zzaec; StringBuilder sb = new StringBuilder(String.valueOf(str).length() + 48); sb.append("Container "); sb.append(str); sb.append(" loaded during runtime initialization."); zzev.zzab(sb.toString()); list = this.zzanc.zzana; if (list != null) { list2 = this.zzanc.zzana; for (zzee zzeeVar : list2) { String valueOf = String.valueOf(zzeeVar.zzkf()); zzev.zzab(valueOf.length() != 0 ? "Evaluating tags for pending event ".concat(valueOf) : new String("Evaluating tags for pending event ")); zzffVar3 = this.zzanc.zzamz; zzffVar3.zzb(zzeeVar); } zzdq.zza(this.zzanc, (List) null); } zzffVar2 = this.zzanc.zzamz; zzffVar2.dispatch(); str2 = this.zzanc.zzaec; String valueOf2 = String.valueOf(str2); zzev.zzab(valueOf2.length() != 0 ? "Runtime initialized successfully for container ".concat(valueOf2) : new String("Runtime initialized successfully for container ")); long zzlr = this.zzane.zzll().zzlr(); zzdzVar = this.zzanc.zzamy; long zzhl = zzlr + zzdzVar.zzhl(); if (z2) { z = this.zzanc.zzanb; if (z && this.zzane.getSource() == 1) { clock2 = this.zzanc.zzsd; if (zzhl < clock2.currentTimeMillis()) { zzdq zzdqVar2 = this.zzanc; zzdzVar2 = zzdqVar2.zzamy; zzdqVar2.zzn(zzdzVar2.zzkd()); return; } } } zzdq zzdqVar3 = this.zzanc; clock = zzdqVar3.zzsd; zzdqVar3.zzn(Math.max(900000L, zzhl - clock.currentTimeMillis())); } }