package defpackage;

import android.media.MediaCodecInfo;
import android.os.Build;
import com.google.crypto.tink.shaded.protobuf.InvalidProtocolBufferException;
import com.hierynomus.spnego.SpnegoException;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.security.GeneralSecurityException;
import java.util.List;
import java.util.concurrent.ExecutorService;

/* JADX INFO: renamed from: ᵷᵸᵢᵠ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes3.dex */
public final /* synthetic */ class C4935 implements InterfaceC2207, InterfaceC3452, InterfaceC1607, InterfaceC3498, InterfaceC4666, InterfaceC2978, InterfaceC4979, InterfaceC0157, InterfaceC4742 {

    /* JADX INFO: renamed from: ˌᴵ, reason: contains not printable characters */
    public final /* synthetic */ int f18748;

    public /* synthetic */ C4935(int i) {
        this.f18748 = i;
    }

    /* JADX INFO: renamed from: ˉᵲ, reason: contains not printable characters */
    public static /* synthetic */ void m10232(Object obj, String str) {
        throw new IllegalArgumentException((str + obj).toString());
    }

    /* JADX INFO: renamed from: ˊᵙᵾᵲ, reason: contains not printable characters */
    public static /* synthetic */ void m10233(String str) {
        throw new NullPointerException(str);
    }

    /* JADX INFO: renamed from: ˊᵨᵧ, reason: contains not printable characters */
    public static /* synthetic */ void m10234(Object obj, String str) throws FileNotFoundException {
        throw new FileNotFoundException(str + obj);
    }

    /* JADX INFO: renamed from: ˋˈ, reason: contains not printable characters */
    public static /* synthetic */ void m10235(String str, Object obj, Object obj2) throws IOException {
        throw new IOException(str + obj + obj2);
    }

    /* JADX INFO: renamed from: ˏːˆ, reason: contains not printable characters */
    public static /* synthetic */ void m10236(Object obj, String str) throws IOException {
        throw new IOException(str + obj);
    }

    /* JADX INFO: renamed from: ᵝᵶ, reason: contains not printable characters */
    public static /* synthetic */ void m10237(String str) {
        throw new RuntimeException(str);
    }

    /* JADX INFO: renamed from: ᵟᵹᵙ, reason: contains not printable characters */
    public static /* synthetic */ void m10238(Throwable th) {
        throw new RuntimeException(th);
    }

    /* JADX INFO: renamed from: ᵪᵹᵥᵻ, reason: contains not printable characters */
    public static /* synthetic */ void m10239(String str, Throwable th) {
        throw new IllegalStateException(str, th);
    }

    /* JADX INFO: renamed from: ᵮᵣᵗˈ, reason: contains not printable characters */
    public static /* synthetic */ void m10240(Object obj, String str) throws SpnegoException {
        throw new SpnegoException(str + obj);
    }

    /* JADX INFO: renamed from: ᵱʡˏ, reason: contains not printable characters */
    public static /* synthetic */ void m10241(Object obj, String str) {
        throw new IllegalStateException((str + obj).toString());
    }

    /* JADX INFO: renamed from: ᵱᵽʡᵚ, reason: contains not printable characters */
    public static /* bridge */ /* synthetic */ MediaCodecInfo.VideoCapabilities.PerformancePoint m10242(Object obj) {
        return (MediaCodecInfo.VideoCapabilities.PerformancePoint) obj;
    }

    /* JADX INFO: renamed from: ᵶᵥᵝ, reason: contains not printable characters */
    public static /* synthetic */ void m10243(int i, Object obj) {
        throw new IllegalStateException("Source subfield " + i + ((Object) " is present but null: ") + obj);
    }

    @Override // defpackage.InterfaceC3498
    public void accept(Object obj) {
        ((ExecutorService) obj).shutdown();
    }

    @Override // defpackage.InterfaceC0157
    /* JADX INFO: renamed from: ʽˈˋ */
    public boolean mo1301(int i, int i2, int i3, int i4, int i5) {
        if (i2 == 67 && i3 == 79 && i4 == 77 && (i5 == 77 || i == 2)) {
            return true;
        }
        if (i2 == 77 && i3 == 76 && i4 == 76) {
            return i5 == 84 || i == 2;
        }
        return false;
    }

    @Override // defpackage.InterfaceC1607
    /* JADX INFO: renamed from: ˊᵫᵗ */
    public ᵺᵘ mo3985(C2781 c2781) throws GeneralSecurityException {
        if (!((String) c2781.f10705).equals("type.googleapis.com/google.crypto.tink.KmsEnvelopeAeadKey")) {
            ᵕᵩʽᵲ.ᵮᵣᵗˈ("Wrong type URL in call to LegacyKmsEnvelopeAeadProtoSerialization.parseKey");
            return null;
        }
        try {
            C1742 c1742M4789 = C1742.m4789((AbstractC4613) c2781.f10706, C2082.m5556());
            if (c1742M4789.m4790() == 0) {
                return C0134.m1245(AbstractC2539.m6256(c1742M4789.m4791(), (EnumC5109) c2781.f10708), (Integer) c2781.f10703);
            }
            throw new GeneralSecurityException("KmsEnvelopeAeadKeys are only accepted with version 0, got " + c1742M4789);
        } catch (InvalidProtocolBufferException e) {
            throw new GeneralSecurityException("Parsing KmsEnvelopeAeadKey failed: ", e);
        }
    }

    @Override // defpackage.InterfaceC4979
    /* JADX INFO: renamed from: ːˏᵟᵯ */
    public int mo2609(Object obj) {
        String str = ((C1354) obj).f5600;
        if (str.startsWith("OMX.google") || str.startsWith("c2.android")) {
            return 1;
        }
        return (Build.VERSION.SDK_INT >= 26 || !str.equals("OMX.MTK.AUDIO.DECODER.RAW")) ? 0 : -1;
    }

    @Override // defpackage.InterfaceC2978
    /* JADX INFO: renamed from: ᵨᵣ */
    public List mo7059(String str, boolean z, boolean z2) {
        return AbstractC2124.m5631(str, z, z2);
    }

    @Override // defpackage.InterfaceC2207
    /* JADX INFO: renamed from: ᵲᵶᵳˈ */
    public AbstractC1378 mo3987(C0767 c0767) throws GeneralSecurityException {
        C4763 c4763 = (C4763) c0767.f3432;
        if (!c4763.m9952().equals("type.googleapis.com/google.crypto.tink.KmsEnvelopeAeadKey")) {
            ᵕᵩʽᵲ.ᵶᵥᵝ(c4763.m9952(), "Wrong type URL in call to LegacyKmsEnvelopeAeadProtoSerialization.parseParameters: ");
            return null;
        }
        try {
            return AbstractC2539.m6256(C3396.m7793(c4763.m9951(), C2082.m5556()), c4763.m9953());
        } catch (InvalidProtocolBufferException e) {
            throw new GeneralSecurityException("Parsing KmsEnvelopeAeadKeyFormat failed: ", e);
        }
    }

    @Override // defpackage.InterfaceC4742
    /* JADX INFO: renamed from: ᵵᵽ */
    public void mo2612(InterfaceC5081 interfaceC5081) {
    }

    @Override // defpackage.InterfaceC4666
    /* JADX INFO: renamed from: ᵷᵺʾᵖ */
    public Object mo3988(ᵺᵘ r4) throws GeneralSecurityException {
        C2781 c2781 = ((C3585) r4).f13686;
        C3585.m8094(c2781);
        Integer num = (Integer) c2781.f10703;
        int iOrdinal = ((EnumC5109) c2781.f10708).ordinal();
        if (iOrdinal == 1) {
            AbstractC0838.m2979(num.intValue()).m6837();
        } else if (iOrdinal == 2) {
            AbstractC0838.m2980(num.intValue()).m6837();
        } else if (iOrdinal != 3) {
            if (iOrdinal != 4) {
                C1685.m4558("unknown output prefix type");
                return null;
            }
            AbstractC0838.m2980(num.intValue()).m6837();
        } else {
            AbstractC0838.f3735.m6837();
        }
        return new C4288();
    }

    @Override // defpackage.InterfaceC3452
    /* JADX INFO: renamed from: ᵻˈᵦʼ */
    public C2781 mo3989(ᵺᵘ r4) {
        switch (this.f18748) {
            case 1:
                C0134 c0134 = (C0134) r4;
                C1744 c1744M4786 = C1742.m4786();
                C3396 c3396M6254 = AbstractC2539.m6254(c0134.f1473);
                c1744M4786.m5862();
                C1742.m4788((C1742) c1744M4786.f8910, c3396M6254);
                return C2781.m6742("type.googleapis.com/google.crypto.tink.KmsEnvelopeAeadKey", ((C1742) c1744M4786.m5863()).m897(), EnumC1913.f7605, AbstractC2539.m6255(c0134.f1473.f9986), c0134.f1471);
            default:
                C2781 c2781 = ((C3585) r4).f13686;
                C3585.m8094(c2781);
                return c2781;
        }
    }
}
