package com.google.firebase.firestore.local;

import android.database.Cursor;
import com.google.firebase.firestore.core.Query;
import com.google.firebase.firestore.model.MutableDocument;
import com.google.firebase.firestore.util.Function;
import java.util.Set;

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

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

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

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

    public /* synthetic */ r(int i6, Object obj, Object obj2) {
        this.f14062a = i6;
        this.f14063b = obj;
        this.f14064c = obj2;
    }

    @Override // com.google.firebase.firestore.util.Function
    public final Object apply(Object obj) {
        switch (this.f14062a) {
            case 0:
                return ((SQLiteBundleCache) this.f14063b).lambda$getNamedQuery$1((String) this.f14064c, (Cursor) obj);
            default:
                return SQLiteRemoteDocumentCache.lambda$getDocumentsMatchingQuery$3((Query) this.f14063b, (Set) this.f14064c, (MutableDocument) obj);
        }
    }
}
