package com.google.android.m4b.maps.bp;

import com.google.android.m4b.maps.am.b;
import com.google.android.m4b.maps.ar.d;
import com.google.android.m4b.maps.bc.af;
import com.google.android.m4b.maps.bo.e;
import java.nio.IntBuffer;
import javax.microedition.khronos.opengles.GL11;

public class m extends k
{
  private final int[] h = new int[1];
  private volatile long i = -1L;

  public m(int paramInt)
  {
    super(paramInt);
  }

  public m(int paramInt, boolean paramBoolean)
  {
    super(paramInt, true);
  }

  public void a(e parame)
  {
    super.a(parame);
    this.h[0] = 0;
  }

  public final void b(e parame)
  {
    if (this.h[0] != 0)
    {
      e locale = e.b(this.i);
      if ((locale == parame) && (locale != null))
        ((GL11)locale.x()).glDeleteBuffers(1, this.h, 0);
      this.h[0] = 0;
      this.a = 0;
    }
    this.i = e.a(parame);
  }

  public final int d()
  {
    int j = 56;
    if (this.g != null)
      j = 56 + 4 * this.g.b();
    while (this.b == null)
      return j;
    return 56 + (16 + 4 * this.b.length);
  }

  public final void d(e parame)
  {
    this.i = e.a(parame);
    if (!parame.F())
      super.d(parame);
    GL11 localGL11;
    do
    {
      return;
      localGL11 = (GL11)parame.x();
      if (this.h[0] != 0)
        break;
      if (this.e == null)
        e(parame);
    }
    while (this.e.limit() == 0);
    localGL11.glGenBuffers(1, this.h, 0);
    localGL11.glBindBuffer(34962, this.h[0]);
    this.a = (4 * this.e.limit());
    localGL11.glBufferData(34962, this.a, this.e, 35044);
    this.e = null;
    localGL11.glBindBuffer(34962, this.h[0]);
    localGL11.glVertexPointer(3, 5132, 0, 0);
    localGL11.glBindBuffer(34962, 0);
  }

  protected final void e(e parame)
  {
    if (parame.F())
    {
      int j = 3 * this.d;
      this.e = parame.J().c();
      if (this.g == null)
        this.e.put(this.b, 0, j);
      while (true)
      {
        this.e.limit(j);
        this.e.position(0);
        if (!b.a)
        {
          if (this.g != null)
          {
            this.g.c();
            this.g = null;
          }
          this.b = null;
        }
        return;
        b();
        this.g.a(this.e);
      }
    }
    super.e(parame);
  }

  public static final class a extends m
  {
    public a(int[] paramArrayOfInt)
    {
      super(true);
      this.b = paramArrayOfInt;
      this.c = 4;
      this.d = this.c;
      this.f = 12;
    }

    public final void a(float paramFloat1, float paramFloat2, float paramFloat3)
    {
      throw new UnsupportedOperationException("Immutable");
    }

    public final void a(af paramaf, int paramInt)
    {
      throw new UnsupportedOperationException("Immutable");
    }

    public final void a(e parame)
    {
      throw new UnsupportedOperationException("Immutable");
    }
  }
}

/* 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.m
 * JD-Core Version:    0.6.2
 */