public static com.facebook.GraphRequest newPlaceSearchRequestForLocation(com.facebook.places.model.PlaceSearchRequestParams p10, android.location.Location p11)
    {
        String v0_0 = p10.getSearchText();
        if ((p11 == null) && (v0_0 == null)) {
            throw new com.facebook.FacebookException(Either location or searchText must be specified.);
        } else {
            String v1_1 = p10.getLimit();
            java.util.Set v2 = p10.getFields();
            java.util.Set v3 = p10.getCategories();
            android.os.Bundle v4_1 = new android.os.Bundle(7);
            v4_1.putString(type, place);
            if (p11 != null) {
                Object[] v6_2 = new Object[2];
                v6_2[0] = Double.valueOf(p11.getLatitude());
                v6_2[1] = Double.valueOf(p11.getLongitude());
                v4_1.putString(center, String.format(java.util.Locale.US, %f,%f, v6_2));
                String v10_2 = p10.getDistance();
                if (v10_2 > null) {
                    v4_1.putInt(distance, v10_2);
                }
            }
            if (v1_1 > null) {
                v4_1.putInt(limit, v1_1);
            }
            if (!com.facebook.internal.Utility.isNullOrEmpty(v0_0)) {
                v4_1.putString(q, v0_0);
            }
            if ((v3 != null) && (!v3.isEmpty())) {
                String v10_8 = new org.json.JSONArray();
                String v11_6 = v3.iterator();
                while (v11_6.hasNext()) {
                    v10_8.put(((String) v11_6.next()));
                }
                v4_1.putString(categories, v10_8.toString());
            }
            if ((v2 != null) && (!v2.isEmpty())) {
                v4_1.putString(fields, android.text.TextUtils.join(,, v2));
            }
            return new com.facebook.GraphRequest(com.facebook.AccessToken.getCurrentAccessToken(), search, v4_1, com.facebook.HttpMethod.GET);
        }
    }