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

import java.security.GeneralSecurityException;

/* JADX INFO: loaded from: classes2.dex */
public final /* synthetic */ class ng0 implements bj0, c12, p12 {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public static final /* synthetic */ ng0 f14594a = new ng0();

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public static final /* synthetic */ ng0 f14595b = new ng0();

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public static final /* synthetic */ ng0 f14596c = new ng0();

    @Override // com.google.android.gms.internal.ads.c12, com.google.android.gms.internal.ads.c02
    public Object a(rb rbVar) throws GeneralSecurityException {
        h02 h02Var = (h02) rbVar;
        h12 h12Var = h02Var.f11975b;
        h02.A(h12Var);
        int iOrdinal = h12Var.f11985e.ordinal();
        h12 h12Var2 = h02Var.f11975b;
        if (iOrdinal == 1) {
            u02.b(h12Var2.f11986f.intValue()).b();
        } else if (iOrdinal == 2) {
            u02.a(h12Var2.f11986f.intValue()).b();
        } else if (iOrdinal != 3) {
            if (iOrdinal != 4) {
                throw new GeneralSecurityException("unknown output prefix type");
            }
            u02.a(h12Var2.f11986f.intValue()).b();
        } else {
            u02.f17053a.b();
        }
        return new j22();
    }

    @Override // com.google.android.gms.internal.ads.p12
    public Object zza() {
        s62 s62Var = e72.f10652a;
        eb ebVar = new eb(21, 0);
        ebVar.f10743d = p62.f15281d;
        ebVar.f10741b = o62.f14879d;
        ebVar.f10742c = q62.f15603c;
        ebVar.f10744e = r62.f16006b;
        return ebVar.x();
    }

    @Override // com.google.android.gms.internal.ads.bj0, com.google.android.gms.internal.ads.dr0, com.google.android.gms.internal.ads.co0
    /* JADX INFO: renamed from: zza */
    public /* synthetic */ void mo2zza(Object obj) {
        ((com.google.android.gms.ads.internal.overlay.p) obj).r0();
    }
}
