package com.google.crypto.tink.shaded.protobuf;

import n4.u0;

/* JADX INFO: renamed from: com.google.crypto.tink.shaded.protobuf.s, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C0752s implements O {

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public static final C0752s f10540b = new C0752s(0);

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final /* synthetic */ int f10541a;

    public /* synthetic */ C0752s(int i) {
        this.f10541a = i;
    }

    @Override // com.google.crypto.tink.shaded.protobuf.O
    public final boolean a(Class cls) {
        switch (this.f10541a) {
            case u0.f15495q /* 0 */:
                return AbstractC0755v.class.isAssignableFrom(cls);
            default:
                return false;
        }
    }

    @Override // com.google.crypto.tink.shaded.protobuf.O
    public final a0 b(Class cls) {
        switch (this.f10541a) {
            case u0.f15495q /* 0 */:
                if (!AbstractC0755v.class.isAssignableFrom(cls)) {
                    throw new IllegalArgumentException("Unsupported message type: ".concat(cls.getName()));
                }
                try {
                    return (a0) AbstractC0755v.j(cls.asSubclass(AbstractC0755v.class)).i(3);
                } catch (Exception e8) {
                    throw new RuntimeException("Unable to get message info for ".concat(cls.getName()), e8);
                }
            default:
                throw new IllegalStateException("This should never be called.");
        }
    }
}
