package j1;

import java.util.Collections;
import java.util.List;
import n4.u0;
import x0.o;

/* JADX INFO: renamed from: j1.a, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C1063a extends AbstractC1064b {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final /* synthetic */ int f13663a;

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

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

    public C1063a(int i, long j8, long j9) {
        this.f13663a = i;
        switch (i) {
            case 2:
                this.f13664b = j8;
                this.f13665c = j9;
                break;
            default:
                this.f13664b = j9;
                this.f13665c = j8;
                break;
        }
    }

    public static long d(long j8, o oVar) {
        long jT = oVar.t();
        if ((128 & jT) != 0) {
            return 8589934591L & ((((jT & 1) << 32) | oVar.v()) + j8);
        }
        return -9223372036854775807L;
    }

    @Override // j1.AbstractC1064b
    public final String toString() {
        switch (this.f13663a) {
            case u0.f15495q /* 0 */:
                StringBuilder sb = new StringBuilder("SCTE-35 PrivateCommand { ptsAdjustment=");
                sb.append(this.f13664b);
                sb.append(", identifier= ");
                return I1.a.q(sb, this.f13665c, " }");
            case 1:
                StringBuilder sb2 = new StringBuilder("SCTE-35 SpliceInsertCommand { programSplicePts=");
                sb2.append(this.f13664b);
                sb2.append(", programSplicePlaybackPositionUs= ");
                return I1.a.q(sb2, this.f13665c, " }");
            default:
                StringBuilder sb3 = new StringBuilder("SCTE-35 TimeSignalCommand { ptsTime=");
                sb3.append(this.f13664b);
                sb3.append(", playbackPositionUs= ");
                return I1.a.q(sb3, this.f13665c, " }");
        }
    }

    public C1063a(long j8, long j9, List list) {
        this.f13663a = 1;
        this.f13664b = j8;
        this.f13665c = j9;
        Collections.unmodifiableList(list);
    }
}
