package com.google.android.m4b.maps.bl;

import android.content.Context;
import android.graphics.SurfaceTexture;
import android.opengl.GLDebugHelper;
import android.os.Build.VERSION;
import android.view.TextureView;
import android.view.TextureView.SurfaceTextureListener;
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 z extends TextureView
  implements TextureView.SurfaceTextureListener
{
  private static final h a = new h((byte)0);
  private final WeakReference<z> b = new WeakReference(this);
  private g c;
  private ai d;
  private boolean e;
  private y.d f;
  private d g;
  private e h;
  private boolean i;
  private boolean j;

  public z(Context paramContext)
  {
    super(paramContext);
    setSurfaceTextureListener(this);
  }

  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(ai paramai)
  {
    c();
    if (this.f == null)
      this.f = new j(true);
    if (this.g == null)
      this.g = new c((byte)0);
    if (this.h == null)
      this.h = new e((byte)0);
    this.d = paramai;
    this.c = new g(this.b);
    this.c.start();
  }

  public final void a(y.d paramd)
  {
    c();
    this.f = paramd;
  }

  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 g(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 onSurfaceTextureAvailable(SurfaceTexture paramSurfaceTexture, int paramInt1, int paramInt2)
  {
    this.c.c();
    this.c.a(paramInt1, paramInt2);
  }

  public boolean onSurfaceTextureDestroyed(SurfaceTexture paramSurfaceTexture)
  {
    this.c.d();
    return true;
  }

  public void onSurfaceTextureSizeChanged(SurfaceTexture paramSurfaceTexture, int paramInt1, int paramInt2)
  {
    this.c.a(paramInt1, paramInt2);
  }

  public void onSurfaceTextureUpdated(SurfaceTexture paramSurfaceTexture)
  {
  }

  public void u()
  {
    this.c.b();
  }

  abstract class a
    implements y.d
  {
    private int[] a;

    public a(int[] arg2)
    {
      if (z.a(z.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 z.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 z.d
  {
    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] = z.a(z.this);
      arrayOfInt[2] = 12344;
      EGLContext localEGLContext = EGL10.EGL_NO_CONTEXT;
      if (z.a(z.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))
        z.f.a("eglDestroyContex", paramEGL10.eglGetError());
    }
  }

  public static abstract interface d
  {
    public abstract EGLContext a(EGL10 paramEGL10, EGLDisplay paramEGLDisplay, EGLConfig paramEGLConfig);

    public abstract void a(EGL10 paramEGL10, EGLDisplay paramEGLDisplay, EGLContext paramEGLContext);
  }

  public static class e
  {
    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 f
  {
    EGL10 a;
    EGLDisplay b;
    EGLSurface c;
    EGLConfig d;
    private WeakReference<z> e;
    private EGLContext f;

    public f(WeakReference<z> 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);
        z localz = (z)this.e.get();
        if (localz != null)
          z.d(localz).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");
      z localz = (z)this.e.get();
      if (localz == null)
        this.d = null;
      for (this.f = null; ; this.f = z.c(localz).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 = z.b(localz).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();
      z localz = (z)this.e.get();
      if (localz != null);
      for (this.c = z.d(localz).a(this.a, this.b, this.d, localz.getSurfaceTexture()); (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();
      z localz = (z)this.e.get();
      int j;
      if (localz != null)
      {
        if (z.e(localz) != null)
          localGL = z.e(localz).a();
        if ((0x3 & z.f(localz)) != 0)
        {
          int i = 0x1 & z.f(localz);
          j = 0;
          if (i != 0)
            j = 1;
          if ((0x2 & z.f(localz)) == 0)
            break label95;
        }
      }
      label95: for (z.i locali = new z.i(); ; locali = null)
      {
        localGL = GLDebugHelper.wrap(localGL, j, locali);
        return localGL;
      }
    }

    public final void d()
    {
      f();
    }

    public final void e()
    {
      if (this.f != null)
      {
        z localz = (z)this.e.get();
        if (localz != null)
          z.c(localz).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 g 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 z.f r;
    private WeakReference<z> s;

    g(WeakReference<z> 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;
        z.F().c(this);
      }
    }

    // ERROR //
    private void l()
    {
      // Byte code:
      //   0: aload_0
      //   1: new 61	com/google/android/m4b/maps/bl/z$f
      //   4: dup
      //   5: aload_0
      //   6: getfield 52	com/google/android/m4b/maps/bl/z$g:s	Ljava/lang/ref/WeakReference;
      //   9: invokespecial 82	com/google/android/m4b/maps/bl/z$f:<init>	(Ljava/lang/ref/WeakReference;)V
      //   12: putfield 59	com/google/android/m4b/maps/bl/z$g:r	Lcom/google/android/m4b/maps/bl/z$f;
      //   15: aload_0
      //   16: iconst_0
      //   17: putfield 65	com/google/android/m4b/maps/bl/z$g:h	Z
      //   20: aload_0
      //   21: iconst_0
      //   22: putfield 57	com/google/android/m4b/maps/bl/z$g: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/z:F	()Lcom/google/android/m4b/maps/bl/z$h;
      //   61: astore 16
      //   63: aload 16
      //   65: monitorenter
      //   66: aload_0
      //   67: getfield 84	com/google/android/m4b/maps/bl/z$g:a	Z
      //   70: ifeq +34 -> 104
      //   73: aload 16
      //   75: monitorexit
      //   76: invokestatic 73	com/google/android/m4b/maps/bl/z:F	()Lcom/google/android/m4b/maps/bl/z$h;
      //   79: astore 64
      //   81: aload 64
      //   83: monitorenter
      //   84: aload_0
      //   85: invokespecial 86	com/google/android/m4b/maps/bl/z$g:j	()V
      //   88: aload_0
      //   89: invokespecial 88	com/google/android/m4b/maps/bl/z$g: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/z$g: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/z$g: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/z$g:d	Z
      //   230: aload_0
      //   231: getfield 105	com/google/android/m4b/maps/bl/z$g:c	Z
      //   234: if_icmpeq +931 -> 1165
      //   237: aload_0
      //   238: getfield 105	com/google/android/m4b/maps/bl/z$g:c	Z
      //   241: istore 62
      //   243: aload_0
      //   244: aload_0
      //   245: getfield 105	com/google/android/m4b/maps/bl/z$g:c	Z
      //   248: putfield 103	com/google/android/m4b/maps/bl/z$g:d	Z
      //   251: invokestatic 73	com/google/android/m4b/maps/bl/z:F	()Lcom/google/android/m4b/maps/bl/z$h;
      //   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/z$g:j	Z
      //   265: ifeq +19 -> 284
      //   268: aload_0
      //   269: invokespecial 86	com/google/android/m4b/maps/bl/z$g:j	()V
      //   272: aload_0
      //   273: invokespecial 88	com/google/android/m4b/maps/bl/z$g:k	()V
      //   276: aload_0
      //   277: iconst_0
      //   278: putfield 112	com/google/android/m4b/maps/bl/z$g: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/z$g:j	()V
      //   293: aload_0
      //   294: invokespecial 88	com/google/android/m4b/maps/bl/z$g: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/z$g:i	Z
      //   309: ifeq +7 -> 316
      //   312: aload_0
      //   313: invokespecial 86	com/google/android/m4b/maps/bl/z$g:j	()V
      //   316: iload 18
      //   318: ifeq +48 -> 366
      //   321: aload_0
      //   322: getfield 65	com/google/android/m4b/maps/bl/z$g:h	Z
      //   325: ifeq +41 -> 366
      //   328: aload_0
      //   329: getfield 52	com/google/android/m4b/maps/bl/z$g: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/z
      //   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/z:F	()Lcom/google/android/m4b/maps/bl/z$h;
      //   356: invokevirtual 120	com/google/android/m4b/maps/bl/z$h:a	()Z
      //   359: ifeq +7 -> 366
      //   362: aload_0
      //   363: invokespecial 88	com/google/android/m4b/maps/bl/z$g:k	()V
      //   366: iload 18
      //   368: ifeq +19 -> 387
      //   371: invokestatic 73	com/google/android/m4b/maps/bl/z:F	()Lcom/google/android/m4b/maps/bl/z$h;
      //   374: invokevirtual 122	com/google/android/m4b/maps/bl/z$h:b	()Z
      //   377: ifeq +10 -> 387
      //   380: aload_0
      //   381: getfield 59	com/google/android/m4b/maps/bl/z$g:r	Lcom/google/android/m4b/maps/bl/z$f;
      //   384: invokevirtual 67	com/google/android/m4b/maps/bl/z$f:e	()V
      //   387: aload_0
      //   388: getfield 124	com/google/android/m4b/maps/bl/z$g:e	Z
      //   391: ifne +37 -> 428
      //   394: aload_0
      //   395: getfield 126	com/google/android/m4b/maps/bl/z$g:g	Z
      //   398: ifne +30 -> 428
      //   401: aload_0
      //   402: getfield 57	com/google/android/m4b/maps/bl/z$g:i	Z
      //   405: ifeq +7 -> 412
      //   408: aload_0
      //   409: invokespecial 86	com/google/android/m4b/maps/bl/z$g:j	()V
      //   412: aload_0
      //   413: iconst_1
      //   414: putfield 126	com/google/android/m4b/maps/bl/z$g:g	Z
      //   417: aload_0
      //   418: iconst_0
      //   419: putfield 128	com/google/android/m4b/maps/bl/z$g:f	Z
      //   422: invokestatic 73	com/google/android/m4b/maps/bl/z:F	()Lcom/google/android/m4b/maps/bl/z$h;
      //   425: invokevirtual 110	java/lang/Object:notifyAll	()V
      //   428: aload_0
      //   429: getfield 124	com/google/android/m4b/maps/bl/z$g:e	Z
      //   432: ifeq +21 -> 453
      //   435: aload_0
      //   436: getfield 126	com/google/android/m4b/maps/bl/z$g:g	Z
      //   439: ifeq +14 -> 453
      //   442: aload_0
      //   443: iconst_0
      //   444: putfield 126	com/google/android/m4b/maps/bl/z$g:g	Z
      //   447: invokestatic 73	com/google/android/m4b/maps/bl/z:F	()Lcom/google/android/m4b/maps/bl/z$h;
      //   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/z$g:o	Z
      //   469: invokestatic 73	com/google/android/m4b/maps/bl/z:F	()Lcom/google/android/m4b/maps/bl/z$h;
      //   472: invokevirtual 110	java/lang/Object:notifyAll	()V
      //   475: aload_0
      //   476: invokespecial 132	com/google/android/m4b/maps/bl/z$g:m	()Z
      //   479: ifeq +235 -> 714
      //   482: aload_0
      //   483: getfield 65	com/google/android/m4b/maps/bl/z$g: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/z$g:h	Z
      //   501: ifeq +653 -> 1154
      //   504: aload_0
      //   505: getfield 57	com/google/android/m4b/maps/bl/z$g:i	Z
      //   508: ifne +646 -> 1154
      //   511: aload_0
      //   512: iconst_1
      //   513: putfield 57	com/google/android/m4b/maps/bl/z$g: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/z$g:i	Z
      //   529: ifeq +649 -> 1178
      //   532: aload_0
      //   533: getfield 42	com/google/android/m4b/maps/bl/z$g:q	Z
      //   536: ifeq +592 -> 1128
      //   539: iconst_1
      //   540: istore 23
      //   542: aload_0
      //   543: getfield 44	com/google/android/m4b/maps/bl/z$g:k	I
      //   546: istore 24
      //   548: aload_0
      //   549: getfield 46	com/google/android/m4b/maps/bl/z$g: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/z$g:q	Z
      //   565: aload_0
      //   566: iconst_0
      //   567: putfield 48	com/google/android/m4b/maps/bl/z$g:n	Z
      //   570: invokestatic 73	com/google/android/m4b/maps/bl/z:F	()Lcom/google/android/m4b/maps/bl/z$h;
      //   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/z:g	(Lcom/google/android/m4b/maps/bl/z;)Z
      //   628: istore 61
      //   630: goto -282 -> 348
      //   633: invokestatic 73	com/google/android/m4b/maps/bl/z:F	()Lcom/google/android/m4b/maps/bl/z$h;
      //   636: aload_0
      //   637: invokevirtual 138	com/google/android/m4b/maps/bl/z$h:b	(Lcom/google/android/m4b/maps/bl/z$g;)Z
      //   640: istore 19
      //   642: iload 19
      //   644: ifeq -147 -> 497
      //   647: aload_0
      //   648: getfield 59	com/google/android/m4b/maps/bl/z$g:r	Lcom/google/android/m4b/maps/bl/z$f;
      //   651: invokevirtual 140	com/google/android/m4b/maps/bl/z$f:a	()V
      //   654: aload_0
      //   655: iconst_1
      //   656: putfield 65	com/google/android/m4b/maps/bl/z$g:h	Z
      //   659: iconst_1
      //   660: istore_1
      //   661: invokestatic 73	com/google/android/m4b/maps/bl/z:F	()Lcom/google/android/m4b/maps/bl/z$h;
      //   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/z:F	()Lcom/google/android/m4b/maps/bl/z$h;
      //   683: astore 14
      //   685: aload 14
      //   687: monitorenter
      //   688: aload_0
      //   689: invokespecial 86	com/google/android/m4b/maps/bl/z$g:j	()V
      //   692: aload_0
      //   693: invokespecial 88	com/google/android/m4b/maps/bl/z$g:k	()V
      //   696: aload 14
      //   698: monitorexit
      //   699: aload 13
      //   701: athrow
      //   702: astore 20
      //   704: invokestatic 73	com/google/android/m4b/maps/bl/z:F	()Lcom/google/android/m4b/maps/bl/z$h;
      //   707: aload_0
      //   708: invokevirtual 78	com/google/android/m4b/maps/bl/z$h:c	(Lcom/google/android/m4b/maps/bl/z$g;)V
      //   711: aload 20
      //   713: athrow
      //   714: invokestatic 73	com/google/android/m4b/maps/bl/z:F	()Lcom/google/android/m4b/maps/bl/z$h;
      //   717: invokevirtual 143	java/lang/Object:wait	()V
      //   720: goto -654 -> 66
      //   723: iload 34
      //   725: ifeq +396 -> 1121
      //   728: aload_0
      //   729: getfield 59	com/google/android/m4b/maps/bl/z$g:r	Lcom/google/android/m4b/maps/bl/z$f;
      //   732: invokevirtual 144	com/google/android/m4b/maps/bl/z$f:b	()Z
      //   735: ifne +454 -> 1189
      //   738: invokestatic 73	com/google/android/m4b/maps/bl/z:F	()Lcom/google/android/m4b/maps/bl/z$h;
      //   741: astore 55
      //   743: aload 55
      //   745: monitorenter
      //   746: aload_0
      //   747: iconst_1
      //   748: putfield 128	com/google/android/m4b/maps/bl/z$g:f	Z
      //   751: invokestatic 73	com/google/android/m4b/maps/bl/z:F	()Lcom/google/android/m4b/maps/bl/z$h;
      //   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 +299 -> 1115
      //   819: aload_0
      //   820: getfield 59	com/google/android/m4b/maps/bl/z$g:r	Lcom/google/android/m4b/maps/bl/z$f;
      //   823: invokevirtual 147	com/google/android/m4b/maps/bl/z$f: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/z:F	()Lcom/google/android/m4b/maps/bl/z$h;
      //   834: aload 40
      //   836: invokevirtual 152	com/google/android/m4b/maps/bl/z$h:a	(Ljavax/microedition/khronos/opengles/GL10;)V
      //   839: iconst_0
      //   840: istore 28
      //   842: aload 40
      //   844: astore 41
      //   846: iload_1
      //   847: ifeq +45 -> 892
      //   850: aload_0
      //   851: getfield 52	com/google/android/m4b/maps/bl/z$g: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/z
      //   860: astore 42
      //   862: aload 42
      //   864: ifnull +331 -> 1195
      //   867: aload 42
      //   869: invokestatic 155	com/google/android/m4b/maps/bl/z:h	(Lcom/google/android/m4b/maps/bl/z;)Lcom/google/android/m4b/maps/bl/ai;
      //   872: astore 43
      //   874: aload_0
      //   875: getfield 59	com/google/android/m4b/maps/bl/z$g:r	Lcom/google/android/m4b/maps/bl/z$f;
      //   878: getfield 158	com/google/android/m4b/maps/bl/z$f:d	Ljavax/microedition/khronos/egl/EGLConfig;
      //   881: pop
      //   882: aload 43
      //   884: aload 41
      //   886: invokevirtual 161	com/google/android/m4b/maps/bl/ai:a	(Ljavax/microedition/khronos/opengles/GL10;)V
      //   889: goto +306 -> 1195
      //   892: iload 36
      //   894: ifeq +37 -> 931
      //   897: aload_0
      //   898: getfield 52	com/google/android/m4b/maps/bl/z$g:s	Ljava/lang/ref/WeakReference;
      //   901: invokevirtual 118	java/lang/ref/WeakReference:get	()Ljava/lang/Object;
      //   904: checkcast 69	com/google/android/m4b/maps/bl/z
      //   907: astore 45
      //   909: aload 45
      //   911: ifnull +289 -> 1200
      //   914: aload 45
      //   916: invokestatic 155	com/google/android/m4b/maps/bl/z:h	(Lcom/google/android/m4b/maps/bl/z;)Lcom/google/android/m4b/maps/bl/ai;
      //   919: aload 41
      //   921: iload 32
      //   923: iload 38
      //   925: invokevirtual 164	com/google/android/m4b/maps/bl/ai:a	(Ljavax/microedition/khronos/opengles/GL10;II)V
      //   928: goto +272 -> 1200
      //   931: aload_0
      //   932: getfield 52	com/google/android/m4b/maps/bl/z$g:s	Ljava/lang/ref/WeakReference;
      //   935: invokevirtual 118	java/lang/ref/WeakReference:get	()Ljava/lang/Object;
      //   938: checkcast 69	com/google/android/m4b/maps/bl/z
      //   941: astore 46
      //   943: aload 46
      //   945: ifnull +13 -> 958
      //   948: aload 46
      //   950: invokestatic 155	com/google/android/m4b/maps/bl/z:h	(Lcom/google/android/m4b/maps/bl/z;)Lcom/google/android/m4b/maps/bl/ai;
      //   953: aload 41
      //   955: invokevirtual 166	com/google/android/m4b/maps/bl/ai:b	(Ljavax/microedition/khronos/opengles/GL10;)V
      //   958: invokestatic 172	java/lang/System:nanoTime	()J
      //   961: pop2
      //   962: aload_0
      //   963: getfield 59	com/google/android/m4b/maps/bl/z$g:r	Lcom/google/android/m4b/maps/bl/z$f;
      //   966: astore 49
      //   968: aload 49
      //   970: getfield 175	com/google/android/m4b/maps/bl/z$f:a	Ljavax/microedition/khronos/egl/EGL10;
      //   973: aload 49
      //   975: getfield 178	com/google/android/m4b/maps/bl/z$f:b	Ljavax/microedition/khronos/egl/EGLDisplay;
      //   978: aload 49
      //   980: getfield 181	com/google/android/m4b/maps/bl/z$f:c	Ljavax/microedition/khronos/egl/EGLSurface;
      //   983: invokeinterface 187 3 0
      //   988: ifne +97 -> 1085
      //   991: aload 49
      //   993: getfield 175	com/google/android/m4b/maps/bl/z$f:a	Ljavax/microedition/khronos/egl/EGL10;
      //   996: invokeinterface 191 1 0
      //   1001: istore 50
      //   1003: goto +203 -> 1206
      //   1006: invokestatic 73	com/google/android/m4b/maps/bl/z:F	()Lcom/google/android/m4b/maps/bl/z$h;
      //   1009: astore 53
      //   1011: aload 53
      //   1013: monitorenter
      //   1014: aload_0
      //   1015: iconst_1
      //   1016: putfield 128	com/google/android/m4b/maps/bl/z$g:f	Z
      //   1019: invokestatic 73	com/google/android/m4b/maps/bl/z:F	()Lcom/google/android/m4b/maps/bl/z$h;
      //   1022: invokevirtual 110	java/lang/Object:notifyAll	()V
      //   1025: aload 53
      //   1027: monitorexit
      //   1028: iload 29
      //   1030: ifeq +141 -> 1171
      //   1033: iconst_1
      //   1034: istore 51
      //   1036: aload 30
      //   1038: astore 10
      //   1040: aload 41
      //   1042: astore_2
      //   1043: iload 32
      //   1045: istore 11
      //   1047: iload 51
      //   1049: istore 12
      //   1051: iload 37
      //   1053: istore 52
      //   1055: iload 29
      //   1057: istore 5
      //   1059: iload 36
      //   1061: istore 6
      //   1063: iload 35
      //   1065: istore 7
      //   1067: iload 28
      //   1069: istore 8
      //   1071: iload 39
      //   1073: istore 9
      //   1075: iload 38
      //   1077: istore_3
      //   1078: iload 52
      //   1080: istore 4
      //   1082: goto -1024 -> 58
      //   1085: sipush 12288
      //   1088: istore 50
      //   1090: goto +116 -> 1206
      //   1093: iconst_1
      //   1094: istore 35
      //   1096: goto -68 -> 1028
      //   1099: astore 54
      //   1101: aload 53
      //   1103: monitorexit
      //   1104: aload 54
      //   1106: athrow
      //   1107: astore 15
      //   1109: aload 14
      //   1111: monitorexit
      //   1112: aload 15
      //   1114: athrow
      //   1115: aload_2
      //   1116: astore 41
      //   1118: goto -272 -> 846
      //   1121: iload 34
      //   1123: istore 39
      //   1125: goto -311 -> 814
      //   1128: iload 9
      //   1130: istore 27
      //   1132: iload 11
      //   1134: istore 59
      //   1136: iload 5
      //   1138: istore 26
      //   1140: iload 21
      //   1142: istore 23
      //   1144: iload_3
      //   1145: istore 25
      //   1147: iload 59
      //   1149: istore 24
      //   1151: goto -586 -> 565
      //   1154: iload 6
      //   1156: istore 21
      //   1158: iload 8
      //   1160: istore 22
      //   1162: goto -637 -> 525
      //   1165: iconst_0
      //   1166: istore 18
      //   1168: goto -907 -> 261
      //   1171: iload 31
      //   1173: istore 51
      //   1175: goto -139 -> 1036
      //   1178: iload 22
      //   1180: istore 8
      //   1182: iload 21
      //   1184: istore 6
      //   1186: goto -472 -> 714
      //   1189: iconst_0
      //   1190: istore 39
      //   1192: goto -378 -> 814
      //   1195: iconst_0
      //   1196: istore_1
      //   1197: goto -305 -> 892
      //   1200: iconst_0
      //   1201: istore 36
      //   1203: goto -272 -> 931
      //   1206: iload 50
      //   1208: lookupswitch	default:+-202->1006, 12288:+-180->1028, 12302:+-115->1093
      //
      // 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	889	678	finally
      //   897	909	678	finally
      //   914	928	678	finally
      //   931	943	678	finally
      //   948	958	678	finally
      //   958	1003	678	finally
      //   1006	1014	678	finally
      //   1101	1107	678	finally
      //   647	654	702	java/lang/RuntimeException
      //   746	760	806	finally
      //   1014	1028	1099	finally
      //   688	699	1107	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 (z.F())
      {
        int i1 = this.m;
        return i1;
      }
    }

    public final void a(int paramInt)
    {
      if ((paramInt < 0) || (paramInt > 1))
        throw new IllegalArgumentException("renderMode");
      synchronized (z.F())
      {
        this.m = paramInt;
        z.F().notifyAll();
        return;
      }
    }

    public final void a(int paramInt1, int paramInt2)
    {
      while (true)
      {
        synchronized (z.F())
        {
          this.k = paramInt1;
          this.l = paramInt2;
          this.q = true;
          this.n = true;
          this.o = false;
          z.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
              {
                z.F().wait();
              }
              catch (InterruptedException localInterruptedException)
              {
                Thread.currentThread().interrupt();
              }
            }
          }
        }
        int i1 = 0;
      }
    }

    public final void b()
    {
      synchronized (z.F())
      {
        this.n = true;
        z.F().notifyAll();
        return;
      }
    }

    public final void c()
    {
      synchronized (z.F())
      {
        this.e = true;
        z.F().notifyAll();
        while (true)
          if (this.g)
          {
            boolean bool = this.b;
            if (!bool)
              try
              {
                z.F().wait();
              }
              catch (InterruptedException localInterruptedException)
              {
                Thread.currentThread().interrupt();
              }
          }
      }
    }

    public final void d()
    {
      synchronized (z.F())
      {
        this.e = false;
        z.F().notifyAll();
        while (true)
          if (!this.g)
          {
            boolean bool = this.b;
            if (!bool)
              try
              {
                z.F().wait();
              }
              catch (InterruptedException localInterruptedException)
              {
                Thread.currentThread().interrupt();
              }
          }
      }
    }

    public final void e()
    {
      synchronized (z.F())
      {
        this.c = true;
        z.F().notifyAll();
        while (true)
          if (!this.b)
          {
            boolean bool = this.d;
            if (!bool)
              try
              {
                z.F().wait();
              }
              catch (InterruptedException localInterruptedException)
              {
                Thread.currentThread().interrupt();
              }
          }
      }
    }

    public final void f()
    {
      synchronized (z.F())
      {
        this.c = false;
        this.n = true;
        this.o = false;
        z.F().notifyAll();
        while (true)
          if ((!this.b) && (this.d))
          {
            boolean bool = this.o;
            if (!bool)
              try
              {
                z.F().wait();
              }
              catch (InterruptedException localInterruptedException)
              {
                Thread.currentThread().interrupt();
              }
          }
      }
    }

    public final void g()
    {
      synchronized (z.F())
      {
        this.a = true;
        z.F().notifyAll();
        while (true)
        {
          boolean bool = this.b;
          if (!bool)
            try
            {
              z.F().wait();
            }
            catch (InterruptedException localInterruptedException)
            {
              Thread.currentThread().interrupt();
            }
        }
      }
    }

    public final boolean h()
    {
      synchronized (z.F())
      {
        boolean bool = this.b;
        return bool;
      }
    }

    public final void i()
    {
      this.j = true;
      z.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/z$g: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/z$g:setName	(Ljava/lang/String;)V
      //   23: aload_0
      //   24: invokespecial 232	com/google/android/m4b/maps/bl/z$g:l	()V
      //   27: invokestatic 73	com/google/android/m4b/maps/bl/z:F	()Lcom/google/android/m4b/maps/bl/z$h;
      //   30: aload_0
      //   31: invokevirtual 234	com/google/android/m4b/maps/bl/z$h:a	(Lcom/google/android/m4b/maps/bl/z$g;)V
      //   34: return
      //   35: astore 4
      //   37: invokestatic 73	com/google/android/m4b/maps/bl/z:F	()Lcom/google/android/m4b/maps/bl/z$h;
      //   40: aload_0
      //   41: invokevirtual 234	com/google/android/m4b/maps/bl/z$h:a	(Lcom/google/android/m4b/maps/bl/z$g;)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/z:F	()Lcom/google/android/m4b/maps/bl/z$h;
      //   58: aload_0
      //   59: invokevirtual 234	com/google/android/m4b/maps/bl/z$h:a	(Lcom/google/android/m4b/maps/bl/z$g;)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/z:F	()Lcom/google/android/m4b/maps/bl/z$h;
      //   74: aload_0
      //   75: invokevirtual 234	com/google/android/m4b/maps/bl/z$h:a	(Lcom/google/android/m4b/maps/bl/z$g;)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 h
  {
    private boolean a;
    private int b;
    private boolean c;
    private boolean d;
    private boolean e;
    private z.g f;

    private void c()
    {
      if (!this.a)
      {
        this.b = 131072;
        if (this.b >= 131072)
          this.d = true;
        this.a = true;
      }
    }

    public final void a(z.g paramg)
    {
      try
      {
        z.g.a(paramg, true);
        if (this.f == paramg)
          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(z.g paramg)
    {
      if ((this.f == paramg) || (this.f == null))
      {
        this.f = paramg;
        notifyAll();
      }
      do
      {
        return true;
        c();
      }
      while (this.d);
      if (this.f != null)
        this.f.i();
      return false;
    }

    public final void c(z.g paramg)
    {
      if (this.f == paramg)
        this.f = null;
      notifyAll();
    }
  }

  static final class i 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);
        }
      }
    }
  }

  final class j extends z.b
  {
    public j(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.z
 * JD-Core Version:    0.6.2
 */