package com.google.firebase.firestore;

import android.app.Activity;
import com.google.firebase.firestore.core.AsyncEventListener;
import com.google.firebase.firestore.core.FirestoreClient;
import com.google.firebase.firestore.util.Function;

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

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

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

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final /* synthetic */ Object f14105c;

    public /* synthetic */ p(int i6, Object obj, Object obj2) {
        this.f14103a = i6;
        this.f14104b = obj;
        this.f14105c = obj2;
    }

    @Override // com.google.firebase.firestore.util.Function
    public final Object apply(Object obj) {
        switch (this.f14103a) {
            case 0:
                return FirebaseFirestore.lambda$runTransaction$3((TransactionOptions) this.f14104b, (o) this.f14105c, (FirestoreClient) obj);
            default:
                return FirebaseFirestore.lambda$addSnapshotsInSyncListener$11((AsyncEventListener) this.f14104b, (Activity) this.f14105c, (FirestoreClient) obj);
        }
    }
}
