package o;

import com.google.firebase.messaging.FirebaseMessaging;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.Ny, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final /* synthetic */ class C0361Ny implements ST {
    public final /* synthetic */ int l;
    public final /* synthetic */ FirebaseMessaging m;

    public /* synthetic */ C0361Ny(FirebaseMessaging firebaseMessaging, int i) {
        this.l = i;
        this.m = firebaseMessaging;
    }

    @Override // o.ST
    public final void e(Object obj) throws NumberFormatException {
        boolean z;
        switch (this.l) {
            case 0:
                C1022dg0 c1022dg0 = (C1022dg0) obj;
                if (!this.m.e.e() || c1022dg0.h.a() == null) {
                    return;
                }
                synchronized (c1022dg0) {
                    z = c1022dg0.g;
                }
                if (z) {
                    return;
                }
                c1022dg0.f(0L);
                return;
            default:
                FirebaseMessaging firebaseMessaging = this.m;
                C2357ri c2357ri = (C2357ri) obj;
                WT wt = FirebaseMessaging.l;
                firebaseMessaging.getClass();
                if (c2357ri != null) {
                    As0.K(c2357ri.l);
                    firebaseMessaging.e();
                    return;
                }
                return;
        }
    }
}
