package c.i.a.c.a2.h0; import android.util.Log; import androidx.annotation.Nullable; import c.i.a.c.a2.w; import com.airbnb.lottie.parser.AnimatableValueParser; /* compiled from: TrackEncryptionBox */ public final class n { public final boolean a; @Nullable public final String b; /* renamed from: c reason: collision with root package name */ public final w.a f703c; public final int d; @Nullable public final byte[] e; /* JADX INFO: Can't fix incorrect switch cases order, some code will duplicate */ /* JADX WARNING: Code restructure failed: missing block: B:21:0x0051, code lost: if (r6.equals("cbc1") == false) goto L_0x0053; */ public n(boolean z2, @Nullable String str, int i, byte[] bArr, int i2, int i3, @Nullable byte[] bArr2) { char c2 = 0; int i4 = 1; AnimatableValueParser.k((i == 0) ^ (bArr2 == null)); this.a = z2; this.b = str; this.d = i; this.e = bArr2; if (str != null) { switch (str.hashCode()) { case 3046605: break; case 3046671: if (str.equals("cbcs")) { c2 = 1; break; } c2 = 65535; break; case 3049879: if (str.equals("cenc")) { c2 = 2; break; } c2 = 65535; break; case 3049895: if (str.equals("cens")) { c2 = 3; break; } c2 = 65535; break; default: c2 = 65535; break; } if (c2 == 0 || c2 == 1) { i4 = 2; } else if (!(c2 == 2 || c2 == 3)) { Log.w("TrackEncryptionBox", "Unsupported protection scheme type '" + str + "'. Assuming AES-CTR crypto mode."); } } this.f703c = new w.a(i4, bArr, i2, i3); } }