package c.i.a.c; import c.i.a.c.d2.h0; import java.util.Collection; import java.util.HashMap; /* compiled from: PlaylistTimeline */ public final class i1 extends c0 { public final int e; public final int f; public final int[] g; public final int[] h; public final r1[] i; public final Object[] j; public final HashMap k = new HashMap<>(); /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public i1(Collection collection, h0 h0Var) { super(false, h0Var); int i = 0; int size = collection.size(); this.g = new int[size]; this.h = new int[size]; this.i = new r1[size]; this.j = new Object[size]; int i2 = 0; int i3 = 0; for (a1 a1Var : collection) { this.i[i3] = a1Var.a(); this.h[i3] = i; this.g[i3] = i2; i += this.i[i3].p(); i2 += this.i[i3].i(); this.j[i3] = a1Var.getUid(); this.k.put(this.j[i3], Integer.valueOf(i3)); i3++; } this.e = i; this.f = i2; } @Override // c.i.a.c.r1 public int i() { return this.f; } @Override // c.i.a.c.r1 public int p() { return this.e; } }