package h1;

import C3.G;
import C3.W;
import d5.AbstractC0844a;
import java.util.ArrayList;
import java.util.Objects;
import n4.u0;
import u0.C1564A;
import x0.AbstractC1709a;
import x0.v;

/* JADX INFO: loaded from: classes.dex */
public final class n extends i {

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

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

    public n(String str, String str2, W w4) {
        super(str);
        AbstractC1709a.d(!w4.isEmpty());
        this.f13350b = str2;
        G gK = G.k(w4);
        this.f13351c = gK;
    }

    public static ArrayList d(String str) {
        ArrayList arrayList = new ArrayList();
        try {
            if (str.length() >= 10) {
                arrayList.add(Integer.valueOf(Integer.parseInt(str.substring(0, 4))));
                arrayList.add(Integer.valueOf(Integer.parseInt(str.substring(5, 7))));
                arrayList.add(Integer.valueOf(Integer.parseInt(str.substring(8, 10))));
                return arrayList;
            }
            if (str.length() >= 7) {
                arrayList.add(Integer.valueOf(Integer.parseInt(str.substring(0, 4))));
                arrayList.add(Integer.valueOf(Integer.parseInt(str.substring(5, 7))));
                return arrayList;
            }
            if (str.length() >= 4) {
                arrayList.add(Integer.valueOf(Integer.parseInt(str.substring(0, 4))));
            }
            return arrayList;
        } catch (NumberFormatException unused) {
            return new ArrayList();
        }
    }

