package com.google.android.gms.internal.ads;

import androidx.annotation.Nullable;
import androidx.media3.common.C;

/* JADX INFO: loaded from: classes2.dex */
public final class r7 {

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

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

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

    @Nullable
    public final String zzb;

    @Nullable
    public final byte[] zze;

    /* JADX WARN: Can't fix incorrect switch cases order, some code will duplicate */
    /* JADX WARN: Failed to restore switch over string. Please report as a decompilation issue */
    /* JADX WARN: Removed duplicated region for block: B:27:0x0051  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public r7(boolean z10, @Nullable String str, int i10, byte[] bArr, int i11, int i12, @Nullable byte[] bArr2) {
        byte b10 = 0;
        int i13 = 1;
        ih1.x((i10 == 0) ^ (bArr2 == null));
        this.f16011a = z10;
        this.zzb = str;
        this.f16013c = i10;
        this.zze = bArr2;
        if (str != null) {
            switch (str.hashCode()) {
                case 3046605:
                    b10 = !str.equals(C.CENC_TYPE_cbc1) ? (byte) -1 : (byte) 2;
                    break;
                case 3046671:
                    if (str.equals(C.CENC_TYPE_cbcs)) {
                        b10 = 3;
                        break;
                    }
                    break;
                case 3049879:
                    if (!str.equals(C.CENC_TYPE_cenc)) {
                    }
                    break;
                case 3049895:
                    if (str.equals(C.CENC_TYPE_cens)) {
                        b10 = 1;
                        break;
                    }
                    break;
            }
            if (b10 != 0 && b10 != 1) {
                if (b10 == 2 || b10 == 3) {
                    i13 = 2;
                } else {
                    StringBuilder sb = new StringBuilder(str.length() + 68);
                    sb.append("Unsupported protection scheme type '");
                    sb.append(str);
                    sb.append("'. Assuming AES-CTR crypto mode.");
                    vt0.c(sb.toString());
                }
            }
        }
        this.f16012b = new t3(i13, i11, i12, bArr);
    }
}
