package com.google.android.m4b.maps.bl;

import com.google.android.m4b.maps.bc.af;
import com.google.android.m4b.maps.bc.bp;
import com.google.android.m4b.maps.bc.l;
import com.google.android.m4b.maps.bn.b;
import com.google.android.m4b.maps.bo.e;
import com.google.android.m4b.maps.bp.a;
import com.google.android.m4b.maps.bp.k;
import javax.microedition.khronos.opengles.GL10;

public final class t extends r
{
  private static final float a = (float)Math.tan(0.08726646259971647D);
  private static final float b = (float)Math.tan(0.0523598775598299D);
  private af c;
  private int d = 1;
  private i e = i.f;
  private boolean f;
  private final k g = new k(6);
  private final a h = new a(6);
  private final a i;
  private final af j = new af();
  private final af k = new af();

  public t()
  {
    int m = a(ai.a(i.a));
    this.h.a(m, 2);
    this.h.a(m | 0xFF, 4);
    this.i = new a(6);
    int n = a(ai.a(i.c));
    this.i.a(n, 2);
    this.i.a(n | 0xFF, 4);
  }

  private static int a(int[] paramArrayOfInt)
  {
    return (0xFF00 & paramArrayOfInt[0]) << 16 | (0xFF00 & paramArrayOfInt[1]) << 8 | 0xFF00 & paramArrayOfInt[2];
  }

  public final void a(e parame, b paramb, j paramj)
  {
    i locali1 = paramj.a();
    int m;
    i locali2;
    if ((this.f) || (locali1 != this.e))
    {
      this.e = locali1;
      this.f = false;
      m = 1;
      if (m != 0)
      {
        locali2 = paramj.a();
        this.g.a(parame);
        if ((locali2 != i.f) && (locali2 != i.e) && (paramb.k() != 0.0F))
          break label97;
      }
    }
    while (true)
      if (this.g.a() == 0)
      {
        return;
        m = 0;
        break;
        label97: float f1 = b.b(paramb.n().h());
        float f2;
        label122: int n;
        float f4;
        if (locali2 == i.b)
        {
          f2 = 3.0F;
          float f3 = f1 - f2;
          if (paramb.k() + 0.5F * paramb.h() > f3)
          {
            n = (int)paramb.i();
            this.d = n;
            l locall = (l)paramb.c(f3).c();
            this.c = locall.e();
            this.j.d(0, 0);
            af.b(locall.d(), this.c, this.k);
            this.g.a(this.j, this.d);
            this.g.a(this.k, this.d);
            f4 = this.c.c(paramb.n());
            if (locali2 != i.b);
          }
        }
        else
        {
          for (float f5 = b; ; f5 = a)
          {
            int i1 = (int)(f5 * f4);
            this.j.a(i1);
            this.k.a(i1);
            this.g.a(this.j, this.d);
            this.g.a(this.k, this.d);
            this.j.a(n);
            this.k.a(n);
            this.g.a(this.j, this.d);
            this.g.a(this.k, this.d);
            break;
            f2 = 5.0F;
            break label122;
          }
        }
      }
    GL10 localGL10 = parame.x();
    localGL10.glPushMatrix();
    an.a(parame, paramb, this.c, this.d);
    parame.n();
    parame.s();
    localGL10.glBlendFunc(770, 771);
    this.g.d(parame);
    if (paramj.a() == i.c)
      this.i.c(parame);
    while (true)
    {
      localGL10.glDrawArrays(5, 0, this.g.a());
      localGL10.glPopMatrix();
      return;
      this.h.c(parame);
    }
  }

  public final boolean a(b paramb, e parame)
  {
    this.f = true;
    return true;
  }

  public final r.a d()
  {
    return r.a.m;
  }
}

/* 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.t
 * JD-Core Version:    0.6.2
 */