package com.google.firebase.firestore.ktx;

import X4.t;
import com.google.firebase.firestore.DocumentSnapshot;
import com.google.firebase.firestore.EventListener;
import com.google.firebase.firestore.FirebaseFirestoreException;
import com.google.firebase.firestore.QuerySnapshot;
import com.google.firebase.firestore.ktx.FirestoreKt;

/* JADX INFO: loaded from: classes3.dex */
public final /* synthetic */ class a implements EventListener {

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

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final /* synthetic */ t f13986b;

    public /* synthetic */ a(t tVar, int i6) {
        this.f13985a = i6;
        this.f13986b = tVar;
    }

    @Override // com.google.firebase.firestore.EventListener
    public final void onEvent(Object obj, FirebaseFirestoreException firebaseFirestoreException) {
        switch (this.f13985a) {
            case 0:
                FirestoreKt.AnonymousClass1.invokeSuspend$lambda$0(this.f13986b, (DocumentSnapshot) obj, firebaseFirestoreException);
                break;
            default:
                FirestoreKt.AnonymousClass2.invokeSuspend$lambda$0(this.f13986b, (QuerySnapshot) obj, firebaseFirestoreException);
                break;
        }
    }
}
