static String j(java.util.Map p9, boolean p10)
    {
        String v2_40;
        String v1_50;
        StringBuilder v0_1 = new StringBuilder();
        com.millennialmedia.internal.playlistserver.GreenServerAdapter.i(v0_1, dm, android.os.Build.MODEL);
        String v1_57 = new StringBuilder();
        v1_57.append(Android);
        v1_57.append(android.os.Build$VERSION.RELEASE);
        com.millennialmedia.internal.playlistserver.GreenServerAdapter.i(v0_1, dv, v1_57.toString());
        com.millennialmedia.internal.playlistserver.GreenServerAdapter.i(v0_1, ua, com.millennialmedia.internal.utils.EnvironmentUtils.i0());
        String v1_20 = com.millennialmedia.internal.utils.EnvironmentUtils.w();
        String v2_15 = com.millennialmedia.internal.utils.EnvironmentUtils.x(v1_20);
        if (v2_15 == null) {
            String v1_33 = com.millennialmedia.internal.utils.EnvironmentUtils.R(MD5);
            String v2_32 = com.millennialmedia.internal.utils.EnvironmentUtils.R(SHA1);
            if ((v1_33 != null) && (v2_32 != null)) {
                int v3_20 = new StringBuilder();
                v3_20.append(mmh_);
                v3_20.append(v1_33);
                v3_20.append(_);
                v3_20.append(v2_32);
                v1_50 = v3_20.toString();
                v2_40 = mmdid;
                com.millennialmedia.internal.playlistserver.GreenServerAdapter.i(v0_1, v2_40, v1_50);
            }
        } else {
            com.millennialmedia.internal.playlistserver.GreenServerAdapter.i(v0_1, aaid, v2_15);
            v1_50 = Boolean.toString((com.millennialmedia.internal.utils.EnvironmentUtils.B0(v1_20) ^ 1));
            v2_40 = ate;
        }
        com.millennialmedia.internal.playlistserver.GreenServerAdapter.i(v0_1, density, Float.toString(com.millennialmedia.internal.utils.EnvironmentUtils.N()));
        com.millennialmedia.internal.playlistserver.GreenServerAdapter.i(v0_1, hpx, Integer.toString(com.millennialmedia.internal.utils.EnvironmentUtils.P()));
        com.millennialmedia.internal.playlistserver.GreenServerAdapter.i(v0_1, wpx, Integer.toString(com.millennialmedia.internal.utils.EnvironmentUtils.Q()));
        com.millennialmedia.internal.playlistserver.GreenServerAdapter.i(v0_1, do, com.millennialmedia.internal.utils.EnvironmentUtils.M());
        com.millennialmedia.internal.playlistserver.GreenServerAdapter.i(v0_1, olock, false);
        com.millennialmedia.internal.playlistserver.GreenServerAdapter.i(v0_1, sk, false);
        com.millennialmedia.internal.playlistserver.GreenServerAdapter.i(v0_1, vol, com.millennialmedia.internal.utils.EnvironmentUtils.j0(3));
        com.millennialmedia.internal.playlistserver.GreenServerAdapter.i(v0_1, headphones, com.millennialmedia.internal.utils.EnvironmentUtils.r());
        if (com.millennialmedia.internal.utils.EnvironmentUtils.p0()) {
            com.millennialmedia.internal.playlistserver.GreenServerAdapter.i(v0_1, mic, com.millennialmedia.internal.utils.EnvironmentUtils.q0());
        }
        com.millennialmedia.internal.playlistserver.GreenServerAdapter.i(v0_1, language, com.millennialmedia.internal.utils.EnvironmentUtils.U());
        com.millennialmedia.internal.playlistserver.GreenServerAdapter.i(v0_1, country, com.millennialmedia.internal.utils.EnvironmentUtils.T());
        com.millennialmedia.internal.playlistserver.GreenServerAdapter.i(v0_1, pkid, com.millennialmedia.internal.utils.EnvironmentUtils.y());
        com.millennialmedia.internal.playlistserver.GreenServerAdapter.i(v0_1, pknm, com.millennialmedia.internal.utils.EnvironmentUtils.B());
        com.millennialmedia.internal.playlistserver.GreenServerAdapter.i(v0_1, bl, com.millennialmedia.internal.utils.EnvironmentUtils.I());
        com.millennialmedia.internal.playlistserver.GreenServerAdapter.i(v0_1, plugged, com.millennialmedia.internal.utils.EnvironmentUtils.x0());
        com.millennialmedia.internal.playlistserver.GreenServerAdapter.i(v0_1, space, com.millennialmedia.internal.utils.EnvironmentUtils.G());
        com.millennialmedia.internal.playlistserver.GreenServerAdapter.i(v0_1, conn, com.millennialmedia.internal.utils.EnvironmentUtils.c0());
        com.millennialmedia.internal.playlistserver.GreenServerAdapter.i(v0_1, celldbm, com.millennialmedia.internal.utils.EnvironmentUtils.K());
        String v1_9 = com.millennialmedia.internal.utils.EnvironmentUtils.W();
        if (v1_9 != null) {
            com.millennialmedia.internal.playlistserver.GreenServerAdapter.i(v0_1, mcc, Integer.toString(v1_9.intValue()));
        }
        String v1_12 = com.millennialmedia.internal.utils.EnvironmentUtils.Y();
        if (v1_12 != null) {
            com.millennialmedia.internal.playlistserver.GreenServerAdapter.i(v0_1, mnc, Integer.toString(v1_12.intValue()));
        }
        com.millennialmedia.internal.playlistserver.GreenServerAdapter.i(v0_1, pip, com.millennialmedia.internal.utils.EnvironmentUtils.S());
        String v1_16 = com.millennialmedia.internal.utils.EnvironmentUtils.f0();
        if (!android.text.TextUtils.isEmpty(v1_16)) {
            com.millennialmedia.internal.playlistserver.GreenServerAdapter.i(v0_1, cn, v1_16);
        }
        String v1_18 = com.millennialmedia.internal.utils.EnvironmentUtils.V();
        if ((v1_18 == null) || (!com.millennialmedia.MMSDK.g)) {
            com.millennialmedia.internal.playlistserver.GreenServerAdapter.i(v0_1, loc, false);
        } else {
            com.millennialmedia.internal.playlistserver.GreenServerAdapter.i(v0_1, lat, Double.toString(v1_18.getLatitude()));
            com.millennialmedia.internal.playlistserver.GreenServerAdapter.i(v0_1, long, Double.toString(v1_18.getLongitude()));
            if (v1_18.hasAccuracy()) {
                com.millennialmedia.internal.playlistserver.GreenServerAdapter.i(v0_1, ha, Float.toString(v1_18.getAccuracy()));
            }
            if (v1_18.hasSpeed()) {
                com.millennialmedia.internal.playlistserver.GreenServerAdapter.i(v0_1, spd, Float.toString(v1_18.getSpeed()));
            }
            if (v1_18.hasBearing()) {
                com.millennialmedia.internal.playlistserver.GreenServerAdapter.i(v0_1, brg, Float.toString(v1_18.getBearing()));
            }
            if (v1_18.hasAltitude()) {
                com.millennialmedia.internal.playlistserver.GreenServerAdapter.i(v0_1, alt, Double.toString(v1_18.getAltitude()));
            }
            com.millennialmedia.internal.playlistserver.GreenServerAdapter.i(v0_1, tslr, Long.toString((v1_18.getTime() / 1000)));
            com.millennialmedia.internal.playlistserver.GreenServerAdapter.i(v0_1, loc, true);
            com.millennialmedia.internal.playlistserver.GreenServerAdapter.i(v0_1, lsrc, v1_18.getProvider());
        }
        com.millennialmedia.internal.playlistserver.GreenServerAdapter.i(v0_1, sdkversion, 6.8.1-72925a6.a);
        com.millennialmedia.internal.playlistserver.GreenServerAdapter.i(v0_1, video, true);
        com.millennialmedia.internal.playlistserver.GreenServerAdapter.i(v0_1, cachedvideo, true);
        String v1_25 = com.millennialmedia.MMSDK.a();
        if (v1_25 != null) {
            com.millennialmedia.internal.playlistserver.GreenServerAdapter.i(v0_1, vendor, v1_25.b());
            com.millennialmedia.internal.playlistserver.GreenServerAdapter.i(v0_1, coppa, v1_25.a());
        }
        String v1_29 = p9.get(placementId);
        if ((v1_29 instanceof String)) {
            com.millennialmedia.internal.playlistserver.GreenServerAdapter.i(v0_1, apid, ((String) v1_29));
        }
        String v1_37;
        String v1_32 = p9.get(placementType);
        if ((!(v1_32 instanceof String)) || (!((String) v1_32).equals(interstitial))) {
            com.millennialmedia.internal.playlistserver.GreenServerAdapter.i(v0_1, at, b);
            v1_37 = getad;
        } else {
            com.millennialmedia.internal.playlistserver.GreenServerAdapter.i(v0_1, at, i);
            v1_37 = fetch;
        }
        com.millennialmedia.internal.playlistserver.GreenServerAdapter.i(v0_1, reqtype, v1_37);
        String v1_40 = p9.get(width);
        if (((v1_40 instanceof Integer)) && (((Integer) v1_40).intValue() > 0)) {
            com.millennialmedia.internal.playlistserver.GreenServerAdapter.i(v0_1, hswd, v1_40);
        }
        String v1_42 = p9.get(height);
        if (((v1_42 instanceof Integer)) && (((Integer) v1_42).intValue() > 0)) {
            com.millennialmedia.internal.playlistserver.GreenServerAdapter.i(v0_1, hsht, v1_42);
        }
        com.millennialmedia.internal.playlistserver.GreenServerAdapter.i(v0_1, refreshrate, p9.get(refreshRate));
        String v1_46 = new java.util.ArrayList();
        String v9_1 = p9.get(keywords);
        if ((v9_1 instanceof String)) {
            String v9_2 = ((String) v9_1);
            if (!android.text.TextUtils.isEmpty(v9_2)) {
                v1_46.add(v9_2);
            }
        }
        String v9_3 = com.millennialmedia.MMSDK.c();
        if (v9_3 != null) {
            v9_3.a();
            throw 0;
        } else {
            if (v1_46.size() > 0) {
                com.millennialmedia.internal.playlistserver.GreenServerAdapter.i(v0_1, keywords, android.text.TextUtils.join(,, v1_46));
            }
            com.millennialmedia.internal.playlistserver.GreenServerAdapter.i(v0_1, appsids, android.text.TextUtils.join(,, com.millennialmedia.internal.Handshake.h()));
            String v9_8 = com.millennialmedia.MMSDK.b();
            if (v9_8 != null) {
                com.millennialmedia.internal.playlistserver.GreenServerAdapter.i(v0_1, acid, v9_8.b);
            }
            if (p10) {
                com.millennialmedia.internal.playlistserver.GreenServerAdapter.i(v0_1, securecontent, true);
            }
            String v9_11 = v0_1.toString();
            if (!android.text.TextUtils.isEmpty(v9_11)) {
                return v9_11;
            } else {
                return 0;
            }
        }
    }