package com.google.android.m4b.maps.bl;

import android.content.Context;
import android.opengl.GLDebugHelper;
import android.os.Build.VERSION;
import android.view.SurfaceHolder;
import android.view.SurfaceHolder.Callback;
import android.view.SurfaceView;
import com.google.android.m4b.maps.au.a;
import java.io.Writer;
import java.lang.ref.WeakReference;
import java.util.ArrayList;
import javax.microedition.khronos.egl.EGL10;
import javax.microedition.khronos.egl.EGLConfig;
import javax.microedition.khronos.egl.EGLContext;
import javax.microedition.khronos.egl.EGLDisplay;
import javax.microedition.khronos.egl.EGLSurface;
import javax.microedition.khronos.opengles.GL;
import javax.microedition.khronos.opengles.GL10;

public class y extends SurfaceView
  implements SurfaceHolder.Callback
{
  private static final i a = new i((byte)0);
  private final WeakReference<y> b = new WeakReference(this);
  private h c;
  private l d;
  private boolean e;
  private d f;
  private e g;
  private f h;
  private boolean i;
  private boolean j;

  public y(Context paramContext)
  {
    super(paramContext);
    SurfaceHolder localSurfaceHolder = getHolder();
    localSurfaceHolder.addCallback(this);
    if (Build.VERSION.SDK_INT < 9)
      localSurfaceHolder.setFormat(4);
  }

  private void c()
  {
    if (this.c != null)
      throw new IllegalStateException("setRenderer has already been called for this instance.");
  }

  public void a()
  {
    this.c.f();
  }

  public final void a(d paramd)
  {
    c();
    this.f = paramd;
  }

  public final void a(l paraml)
  {
    c();
    if (this.f == null)
      this.f = new m(true);
    if (this.g == null)
      this.g = new c((byte)0);
    if (this.h == null)
      this.h = new f((byte)0);
    this.d = paraml;
    this.c = new h(this.b);
    this.c.start();
  }

  public void b()
  {
    this.c.e();
  }

  public final void b(int paramInt)
  {
    this.c.a(0);
  }

  protected void finalize()
  {
    try
    {
      if (this.c != null)
        this.c.g();
      return;
    }
    finally
    {
      super.finalize();
    }
  }

  public final void i(boolean paramBoolean)
  {
    this.i = true;
  }

  public final void j(boolean paramBoolean)
  {
    this.j = paramBoolean;
    if ((!paramBoolean) && (this.e) && (this.c != null) && (!this.c.h()))
      this.c.g();
  }

  protected void onAttachedToWindow()
  {
    super.onAttachedToWindow();
    if ((this.e) && (this.d != null) && ((this.c == null) || (this.c.h())))
      if (this.c == null)
        break label91;
    label91: for (int k = this.c.a(); ; k = 1)
    {
      this.c = new h(this.b);
      if (k != 1)
        this.c.a(k);
      this.c.start();
      this.e = false;
      return;
    }
  }

  protected void onDetachedFromWindow()
  {
    if ((!this.j) && (this.c != null))
      this.c.g();
    this.e = true;
    super.onDetachedFromWindow();
  }

  public void surfaceChanged(SurfaceHolder paramSurfaceHolder, int paramInt1, int paramInt2, int paramInt3)
  {
    this.c.a(paramInt2, paramInt3);
  }

  public void surfaceCreated(SurfaceHolder paramSurfaceHolder)
  {
    this.c.c();
  }

  public void surfaceDestroyed(SurfaceHolder paramSurfaceHolder)
  {
    this.c.d();
  }

  public void u()
  {
    this.c.b();
  }

  abstract class a
    implements y.d
  {
    private int[] a;

    public a(int[] arg2)
    {
      if (y.a(y.this) != 2);
      while (true)
      {
        this.a = localObject;
        return;
        int i = localObject.length;
        int[] arrayOfInt = new int[i + 2];
        System.arraycopy(localObject, 0, arrayOfInt, 0, i - 1);
        arrayOfInt[(i - 1)] = 12352;
        arrayOfInt[i] = 4;
        arrayOfInt[(i + 1)] = 12344;
        Object localObject = arrayOfInt;
      }
    }

    public final EGLConfig a(EGL10 paramEGL10, EGLDisplay paramEGLDisplay)
    {
      int[] arrayOfInt = new int[1];
      if (!paramEGL10.eglChooseConfig(paramEGLDisplay, this.a, null, 0, arrayOfInt))
        throw new IllegalArgumentException("eglChooseConfig failed");
      int i = arrayOfInt[0];
      if (i <= 0)
        throw new IllegalArgumentException("No configs match configSpec");
      EGLConfig[] arrayOfEGLConfig = new EGLConfig[i];
      if (!paramEGL10.eglChooseConfig(paramEGLDisplay, this.a, arrayOfEGLConfig, i, arrayOfInt))
        throw new IllegalArgumentException("eglChooseConfig#2 failed");
      EGLConfig localEGLConfig = a(paramEGL10, paramEGLDisplay, arrayOfEGLConfig);
      if (localEGLConfig == null)
        throw new IllegalArgumentException("No config chosen");
      return localEGLConfig;
    }

    abstract EGLConfig a(EGL10 paramEGL10, EGLDisplay paramEGLDisplay, EGLConfig[] paramArrayOfEGLConfig);
  }

  class b extends y.a
  {
    private int[] a = new int[1];
    private int b = 5;
    private int c = 6;
    private int d = 5;
    private int e = 0;
    private int f;
    private int g;

    public b(int paramInt1, int paramInt2, int paramInt3, int paramInt4, int paramInt5, int arg7)
    {
      super(new int[] { 12324, 5, 12323, 6, 12322, 5, 12321, 0, 12325, paramInt5, 12326, 0, 12344 });
      this.f = paramInt5;
      this.g = 0;
    }

    private int a(EGL10 paramEGL10, EGLDisplay paramEGLDisplay, EGLConfig paramEGLConfig, int paramInt1, int paramInt2)
    {
      boolean bool = paramEGL10.eglGetConfigAttrib(paramEGLDisplay, paramEGLConfig, paramInt1, this.a);
      int i = 0;
      if (bool)
        i = this.a[0];
      return i;
    }

    public final EGLConfig a(EGL10 paramEGL10, EGLDisplay paramEGLDisplay, EGLConfig[] paramArrayOfEGLConfig)
    {
      int i = paramArrayOfEGLConfig.length;
      for (int j = 0; j < i; j++)
      {
        EGLConfig localEGLConfig = paramArrayOfEGLConfig[j];
        int k = a(paramEGL10, paramEGLDisplay, localEGLConfig, 12325, 0);
        int m = a(paramEGL10, paramEGLDisplay, localEGLConfig, 12326, 0);
        if ((k >= this.f) && (m >= this.g))
        {
          int n = a(paramEGL10, paramEGLDisplay, localEGLConfig, 12324, 0);
          int i1 = a(paramEGL10, paramEGLDisplay, localEGLConfig, 12323, 0);
          int i2 = a(paramEGL10, paramEGLDisplay, localEGLConfig, 12322, 0);
          int i3 = a(paramEGL10, paramEGLDisplay, localEGLConfig, 12321, 0);
          if ((n == this.b) && (i1 == this.c) && (i2 == this.d) && (i3 == this.e))
            return localEGLConfig;
        }
      }
      return null;
    }
  }

  final class c
    implements y.e
  {
    private int a = 12440;

    private c()
    {
    }

    public final EGLContext a(EGL10 paramEGL10, EGLDisplay paramEGLDisplay, EGLConfig paramEGLConfig)
    {
      int[] arrayOfInt = new int[3];
      arrayOfInt[0] = this.a;
      arrayOfInt[1] = y.a(y.this);
      arrayOfInt[2] = 12344;
      EGLContext localEGLContext = EGL10.EGL_NO_CONTEXT;
      if (y.a(y.this) != 0);
      while (true)
      {
        return paramEGL10.eglCreateContext(paramEGLDisplay, paramEGLConfig, localEGLContext, arrayOfInt);
        arrayOfInt = null;
      }
    }

    public final void a(EGL10 paramEGL10, EGLDisplay paramEGLDisplay, EGLContext paramEGLContext)
    {
      if (!paramEGL10.eglDestroyContext(paramEGLDisplay, paramEGLContext))
        y.g.a("eglDestroyContex", paramEGL10.eglGetError());
    }
  }

  public static abstract interface d
  {
    public abstract EGLConfig a(EGL10 paramEGL10, EGLDisplay paramEGLDisplay);
  }

  public static abstract interface e
  {
    public abstract EGLContext a(EGL10 paramEGL10, EGLDisplay paramEGLDisplay, EGLConfig paramEGLConfig);

    public abstract void a(EGL10 paramEGL10, EGLDisplay paramEGLDisplay, EGLContext paramEGLContext);
  }

  public static class f
  {
    public EGLSurface a(EGL10 paramEGL10, EGLDisplay paramEGLDisplay, EGLConfig paramEGLConfig, Object paramObject)
    {
      try
      {
        EGLSurface localEGLSurface = paramEGL10.eglCreateWindowSurface(paramEGLDisplay, paramEGLConfig, paramObject, null);
        return localEGLSurface;
      }
      catch (IllegalArgumentException localIllegalArgumentException)
      {
      }
      return null;
    }

    public void a(EGL10 paramEGL10, EGLDisplay paramEGLDisplay, EGLSurface paramEGLSurface)
    {
      paramEGL10.eglDestroySurface(paramEGLDisplay, paramEGLSurface);
    }
  }

  static final class g
  {
    EGL10 a;
    EGLDisplay b;
    EGLSurface c;
    EGLConfig d;
    private WeakReference<y> e;
    private EGLContext f;

    public g(WeakReference<y> paramWeakReference)
    {
      this.e = paramWeakReference;
    }

    public static void a(String paramString, int paramInt)
    {
      throw new RuntimeException(paramString + " failed: " + paramInt);
    }

    private void f()
    {
      if ((this.c != null) && (this.c != EGL10.EGL_NO_SURFACE))
      {
        this.a.eglMakeCurrent(this.b, EGL10.EGL_NO_SURFACE, EGL10.EGL_NO_SURFACE, EGL10.EGL_NO_CONTEXT);
        y localy = (y)this.e.get();
        if (localy != null)
          y.d(localy).a(this.a, this.b, this.c);
        this.c = null;
      }
    }

    public final void a()
    {
      a.a();
      this.a = ((EGL10)EGLContext.getEGL());
      this.b = this.a.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY);
      if (this.b == EGL10.EGL_NO_DISPLAY)
        throw new RuntimeException("eglGetDisplay failed");
      int[] arrayOfInt = new int[2];
      if (!this.a.eglInitialize(this.b, arrayOfInt))
        throw new RuntimeException("eglInitialize failed");
      y localy = (y)this.e.get();
      if (localy == null)
        this.d = null;
      for (this.f = null; ; this.f = y.c(localy).a(this.a, this.b, this.d))
      {
        if ((this.f == null) || (this.f == EGL10.EGL_NO_CONTEXT))
        {
          this.f = null;
          a("createContext", this.a.eglGetError());
        }
        this.c = null;
        a.b();
        return;
        this.d = y.b(localy).a(this.a, this.b);
      }
    }

    public final boolean b()
    {
      if (this.a == null)
        throw new RuntimeException("egl not initialized");
      if (this.b == null)
        throw new RuntimeException("eglDisplay not initialized");
      if (this.d == null)
        throw new RuntimeException("mEglConfig not initialized");
      f();
      y localy = (y)this.e.get();
      if (localy != null);
      for (this.c = y.d(localy).a(this.a, this.b, this.d, localy.getHolder()); (this.c == null) || (this.c == EGL10.EGL_NO_SURFACE); this.c = null)
      {
        this.a.eglGetError();
        return false;
      }
      if (!this.a.eglMakeCurrent(this.b, this.c, this.c, this.f))
      {
        this.a.eglGetError();
        return false;
      }
      return true;
    }

    final GL c()
    {
      GL localGL = this.f.getGL();
      y localy = (y)this.e.get();
      int j;
      if (localy != null)
      {
        if (y.e(localy) != null)
          localGL = y.e(localy).a();
        if ((0x3 & y.f(localy)) != 0)
        {
          int i = 0x1 & y.f(localy);
          j = 0;
          if (i != 0)
            j = 1;
          if ((0x2 & y.f(localy)) == 0)
            break label95;
        }
      }
      label95: for (y.k localk = new y.k(); ; localk = null)
      {
        localGL = GLDebugHelper.wrap(localGL, j, localk);
        return localGL;
      }
    }

    public final void d()
    {
      f();
    }

    public final void e()
    {
      if (this.f != null)
      {
        y localy = (y)this.e.get();
        if (localy != null)
          y.c(localy).a(this.a, this.b, this.f);
        this.f = null;
      }
      if (this.b != null)
      {
        this.a.eglTerminate(this.b);
        this.b = null;
      }
    }
  }

  static final class h extends Thread
  {
    private boolean a;
    private boolean b;
    private boolean c;
    private boolean d;
    private boolean e;
    private boolean f;
    private boolean g;
    private boolean h;
    private boolean i;
    private boolean j;
    private int k = 0;
    private int l = 0;
    private int m = 1;
    private boolean n = true;
    private boolean o;
    private ArrayList<Runnable> p = new ArrayList();
    private boolean q = true;
    private y.g r;
    private WeakReference<y> s;

    h(WeakReference<y> paramWeakReference)
    {
      this.s = paramWeakReference;
    }

    private void j()
    {
      if (this.i)
      {
        this.i = false;
        this.r.d();
      }
    }

    private void k()
    {
      if (this.h)
      {
        this.r.e();
        this.h = false;
        y.F().c(this);
      }
    }

    // ERROR //
    private void l()
    {
      // Byte code:
      //   0: aload_0
      //   1: new 61	com/google/android/m4b/maps/bl/y$g
      //   4: dup
      //   5: aload_0
      //   6: getfield 52	com/google/android/m4b/maps/bl/y$h:s	Ljava/lang/ref/WeakReference;
      //   9: invokespecial 82	com/google/android/m4b/maps/bl/y$g:<init>	(Ljava/lang/ref/WeakReference;)V
      //   12: putfield 59	com/google/android/m4b/maps/bl/y$h:r	Lcom/google/android/m4b/maps/bl/y$g;
      //   15: aload_0
      //   16: iconst_0
      //   17: putfield 65	com/google/android/m4b/maps/bl/y$h:h	Z
      //   20: aload_0
      //   21: iconst_0
      //   22: putfield 57	com/google/android/m4b/maps/bl/y$h:i	Z
      //   25: iconst_0
      //   26: istore_1
      //   27: aconst_null
      //   28: astore_2
      //   29: iconst_0
      //   30: istore_3
      //   31: iconst_0
      //   32: istore 4
      //   34: iconst_0
      //   35: istore 5
      //   37: iconst_0
      //   38: istore 6
      //   40: iconst_0
      //   41: istore 7
      //   43: iconst_0
      //   44: istore 8
      //   46: iconst_0
      //   47: istore 9
      //   49: aconst_null
      //   50: astore 10
      //   52: iconst_0
      //   53: istore 11
      //   55: iconst_0
      //   56: istore 12
      //   58: invokestatic 73	com/google/android/m4b/maps/bl/y:F	()Lcom/google/android/m4b/maps/bl/y$i;
      //   61: astore 16
      //   63: aload 16
      //   65: monitorenter
      //   66: aload_0
      //   67: getfield 84	com/google/android/m4b/maps/bl/y$h:a	Z
      //   70: ifeq +34 -> 104
      //   73: aload 16
      //   75: monitorexit
      //   76: invokestatic 73	com/google/android/m4b/maps/bl/y:F	()Lcom/google/android/m4b/maps/bl/y$i;
      //   79: astore 64
      //   81: aload 64
      //   83: monitorenter
      //   84: aload_0
      //   85: invokespecial 86	com/google/android/m4b/maps/bl/y$h:j	()V
      //   88: aload_0
      //   89: invokespecial 88	com/google/android/m4b/maps/bl/y$h:k	()V
      //   92: aload 64
      //   94: monitorexit
      //   95: return
      //   96: astore 65
      //   98: aload 64
      //   100: monitorexit
      //   101: aload 65
      //   103: athrow
      //   104: aload_0
      //   105: getfield 40	com/google/android/m4b/maps/bl/y$h:p	Ljava/util/ArrayList;
      //   108: invokevirtual 92	java/util/ArrayList:isEmpty	()Z
      //   111: ifne +115 -> 226
      //   114: aload_0
      //   115: getfield 40	com/google/android/m4b/maps/bl/y$h:p	Ljava/util/ArrayList;
      //   118: iconst_0
      //   119: invokevirtual 96	java/util/ArrayList:remove	(I)Ljava/lang/Object;
      //   122: checkcast 98	java/lang/Runnable
      //   125: astore 63
      //   127: iload 12
      //   129: istore 31
      //   131: iload 11
      //   133: istore 32
      //   135: aload 63
      //   137: astore 30
      //   139: iload 9
      //   141: istore 34
      //   143: iload 8
      //   145: istore 28
      //   147: iload 7
      //   149: istore 35
      //   151: iload 6
      //   153: istore 36
      //   155: iload 5
      //   157: istore 29
      //   159: iload 4
      //   161: istore 37
      //   163: iload_3
      //   164: istore 38
      //   166: aload 16
      //   168: monitorexit
      //   169: aload 30
      //   171: ifnull +552 -> 723
      //   174: aload 30
      //   176: invokeinterface 101 1 0
      //   181: iload 38
      //   183: istore_3
      //   184: iload 37
      //   186: istore 4
      //   188: iload 29
      //   190: istore 5
      //   192: iload 36
      //   194: istore 6
      //   196: iload 35
      //   198: istore 7
      //   200: iload 28
      //   202: istore 8
      //   204: iload 34
      //   206: istore 9
      //   208: iload 31
      //   210: istore 58
      //   212: iload 32
      //   214: istore 11
      //   216: iload 58
      //   218: istore 12
      //   220: aconst_null
      //   221: astore 10
      //   223: goto -165 -> 58
      //   226: aload_0
      //   227: getfield 103	com/google/android/m4b/maps/bl/y$h:d	Z
      //   230: aload_0
      //   231: getfield 105	com/google/android/m4b/maps/bl/y$h:c	Z
      //   234: if_icmpeq +937 -> 1171
      //   237: aload_0
      //   238: getfield 105	com/google/android/m4b/maps/bl/y$h:c	Z
      //   241: istore 62
      //   243: aload_0
      //   244: aload_0
      //   245: getfield 105	com/google/android/m4b/maps/bl/y$h:c	Z
      //   248: putfield 103	com/google/android/m4b/maps/bl/y$h:d	Z
      //   251: invokestatic 73	com/google/android/m4b/maps/bl/y:F	()Lcom/google/android/m4b/maps/bl/y$i;
      //   254: invokevirtual 110	java/lang/Object:notifyAll	()V
      //   257: iload 62
      //   259: istore 18
      //   261: aload_0
      //   262: getfield 112	com/google/android/m4b/maps/bl/y$h:j	Z
      //   265: ifeq +19 -> 284
      //   268: aload_0
      //   269: invokespecial 86	com/google/android/m4b/maps/bl/y$h:j	()V
      //   272: aload_0
      //   273: invokespecial 88	com/google/android/m4b/maps/bl/y$h:k	()V
      //   276: aload_0
      //   277: iconst_0
      //   278: putfield 112	com/google/android/m4b/maps/bl/y$h:j	Z
      //   281: iconst_1
      //   282: istore 4
      //   284: iload 7
      //   286: ifeq +14 -> 300
      //   289: aload_0
      //   290: invokespecial 86	com/google/android/m4b/maps/bl/y$h:j	()V
      //   293: aload_0
      //   294: invokespecial 88	com/google/android/m4b/maps/bl/y$h:k	()V
      //   297: iconst_0
      //   298: istore 7
      //   300: iload 18
      //   302: ifeq +14 -> 316
      //   305: aload_0
      //   306: getfield 57	com/google/android/m4b/maps/bl/y$h:i	Z
      //   309: ifeq +7 -> 316
      //   312: aload_0
      //   313: invokespecial 86	com/google/android/m4b/maps/bl/y$h:j	()V
      //   316: iload 18
      //   318: ifeq +48 -> 366
      //   321: aload_0
      //   322: getfield 65	com/google/android/m4b/maps/bl/y$h:h	Z
      //   325: ifeq +41 -> 366
      //   328: aload_0
      //   329: getfield 52	com/google/android/m4b/maps/bl/y$h:s	Ljava/lang/ref/WeakReference;
      //   332: invokevirtual 118	java/lang/ref/WeakReference:get	()Ljava/lang/Object;
      //   335: checkcast 69	com/google/android/m4b/maps/bl/y
      //   338: astore 60
      //   340: aload 60
      //   342: ifnonnull +281 -> 623
      //   345: iconst_0
      //   346: istore 61
      //   348: iload 61
      //   350: ifeq +12 -> 362
      //   353: invokestatic 73	com/google/android/m4b/maps/bl/y:F	()Lcom/google/android/m4b/maps/bl/y$i;
      //   356: invokevirtual 120	com/google/android/m4b/maps/bl/y$i:a	()Z
      //   359: ifeq +7 -> 366
      //   362: aload_0
      //   363: invokespecial 88	com/google/android/m4b/maps/bl/y$h:k	()V
      //   366: iload 18
      //   368: ifeq +19 -> 387
      //   371: invokestatic 73	com/google/android/m4b/maps/bl/y:F	()Lcom/google/android/m4b/maps/bl/y$i;
      //   374: invokevirtual 122	com/google/android/m4b/maps/bl/y$i:b	()Z
      //   377: ifeq +10 -> 387
      //   380: aload_0
      //   381: getfield 59	com/google/android/m4b/maps/bl/y$h:r	Lcom/google/android/m4b/maps/bl/y$g;
      //   384: invokevirtual 67	com/google/android/m4b/maps/bl/y$g:e	()V
      //   387: aload_0
      //   388: getfield 124	com/google/android/m4b/maps/bl/y$h:e	Z
      //   391: ifne +37 -> 428
      //   394: aload_0
      //   395: getfield 126	com/google/android/m4b/maps/bl/y$h:g	Z
      //   398: ifne +30 -> 428
      //   401: aload_0
      //   402: getfield 57	com/google/android/m4b/maps/bl/y$h:i	Z
      //   405: ifeq +7 -> 412
      //   408: aload_0
      //   409: invokespecial 86	com/google/android/m4b/maps/bl/y$h:j	()V
      //   412: aload_0
      //   413: iconst_1
      //   414: putfield 126	com/google/android/m4b/maps/bl/y$h:g	Z
      //   417: aload_0
      //   418: iconst_0
      //   419: putfield 128	com/google/android/m4b/maps/bl/y$h:f	Z
      //   422: invokestatic 73	com/google/android/m4b/maps/bl/y:F	()Lcom/google/android/m4b/maps/bl/y$i;
      //   425: invokevirtual 110	java/lang/Object:notifyAll	()V
      //   428: aload_0
      //   429: getfield 124	com/google/android/m4b/maps/bl/y$h:e	Z
      //   432: ifeq +21 -> 453
      //   435: aload_0
      //   436: getfield 126	com/google/android/m4b/maps/bl/y$h:g	Z
      //   439: ifeq +14 -> 453
      //   442: aload_0
      //   443: iconst_0
      //   444: putfield 126	com/google/android/m4b/maps/bl/y$h:g	Z
      //   447: invokestatic 73	com/google/android/m4b/maps/bl/y:F	()Lcom/google/android/m4b/maps/bl/y$i;
      //   450: invokevirtual 110	java/lang/Object:notifyAll	()V
      //   453: iload 12
      //   455: ifeq +20 -> 475
      //   458: iconst_0
      //   459: istore 5
      //   461: iconst_0
      //   462: istore 12
      //   464: aload_0
      //   465: iconst_1
      //   466: putfield 130	com/google/android/m4b/maps/bl/y$h:o	Z
      //   469: invokestatic 73	com/google/android/m4b/maps/bl/y:F	()Lcom/google/android/m4b/maps/bl/y$i;
      //   472: invokevirtual 110	java/lang/Object:notifyAll	()V
      //   475: aload_0
      //   476: invokespecial 132	com/google/android/m4b/maps/bl/y$h:m	()Z
      //   479: ifeq +235 -> 714
      //   482: aload_0
      //   483: getfield 65	com/google/android/m4b/maps/bl/y$h:h	Z
      //   486: ifne +11 -> 497
      //   489: iload 4
      //   491: ifeq +142 -> 633
      //   494: iconst_0
      //   495: istore 4
      //   497: aload_0
      //   498: getfield 65	com/google/android/m4b/maps/bl/y$h:h	Z
      //   501: ifeq +659 -> 1160
      //   504: aload_0
      //   505: getfield 57	com/google/android/m4b/maps/bl/y$h:i	Z
      //   508: ifne +652 -> 1160
      //   511: aload_0
      //   512: iconst_1
      //   513: putfield 57	com/google/android/m4b/maps/bl/y$h:i	Z
      //   516: iconst_1
      //   517: istore 9
      //   519: iconst_1
      //   520: istore 21
      //   522: iconst_1
      //   523: istore 22
      //   525: aload_0
      //   526: getfield 57	com/google/android/m4b/maps/bl/y$h:i	Z
      //   529: ifeq +655 -> 1184
      //   532: aload_0
      //   533: getfield 42	com/google/android/m4b/maps/bl/y$h:q	Z
      //   536: ifeq +598 -> 1134
      //   539: iconst_1
      //   540: istore 23
      //   542: aload_0
      //   543: getfield 44	com/google/android/m4b/maps/bl/y$h:k	I
      //   546: istore 24
      //   548: aload_0
      //   549: getfield 46	com/google/android/m4b/maps/bl/y$h:l	I
      //   552: istore 25
      //   554: iconst_1
      //   555: istore 26
      //   557: iconst_1
      //   558: istore 27
      //   560: aload_0
      //   561: iconst_0
      //   562: putfield 42	com/google/android/m4b/maps/bl/y$h:q	Z
      //   565: aload_0
      //   566: iconst_0
      //   567: putfield 48	com/google/android/m4b/maps/bl/y$h:n	Z
      //   570: invokestatic 73	com/google/android/m4b/maps/bl/y:F	()Lcom/google/android/m4b/maps/bl/y$i;
      //   573: invokevirtual 110	java/lang/Object:notifyAll	()V
      //   576: iload 22
      //   578: istore 28
      //   580: iload 26
      //   582: istore 29
      //   584: aload 10
      //   586: astore 30
      //   588: iload 12
      //   590: istore 31
      //   592: iload 24
      //   594: istore 32
      //   596: iload 25
      //   598: istore 33
      //   600: iload 27
      //   602: istore 34
      //   604: iload 7
      //   606: istore 35
      //   608: iload 23
      //   610: istore 36
      //   612: iload 4
      //   614: istore 37
      //   616: iload 33
      //   618: istore 38
      //   620: goto -454 -> 166
      //   623: aload 60
      //   625: invokestatic 135	com/google/android/m4b/maps/bl/y:g	(Lcom/google/android/m4b/maps/bl/y;)Z
      //   628: istore 61
      //   630: goto -282 -> 348
      //   633: invokestatic 73	com/google/android/m4b/maps/bl/y:F	()Lcom/google/android/m4b/maps/bl/y$i;
      //   636: aload_0
      //   637: invokevirtual 138	com/google/android/m4b/maps/bl/y$i:b	(Lcom/google/android/m4b/maps/bl/y$h;)Z
      //   640: istore 19
      //   642: iload 19
      //   644: ifeq -147 -> 497
      //   647: aload_0
      //   648: getfield 59	com/google/android/m4b/maps/bl/y$h:r	Lcom/google/android/m4b/maps/bl/y$g;
      //   651: invokevirtual 140	com/google/android/m4b/maps/bl/y$g:a	()V
      //   654: aload_0
      //   655: iconst_1
      //   656: putfield 65	com/google/android/m4b/maps/bl/y$h:h	Z
      //   659: iconst_1
      //   660: istore_1
      //   661: invokestatic 73	com/google/android/m4b/maps/bl/y:F	()Lcom/google/android/m4b/maps/bl/y$i;
      //   664: invokevirtual 110	java/lang/Object:notifyAll	()V
      //   667: goto -170 -> 497
      //   670: astore 17
      //   672: aload 16
      //   674: monitorexit
      //   675: aload 17
      //   677: athrow
      //   678: astore 13
      //   680: invokestatic 73	com/google/android/m4b/maps/bl/y:F	()Lcom/google/android/m4b/maps/bl/y$i;
      //   683: astore 14
      //   685: aload 14
      //   687: monitorenter
      //   688: aload_0
      //   689: invokespecial 86	com/google/android/m4b/maps/bl/y$h:j	()V
      //   692: aload_0
      //   693: invokespecial 88	com/google/android/m4b/maps/bl/y$h:k	()V
      //   696: aload 14
      //   698: monitorexit
      //   699: aload 13
      //   701: athrow
      //   702: astore 20
      //   704: invokestatic 73	com/google/android/m4b/maps/bl/y:F	()Lcom/google/android/m4b/maps/bl/y$i;
      //   707: aload_0
      //   708: invokevirtual 78	com/google/android/m4b/maps/bl/y$i:c	(Lcom/google/android/m4b/maps/bl/y$h;)V
      //   711: aload 20
      //   713: athrow
      //   714: invokestatic 73	com/google/android/m4b/maps/bl/y:F	()Lcom/google/android/m4b/maps/bl/y$i;
      //   717: invokevirtual 143	java/lang/Object:wait	()V
      //   720: goto -654 -> 66
      //   723: iload 34
      //   725: ifeq +402 -> 1127
      //   728: aload_0
      //   729: getfield 59	com/google/android/m4b/maps/bl/y$h:r	Lcom/google/android/m4b/maps/bl/y$g;
      //   732: invokevirtual 144	com/google/android/m4b/maps/bl/y$g:b	()Z
      //   735: ifne +460 -> 1195
      //   738: invokestatic 73	com/google/android/m4b/maps/bl/y:F	()Lcom/google/android/m4b/maps/bl/y$i;
      //   741: astore 55
      //   743: aload 55
      //   745: monitorenter
      //   746: aload_0
      //   747: iconst_1
      //   748: putfield 128	com/google/android/m4b/maps/bl/y$h:f	Z
      //   751: invokestatic 73	com/google/android/m4b/maps/bl/y:F	()Lcom/google/android/m4b/maps/bl/y$i;
      //   754: invokevirtual 110	java/lang/Object:notifyAll	()V
      //   757: aload 55
      //   759: monitorexit
      //   760: iload 38
      //   762: istore_3
      //   763: iload 37
      //   765: istore 4
      //   767: iload 29
      //   769: istore 5
      //   771: iload 36
      //   773: istore 6
      //   775: iload 35
      //   777: istore 7
      //   779: iload 28
      //   781: istore 8
      //   783: iload 34
      //   785: istore 9
      //   787: iload 31
      //   789: istore 57
      //   791: aload 30
      //   793: astore 10
      //   795: iload 32
      //   797: istore 11
      //   799: iload 57
      //   801: istore 12
      //   803: goto -745 -> 58
      //   806: astore 56
      //   808: aload 55
      //   810: monitorexit
      //   811: aload 56
      //   813: athrow
      //   814: iload 28
      //   816: ifeq +305 -> 1121
      //   819: aload_0
      //   820: getfield 59	com/google/android/m4b/maps/bl/y$h:r	Lcom/google/android/m4b/maps/bl/y$g;
      //   823: invokevirtual 147	com/google/android/m4b/maps/bl/y$g:c	()Ljavax/microedition/khronos/opengles/GL;
      //   826: checkcast 149	javax/microedition/khronos/opengles/GL10
      //   829: astore 40
      //   831: invokestatic 73	com/google/android/m4b/maps/bl/y:F	()Lcom/google/android/m4b/maps/bl/y$i;
      //   834: aload 40
      //   836: invokevirtual 152	com/google/android/m4b/maps/bl/y$i:a	(Ljavax/microedition/khronos/opengles/GL10;)V
      //   839: iconst_0
      //   840: istore 28
      //   842: aload 40
      //   844: astore 41
      //   846: iload_1
      //   847: ifeq +47 -> 894
      //   850: aload_0
      //   851: getfield 52	com/google/android/m4b/maps/bl/y$h:s	Ljava/lang/ref/WeakReference;
      //   854: invokevirtual 118	java/lang/ref/WeakReference:get	()Ljava/lang/Object;
      //   857: checkcast 69	com/google/android/m4b/maps/bl/y
      //   860: astore 42
      //   862: aload 42
      //   864: ifnull +337 -> 1201
      //   867: aload 42
      //   869: invokestatic 155	com/google/android/m4b/maps/bl/y:h	(Lcom/google/android/m4b/maps/bl/y;)Lcom/google/android/m4b/maps/bl/y$l;
      //   872: astore 43
      //   874: aload_0
      //   875: getfield 59	com/google/android/m4b/maps/bl/y$h:r	Lcom/google/android/m4b/maps/bl/y$g;
      //   878: getfield 158	com/google/android/m4b/maps/bl/y$g:d	Ljavax/microedition/khronos/egl/EGLConfig;
      //   881: pop
      //   882: aload 43
      //   884: aload 41
      //   886: invokeinterface 161 2 0
      //   891: goto +310 -> 1201
      //   894: iload 36
      //   896: ifeq +39 -> 935
      //   899: aload_0
      //   900: getfield 52	com/google/android/m4b/maps/bl/y$h:s	Ljava/lang/ref/WeakReference;
      //   903: invokevirtual 118	java/lang/ref/WeakReference:get	()Ljava/lang/Object;
      //   906: checkcast 69	com/google/android/m4b/maps/bl/y
      //   909: astore 45
      //   911: aload 45
      //   913: ifnull +293 -> 1206
      //   916: aload 45
      //   918: invokestatic 155	com/google/android/m4b/maps/bl/y:h	(Lcom/google/android/m4b/maps/bl/y;)Lcom/google/android/m4b/maps/bl/y$l;
      //   921: aload 41
      //   923: iload 32
      //   925: iload 38
      //   927: invokeinterface 164 4 0
      //   932: goto +274 -> 1206
      //   935: aload_0
      //   936: getfield 52	com/google/android/m4b/maps/bl/y$h:s	Ljava/lang/ref/WeakReference;
      //   939: invokevirtual 118	java/lang/ref/WeakReference:get	()Ljava/lang/Object;
      //   942: checkcast 69	com/google/android/m4b/maps/bl/y
      //   945: astore 46
      //   947: aload 46
      //   949: ifnull +15 -> 964
      //   952: aload 46
      //   954: invokestatic 155	com/google/android/m4b/maps/bl/y:h	(Lcom/google/android/m4b/maps/bl/y;)Lcom/google/android/m4b/maps/bl/y$l;
      //   957: aload 41
      //   959: invokeinterface 166 2 0
      //   964: invokestatic 172	java/lang/System:nanoTime	()J
      //   967: pop2
      //   968: aload_0
      //   969: getfield 59	com/google/android/m4b/maps/bl/y$h:r	Lcom/google/android/m4b/maps/bl/y$g;
      //   972: astore 49
      //   974: aload 49
      //   976: getfield 175	com/google/android/m4b/maps/bl/y$g:a	Ljavax/microedition/khronos/egl/EGL10;
      //   979: aload 49
      //   981: getfield 178	com/google/android/m4b/maps/bl/y$g:b	Ljavax/microedition/khronos/egl/EGLDisplay;
      //   984: aload 49
      //   986: getfield 181	com/google/android/m4b/maps/bl/y$g:c	Ljavax/microedition/khronos/egl/EGLSurface;
      //   989: invokeinterface 187 3 0
      //   994: ifne +97 -> 1091
      //   997: aload 49
      //   999: getfield 175	com/google/android/m4b/maps/bl/y$g:a	Ljavax/microedition/khronos/egl/EGL10;
      //   1002: invokeinterface 191 1 0
      //   1007: istore 50
      //   1009: goto +203 -> 1212
      //   1012: invokestatic 73	com/google/android/m4b/maps/bl/y:F	()Lcom/google/android/m4b/maps/bl/y$i;
      //   1015: astore 53
      //   1017: aload 53
      //   1019: monitorenter
      //   1020: aload_0
      //   1021: iconst_1
      //   1022: putfield 128	com/google/android/m4b/maps/bl/y$h:f	Z
      //   1025: invokestatic 73	com/google/android/m4b/maps/bl/y:F	()Lcom/google/android/m4b/maps/bl/y$i;
      //   1028: invokevirtual 110	java/lang/Object:notifyAll	()V
      //   1031: aload 53
      //   1033: monitorexit
      //   1034: iload 29
      //   1036: ifeq +141 -> 1177
      //   1039: iconst_1
      //   1040: istore 51
      //   1042: aload 30
      //   1044: astore 10
      //   1046: aload 41
      //   1048: astore_2
      //   1049: iload 32
      //   1051: istore 11
      //   1053: iload 51
      //   1055: istore 12
      //   1057: iload 37
      //   1059: istore 52
      //   1061: iload 29
      //   1063: istore 5
      //   1065: iload 36
      //   1067: istore 6
      //   1069: iload 35
      //   1071: istore 7
      //   1073: iload 28
      //   1075: istore 8
      //   1077: iload 39
      //   1079: istore 9
      //   1081: iload 38
      //   1083: istore_3
      //   1084: iload 52
      //   1086: istore 4
      //   1088: goto -1030 -> 58
      //   1091: sipush 12288
      //   1094: istore 50
      //   1096: goto +116 -> 1212
      //   1099: iconst_1
      //   1100: istore 35
      //   1102: goto -68 -> 1034
      //   1105: astore 54
      //   1107: aload 53
      //   1109: monitorexit
      //   1110: aload 54
      //   1112: athrow
      //   1113: astore 15
      //   1115: aload 14
      //   1117: monitorexit
      //   1118: aload 15
      //   1120: athrow
      //   1121: aload_2
      //   1122: astore 41
      //   1124: goto -278 -> 846
      //   1127: iload 34
      //   1129: istore 39
      //   1131: goto -317 -> 814
      //   1134: iload 9
      //   1136: istore 27
      //   1138: iload 11
      //   1140: istore 59
      //   1142: iload 5
      //   1144: istore 26
      //   1146: iload 21
      //   1148: istore 23
      //   1150: iload_3
      //   1151: istore 25
      //   1153: iload 59
      //   1155: istore 24
      //   1157: goto -592 -> 565
      //   1160: iload 6
      //   1162: istore 21
      //   1164: iload 8
      //   1166: istore 22
      //   1168: goto -643 -> 525
      //   1171: iconst_0
      //   1172: istore 18
      //   1174: goto -913 -> 261
      //   1177: iload 31
      //   1179: istore 51
      //   1181: goto -139 -> 1042
      //   1184: iload 22
      //   1186: istore 8
      //   1188: iload 21
      //   1190: istore 6
      //   1192: goto -478 -> 714
      //   1195: iconst_0
      //   1196: istore 39
      //   1198: goto -384 -> 814
      //   1201: iconst_0
      //   1202: istore_1
      //   1203: goto -309 -> 894
      //   1206: iconst_0
      //   1207: istore 36
      //   1209: goto -274 -> 935
      //   1212: iload 50
      //   1214: lookupswitch	default:+-202->1012, 12288:+-180->1034, 12302:+-115->1099
      //
      // Exception table:
      //   from	to	target	type
      //   84	95	96	finally
      //   66	76	670	finally
      //   104	127	670	finally
      //   166	169	670	finally
      //   226	257	670	finally
      //   261	281	670	finally
      //   289	297	670	finally
      //   305	316	670	finally
      //   321	340	670	finally
      //   353	362	670	finally
      //   362	366	670	finally
      //   371	387	670	finally
      //   387	412	670	finally
      //   412	428	670	finally
      //   428	453	670	finally
      //   464	475	670	finally
      //   475	489	670	finally
      //   497	516	670	finally
      //   525	539	670	finally
      //   542	554	670	finally
      //   560	565	670	finally
      //   565	576	670	finally
      //   623	630	670	finally
      //   633	642	670	finally
      //   647	654	670	finally
      //   654	659	670	finally
      //   661	667	670	finally
      //   704	714	670	finally
      //   714	720	670	finally
      //   58	66	678	finally
      //   174	181	678	finally
      //   672	678	678	finally
      //   728	746	678	finally
      //   808	814	678	finally
      //   819	839	678	finally
      //   850	862	678	finally
      //   867	891	678	finally
      //   899	911	678	finally
      //   916	932	678	finally
      //   935	947	678	finally
      //   952	964	678	finally
      //   964	1009	678	finally
      //   1012	1020	678	finally
      //   1107	1113	678	finally
      //   647	654	702	java/lang/RuntimeException
      //   746	760	806	finally
      //   1020	1034	1105	finally
      //   688	699	1113	finally
    }

    private boolean m()
    {
      return (!this.d) && (this.e) && (!this.f) && (this.k > 0) && (this.l > 0) && ((this.n) || (this.m == 1));
    }

    public final int a()
    {
      synchronized (y.F())
      {
        int i1 = this.m;
        return i1;
      }
    }

    public final void a(int paramInt)
    {
      if ((paramInt < 0) || (paramInt > 1))
        throw new IllegalArgumentException("renderMode");
      synchronized (y.F())
      {
        this.m = paramInt;
        y.F().notifyAll();
        return;
      }
    }

    public final void a(int paramInt1, int paramInt2)
    {
      while (true)
      {
        synchronized (y.F())
        {
          this.k = paramInt1;
          this.l = paramInt2;
          this.q = true;
          this.n = true;
          this.o = false;
          y.F().notifyAll();
          if ((this.b) || (this.d) || (this.o))
            break;
          if ((this.h) && (this.i))
          {
            boolean bool = m();
            if (bool)
            {
              i1 = 1;
              if (i1 == 0)
                break;
              try
              {
                y.F().wait();
              }
              catch (InterruptedException localInterruptedException)
              {
                Thread.currentThread().interrupt();
              }
            }
          }
        }
        int i1 = 0;
      }
    }

    public final void b()
    {
      synchronized (y.F())
      {
        this.n = true;
        y.F().notifyAll();
        return;
      }
    }

    public final void c()
    {
      synchronized (y.F())
      {
        this.e = true;
        y.F().notifyAll();
        while (true)
          if (this.g)
          {
            boolean bool = this.b;
            if (!bool)
              try
              {
                y.F().wait();
              }
              catch (InterruptedException localInterruptedException)
              {
                Thread.currentThread().interrupt();
              }
          }
      }
    }

    public final void d()
    {
      synchronized (y.F())
      {
        this.e = false;
        y.F().notifyAll();
        while (true)
          if (!this.g)
          {
            boolean bool = this.b;
            if (!bool)
              try
              {
                y.F().wait();
              }
              catch (InterruptedException localInterruptedException)
              {
                Thread.currentThread().interrupt();
              }
          }
      }
    }

    public final void e()
    {
      synchronized (y.F())
      {
        this.c = true;
        y.F().notifyAll();
        while (true)
          if (!this.b)
          {
            boolean bool = this.d;
            if (!bool)
              try
              {
                y.F().wait();
              }
              catch (InterruptedException localInterruptedException)
              {
                Thread.currentThread().interrupt();
              }
          }
      }
    }

    public final void f()
    {
      synchronized (y.F())
      {
        this.c = false;
        this.n = true;
        this.o = false;
        y.F().notifyAll();
        while (true)
          if ((!this.b) && (this.d))
          {
            boolean bool = this.o;
            if (!bool)
              try
              {
                y.F().wait();
              }
              catch (InterruptedException localInterruptedException)
              {
                Thread.currentThread().interrupt();
              }
          }
      }
    }

    public final void g()
    {
      synchronized (y.F())
      {
        this.a = true;
        y.F().notifyAll();
        while (true)
        {
          boolean bool = this.b;
          if (!bool)
            try
            {
              y.F().wait();
            }
            catch (InterruptedException localInterruptedException)
            {
              Thread.currentThread().interrupt();
            }
        }
      }
    }

    public final boolean h()
    {
      synchronized (y.F())
      {
        boolean bool = this.b;
        return bool;
      }
    }

    public final void i()
    {
      this.j = true;
      y.F().notifyAll();
    }

    // ERROR //
    public final void run()
    {
      // Byte code:
      //   0: aload_0
      //   1: new 213	java/lang/StringBuilder
      //   4: dup
      //   5: ldc 215
      //   7: invokespecial 216	java/lang/StringBuilder:<init>	(Ljava/lang/String;)V
      //   10: aload_0
      //   11: invokevirtual 219	com/google/android/m4b/maps/bl/y$h:getId	()J
      //   14: invokevirtual 223	java/lang/StringBuilder:append	(J)Ljava/lang/StringBuilder;
      //   17: invokevirtual 227	java/lang/StringBuilder:toString	()Ljava/lang/String;
      //   20: invokevirtual 230	com/google/android/m4b/maps/bl/y$h:setName	(Ljava/lang/String;)V
      //   23: aload_0
      //   24: invokespecial 232	com/google/android/m4b/maps/bl/y$h:l	()V
      //   27: invokestatic 73	com/google/android/m4b/maps/bl/y:F	()Lcom/google/android/m4b/maps/bl/y$i;
      //   30: aload_0
      //   31: invokevirtual 234	com/google/android/m4b/maps/bl/y$i:a	(Lcom/google/android/m4b/maps/bl/y$h;)V
      //   34: return
      //   35: astore 4
      //   37: invokestatic 73	com/google/android/m4b/maps/bl/y:F	()Lcom/google/android/m4b/maps/bl/y$i;
      //   40: aload_0
      //   41: invokevirtual 234	com/google/android/m4b/maps/bl/y$i:a	(Lcom/google/android/m4b/maps/bl/y$h;)V
      //   44: return
      //   45: astore_3
      //   46: ldc 236
      //   48: aload_3
      //   49: invokestatic 241	com/google/android/m4b/maps/ak/k:a	(Ljava/lang/String;Ljava/lang/Throwable;)V
      //   52: aload_3
      //   53: athrow
      //   54: astore_2
      //   55: invokestatic 73	com/google/android/m4b/maps/bl/y:F	()Lcom/google/android/m4b/maps/bl/y$i;
      //   58: aload_0
      //   59: invokevirtual 234	com/google/android/m4b/maps/bl/y$i:a	(Lcom/google/android/m4b/maps/bl/y$h;)V
      //   62: aload_2
      //   63: athrow
      //   64: astore_1
      //   65: ldc 236
      //   67: aload_1
      //   68: invokestatic 241	com/google/android/m4b/maps/ak/k:a	(Ljava/lang/String;Ljava/lang/Throwable;)V
      //   71: invokestatic 73	com/google/android/m4b/maps/bl/y:F	()Lcom/google/android/m4b/maps/bl/y$i;
      //   74: aload_0
      //   75: invokevirtual 234	com/google/android/m4b/maps/bl/y$i:a	(Lcom/google/android/m4b/maps/bl/y$h;)V
      //   78: return
      //
      // Exception table:
      //   from	to	target	type
      //   23	27	35	java/lang/InterruptedException
      //   23	27	45	java/lang/RuntimeException
      //   23	27	54	finally
      //   46	54	54	finally
      //   65	71	54	finally
      //   23	27	64	java/lang/Exception
    }
  }

  static final class i
  {
    private boolean a;
    private int b;
    private boolean c;
    private boolean d;
    private boolean e;
    private y.h f;

    private void c()
    {
      if (!this.a)
      {
        this.b = 131072;
        if (this.b >= 131072)
          this.d = true;
        this.a = true;
      }
    }

    public final void a(y.h paramh)
    {
      try
      {
        y.h.a(paramh, true);
        if (this.f == paramh)
          this.f = null;
        notifyAll();
        return;
      }
      finally
      {
      }
    }

    public final void a(GL10 paramGL10)
    {
      while (true)
      {
        try
        {
          if (!this.c)
          {
            c();
            String str = paramGL10.glGetString(7937);
            if (this.b < 131072)
            {
              if (!str.startsWith("Q3Dimension MSM7500 "))
              {
                bool3 = true;
                this.d = bool3;
                notifyAll();
              }
            }
            else
            {
              if (!this.d)
                break label120;
              boolean bool2 = str.startsWith("Adreno");
              bool1 = false;
              if (bool2)
              {
                int i = Build.VERSION.SDK_INT;
                bool1 = false;
                if (i < 11)
                  break label120;
              }
              this.e = bool1;
              this.c = true;
            }
          }
          else
          {
            return;
          }
          boolean bool3 = false;
          continue;
        }
        finally
        {
        }
        label120: boolean bool1 = true;
      }
    }

    public final boolean a()
    {
      try
      {
        boolean bool = this.e;
        return bool;
      }
      finally
      {
        localObject = finally;
        throw localObject;
      }
    }

    public final boolean b()
    {
      try
      {
        c();
        boolean bool1 = this.d;
        if (!bool1)
        {
          bool2 = true;
          return bool2;
        }
        boolean bool2 = false;
      }
      finally
      {
      }
    }

    public final boolean b(y.h paramh)
    {
      if ((this.f == paramh) || (this.f == null))
      {
        this.f = paramh;
        notifyAll();
      }
      do
      {
        return true;
        c();
      }
      while (this.d);
      if (this.f != null)
        this.f.i();
      return false;
    }

    public final void c(y.h paramh)
    {
      if (this.f == paramh)
        this.f = null;
      notifyAll();
    }
  }

  public static abstract interface j
  {
    public abstract GL a();
  }

  static final class k extends Writer
  {
    private StringBuilder a = new StringBuilder();

    private void a()
    {
      if (this.a.length() > 0)
        this.a.delete(0, this.a.length());
    }

    public final void close()
    {
      a();
    }

    public final void flush()
    {
      a();
    }

    public final void write(char[] paramArrayOfChar, int paramInt1, int paramInt2)
    {
      int i = 0;
      if (i < paramInt2)
      {
        char c = paramArrayOfChar[(paramInt1 + i)];
        if (c == '\n')
          a();
        while (true)
        {
          i++;
          break;
          this.a.append(c);
        }
      }
    }
  }

  public static abstract interface l
  {
    public abstract void a(GL10 paramGL10);

    public abstract void a(GL10 paramGL10, int paramInt1, int paramInt2);

    public abstract void b(GL10 paramGL10);
  }

  final class m extends y.b
  {
    public m(boolean arg2)
    {
      super(5, 6, 5, 0, 16, 0);
    }
  }
}

/* Location:           C:\Documents and Settings\Cesar Cabello Cea\Mis documentos\Downloads\apk-downloader\com.ikea.kompis-6_dex2jar.jar
 * Qualified Name:     com.google.android.m4b.maps.bl.y
 * JD-Core Version:    0.6.2
 */