package com.google.android.m4b.maps.bp;

import com.google.android.m4b.maps.am.b;
import java.nio.ShortBuffer;
import javax.microedition.khronos.opengles.GL11;

public final class e extends c
{
  private final int[] f = new int[1];
  private volatile long g = -1L;

  public e(int paramInt)
  {
    super(paramInt);
  }

  public e(int paramInt, boolean paramBoolean)
  {
    super(paramInt, true);
  }

  public final void a(com.google.android.m4b.maps.bo.e parame)
  {
    super.a(parame);
    this.f[0] = 0;
  }

  public final void a(com.google.android.m4b.maps.bo.e parame, int paramInt)
  {
    this.g = com.google.android.m4b.maps.bo.e.a(parame);
    if (!parame.F())
      super.a(parame, paramInt);
    GL11 localGL11;
    do
    {
      return;
      localGL11 = (GL11)parame.x();
      if (this.f[0] != 0)
        break;
      if (this.c == null)
        d(parame);
    }
    while (this.c.limit() == 0);
    localGL11.glGenBuffers(1, this.f, 0);
    localGL11.glBindBuffer(34963, this.f[0]);
    this.d = (2 * this.c.limit());
    localGL11.glBufferData(34963, this.d, this.c, 35044);
    this.c = null;
    localGL11.glBindBuffer(34963, this.f[0]);
    localGL11.glDrawElements(paramInt, this.b, 5123, 0);
    localGL11.glBindBuffer(34963, 0);
  }

  public final void b(com.google.android.m4b.maps.bo.e parame)
  {
    if (this.f[0] != 0)
    {
      com.google.android.m4b.maps.bo.e locale = com.google.android.m4b.maps.bo.e.b(this.g);
      if ((locale == parame) && (locale != null))
        ((GL11)locale.x()).glDeleteBuffers(1, this.f, 0);
      this.f[0] = 0;
      this.d = 0;
    }
    this.g = com.google.android.m4b.maps.bo.e.a(parame);
  }

  public final int d()
  {
    int i = 56;
    if (this.e != null)
      i = 56 + 2 * this.e.b();
    while (this.a == null)
      return i;
    return 56 + (16 + 2 * this.a.length);
  }

  protected final void d(com.google.android.m4b.maps.bo.e parame)
  {
    if (parame.F())
    {
      this.c = parame.J().b();
      if (this.e == null)
        this.c.put(this.a, 0, this.b);
      while (true)
      {
        this.c.limit(this.b);
        this.c.position(0);
        if (!b.a)
        {
          if (this.e != null)
          {
            this.e.c();
            this.e = null;
          }
          this.a = null;
        }
        return;
        a();
        this.e.a(this.c);
      }
    }
    super.d(parame);
  }
}

/* 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.bp.e
 * JD-Core Version:    0.6.2
 */