package com.google.firebase.firestore;

import com.google.firebase.firestore.Transaction;
import com.google.firebase.firestore.core.FirestoreClient;
import com.google.firebase.firestore.util.Function;
import java.util.concurrent.Callable;

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

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

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

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

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

    public /* synthetic */ k(Object obj, Object obj2, Object obj3, int i6) {
        this.f13981a = i6;
        this.f13982b = obj;
        this.f13983c = obj2;
        this.f13984d = obj3;
    }

    @Override // java.util.concurrent.Callable
    public final Object call() {
        switch (this.f13981a) {
            case 0:
                return ((FirebaseFirestore) this.f13982b).lambda$runTransaction$1((Transaction.Function) this.f13983c, (com.google.firebase.firestore.core.Transaction) this.f13984d);
            default:
                return ((FirestoreClient) this.f13982b).lambda$transaction$13((TransactionOptions) this.f13983c, (Function) this.f13984d);
        }
    }
}
