package r;

import b0.j;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;

/* JADX INFO: renamed from: r.d, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public class C0701d implements j.d {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final long f6288a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final long f6289b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final long f6290c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final boolean f6291d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public final long f6292e;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public final long f6293f;

    /* JADX INFO: renamed from: g, reason: collision with root package name */
    public final m f6294g;

    /* JADX INFO: renamed from: h, reason: collision with root package name */
    public final String f6295h;

    /* JADX INFO: renamed from: i, reason: collision with root package name */
    private final List f6296i;

    /* JADX INFO: renamed from: j, reason: collision with root package name */
    public final String f6297j;

    /* JADX INFO: renamed from: k, reason: collision with root package name */
    public final HashMap f6298k;

    public C0701d(long j2, long j3, long j4, boolean z2, long j5, long j6, m mVar, String str, List list, String str2, HashMap map) {
        this.f6288a = j2;
        this.f6289b = j3;
        this.f6290c = j4;
        this.f6291d = z2;
        this.f6292e = j5;
        this.f6293f = j6;
        this.f6294g = mVar;
        this.f6295h = str;
        this.f6296i = Collections.unmodifiableList(list);
        this.f6297j = str2;
        this.f6298k = map;
    }

    @Override // b0.j.d
    public final String a() {
        return this.f6295h;
    }

    public final f b(int i2) {
        return (f) this.f6296i.get(i2);
    }

    public final int c() {
        return this.f6296i.size();
    }

    public final long d(int i2) {
        long j2;
        long j3;
        if (i2 == this.f6296i.size() - 1) {
            j2 = this.f6289b;
            if (j2 == -1) {
                return -1L;
            }
            j3 = ((f) this.f6296i.get(i2)).f6310b;
        } else {
            j2 = ((f) this.f6296i.get(i2 + 1)).f6310b;
            j3 = ((f) this.f6296i.get(i2)).f6310b;
        }
        return j2 - j3;
    }

    public final void finalize() {
    }
}
