package com.google.firebase.messaging;

import X.AnonymousClass906;
import X.AnonymousClass907;
import X.AnonymousClass908;
import X.AnonymousClass90C;
import X.AnonymousClass90F;
import X.AnonymousClass90H;
import X.AnonymousClass90O;
import X.AnonymousClass90R;
import X.AnonymousClass919;
import X.C37878yY;
import X.C38228z7;
import X.C38238z8;
import X.C38638zm;
import X.C388190e;
import X.C388290f;
import X.R2h;
import com.bytedance.covode.number.Covode;
import com.google.firebase.iid.FirebaseInstanceId;
import java.util.Arrays;
import java.util.List;

public class FirebaseMessagingRegistrar implements AnonymousClass90R {
    static {
        Covode.recordClassIndex(45324);
    }

    public List<AnonymousClass908<?>> getComponents() {
        AnonymousClass907<FirebaseMessaging> LIZ = AnonymousClass908.LIZ(FirebaseMessaging.class);
        LIZ.LIZ(AnonymousClass906.LIZ(C38638zm.class));
        LIZ.LIZ(AnonymousClass906.LIZ(FirebaseInstanceId.class));
        LIZ.LIZ(AnonymousClass906.LIZ(C38238z8.class));
        LIZ.LIZ(AnonymousClass906.LIZ(C38228z7.class));
        LIZ.LIZ(new AnonymousClass906(C388290f.class, 0));
        LIZ.LIZ(AnonymousClass906.LIZ(C37878yY.class));
        LIZ.LIZ((AnonymousClass90H<FirebaseMessaging>) AnonymousClass90O.LIZ);
        LIZ.LIZ(1);
        return Arrays.asList(new AnonymousClass908[]{LIZ.LIZ(), AnonymousClass90F.LIZ("fire-fcm", "20.2.3")});
    }

    public static C388290f determineFactory(C388290f r2) {
        if (r2 == null || !AnonymousClass919.LIZJ.contains(R2h.LIZ("json"))) {
            return new C388190e();
        }
        return r2;
    }

    public static final /* synthetic */ FirebaseMessaging lambda$getComponents$0$FirebaseMessagingRegistrar(AnonymousClass90C r7) {
        return new FirebaseMessaging((C38638zm) r7.LIZ(C38638zm.class), (FirebaseInstanceId) r7.LIZ(FirebaseInstanceId.class), (C38238z8) r7.LIZ(C38238z8.class), (C38228z7) r7.LIZ(C38228z7.class), (C37878yY) r7.LIZ(C37878yY.class), determineFactory((C388290f) r7.LIZ(C388290f.class)));
    }
}
