package defpackage;

import android.net.Uri;
import j$.util.DesugarCollections;
import java.util.HashMap;
import java.util.Map;

/* renamed from: ᵮʿʽᵘ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final class C4179 {

    /* renamed from: ˇʼʤˎ, reason: contains not printable characters */
    public final long f15616;

    /* renamed from: ˎˏʜʾ, reason: contains not printable characters */
    public final String f15617;

    /* renamed from: ˏˋٴ, reason: contains not printable characters */
    public final long f15618;

    /* renamed from: ˏᵙ, reason: contains not printable characters */
    public final byte[] f15619;

    /* renamed from: ᵥᵯˎ, reason: contains not printable characters */
    public final Uri f15620;

    /* renamed from: ᵴᵳ, reason: contains not printable characters */
    public final int f15621;

    /* renamed from: ᵹᵝᵶ, reason: contains not printable characters */
    public final int f15622;

    /* renamed from: ᵻᵢﹳᵰ, reason: contains not printable characters */
    public final Map f15623;

    static {
        AbstractC2483.m6325("media3.datasource");
    }

    public C4179(Uri uri, int i, byte[] bArr, Map map, long j, long j2, String str, int i2) {
        ᵛᵾˏ.ᵯٴᵦ(j >= 0);
        ᵛᵾˏ.ᵯٴᵦ(j >= 0);
        ᵛᵾˏ.ᵯٴᵦ(j2 > 0 || j2 == -1);
        uri.getClass();
        this.f15620 = uri;
        this.f15621 = i;
        this.f15619 = (bArr == null || bArr.length == 0) ? null : bArr;
        this.f15623 = DesugarCollections.unmodifiableMap(new HashMap(map));
        this.f15616 = j;
        this.f15618 = j2;
        this.f15617 = str;
        this.f15622 = i2;
    }

    /* renamed from: ᵴᵳ, reason: contains not printable characters */
    public static String m9098(int i) {
        if (i == 1) {
            return "GET";
        }
        if (i == 2) {
            return "POST";
        }
        if (i == 3) {
            return "HEAD";
        }
        ᵨᴵᵺ.ˌʾˀ();
        return null;
    }

    public final String toString() {
        StringBuilder sb = new StringBuilder("DataSpec[");
        sb.append(m9098(this.f15621));
        sb.append(" ");
        sb.append(this.f15620);
        sb.append(", ");
        sb.append(this.f15616);
        sb.append(", ");
        sb.append(this.f15618);
        sb.append(", ");
        sb.append(this.f15617);
        sb.append(", ");
        return AbstractC4486.m9545(sb, this.f15622, "]");
    }

    /* renamed from: ˏᵙ, reason: contains not printable characters */
    public final C4179 m9099(long j) {
        long j2 = this.f15618;
        long j3 = j2 != -1 ? j2 - j : -1L;
        if (j == 0 && j2 == j3) {
            return this;
        }
        return new C4179(this.f15620, this.f15621, this.f15619, this.f15623, this.f15616 + j, j3, this.f15617, this.f15622);
    }

    /* renamed from: ᵥᵯˎ, reason: contains not printable characters */
    public final C5285 m9100() {
        C5285 c5285 = new C5285();
        c5285.f19782 = this.f15620;
        c5285.f19786 = this.f15621;
        c5285.f19784 = this.f15619;
        c5285.f19783 = this.f15623;
        c5285.f19787 = this.f15616;
        c5285.f19789 = this.f15618;
        c5285.f19788 = this.f15617;
        c5285.f19785 = this.f15622;
        return c5285;
    }
}