    /* JADX WARN: Failed to restore switch over string. Please report as a decompilation issue */
    @Override // h1.i, u0.C
    public final void a(C1564A c1564a) {
        byte b8;
        String str = this.f13338a;
        G g8 = this.f13351c;
        switch (str.hashCode()) {
            case 82815:
                b8 = !str.equals("TAL") ? (byte) -1 : (byte) 0;
                break;
            case 82878:
                b8 = !str.equals("TCM") ? (byte) -1 : (byte) 1;
                break;
            case 82897:
                b8 = !str.equals("TDA") ? (byte) -1 : (byte) 2;
                break;
            case 83253:
                b8 = !str.equals("TP1") ? (byte) -1 : (byte) 3;
                break;
            case 83254:
                b8 = !str.equals("TP2") ? (byte) -1 : (byte) 4;
                break;
            case 83255:
                b8 = !str.equals("TP3") ? (byte) -1 : (byte) 5;
                break;
            case 83341:
                b8 = !str.equals("TRK") ? (byte) -1 : (byte) 6;
                break;
            case 83378:
                b8 = !str.equals("TT2") ? (byte) -1 : (byte) 7;
                break;
            case 83536:
                b8 = !str.equals("TXT") ? (byte) -1 : (byte) 8;
                break;
            case 83552:
                b8 = !str.equals("TYE") ? (byte) -1 : (byte) 9;
                break;
            case 2567331:
                b8 = !str.equals("TALB") ? (byte) -1 : (byte) 10;
                break;
            case 2569357:
                b8 = !str.equals("TCOM") ? (byte) -1 : (byte) 11;
                break;
            case 2569358:
                b8 = !str.equals("TCON") ? (byte) -1 : (byte) 12;
                break;
            case 2569891:
                b8 = !str.equals("TDAT") ? (byte) -1 : (byte) 13;
                break;
            case 2570401:
                b8 = !str.equals("TDRC") ? (byte) -1 : (byte) 14;
                break;
            case 2570410:
                b8 = !str.equals("TDRL") ? (byte) -1 : (byte) 15;
                break;
            case 2571565:
                b8 = !str.equals("TEXT") ? (byte) -1 : (byte) 16;
                break;
            case 2575251:
                b8 = !str.equals("TIT2") ? (byte) -1 : (byte) 17;
                break;
            case 2581512:
                b8 = !str.equals("TPE1") ? (byte) -1 : (byte) 18;
                break;
            case 2581513:
                b8 = !str.equals("TPE2") ? (byte) -1 : (byte) 19;
                break;
            case 2581514:
                b8 = !str.equals("TPE3") ? (byte) -1 : (byte) 20;
                break;
            case 2583398:
                b8 = !str.equals("TRCK") ? (byte) -1 : (byte) 21;
                break;
            case 2590194:
                b8 = !str.equals("TYER") ? (byte) -1 : (byte) 22;
                break;
            default:
                b8 = -1;
                break;
        }
        try {
            switch (b8) {
                case u0.f15495q /* 0 */:
                case 10:
                    c1564a.f17100c = (CharSequence) g8.get(0);
                    break;
                case 1:
                case 11:
                    c1564a.f17115s = (CharSequence) g8.get(0);
                    break;
                case 2:
                case 13:
                    String str2 = (String) g8.get(0);
                    int i = Integer.parseInt(str2.substring(2, 4));
                    int i5 = Integer.parseInt(str2.substring(0, 2));
                    c1564a.f17109m = Integer.valueOf(i);
                    c1564a.f17110n = Integer.valueOf(i5);
                    break;
                case 3:
                case 18:
                    c1564a.f17099b = (CharSequence) g8.get(0);
                    break;
                case 4:
                case 19:
                    c1564a.f17101d = (CharSequence) g8.get(0);
                    break;
                case 5:
                case 20:
                    c1564a.f17116t = (CharSequence) g8.get(0);
                    break;
                case Z.g.STRING_SET_FIELD_NUMBER /* 6 */:
                case 21:
                    String str3 = (String) g8.get(0);
                    int i8 = v.f18553a;
                    String[] strArrSplit = str3.split("/", -1);
                    int i9 = Integer.parseInt(strArrSplit[0]);
                    Integer numValueOf = strArrSplit.length > 1 ? Integer.valueOf(Integer.parseInt(strArrSplit[1])) : null;
                    c1564a.f17105h = Integer.valueOf(i9);
                    c1564a.i = numValueOf;
                    break;
                case Z.g.DOUBLE_FIELD_NUMBER /* 7 */:
                case 17:
                    c1564a.f17098a = (CharSequence) g8.get(0);
                    break;
                case Z.g.BYTES_FIELD_NUMBER /* 8 */:
                case 16:
                    c1564a.f17114r = (CharSequence) g8.get(0);
                    break;
                case 9:
                case 22:
                    c1564a.f17108l = Integer.valueOf(Integer.parseInt((String) g8.get(0)));
                    break;
                case 12:
                    Integer numY = W3.b.y((String) g8.get(0));
                    if (numY != null) {
                        String strA = j.a(numY.intValue());
                        if (strA != null) {
                            c1564a.f17119w = strA;
                        }
                    } else {
                        c1564a.f17119w = (CharSequence) g8.get(0);
                    }
                    break;
                case 14:
                    ArrayList arrayListD = d((String) g8.get(0));
                    int size = arrayListD.size();
                    if (size != 1) {
                        if (size != 2) {
                            if (size == 3) {
                                c1564a.f17110n = (Integer) arrayListD.get(2);
                            }
                        }
                        c1564a.f17109m = (Integer) arrayListD.get(1);
                    }
                    c1564a.f17108l = (Integer) arrayListD.get(0);
                    break;
                case 15:
                    ArrayList arrayListD2 = d((String) g8.get(0));
                    int size2 = arrayListD2.size();
                    if (size2 != 1) {
                        if (size2 != 2) {
                            if (size2 == 3) {
                                c1564a.f17113q = (Integer) arrayListD2.get(2);
                            }
                        }
                        c1564a.f17112p = (Integer) arrayListD2.get(1);
                    }
                    c1564a.f17111o = (Integer) arrayListD2.get(0);
                    break;
            }
        } catch (NumberFormatException | StringIndexOutOfBoundsException unused) {
        }
    }

    public final boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj != null && n.class == obj.getClass()) {
            n nVar = (n) obj;
            if (Objects.equals(this.f13338a, nVar.f13338a) && Objects.equals(this.f13350b, nVar.f13350b) && this.f13351c.equals(nVar.f13351c)) {
                return true;
            }
        }
        return false;
    }

    public final int hashCode() {
        int iG = AbstractC0844a.g(527, 31, this.f13338a);
        String str = this.f13350b;
        return this.f13351c.hashCode() + ((iG + (str != null ? str.hashCode() : 0)) * 31);
    }

    @Override // h1.i
    public final String toString() {
        return this.f13338a + ": description=" + this.f13350b + ": values=" + this.f13351c;
    }
}
