package L0;

import P2.C0253j;
import android.net.Uri;
import java.util.Collections;
import java.util.List;
import u0.C1566b;
import u0.C1582s;
import u0.C1583t;
import u0.C1584u;
import u0.C1585v;
import u0.C1588y;
import x0.AbstractC1709a;

/* JADX INFO: loaded from: classes.dex */
public final class g0 extends u0.S {

    /* JADX INFO: renamed from: n, reason: collision with root package name */
    public static final Object f3815n = new Object();

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

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

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

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

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

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

    /* JADX INFO: renamed from: h, reason: collision with root package name */
    public final boolean f3822h;
    public final boolean i;

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

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

    /* JADX INFO: renamed from: l, reason: collision with root package name */
    public final C1588y f3825l;

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

    static {
        L4.h hVar = new L4.h();
        C3.E e8 = C3.G.f1197r;
        C3.W w4 = C3.W.f1225u;
        List list = Collections.EMPTY_LIST;
        C3.W w6 = C3.W.f1225u;
        C1582s c1582s = new C1582s();
        C1585v c1585v = C1585v.f17389a;
        Uri uri = Uri.EMPTY;
        if (uri != null) {
            new C1584u(uri, null, null, list, w6, -9223372036854775807L);
        }
        hVar.a();
        c1582s.a();
        u0.B b8 = u0.B.f17123B;
    }

    public g0(long j8, long j9, long j10, long j11, long j12, long j13, boolean z8, boolean z9, boolean z10, C0253j c0253j, C1588y c1588y, C1583t c1583t) {
        this.f3816b = j8;
        this.f3817c = j9;
        this.f3818d = j10;
        this.f3819e = j11;
        this.f3820f = j12;
        this.f3821g = j13;
        this.f3822h = z8;
        this.i = z9;
        this.f3823j = z10;
        this.f3824k = c0253j;
        c1588y.getClass();
        this.f3825l = c1588y;
        this.f3826m = c1583t;
    }

    @Override // u0.S
    public final int b(Object obj) {
        return f3815n.equals(obj) ? 0 : -1;
    }

    @Override // u0.S
    public final u0.P f(int i, u0.P p3, boolean z8) {
        AbstractC1709a.g(i, 1);
        Object obj = z8 ? f3815n : null;
        long j8 = -this.f3820f;
        p3.getClass();
        p3.h(null, obj, 0, this.f3818d, j8, C1566b.f17261c, false);
        return p3;
    }

    @Override // u0.S
    public final int h() {
        return 1;
    }

    @Override // u0.S
    public final Object l(int i) {
        AbstractC1709a.g(i, 1);
        return f3815n;
    }

    /* JADX WARN: Removed duplicated region for block: B:14:0x002c A[PHI: r1
      0x002c: PHI (r1v2 long) = (r1v1 long), (r1v1 long), (r1v1 long), (r1v5 long) binds: [B:3:0x000c, B:5:0x0010, B:7:0x0016, B:12:0x0029] A[DONT_GENERATE, DONT_INLINE]] */
    @Override // u0.S
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final u0.Q m(int i, u0.Q q8, long j8) {
        long j9;
        AbstractC1709a.g(i, 1);
        long j10 = this.f3821g;
        boolean z8 = this.i;
        if (!z8 || this.f3823j || j8 == 0) {
            j9 = j10;
        } else {
            long j11 = this.f3819e;
            if (j11 != -9223372036854775807L) {
                j10 += j8;
                if (j10 > j11) {
                }
            }
            j9 = -9223372036854775807L;
        }
        Object obj = u0.Q.f17182q;
        q8.b(this.f3825l, this.f3824k, this.f3816b, this.f3817c, -9223372036854775807L, this.f3822h, z8, this.f3826m, j9, this.f3819e, this.f3820f);
        return q8;
    }

    @Override // u0.S
    public final int o() {
        return 1;
    }
}
