/*
 * Decompiled with CFR 0.152.
 * 
 * Could not load the following classes:
 *  javax.microedition.lcdui.Image
 */
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.DataInput;
import java.io.DataInputStream;
import java.io.DataOutput;
import java.io.DataOutputStream;
import java.io.EOFException;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.Enumeration;
import java.util.Hashtable;
import java.util.Vector;
import javax.microedition.lcdui.Image;

/*
 * Duplicate member names - consider using --renamedupmembers true
 */
public final class gu
implements as,
jf,
jz,
in,
gl,
nf,
lc,
df,
Runnable,
fb,
pf,
w {
    private static final byte[][] a;
    private static final byte[] a;
    private static final int[] b;
    private final w a;
    private final aa a;
    private final mo c;
    private final gd c;
    private final ij d;
    private static long a;
    private static gu a;
    private static long b;
    private static short[] b;
    private static gu b;
    private static cw[] c;
    private static boolean c;
    private static long c;
    private static gu c;
    private static long d;
    private static gu d;
    private static String e;
    private static gu e;
    private static long e;
    private static long f;
    private static gu f;
    private static int k;
    private static gu k;
    private static long p;
    private static int q;
    private static long g;
    private static int g;
    private static long h;
    private static int h;
    private static int i;
    private static long i;
    private static int j;
    private static long j;
    private static int l;
    private static long o;
    public static int m;
    public static int n;
    public static int o;
    private Vector b;
    private mg d;
    private long[] l;
    private oz[] o;
    public int a;
    public boolean a;
    public Vector a;
    public lk a;
    public iv[] a;
    public String[] a;
    public String a;
    public gu[] b;
    public boolean b;
    public int b;
    public fu b;
    public le b;
    public String b;
    public iv b;
    public iv[] c;
    public Hashtable c;
    public int c;
    public lk c;
    public int d;
    public int e;
    public int f;
    public boolean f;
    public iv h;

    public final dx a(ke ke2) {
        return null;
    }

    public static synchronized gu a(String string, String string2, String string3, String string4, ka ka2, String string5, String string6, String string7) {
        block7: {
            String[][] stringArrayArray = new String[7][];
            String[] stringArray = new String[2];
            stringArray[0] = "Email";
            String string8 = string != null ? string : "";
            stringArray[1] = string8;
            stringArrayArray[0] = stringArray;
            stringArray = new String[2];
            stringArray[0] = "Passwd";
            if (string2 == null) {
                string2 = "";
            }
            stringArray[1] = string2;
            stringArrayArray[1] = stringArray;
            stringArrayArray[2] = new String[]{"source", string3};
            stringArrayArray[3] = new String[]{"service", string4};
            stringArray = new String[2];
            stringArray[0] = "logintoken";
            if (string7 == null) {
                string7 = "";
            }
            stringArray[1] = string7;
            stringArrayArray[4] = stringArray;
            stringArray = new String[2];
            stringArray[0] = "logincaptcha";
            if (string6 == null) {
                string6 = "";
            }
            stringArray[1] = string6;
            stringArrayArray[5] = stringArray;
            stringArrayArray[6] = new String[]{"accountType", string5};
            StringBuffer stringBuffer = new StringBuffer();
            for (int i = 0; i < stringArrayArray.length; ++i) {
                stringArray = stringArrayArray[i];
                if (stringArray == null) continue;
                if (stringArray.length == 2) {
                    if (stringBuffer.length() != 0) {
                        stringBuffer.append('&');
                    }
                    stringBuffer.append(ar.a(stringArray[0]));
                    stringBuffer.append('=');
                    stringBuffer.append(ar.a(stringArray[1]));
                    continue;
                }
                break block7;
            }
            string2 = stringBuffer.toString();
            gu gu2 = gu.h();
            gu2.b = string;
            gu2.a = string4;
            if (gu2.a) {
                throw new IllegalStateException("Don't handle multiple login requests");
            }
            gu2.a(ka2, string2);
            return gu2;
        }
        throw new IllegalArgumentException("expects type / value pairs");
    }

    private gu(String string, boolean n) {
        String[] stringArray;
        InputStream inputStream;
        block19: {
            string = gu.h(string);
            String string2 = gu.h(System.getProperty("microedition.locale"));
            if (!"en".equals(string2)) {
                if (string2.length() == 2) {
                    if (!string.startsWith(string2)) {
                        string = string2;
                    }
                } else {
                    string = string2;
                }
            }
            this.a = gu.h(string);
            n = this.a.indexOf(95);
            if (n >= 0) {
                this.a.substring(0, n);
            }
            this.b = this.a;
            string = gu.b(this.b);
            inputStream = o.a(this.getClass(), "/strings.dat");
            if (inputStream == null) {
                throw new RuntimeException("Missing /strings.dat");
            }
            try {
                string2 = gu.b(string).toLowerCase();
                String string3 = gu.g(string2);
                DataInputStream dataInputStream = new DataInputStream(inputStream);
                if (dataInputStream.readUnsignedShort() == 64178) {
                    int n2 = dataInputStream.readUnsignedShort();
                    int n3 = dataInputStream.readUnsignedShort();
                    string = null;
                    if (n3 > 0 && n2 > 0) {
                        int n4;
                        int n5 = 0;
                        int n6 = -1;
                        int n7 = 0;
                        while (true) {
                            n4 = n7;
                            if (n5 >= n3) break;
                            String string4 = dataInputStream.readUTF();
                            String string5 = string4.toLowerCase();
                            n7 = dataInputStream.readInt();
                            n = n5 != 0 ? 0 : 1;
                            n = !string2.equals(string5) ? (!string2.startsWith(string5) ? (!string5.startsWith(string3) ? (n == 0 ? 0 : 1) : 2) : 3) : 4;
                            if (n <= n6) {
                                n = n6;
                                n7 = n4;
                            } else {
                                string = string4;
                            }
                            ++n5;
                            n6 = n;
                        }
                        if (n6 != -1) {
                            ar.a((DataInput)dataInputStream, n4);
                            stringArray = new String[n2];
                            for (n = 0; n < n2; ++n) {
                                stringArray[n] = dataInputStream.readUTF();
                            }
                            if (true) {
                                this.b = string;
                            }
                            break block19;
                        }
                        throw new IOException("Empty string resources");
                    }
                    throw new IOException("Bum string resources");
                }
                throw new IOException("Bum string resources signature");
            }
            catch (IOException iOException) {
                throw new RuntimeException("/strings.dat: " + iOException.getMessage());
            }
        }
        this.a = stringArray;
        gu.g(this.b);
        return;
        finally {
            ar.b(inputStream);
        }
    }

    public void a(String string, boolean n) {
        boolean bl2 = string.indexOf("/gmm/x") == -1;
        if (n != 0) {
            String string2 = string;
            n = 0;
            int n2 = "=@latlon:".length();
            int n3 = "...".length();
            int n4 = "&".length();
            while ((n = string2.indexOf("=@latlon:", n)) >= 0) {
                int n5 = string2.indexOf("&", n += n2);
                String string3 = string2.substring(0, n) + "...";
                if (n5 > 0) {
                    string3 = string3 + string2.substring(n5);
                }
                string2 = string3;
                n = n + n3 + n4;
            }
            if (!bl2) {
                this.d(3);
                me.a((short)52, "u", string2);
            } else {
                this.d(4);
                me.a((short)52, "k", string2);
            }
        }
        this.b = string;
        this.b = true;
        this.f = bl2;
        this.c.a.a(this);
    }

    /*
     * Enabled aggressive block sorting
     * Enabled unnecessary exception pruning
     * Enabled aggressive exception aggregation
     */
    public void run() {
        block22: {
            block20: {
                if (this.b == null) break block22;
                String string = this.b;
                int n = this.f;
                try {
                    boolean bl2;
                    block24: {
                        int n2;
                        Hashtable<String, String> hashtable;
                        block23: {
                            int n3;
                            String string2;
                            if (n != 0) {
                                this.c.b(string);
                                break block20;
                            }
                            hashtable = new Hashtable<String, String>();
                            bl2 = false;
                            n = string.indexOf(63);
                            if (n != -1 && n != string.length() - 1) {
                                String[] stringArray = ed.a(string.substring(string.indexOf(63) + 1), '&');
                                try {
                                    for (n = 0; n < stringArray.length; ++n) {
                                        string2 = stringArray[n];
                                        n3 = string2.indexOf(61);
                                        if (n3 == -1) continue;
                                        hashtable.put(ar.c(string2.substring(0, n3)), ar.c(string2.substring(n3 + 1)));
                                    }
                                }
                                catch (IOException iOException) {
                                    me.a("Error parsing URL: " + string, iOException);
                                }
                            }
                            if (!"MAPV".equals(string = (String)hashtable.get("view"))) {
                                if ("SATV".equals(string)) {
                                    this.c.a(true);
                                }
                            } else {
                                this.c.a(false);
                            }
                            string = (String)hashtable.get("span");
                            n3 = 0;
                            if (string != null) {
                                n2 = string.indexOf(44);
                                if (n2 == -1) {
                                    n = 0;
                                    n2 = 0;
                                } else {
                                    try {
                                        n3 = n = ed.a(string.substring(0, n2), 6);
                                        n2 = ed.a(string.substring(n2 + 1), 6);
                                    }
                                    catch (NumberFormatException numberFormatException) {
                                        n2 = 0;
                                        n = n3;
                                    }
                                }
                            } else {
                                n2 = 0;
                                n = 0;
                            }
                            string = (String)hashtable.get("action");
                            if ("BUSI".equals(string)) break block23;
                            if (!"LOCN".equals(string)) {
                                if (!"PHOT".equals(string) && "ROUT".equals(string)) {
                                    gu gu2 = gu.a((String)hashtable.get("start"), 4);
                                    gu gu3 = gu.a((String)hashtable.get("end"), 4);
                                    this.d.a(gu2, gu3);
                                    bl2 = true;
                                }
                                break block24;
                            } else {
                                gu gu4 = gu.a((String)hashtable.get("a"), 3);
                                string = (String)hashtable.get("title");
                                string2 = (String)hashtable.get("description");
                                String string3 = (String)hashtable.get("phone");
                                bl2 = this.d.a(gu4, string, string2, string3, n, n2);
                            }
                            break block24;
                        }
                        string = (String)hashtable.get("q");
                        gu gu5 = gu.a((String)hashtable.get("a"), 3);
                        this.d.a(string, gu5, n, n2);
                        bl2 = true;
                    }
                    if (bl2) {
                        // empty if block
                    }
                }
                catch (Exception exception) {
                    me.a("GmmInvocationHelper", exception);
                }
            }
            this.b = null;
        }
    }

    /*
     * Unable to fully structure code
     */
    private void e() {
        block7: {
            block6: {
                var1_1 = lh.o();
                if (var1_1 == null) ** GOTO lbl-1000
                if (!var1_1.startsWith("zh") && !var1_1.equals("ja")) {
                    ** if (!var1_1.equals((Object)"ko")) goto lbl-1000
lbl-1000:
                    // 1 sources

                    {
                        var1_1 = "\u5bb5\u6e05\u8511Ag$" + this.b;
                        ** GOTO lbl12
                    }
                }
                break block6;
lbl-1000:
                // 2 sources

                {
                    var1_1 = "ATbdqyg$" + this.b;
                }
                break block7;
            }
            var1_1 = "\u5bb5\u6e05\u8511Ag$" + this.b;
        }
        var3_2 = this.a.a(var1_1) + 20;
        var8_3 = this.a.l() + 20;
        var9_4 = lh.k().g().a(var3_2, var8_3);
        var7_6 = 0;
        var4_7 = 127;
        v0 = var9_4.c();
        v0.a(this.a);
        v0.a(this.a.t() ^ 0xFFFFFF);
        v0.c(0, 0, var3_2, var8_3);
        var10_8 = v0;
        var6_9 = new int[var3_2 + 1];
        var9_4.a(var6_9, 0, var3_2, 0, 0, var3_2, 1);
        var11_10 = var6_9[0];
        var10_8.a(this.a.t());
        var10_8.a(var1_1, 3, 10);
        for (var2_5 = 0; var2_5 < var8_3; ++var2_5) {
            var9_4.a(var6_9, 0, var3_2, 0, var2_5, var3_2, 1);
            for (var5_11 = 0; var5_11 < var3_2; ++var5_11) {
                if (var6_9[var5_11] == var11_10) continue;
                if (var2_5 < var4_7) {
                    var7_6 = var2_5;
                    var4_7 = var2_5;
                    continue;
                }
                var7_6 = var2_5;
            }
        }
        this.e = var4_7 - 10;
        this.f = var7_6 - var4_7 + 1;
    }

    /*
     * Enabled force condition propagation
     * Lifted jumps to return sites
     */
    public static byte[] a(byte[] byArray) {
        int n7;
        int n2 = byArray.length;
        if (byArray[0] == -1 && byArray[0 + 1] == -40) {
            byte[] byArray2 = new byte[n2];
            System.arraycopy(byArray, 0, byArray2, 0, n2);
            return byArray2;
        }
        if (byArray[0] != 67 || byArray[0 + 1] != 74 || byArray[0 + 2] != 80 || byArray[0 + 3] != 71) throw new IllegalArgumentException("Input is not in compact JPEG format");
        int n = byArray[0 + 4] & 0xFF;
        int n3 = (byArray[0 + 5] & 0xFF) << 8 | byArray[0 + 6] & 0xFF;
        int n4 = (byArray[0 + 7] & 0xFF) << 8 | byArray[0 + 8] & 0xFF;
        int n5 = byArray[0 + 9] & 0xFF;
        int n6 = byArray[0 + 10] & 0xFF;
        try {
            n7 = gu.k(n);
        }
        catch (IllegalArgumentException illegalArgumentException) {
            throw new IllegalArgumentException("Unknown variant " + n);
        }
        byte[] byArray3 = new byte[n7 + n2 - 11];
        n2 -= 11;
        gu gu2 = new gu(n, n3, n4, n5, n6, n7);
        n = gu2.f;
        n3 = gu2.b;
        n4 = gu2.a;
        n5 = gu2.e;
        n6 = gu2.c;
        n7 = 0 + 11;
        if (n != 0) throw new IllegalArgumentException("variant");
        System.arraycopy(byArray, n7, byArray3, 0 + gu.k(n), n2);
        if (n != 0) throw new IllegalArgumentException("variant");
        if (n5 < 24 || n5 > 100) throw new IllegalArgumentException("quality");
        if (n6 != 0 && n6 != 1) {
            throw new IllegalArgumentException("qualityAlgorithm: " + n6);
        }
        n2 = a.length;
        if (0 + n2 > byArray3.length) throw new ArrayIndexOutOfBoundsException("dest");
        System.arraycopy(a, 0, byArray3, 0, n2);
        int n8 = 0 + h;
        byArray3[n8] = (byte)(n3 >> 8);
        byArray3[n8 + 1] = (byte)(n3 & 0xFF);
        byArray3[n8 + 2] = (byte)(n4 >> 8);
        byArray3[n8 + 3] = (byte)(n4 & 0xFF);
        if (n5 == 75) return byArray3;
        n2 = 0 + i;
        n = 0 + g;
        gu.a(byArray3, n2, 0, n5, n6);
        gu.a(byArray3, n, 1, n5, n6);
        return byArray3;
    }

    public gu(int n, int n2, int n3, int n4, int n5, int n6) {
        if (n5 != 0 && n5 != 1) {
            throw new IllegalArgumentException("qualityAlgorithm = " + n5);
        }
        this.f = n;
        this.b = n2;
        this.a = n3;
        this.e = n4;
        this.c = n5;
    }

    /*
     * Enabled force condition propagation
     * Lifted jumps to return sites
     */
    public void a(lk lk2, boolean bl2) {
        byte[] byArray;
        this.c = lk2;
        int n = lk2.i(1);
        Hashtable<Integer, lk> hashtable = new Hashtable<Integer, lk>(n);
        for (int i = 0; i < n; ++i) {
            lk lk3 = lk2.e(1, i);
            hashtable.put(new Integer(lk3.d(1)), lk3);
        }
        this.c = hashtable;
        this.f = false;
        if (bl2) return;
        lk lk4 = new lk(la.aE);
        lk4.a(1, lk2);
        ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
        try {
            lk4.a(byteArrayOutputStream);
            byArray = byteArrayOutputStream.toByteArray();
            byteArrayOutputStream.close();
        }
        catch (IOException iOException) {
            throw new RuntimeException("Error saving directions options: " + iOException.getMessage());
        }
        String string = gu.f();
        this.a.b(byArray, string);
    }

    /*
     * Enabled aggressive block sorting
     * Enabled unnecessary exception pruning
     * Enabled aggressive exception aggregation
     */
    public boolean a(DataInput object) {
        block9: {
            block8: {
                int n;
                if (object == null) break block8;
                lk lk2 = ar.a(la.aQ, (DataInput)object);
                this.c = lk2.d(1);
                if (this.c != 0) break block8;
                for (n = 0; n < 6; ++n) {
                    this.l[n] = lk2.d(2, n);
                }
                this.a = lk2.d(4);
                this.d = lk2.d(5);
                this.h = iv.a(lk2.f(3));
                if (this.c == 0) {
                    object = lh.k().f();
                    ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
                    DataOutputStream dataOutputStream = new DataOutputStream(byteArrayOutputStream);
                    try {
                        lk2 = new lk(la.aQ);
                        lk2.h(1, this.c);
                        for (n = 0; n < 6; ++n) {
                            lk2.a(2, this.l[n]);
                        }
                        lk2.b(3, this.h.b());
                        lk2.h(4, this.a);
                        lk2.h(5, this.d);
                        dataOutputStream.writeInt(lk2.b());
                        lk2.a(dataOutputStream);
                        object.b(byteArrayOutputStream.toByteArray(), e);
                    }
                    catch (IOException iOException) {
                        object.b(e);
                    }
                }
                if (this.c == 0) break block9;
            }
            return false;
        }
        return true;
    }

    /*
     * Loose catch block
     * Enabled force condition propagation
     * Lifted jumps to return sites
     */
    private static bj a(DataInput dataInput, short s, fu fu2, boolean bl2) {
        bj bj2;
        block15: {
            if (dataInput == null) return null;
            switch (dataInput.readByte()) {
                case 3: {
                    String string = dataInput.readUTF();
                    bj2 = ar.a(dataInput, s);
                    bj2.c(string);
                    ((ar)bj2).b = (byte)6;
                    break block15;
                }
                case 1: {
                    short s2;
                    String string;
                    lk lk2 = new lk(la.F);
                    dataInput.readByte();
                    lk2.h(1, 0);
                    lk2.h(2, 0);
                    lk lk3 = new lk(la.C);
                    lk3.b(1, dataInput.readUTF());
                    lk lk4 = lk3;
                    lk lk5 = lk2.a(5);
                    lk5.h(6, 0);
                    lk5.a(7, lk4);
                    lk2.a(5, lk5);
                    lk lk6 = new lk(la.C);
                    lk6.b(1, dataInput.readUTF());
                    lk4 = lk6;
                    lk lk7 = lk2.a(5);
                    lk7.h(6, 0);
                    lk7.a(7, lk4);
                    lk2.a(5, lk7);
                    lk4 = lk2.a(8);
                    lk lk8 = new lk(la.H);
                    dataInput.readUTF();
                    dataInput.readUTF();
                    dataInput.readUTF();
                    lk8.h(3, -1);
                    int n = dataInput.readUnsignedByte();
                    for (s = 0; s < n; s = (short)(s + 1)) {
                        string = dataInput.readUTF();
                        iv.a(dataInput);
                        s2 = dataInput.readShort();
                        lk lk9 = new lk(la.G);
                        lk9.b(2, string);
                        lk9.h(5, s2);
                        lk8.a(10, lk9);
                    }
                    lk lk10 = mo.a(iv.a(dataInput), 1);
                    ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
                    DataOutputStream dataOutputStream = new DataOutputStream(byteArrayOutputStream);
                    n = dataInput.readShort();
                    for (s = 0; s < n; s = (short)(s + 1)) {
                        s2 = dataInput.readShort();
                        short s3 = dataInput.readShort();
                        dataOutputStream.writeShort(s2);
                        dataOutputStream.writeShort(s3);
                    }
                    lk8.a(7, mo.a(lk10, byteArrayOutputStream.toByteArray()));
                    lk4.a(9, lk8);
                    lk2.a(8, lk4);
                    string = dataInput.readUTF();
                    catch (EOFException eOFException) {
                        bj2 = null;
                        break block15;
                    }
                    catch (EOFException eOFException) {
                        string = "";
                    }
                    lk lk11 = new lk(la.aC);
                    lk11.b(1, string);
                    lk11.b(2, lk2);
                    bj2 = by.a(lk11, fu2);
                }
                case 4: {
                    bj2 = mo.a(dataInput, fu2);
                    break block15;
                }
                case 2: {
                    bj2 = ar.c(dataInput);
                    ((ar)bj2).b = (byte)6;
                    break block15;
                }
                default: {
                    return null;
                }
            }
            catch (IOException iOException) {
                bj2 = null;
                me.b("Migrate Directions", iOException);
            }
            catch (OutOfMemoryError outOfMemoryError) {
                bj2 = null;
                me.b("Migrate Directions", outOfMemoryError);
            }
        }
        if (!bl2) return bj2;
        return gu.a(bj2);
    }

    public void e(lk lk2) {
        int n;
        if (this.f) {
            lk2.h(2, this.b);
        }
        if (this.b) {
            lk2.h(1, this.d);
        }
        if (!ed.b(this.b)) {
            lk2.b(6, this.b);
        }
        if (this.a > 0) {
            lk2.h(3, -1);
        }
        if (this.a != null) {
            lk2.b(4, this.a);
            lk2.b(5, this.c);
        }
        iv iv2 = this.a[0];
        ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
        DataOutputStream dataOutputStream = new DataOutputStream(byteArrayOutputStream);
        try {
            for (int i = 1; i < this.a.length; ++i) {
                int n2;
                cn cn2;
                iv iv3 = this.a[i - 1];
                if (mo.a(this.c) != 1) {
                    cn2 = cn.b(22);
                    n = this.a[i].a(cn2) - iv3.a(cn2);
                } else {
                    n = this.a[i].a - iv3.a;
                }
                iv3 = this.a[i - 1];
                if (mo.a(this.c) != 1) {
                    cn2 = cn.b(22);
                    n2 = this.a[i].b(cn2) - iv3.b(cn2);
                } else {
                    n2 = this.a[i].b - iv3.b;
                }
                if (gu.k(n) && gu.k(n2)) {
                    dataOutputStream.writeShort(n);
                    dataOutputStream.writeShort(n2);
                    continue;
                }
                lk2.a(7, mo.a(mo.a(iv2, mo.a(this.c)), byteArrayOutputStream.toByteArray()));
                byteArrayOutputStream = new ByteArrayOutputStream();
                dataOutputStream = new DataOutputStream(byteArrayOutputStream);
                iv2 = this.a[i];
            }
        }
        catch (IOException iOException) {}
        lk2.a(7, mo.a(mo.a(iv2, mo.a(this.c)), byteArrayOutputStream.toByteArray()));
        for (n = 0; n < this.b.length - 1; ++n) {
            lk2.a(10, this.b[n].a);
        }
    }

    /*
     * WARNING - Removed back jump from a try to a catch block - possible behaviour change.
     * Unable to fully structure code
     * Enabled aggressive block sorting
     * Enabled unnecessary exception pruning
     * Enabled aggressive exception aggregation
     */
    public gu(mo var1_1, lk var2_2) {
        block22: {
            super();
            this.c = var1_1;
            this.f = var2_2.h(2);
            this.b = ar.c(var2_2, 2);
            this.b = var2_2.h(1);
            this.d = ar.c(var2_2, 1);
            this.b = ar.a(var2_2, 6);
            var6_4 = 0;
            this.a = ar.c(var2_2, 3);
            this.a = var2_2.f(4);
            this.c = var2_2.f(5);
            mo.a(this.c, -1);
            var16_5 = var2_2.i(7);
            for (var3_3 = 0; var3_3 < var16_5; var6_4 += mo.d(var2_2.e(7, var3_3)), ++var3_3) {
            }
            var4_6 = 0;
            var11_7 = 0;
            this.a = new iv[var6_4];
            if (var11_7 >= var16_5) break block22;
            var13_10 = var2_2.e(7, var11_7);
            var10_8 = var13_10.f(8);
            if (mo.a(this.c) == -1) {
                mo.a(this.c, mo.c(var10_8));
            }
            this.a[var4_6] = gu.c(var10_8);
            var3_3 = var4_6 + 1;
            var15_11 = var10_8 != null && ar.c(var10_8, 1) == 4 ? cn.b(ar.c(var10_8.f(13), 3)) : cn.b(0);
            var12_9 = var13_10.c(9);
            if (var12_9 == null) {
                var12_9 = new byte[]{};
            }
            var17_12 = new DataInputStream(new ByteArrayInputStream(var12_9));
            ** GOTO lbl-1000
        }
        this.b = this.a[0];
        var4_6 = 1;
        this.h = this.a[this.a.length - 1];
        this.a = var4_6;
        var4_6 = var2_2.i(10) + 1;
        this.b = new gu[var4_6];
        this.c = new iv[var4_6];
        for (var3_3 = 0; var3_3 < var4_6 - 1; ++var3_3) {
            this.b[var3_3] = new gu(false, false, false, false, false, false, false, false, false, false);
            this.b[var3_3].a = var2_2.e(10, var3_3);
            if (this.b[var3_3].n() >= this.a.length - 1) {
                this.b[var3_3].a(this.a.length - 1);
            }
            this.c[var3_3] = this.a[this.b[var3_3].n()];
        }
        var3_3 = var4_6 - 1;
        this.b[var3_3] = new gu(false, false, false, false, false, false, false, false, false, false);
        var9_13 = !mo.b(this.c).c() ? (!mo.b(this.c).d() ? (!ed.b(mo.b((mo)this.c).b) ? mo.b((mo)this.c).b : mo.b((mo)this.c).e) : mo.X()) : mo.W();
        this.b[var3_3].h(var9_13);
        this.b[var3_3].a(this.a.length - 1);
        if (!ed.b(mo.b((mo)this.c).f)) {
            var7_14 = this.b[var3_3];
            var9_13 = mo.b((mo)this.c).f;
            var7_14.a.b(16, var9_13);
        }
        var7_14 = this.b[var3_3];
        var2_2 = this.b[var4_6 - 2].b();
        var7_14.a.b(8, var2_2);
        this.c[var3_3] = this.h;
        var8_15 = new Vector<oz>();
        var5_16 = null;
        var4_6 = 0;
        while (true) {
            block23: {
                block24: {
                    if (var4_6 >= this.b.length) {
                        this.o = new oz[var8_15.size()];
                        var8_15.copyInto(this.o);
                        return;
                    }
                    var7_14 = this.b[var4_6];
                    var6_4 = var7_14.n();
                    if (!var7_14.a.b(14)) break block23;
                    if (var7_14.p() == 2) break block24;
                    if (var5_16 != null) {
                        var5_16.a.h(this.b[var4_6].m());
                        if (var5_16.a == 0) {
                            var5_16.j();
                        }
                        var8_15.addElement(var5_16);
                        var5_16 = null;
                    }
                    if (var4_6 != this.b.length - 1) {
                        var8_15.addElement(new oz(var7_14, var4_6, 1, var6_4, this.a[var6_4], var7_14.r()));
                        if (this.c.m()) {
                            var3_3 = this.b[var4_6 + 1].n();
                            var8_15.addElement(new oz(var7_14, var4_6, 2, var3_3, this.a[var3_3], this.b[var4_6 + 1].r()));
                        }
                        break block23;
                    } else {
                        var8_15.addElement(new oz(var7_14, var4_6, 3, var6_4, this.a[var6_4], var7_14.r()));
                    }
                    break block23;
                }
                if (var5_16 != null && this.c.m()) {
                    var5_16.a = 1;
                }
                if (var5_16 == null) {
                    var3_3 = this.c.m() != false ? 4 : 0;
                    var20_17(var7_14, var4_6, var3_3, var6_4, this.a[var6_4], var7_14.r());
                }
                var5_16.c += this.b[var4_6].h();
                var5_16.g += this.b[var4_6].j();
                if (!this.c.m()) {
                    var8_15.addElement(var5_16);
                    var5_16 = null;
                } else {
                    var5_16.i();
                }
            }
            ++var4_6;
        }
lbl-1000:
        // 1 sources

        {
            while (true) {
                var6_4 = var3_3;
                var18_19 = var17_12.readShort();
                var19_20 = var17_12.readShort();
                var14_18 = this.a[var6_4 - 1];
                if (mo.a(this.c) != 4) {
                    var3_3 = var6_4 + 1;
                    this.a[var6_4] = new iv(var14_18.a + var18_19, var14_18.b + var19_20);
                    continue;
                }
                this.a[var6_4] = var14_18.a(var18_19, var19_20, var15_11);
                var3_3 = var6_4 + 1;
            }
        }
    }

    public void h(int n) {
        if (this.o[n].a && this.c.m()) {
            Vector<oz> vector = new Vector<oz>();
            for (int i = 0; i < this.o.length; ++i) {
                oz oz2 = this.o[i];
                if (i == n) {
                    oz2.j();
                    vector.addElement(oz2);
                    for (int k = oz2.f + 1; k < this.b.length && this.b[k].p() == 2; ++k) {
                        gu gu2 = this.b[k];
                        new oz(gu2, k, 4, gu2.n(), this.a[gu2.n()], gu2.r()).a = k - oz2.f + 1;
                        vector.addElement(new oz(gu2, k, 4, gu2.n(), this.a[gu2.n()], gu2.r()));
                    }
                    continue;
                }
                vector.addElement(oz2);
            }
            this.o = new oz[vector.size()];
            vector.copyInto(this.o);
        }
    }

    public void g(int n) {
        if (!this.o[n].a && this.c.m()) {
            Vector<oz> vector = new Vector<oz>();
            boolean bl2 = false;
            for (int i = 0; i < this.o.length; ++i) {
                oz oz2 = this.o[i];
                if (i != n) {
                    if (bl2 && i >= n && oz2.b()) continue;
                    bl2 = false;
                    vector.addElement(oz2);
                    continue;
                }
                oz2.i();
                bl2 = true;
                vector.addElement(oz2);
            }
            this.o = new oz[vector.size()];
            vector.copyInto(this.o);
            mo.b(this.c, n);
        }
    }

    /*
     * WARNING - Removed back jump from a try to a catch block - possible behaviour change.
     * Unable to fully structure code
     * Enabled aggressive block sorting
     * Enabled unnecessary exception pruning
     * Enabled aggressive exception aggregation
     */
    private void a(short var1_1) {
        block5: {
            break block5;
lbl-1000:
            // 1 sources

            {
                while (var3_3 != null) {
                    var3_3.a(this.a.size(), this);
                    this.a.addElement(var3_3);
                    this.b.addElement(String.valueOf(var2_2));
                    if (var2_2 < this.a) ** GOTO lbl20
                    this.a = var2_2 + 1;
                    ** GOTO lbl20
                }
                ** GOTO lbl20
            }
        }
        var2_2 = 0;
        this.a = 0;
        while (true) {
            block6: {
                if (var2_2 >= 9) {
                    this.x();
                    return;
                }
                if (!gu.c(var1_1, var2_2)) break block6;
                {
                    var3_3 = gu.a(nz.a("HOTKEYS" + var2_2), (short)1029, this.b, false);
                    ** GOTO lbl-1000
                }
            }
            ++var2_2;
        }
    }

    public gu(fu fu2) {
        this(false, false, false);
        this.b = new Vector();
        this.b = fu2;
        DataInput dataInput = nz.a("HOTKEYS");
        if (dataInput != null) {
            try {
                short s = dataInput.readShort();
                switch (s) {
                    case 1029: {
                        String string = dataInput.readUTF();
                        if (ed.b(string)) break;
                        String[] stringArray = ed.a(string, '|');
                        this.a = 0;
                        for (int i = 0; i < stringArray.length; ++i) {
                            this.b.addElement(stringArray[i]);
                            bj bj2 = this.c(i);
                            if (bj2 != null) {
                                bj2.a(i, this);
                                this.a.addElement(bj2);
                                int n = Integer.valueOf(stringArray[i]);
                                if (n < this.a) continue;
                                this.a = n + 1;
                                continue;
                            }
                            this.b.removeElement(this.b.lastElement());
                        }
                        break;
                    }
                    case 1024: 
                    case 1025: 
                    case 1026: 
                    case 1027: {
                        int n;
                        int n2 = 1;
                        short s2 = dataInput.readShort();
                        for (n = 0; n < 9 && n2 != 0; ++n) {
                            if (!gu.c(s2, n)) continue;
                            this.b.addElement(String.valueOf(n));
                            n2 &= this.a(n, gu.a(dataInput, s, fu2, false));
                        }
                        n = n2 & this.x();
                        this.b.removeAllElements();
                        if (n == 0) {
                            s2 = 0;
                        }
                        this.a(s2);
                    }
                    case 1028: {
                        this.a(dataInput.readShort());
                    }
                }
                return;
            }
            catch (IOException iOException) {
                me.a("FAVORITE", iOException);
            }
        }
    }

    public boolean a(bj bj2, int n) {
        this.c("c", n);
        String string = bj2.v();
        String string2 = String.valueOf(1 + n);
        if ("".equals(string)) {
            string = !(bj2 instanceof ar) ? (!(bj2 instanceof gc) ? (bj2 instanceof bp ? lh.d(112) : lh.d(110)) : lh.d(111)) : lh.d(109);
            string = ed.a(string, string2);
        }
        bj2.c(string);
        if (n >= this.a.size()) {
            this.a.addElement(gu.a(bj2));
            this.b.addElement(String.valueOf(this.a));
        } else {
            this.a.setElementAt(gu.a(bj2), n);
            this.b.setElementAt(String.valueOf(this.a), n);
        }
        ++this.a;
        boolean bl2 = this.a(n, bj2) && this.x();
        if (bl2) {
            bj2.a(n, this);
        }
        return bl2;
    }

    /*
     * Unable to fully structure code
     * Enabled aggressive block sorting
     * Enabled unnecessary exception pruning
     * Enabled aggressive exception aggregation
     */
    private static gu a(String var0, int var1_1) {
        block25: {
            if (var0 == null || var0.length() == 0) break block25;
            if ("@map".equals(var0)) {
                return new gu(3, false);
            }
            if ("@gps".equals(var0)) {
                return new gu(2, false);
            }
            if (!var0.startsWith("@latlon:")) {
                if (!var0.startsWith("@cellid:")) {
                    return new gu(var0);
                }
            } else {
                var1_1 = (var0 = var0.substring("@latlon:".length())).indexOf(44);
                if (var1_1 == -1) {
                    return new gu(3, false);
                }
                var14_10 = var0.substring(0, var1_1);
                var0 = var0.substring(var1_1 + 1);
                return new gu(ed.a(var14_10, 6), ed.a(var0, 6), false);
            }
            var10_2 = -1;
            var9_3 = -1;
            var6_4 = 0;
            var2_5 = -1;
            var1_1 = -1;
            var11_6 = -1;
            var12_7 = -1;
            var0 = var0.substring("@cellid:".length());
            var4_8 = System.currentTimeMillis();
            var13_9 = ed.a(var0, ',');
            block16: while (true) {
                var7_12 = var4_8;
                if (var6_4 >= var13_9.length) break;
                var0 = var13_9[var6_4];
                try {}
                catch (NumberFormatException v0) lbl-1000:
                // 2 sources

                {
                    while (true) {
                        var4_8 = var7_12;
                        var3_11 = var2_5;
                        ** GOTO lbl75
                        break;
                    }
                }
                var4_8 = Long.parseLong(var0);
                switch (var6_4) {
                    case 4: {
                        var3_11 = (int)var4_8;
                        switch (var3_11) {
                            default: {
                                ** continue;
                            }
                            case 3: 
                            case 4: 
                            case 5: 
                        }
                        var4_8 = var7_12;
                        ** GOTO lbl75
                    }
                    case 6: {
                        var3_11 = var2_5;
                        ** GOTO lbl75
                    }
                    case 5: {
                        var1_1 = (int)var4_8;
                        var3_11 = var2_5;
                        var4_8 = var7_12;
                        ** GOTO lbl75
                    }
                    case 3: {
                        var3_11 = var2_5;
                        var12_7 = (int)var4_8;
                        var4_8 = var7_12;
                        ** GOTO lbl75
                    }
                    case 2: {
                        var3_11 = var2_5;
                        var11_6 = (int)var4_8;
                        var4_8 = var7_12;
                        ** GOTO lbl75
                    }
                    case 1: {
                        var3_11 = var2_5;
                        var9_3 = (int)var4_8;
                        var4_8 = var7_12;
                        ** GOTO lbl75
                    }
                    case 0: {
                        var10_2 = (int)var4_8;
                        var4_8 = var7_12;
                        var3_11 = var2_5;
lbl75:
                        // 8 sources

                        ++var6_4;
                        var2_5 = var3_11;
                        continue block16;
                    }
                }
                break;
            }
            return new gu(ej.a(null, var2_5, var12_7, var11_6, -1, var10_2, var9_3, -1, -1, var1_1, var7_12));
            catch (NumberFormatException v1) {
                return new gu(3, false);
            }
        }
        return new gu(var1_1, false);
    }

    private void B() {
        boolean bl2;
        try {
            byte[] byArray = lh.k().f().g("LAST_VERSION");
            if (byArray != null && byArray.length > 0) {
                this.a = new DataInputStream(new ByteArrayInputStream(byArray)).readUTF();
            }
        }
        catch (IOException iOException) {
            me.b("Upgrade", iOException);
        }
        if (!(bl2 = this.a != null)) {
            this.a = this.f ? gu.w() : "";
        }
        boolean bl3 = this.C();
        if (!bl2 || bl3) {
            String string = gu.w();
            try {
                ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
                new DataOutputStream(byteArrayOutputStream).writeUTF(string);
                ByteArrayOutputStream byteArrayOutputStream2 = byteArrayOutputStream;
                lh.k().f().a("LAST_VERSION", byteArrayOutputStream2.toByteArray());
            }
            catch (IOException iOException) {
                me.b("Upgrade", iOException);
            }
        }
        if (bl3) {
            bl2 = ed.b(this.a) || this.a.compareTo("2.3.0") < 0;
            this.b = bl2;
            me.a((short)12, gu.w(), this.a);
        }
    }

    public synchronized void q() {
        if (this.a) {
            try {
                byte[] byArray;
                Hashtable hashtable = this.c;
                ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
                DataOutputStream dataOutputStream = new DataOutputStream(byteArrayOutputStream);
                dataOutputStream.writeShort(hashtable.size());
                Enumeration enumeration = hashtable.keys();
                while (enumeration.hasMoreElements()) {
                    String string = (String)enumeration.nextElement();
                    byArray = (byte[])hashtable.get(string);
                    if (byArray == null) {
                        byArray = new byte[]{};
                    }
                    dataOutputStream.writeUTF(string);
                    dataOutputStream.writeShort(byArray.length);
                    dataOutputStream.write(byArray);
                }
                byte[] byArray2 = byteArrayOutputStream.toByteArray();
                if (byArray2.length <= 2000) {
                    byArray = new byte[2000];
                    System.arraycopy(byArray2, 0, byArray, 0, byArray2.length);
                } else {
                    byArray = byArray2;
                }
                this.a.b(byArray, "Preferences");
            }
            catch (IOException iOException) {
                me.a("FLASH", iOException);
            }
            this.a = false;
        }
    }

    /*
     * Enabled aggressive block sorting
     * Enabled unnecessary exception pruning
     * Enabled aggressive exception aggregation
     */
    private synchronized void aj() {
        if (this.c == null) {
            byte[] byArray = this.a.d("Preferences");
            if (byArray == null) {
                this.a.b(new byte[2000], "Preferences");
                this.c = new Hashtable();
            } else {
                DataInputStream dataInputStream = new DataInputStream(new ByteArrayInputStream(byArray));
                Hashtable<String, byte[]> hashtable = new Hashtable<String, byte[]>();
                try {
                    int n = dataInputStream.readUnsignedShort();
                    for (int i = 0; i < n; ++i) {
                        String string = dataInputStream.readUTF();
                        byte[] byArray2 = new byte[dataInputStream.readUnsignedShort()];
                        dataInputStream.readFully(byArray2);
                        hashtable.put(string, byArray2);
                    }
                }
                catch (IOException iOException) {
                    me.a("FLASH", iOException);
                }
                this.c = hashtable;
            }
            this.a = false;
        }
    }

    public gu(w w2, String string, int n, int n2, Hashtable hashtable, String string2) {
        this.a = w2;
        this.c = n;
        this.a = n2;
        this.b = string2;
        if (hashtable != null && string != null) {
            synchronized (hashtable) {
                if (!hashtable.containsKey(string)) {
                    this.e();
                    hashtable.put(string, new Integer(this.e << 8 & 0xFF00 | this.f & 0xFF));
                } else {
                    int n3 = (Integer)hashtable.get(string);
                    this.e = (byte)(n3 >> 8);
                    this.f = (byte)(n3 & 0xFF);
                }
                return;
            }
        }
        this.e();
    }

    public synchronized void a(String string, am am2) {
        block5: {
            if ("MasfAuthService".equals(string)) {
                byte[] byArray;
                if (!am2.a() || (byArray = am2.b()) == null || byArray.length == 0) break block5;
                String string2 = new String(byArray);
                string = gu.a(string2, "Auth=");
                String string3 = gu.a(string2, "CaptchaToken=");
                if (string != null && this.a != null && this.b != null) {
                    gu.f();
                    this.a(this.a, this.b, string);
                    this.b = null;
                    this.a = null;
                    this.d = null;
                    break block5;
                }
                if (string3 == null || this.a == null || this.b == null) break block5;
                this.d = new mg(string3);
            }
        }
        return;
        finally {
            this.aa();
            this.x();
        }
    }

    private boolean a(int n, bj bj2) {
        String string = this.b.elementAt(n).toString();
        try {
            ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
            DataOutputStream dataOutputStream = new DataOutputStream(byteArrayOutputStream);
            if (bj2 != null) {
                if (bj2 instanceof ar) {
                    dataOutputStream.writeByte(3);
                    dataOutputStream.writeUTF(bj2.v());
                    ((ar)bj2).a(dataOutputStream);
                } else if (bj2 instanceof mo) {
                    dataOutputStream.writeByte(4);
                    ((mo)bj2).b(dataOutputStream);
                }
            }
            lh.k().f().b(byteArrayOutputStream.toByteArray(), "HOTKEYS" + string);
            return true;
        }
        catch (IOException iOException) {
            return false;
        }
    }

    private boolean x() {
        try {
            ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
            DataOutputStream dataOutputStream = new DataOutputStream(byteArrayOutputStream);
            dataOutputStream.writeShort(1029);
            StringBuffer stringBuffer = new StringBuffer();
            for (int i = 0; i < this.b.size(); ++i) {
                stringBuffer.append(this.b.elementAt(i));
                if (i >= this.b.size() - 1) continue;
                stringBuffer.append('|');
            }
            dataOutputStream.writeUTF(stringBuffer.toString());
            lh.k().f().b(byteArrayOutputStream.toByteArray(), "HOTKEYS");
            return true;
        }
        catch (IOException iOException) {
            return false;
        }
    }

    public synchronized void ai() {
        ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
        DataOutputStream dataOutputStream = new DataOutputStream(byteArrayOutputStream);
        try {
            dataOutputStream.writeShort(1);
            dataOutputStream.writeShort(this.b.size());
            for (int i = 0; i < this.b.size(); ++i) {
                ((b)this.b.elementAt(i)).a(dataOutputStream);
            }
            lh.k().f().b(byteArrayOutputStream.toByteArray(), "CellTowerDB");
            return;
        }
        catch (IOException iOException) {
            return;
        }
    }

    /*
     * Unable to fully structure code
     * Enabled aggressive block sorting
     * Enabled unnecessary exception pruning
     * Enabled aggressive exception aggregation
     */
    public static synchronized void ad() {
        if (gu.e != null) {
            var0 = gu.e;
            var0.c;
            {
                block6: {
                    var3_3 = new ByteArrayOutputStream();
                    var1_4 = new DataOutputStream(var3_3);
                    synchronized (var0) {
                        try {
                            var1_4.writeInt(var0.d);
                            var1_4.writeInt(var0.c);
                            var1_4.writeInt(var0.e);
                            var1_4.writeInt(var0.b);
                            break block6;
                        }
                        catch (Throwable var2_1) {}
                    }
                    ** try [egrp 0[TRYBLOCK] [1 : 18->67)] { 
lbl16:
                    // 1 sources

                    throw var2_1;
                }
                var4_5 = var3_3.toByteArray();
                lh.k().f().a("Stats", var4_5);
            }
lbl22:
            // 1 sources

            catch (IOException var2_2) {
                me.a("STATS", var2_2);
            }
            gu.e.a(true);
        }
    }

    /*
     * Enabled force condition propagation
     * Lifted jumps to return sites
     */
    private gu(boolean bl2, boolean bl3, boolean bl4, boolean bl5, boolean bl6) {
        this.a = lh.k().f();
        this.c = new Hashtable(0);
        byte[] byArray = this.a.d(gu.f());
        lk lk2 = new lk(la.aE);
        if (byArray == null) return;
        if (byArray.length == 0) return;
        try {
            lk2.a(byArray);
        }
        catch (IOException iOException) {
            return;
        }
        if (lk2 == null) return;
        if (!lk2.h(1)) return;
        this.a(lk2.f(1), true);
    }

    public gu(boolean bl2, boolean bl3, boolean bl4, boolean bl5, boolean bl6, boolean bl7) {
        this.l = new long[6];
        aa aa2 = lh.k().f();
        DataInput dataInput = nz.a(aa2, e);
        try {
            bl2 = this.a(dataInput);
        }
        catch (IOException iOException) {
            bl2 = false;
            aa2.b(e);
        }
        if (!bl2) {
            this.l[0] = 0L;
            this.l[1] = j;
            this.l[2] = 0L;
            this.l[3] = 0L;
            this.l[4] = 0L;
            this.l[5] = j;
            this.d = 0;
            this.a = 0;
            this.e = 0;
            this.b = 0;
            this.c = 1;
        }
    }

    private void a(boolean n) {
        int n2;
        int n3;
        n = n != 0 ? 0 : 50;
        synchronized (this) {
            n3 = this.a;
            n2 = this.f;
            if (n3 + n2 > n) {
                this.a = 0;
                this.f = 0;
            }
        }
        if (n3 + n2 > n) {
            StringBuffer stringBuffer = new StringBuffer();
            if (n3 > 0) {
                stringBuffer.append("|");
                stringBuffer.append("f");
                stringBuffer.append("=");
                stringBuffer.append(n3);
            }
            if (n2 > 0) {
                stringBuffer.append("|");
                stringBuffer.append("m");
                stringBuffer.append("=");
                stringBuffer.append(n2);
            }
            stringBuffer.append("|");
            me.a((short)22, "c", stringBuffer.toString());
        }
    }

    public static void a(String string) {
        if (j != -1 && d >= 600000L) {
            StringBuffer stringBuffer = new StringBuffer();
            int n = j - -1;
            long l = d;
            l = n != 0 && l != 0L ? (long)n * (long)10 * 3600000L / l : 0L;
            n = l != 0L ? (int)(60000L / l) : 0;
            gu.a(stringBuffer, "ss", c);
            stringBuffer.append("bm" + "=");
            stringBuffer.append(n);
            stringBuffer.append("@\u001f");
            gu.a(stringBuffer, "bph", l);
            gu.a(stringBuffer, "te", d);
            gu.a(stringBuffer, "ff", h);
            gu.a(stringBuffer, "fb", g);
            gu.a(stringBuffer, "gf", f);
            gu.a(stringBuffer, "gb", e);
            me.a((short)60, string, stringBuffer.toString());
        }
    }

    public static void a(String string, int n, int n2, int n3, int n4, int n5, String string2) {
        String[] stringArray = new String[7];
        stringArray[0] = "t=" + string;
        stringArray[1] = "tw=" + n;
        stringArray[2] = "tf=" + n2;
        stringArray[3] = "tl=" + n3;
        stringArray[4] = "n=" + n4;
        stringArray[5] = "b=" + n5;
        string = !ed.b(string2) ? "f=" + string2 : null;
        stringArray[6] = string;
        me.a((short)22, "TL", me.a(stringArray));
    }

    public static void a(boolean bl2, int n) {
        String string = bl2 ? "f" : "b";
        gu.a("m", me.a(new String[]{"d=" + string, "s=" + n}));
    }

    private static void a(String string, int n) {
        string = "s".equals(string) ? me.a(new String[]{"m=" + string, "i=" + n}) : "m=" + string;
        gu.a("a", string);
    }

    public void c(String string, int n) {
        String string2 = "";
        if (this.c(n) != null) {
            string2 = this.c(n).Z();
        }
        me.a((short)9, "f", me.a(new String[]{"a=" + string, "i=" + String.valueOf(n), "t=" + string2}));
    }

    public static void a(dc dc2, dc dc3, dc dc4, dc dc5, dc dc6, dc dc7) {
        me.a((short)22, "sv-r", me.a(new String[]{"t=r", "rff=" + gu.a(dc2), "rbf=" + gu.a(dc3), "rfl=" + gu.a(dc4), "rbl=" + gu.a(dc5), "mf=" + gu.a(dc6), "mb=" + gu.a(dc7)}));
    }

    public static void a(int n, String string) {
        gu.a("r", me.a(new String[]{"t=" + n, "a=" + string}));
    }

    private static String a(dc dc2) {
        return "" + dc2.d() + "," + dc2.c() + "," + dc2.a;
    }

    public bj c(int n) {
        bj bj2 = this.d(n);
        if (!(bj2 instanceof mo) && bj2 != null) {
            return bj2;
        }
        if (n < this.b.size()) {
            String string = this.b.elementAt(n).toString();
            try {
                bj2 = gu.a(nz.a("HOTKEYS" + string), (short)1029, this.b, false);
                if (bj2 != null) {
                    bj2.a(n, this);
                }
                return bj2;
            }
            catch (IOException iOException) {}
        }
        return null;
    }

    public boolean c(int n) {
        bj bj2 = this.d(n);
        this.c("d", n);
        this.a.removeElementAt(n);
        String string = this.b.elementAt(n).toString();
        this.b.removeElementAt(n);
        n = lh.k().f().b("HOTKEYS" + string) & this.x();
        if (n != 0) {
            bj2.Y();
        }
        return n != 0;
    }

    public boolean a(int n, int n2) {
        this.c("m", n);
        if (n != n2) {
            bj bj2 = this.c(n);
            this.a.removeElementAt(n);
            this.a.insertElementAt(bj2, n2);
            bj2 = this.b.elementAt(n);
            this.b.removeElementAt(n);
            this.b.insertElementAt(bj2, n2);
            n = this.x() ? 1 : 0;
        } else {
            n = 0;
        }
        if (n != 0) {
            this.d(n2).a(n2, this);
        }
        return n != 0;
    }

    public gu a() {
        gu gu2 = new gu(false, false, false, false, false, false, false, false, false, false, false, false, false);
        gu gu3 = new gu(false, false, false, false, false, false, false, false, false, false, false, false, false, false, false);
        if (this.f == 0 && this.b == 0) {
            gu2.d = ov.e(65536, this.d);
            gu2.a = ov.e(65536, this.a);
            gu2.c = -ov.c(gu2.d, this.c);
            gu2.e = -ov.c(gu2.a, this.e);
            return gu2;
        }
        int n = ov.e(this.d, 65536);
        int n2 = ov.e(this.f, 65536);
        int n3 = ov.e(this.b, 65536);
        if ((n = ov.c(n, ov.e(this.a, 65536)) - ov.c(n2, n3)) != 0) {
            gu2.d = ov.e(this.a, n);
            gu2.f = -ov.e(this.f, n);
            gu2.b = -ov.e(this.b, n);
            gu2.a = ov.e(this.d, n);
            gu3.c = this.c;
            gu3.b = this.e;
            gu2.b(gu3);
            gu2.c = -gu3.c;
            gu2.e = -gu3.b;
        }
        return gu2;
    }

    public void d(gu gu2) {
        int n = ov.c(this.d, gu2.d);
        int n2 = ov.c(this.a, gu2.a);
        int n3 = ov.c(this.c, gu2.d) + gu2.c;
        int n4 = ov.c(this.e, gu2.a) + gu2.e;
        int n5 = 0;
        int n6 = 0;
        if (this.f != 0 || this.b != 0 || gu2.f != 0 || gu2.b != 0) {
            n += ov.c(this.f, gu2.b);
            n2 += ov.c(this.b, gu2.f);
            n5 = 0 + (ov.c(this.d, gu2.f) + ov.c(this.f, gu2.a));
            n6 = 0 + (ov.c(this.b, gu2.d) + ov.c(this.a, gu2.b));
            n3 += ov.c(this.e, gu2.b);
            n4 += ov.c(this.c, gu2.f);
        }
        this.d = n;
        this.f = n5;
        this.b = n6;
        this.a = n2;
        this.c = n3;
        this.e = n4;
    }

    public void a(gu gu2) {
        int n = ov.c(this.d, gu2.c) + this.c;
        if (this.b != 0) {
            n += ov.c(this.b, gu2.b);
        }
        int n2 = ov.c(this.a, gu2.b) + this.e;
        if (this.f != 0) {
            n2 += ov.c(this.f, gu2.c);
        }
        gu2.c = n;
        gu2.b = n2;
    }

    private void b(gu gu2) {
        int n = ov.c(this.d, gu2.c);
        if (this.b != 0) {
            n += ov.c(this.b, gu2.b);
        }
        int n2 = ov.c(this.a, gu2.b);
        if (this.f != 0) {
            n2 += ov.c(this.f, gu2.c);
        }
        gu2.c = n;
        gu2.b = n2;
    }

    public void a(gu gu2, gu gu3) {
        int n = ov.c(this.d, gu2.c) + this.c;
        if (this.b != 0) {
            n += ov.c(this.b, gu2.b);
        }
        int n2 = ov.c(this.a, gu2.b) + this.e;
        if (this.f != 0) {
            n2 += ov.c(this.f, gu2.c);
        }
        gu3.c = n >> 8;
        gu3.b = n2 >> 8;
    }

    public lk a() {
        lk lk2 = new lk(null);
        lk2.b(13, this.a);
        lk2.b(16, this.b);
        for (int i = 0; i < this.a.length; ++i) {
            String string = this.a[i];
            String string2 = (String)this.c.get(string);
            lk2.a(14, string);
            lk2.a(15, string2);
        }
        return lk2;
    }

    public Vector b(int[] nArray) {
        if (nArray != null && this.c != null) {
            Vector<lk> vector = new Vector<lk>(nArray.length);
            int n = this.c.i(1);
            block0: for (int i = 0; i < n; ++i) {
                lk lk2 = this.c.e(1, i);
                int n2 = lk2.d(1);
                for (int k = 0; k < nArray.length; ++k) {
                    if (n2 != nArray[k]) {
                        continue;
                    }
                    vector.addElement(lk2);
                    continue block0;
                }
            }
            return vector;
        }
        return new Vector();
    }

    private synchronized void a(String string, String string2, String string3) {
        lk lk2 = gu.f();
        if (lk2.h(1) && !lk2.g(1).equals(string2)) {
            lk2.a();
        }
        lk2.b(1, this.b);
        int n = gu.a(lk2, string);
        if (n != -1) {
            lk2.g(2, n);
        }
        lk lk3 = new lk((cp)my.a.b(2));
        lk3.b(3, string);
        lk3.b(4, string3);
        lk2.a(2, lk3);
        gu.c(lk2);
    }

    public boolean a(char c, ht ht2, int n, int n2) {
        int n3 = this.c(c);
        int n4 = this.b(c);
        int n5 = this.b.indexOf(c);
        c = (char)(n5 * n3);
        if (n5 >= 0) {
            le le2 = this.b();
            if (this.b.length() != 1) {
                int n6 = ht2.g();
                int n7 = ht2.f();
                int n8 = ht2.h();
                int n9 = ht2.d();
                ht2.b(n, n2, n3, n4);
                ht2.a(le2, n - c, n2);
                ht2.a(n6, n7, n8, n9);
                return true;
            }
            ht2.a(le2, n, n2);
            return true;
        }
        return false;
    }

    public le d(char c) {
        int n;
        if (this.a(c) && (n = this.b.indexOf(c)) >= 0) {
            le le2 = this.b();
            if (this.b.length() != 1) {
                int n2 = this.c(c);
                c = (char)this.b(c);
                return this.b().a(n * n2, 0, n2, c, n2, c);
            }
            return le2;
        }
        return null;
    }

    public int c(char c) {
        if (this.a(c)) {
            return this.b().a() / this.b.length();
        }
        return -1;
    }

    public int b(char c) {
        if (this.a(c)) {
            return this.b().b();
        }
        return -1;
    }

    private static boolean k(int n) {
        return n >= Short.MIN_VALUE && n <= Short.MAX_VALUE;
    }

    private static boolean c(int n, int n2) {
        return (n & 1 << n2) > 0;
    }

    public boolean c() {
        return System.getProperty("microedition.location.version") != null;
    }

    public boolean f() {
        return this.c.d && this.h().length > 0;
    }

    public boolean h() {
        return lh.p().startsWith("ms-vodafone") && this.i() != null;
    }

    public static boolean a(String string) {
        return (string = string.trim()).indexOf("/gmm/x") != -1 || string.endsWith(".kml") || string.endsWith(".kmz") || string.endsWith(".gmml") || string.indexOf(".kml?") != -1 || string.indexOf(".kmz?") != -1 || string.indexOf(".gmml?") != -1 || string.indexOf(".kml#") != -1 || string.indexOf(".kmz#") != -1 || string.indexOf(".gmml#") != -1 || string.startsWith("http://maps.google.com/maps") && string.indexOf("output=kml") != -1;
    }

    public void s() {
        block5: {
            block6: {
                block4: {
                    if (!this.h() || this.f() != null) break block4;
                    String string = this.e();
                    if (string.length() > 44) break block5;
                    if (!string.startsWith("hosted_images/")) break block6;
                    boolean bl2 = lh.k().f().e(gu.c(string)) != -1;
                    if (!bl2) {
                        ck.e().a(new lh(string, new gu(false, false, false, false, false, false, false, false, false)));
                    }
                }
                return;
            }
            throw new IllegalArgumentException("File not in hosted_images/");
        }
        throw new IllegalArgumentException("Filename can only be 44 chars");
    }

    /*
     * Enabled aggressive block sorting
     * Enabled unnecessary exception pruning
     * Enabled aggressive exception aggregation
     */
    private le b() {
        if (this.b == null && this.a != null) {
            try {
                this.b = lh.k().g().a(this.a);
            }
            catch (IOException iOException) {
                throw new RuntimeException(iOException.toString());
            }
        }
        if (this.b != null && this.b.a() % this.b.length() != 0) {
            throw new RuntimeException("Image width (" + this.b.a() + ") is not " + "divisible by icon# (" + this.b.length() + ")");
        }
        return this.b;
    }

    public le f() {
        if (this.h() && this.b == null) {
            String string = this.e();
            byte[] byArray = lh.k().f().d(gu.c(string));
            le le2 = byArray != null ? lh.k().g().a(byArray, 0, byArray.length) : null;
            this.b = le2;
        }
        return this.b;
    }

    private static lk f() {
        lk lk2 = new lk(my.a);
        byte[] byArray = lh.k().f().d("MasfAuthService");
        if (byArray != null) {
            try {
                lk2.a(byArray);
                return lk2;
            }
            catch (IOException iOException) {}
        }
        return lk2;
    }

    private static void c(lk lk2) {
        aa aa2 = lh.k().f();
        ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
        try {
            lk2.a(byteArrayOutputStream);
        }
        catch (IOException iOException) {
            throw new RuntimeException(iOException.toString());
        }
        try {
            aa2.a(byteArrayOutputStream.toByteArray(), "MasfAuthService");
            return;
        }
        catch (IOException iOException) {
            return;
        }
    }

    public static void c(int n) {
        try {
            ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
            new DataOutputStream(byteArrayOutputStream).writeInt(n);
            ByteArrayOutputStream byteArrayOutputStream2 = byteArrayOutputStream;
            ck.e().a(16, byteArrayOutputStream2.toByteArray(), false, false);
            return;
        }
        catch (IOException iOException) {
            me.a("GoogleNav", iOException);
            return;
        }
    }

    public static synchronized gu c() {
        if (e == null) {
            gu gu2 = null;
            DataInput dataInput = nz.c("Stats");
            if (dataInput != null) {
                try {
                    gu2 = new gu(false, false, false, false, false, false, false);
                    gu2.d = dataInput.readInt();
                    gu2.c = dataInput.readInt();
                    gu2.e = dataInput.readInt();
                    gu2.b = dataInput.readInt();
                }
                catch (IOException iOException) {
                    gu2 = null;
                    me.a("STATS", iOException);
                    lh.k().f().b("Stats");
                }
            }
            if ((e = gu2) == null) {
                e = new gu(false, false, false, false, false, false, false);
            }
        }
        return e;
    }

    public static gu e() {
        DataInput dataInput = nz.a("CellTowerDB");
        gu gu2 = new gu(false, false, false, false, false, false, false, false);
        if (dataInput == null) {
            return gu2;
        }
        try {
            int n;
            if (dataInput.readUnsignedShort() == 1 && (n = dataInput.readUnsignedShort()) <= 100) {
                gu2.b.ensureCapacity(n);
                for (int i = 0; i < n; ++i) {
                    gu2.b.addElement(b.a(dataInput));
                }
            }
            return gu2;
        }
        catch (IOException iOException) {
            return new gu(false, false, false, false, false, false, false, false);
        }
    }

    public synchronized void a(b b2) {
        this.b.removeElement(b2);
        if (this.b.size() >= 100) {
            this.b.removeElementAt(0);
        }
        this.b.addElement(b2);
    }

    /*
     * Enabled aggressive block sorting
     */
    public synchronized boolean a(String string, byte[] byArray) {
        this.aj();
        this.a = true;
        if (byArray != null) {
            this.c.put(string, byArray);
            return true;
        } else {
            if (this.c.remove(string) != null) return true;
            return false;
        }
    }

    private synchronized void a(ka ka2, String string) {
        this.b.addElement(ka2);
        if (!this.a) {
            oi.a("www.google.com/accounts/ClientLogin", null, string.getBytes(), "MasfAuthService", this);
            this.a = true;
        }
    }

    private static String a(String string, String string2) {
        int n = string.indexOf(string2);
        if (n >= 0) {
            return string.substring(n += string2.length(), string.indexOf(10, n));
        }
        return null;
    }

    private static synchronized String f(String string) {
        lk lk2 = gu.f();
        int n = gu.a(lk2, string);
        if (n != -1) {
            return lk2.e(2, n).g(4);
        }
        return null;
    }

    public int e(int n) {
        if (this.b != null && this.b[n] != null) {
            return this.b[n].n();
        }
        return 0;
    }

    public int d(int n) {
        if (this.o != null && this.o[n] != null) {
            return this.o[n].i;
        }
        return 0;
    }

    private void d(int n) {
        if (this.d == 0) {
            this.d = n;
        }
    }

    public int a(cn cn2) {
        if (cn2.b <= 11) {
            return 4;
        }
        return 5;
    }

    public boolean a(char c) {
        return this.b.indexOf(c) >= 0;
    }

    public boolean f(int n) {
        return this.b[n].p() == 2;
    }

    private boolean C() {
        return !this.a.equals(gu.w());
    }

    public static boolean r() {
        return lh.o().equals("en") || lh.o().equals("en_US") || lh.o().equals("en_GB") || lh.o().equals("fr") || lh.r();
    }

    public static boolean m() {
        return !"ja".equals(lh.o()) && !lh.r();
    }

    public boolean y() {
        String string = this.x();
        return string.indexOf("amp.google") != -1 || string.indexOf("gjm.google") != -1 || string.indexOf("/glm/test") != -1;
    }

    public static boolean j() {
        return true || true || gu.m();
    }

    public static boolean g() {
        return !lh.r();
    }

    public static boolean aa() {
        if (Math.abs(System.currentTimeMillis() - p) >= o) {
            ej ej2 = ej.c();
            if (ej2 != null) {
                q = ej2.a;
            }
            p = System.currentTimeMillis();
        }
        if (q == -1) {
            return lh.r();
        }
        return q == o || q == n;
    }

    public boolean v() {
        block2: {
            for (int i = 0; i < this.b.length; ++i) {
                if (!this.b[i].a.h(17)) {
                    continue;
                }
                break block2;
            }
            return false;
        }
        return true;
    }

    public boolean b() {
        block2: {
            for (int i = 0; i < this.b.length; ++i) {
                if (!this.b(i).s()) {
                    continue;
                }
                break block2;
            }
            return false;
        }
        return true;
    }

    public gu(boolean bl2) {
        bl2 = !gd.F();
        this.f = bl2;
    }

    public final boolean a(int n) {
        boolean bl2 = n != -1 && n != this.a;
        this.a = n;
        return bl2;
    }

    public iv c(iv iv2) {
        long l = (this.l[0] + this.l[1] * (long)iv2.a + this.l[2] * (long)iv2.b) / j;
        long l2 = (this.l[3] + this.l[4] * (long)iv2.a + this.l[5] * (long)iv2.b) / j;
        boolean bl2 = !this.a(iv2, this.d / 2);
        if (bl2 && !iv2.equals(this.h) && !iv2.equals(this.b)) {
            this.b = iv2;
            ck.e().a(this);
        }
        this.e = (int)l - iv2.a;
        this.b = (int)l2 - iv2.b;
        return new iv((int)l, (int)l2);
    }

    /*
     * Unable to fully structure code
     */
    public static synchronized byte[] a(int var0, int var1_1, int var2_2) {
        var5_3 = new byte[64];
        var6_5 = gu.a[var0];
        block4: for (var3_4 = 0; var3_4 < 64; ++var3_4) {
            var4_6 = var6_5[var3_4] & 255;
            switch (var2_2) {
                case 0: {
                    var0 = var4_6 == 99 && var1_1 == 36 ? 138 : (int)(((long)var4_6 * (long)gu.b[var1_1] / 0x1000000L + 1L) / (long)2);
                    ** GOTO lbl12
                }
                case 1: {
                    var0 = var1_1 < 50 ? Math.min(5000 / var1_1, 5000) : Math.max(200 - 2 * var1_1, 0);
                    var0 = (var4_6 * var0 + 50) / 100;
lbl12:
                    // 2 sources

                    if (var0 >= 1) {
                        if (var0 > 255) {
                            var0 = 255;
                        }
                    } else {
                        var0 = 1;
                    }
                    var5_3[var3_4] = (byte)var0;
                    continue block4;
                }
            }
            throw new IllegalArgumentException("qualityAlgorithm");
        }
        return var5_3;
    }

    public static byte[] a(int n, String string) {
        int n2 = n + 1;
        char c = string.charAt(n);
        byte[] byArray = new byte[c];
        for (n = 0; n < c; ++n) {
            int n3 = string.charAt(n2);
            ++n2;
            if (n3 > 127) {
                n3 = 127 - n3;
            }
            byArray[n] = (byte)n3;
        }
        return byArray;
    }

    static {
        int n = 754 + 1;
        k = 6;
        int n2 = "@\u0010\u000b\f\u000e\f\n\u0010\u000e\r\u000e\u0012\u0011\u0010\u0013\u0018(\u001a\u0018\u0016\u0016\u00181#%\u001d(:3=<9387@H\\N@DWE78PmQW_bghg>Mqypdx\\egc@\u0011\u0012\u0012\u0018\u0015\u0018/\u001a\u001a/cB8Bcccccccccccccccccccccccccccccccccccccccccccccccccc\u026f\u0080\u00a7\u0080\u009f\u0000\u0010JFIF\u0000\u0001\u0001\u0000\u0000\u0001\u0000\u0001\u0000\u0000\u0080\u00a4\u0000C\u0000\b\u0006\u0006\u0007\u0006\u0005\b\u0007\u0007\u0007\t\t\b\n\f\u0014\r\f\u000b\u000b\f\u0019\u0012\u0013\u000f\u0014\u001d\u001a\u001f\u001e\u001d\u001a\u001c\u001c $.' \",#\u001c\u001c(7),01444\u001f'9=82<.342\u0080\u00a4\u0000C\u0001\t\t\t\f\u000b\f\u0018\r\r\u00182!\u001c!22222222222222222222222222222222222222222222222222\u0080\u00bf\u0000\u0011\b\u0000@\u0000@\u0003\u0001\"\u0000\u0002\u0011\u0001\u0003\u0011\u0001\u0080\u00bb\u0000\u001f\u0000\u0000\u0001\u0005\u0001\u0001\u0001\u0001\u0001\u0001\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\b\t\n\u000b\u0080\u00bb\u0000\u00ca\u0010\u0000\u0002\u0001\u0003\u0003\u0002\u0004\u0003\u0005\u0005\u0004\u0004\u0000\u0000\u0001}\u0001\u0002\u0003\u0000\u0004\u0011\u0005\u0012!1A\u0006\u0013Qa\u0007\"q\u00142\u00fe\u00ee\u00de\b#B\u00ce\u00be\u0015R\u00ae\u008f$3br\u00fd\t\n\u0016\u0017\u0018\u0019\u001a%&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz\u00fc\u00fb\u00fa\u00f9\u00f8\u00f7\u00f6\u00f5\u00ed\u00ec\u00eb\u00ea\u00e9\u00e8\u00e7\u00e6\u00e5\u00dd\u00dc\u00db\u00da\u00d9\u00d8\u00d7\u00d6\u00d5\u00cd\u00cc\u00cb\u00ca\u00c9\u00c8\u00c7\u00c6\u00c5\u00bd\u00bc\u00bb\u00ba\u00b9\u00b8\u00b7\u00b6\u00b5\u00ad\u00ac\u00ab\u00aa\u00a9\u00a8\u00a7\u00a6\u00a5\u009e\u009d\u009c\u009b\u009a\u0099\u0098\u0097\u0096\u0095\u008e\u008d\u008c\u008b\u008a\u0089\u0088\u0087\u0086\u0085\u0080\u00bb\u0000\u001f\u0001\u0000\u0003\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\b\t\n\u000b\u0080\u00bb\u0000\u00ca\u0011\u0000\u0002\u0001\u0002\u0004\u0004\u0003\u0004\u0007\u0005\u0004\u0004\u0000\u0001\u0002w\u0000\u0001\u0002\u0003\u0011\u0004\u0005!1\u0006\u0012AQ\u0007aq\u0013\"2\u00fe\b\u0014B\u00ee\u00de\u00ce\u00be\t#3R\u008f\u0015br\u00ae\n\u0016$4\u009e%\u008e\u0017\u0018\u0019\u001a&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz\u00fd\u00fc\u00fb\u00fa\u00f9\u00f8\u00f7\u00f6\u00f5\u00ed\u00ec\u00eb\u00ea\u00e9\u00e8\u00e7\u00e6\u00e5\u00dd\u00dc\u00db\u00da\u00d9\u00d8\u00d7\u00d6\u00d5\u00cd\u00cc\u00cb\u00ca\u00c9\u00c8\u00c7\u00c6\u00c5\u00bd\u00bc\u00bb\u00ba\u00b9\u00b8\u00b7\u00b6\u00b5\u00ad\u00ac\u00ab\u00aa\u00a9\u00a8\u00a7\u00a6\u00a5\u009d\u009c\u009b\u009a\u0099\u0098\u0097\u0096\u0095\u008d\u008c\u008b\u008a\u0089\u0088\u0087\u0086\u0085\u0080\u00a5\u0000\f\u0003\u0001\u0000\u0002\u0011\u0003\u0011\u0000?\u0000A\u0000\u00a2\u0145\u01e8\u028b\u032d\u03ce\u0470\u0511\u05b1\u0650\u06ef\u078d\u082a\u08c6\u0961\u09fb\u0a94\u0b2b\u0bc2\u0c57\u0ceb\u0d7d\u0e0e\u0e9e\u0f2c\u0fb8\u1044\u10cd\u1155\u11dc\u1260\u12e4\u1365\u13e5\u1463\u14e0\u155b\u15d4\u164c\u16c2\u1736\u17a9\u181a\u188a\u18f7\u1964\u19ce\u1a37\u1a9f\u1b05\u1b69\u1bcc\u1c2e\u1c8e\u1cec\u1d49\u1da5\u1dff\u1e58\u1eaf\u1f05\u1f5a\u1fad\u2000".charAt(754);
        short[] sArray = new short[n2];
        int n3 = 0;
        while (true) {
            int n4 = n;
            if (n3 >= n2) break;
            n = n4 + 1;
            sArray[n3] = (short)"@\u0010\u000b\f\u000e\f\n\u0010\u000e\r\u000e\u0012\u0011\u0010\u0013\u0018(\u001a\u0018\u0016\u0016\u00181#%\u001d(:3=<9387@H\\N@DWE78PmQW_bghg>Mqypdx\\egc@\u0011\u0012\u0012\u0018\u0015\u0018/\u001a\u001a/cB8Bcccccccccccccccccccccccccccccccccccccccccccccccccc\u026f\u0080\u00a7\u0080\u009f\u0000\u0010JFIF\u0000\u0001\u0001\u0000\u0000\u0001\u0000\u0001\u0000\u0000\u0080\u00a4\u0000C\u0000\b\u0006\u0006\u0007\u0006\u0005\b\u0007\u0007\u0007\t\t\b\n\f\u0014\r\f\u000b\u000b\f\u0019\u0012\u0013\u000f\u0014\u001d\u001a\u001f\u001e\u001d\u001a\u001c\u001c $.' \",#\u001c\u001c(7),01444\u001f'9=82<.342\u0080\u00a4\u0000C\u0001\t\t\t\f\u000b\f\u0018\r\r\u00182!\u001c!22222222222222222222222222222222222222222222222222\u0080\u00bf\u0000\u0011\b\u0000@\u0000@\u0003\u0001\"\u0000\u0002\u0011\u0001\u0003\u0011\u0001\u0080\u00bb\u0000\u001f\u0000\u0000\u0001\u0005\u0001\u0001\u0001\u0001\u0001\u0001\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\b\t\n\u000b\u0080\u00bb\u0000\u00ca\u0010\u0000\u0002\u0001\u0003\u0003\u0002\u0004\u0003\u0005\u0005\u0004\u0004\u0000\u0000\u0001}\u0001\u0002\u0003\u0000\u0004\u0011\u0005\u0012!1A\u0006\u0013Qa\u0007\"q\u00142\u00fe\u00ee\u00de\b#B\u00ce\u00be\u0015R\u00ae\u008f$3br\u00fd\t\n\u0016\u0017\u0018\u0019\u001a%&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz\u00fc\u00fb\u00fa\u00f9\u00f8\u00f7\u00f6\u00f5\u00ed\u00ec\u00eb\u00ea\u00e9\u00e8\u00e7\u00e6\u00e5\u00dd\u00dc\u00db\u00da\u00d9\u00d8\u00d7\u00d6\u00d5\u00cd\u00cc\u00cb\u00ca\u00c9\u00c8\u00c7\u00c6\u00c5\u00bd\u00bc\u00bb\u00ba\u00b9\u00b8\u00b7\u00b6\u00b5\u00ad\u00ac\u00ab\u00aa\u00a9\u00a8\u00a7\u00a6\u00a5\u009e\u009d\u009c\u009b\u009a\u0099\u0098\u0097\u0096\u0095\u008e\u008d\u008c\u008b\u008a\u0089\u0088\u0087\u0086\u0085\u0080\u00bb\u0000\u001f\u0001\u0000\u0003\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\b\t\n\u000b\u0080\u00bb\u0000\u00ca\u0011\u0000\u0002\u0001\u0002\u0004\u0004\u0003\u0004\u0007\u0005\u0004\u0004\u0000\u0001\u0002w\u0000\u0001\u0002\u0003\u0011\u0004\u0005!1\u0006\u0012AQ\u0007aq\u0013\"2\u00fe\b\u0014B\u00ee\u00de\u00ce\u00be\t#3R\u008f\u0015br\u00ae\n\u0016$4\u009e%\u008e\u0017\u0018\u0019\u001a&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz\u00fd\u00fc\u00fb\u00fa\u00f9\u00f8\u00f7\u00f6\u00f5\u00ed\u00ec\u00eb\u00ea\u00e9\u00e8\u00e7\u00e6\u00e5\u00dd\u00dc\u00db\u00da\u00d9\u00d8\u00d7\u00d6\u00d5\u00cd\u00cc\u00cb\u00ca\u00c9\u00c8\u00c7\u00c6\u00c5\u00bd\u00bc\u00bb\u00ba\u00b9\u00b8\u00b7\u00b6\u00b5\u00ad\u00ac\u00ab\u00aa\u00a9\u00a8\u00a7\u00a6\u00a5\u009d\u009c\u009b\u009a\u0099\u0098\u0097\u0096\u0095\u008d\u008c\u008b\u008a\u0089\u0088\u0087\u0086\u0085\u0080\u00a5\u0000\f\u0003\u0001\u0000\u0002\u0011\u0003\u0011\u0000?\u0000A\u0000\u00a2\u0145\u01e8\u028b\u032d\u03ce\u0470\u0511\u05b1\u0650\u06ef\u078d\u082a\u08c6\u0961\u09fb\u0a94\u0b2b\u0bc2\u0c57\u0ceb\u0d7d\u0e0e\u0e9e\u0f2c\u0fb8\u1044\u10cd\u1155\u11dc\u1260\u12e4\u1365\u13e5\u1463\u14e0\u155b\u15d4\u164c\u16c2\u1736\u17a9\u181a\u188a\u18f7\u1964\u19ce\u1a37\u1a9f\u1b05\u1b69\u1bcc\u1c2e\u1c8e\u1cec\u1d49\u1da5\u1dff\u1e58\u1eaf\u1f05\u1f5a\u1fad\u2000".charAt(n4);
            ++n3;
        }
        b = sArray;
        o = 460;
        gu.n = 1120;
        e = "savedLocationShiftCoefficients";
        j = 1000000L;
        m = 629;
        o = 600000L;
        p = -o;
        q = -1;
        a = gu.a(130, "@\u0010\u000b\f\u000e\f\n\u0010\u000e\r\u000e\u0012\u0011\u0010\u0013\u0018(\u001a\u0018\u0016\u0016\u00181#%\u001d(:3=<9387@H\\N@DWE78PmQW_bghg>Mqypdx\\egc@\u0011\u0012\u0012\u0018\u0015\u0018/\u001a\u001a/cB8Bcccccccccccccccccccccccccccccccccccccccccccccccccc\u026f\u0080\u00a7\u0080\u009f\u0000\u0010JFIF\u0000\u0001\u0001\u0000\u0000\u0001\u0000\u0001\u0000\u0000\u0080\u00a4\u0000C\u0000\b\u0006\u0006\u0007\u0006\u0005\b\u0007\u0007\u0007\t\t\b\n\f\u0014\r\f\u000b\u000b\f\u0019\u0012\u0013\u000f\u0014\u001d\u001a\u001f\u001e\u001d\u001a\u001c\u001c $.' \",#\u001c\u001c(7),01444\u001f'9=82<.342\u0080\u00a4\u0000C\u0001\t\t\t\f\u000b\f\u0018\r\r\u00182!\u001c!22222222222222222222222222222222222222222222222222\u0080\u00bf\u0000\u0011\b\u0000@\u0000@\u0003\u0001\"\u0000\u0002\u0011\u0001\u0003\u0011\u0001\u0080\u00bb\u0000\u001f\u0000\u0000\u0001\u0005\u0001\u0001\u0001\u0001\u0001\u0001\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\b\t\n\u000b\u0080\u00bb\u0000\u00ca\u0010\u0000\u0002\u0001\u0003\u0003\u0002\u0004\u0003\u0005\u0005\u0004\u0004\u0000\u0000\u0001}\u0001\u0002\u0003\u0000\u0004\u0011\u0005\u0012!1A\u0006\u0013Qa\u0007\"q\u00142\u00fe\u00ee\u00de\b#B\u00ce\u00be\u0015R\u00ae\u008f$3br\u00fd\t\n\u0016\u0017\u0018\u0019\u001a%&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz\u00fc\u00fb\u00fa\u00f9\u00f8\u00f7\u00f6\u00f5\u00ed\u00ec\u00eb\u00ea\u00e9\u00e8\u00e7\u00e6\u00e5\u00dd\u00dc\u00db\u00da\u00d9\u00d8\u00d7\u00d6\u00d5\u00cd\u00cc\u00cb\u00ca\u00c9\u00c8\u00c7\u00c6\u00c5\u00bd\u00bc\u00bb\u00ba\u00b9\u00b8\u00b7\u00b6\u00b5\u00ad\u00ac\u00ab\u00aa\u00a9\u00a8\u00a7\u00a6\u00a5\u009e\u009d\u009c\u009b\u009a\u0099\u0098\u0097\u0096\u0095\u008e\u008d\u008c\u008b\u008a\u0089\u0088\u0087\u0086\u0085\u0080\u00bb\u0000\u001f\u0001\u0000\u0003\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\b\t\n\u000b\u0080\u00bb\u0000\u00ca\u0011\u0000\u0002\u0001\u0002\u0004\u0004\u0003\u0004\u0007\u0005\u0004\u0004\u0000\u0001\u0002w\u0000\u0001\u0002\u0003\u0011\u0004\u0005!1\u0006\u0012AQ\u0007aq\u0013\"2\u00fe\b\u0014B\u00ee\u00de\u00ce\u00be\t#3R\u008f\u0015br\u00ae\n\u0016$4\u009e%\u008e\u0017\u0018\u0019\u001a&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz\u00fd\u00fc\u00fb\u00fa\u00f9\u00f8\u00f7\u00f6\u00f5\u00ed\u00ec\u00eb\u00ea\u00e9\u00e8\u00e7\u00e6\u00e5\u00dd\u00dc\u00db\u00da\u00d9\u00d8\u00d7\u00d6\u00d5\u00cd\u00cc\u00cb\u00ca\u00c9\u00c8\u00c7\u00c6\u00c5\u00bd\u00bc\u00bb\u00ba\u00b9\u00b8\u00b7\u00b6\u00b5\u00ad\u00ac\u00ab\u00aa\u00a9\u00a8\u00a7\u00a6\u00a5\u009d\u009c\u009b\u009a\u0099\u0098\u0097\u0096\u0095\u008d\u008c\u008b\u008a\u0089\u0088\u0087\u0086\u0085\u0080\u00a5\u0000\f\u0003\u0001\u0000\u0002\u0011\u0003\u0011\u0000?\u0000A\u0000\u00a2\u0145\u01e8\u028b\u032d\u03ce\u0470\u0511\u05b1\u0650\u06ef\u078d\u082a\u08c6\u0961\u09fb\u0a94\u0b2b\u0bc2\u0c57\u0ceb\u0d7d\u0e0e\u0e9e\u0f2c\u0fb8\u1044\u10cd\u1155\u11dc\u1260\u12e4\u1365\u13e5\u1463\u14e0\u155b\u15d4\u164c\u16c2\u1736\u17a9\u181a\u188a\u18f7\u1964\u19ce\u1a37\u1a9f\u1b05\u1b69\u1bcc\u1c2e\u1c8e\u1cec\u1d49\u1da5\u1dff\u1e58\u1eaf\u1f05\u1f5a\u1fad\u2000");
        h = 163;
        i = 25;
        g = 94;
        a = new byte[][]{gu.a(0, "@\u0010\u000b\f\u000e\f\n\u0010\u000e\r\u000e\u0012\u0011\u0010\u0013\u0018(\u001a\u0018\u0016\u0016\u00181#%\u001d(:3=<9387@H\\N@DWE78PmQW_bghg>Mqypdx\\egc@\u0011\u0012\u0012\u0018\u0015\u0018/\u001a\u001a/cB8Bcccccccccccccccccccccccccccccccccccccccccccccccccc\u026f\u0080\u00a7\u0080\u009f\u0000\u0010JFIF\u0000\u0001\u0001\u0000\u0000\u0001\u0000\u0001\u0000\u0000\u0080\u00a4\u0000C\u0000\b\u0006\u0006\u0007\u0006\u0005\b\u0007\u0007\u0007\t\t\b\n\f\u0014\r\f\u000b\u000b\f\u0019\u0012\u0013\u000f\u0014\u001d\u001a\u001f\u001e\u001d\u001a\u001c\u001c $.' \",#\u001c\u001c(7),01444\u001f'9=82<.342\u0080\u00a4\u0000C\u0001\t\t\t\f\u000b\f\u0018\r\r\u00182!\u001c!22222222222222222222222222222222222222222222222222\u0080\u00bf\u0000\u0011\b\u0000@\u0000@\u0003\u0001\"\u0000\u0002\u0011\u0001\u0003\u0011\u0001\u0080\u00bb\u0000\u001f\u0000\u0000\u0001\u0005\u0001\u0001\u0001\u0001\u0001\u0001\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\b\t\n\u000b\u0080\u00bb\u0000\u00ca\u0010\u0000\u0002\u0001\u0003\u0003\u0002\u0004\u0003\u0005\u0005\u0004\u0004\u0000\u0000\u0001}\u0001\u0002\u0003\u0000\u0004\u0011\u0005\u0012!1A\u0006\u0013Qa\u0007\"q\u00142\u00fe\u00ee\u00de\b#B\u00ce\u00be\u0015R\u00ae\u008f$3br\u00fd\t\n\u0016\u0017\u0018\u0019\u001a%&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz\u00fc\u00fb\u00fa\u00f9\u00f8\u00f7\u00f6\u00f5\u00ed\u00ec\u00eb\u00ea\u00e9\u00e8\u00e7\u00e6\u00e5\u00dd\u00dc\u00db\u00da\u00d9\u00d8\u00d7\u00d6\u00d5\u00cd\u00cc\u00cb\u00ca\u00c9\u00c8\u00c7\u00c6\u00c5\u00bd\u00bc\u00bb\u00ba\u00b9\u00b8\u00b7\u00b6\u00b5\u00ad\u00ac\u00ab\u00aa\u00a9\u00a8\u00a7\u00a6\u00a5\u009e\u009d\u009c\u009b\u009a\u0099\u0098\u0097\u0096\u0095\u008e\u008d\u008c\u008b\u008a\u0089\u0088\u0087\u0086\u0085\u0080\u00bb\u0000\u001f\u0001\u0000\u0003\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\b\t\n\u000b\u0080\u00bb\u0000\u00ca\u0011\u0000\u0002\u0001\u0002\u0004\u0004\u0003\u0004\u0007\u0005\u0004\u0004\u0000\u0001\u0002w\u0000\u0001\u0002\u0003\u0011\u0004\u0005!1\u0006\u0012AQ\u0007aq\u0013\"2\u00fe\b\u0014B\u00ee\u00de\u00ce\u00be\t#3R\u008f\u0015br\u00ae\n\u0016$4\u009e%\u008e\u0017\u0018\u0019\u001a&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz\u00fd\u00fc\u00fb\u00fa\u00f9\u00f8\u00f7\u00f6\u00f5\u00ed\u00ec\u00eb\u00ea\u00e9\u00e8\u00e7\u00e6\u00e5\u00dd\u00dc\u00db\u00da\u00d9\u00d8\u00d7\u00d6\u00d5\u00cd\u00cc\u00cb\u00ca\u00c9\u00c8\u00c7\u00c6\u00c5\u00bd\u00bc\u00bb\u00ba\u00b9\u00b8\u00b7\u00b6\u00b5\u00ad\u00ac\u00ab\u00aa\u00a9\u00a8\u00a7\u00a6\u00a5\u009d\u009c\u009b\u009a\u0099\u0098\u0097\u0096\u0095\u008d\u008c\u008b\u008a\u0089\u0088\u0087\u0086\u0085\u0080\u00a5\u0000\f\u0003\u0001\u0000\u0002\u0011\u0003\u0011\u0000?\u0000A\u0000\u00a2\u0145\u01e8\u028b\u032d\u03ce\u0470\u0511\u05b1\u0650\u06ef\u078d\u082a\u08c6\u0961\u09fb\u0a94\u0b2b\u0bc2\u0c57\u0ceb\u0d7d\u0e0e\u0e9e\u0f2c\u0fb8\u1044\u10cd\u1155\u11dc\u1260\u12e4\u1365\u13e5\u1463\u14e0\u155b\u15d4\u164c\u16c2\u1736\u17a9\u181a\u188a\u18f7\u1964\u19ce\u1a37\u1a9f\u1b05\u1b69\u1bcc\u1c2e\u1c8e\u1cec\u1d49\u1da5\u1dff\u1e58\u1eaf\u1f05\u1f5a\u1fad\u2000"), gu.a(65, "@\u0010\u000b\f\u000e\f\n\u0010\u000e\r\u000e\u0012\u0011\u0010\u0013\u0018(\u001a\u0018\u0016\u0016\u00181#%\u001d(:3=<9387@H\\N@DWE78PmQW_bghg>Mqypdx\\egc@\u0011\u0012\u0012\u0018\u0015\u0018/\u001a\u001a/cB8Bcccccccccccccccccccccccccccccccccccccccccccccccccc\u026f\u0080\u00a7\u0080\u009f\u0000\u0010JFIF\u0000\u0001\u0001\u0000\u0000\u0001\u0000\u0001\u0000\u0000\u0080\u00a4\u0000C\u0000\b\u0006\u0006\u0007\u0006\u0005\b\u0007\u0007\u0007\t\t\b\n\f\u0014\r\f\u000b\u000b\f\u0019\u0012\u0013\u000f\u0014\u001d\u001a\u001f\u001e\u001d\u001a\u001c\u001c $.' \",#\u001c\u001c(7),01444\u001f'9=82<.342\u0080\u00a4\u0000C\u0001\t\t\t\f\u000b\f\u0018\r\r\u00182!\u001c!22222222222222222222222222222222222222222222222222\u0080\u00bf\u0000\u0011\b\u0000@\u0000@\u0003\u0001\"\u0000\u0002\u0011\u0001\u0003\u0011\u0001\u0080\u00bb\u0000\u001f\u0000\u0000\u0001\u0005\u0001\u0001\u0001\u0001\u0001\u0001\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\b\t\n\u000b\u0080\u00bb\u0000\u00ca\u0010\u0000\u0002\u0001\u0003\u0003\u0002\u0004\u0003\u0005\u0005\u0004\u0004\u0000\u0000\u0001}\u0001\u0002\u0003\u0000\u0004\u0011\u0005\u0012!1A\u0006\u0013Qa\u0007\"q\u00142\u00fe\u00ee\u00de\b#B\u00ce\u00be\u0015R\u00ae\u008f$3br\u00fd\t\n\u0016\u0017\u0018\u0019\u001a%&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz\u00fc\u00fb\u00fa\u00f9\u00f8\u00f7\u00f6\u00f5\u00ed\u00ec\u00eb\u00ea\u00e9\u00e8\u00e7\u00e6\u00e5\u00dd\u00dc\u00db\u00da\u00d9\u00d8\u00d7\u00d6\u00d5\u00cd\u00cc\u00cb\u00ca\u00c9\u00c8\u00c7\u00c6\u00c5\u00bd\u00bc\u00bb\u00ba\u00b9\u00b8\u00b7\u00b6\u00b5\u00ad\u00ac\u00ab\u00aa\u00a9\u00a8\u00a7\u00a6\u00a5\u009e\u009d\u009c\u009b\u009a\u0099\u0098\u0097\u0096\u0095\u008e\u008d\u008c\u008b\u008a\u0089\u0088\u0087\u0086\u0085\u0080\u00bb\u0000\u001f\u0001\u0000\u0003\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\b\t\n\u000b\u0080\u00bb\u0000\u00ca\u0011\u0000\u0002\u0001\u0002\u0004\u0004\u0003\u0004\u0007\u0005\u0004\u0004\u0000\u0001\u0002w\u0000\u0001\u0002\u0003\u0011\u0004\u0005!1\u0006\u0012AQ\u0007aq\u0013\"2\u00fe\b\u0014B\u00ee\u00de\u00ce\u00be\t#3R\u008f\u0015br\u00ae\n\u0016$4\u009e%\u008e\u0017\u0018\u0019\u001a&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz\u00fd\u00fc\u00fb\u00fa\u00f9\u00f8\u00f7\u00f6\u00f5\u00ed\u00ec\u00eb\u00ea\u00e9\u00e8\u00e7\u00e6\u00e5\u00dd\u00dc\u00db\u00da\u00d9\u00d8\u00d7\u00d6\u00d5\u00cd\u00cc\u00cb\u00ca\u00c9\u00c8\u00c7\u00c6\u00c5\u00bd\u00bc\u00bb\u00ba\u00b9\u00b8\u00b7\u00b6\u00b5\u00ad\u00ac\u00ab\u00aa\u00a9\u00a8\u00a7\u00a6\u00a5\u009d\u009c\u009b\u009a\u0099\u0098\u0097\u0096\u0095\u008d\u008c\u008b\u008a\u0089\u0088\u0087\u0086\u0085\u0080\u00a5\u0000\f\u0003\u0001\u0000\u0002\u0011\u0003\u0011\u0000?\u0000A\u0000\u00a2\u0145\u01e8\u028b\u032d\u03ce\u0470\u0511\u05b1\u0650\u06ef\u078d\u082a\u08c6\u0961\u09fb\u0a94\u0b2b\u0bc2\u0c57\u0ceb\u0d7d\u0e0e\u0e9e\u0f2c\u0fb8\u1044\u10cd\u1155\u11dc\u1260\u12e4\u1365\u13e5\u1463\u14e0\u155b\u15d4\u164c\u16c2\u1736\u17a9\u181a\u188a\u18f7\u1964\u19ce\u1a37\u1a9f\u1b05\u1b69\u1bcc\u1c2e\u1c8e\u1cec\u1d49\u1da5\u1dff\u1e58\u1eaf\u1f05\u1f5a\u1fad\u2000")};
        b = new int[]{-1, 1677721601, 838860801, 559240577, 0x19000001, 0x14000001, 279620289, 239674513, 209715201, 186413505, 0xA000001, 152520145, 139810145, 129055513, 119837257, 0x6AAAAA9, 104857601, 0x5E1E1E1, 93206753, 88301137, 0x5000001, 79891505, 76260073, 72944417, 69905073, 0x4000001, 64527757, 62137837, 59918629, 57852473, 0x3555555, 54120053, 52428801, 50840049, 49344753, 47934905, 46603377, 45343829, 44150569, 43018505, 41943041, 40920041, 39945753, 39016781, 38130037, 37282705, 36472209, 35696205, 34952537, 34239217, 0x2000001, 32883345, 32212257, 31541169, 30870077, 0x1CCCCCD, 29527901, 28856813, 28185725, 27514637, 0x1999999, 26172457, 25501369, 24830281, 24159193, 0x1666669, 22817013, 22145925, 21474837, 20803749, 0x1333335, 19461573, 18790481, 18119393, 17448305, 0x1000001, 16106129, 15435041, 14763953, 14092861, 0xCCCCCD, 12750685, 12079597, 11408509, 10737421, 0x999999, 9395241, 8724153, 8053065, 7381977, 0x666669, 6039797, 5368709, 4697621, 4026533, 0x333335, 2684357, 2013265, 1342177, 671089, 1};
        l = 100;
    }

    public gu(int n, boolean bl2) {
        this(null, 0, 0, n);
        if (n != 2 && n != 4 && n != 3) {
            throw new IllegalArgumentException("Invalid source: " + n);
        }
    }

    public static int k(int n) {
        if (n == 0) {
            return a.length;
        }
        throw new IllegalArgumentException("Unknown variant " + n);
    }

    public static void a(ej[] ejArray, boolean bl2, boolean bl3, ma ma2) {
        if (ejArray.length != 0) {
            if (ejArray.length == 1) {
                new jt(ejArray, null, bl2, bl3, ma2).e();
                return;
            }
            throw new RuntimeException("multiple cell-ids not supported yet.");
        }
        throw new IllegalArgumentException("ctis");
    }

    public ej a() {
        int n = gu.a("cellid", 16);
        if (n != -1) {
            String string = System.getProperty("com.sonyericsson.net.rat");
            int n2 = string != null ? ("GSM".equals(string) ? 3 : 5) : -1;
            int n3 = gu.a("lac", 16);
            int n4 = gu.a("mnc", 10);
            int n5 = gu.a("cmnc", 10);
            int n6 = gu.a("mcc", 10);
            return ej.a(null, n2, n, n3, -1, gu.a("cmcc", 10), n5, n6, n4, -1);
        }
        ej.b();
        return ej.d();
    }

    public static cn d() {
        String string = lh.k().a("DefaultZoom");
        if (string != null) {
            try {
                return cn.b(Integer.parseInt(string));
            }
            catch (NumberFormatException numberFormatException) {
                me.b("GN", numberFormatException);
            }
        }
        if (!(string = lh.o()).equals("en") && !string.equals("fr_CA")) {
            return cn.b(5);
        }
        return cn.b(3);
    }

    public static iv b() {
        String[] stringArray;
        String string = lh.k().a("DefaultLatLon");
        if (string != null && (stringArray = ed.a(string, ',')).length == 2) {
            try {
                return new iv(Integer.parseInt(stringArray[0]), Integer.parseInt(stringArray[1]));
            }
            catch (NumberFormatException numberFormatException) {
                me.b("GN", numberFormatException);
            }
        }
        string = lh.o();
        String string2 = gu.a((String)string).a;
        if (!string2.equals("en_GB")) {
            if (!string2.equals("en_AU")) {
                if (!string2.equals("en_NZ")) {
                    if (!string2.equals("de_AT")) {
                        if (!string2.equals("de_LI")) {
                            if (!string2.endsWith("CA")) {
                                if (!string2.endsWith("BE")) {
                                    if (!string2.endsWith("CH")) {
                                        if (!string.equals("ar")) {
                                            if (!string.equals("bg")) {
                                                if (!string.equals("ca")) {
                                                    if (!string.equals("cs")) {
                                                        if (!string.equals("da")) {
                                                            if (!string.equals("de")) {
                                                                if (!string.equals("el")) {
                                                                    if (!string.equals("es")) {
                                                                        if (!string.equals("fi")) {
                                                                            if (!string.equals("fil") && !string.equals("tl")) {
                                                                                if (!string.equals("fr")) {
                                                                                    if (!string.equals("he")) {
                                                                                        if (!string.equals("hi")) {
                                                                                            if (!string.equals("hu")) {
                                                                                                if (!string.equals("id")) {
                                                                                                    if (!string.equals("it")) {
                                                                                                        if (!string.equals("ja")) {
                                                                                                            if (!string.equals("ko")) {
                                                                                                                if (!string.equals("lt")) {
                                                                                                                    if (!string.equals("lv")) {
                                                                                                                        if (!string.equals("nl")) {
                                                                                                                            if (!string.equals("no")) {
                                                                                                                                if (!string.equals("pl")) {
                                                                                                                                    if (!string2.equals("pt_BR")) {
                                                                                                                                        if (!string2.equals("pt_PT")) {
                                                                                                                                            if (!string.equals("ro")) {
                                                                                                                                                if (!string.equals("ru")) {
                                                                                                                                                    if (!string.equals("sk")) {
                                                                                                                                                        if (!string.equals("sl")) {
                                                                                                                                                            if (!string.equals("sr")) {
                                                                                                                                                                if (!string.equals("sv")) {
                                                                                                                                                                    if (!string.equals("th")) {
                                                                                                                                                                        if (!string.equals("tr")) {
                                                                                                                                                                            if (!string.equals("uk")) {
                                                                                                                                                                                if (!string.equals("vi")) {
                                                                                                                                                                                    if (!string2.equals("zh_CN")) {
                                                                                                                                                                                        if (string2.equals("zh_TW")) {
                                                                                                                                                                                            return new iv(25022112, 121478019);
                                                                                                                                                                                        }
                                                                                                                                                                                        return new iv(36149777, -95993398);
                                                                                                                                                                                    }
                                                                                                                                                                                    return new iv(39937795, 116387224);
                                                                                                                                                                                }
                                                                                                                                                                                return new iv(14058324, 108277199);
                                                                                                                                                                            }
                                                                                                                                                                            return new iv(48379433, 31165580);
                                                                                                                                                                        }
                                                                                                                                                                        return new iv(41034435, 28977556);
                                                                                                                                                                    }
                                                                                                                                                                    return new iv(15870032, 100992541);
                                                                                                                                                                }
                                                                                                                                                                return new iv(59330650, 18067360);
                                                                                                                                                            }
                                                                                                                                                            return new iv(44016521, 21005859);
                                                                                                                                                        }
                                                                                                                                                        return new iv(46151241, 14995463);
                                                                                                                                                    }
                                                                                                                                                    return new iv(48669026, 19699024);
                                                                                                                                                }
                                                                                                                                                return new iv(55750449, 37621136);
                                                                                                                                            }
                                                                                                                                            return new iv(45943161, 24966760);
                                                                                                                                        }
                                                                                                                                        return new iv(38707163, -9135517);
                                                                                                                                    }
                                                                                                                                    return new iv(-22863878, -43244097);
                                                                                                                                }
                                                                                                                                return new iv(52235474, 21004057);
                                                                                                                            }
                                                                                                                            return new iv(59910761, 0xA404A4);
                                                                                                                        }
                                                                                                                        return new iv(51589256, 4774396);
                                                                                                                    }
                                                                                                                    return new iv(55879635, 24603189);
                                                                                                                }
                                                                                                                return new iv(55169438, 23881275);
                                                                                                            }
                                                                                                            return new iv(37560908, 126987705);
                                                                                                        }
                                                                                                        return new iv(35670267, 139769955);
                                                                                                    }
                                                                                                    return new iv(41889998, 12500162);
                                                                                                }
                                                                                                return new iv(-789275, 113921327);
                                                                                            }
                                                                                            return new iv(47162494, 19503304);
                                                                                        }
                                                                                        return new iv(20593684, 78962880);
                                                                                    }
                                                                                    return new iv(31046051, 34851612);
                                                                                }
                                                                                return new iv(48859972, 2340260);
                                                                            }
                                                                            return new iv(12879721, 121774017);
                                                                        }
                                                                        return new iv(60169653, 24939480);
                                                                    }
                                                                    return new iv(40420006, -3709924);
                                                                }
                                                                return new iv(39074208, 21824312);
                                                            }
                                                            return new iv(52372026, 9735672);
                                                        }
                                                        return new iv(55679423, 12577114);
                                                    }
                                                    return new iv(50087811, 14420460);
                                                }
                                                return new iv(40463667, -3749220);
                                            }
                                            return new iv(42733883, 25485830);
                                        }
                                        return new iv(26820553, 30802498);
                                    }
                                    return new iv(46948020, 7448206);
                                }
                                return new iv(50854509, 4376678);
                            }
                            return new iv(49875832, -97150726);
                        }
                        return new iv(47141076, 9521482);
                    }
                    return new iv(48209206, 16372778);
                }
                return new iv(-41286480, 174776217);
            }
            return new iv(-26037042, 137197266);
        }
        return new iv(51500208, -126729);
    }

    public static iv c(lk lk2) {
        if (lk2 != null) {
            switch (ar.c(lk2, 1)) {
                case 5: {
                    return gu.b(lk2.f(14));
                }
                case 4: {
                    return gu.e(lk2.f(13));
                }
                case 1: {
                    return gu.a(lk2.f(2));
                }
            }
        }
        return null;
    }

    public static gu a(lk lk2) {
        String string = lk2.g(13);
        String string2 = lk2.g(16);
        int n = lk2.i(14);
        Hashtable<String, String> hashtable = new Hashtable<String, String>();
        String[] stringArray = new String[n];
        for (int i = 0; i < n; ++i) {
            stringArray[i] = lk2.f(14, i);
            hashtable.put(stringArray[i], lk2.f(15, i));
        }
        return new gu(string, string2, hashtable, stringArray);
    }

    public static synchronized void a(lk lk2) {
        int n = lk2.i(6);
        if (n != 0) {
            c = new cw[n];
            for (int i = 0; i < n; ++i) {
                lk lk3 = lk2.e(6, i);
                int n2 = ar.b(lk3, 1, 100);
                int n3 = ar.b(lk3, 2, 180000);
                int n4 = ar.b(lk3, 3, 2400000);
                gu.c[i] = new cw(n2, n3, n4);
            }
        }
    }

    private static int a(lk lk2, String string) {
        int n;
        block2: {
            int n2 = lk2.i(2);
            for (n = 0; n < n2; ++n) {
                if (!lk2.e(2, n).g(3).equals(string)) {
                    continue;
                }
                break block2;
            }
            return -1;
        }
        return n;
    }

    public void a(int[] nArray) {
        if (!this.f) {
            for (int i = 0; i < nArray.length; ++i) {
                if (this.c.containsKey(new Integer(nArray[i]))) {
                    continue;
                }
                this.m();
                break;
            }
        }
    }

    public void n() {
        if (this.c == null && !this.f) {
            this.m();
        }
    }

    private static synchronized gu h() {
        if (a == null) {
            a = new gu(false, false);
        }
        return a;
    }

    public static synchronized gu d() {
        if (b == null) {
            b = new gu(false, false, false, false, false);
        }
        return b;
    }

    public static gu f() {
        if (k == null) {
            k = new gu(false, false, false, false, false, false, false, false, false, false, false);
        }
        return k;
    }

    public ny a(ny ny2) {
        ny ny3 = new ny(false, false, false, false);
        gu gu2 = new gu(false, false, false, false, false, false, false, false, false, false, false, false, false, false, false);
        gu gu3 = new gu(false, false, false, false, false, false, false, false, false, false, false, false, false, false, false);
        if (!ny2.b()) {
            gu2.c = ny2.s;
            gu2.b = ny2.l;
            gu3.c = 0;
            gu3.b = 0;
            this.a(gu2, gu3);
            ny3.a(gu3);
            gu2.c = ny2.q;
            this.a(gu2, gu3);
            ny3.a(gu3);
            gu2.b = ny2.t;
            this.a(gu2, gu3);
            ny3.a(gu3);
            gu2.c = ny2.s;
            this.a(gu2, gu3);
            ny3.a(gu3);
        }
        return ny3;
    }

    public int l(int n) {
        gu gu2 = new gu(false, false, false, false, false, false, false, false, false, false, false, false, false, false, false);
        gu gu3 = new gu(false, false, false, false, false, false, false, false, false, false, false, false, false, false, false);
        gu gu4 = new gu(false, false, false, false, false, false, false, false, false, false, false, false, false, false, false);
        gu2.b = 0;
        gu2.c = 0;
        this.b(gu2);
        gu3.c = n;
        gu3.b = 0;
        this.b(gu3);
        gu4.c = 0;
        gu4.b = n;
        this.b(gu4);
        return ov.a(gu2.a(gu3), gu2.a(gu4));
    }

    private static synchronized void ae() {
        d = new gu(false, false, false, false, false, false);
    }

    private synchronized void x() {
        this.a = false;
        this.b = new Vector();
    }

    private gu(boolean bl2, boolean bl3, boolean bl4, boolean bl5, boolean bl6, boolean bl7, boolean bl8, boolean bl9) {
        this.b = new Vector();
    }

    public gu(boolean bl2, boolean bl3, boolean bl4) {
        this.a = new Vector();
    }

    public gu(int n) {
        this.a = new Vector(n);
        this.b = new Vector(n);
    }

    private gu(boolean bl2, boolean bl3, boolean bl4, boolean bl5, boolean bl6, boolean bl7, boolean bl8, boolean bl9, boolean bl10, boolean bl11, boolean bl12) {
        b = c = System.currentTimeMillis();
        c = true;
        i = b;
        j = -1;
    }

    private gu(String string, int n, int n2, int n3) {
        this.a = string;
        this.b = new iv(n, n2);
        this.a = n3;
    }

    public gu(String string, String string2, Hashtable hashtable, String[] stringArray) {
        this.c = hashtable;
        this.a = stringArray;
        this.a = string;
        this.b = string2;
    }

    private gu(String string, le le2, String string2) {
        this.b = le2;
        this.a = string;
        this.b = string2;
        if (le2 == null && string != null) {
            nz.a(this);
        }
    }

    public bj d(int n) {
        if (n < this.o()) {
            return (bj)this.a.elementAt(n);
        }
        return null;
    }

    public synchronized b a(int n, int n2) {
        for (int i = this.b.size() - 1; i >= 0; --i) {
            b b2 = (b)this.b.elementAt(i);
            if (b2.b != n || b2.c != n2) {
                continue;
            }
            this.b.removeElementAt(i);
            this.b.addElement(b2);
            return b2;
        }
        return null;
    }

    /*
     * Exception decompiling
     */
    private synchronized void aa() {
        /*
         * This method has failed to decompile.  When submitting a bug report, please provide this stack trace, and (if you hold appropriate legal rights) the relevant class file.
         * 
         * org.benf.cfr.reader.util.ConfusedCFRException: Back jump on a try block [egrp 0[TRYBLOCK] [0 : 45->52)] java.lang.RuntimeException
         *     at org.benf.cfr.reader.bytecode.analysis.opgraph.Op02WithProcessedDataAndRefs.insertExceptionBlocks(Op02WithProcessedDataAndRefs.java:2283)
         *     at org.benf.cfr.reader.bytecode.CodeAnalyser.getAnalysisInner(CodeAnalyser.java:415)
         *     at org.benf.cfr.reader.bytecode.CodeAnalyser.getAnalysisOrWrapFail(CodeAnalyser.java:278)
         *     at org.benf.cfr.reader.bytecode.CodeAnalyser.getAnalysis(CodeAnalyser.java:201)
         *     at org.benf.cfr.reader.entities.attributes.AttributeCode.analyse(AttributeCode.java:94)
         *     at org.benf.cfr.reader.entities.Method.analyse(Method.java:531)
         *     at org.benf.cfr.reader.entities.ClassFile.analyseMid(ClassFile.java:1055)
         *     at org.benf.cfr.reader.entities.ClassFile.analyseTop(ClassFile.java:942)
         *     at org.benf.cfr.reader.Driver.doJarVersionTypes(Driver.java:257)
         *     at org.benf.cfr.reader.Driver.doJar(Driver.java:139)
         *     at org.benf.cfr.reader.CfrDriverImpl.analyse(CfrDriverImpl.java:76)
         *     at org.benf.cfr.reader.Main.main(Main.java:54)
         */
        throw new IllegalStateException("Decompilation failed");
    }

    public void ac() {
        synchronized (this) {
            ++this.d;
            ++this.a;
        }
        this.a(false);
    }

    public void d() {
        Throwable throwable2;
        block3: {
            synchronized (this) {
                try {
                    ++this.c;
                    ++this.f;
                }
                catch (Throwable throwable2) {
                    break block3;
                }
            }
            this.a(false);
            return;
        }
        throw throwable2;
    }

    public static void g() {
        long l = System.currentTimeMillis();
        long l2 = l - i;
        i = l;
        d += l2;
        if (!iu.g()) {
            if (!c) {
                e += l2;
                return;
            }
            f += l2;
            return;
        }
        if (!c) {
            g += l2;
            return;
        }
        h += l2;
    }

    /*
     * Enabled aggressive block sorting
     */
    public static synchronized long a(boolean bl2) {
        if (c != null) {
            int n;
            long l = System.currentTimeMillis();
            if (l - a < 60000L) {
                n = gu.l;
            } else {
                a = l;
                n = gu.l = -1;
            }
            if (n == -1) {
                n = 100;
            }
            for (int i = c.length - 1; i >= 0; --i) {
                if (n > gu.c[i].b) {
                    continue;
                }
                if (bl2) return gu.c[i].g;
                return gu.c[i].f;
            }
            if (bl2) return 180000L;
            return 2400000L;
        }
        if (bl2) return 180000L;
        return 2400000L;
    }

    public static int b(int n, int n2) {
        boolean bl2 = false;
        boolean bl3 = false;
        if (n2 < 0) {
            n2 = -n2;
            bl3 = true;
        }
        if (n < 0) {
            n = -n;
            bl2 = true;
        }
        n2 = n >= n2 ? (n > n2 ? 16384 - gu.c(n2, n) : (n2 != 0 ? 8192 : 0)) : gu.c(n, n2);
        if (bl3) {
            n2 = 32768 - n2;
        }
        if (bl2) {
            n2 = -n2;
        }
        return n2 & 0xFFFF;
    }

    public static int a(int n, int n2) {
        if ((n = n - n2 & 0xFFFF) > 32768) {
            return 65536 - n;
        }
        return n;
    }

    public static void b(boolean bl2) {
        String string = !bl2 ? "0" : "1";
        gu.a("f", string);
    }

    public String a() {
        String string = this.a.length > 0 ? this.a[0] : "";
        String string2 = this.a.length > 1 ? this.a[1] : "";
        return ar.b(string, string2);
    }

    public synchronized String x() {
        if (this.b == null) {
            this.b = lh.k().a("ServerAddress");
            if (ed.b(this.b)) {
                this.b = "http://www.google.com/glm/mmap";
            }
        }
        return this.b;
    }

    public synchronized boolean t() {
        if (!this.a) {
            this.B();
            this.a = true;
        }
        return this.C();
    }

    public static void a(aq aq2) {
        gu gu2 = gu.h();
        if (gu2.d != null) {
            gu2.d.a(aq2);
        }
        aq2.a(null, null);
    }

    public void a(String string, byte[] byArray) {
        if (byArray != null) {
            lh.k().f().b(byArray, gu.c(string));
            ps.a().a(string);
        }
    }

    public static void a(gu gu2, lk lk2, boolean bl2) {
        iv[] cfr_ignored_0 = gu2.c;
        gu2.a = ar.c(lk2, 3);
        if (bl2) {
            gu2.f = lk2.h(2);
            gu2.b = ar.c(lk2, 2);
        }
    }

    public static String w() {
        String string = lh.k().a();
        if (string != null) {
            return string;
        }
        return "test";
    }

    private static String b(String string) {
        if (string != null) {
            if (!string.equals("en_AU") && !string.equals("en_NZ")) {
                return string;
            }
            return "en_GB";
        }
        return "en";
    }

    private static String h(String string) {
        String[] stringArray;
        if (string == null || (stringArray = ed.a(string.replace('-', '_'), '_'))[0].length() != 2 && stringArray[0].length() != 3) {
            return "en";
        }
        string = stringArray[0].toLowerCase();
        if (stringArray.length >= 2 && stringArray[1].length() == 2) {
            return string + "_" + stringArray[1].toUpperCase();
        }
        return string;
    }

    private static String g(String string) {
        int n = string.indexOf(95);
        if (n < 0) {
            n = string.indexOf(45);
        }
        if (n >= 0) {
            return string.substring(0, n);
        }
        return string;
    }

    private static bj a(bj bj2) {
        String string = bj2.v();
        if (!(bj2 instanceof by)) {
            if (!(bj2 instanceof gc)) {
                if (bj2 instanceof bp) {
                    bj2 = new bp(((mo)bj2).c);
                }
            } else {
                bj2 = new gc(((mo)bj2).c);
            }
        } else {
            bj2 = new by(((mo)bj2).c);
        }
        bj2.c(string);
        return bj2;
    }

    public static lk a(fk fk2) {
        lk lk2 = new lk(la.C);
        if (fk2 != null) {
            if (fk2.c != null) {
                lk2.b(2, gu.c(fk2.c));
            }
            if (!ed.b(fk2.b)) {
                lk2.b(1, fk2.b);
            }
            if (!ed.b(fk2.d)) {
                lk2.b(3, fk2.d);
            }
        }
        return lk2;
    }

    public static lk a(iv iv2, int n, int n2, int n3) {
        lk lk2 = new lk(la.h);
        lk2.b(1, gu.b(iv2));
        lk2.h(2, n);
        lk2.h(3, n2);
        if (n3 > 0) {
            lk2.h(4, n3);
        }
        return lk2;
    }

    public static lk c(iv iv2) {
        lk lk2 = new lk(la.g);
        lk2.h(1, 5);
        lk lk3 = new lk(la.e);
        lk3.h(1, iv2.a);
        lk3.h(2, iv2.b);
        lk2.b(14, lk3);
        return lk2;
    }

    public static lk b(iv iv2) {
        lk lk2 = new lk(null);
        lk2.h(1, iv2.a);
        lk2.h(2, iv2.b);
        return lk2;
    }

    public static lk a(iv iv2) {
        lk lk2 = new lk(null);
        cn cn2 = cn.b(22);
        lk2.h(1, iv2.a(cn2));
        lk2.h(2, iv2.b(cn2));
        lk2.h(3, cn2.b);
        return lk2;
    }

    public le a(int n, int n2) {
        return new le(Image.createImage((int)n, (int)n2));
    }

    public le a(byte[] byArray, int n) {
        return fo.a(this.a(byArray, 0, byArray.length), n);
    }

    public int a(String string, int n, int n2) {
        return this.a.a(string, n, n2);
    }

    public int a(String string) {
        return this.a.a(string);
    }

    public int d(char c) {
        return this.a.d(c);
    }

    public void i(int n) {
        this.a.i(n);
    }

    public synchronized void b(int n) {
        this.e += n;
    }

    public synchronized void f(int n) {
        this.b += n;
    }

    public void h(String string) {
        this.a.b(6, string);
    }

    public int q() {
        return (int)ar.e(this.a, 15);
    }

    public int u() {
        return this.a.d(10);
    }

    public boolean e() {
        return this.a.h(10);
    }

    public boolean s() {
        return this.a.h(16);
    }

    public String r() {
        return this.a.g(16);
    }

    public String g() {
        return ar.a(this.a, 11);
    }

    public String l() {
        return ar.a(this.a, 13);
    }

    public String m() {
        return ar.a(this.a, 6);
    }

    public String k() {
        return ar.a(this.a, 7);
    }

    public lk d() {
        return this.a.f(8);
    }

    public lk b() {
        return this.a.f(9);
    }

    public long k() {
        return ar.d(this.a, 12);
    }

    public gu() {
        this.a = -1;
    }

    public gu(ej ej2) {
        this.a = 5;
    }

    public gu(aa aa2) {
        this.a = aa2;
    }

    public gu(mo mo2, boolean bl2) {
        this.c = mo2;
    }

    public gu(int n, String[] stringArray) {
        this.a = stringArray;
    }

    public gu(int n, int n2) {
        this.c = n;
        this.b = n2;
    }

    public void a(int n, int n2) {
        this.d = 65536;
        this.a = 65536;
        this.b = 0;
        this.f = 0;
        this.c = n;
        this.e = n2;
    }

    public gu(gu gu2) {
        this.d = 65536;
        this.a = 65536;
        this.d = gu2.d;
        this.f = gu2.f;
        this.b = gu2.b;
        this.a = gu2.a;
        this.c = gu2.c;
        this.e = gu2.e;
    }

    public gu(boolean bl2, boolean bl3, boolean bl4, boolean bl5, boolean bl6, boolean bl7, boolean bl8, boolean bl9, boolean bl10, boolean bl11, boolean bl12, boolean bl13, boolean bl14) {
        this.d = 65536;
        this.a = 65536;
    }

    public gu(gd gd2) {
        this.c = gd2;
        this.d = gd2.i;
    }

    public gu(mo mo2) {
        this.e = -1463791361;
        this.c = mo2;
    }

    public gu(lk lk2) {
        this.c = gu.h(lk2.d(53));
        this.b = lk2.g(54);
    }

    public gu(boolean bl2, boolean bl3, boolean bl4, boolean bl5, boolean bl6, boolean bl7, boolean bl8, boolean bl9, boolean bl10, boolean bl11) {
        this.a = new lk(la.G);
    }

    public void a(DataOutput dataOutput) {
        lk lk2 = new lk(la.aP);
        lk2.b(2, this.b.b());
        dataOutput.writeInt(lk2.b());
        lk2.a((OutputStream)((Object)dataOutput));
    }

    public boolean a(iv iv2) {
        return this.a(iv2, this.a / 2);
    }

    public le a(String string) {
        return new le(o.a(string));
    }

    public le a(byte[] byArray, int n, int n2) {
        return new le(Image.createImage((byte[])byArray, (int)n, (int)n2));
    }

    public le a(int[] nArray, int n, int n2, boolean bl2) {
        Image image = Image.createRGBImage((int[])nArray, (int)n, (int)n2, (boolean)bl2);
        if (bl2) {
            image = Image.createImage((Image)image);
        }
        return new le(image);
    }

    public static int h(int n) {
        while (n < 0) {
            n += 360000000;
        }
        return (int)((long)n * 65536L / 360000000L) & 0xFFFF;
    }

    public static int g(int n) {
        return (int)((long)(n & 0xFFFF) * 1000000L * (long)360 / 65536L);
    }

    private void m() {
        this.f = true;
        ck.e().a(new mi(false));
    }

    public static w[] b(gu gu2) {
        Object[] objectArray = new w[gu2.b.size()];
        gu2.b.copyInto(objectArray);
        return objectArray;
    }

    public static String[] a(gu gu2) {
        Object[] objectArray = new String[gu2.a.size()];
        gu2.a.copyInto(objectArray);
        return objectArray;
    }

    public static iv a(DataInput dataInput) {
        return iv.a(dataInput.readInt(), dataInput.readInt(), dataInput.readByte());
    }

    public static String a(String string) {
        gu.h();
        return gu.f(string);
    }

    public void j_() {
        gu.g();
        gu.a("SignIn");
    }

    public void k_() {
        gu.g();
        gu.a("Reset");
    }

    public void s_() {
        gu.g();
        gu.a("SignOut");
    }

    public void i_() {
        gu.g();
        gu.a("Minimize");
        c = false;
    }

    public void h_() {
        gu.g();
        gu.a("Maximize");
        c = true;
    }

    public void ah() {
        this.b = false;
    }

    public void af() {
        this.b = null;
    }

    public static synchronized void t() {
        gu gu2 = gu.h();
        gu.r();
        gu2.a = null;
        gu2.b = null;
    }

    public synchronized void ab() {
        this.c = new Hashtable();
    }

    private static void a(StringBuffer stringBuffer, String string, long l) {
        stringBuffer.append(string + "=");
        stringBuffer.append(l);
        stringBuffer.append("@\u001f");
    }

    private static int a(String string, int n) {
        return nz.a("com.sonyericsson.net." + string, n);
    }

    private static String c(String string) {
        return "I_" + string.substring("hosted_images/".length());
    }

    private static String f() {
        return "OptionDefinitionBlock_" + lh.o();
    }

    public String s() {
        return lh.k().a("CobrandingAltText");
    }

    public String e() {
        return lh.k().a("CobrandingImage");
    }

    public String i() {
        return lh.k().a("LocationProviderAddress");
    }

    public String o() {
        return ar.a(this.a, 2);
    }

    public int n() {
        return ar.c(this.a, 5);
    }

    public int j() {
        return ar.c(this.a, 4);
    }

    public int h() {
        return ar.c(this.a, 3);
    }

    public int p() {
        return ar.c(this.a, 1);
    }

    public boolean i() {
        return this.a.h(4);
    }

    public synchronized boolean u() {
        this.B();
        return this.b;
    }

    private gu(boolean bl2, boolean bl3) {
        this.x();
    }

    public synchronized void d(String string) {
        this.aa();
        this.x();
    }

    public gu(String string) {
        this(string, 0, 0, 0);
    }

    public gu(int n, int n2, boolean bl2) {
        this(null, n, n2, 1);
    }

    public gu(String string, String string2) {
        this(string, null, string2);
    }

    private gu(le le2, String string) {
        this(null, le2, string);
    }

    public iv[] h() {
        return this.c.c();
    }

    public iv[] j() {
        return this.c.F();
    }

    public int g() {
        return this.c.x();
    }

    public int o() {
        return this.a.size();
    }

    public int b() {
        return this.d;
    }

    public int i() {
        return this.e;
    }

    public String h() {
        return this.b;
    }

    public static iv a(gu gu2) {
        return gu2.b;
    }

    public iv[][] n() {
        return null;
    }

    public static void c(gu gu2) {
        f = gu2;
    }

    public gu(boolean bl2, boolean bl3, boolean bl4, boolean bl5, boolean bl6, boolean bl7, boolean bl8, boolean bl9, boolean bl10, boolean bl11, boolean bl12, boolean bl13, boolean bl14, boolean bl15, boolean bl16, boolean bl17) {
    }

    public gu(boolean bl2, boolean bl3, boolean bl4, boolean bl5, boolean bl6, boolean bl7, boolean bl8, boolean bl9, boolean bl10, boolean bl11, boolean bl12, boolean bl13, boolean bl14, boolean bl15, boolean bl16) {
    }

    public gu(boolean bl2, boolean bl3, boolean bl4, boolean bl5, boolean bl6, boolean bl7, boolean bl8, boolean bl9, boolean bl10, boolean bl11, boolean bl12, boolean bl13) {
    }

    public gu(boolean bl2, boolean bl3, boolean bl4, boolean bl5, boolean bl6, boolean bl7, boolean bl8, boolean bl9, boolean bl10, boolean bl11, boolean bl12, boolean bl13, boolean bl14, boolean bl15) {
    }

    private gu(boolean bl2, boolean bl3, boolean bl4, boolean bl5, boolean bl6, boolean bl7, boolean bl8) {
    }

    private gu(boolean bl2, boolean bl3, boolean bl4, boolean bl5, boolean bl6, boolean bl7, boolean bl8, boolean bl9, boolean bl10) {
    }

    public gu(boolean bl2, boolean bl3, boolean bl4, boolean bl5) {
        this(false);
    }

    public int r() {
        return this.b.length;
    }

    public int s() {
        return this.o.length;
    }

    public int t() {
        return this.a.t();
    }

    public int c() {
        return this.c(this.a.c());
    }

    public int l() {
        return this.f + this.a + this.c;
    }

    private int c(int n) {
        return n - this.e + this.c;
    }

    public static int f(int n) {
        return n + 4096 >> 13 & 7;
    }

    public static void e(int n) {
        gu.a("s", n);
    }

    public static void u() {
        gu.a("r", 0);
    }

    public static void o() {
        gu.a("n", 0);
    }

    public static void z() {
        gu.a("p", "");
    }

    public static void j() {
        gu.a("d", "");
    }

    private static void a(String string, String string2) {
        me.a((short)57, string, string2);
    }

    public void a(int n) {
        this.a.h(5, n);
    }

    public gu(le le2, char c) {
        this(le2, String.valueOf(c));
    }

    public void a(String string, w w2) {
        this.a.addElement(string);
        this.b.addElement(w2);
    }

    public void a(ht ht2, String string, int n, int n2) {
        this.a.a(ht2, string, n, this.c(n2));
    }

    public void a(ht ht2, String string, int n, int n2, int n3, int n4) {
        this.a.a(ht2, string, n, n2, n3, this.c(n4));
    }

    public boolean a(String string, int n) {
        this.c("e", n);
        bj bj2 = this.c(n);
        bj2.c(string);
        return this.a(n, bj2);
    }

    private static int c(int n, int n2) {
        if (n == 0) {
            return 0;
        }
        while (n >= 32768 || n2 >= 32768) {
            n2 >>= 1;
            n >>= 1;
        }
        int n3 = (n <<= k) / n2;
        short s = b[n3];
        return s + (b[n3 + 1] - s) * (n %= n2) / n2;
    }

    private boolean a(iv iv2, int n) {
        if (this.h != null && Math.abs(iv2.a - this.h.a) < n) {
            int n2 = iv2.b - this.h.b;
            while (n2 < 0) {
                n2 = (int)((long)n2 + (long)360 * j);
            }
            if (Math.min(n2, (int)((long)360 * j - (long)n2)) < n) {
                return true;
            }
        }
        return false;
    }

    public iv b(iv iv2) {
        return new iv(iv2.a + this.e, iv2.b + this.b);
    }

    public iv d(iv iv2) {
        return new iv(iv2.a - this.e, iv2.b - this.b);
    }

    public static iv b(lk lk2) {
        return new iv(lk2.d(1), lk2.d(2));
    }

    public static iv a(lk lk2) {
        return new iv(lk2.d(1), lk2.d(2));
    }

    public static iv e(lk lk2) {
        return iv.a(lk2.d(1), lk2.d(2), lk2.d(3));
    }

    public synchronized byte[] a(String string) {
        this.aj();
        return (byte[])this.c.get(string);
    }

    public oz a(int n) {
        return this.o[n];
    }

    public String a(int n) {
        return this.a[n];
    }

    public gu b(int n) {
        return this.b[n];
    }

    public static int a(gu gu2, int n) {
        gu2.a = n;
        return n;
    }

    public long e(int n) {
        return this.o[n].a.k();
    }

    public int a(int n) {
        if (n != 0) {
            if (n == this.j().length - 1) {
                return -65536;
            }
            return -16384;
        }
        return -16711936;
    }

    public int a(gu gu2) {
        return ov.d(gu2.c - this.c, gu2.b - this.b);
    }

    public boolean y_() {
        return true;
    }

    public boolean z_() {
        return false;
    }

    public boolean A_() {
        return false;
    }

    public boolean l() {
        return false;
    }

    public final int f() {
        return 0;
    }

    public int m() {
        return -1;
    }

    public int k() {
        return -16777216;
    }

    public int z() {
        return 53;
    }

    public static gu a(String string) {
        c = new gu(string, false);
        return c;
    }

    private static void a(byte[] byArray, int n, int n2, int n3, int n4) {
        byte[] byArray2 = gu.a(n2, n3, n4);
        System.arraycopy(byArray2, 0, byArray, n, byArray2.length);
    }

    public final void v() {
    }

    public final void w() {
    }

    public final void b() {
    }

    public final void e(boolean bl2) {
    }

    public static gu i() {
        if (d == null) {
            gu.ae();
        }
        return d;
    }

    public static gu g() {
        return f;
    }

    public static boolean w() {
        return true;
    }

    public static boolean p() {
        return true;
    }

    public static boolean o() {
        return true;
    }

    public static boolean k() {
        return true;
    }

    private static synchronized void r() {
        gu.c(new lk(my.a));
    }
}

