package u0;

import android.net.Uri;
import d5.AbstractC0844a;
import java.util.Arrays;
import x0.AbstractC1709a;

/* JADX INFO: renamed from: u0.a, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C1565a {

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

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

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final Uri[] f17255c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final C1588y[] f17256d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public final int[] f17257e;

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

    /* JADX INFO: renamed from: g, reason: collision with root package name */
    public final String[] f17259g;

    static {
        AbstractC0844a.r(0, 1, 2, 3, 4);
        AbstractC0844a.r(5, 6, 7, 8, 9);
        x0.v.G(10);
    }

    public C1565a(int i, int i5, int[] iArr, C1588y[] c1588yArr, long[] jArr, String[] strArr) {
        Uri uri;
        int i8 = 0;
        AbstractC1709a.d(iArr.length == c1588yArr.length);
        this.f17253a = i;
        this.f17254b = i5;
        this.f17257e = iArr;
        this.f17256d = c1588yArr;
        this.f17258f = jArr;
        this.f17255c = new Uri[c1588yArr.length];
        while (true) {
            Uri[] uriArr = this.f17255c;
            if (i8 >= uriArr.length) {
                this.f17259g = strArr;
                return;
            }
            C1588y c1588y = c1588yArr[i8];
            if (c1588y == null) {
                uri = null;
            } else {
                C1584u c1584u = c1588y.f17396b;
                c1584u.getClass();
                uri = c1584u.f17384a;
            }
            uriArr[i8] = uri;
            i8++;
        }
    }

    public final int a(int i) {
        int i5;
        int i8 = i + 1;
        while (true) {
            int[] iArr = this.f17257e;
            if (i8 >= iArr.length || (i5 = iArr[i8]) == 0 || i5 == 1) {
                break;
            }
            i8++;
        }
        return i8;
    }

    public final boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null || C1565a.class != obj.getClass()) {
            return false;
        }
        C1565a c1565a = (C1565a) obj;
        return this.f17253a == c1565a.f17253a && this.f17254b == c1565a.f17254b && Arrays.equals(this.f17256d, c1565a.f17256d) && Arrays.equals(this.f17257e, c1565a.f17257e) && Arrays.equals(this.f17258f, c1565a.f17258f) && Arrays.equals(this.f17259g, c1565a.f17259g);
    }

    public final int hashCode() {
        int i = ((this.f17253a * 31) + this.f17254b) * 31;
        int i5 = (int) 0;
        return (((((Arrays.hashCode(this.f17258f) + ((Arrays.hashCode(this.f17257e) + ((Arrays.hashCode(this.f17256d) + ((i + i5) * 31)) * 31)) * 31)) * 31) + i5) * 961) + Arrays.hashCode(this.f17259g)) * 31;
    }
}
